/* dontsquish.com draft stylesheet. Tokens come from brand/brand-tokens.json. */

:root {
  --navy: #1E2B4A;
  --tangerine: #E8582A;
  --tangerine-bright: #F26B3A;
  --plum: #6E3A82;
  --peach: #F7B58C;
  --peach-soft: #FCE3D2;
  --paper: #FBF6EC;
  --sand: #E6DCC8;
  --white: #FFFFFF;
  --slate: #4A5470;
  --lilac: #D9B3E6;

  --helper-border: #3E8E41; --helper-text: #1F5E24; --helper-bg: #E2F1DE;
  --harmless-border: #3A78C2; --harmless-text: #174C8A; --harmless-bg: #E1ECF8;
  --look-border: #D9A400; --look-text: #5E4500; --look-bg: #FCEDB8;
  --grownup-border: #C8402F; --grownup-text: #8E2219; --grownup-bg: #FBE1DD;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 4px 0 rgba(30, 43, 74, .12);
  --shadow-lift: 0 10px 24px rgba(30, 43, 74, .14);
  --max: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* the hidden attribute must win over classes like .btn that set display */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--tangerine); }
:focus-visible { outline: 4px solid var(--tangerine); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; color: var(--slate); max-width: 40ch; }
.muted { color: var(--slate); }
.small { font-size: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--peach { background: var(--peach-soft); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy a { color: var(--lilac); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* Squiggle under a highlighted word (KiwiCo-style emphasis) */
.squiggle { position: relative; white-space: nowrap; color: var(--tangerine); }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.18em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 12 1 22 6 T 42 6 T 62 6 T 82 6 T 98 5' fill='none' stroke='%236E3A82' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Wavy dividers between sections (Pok Pok-style) */
.wave { display: block; width: 100%; height: 40px; }
.wave--paper { color: var(--paper); }
.wave--peach { color: var(--peach-soft); }
.wave--navy { color: var(--navy); }
.wave--white { color: var(--white); }

/* ---------- Draft banner ---------- */
.draft-banner {
  background: var(--plum); color: var(--white); font-size: 1rem; text-align: center;
  padding: 8px var(--gutter);
}
.draft-banner strong { color: var(--peach); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--sand); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { display: block; height: 40px; width: auto; }
.nav-toggle {
  display: none; font: 700 1rem var(--font-body); color: var(--navy); background: var(--white);
  border: 2px solid var(--navy); border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  color: var(--navy); text-decoration: none;
}
.site-nav a:hover { background: var(--peach-soft); color: var(--navy); }
.site-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--sand); padding: 8px var(--gutter) 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 16px; font-size: 1.125rem; }
  .logo img { height: 32px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 40px 0 32px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr; gap: 32px; align-items: start; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.safety-note { background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); padding: 16px; font-size: 1rem; }
.safety-note strong { color: var(--peach); }
.footer-note { margin: 28px 0 0; font-size: .9rem; opacity: .85; max-width: 70ch; }
.footer-note a { text-decoration: underline; }
.footer-note + .footer-bottom { margin-top: 10px; }
.footer-bottom { margin-top: 28px; font-size: 1rem; opacity: .8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1.125rem var(--font-body); text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 3px solid var(--navy);
  background: var(--navy); color: var(--white); box-shadow: 0 5px 0 var(--tangerine);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 7px 0 var(--tangerine); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--tangerine); }
.btn--peach { background: var(--peach); color: var(--navy); box-shadow: 0 5px 0 var(--navy); }
.btn--peach:hover { color: var(--navy); box-shadow: 0 7px 0 var(--navy); }
.btn--ghost { background: var(--white); color: var(--navy); box-shadow: 0 5px 0 var(--sand); }
.btn--ghost:hover { color: var(--navy); box-shadow: 0 7px 0 var(--sand); }
.btn--small { padding: 8px 16px; font-size: 1rem; box-shadow: 0 3px 0 var(--tangerine); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Big tile buttons (Bug Guide / Activities / Kindness) */
.big-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.big-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px;
  border-radius: var(--radius); text-decoration: none; color: var(--navy); border: 3px solid var(--navy);
  box-shadow: 0 6px 0 var(--navy); transition: transform .12s ease, box-shadow .12s ease; min-height: 180px;
}
.big-tile:hover { color: var(--navy); transform: translateY(-3px); box-shadow: 0 9px 0 var(--navy); }
.big-tile h3 { margin: 0; }
.big-tile .tile-art { width: 64px; height: 64px; }
.big-tile--peach { background: var(--peach); }
.big-tile--lilac { background: var(--lilac); }
.big-tile--paper { background: var(--paper); }
@media (max-width: 760px) { .big-tiles { grid-template-columns: 1fr; } .big-tile { min-height: 0; } }

/* ---------- Bug Label badge (color + icon + word) ---------- */
.label {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px 4px 10px; border-radius: 999px;
  border: 2px solid; font-weight: 700; font-size: 1rem; line-height: 1.4; white-space: nowrap;
}
.label svg { width: 20px; height: 20px; flex: none; }
.label--helper { color: var(--helper-text); background: var(--helper-bg); border-color: var(--helper-border); }
.label--harmless { color: var(--harmless-text); background: var(--harmless-bg); border-color: var(--harmless-border); }
.label--look-dont-touch { color: var(--look-text); background: var(--look-bg); border-color: var(--look-border); }
.label--get-a-grown-up { color: var(--grownup-text); background: var(--grownup-bg); border-color: var(--grownup-border); }
.label--none { color: var(--slate); background: var(--paper); border-color: var(--sand); border-style: dashed; }
.label--lg { font-size: 1.125rem; padding: 6px 18px 6px 12px; }
.label--lg svg { width: 24px; height: 24px; }

.tag { display: inline-block; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: var(--sand); color: var(--navy); }
.tag--sample { background: var(--lilac); color: var(--navy); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.bug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.bug-card {
  display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--sand);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--navy);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
a.bug-card:hover { color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bug-card__art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper); }
.bug-card__art svg { width: 70%; height: 80%; }
.bug-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bug-card__name { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; margin: 0; line-height: 1.2; }
.bug-card__fact { font-size: 1rem; color: var(--slate); margin: 0; }
.bug-card__more { margin-top: auto; font-weight: 700; color: var(--plum); font-size: 1rem; }

/* Real bug photos */
.bug-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.bug-card__art, .featured__art, .mini-bug__art, .profile-art, .stats-box__art, .spot-card__photo, .family-card__art { position: relative; overflow: hidden; }
.bug-card__art .bug-photo, .featured__art .bug-photo, .mini-bug__art .bug-photo, .stats-box__art .bug-photo,
.spot-card__photo .bug-photo, .family-card__art .bug-photo { position: absolute; inset: 0; }
.photo-credit {
  position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px); background: rgba(30,43,74,.72); color: #fff;
  font-size: .72rem; line-height: 1.3; padding: 2px 8px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-bug__art .photo-credit, .stats-box__art .photo-credit { display: none; } /* too small; credit shows on the profile and Credits page */
.profile-art .bug-photo { position: absolute; inset: 0; border-radius: inherit; }
.credit-list { padding-left: 1.2em; display: grid; gap: 6px; font-size: 1rem; }
.profile-credit { font-size: .9rem; color: var(--slate); margin: 10px 0 0; }
.profile-credit a { color: var(--plum); }

/* Art backgrounds by label */
.art-bg--helper { background: var(--helper-bg); }
.art-bg--harmless { background: var(--harmless-bg); }
.art-bg--look-dont-touch { background: var(--look-bg); }
.art-bg--get-a-grown-up { background: var(--grownup-bg); }

/* ---------- Home hero ---------- */
.hero { background: var(--paper); padding: 48px 0 24px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero-art { width: 100%; height: auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 520px; margin: 0 auto; display: block; } }

.finder { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 0 var(--navy); margin-top: 24px; max-width: 560px; }
.finder label { display: block; font-weight: 700; margin-bottom: 8px; }
.finder-row { display: flex; gap: 10px; flex-wrap: wrap; }
.finder input {
  flex: 1 1 220px; min-width: 0; font: 400 1.25rem var(--font-body); color: var(--navy);
  padding: 14px 18px; border-radius: 999px; border: 3px solid var(--sand); background: var(--paper);
}
.finder input:focus { border-color: var(--tangerine); outline: none; box-shadow: 0 0 0 4px rgba(232,88,42,.25); }
.finder-hint { font-size: 1rem; color: var(--slate); margin: 10px 0 0; }
.finder-msg { margin: 12px 0 0; font-weight: 700; min-height: 1.6em; }
.finder-msg.is-error { color: var(--grownup-text); }
.finder-msg.is-ok { color: var(--helper-text); }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- US tile map ---------- */
.map-card { background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
/* Illustrated U.S. map */
.us-map-wrap { max-width: 980px; margin: 0 auto; }
.us-map { display: block; width: 100%; height: auto; }
.us-map .ocean { fill: #E3F1F8; stroke: var(--navy); stroke-width: 3; }
.us-map .land-shadow { fill: var(--navy); opacity: .16; }
.us-map .state { fill: var(--fill); stroke: var(--paper); stroke-width: 1.4; stroke-linejoin: round; cursor: pointer; outline: none; transition: opacity .2s ease, filter .2s ease; }
.us-map .coast { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
.us-map .hover-layer { pointer-events: none; }
.us-map .lift { stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; transform: translate(-2px, -4px); filter: drop-shadow(2px 5px 0 rgba(30,43,74,.35)) brightness(1.06); }
.us-map .region-outline { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linejoin: round; }
.us-map.has-active .state:not(.in-region) { opacity: .35; filter: saturate(.4); }
.us-map.has-active .callout:not(.in-region) { opacity: .45; }
.us-map .state-label { font: 700 12px var(--font-body); fill: var(--navy); pointer-events: none; }
.us-map .callout { cursor: pointer; outline: none; }
.us-map .callout rect { stroke: var(--navy); stroke-width: 2; filter: drop-shadow(0 2px 0 rgba(30,43,74,.3)); }
.us-map .callout text { font: 700 13px var(--font-body); fill: var(--navy); pointer-events: none; }
.us-map .callout:hover rect, .us-map .callout:focus rect { stroke-width: 3; transform: translateY(-2px); }
.us-map .leader { stroke: var(--navy); stroke-width: 1.4; opacity: .55; fill: none; }
.us-map .leader-dot { fill: var(--navy); }
.us-map .inset { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 6 6; opacity: .4; }
.us-map .map-compass-n { font: 600 16px var(--font-head); fill: var(--navy); }
.us-map .map-bug { animation: bob 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map-swipe-hint { display: none; }
@media (max-width: 700px) {
  .map-card { padding: 16px 12px; }
  .us-map-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
  .us-map-wrap .us-map { width: 680px; max-width: none; }
  .map-swipe-hint { display: block; text-align: center; font-weight: 700; font-size: 1rem; color: var(--slate); margin: 8px 0 0; }
}
.us-map--mini .coast { stroke-width: 5; }
.us-map--mini .state { stroke-width: 2.5; cursor: default; }
.us-map--mini .land-shadow { display: none; }
.us-map--mini.has-active .state:not(.in-region) { opacity: .3; }
.region-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; list-style: none; padding: 0; }
.region-chip {
  display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--font-body); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 999px; padding: 8px 14px 8px 8px; background: var(--white); cursor: pointer; min-height: 44px;
}
.region-chip:hover { background: var(--paper); }
.region-chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(30,43,74,.35); flex: none; }
.map-result { text-align: center; margin-top: 20px; min-height: 64px; }
.map-result p { font-size: 1.375rem; font-family: var(--font-head); margin-bottom: 8px; }

/* Region colors */
.r-new-england { background: #9CC9E8; }
.r-mid-atlantic { background: #D9B3E6; }
.r-southeast { background: #A8D8A0; }
.r-midwest { background: #F9D77E; }
.r-great-plains { background: #F5B98E; }
.r-southwest { background: #F29A7E; }
.r-mountain-west { background: #B8C4E8; }
.r-pacific-coast { background: #8FD3C4; }
.r-alaska { background: #C9D6DF; }
.r-hawaii { background: #F7A8C4; }

/* ---------- Featured bug / events teaser ---------- */
.feature-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.featured { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 0 var(--navy); }
.featured__art { border-radius: var(--radius-sm); aspect-ratio: 1; display: grid; place-items: center; }
.featured__art svg { width: 85%; height: 85%; }
@media (max-width: 520px) { .featured { grid-template-columns: 1fr; } .featured__art { max-width: 220px; } }
.event-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.event-mini li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius-sm); padding: 10px; }
.date-chip { background: var(--peach); border-radius: 12px; text-align: center; padding: 6px 0; line-height: 1.1; font-weight: 700; }
.date-chip .m { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.date-chip .d { display: block; font-family: var(--font-head); font-size: 1.6rem; }

/* ---------- My Local Bugs ---------- */
.region-hero { background: var(--paper); padding: 36px 0 20px; }
.region-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.mini-map { width: 240px; }
@media (max-width: 700px) { .region-hero .wrap { grid-template-columns: 1fr; } .mini-map { width: 200px; } }

.controls { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin: 8px 0 20px; }
.seg { display: inline-flex; background: var(--paper); border: 2px solid var(--navy); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button {
  font: 700 1rem var(--font-body); color: var(--navy); background: transparent; border: 0; border-radius: 999px;
  padding: 8px 16px; cursor: pointer; min-height: 40px;
}
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.seg-label { font-weight: 700; margin-right: 8px; }

.summary-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.summary-bar strong { margin-right: 4px; }

.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.explorer > * { min-width: 0; }
.explorer-stage { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 0 var(--navy); position: relative; }
.explorer-stage svg { display: block; width: 100%; height: auto; }
.explorer-hint { position: absolute; left: 12px; top: 12px; background: var(--white); border: 2px solid var(--navy); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 1rem; }

.zone { cursor: pointer; outline: none; }
.zone .hit { fill: transparent; stroke: transparent; stroke-width: 5; transition: fill .15s ease, stroke .15s ease; }
.zone:hover .hit, .zone:focus .hit { fill: rgba(251,246,236,.35); stroke: var(--tangerine); stroke-dasharray: 10 6; }
.zone.is-active .hit { fill: rgba(232,88,42,.14); stroke: var(--tangerine); stroke-width: 6; stroke-dasharray: none; }
.zone .zlabel { transition: transform .15s ease; }
.zone .zlabel rect { fill: var(--white); stroke: var(--navy); stroke-width: 2.5; filter: drop-shadow(0 3px 0 rgba(30,43,74,.25)); }
.zone .zlabel > text { font: 700 17px var(--font-body); fill: var(--navy); }
.zone:hover .zlabel rect, .zone:focus .zlabel rect, .zone.is-active .zlabel rect { fill: var(--navy); }
.zone:hover .zlabel > text, .zone:focus .zlabel > text, .zone.is-active .zlabel > text { fill: var(--white); }
.thanks-card { border: 3px solid var(--helper-border); background: var(--helper-bg); }
.printable-list { margin: 10px 0 0; padding-left: 1.2em; }
.printable-list li { margin: 6px 0; }
.printable-list a { font-weight: 700; }
.zone .count rect { fill: var(--tangerine); }
.zone .count text { font: 700 14px var(--font-body); fill: var(--white); }
.zone.is-empty .count rect { fill: var(--sand); }
.zone.is-empty .count text { fill: var(--slate); }
.zone.is-empty .zlabel { opacity: .8; }

/* Little bugs living in each zone */
.zone .mini > svg { overflow: visible; }
.zone .mini { animation: bob 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.zone .mini-1 { animation-delay: -1.1s; animation-duration: 3.8s; }
.zone .mini-2 { animation-delay: -2.2s; animation-duration: 2.9s; }
.zone:hover .mini, .zone:focus .mini, .zone.is-active .mini { animation-name: wiggle; animation-duration: .6s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
.has-picked .explorer-hint { display: none; }

/* Day / night */
.sky-day, .sky-night, .night-shade, .night-sky, .fireflies, .porch-glow, .bulb-glow, .smoke { transition: opacity .5s ease; }
.sky-night, .night-sky, .fireflies, .porch-glow { opacity: 0; }
.night-shade { opacity: 0; pointer-events: none; }
.bulb-glow { opacity: .35; }
.is-night .sky-day, .is-night .smoke { opacity: 0; }
.is-night .sky-night, .is-night .night-sky, .is-night .fireflies, .is-night .porch-glow, .is-night .bulb-glow { opacity: 1; }
.is-night .night-shade { opacity: .45; }
.window-glow { transition: fill .5s ease; }
.is-night .window-glow { fill: #F9D77E; }
.twinkle { animation: twinkle 2.6s ease-in-out infinite; }
.fireflies circle { animation: twinkle 1.8s ease-in-out infinite; filter: drop-shadow(0 0 6px #F9D77E); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* Fireflies only come out on summer nights */
#stage:not([data-season="summer"]) .fireflies { display: none; }

/* "Pick a spot" list to the right of the house */
.picker { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: 0 6px 0 var(--navy); padding: 16px 16px 18px; }
.picker h2 { font-size: 1.5rem; margin: 0 0 2px; }
.picker > p { margin: 0 0 12px; }
.picker { text-align: center; }
.picker__art { width: 160px; height: 128px; margin: 8px auto 4px; }
.picker__art svg { width: 100%; height: 100%; }
.picker p { font-size: 1.1rem; margin: 0 0 8px; }

/* Results grid below the house */
.zone-results { margin-top: 28px; scroll-margin-top: 90px; outline: none; }
.zone-results__head h2 { margin: 0; font-size: 1.75rem; }
.zone-results__head p { margin: 4px 0 16px; }
.zone-results__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.panel-empty { grid-column: 1 / -1; text-align: center; padding: 24px 12px; color: var(--slate); background: var(--white); border: 2px dashed var(--sand); border-radius: var(--radius-sm); }
.panel-empty svg { width: 120px; height: 90px; }

.mini-bug { display: flex; flex-direction: column; border: 2px solid var(--sand); border-radius: var(--radius-sm); text-decoration: none; color: var(--navy); background: var(--white); overflow: hidden; transition: border-color .12s, transform .12s; }
.mini-bug:hover, .mini-bug:focus-visible { color: var(--navy); border-color: var(--navy); transform: translateY(-2px); }
.mini-bug__art { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.mini-bug__art svg { width: 70%; height: 80%; }
.mini-bug > div:last-child { padding: 10px 12px 12px; }
.mini-bug h3 { font-size: 1.1rem; margin: 0 0 6px; }
.mini-bug p { margin: 6px 0 0; font-size: .95rem; color: var(--slate); line-height: 1.4; }

@media (max-width: 980px) {
  .explorer { grid-template-columns: 1fr; }
  .picker { display: flex; align-items: center; gap: 14px; text-align: left; }
  .picker__art { flex: none; width: 90px; height: 72px; margin: 0; }
  .picker h2 { display: none; }
  .picker p { margin: 0; }
  .picker p.small { display: none; }
}
@media (max-width: 520px) {
  .zone-results__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mini-bug h3 { font-size: 1rem; }
  .mini-bug p { display: none; }
  .mini-bug > div:last-child { padding: 8px 8px 10px; }
  .mini-bug .label { font-size: .72rem; padding: 3px 7px; gap: 4px; max-width: 100%; white-space: normal; }
  .mini-bug .label svg { width: 12px; height: 12px; }
}

.swipe-hint { display: none; }
@media (max-width: 700px) {
  .explorer-hint { display: none; }
  #house { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  #house svg { width: 720px; max-width: none; }
  .swipe-hint { display: block; text-align: center; font-weight: 700; font-size: 1rem; color: var(--slate); margin: 10px 0 0; }
}
.bugs-dont-read-maps { display: block; background: var(--paper); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 16px; font-size: 1rem; }

/* Spotted Near You strip */
.spotted-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.spot-card .label { justify-self: start; white-space: normal; }
.spotted-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 240px); gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.spotted-strip > * { scroll-snap-align: start; }
.spot-card { background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.spot-card__photo { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.spot-card__photo svg { width: 70%; height: 70%; }
.spot-card__count { position: absolute; right: 8px; top: 8px; background: var(--navy); color: var(--white); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .9rem; }
.spot-card__body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.spot-card__body h3 { font-size: 1.15rem; margin: 0; }
.spot-card__credit { font-size: .8rem; color: var(--slate); line-height: 1.3; }
.spot-card__unknown { font-size: .95rem; color: var(--slate); line-height: 1.35; margin: 0; }
.zip-ask { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--white); border: 2px dashed var(--plum); border-radius: var(--radius); padding: 16px; }
.zip-ask input { font: 400 1.125rem var(--font-body); padding: 10px 16px; border-radius: 999px; border: 3px solid var(--sand); width: 10ch; }

/* ---------- Bug Guide ---------- */
.page-hero { background: var(--paper); padding: 40px 0 28px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 18px; align-items: end; background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); padding: 18px; margin-bottom: 24px; }
/* min-width:0 + width:100% keep long option text ("Centipedes and millipedes") inside its own column. */
.filters label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; min-width: 0; }
.filters select, .filters input { font: 400 1rem var(--font-body); color: var(--navy); padding: 10px 12px; border: 2px solid var(--sand); border-radius: 12px; background: var(--paper); min-height: 44px; width: 100%; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }
.label-explainer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.label-explainer .card { display: grid; gap: 10px; align-content: start; }
@media (max-width: 860px) { .label-explainer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .label-explainer { grid-template-columns: 1fr; } }
/* Four kinds of bugs */
.bug-families { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .bug-families { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bug-families { grid-template-columns: 1fr; } }
.family-card { display: flex; flex-direction: column; border: 3px solid var(--navy); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--navy); background: var(--white); box-shadow: 0 6px 0 var(--navy); transition: transform .12s ease, box-shadow .12s ease; }
.family-card:hover { color: var(--navy); transform: translateY(-3px); box-shadow: 0 9px 0 var(--navy); }
.family-card__art { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.family-card__art svg { width: 58%; height: 90%; }
.family-card--insect .family-card__art { background: var(--peach-soft); }
.family-card--arachnid .family-card__art { background: #EFE3F4; }
.family-card--crustacean .family-card__art { background: var(--harmless-bg); }
.family-card--myriapod .family-card__art { background: var(--look-bg); }
.family-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.family-card__body h3 { margin: 0; }
.family-card__body p { margin: 0; font-size: 1rem; }
.family-card__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.family-card__facts span { background: var(--paper); border: 2px solid var(--sand); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .9rem; }
.not-insect { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--white); border: 2px dashed var(--plum); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 16px; color: var(--navy); text-decoration: none; font-weight: 700; max-width: 46ch; }
.not-insect:hover { color: var(--navy); border-style: solid; }
.not-insect__badge { background: var(--plum); color: var(--white); border-radius: 999px; padding: 2px 12px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--look-bg); border: 3px solid var(--look-border); border-radius: var(--radius); padding: 20px; }
.callout__icon { width: 56px; height: 56px; }
.result-count { font-weight: 700; margin-bottom: 12px; }
.grid-title { font-size: 1.4rem; margin: 28px 0 10px; }
.grid-title:first-of-type { margin-top: 8px; }
.bug-card__sci { font-style: italic; color: var(--slate); font-size: .95rem; margin: -4px 0 0; }
.bug-card--species .bug-card__name { font-size: 1.2rem; }
.more-row { display: flex; justify-content: center; margin-top: 24px; }
.list-end { margin: 0; text-align: center; font-weight: 700; color: var(--slate); background: var(--paper); border-radius: 999px; padding: 10px 20px; }
.species-note { background: var(--paper); border-radius: var(--radius); padding: 14px 18px; }

/* ---------- Bug Profile (NatGeo Kids-inspired) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; }
.crumbs a, .crumbs span { display: inline-block; background: var(--navy); color: var(--white); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 4px 16px 4px 12px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.crumbs a:hover { background: var(--tangerine); color: var(--white); }
.profile-hero { background: var(--paper); padding: 28px 0 40px; }
.profile-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.profile-art { border-radius: var(--radius); border: 3px solid var(--navy); box-shadow: 0 6px 0 var(--navy); aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; }
.profile-art svg { width: 70%; height: 80%; }
.profile-art .credit { position: absolute; bottom: 8px; left: 12px; font-size: .8rem; color: var(--slate); }
.sci { font-style: italic; color: var(--slate); margin: -4px 0 12px; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }

.stats-box { background: var(--navy); color: var(--white); border: 6px solid var(--peach); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.stats-box dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.stats-box dt { color: var(--peach); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; padding-top: 3px; }
.stats-box dd { margin: 0; }
.stats-box__art { width: 140px; height: 140px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; border: 4px solid var(--peach); }
.stats-box__art svg { width: 80%; height: 80%; }
@media (max-width: 640px) { .stats-box { grid-template-columns: 1fr; } .stats-box__art { display: none; } .stats-box dl { grid-template-columns: 1fr; gap: 2px; } .stats-box dd { margin-bottom: 8px; } }

.profile-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.profile-sections .card h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.profile-sections .card--wide { grid-column: 1 / -1; }
.section-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.section-icon svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .profile-sections { grid-template-columns: 1fr; } }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fact-list li { background: var(--paper); border-radius: var(--radius-sm); padding: 10px 14px 10px 44px; position: relative; }
.fact-list li::before { content: "★"; position: absolute; left: 14px; top: 9px; color: var(--tangerine); font-size: 1.2rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 2px solid var(--sand); border-radius: 999px; padding: 4px 12px; font-size: 1rem; }
.steps { padding-left: 1.4em; margin: 0; }
.steps li { margin-bottom: 6px; }
.grownup-box { background: var(--grownup-bg); border: 2px solid var(--grownup-border); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 12px; font-size: 1rem; }

/* ---------- Events ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step-card { background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); padding: 20px; position: relative; }
.step-card .num { width: 44px; height: 44px; border-radius: 50%; background: var(--tangerine); color: var(--white); font-family: var(--font-head); font-size: 1.4rem; display: grid; place-items: center; margin-bottom: 8px; }
@media (max-width: 860px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-row { grid-template-columns: 1fr; } }
.impact { display: flex; align-items: center; gap: 16px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 20px 24px; }
.impact .big { font-family: var(--font-head); font-size: 3rem; color: var(--peach); line-height: 1; }
.event-list { display: grid; gap: 16px; }
.coming-soon { background: var(--paper); border: 3px dashed var(--peach); border-radius: var(--radius); padding: 28px; text-align: center; }
.coming-soon h3 { font-size: 1.6rem; margin: 12px 0 8px; }
.coming-soon p { max-width: 52ch; margin: 0 auto 10px; }
.coming-soon__tag { display: inline-block; background: var(--tangerine); color: var(--white); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; }
.event-mini li.event-mini__soon { display: block; text-align: center; padding: 18px; }
.event-card { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: start; background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); padding: 16px; }
.event-card .date-chip .d { font-size: 2rem; }
.event-card h3 { margin: 4px 0 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 1rem; color: var(--slate); margin-bottom: 6px; }
.type-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; border-radius: 999px; padding: 2px 12px; border: 2px solid; }
.type-tag--workshop { background: var(--peach-soft); border-color: var(--tangerine); color: #8A2E10; }
.type-tag--community { background: #EFE3F4; border-color: var(--plum); color: var(--plum); }
.event-card__actions { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 700px) { .event-card { grid-template-columns: 72px 1fr; } .event-card__actions { grid-column: 1 / -1; justify-items: start; display: flex; flex-wrap: wrap; } }
.event-card.is-past { opacity: .7; }

.form-card { background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 0 var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; align-content: end; } /* boxes keep one height and line up even when a label wraps */
.form-grid input, .form-grid textarea, .form-grid select { font: 400 1rem var(--font-body); color: var(--navy); padding: 12px 14px; border: 2px solid var(--sand); border-radius: 12px; background: var(--paper); }
.form-grid .check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.form-grid .check input { width: 22px; height: 22px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.nl-topics { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.nl-topics legend { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.form-grid .check { font-weight: 400; align-items: flex-start; }
.form-grid .check input { margin-top: 3px; flex: none; }
.form-status { font-weight: 700; margin: 12px 0 0; min-height: 1.5em; }
.form-status.is-ok { color: var(--helper-text); }
.form-status.is-error { color: var(--grownup-text); }

/* ---------- Generic content pages ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.resource-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .resource-tiles { grid-template-columns: 1fr; } }
.convo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.convo-card { background: var(--lilac); border-radius: var(--radius); padding: 24px; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.3; border: 3px solid var(--plum); min-height: 160px; display: flex; align-items: center; }
.pledge { background: var(--white); border: 4px dashed var(--tangerine); border-radius: var(--radius); padding: 32px; text-align: center; max-width: 640px; margin: 0 auto; }
.pledge p { font-family: var(--font-head); font-size: 1.6rem; line-height: 1.3; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat .big { font-family: var(--font-head); font-size: 2.6rem; color: var(--tangerine); line-height: 1; display: block; margin-bottom: 6px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* ---------- About: scrapbook story ---------- */
.eyebrow { font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); margin-bottom: 8px; }
.mission { background: var(--white); border-left: 6px solid var(--tangerine); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; max-width: 46ch; }
.about-hero .hero-grid { align-items: center; }

.polaroid { margin: 0; background: var(--white); padding: 12px 12px 0; border-radius: 6px; box-shadow: 0 10px 24px rgba(30,43,74,.18), 0 2px 0 rgba(30,43,74,.08); position: relative; }
.polaroid::before { /* washi tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(247,181,140,.85); border-radius: 3px; box-shadow: 0 1px 2px rgba(30,43,74,.15);
}
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; background: var(--paper); }
.polaroid figcaption { font-family: var(--font-head); font-size: 1.15rem; text-align: center; padding: 12px 6px 16px; line-height: 1.3; }
.tilt-left { transform: rotate(-2.5deg); }
.tilt-right { transform: rotate(2deg); }
.tilt-right::before { background: rgba(217,179,230,.9); transform: translateX(-50%) rotate(4deg); }
.polaroid--hero { max-width: 360px; margin: 0 auto; transform: rotate(2.5deg); }
.polaroid--hero::before { background: rgba(168,216,160,.9); }
.polaroid img[hidden], .photo-placeholder[hidden] { display: none; }
.photo-placeholder { aspect-ratio: 3 / 4; border: 3px dashed var(--sand); border-radius: 3px; background: var(--paper); display: grid; place-content: center; text-align: center; gap: 8px; padding: 16px; color: var(--slate); }
.photo-placeholder__art { width: 150px; margin: 0 auto; }
.photo-placeholder p { margin: 0; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 64px; position: relative; }
.timeline::before { /* dotted flight path down the middle */
  content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; border-left: 3px dashed var(--sand); transform: translateX(-50%);
}
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; position: relative; }
.chapter .polaroid { max-width: 340px; justify-self: end; }
.chapter:nth-child(even) .polaroid { order: 2; justify-self: start; }
.chapter:nth-child(even) .chapter__text { order: 1; text-align: right; justify-self: end; }
.chapter__text { max-width: 48ch; background: var(--white); position: relative; z-index: 1; padding: 8px 0; }
.chapter__text h3 { font-size: 1.75rem; margin-bottom: .4em; }
.chapter__tag { display: inline-block; background: var(--navy); color: var(--white); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; margin-bottom: 10px; }
.chapter:nth-child(3n+2) .chapter__tag { background: var(--tangerine); }
.chapter:nth-child(3n) .chapter__tag { background: var(--plum); }
@media (max-width: 760px) {
  .timeline { gap: 48px; }
  .timeline::before { display: none; }
  .chapter { grid-template-columns: 1fr; gap: 24px; }
  .chapter .polaroid, .chapter:nth-child(even) .polaroid { order: 0; justify-self: center; max-width: 300px; }
  .chapter:nth-child(even) .chapter__text { order: 1; text-align: left; justify-self: start; }
}

.why-card { margin-top: 72px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; background: var(--paper); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: 0 6px 0 var(--navy); padding: 28px; }
.why-card h3 { font-size: 1.9rem; }
.why-card__art { background: var(--white); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; border: 3px dashed var(--peach); }
.why-card__art svg { width: 80%; }
.pledge-line { font-family: var(--font-head); font-size: 1.35rem; color: var(--plum); }
@media (max-width: 640px) { .why-card { grid-template-columns: 1fr; } .why-card__art { width: 140px; } }

/* Read to me */
.read-to-me { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--font-body); background: var(--white); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 44px; }
.read-to-me[aria-pressed="true"] { background: var(--tangerine); border-color: var(--tangerine); color: var(--white); }
.read-to-me svg { width: 20px; height: 20px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Print: fact sheets */
@media print {
  .site-header, .site-footer, .draft-banner, .no-print, .wave { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .profile-hero, .section--paper { background: none !important; }
  .card, .profile-art, .stats-box { box-shadow: none !important; }
  .stats-box { background: #fff; color: #000; border-color: #000; }
  .stats-box dt { color: #000; }

  /* ---- Bug fact sheets (bug.html): compact, small photo, 1–2 pages ---- */
  @page { size: letter; margin: 0.45in 0.5in; }
  #profile, #profile * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #profile::before { content: "DON'T SQUISH FACT SHEET  \00B7  dontsquish.com"; display: block; font: 700 8.5pt var(--font-body); letter-spacing: .08em; border-bottom: 2px solid #000; padding-bottom: 4px; margin-bottom: 10px; }
  #profile .wrap { max-width: none; padding: 0; }
  #profile .crumbs, #profile .stats-box__art, #profile .section--paper { display: none !important; }
  #profile .profile-hero { padding: 0 !important; }
  #profile .profile-grid { grid-template-columns: 1fr 2.1in; gap: 18px; align-items: start; }
  #profile .profile-art { width: 2.1in; border-width: 1.5px; border-radius: 8px; }
  #profile .profile-credit { font-size: 7pt; margin: 3px 0 0; line-height: 1.3; }
  #profile .label--lg { font-size: 9.5pt; padding: 2px 10px 2px 6px; }
  #profile .label--lg svg { width: 14px; height: 14px; }
  #profile h1 { font-size: 22pt; line-height: 1.1; margin: 6px 0 2px !important; }
  #profile .sci { font-size: 10pt; margin: 0 0 6px; }
  #profile [data-read] p { font-size: 10.5pt; line-height: 1.38; max-width: none !important; margin: 0 0 6px; }
  #profile [data-read] .lede { font-size: 11.5pt; color: #000; }
  #profile .not-insect { font-size: 9pt; padding: 3px 8px; margin: 0 0 6px; max-width: none; }
  #profile .section { padding: 10px 0 0 !important; }
  #profile .stack > * + * { margin-top: 10px; }
  #profile [data-read] .btn { display: none; }
  #profile .stats-box { grid-template-columns: 1fr; padding: 8px 12px; border: 1.5px solid #000; border-radius: 8px; }
  #profile .stats-box dl { grid-template-columns: max-content 1fr max-content 1fr; gap: 4px 12px; font-size: 9.5pt; }
  #profile .profile-sections .label { font-size: 8pt; padding: 1px 7px 1px 4px; border-width: 1px; }
  #profile .profile-sections .label svg { width: 11px; height: 11px; }
  #profile .stats-box dt { font-size: 7.5pt; padding-top: 2px; }
  #profile .profile-sections { grid-template-columns: 1fr 1fr; gap: 10px; }
  #profile .profile-sections .card { padding: 8px 10px; border: 1.2px solid #000; border-radius: 8px; break-inside: avoid; }
  #profile .profile-sections .card h2 { font-size: 12pt; margin: 0 0 5px; gap: 6px; }
  #profile .section-icon { width: 20px; height: 20px; border-radius: 5px; }
  #profile .section-icon svg { width: 13px; height: 13px; }
  #profile .profile-sections p, #profile .profile-sections li { font-size: 10pt; line-height: 1.35; }
  #profile .fact-list { gap: 3px; }
  #profile .fact-list li { background: none; padding: 1px 0 1px 16px; }
  #profile .fact-list li::before { left: 0; top: 0; font-size: 10pt; }
  #profile .chip-list { gap: 4px; }
  #profile .chip { font-size: 8.5pt; padding: 1px 7px; border-width: 1px; }
  #profile .chip .swatch { width: 9px !important; height: 9px !important; }
  #profile .grownup-box { font-size: 9pt; padding: 4px 8px; margin-top: 6px; }
  #profile .steps li { margin-bottom: 1px; }
  #profile .small { font-size: 8pt; }
}
