/* Gift finder (gift idea generator page + Christmas gift list page). Uses the site tokens from site-2026-v1.css. */
.gf { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; text-align: left; }
.gf-controls { display: flex; flex-direction: column; gap: 12px; }
.gf-seg, .gf-ages { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-chip { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .2s, border-color .2s; }
.gf-chip:hover { border-color: rgba(16,53,72,0.3); }
.gf-chip.on { background: var(--ink); color: var(--white); }
.gf-seg .gf-chip { padding: 9px 22px; }
.gf-result { margin-top: 24px; padding: 28px; border-radius: var(--radius-md); background: var(--cream); }
.gf-img { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; background: var(--white); }
.gf-img[hidden] { display: none; }
.gf-for { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.gf-name { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; line-height: 1.15; margin: 8px 0 22px; }
.gf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gf-msg { margin-top: 14px; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.gf-store { margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); }
.gf-store select { font: inherit; font-size: 0.85rem; margin-left: 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--ink); max-width: 100%; }
.gift-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gift-group { background: var(--white); border-radius: var(--radius-md); padding: 22px 24px; }
.gift-group h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.gift-answer { font-size: 0.9rem; line-height: 1.45; color: var(--ink); margin-bottom: 12px; }
.gift-group ul { list-style: none; columns: 2; column-gap: 18px; }
.gift-group li { font-size: 0.92rem; padding: 3px 0; break-inside: avoid; }
.gift-group a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(16,53,72,0.25); }
.gift-group a:hover { border-color: var(--ink); }
@media (max-width: 1024px) { .gift-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .gf { padding: 20px 16px; }
  .gf-result { padding: 22px 18px; }
  .gf-actions .btn { width: 100%; }
  .gift-groups { grid-template-columns: 1fr; }
}

/* ── Christmas photo header, shared by the gift list and gift idea generator pages.
   Seasonal: swap to non-Christmas gift photos after 24 December (see ticklists-todo.md). ── */
  /* Christmas photo header: four photos crossfade slowly (24s loop, the first starts already visible); left side darkened for the text */
  .xmas-hero { position: relative; overflow: hidden; padding: 116px 0 64px; background: #1b1410; color: var(--white); }
  .xmas-slides { position: absolute; inset: 0; z-index: 0; }
  .xmas-slides span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: xmasFade 24s infinite; }
  .xmas-slides span:nth-child(1) { background-image: url(/img/christmas/xmas-header-1.webp); animation-delay: -2s; }
  .xmas-slides span:nth-child(2) { background-image: url(/img/christmas/xmas-header-2.webp); animation-delay: 4s; }
  .xmas-slides span:nth-child(3) { background-image: url(/img/christmas/xmas-header-3.webp); animation-delay: 10s; }
  .xmas-slides span:nth-child(4) { background-image: url(/img/christmas/xmas-header-4.webp); animation-delay: 16s; }
  @keyframes xmasFade { 0% { opacity: 0; } 8% { opacity: 1; } 25% { opacity: 1; } 33% { opacity: 0; } 100% { opacity: 0; } }
  .xmas-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,10,8,0.82) 0%, rgba(12,10,8,0.62) 38%, rgba(12,10,8,0.15) 70%, rgba(12,10,8,0.05) 100%), linear-gradient(0deg, rgba(12,10,8,0.45) 0%, transparent 30%); }
  .xmas-hero .wrap { position: relative; z-index: 2; }
  .xmas-hero .hero-card { background: transparent; min-height: 0; padding: 0; align-items: center; overflow: visible; }
  .xmas-hero .hero-copy { padding-bottom: 0; }
  .xmas-hero .eyebrow { color: var(--lime); }
  .xmas-hero .display { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
  .xmas-hero .lede { color: var(--white); font-weight: 700; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
  .xmas-hero .microcopy { color: var(--white); font-weight: 700; text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
  .xmas-hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }
  .xmas-hero .btn-ghost:hover { border-color: var(--white); }
  .xmas-hero .hero-media { padding-bottom: 0 !important; }
  /* The white finder card sits inside the photo header: keep its text and outline buttons dark */
  .xmas-hero .gf { color: var(--ink); }
  .xmas-hero .gf .btn-ghost { color: var(--ink); border-color: rgba(16,53,72,0.25); }
  .xmas-hero .gf .btn-ghost:hover { border-color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .xmas-slides span { animation: none; } .xmas-slides span:nth-child(1) { opacity: 1; } }
  @media (max-width: 1024px) { .xmas-hero::after { background: linear-gradient(180deg, rgba(12,10,8,0.75) 0%, rgba(12,10,8,0.6) 55%, rgba(12,10,8,0.8) 100%); } .xmas-hero .hero-card { padding: 0; } }
  @media (max-width: 760px) { .xmas-hero { padding: 96px 0 40px; } }
  /* Centred version (gift idea generator): the whole photo is darkened evenly behind centred text */
  .xmas-hero.centred::after { background: radial-gradient(90% 80% at 50% 40%, rgba(12,10,8,0.55) 0%, rgba(12,10,8,0.78) 100%); }
  .xmas-hero.centred .hero-card { display: block; }
