/* Christmas Gift Ideas — "Candy-cane frost" */
@font-face { font-family: "Bagel Fat One"; src: url("/assets/fonts/bagel-fat-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/fonts/be-vietnam-pro-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/fonts/be-vietnam-pro-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/fonts/be-vietnam-pro-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/fonts/be-vietnam-pro-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sometype Mono"; src: url("/assets/fonts/sometype-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --red: #D7263D;          /* candy red — primary */
  --red-deep: #A51C30;     /* text-safe red on ice */
  --snow: #F5F8FA;         /* background */
  --ice: #CDE7F0;          /* panels */
  --ice-2: #E4F2F7;        /* light panels */
  --ink: #22252A;          /* charcoal text */
  --ink-2: #4A5058;        /* secondary text */
  --mint: #3FB8AF;         /* peppermint accents */
  --mint-ink: #136A64;     /* text-safe peppermint */
  --white: #FFFFFF;
  --line: #B7D4DF;
  --display: "Bagel Fat One", "Arial Black", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Sometype Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 14px;
  --wrap: 1180px;
  --cane: repeating-linear-gradient(135deg, var(--red) 0 14px, var(--white) 14px 21px, var(--mint) 21px 25px, var(--white) 25px 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--red); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--mint-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: .005em; color: var(--ink); }
h2 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.small { font-size: .9rem; color: var(--ink-2); }
.sr, .sprite { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.cane { height: 12px; background: var(--cane); }
.cane.thin { height: 7px; }

/* ---------- header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--red); flex: none; }
.brand-text { font: 700 .78rem/1.05 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--mint-ink); }
.brand-text span { font: 400 1.5rem/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--red); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; border-radius: 8px; }
.site-nav a:hover { background: var(--ice-2); color: var(--ink); }
.site-nav a[aria-current] { box-shadow: inset 0 -4px 0 var(--red); border-radius: 8px 8px 0 0; }

/* ---------- buttons, links */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 0; border-radius: 10px; background: var(--red); color: var(--white); font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 var(--red-deep); }
.btn:hover { background: var(--red-deep); color: var(--white); }
.btn.ghost { background: var(--white); color: var(--red-deep); box-shadow: inset 0 0 0 2px var(--red); }
.btn.ghost:hover { background: var(--red); color: var(--white); }
.btn-big { font-size: 1.08rem; min-height: 54px; padding: 12px 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; font: 700 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { background: var(--ink); color: var(--white); padding: 6px 9px; border-radius: 6px; }
.eyebrow span + span { background: var(--white); color: var(--mint-ink); box-shadow: inset 0 0 0 1.5px var(--mint); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.lede p { margin-bottom: .6em; }

/* ---------- frost panels: scalloped snow-cap top edge */
.frost { position: relative; background: var(--ice); border-radius: 0 0 var(--radius) var(--radius); margin-top: 14px; padding: 22px; }
.frost::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; background: radial-gradient(circle at 12px 12px, var(--ice) 11.5px, transparent 12.5px) 0 0 / 24px 12px repeat-x; }
.callout { background: var(--ice-2); border-left: 6px solid var(--mint); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; }
.callout p:last-child { margin: 0; }
.callout.adult { border-left-color: var(--red); background: #FDF0F2; }

/* ---------- hero */
.hero { position: relative; background:
  radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 2px, transparent 3px) 0 0 / 46px 46px,
  radial-gradient(circle at 70% 60%, rgba(255,255,255,.7) 0 1.5px, transparent 2.5px) 0 0 / 34px 34px,
  linear-gradient(180deg, var(--ice-2), var(--ice)); padding: 34px 0 54px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; z-index: 1;
  background: linear-gradient(45deg, transparent 50%, var(--ice) 50%) 0 0 / 22px 16px repeat-x, linear-gradient(-45deg, transparent 50%, var(--ice) 50%) 0 0 / 22px 16px repeat-x;
  -webkit-mask: linear-gradient(#000, #000); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: scaleY(-1); }
.hero-in { display: grid; gap: 28px; align-items: center; }
.hero h1 { max-width: 15ch; }
.sentence { margin-top: 18px; background: var(--white); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: 0 10px 30px -18px rgba(34,37,42,.5); }
.sentence p { font-size: 1.22rem; line-height: 2.1; margin: 0 0 10px; font-weight: 600; }
.sentence label { display: inline; font-weight: 600; }
.sentence select { font: 700 1.12rem/1.3 var(--body); color: var(--red-deep); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23A51C30' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 4px center; -webkit-appearance: none; appearance: none; border: 0; border-bottom: 3px dashed var(--red); border-radius: 0; padding: 2px 24px 2px 4px; max-width: 100%; cursor: pointer; margin: 0 2px; }
.sentence select:hover { background-color: var(--ice-2); }
.sentence-go, .finder-go { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.surprise { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--mint-ink); text-decoration: none; padding: 8px 4px; }
.surprise:hover { color: var(--ink); }
.surprise-out { margin-top: 14px; }
.surprise-out .idea-card { max-width: 520px; }
.hero-media { position: relative; }
.hero-photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 8px rgba(255,255,255,.75), 0 18px 40px -20px rgba(34,37,42,.6); background: var(--ice); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-blank { aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--ice-2), var(--mint)); }
.hero-photo figcaption { position: absolute; right: 8px; top: 8px; z-index: 2; max-width: calc(100% - 16px); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.photo-credit { font-size: .74rem; line-height: 1.3; }
.hero-photo .photo-credit, .tile-credit { background: rgba(34,37,42,.78); color: var(--white); padding: 3px 8px; border-radius: 6px; display: inline-block; }
.hero-photo .photo-credit a, .tile-credit a { color: var(--white); }

/* ---------- countdown */
.countdown { background: var(--red); color: var(--white); border-radius: var(--radius); padding: 14px 16px 12px; position: relative; }
.countdown::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 5px; background: var(--cane); border-radius: 0 0 4px 4px; opacity: .9; }
.countdown.on-hero { margin: -34px 12px 0; z-index: 2; box-shadow: 0 12px 24px -12px rgba(34,37,42,.6); }
.cd-label { margin: 4px 0 6px; font-weight: 700; font-size: .95rem; }
.cd-digits { display: flex; gap: 8px; margin: 0; flex-wrap: wrap; }
.cd-unit { display: flex; flex-direction: column; align-items: center; background: var(--white); color: var(--ink); border-radius: 8px; padding: 6px 4px 4px; min-width: 64px; }
.cd-unit b { font: 700 1.9rem/1 var(--mono); color: var(--red-deep); font-variant-numeric: tabular-nums; }
.cd-unit small { font: 600 .7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.cd-note { margin: 8px 0 0; font-size: .78rem; opacity: .95; }
.countdown.compact { align-self: start; }

/* ---------- bands */
.band { padding: 52px 0; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin-bottom: 20px; }
.band-head h2 { margin: 0; }

/* the list — recipients with dotted leaders */
.list-layout { display: grid; gap: 26px; }
.the-list { list-style: none; margin: 0; padding: 14px 18px; background: var(--white); border-radius: var(--radius); border-left: 10px solid transparent; border-image: var(--cane) 1; columns: 1; }
.the-list li { break-inside: avoid; }
.the-list a { display: flex; align-items: baseline; gap: 6px; padding: 8px 2px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.08rem; }
.the-list a:hover .who { color: var(--red-deep); text-decoration: underline; }
.the-list .dots { flex: 1; border-bottom: 3px dotted var(--line); transform: translateY(-5px); min-width: 20px; }
.the-list .n { font: 700 1rem var(--mono); color: var(--red-deep); }
.the-list.wide { columns: 1; padding: 18px 22px; }
.list-note { margin: -4px 0 10px; font-size: .9rem; color: var(--ink-2); }
.ages-card h3 { margin-top: 0; }
.ages-card ul { list-style: none; margin: 0 0 10px; padding: 0; }
.ages-card li a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(34,37,42,.12); text-decoration: none; color: var(--ink); font-weight: 700; }
.ages-card li a .n { color: var(--red-deep); font-weight: 600; font-size: .92rem; }

/* gift sizes */
.sizes { display: grid; gap: 30px 20px; }
.size-panel { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 20px; background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.size-panel svg { grid-row: span 3; }
.size-panel:hover { border-color: var(--red); }
.size-panel:hover .size-name { text-decoration: underline; }
.size-name { font-weight: 700; font-size: 1.25rem; }
.size-blurb { color: var(--ink-2); font-size: .95rem; }
.size-n { color: var(--red-deep); font-weight: 700; font-size: .9rem; }
.size-stocking { color: var(--red); } .size-tree { color: var(--mint-ink); } .size-big { color: var(--red-deep); }
.size-panel .size-name, .size-panel .size-blurb { color: var(--ink); }
.size-panel .size-blurb { color: var(--ink-2); }

/* advent */
.advent-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advent-teaser { display: grid; gap: 26px; }
.advent-photo { margin: 0 0 16px; }
.advent-grid { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 8px; background: var(--red); border-radius: var(--radius); background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 2px, transparent 3px), radial-gradient(circle at 70% 80%, rgba(255,255,255,.14) 0 1.5px, transparent 2.5px); background-size: 40px 40px, 30px 30px; }
.door a { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 92px; padding: 8px 9px; border-radius: 8px; background: linear-gradient(160deg, var(--white), var(--ice-2) 60%, var(--ice)); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); outline: 2px dashed rgba(34,37,42,.18); outline-offset: -7px; }
.door a:hover { background: var(--white); }
.door a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.door-num { font: 700 1.9rem/1 var(--mono); color: var(--red-deep); }
.door-when { font: 600 .7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.door-idea { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.door.is-open a { background: var(--white); outline-color: var(--mint); }
.door.is-open .door-num { color: var(--mint-ink); }
.door.is-today a { box-shadow: 0 0 0 4px var(--mint), inset 0 0 0 2px var(--white); }
.door.d24 { grid-column: span 2; grid-row: span 2; }
.door.d24 .door-num { font-size: 3.4rem; }
.door.d1, .door.d12, .door.d18 { grid-column: span 2; }
.advent-grid.compact .door a { min-height: 74px; }
.advent-grid.compact .door-idea { font-size: .74rem; }

/* mosaic tiles (collections, guides) */
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile { position: relative; min-height: 210px; border-radius: var(--radius); overflow: hidden; background: var(--ice); display: flex; align-items: flex-end; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-text { position: relative; z-index: 1; width: 100%; padding: 46px 16px 14px; }
.tile.has-photo .tile-text { background: linear-gradient(180deg, transparent, rgba(34,37,42,.86) 55%); }
.tile h2, .tile h3 { margin: 0 0 2px; font-size: 1.3rem; }
.tile a { color: var(--ink); text-decoration: none; }
.tile a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile.has-photo a, .tile.has-photo p { color: var(--white); }
.tile p { margin: 0; font-weight: 700; font-size: .9rem; }
.tile:hover h2 a, .tile:hover h3 a { text-decoration: underline; }
.tile-credit { position: absolute; top: 8px; right: 8px; z-index: 2; }

/* idea cards */
.idea-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.idea-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 16px; overflow: hidden; }
.idea-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--cane); }
.idea-card.size-tree::before { background: repeating-linear-gradient(135deg, var(--mint) 0 10px, var(--white) 10px 16px); }
.idea-card.size-big::before { background: var(--red-deep); }
.idea-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.size-badge { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.size-badge span { color: var(--ink); }
.size-badge.big svg { width: 44px; height: 44px; }
.size-badge.big span { font-size: .85rem; }
.age-flag { font: 700 .78rem/1 var(--mono); background: var(--ink); color: var(--white); padding: 5px 7px; border-radius: 6px; }
.idea-title { font-size: 1.12rem; margin: 0 0 6px; }
.idea-title a { color: var(--ink); text-decoration: none; }
.idea-title a:hover { color: var(--red-deep); text-decoration: underline; }
.idea-sum { color: var(--ink-2); font-size: .97rem; margin-bottom: 8px; }
.idea-who { font-size: .86rem; color: var(--ink-2); margin-bottom: 12px; }
.idea-who span { font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mint-ink); margin-right: 4px; }
.idea-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.btn-amz { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px; border-radius: 9px; background: var(--red); color: var(--white); font-weight: 700; font-size: .93rem; text-decoration: none; }
.btn-amz:hover { background: var(--red-deep); color: var(--white); }
.more { font-weight: 700; font-size: .93rem; }
.amz-note { font-size: .85rem; color: var(--ink-2); margin-top: 16px; }
.empty { padding: 20px; background: var(--ice-2); border-radius: var(--radius); }

/* duo cards, guides list */
.duo { display: grid; gap: 34px 22px; }
.duo-card h2 { margin-top: 0; }
.ticks { padding-left: 1.2em; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-list a { display: block; padding: 16px 18px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; }
.guide-list a:hover { border-color: var(--red); }
.guide-list strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.guide-list span { color: var(--ink-2); font-size: .94rem; }

/* ---------- inner pages */
.page { padding-top: 34px; padding-bottom: 60px; }
.page-head { margin-bottom: 26px; }
.page-head.with-badge { display: flex; gap: 20px; align-items: center; }
.size-hero { flex: none; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.term-page { padding-top: 0; }
.term-head { background: linear-gradient(180deg, var(--ice-2), var(--ice)); padding: 26px 0 30px; margin-bottom: 26px; }
.term-head-in { display: grid; gap: 22px; align-items: center; }
.term-media .photo { margin: 0; }
.term-media img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.count { font-weight: 700; color: var(--red-deep); margin: 0; }
.photo { margin: 0 0 24px; }
.photo img { border-radius: var(--radius); }
.photo figcaption { margin-top: 6px; font-size: .8rem; color: var(--ink-2); }
.wide-photo img { width: 100%; max-height: 420px; object-fit: cover; }
.age-strip, .size-tabs, .size-switch { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 20px; }
.age-strip span { font-weight: 700; }
.age-strip a, .size-tabs a, .size-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.size-tabs a span { font: 700 .8rem var(--mono); color: var(--red-deep); }
.age-strip a:hover, .size-tabs a:hover, .size-switch a:hover { border-color: var(--red); }
.size-tabs a[aria-current], .size-switch a[aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.size-tabs a[aria-current] span { color: var(--ice); }
.size-tabs svg { color: var(--red); }
.size-tabs a[aria-current] svg, .size-switch a[aria-current] svg { color: var(--white); }
.siblings { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.siblings h2 { font-size: 1.2rem; }
.siblings ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 18px; }
.siblings a { display: block; padding: 5px 0; font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pager a { padding: 8px 14px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager a[aria-current] { background: var(--ink); color: var(--white); }

/* idea page */
.idea-detail { display: grid; gap: 28px; }
.idea-main h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-top: 8px; }
.suits, .maker { font-size: 1.02rem; }
.buy-box { margin: 26px 0 24px; }
.buy-box .small { margin: 12px 0 0; color: var(--ink-2); }
.facets { display: grid; gap: 10px; margin: 20px 0; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.facets div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; }
.facets dt { font: 700 .76rem/1.8 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mint-ink); }
.facets dd { margin: 0; }
.sources-box { margin-top: 26px; padding: 16px 18px; background: var(--ice-2); border-radius: var(--radius); }
.sources-box h2 { font-size: 1.05rem; margin-bottom: 8px; }
.sources { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.checked { color: var(--ink-2); font-size: .86rem; }
.related { margin-top: 48px; }
.surprise-flag { display: inline-flex; gap: 8px; align-items: center; background: var(--ice); padding: 8px 14px; border-radius: 10px; font-weight: 600; }

/* finder */
.finder-form { display: grid; gap: 20px; }
.step { margin: 0; border: 0; padding: 18px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); min-width: 0; }
.step legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 1.15rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.step legend small { font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--red); color: var(--white); font-weight: 700; }
.tiles { clear: both; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.tile-opt { position: relative; display: block; }
.tile-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-opt span { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border-radius: 9px; background: var(--ice-2); border: 2px solid transparent; font-weight: 600; cursor: pointer; line-height: 1.25; }
.tile-opt span svg { color: var(--red); flex: none; }
.tile-opt input:checked + span { background: var(--white); border-color: var(--red); box-shadow: inset 6px 0 0 var(--red); }
.tile-opt input:focus-visible + span { outline: 3px solid var(--mint-ink); outline-offset: 2px; }
.tile-opt span:hover { border-color: var(--line); }
.step select { clear: both; width: 100%; max-width: 480px; min-height: 48px; padding: 10px 12px; font: 600 1rem var(--body); border-radius: 9px; border: 2px solid var(--line); background: var(--white); color: var(--ink); }
.step-age.is-hidden { display: none; }
.results { margin-top: 36px; }
.results .cane { margin-bottom: 20px; border-radius: 4px; }

/* advent pages */
.advent-head { display: grid; gap: 20px; }
.advent-board .advent-grid { padding: 16px; gap: 10px; }
.advent-board .door a { min-height: 120px; }
.door-stage { display: grid; gap: 26px; align-items: start; }
.door-big { aspect-ratio: 1; max-width: 260px; display: grid; place-items: center; border-radius: var(--radius); background: var(--red); box-shadow: inset 0 0 0 10px var(--red-deep); }
.door-big .door-num { font-size: 6rem; color: var(--white); }
.door-stage.is-open .door-big { background: var(--mint); box-shadow: inset 0 0 0 10px var(--mint-ink); }
.door-stage.is-open .door-big .door-num { color: var(--ink); }
.door-copy h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.door-copy h1 .mono { display: block; font-size: .5em; color: var(--red-deep); }
.door-note { font-size: 1.1rem; font-weight: 600; }
.door-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-weight: 700; }

/* toys, order */
.toy-list { margin: 30px 0; padding: 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.toy-list h2 { margin-bottom: 6px; }
.toy-list .src { font-size: .92rem; color: var(--ink-2); }
.toys { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: toy; display: grid; gap: 0; }
.toys li { counter-increment: toy; display: grid; grid-template-columns: 2.6em 1fr; gap: 2px 12px; padding: 10px 0; border-top: 1px dotted var(--line); }
.toys li::before { content: counter(toy, decimal-leading-zero); grid-row: span 4; font: 700 1.1rem/1.4 var(--mono); color: var(--red-deep); }
.toy-name { font-weight: 700; }
.toy-meta, .toy-note { font-size: .9rem; color: var(--ink-2); }
.toy-buy { font-size: .9rem; font-weight: 700; }
.toy-awaiting { margin-top: 30px; }
.await-list { padding-left: 1.2em; }
.await-list li { margin-bottom: 10px; }
.order-head { display: grid; gap: 20px; }
.order-sec { margin: 0 0 30px; }
.order-sec:not(.frost) { padding: 22px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.post-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.post-table th, .post-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-table thead th { background: var(--ink); color: var(--white); font-size: .9rem; }
.post-table .small { display: block; font-weight: 400; }

/* guides */
.guide-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: 26px; }
.guide-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-text { padding: 16px 18px; }
.guide-text h2 { font-size: 1.2rem; }
.guide-text h2 a { color: var(--ink); text-decoration: none; }
.guide-text h2 a::after { content: ""; position: absolute; inset: 0; }
.guide-card:hover h2 a { text-decoration: underline; color: var(--red-deep); }
.guide-text p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.guide-card .tile-credit { z-index: 2; }
.guide { max-width: 760px; }
.guide-head { margin-bottom: 18px; }
.guide-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.5em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose-page h1 { max-width: 20ch; }
.big-mail { font-size: 1.4rem; font-weight: 700; }
.faqs { display: grid; gap: 10px; max-width: 820px; margin-bottom: 24px; }
.faq { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style-position: outside; }
.faq[open] summary { border-bottom: 1px dotted var(--line); }
.faq .prose { padding: 12px 18px 4px; }
.credits-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.credits-list li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; background: var(--white); padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.credits-list img { border-radius: 8px; }
.nf { text-align: left; }
.nf-num { font-size: 5rem; font-weight: 700; color: var(--red); margin: 0; line-height: 1; }
.nf-links { font-weight: 700; }

/* ---------- footer */
.site-foot { background: var(--ink); color: #E6EDF0; margin-top: 30px; }
.site-foot a { color: var(--ice); }
.site-foot a:hover { color: var(--white); }
.site-foot :focus-visible { outline-color: var(--ice); }
.foot-in { display: grid; gap: 26px; padding-top: 34px; padding-bottom: 14px; }
.foot-name { font: 400 1.6rem/1 var(--display); color: var(--white); }
.foot-brand p { max-width: 58ch; font-size: .95rem; }
.disclosure { background: rgba(255,255,255,.07); padding: 12px 14px; border-radius: 10px; border-left: 4px solid var(--mint); }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 6px; }
.copy { font-size: .85rem; color: #B9C4CA; padding-top: 10px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.12); margin: 0 auto; }

/* ---------- responsive */
@media (max-width: 599px) {
  .site-nav { width: 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .site-nav a { padding: 8px 4px; font-size: .86rem; text-align: center; background: var(--ice-2); }
  .cd-unit { min-width: 0; flex: 1; }
  .cd-unit b { font-size: 1.55rem; }
  .sentence p { font-size: 1.1rem; }
  .facets div { grid-template-columns: 1fr; gap: 0; }
  .door-num { font-size: 1.5rem; }
  .advent-grid { padding: 8px; gap: 6px; }
  .door a { min-height: 76px; padding: 6px; }
  .door-when { font-size: .62rem; }
  .door-idea { font-size: .72rem; }
  .advent-board .door a { min-height: 92px; }
  .door.d6, .door.d9 { grid-column: span 2; }
  .page-head.with-badge { align-items: flex-start; }
  .size-hero { width: 56px; height: 56px; }
}
@media (min-width: 600px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .the-list { columns: 2; column-gap: 34px; }
  .the-list.wide { columns: 2; }
  .guide-list { grid-template-columns: repeat(2, 1fr); }
  .advent-grid { grid-template-columns: repeat(6, 1fr); }
  .duo { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { padding: 44px 0 70px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 44px; }
  .countdown.on-hero { position: absolute; left: -26px; bottom: -30px; margin: 0; max-width: 360px; }
  .list-layout { grid-template-columns: 1fr 1.6fr; align-items: start; }
  .list-intro { grid-row: span 2; }
  .sizes { grid-template-columns: repeat(3, 1fr); }
  .size-panel { grid-template-columns: 1fr; text-align: left; }
  .size-panel svg { grid-row: auto; }
  .advent-teaser { grid-template-columns: 1fr 1.5fr; align-items: start; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic .tile:first-child { grid-column: span 2; grid-row: span 2; min-height: 434px; }
  .mosaic.index .tile:first-child { grid-column: auto; grid-row: auto; min-height: 210px; }
  .guide-list { grid-template-columns: repeat(3, 1fr); }
  .term-head-in { grid-template-columns: 1.3fr 1fr; }
  .idea-detail.has-photo { grid-template-columns: 1.4fr 1fr; }
  .advent-head, .order-head { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .door-stage { grid-template-columns: 260px 1fr; }
  .foot-in { grid-template-columns: 1.1fr 1.4fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .snow { display: none; }
}
@media print {
  .site-head nav, .site-foot nav, .snow, .sentence, .skip { display: none; }
}
.toy-tag { display: inline-block; margin-left: 6px; font: 700 .68rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--ice); color: var(--ink); padding: 1px 6px; border-radius: 4px; vertical-align: middle; }
.toy-excl { font-size: .86rem; color: var(--ink-2); }
.advent-board { margin-bottom: 26px; }
.idea-aside { align-self: start; text-align: center; padding-top: 30px; }
.idea-aside svg { margin: 0 auto 6px; display: block; }
.idea-aside .aside-size { font: 700 1rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 6px; }
.idea-aside p { color: var(--ink-2); }
.idea-aside a { font-weight: 700; }
@media (max-width: 959px) { .idea-aside { display: none; } }
.hero-in > *, .list-layout > *, .advent-teaser > *, .idea-detail > *, .term-head-in > *, .duo > * { min-width: 0; }
.sentence select { width: auto; max-width: 100%; }
@media (max-width: 599px) {
  .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); }
  .post-table thead { display: none; }
  .post-table, .post-table tbody, .post-table tr, .post-table th, .post-table td { display: block; width: 100%; }
  .post-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .post-table th, .post-table td { border: 0; padding: 2px 12px; }
  .post-table td.mono { color: var(--red-deep); font-weight: 700; }
}

/* ---------- ads (5od) + cookie choice */
.ad-slot[hidden], .cookie-bar[hidden] { display: none !important; }
.ad-slot { display: block; margin: 1.4rem auto; }
.ad-slot:has(ins[data-fiveod="empty"], ins[data-fiveod="error"], ins[data-fiveod="nofit"]) { display: none; }
.ad-in { display: flex; justify-content: center; }
.ad-head { max-width: var(--wrap); padding: 0 16px; margin: 18px auto 0; }
.ad-head + main.page { padding-top: 22px; }
.ad-content { padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.idea-grid > .ad-content { grid-column: 1 / -1; margin: 0; }
.prose > .ad-content { margin: 1.4rem 0; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); color: var(--ink);
  box-shadow: 0 -6px 24px rgba(34, 37, 42, .18); padding: 0 0 16px; max-height: 80vh; overflow-y: auto; }
.cookie-bar > .cane { margin-bottom: 14px; }
.cookie-in { display: grid; gap: 12px 32px; align-items: center; }
@media (min-width: 860px) { .cookie-in { grid-template-columns: minmax(0, 1fr) auto; } }
.cookie-h { font: 400 1.5rem/1.1 var(--display); color: var(--red); margin: 0 0 6px; }
.cookie-txt p { margin: 0 0 6px; font-size: .97rem; }
.cookie-now { font-weight: 700; color: var(--mint-ink); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { flex: 1 1 12rem; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 10px; background: var(--red); color: var(--white);
  font: 700 1rem/1.2 var(--body); cursor: pointer; box-shadow: 0 2px 0 var(--red-deep); }
.cookie-btn:hover { background: var(--red-deep); }
.cookie-h:focus { outline: none; }
.cookie-h:focus-visible { outline: 3px solid var(--mint-ink); }
@media (prefers-reduced-motion: no-preference) { .cookie-bar { animation: cookie-up .25s ease-out; } }
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }
@media print { .cookie-bar, .ad-slot { display: none !important; } }
