/* The slang dictionary pages (pages.js): the app's palette and fonts, laid out for reading. */
:root {
  --bg: #fbf8f3; --card: #ffffff; --text: #2b2d33; --muted: #50555f; --line: #ece5d8; --soft: #f3eee6;
  --accent: #6a4fd6; --plum: #3a3357; --sage: #66b98d; --marigold: #ffc53d; --tangerine: #ec5a96; --poppy: #9a84f2; --pink: #ffd6e6;
  --stripes: linear-gradient(to bottom, var(--sage) 0 25%, var(--marigold) 25% 50%, var(--tangerine) 50% 75%, var(--poppy) 75%);
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1d22; --card: #25272e; --text: #f3efe7; --muted: #c4bfb6; --line: #3a3c44; --soft: #2c2e36; --accent: #c7b8ff; }
}
* { box-sizing: border-box; }
/* The white bands and stripes run edge to edge by drawing past the sides of the screen; cut that off so it never
   makes the page wider than the screen (phones would zoom out to fit it). */
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.3rem/1.6 var(--body); }
a { color: var(--accent); }

.top { position: sticky; top: 0; z-index: 5; background: var(--card); } /* stays put, so another word is one tap away */
.top::after { content: ""; display: block; height: 12px; background: var(--stripes); }
.top-inner { max-width: 720px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font: 600 1.55rem var(--display); letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.logo span { color: var(--tangerine); }
.top-link { color: var(--text); font-weight: 700; }
.top-nav { display: flex; align-items: center; gap: 14px; }
.top-search { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--text); color: var(--card); font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 3px 3px 0 var(--tangerine); }
.top-search svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 479px) { .top-search { padding: 0; } .top-search span { display: none; } }

main { max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font: 500 clamp(2.4rem, 8vw, 3.4rem)/1.05 var(--display); letter-spacing: -0.01em; margin: 4px 0 16px; overflow-wrap: anywhere; }
h2 { font: 500 1.7rem/1.2 var(--display); margin: 30px 0 8px; }
.crumbs { font-size: 0.95rem; color: var(--muted); }
.kind { margin: 18px 0 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--muted); }
.answer { font: 500 1.8rem/1.25 var(--display); margin: 0 0 12px; padding: 16px 18px; background: var(--card); border: 2px solid var(--text); border-radius: 16px; box-shadow: 4px 4px 0 var(--text); }
.setup { font-style: italic; color: var(--muted); }
blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--tangerine); font-style: italic; color: var(--muted); }
.small { font-size: 1rem; color: var(--muted); }
.note { background: #ffd6e6; color: #2b2d33; border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 1.05rem; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.facts span { padding: 3px 12px; border-radius: 999px; background: var(--soft); font-size: 0.95rem; font-weight: 700; }
.sources { padding-left: 20px; }
.lede { font-size: 1.2rem; color: var(--muted); }

.cta { margin: 32px 0; padding: 20px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; }
.cta-title { font: 600 1.6rem var(--display); margin: 0 0 6px; }
.cta p { margin: 0 0 14px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: #2b2d33; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 3px 3px 0 var(--tangerine); }

.more ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.more a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; }
.index { list-style: none; padding: 0; margin: 0; }
.index li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.index a { font-weight: 700; font-size: 1.2rem; }
.index span { display: block; color: var(--muted); font-size: 1rem; }

footer { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 0.95rem; }

/* The one-sentence answer under the big one, and the most-missed report */
.in-short { font-size: 1.1rem; }
.missed { padding-left: 28px; }
.missed li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.missed a { font-weight: 700; font-size: 1.2rem; }
.missed span { color: var(--muted); }

/* The holiday gift guide */
.top-picks { padding-left: 28px; }
.top-picks li { padding: 6px 0; }
.top-picks a { font-weight: 700; }
.pick-price { color: var(--muted); }
.gift-index { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gift-index a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; font-size: 1rem; }
.gift { margin: 28px 0; padding: 4px 18px 10px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; }
.gift h2 { margin-top: 16px; }
.gift h3 { font: 600 1.1rem var(--display); margin: 14px 0 4px; }
.buy { font-size: 1.1rem; }
.gift-head { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.gift-head h2 { margin: 0; }
.gift-pic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; font-size: 2.2rem; background: linear-gradient(135deg, var(--marigold), var(--tangerine)); border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--text); }
.gift .gift-card-name { font: 600 1.45rem/1.2 var(--display); margin: 0; }

/* The gift filter: three dropdowns and a button, in one card */
.gift-filter { margin: 18px 0 22px; padding: 16px 18px 18px; background: var(--card); border: 2px solid var(--text); border-radius: 18px; box-shadow: 4px 4px 0 var(--text); }
.filter-title { font: 600 1.2rem var(--display); margin: 0 0 10px; }
.filter-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.filter-fields label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.filter-fields select { font: 700 1rem var(--body); color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 46px; width: 100%; }
.filter-fields select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.filter-fields .btn { border: none; cursor: pointer; font: 700 1rem var(--body); min-height: 46px; }
.filter-note { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 600px) { .filter-fields { grid-template-columns: 1fr 1fr; } .filter-fields label:first-child, .filter-fields .btn { grid-column: 1 / -1; } }
.all-lists { margin: 28px 0; padding: 4px 18px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; }
.all-lists summary { cursor: pointer; font: 600 1.15rem var(--display); padding: 12px 0; }
.all-lists h3 { font: 600 1rem var(--display); margin: 14px 0 4px; }
.all-lists ul { margin: 0 0 8px; padding-left: 20px; columns: 2; }
.all-lists li { margin: 2px 0; }

/* Straight from kids: the ranked list from kids' own wishlist videos */
.age-tabs { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.age-tabs a, .age-tabs strong { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.age-tabs strong { background: var(--text); color: var(--bg); border-color: var(--text); }
.real-kids { list-style: none; counter-reset: rk; padding: 0; margin: 0; }
.real-kids li { counter-increment: rk; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.real-kids li::before { content: counter(rk); grid-row: span 3; font: 600 1.8rem/1 var(--display); color: var(--tangerine); }
.rk-name { font: 600 1.25rem/1.25 var(--display); }
.rk-meta { color: var(--muted); font-size: 1rem; }
.rk-buy { font-size: 0.95rem; }

/* ---------- Word pages (November 2026 look) ----------
   The answer first on a white band, fact stickers with the brand's icons, section icons, the example as a
   text bubble, and a side column: a quick guess, search, and the most searched words. */
main.wide { max-width: 1120px; }
.top-inner { max-width: 1120px; }
.word-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 960px) { .word-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } }

.answer-band {
  position: relative; margin: 12px 0 34px; padding: 26px 0 30px;
  background: var(--card); box-shadow: 0 0 0 100vmax var(--card); clip-path: inset(0 -100vmax -15px);
}
.answer-band::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: -15px; height: 12px; background: var(--stripes); }
.bar { display: inline-block; padding: 5px 14px; border-radius: 6px; background: var(--pink); color: #2b2d33; font: 800 0.95rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.answer-band h1 { margin: 14px 0 14px; }
.means { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.means-k { font: 800 1rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tangerine); }
.means-v { font: 500 clamp(1.7rem, 4.6vw, 2.4rem)/1.2 var(--display); }

.stickers { list-style: none; padding: 0; margin: 22px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.sticker { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--card); border: 2.5px solid var(--text); border-radius: 18px; padding: 12px 16px 14px; }
.sticker:nth-child(4n+1) { box-shadow: 5px 5px 0 var(--marigold); transform: rotate(-1deg); }
.sticker:nth-child(4n+2) { box-shadow: 5px 5px 0 var(--sage); transform: rotate(0.8deg); }
.sticker:nth-child(4n+3) { box-shadow: 5px 5px 0 var(--poppy); transform: rotate(-0.6deg); }
.sticker:nth-child(4n) { box-shadow: 5px 5px 0 var(--tangerine); transform: rotate(1deg); }
.sticker .ico { width: 48px; height: 48px; flex: none; }
.sticker span { font: 500 1.2rem/1.2 var(--display); }
.sticker small { display: block; font: 800 0.75rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

article h2 { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
h2 .ico { width: 44px; height: 44px; flex: none; }
.bubble { display: inline-block; margin: 6px 0 0; background: color-mix(in srgb, var(--poppy) 20%, var(--card)); border-radius: 26px 26px 26px 6px; padding: 16px 22px; font-size: 1.3rem; font-weight: 700; }

/* The side column: on phones it follows the article. */
.side { display: grid; gap: 24px; align-content: start; }
@media (min-width: 960px) { .side { position: sticky; top: 100px; margin-top: 12px; } }
.guess { background: var(--plum); color: #fbf8f3; border-radius: 18px; padding: 22px; }
.guess-label { margin: 0; font: 800 0.9rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--marigold); }
.guess-term { margin: 6px 0 10px; font: 500 2.6rem/1.05 var(--display); }
.guess-term a { color: inherit; text-decoration: none; }
.guess-choice { display: block; width: 100%; margin-top: 10px; padding: 11px 15px; text-align: left; border-radius: 12px; border: 2px solid rgb(255 255 255 / 0.3); background: none; color: inherit; font: 700 1.05rem/1.35 var(--body); cursor: pointer; }
.guess-choice:hover:not(:disabled) { border-color: rgb(255 255 255 / 0.7); }
.guess-choice:disabled { cursor: default; }
.guess-choice.right { border-color: var(--sage); background: rgb(102 185 141 / 0.35); }
.guess-choice.wrong { border-color: var(--tangerine); background: rgb(236 90 150 / 0.3); text-decoration: line-through; }
.guess-caption { margin: 14px 0 0; font-size: 1.05rem; color: #ece8f7; }
.guess-caption a { color: #d9cfff; font-weight: 700; }
.side-search, .most-searched { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 20px; }
.side h2 { margin: 0 0 12px; font-size: 1.5rem; }
.field { position: relative; display: block; }
.ico-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; }
.field input { width: 100%; min-height: 52px; padding: 12px 16px 12px 50px; border: 2.5px solid var(--text); border-radius: 999px; background: var(--bg); color: var(--text); font: 1.1rem var(--body); }
.side-search .btn { margin-top: 12px; border: none; cursor: pointer; font: 800 1.05rem var(--body); }
.most-searched ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.most-searched a { display: inline-block; text-decoration: none; color: var(--text); font: 500 1.2rem var(--display); padding: 6px 15px; border-radius: 14px; border: 2px solid var(--text); background: var(--card); }
.most-searched li:nth-child(4n+1) a { box-shadow: 4px 4px 0 var(--sage); }
.most-searched li:nth-child(4n+2) a { box-shadow: 4px 4px 0 var(--marigold); }
.most-searched li:nth-child(4n+3) a { box-shadow: 4px 4px 0 var(--tangerine); }
.most-searched li:nth-child(4n) a { box-shadow: 4px 4px 0 var(--poppy); }

/* The bottom band: the hook and where to go next. */
.next { position: relative; margin: 48px 0 8px; padding: 40px 0 44px; text-align: center; background: var(--card); box-shadow: 0 0 0 100vmax var(--card); clip-path: inset(-12px -100vmax 0); }
.next::before { content: ""; position: absolute; left: -100vmax; right: -100vmax; top: -12px; height: 12px; background: var(--stripes); }
.next-title { margin: 14px 0 8px; font: 500 clamp(1.8rem, 4vw, 2.5rem)/1.15 var(--display); }
.next p { max-width: 32em; margin-left: auto; margin-right: auto; }
.next-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }
.btn.ghost { background: var(--card); color: var(--text); border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--sage); }
@media (prefers-color-scheme: dark) { .btn { background: var(--text); color: var(--bg); } .btn.ghost { background: var(--card); color: var(--text); } }

@media (max-width: 600px) {
  .stickers { grid-template-columns: 1fr 1fr; gap: 14px; }
  .sticker { padding: 12px 14px 14px; gap: 6px; }
  .sticker .ico { width: 40px; height: 40px; }
  .sticker span { font-size: 1.05rem; }
  h2 .ico { width: 36px; height: 36px; }
}

/* The full story (deep-dives.js): a timeline down a stripe, longer answers, and the questions parents ask. */
.timeline { list-style: none; padding: 0 0 0 26px; margin: 8px 0 10px; border-left: 4px solid var(--poppy); }
.timeline li { position: relative; padding: 0 0 18px; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--marigold); border: 3px solid var(--text); }
.timeline .when { display: block; font: 800 0.85rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tangerine); }
.faq h3 { font: 500 1.3rem var(--display); margin: 22px 0 4px; }
.faq p { margin: 0; }
