/* Kids' mode on the website (D-079): the Sticker skin (D-007) applied to the whole site when <html data-kids="1">.
   Only the kid-* tokens from the design system, on a light paper ground; cyan-on-light (#0A6F74) for links.
   Set before the page draws by the one-line script in each page's <head>; switched by nav.js (psnKids). */
[data-kids] {
  color-scheme: light;
  --ground: var(--kid-paper); --surface: #fff1d6; --surface-raised: #ffffff;
  --line: var(--kid-ink); --line-2: #ecdcbf; --scrim: rgba(255, 248, 236, .94); --halo: rgba(255, 248, 236, .85);
  --ink: var(--kid-ink); --ink-muted: #45455e; --ink-faint: #5d5d75;
  --cyan: #0a6f74; --on-cyan: #ffffff; --magenta: #b3168c; --gold: #8a5800; --ok: #146c3a; --alert: #b42318; --alt-2: #9a5a00;
  --font-display: "Bricolage Grotesque", "B612", system-ui, sans-serif;
  --kid-shadow: 4px 4px 0 var(--kid-ink);
}
[data-kids] body { background: var(--kid-paper); color: var(--kid-ink); }
[data-kids] h1, [data-kids] h2, [data-kids] h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
[data-kids] a { color: #0a6f74; }
[data-kids] .eyebrow { color: var(--kid-ink); }
[data-kids] .lede, [data-kids] .dim, [data-kids] .sub { color: #45455e; }

/* header, page head and footer */
[data-kids] #siteHead { background: var(--kid-paper); border-bottom: 3px solid var(--kid-ink); box-shadow: none; }
[data-kids] #siteHead .brand small::after { content: " · kids"; color: var(--kid-coral); }
[data-kids] .pageHead { background: var(--kid-sun); border-bottom: 3px solid var(--kid-ink); }
[data-kids] .pageHead .lede { color: var(--kid-ink); }
[data-kids] #siteFoot { background: var(--kid-paper); border-top: 3px solid var(--kid-ink); }
[data-kids] #siteFoot .cols, [data-kids] #siteFoot .fine { display: none; }

/* stickers: cards, buttons, inputs */
[data-kids] .card { background: #fff; border: 3px solid var(--kid-ink); border-radius: 18px; box-shadow: var(--kid-shadow); color: var(--kid-ink); }
[data-kids] a.card:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--kid-ink); }
[data-kids] .btn { border: 3px solid var(--kid-ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--kid-ink); background: #fff; color: var(--kid-ink); font-weight: 800; }
[data-kids] .btn.primary { background: var(--kid-coral); color: #fff; }
[data-kids] input, [data-kids] select, [data-kids] textarea { background: #fff !important; border: 2px solid var(--kid-ink) !important; color: var(--kid-ink) !important; }

/* never in kids' mode: ads, sign-in, the Sunlight switch, moderation notices, and anything posted by other people */
[data-kids] .adSlot, [data-kids] [data-ad-slot], [data-kids] .adsbygoogle, [data-kids] .noticeBar,
[data-kids] .acct, [data-kids] .themeBtn, [data-kids] #top #nav, [data-kids] #menuBtn { display: none !important; }
[data-kids] .noKids, [data-kids] #reviews, [data-kids] #photos, [data-kids] #events, [data-kids] .feedItem, [data-kids] .rev,
[data-kids] .spSection:has(#reviews), [data-kids] .spSection:has(#photos), [data-kids] .spSection:has(#events) { display: none !important; }
[data-kids] label:has(> #kids) { display: none !important; }   /* the spots list is always kid-friendly only */

/* the "Kids" entry in the grown-up menu: a little sticker */
html:not([data-kids]) #siteNav > a[href="/kids"] { background: var(--kid-sun); color: var(--kid-ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; box-shadow: 2px 2px 0 var(--kid-ink); }
/* the kids' menu */
[data-kids] #siteNav > a { font-family: var(--font-display); font-weight: 800; color: var(--kid-ink); }
[data-kids] #siteNav > a[aria-current="page"] { background: var(--kid-sun); border: 2px solid var(--kid-ink); border-radius: 999px; }
[data-kids] #tabBar { background: var(--kid-paper); border-top: 3px solid var(--kid-ink); }
[data-kids] #tabBar a, [data-kids] #tabBar button { color: var(--kid-ink); }
[data-kids] #tabBar a[aria-current="page"] { color: var(--kid-coral); }

/* "for grown-ups" screen and the hold-to-exit button */
.kidsBlock { max-width: 560px; margin: 48px auto; text-align: center; padding: 34px 26px; display: grid; gap: 14px; justify-items: center; }
.kidsBlock .big { font-size: 56px; line-height: 1; }
.kidsExit { position: relative; overflow: hidden; white-space: normal; text-align: center; max-width: 100%; }
.kidsExit .fill { position: absolute; inset: 0; width: 0; background: rgba(255, 94, 91, .35); pointer-events: none; }
.kidsExit.holding .fill { width: 100%; transition: width 2s linear; }
.kidsFoot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 14px; }
html.kidsBlocked body > :not(#siteHead):not(#top):not(#siteFoot):not(#tabBar):not(.kidsBlockWrap):not(.kidsModal):not(script):not(#toast) { display: none !important; }
html.kidsBlocked body { overflow: auto !important; }
.kidsBlockWrap { padding: 0 16px; display: block !important; }
/* grown-up check and "leaving our site" pop-up */
.kidsModal { position: fixed; inset: 0; z-index: 3000; background: rgba(27, 27, 46, .55); display: grid; place-items: center; padding: 16px; }
.kidsModal .card { max-width: 420px; width: 100%; padding: 22px; display: grid; gap: 14px; background: #fff; color: var(--kid-ink); border: 3px solid var(--kid-ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--kid-ink); font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.kidsGrown { font-weight: 700; }
/* the Plane Spotter Kids banner on the grown-up home page */
.kidsBanner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; text-decoration: none;
  background: var(--kid-sun) !important; color: var(--kid-ink) !important; border: 3px solid var(--kid-ink) !important; border-radius: 18px; box-shadow: 4px 4px 0 var(--kid-ink); }
.kidsBanner .kbE { font-size: 40px; } .kidsBanner b { display: block; font: 800 22px "Bricolage Grotesque", system-ui, sans-serif; }
.kidsBanner span span { color: var(--kid-ink); }
.kidsBanner .kbGo { background: var(--kid-coral); color: #fff; border: 3px solid var(--kid-ink); border-radius: 999px; padding: 8px 16px; font-weight: 800; white-space: nowrap; }
@media (max-width: 600px) { .kidsBanner { grid-template-columns: auto 1fr; } .kidsBanner .kbGo { grid-column: 1 / -1; justify-self: start; } }
