/* Gift-guide pages: /missionary-packing-list (decisions #338, docs/missionary-packing-list-plan.md).
   Loaded after common.css and landing-shared.css, whose hero / section / faq / cta classes the
   page reuses; everything here is the guide's own: the sticky category chips, the product card
   grid, the checkable checklist and the print rules. Prefix gg-. Promote the card to
   landing-shared.css when a second page uses it.

   Tokens only: hex literals outside :root are ratcheted (tests/lib/css-hex-ratchet.parity.test.js,
   baseline 0 for this file). Breakpoints are the canonical set (docs/design-system/README.md):
   768 the chips become one scrolling row, 720 three columns become two, 480 cards become rows. */

/* ── Hero additions ─────────────────────────────────────────────────────────
   A <div>, never a <p>: landing-shared's `.hero p` (20px, 40px margin) outranks one class. */
.gg-hero-eyebrow { margin-bottom: 12px; }
.hero .gg-hero-note { max-width: 560px; margin: 0 auto 24px; text-align: left; }
.gg-hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 8px; }
.gg-hero-links a { font-size: 15px; font-weight: 600; color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Sticky category chips ─────────────────────────────────────────────────
   z-index 50 sits under the mobile nav dropdown (nav.css, z-index 100). */
.gg-jump { position: sticky; top: 0; z-index: 50; background: white; border-bottom: 1px solid var(--color-gray-200); }
.gg-jump ul { display: flex; gap: 8px; width: max-content; max-width: 100%; margin: 0 auto; padding: 10px 24px; list-style: none; overflow-x: auto; }
.gg-jump li { flex-shrink: 0; }
.gg-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--color-gray-100); color: var(--color-gray-700); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background var(--transition-fast); }
.gg-jump a:hover { background: var(--color-gray-200); }
.gg-jump a:focus-visible { outline: 2px solid var(--focus-ring-blue); outline-offset: 2px; }
.gg-category, #checklist { scroll-margin-top: 76px; }

/* A category section: tighter than the storytelling .section (80px) — nine of them stack. */
.gg-category .section-title { margin-bottom: 8px; }
.gg-category .section-intro { margin-bottom: 32px; }
/* In normal flow under the title: a negative top margin here once pulled it INTO the heading. */
.gg-label { text-align: center; margin: 0 0 8px; }
/* How we picked: three short paragraphs, not .section-intro's one-off 48px lead-in gap. */
.gg-how .section-intro { margin-bottom: 20px; }

/* ── Card grid ─────────────────────────────────────────────────────────── */
.gg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.gg-card { position: relative; display: flex; flex-direction: column; background: white; border: 1px solid var(--color-gray-200); border-radius: var(--radius-2xl); padding: 12px 12px 16px; box-shadow: var(--shadow-card); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.gg-card:hover { border-color: var(--color-gray-300); box-shadow: var(--shadow-dropdown); }
.gg-card__media { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: var(--color-gray-50); overflow: hidden; }
.gg-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gg-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 4px 0; }
.gg-card__brand { margin: 0 0 4px; }
.gg-card__brand .badge-highlight { margin-left: 6px; }
.gg-card__title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--color-ink); margin: 0 0 6px; }
.gg-card__title a { color: inherit; text-decoration: none; }
/* The whole card is the one link: the title's link is stretched over it. */
.gg-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-2xl); }
.gg-card:hover .gg-card__title a { text-decoration: underline; }
.gg-card__desc { font-size: 14px; line-height: 1.5; color: var(--color-body); margin: 0; }
.gg-card__band { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--color-gray-700); margin: 10px 0 0; }
.gg-card__price { font-size: 15px; font-weight: 700; color: var(--color-ink); margin: 10px 0 0; }
.gg-card__cta { display: inline-flex; align-items: center; gap: 6px; margin: auto 0 0; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--color-ink); }
/* Our own products: same card, ink eyebrow (never blue — that means an editorial pick — and
   never amber — that means warning/Pro; docs/design-system/README.md § 3). */
.gg-card--ours .gg-card__brand { color: var(--color-ink); }
@supports selector(:has(*)) {
  .gg-card:has(.gg-card__title a:focus-visible) { outline: 2px solid var(--focus-ring-blue); outline-offset: 2px; }
  .gg-card__title a:focus-visible { outline: none; }
}

/* ── Checklist ─────────────────────────────────────────────────────────── */
.gg-checklist__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-bottom: 8px; }
.gg-checklist__hint { text-align: center; margin-bottom: 28px; }
.gg-checklist__groups { columns: 3; column-gap: 32px; }
.gg-checklist__group { break-inside: avoid; border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.gg-checklist__group legend { padding: 0; margin-bottom: 4px; }
.gg-checklist__list { list-style: none; padding: 0; margin: 0; }
.gg-checklist__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gg-checklist__row .checkbox-label { flex: 1; min-width: 0; }
.gg-checklist__qty { color: var(--color-gray-500); font-weight: 400; }
.gg-checklist__shop { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--color-ink); }
.gg-checklist__progress { font-size: 14px; color: var(--color-gray-700); }
.gg-print-only { display: none; }

@media (max-width: 768px) {
  .gg-jump a { min-height: 44px; }
  .gg-jump ul {
    padding: 10px 16px;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent);
  }
  .gg-category, #checklist { scroll-margin-top: 80px; }
}
@media (max-width: 720px) {
  .gg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gg-checklist__groups { columns: 2; }
}
@media (max-width: 480px) {
  .gg-grid { grid-template-columns: 1fr; gap: 12px; }
  .gg-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 12px; }
  .gg-card__body { padding: 0; }
  .gg-card__cta { padding-top: 8px; }
  .gg-checklist__groups { columns: 1; }
  .gg-hero-links { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gg-card, .gg-jump a { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.gg-jump) { scroll-behavior: smooth; }
}

/* ── Print: the checklist only, plus the page address ──────────────────── */
@media print {
  nav:not([class]), .skip-link, footer, .hero, .gg-jump, .gg-category, .faq-section, .gg-how,
  .cta, .section-note, .gg-checklist__tools, .gg-checklist__hint, .gg-checklist__shop { display: none !important; }
  .gg-print-only { display: block; font-size: 10pt; color: black; margin-bottom: 12pt; }
  #checklist { padding: 0; max-width: none; }
  #checklist .section-title { font-size: 16pt; text-align: left; }
  .gg-checklist__groups { columns: 2; column-gap: 0.5in; }
  .gg-checklist .checkbox-label { min-height: 0; font-size: 11pt; color: black; }
  @page { margin: 0.5in; }
}
