/* Recycle Finder — Illinois Recycling Foundation
   Layout: a field-guide tool — sticky civic header, search bar up top, results column beside a hand-drawn North America locator map; stacks on phones. */
:root {
  --paper: #f4f7f2;
  --surface: #ffffff;
  --surface-2: #e9efe6;
  --ink: #15241a;
  --muted: #56685b;
  --line: #d3ddd2;
  --green: #1d6b3a;
  --green-ink: #ffffff;
  --deep: #0e3a21;
  --deep-ink: #e8f3ea;
  --leaf: #7cb342;
  --clay: #c25317;
  --clay-ink: #ffffff;
  --warn-bg: #fff4dd;
  --warn-ink: #7a4a00;
  --land: #ffffff;
  --water: #dfe9e4;
  --foreign: #eef2ec;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1611; --surface: #142019; --surface-2: #1b2a21; --ink: #e3ece4; --muted: #9db1a2; --line: #283a2e;
    --green: #5cbf7c; --green-ink: #07170d; --deep: #0a2214; --deep-ink: #d8eadc; --leaf: #a5d65f; --clay: #ea8445; --clay-ink: #1f0e02;
    --warn-bg: #3a2a0c; --warn-ink: #f3cf8a; --land: #1a2820; --water: #0b130e; --foreign: #131d17; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1611; --surface: #142019; --surface-2: #1b2a21; --ink: #e3ece4; --muted: #9db1a2; --line: #283a2e;
  --green: #5cbf7c; --green-ink: #07170d; --deep: #0a2214; --deep-ink: #d8eadc; --leaf: #a5d65f; --clay: #ea8445; --clay-ink: #1f0e02;
  --warn-bg: #3a2a0c; --warn-ink: #f3cf8a; --land: #1a2820; --water: #0b130e; --foreign: #131d17; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--deep); }
a { color: var(--green); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.15; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

/* header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--deep); color: var(--deep-ink); }
header.top .wrap { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand svg { flex: none; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; display: block; line-height: 1.1; }
.brand small { font-size: 11.5px; opacity: 0.8; letter-spacing: 0.04em; }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
nav.tabs a { color: var(--deep-ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 999px; }
nav.tabs a:hover { background: rgba(255,255,255,0.08); }
nav.tabs a[aria-current="page"] { background: var(--leaf); color: #10240f; }

/* search band */
.band { background: var(--deep); color: var(--deep-ink); padding-bottom: 22px; }
.band h1 { font-weight: 800; font-size: clamp(26px, 4.2vw, 42px); letter-spacing: -0.02em; max-width: 22ch; }
.band p.lede { margin: 8px 0 18px; max-width: 62ch; opacity: 0.88; }
form.search { display: flex; gap: 8px; flex-wrap: wrap; max-width: 760px; }
form.search .field { flex: 1 1 280px; position: relative; min-width: 0; }
form.search input { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px 13px 42px; border-radius: var(--r); border: 2px solid transparent; background: var(--surface); color: var(--ink); }
form.search input:focus { border-color: var(--leaf); outline: none; }
form.search .field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: var(--r); padding: 12px 20px; cursor: pointer; background: var(--leaf); color: #10240f; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--green); border: 1.5px solid var(--line); padding: 8px 14px; font-size: 14px; }
.samples { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; align-items: center; font-size: 13.5px; }
.samples button { font: inherit; font-size: 13px; background: rgba(255,255,255,0.08); color: var(--deep-ink); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.samples button:hover { background: rgba(255,255,255,0.16); }
.hint { font-size: 13px; opacity: 0.8; margin-top: 10px; }

/* find layout */
.find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; padding-block: 24px 40px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mapbox { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 74px); min-width: 0; }
.mapframe { background: var(--water); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3.4; max-width: 100%; }
.mapframe svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.mapctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.mapctl button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.maptip { position: absolute; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); max-width: 240px; }

.resulthead { display: flex; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }
.resulthead h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.chip.green { background: var(--green); color: var(--green-ink); }

section.block { display: flex; flex-direction: column; gap: 10px; }
section.block > header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
section.block h3 { font-size: 18px; font-weight: 800; }

.agency { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.agency h4 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.25; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; padding: 7px 12px; border-radius: 8px; background: var(--green); color: var(--green-ink); }
.linkbtn.alt { background: var(--surface-2); color: var(--ink); }
.linkbtn:hover { filter: brightness(1.07); }
.note { font-size: 14px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card.active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.card summary { list-style: none; cursor: pointer; padding: 13px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.card summary::-webkit-details-marker { display: none; }
.card .nm { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.card .sub { color: var(--muted); font-size: 13.5px; grid-column: 1; }
.card .dist { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 13px; color: var(--green); font-weight: 500; text-align: right; white-space: nowrap; }
.card .body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 10px; }
.kv dt { color: var(--muted); font-size: 12.5px; font-weight: 600; padding-top: 1px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 12.5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.tag.no { text-decoration: line-through; text-decoration-color: var(--clay); color: var(--muted); }
.copy { font: inherit; font-size: 11.5px; font-weight: 600; margin-left: 6px; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.copy:hover { color: var(--ink); }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.empty { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r); padding: 12px 14px; font-size: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices button { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.choices button:hover { border-color: var(--green); }
.list { display: flex; flex-direction: column; gap: 8px; }

/* directory */
.view { padding-block: 26px 40px; }
.view > .wrap > h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.015em; }
.view .intro { color: var(--muted); max-width: 66ch; margin: 6px 0 18px; }
.dirtools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.dirtools input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); flex: 1 1 260px; min-width: 0; max-width: 420px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.jur { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.jur .hd { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.jur .hd b { font-family: var(--display); font-size: 17px; font-weight: 600; }
.jur .ag { font-size: 13.5px; color: var(--muted); }
.jur .links a { font-size: 13.5px; font-weight: 600; }
.dirsec { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.dirsec h3 { font-size: 20px; font-weight: 800; display: flex; gap: 10px; align-items: baseline; }
.dirsec h3 span { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); }

/* guide */
.cattabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.cattabs button { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.cattabs button[aria-selected="true"] { background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.guide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.guide .lead { font-size: 16px; max-width: 64ch; }
.yes, .noo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.yes h3, .noo h3, .side h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.mark { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 14px; font-weight: 800; flex: none; }
.yes .mark { background: var(--green); color: var(--green-ink); }
.noo .mark { background: var(--clay); color: var(--clay-ink); }
.item { padding: 9px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.item b { display: block; }
.item .ex { font-size: 13.5px; color: var(--muted); }
.item .why { font-size: 13.5px; }
.side { display: flex; flex-direction: column; gap: 14px; }
.side .panel { background: var(--surface-2); border-radius: var(--r); padding: 16px 18px; }
.side ol, .side ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.resin { overflow-x: auto; }
.resin table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 460px; }
.resin th, .resin td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.resin th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-top: 0; }
.resin td:first-child { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--green); color: var(--green-ink); }
.pill.mid { background: var(--warn-bg); color: var(--warn-ink); }
.pill.bad { background: var(--clay); color: var(--clay-ink); }
.caution { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r); padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; max-width: 80ch; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }

/* join band */
.join { background: var(--surface-2); border-top: 1px solid var(--line); }
.join .wrap { padding-block: 34px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.join h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -0.015em; }
.join p { max-width: 58ch; margin: 8px 0 0; }
.joincards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.joincards a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.joincards a:hover { border-color: var(--green); }
.joincards b { font-family: var(--display); font-size: 17px; color: var(--green); }
.joincards span { font-size: 13.5px; color: var(--muted); }
footer.foot { background: var(--deep); color: var(--deep-ink); font-size: 13px; }
footer.foot .wrap { padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.foot a { color: var(--deep-ink); }
.loading { padding: 40px 0; color: var(--muted); }

@media (max-width: 900px) {
  .find { grid-template-columns: 1fr; }
  .mapbox { position: static; order: -1; }
  .mapframe { aspect-ratio: 4 / 3; }
  .guide, .join .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .joincards { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- standalone page base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.mono { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
a.mono:hover { color: var(--green); }

/* nav scrolls sideways on narrow phones instead of wrapping into three rows */
@media (max-width: 700px) {
  nav.tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; margin-inline: -4px; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a { white-space: nowrap; }
}

/* alerts */
.alerts { background: var(--warn-bg); color: var(--warn-ink); }
.alerts .wrap { padding-block: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.alerts .alert { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.alerts .alert b { font-weight: 700; }
.alerts .alert.urgent { color: var(--clay); }
.alerts a { color: inherit; font-weight: 600; }

/* verdict pills */
.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--ink); }
.verdict i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.v-curbside { background: var(--green); color: var(--green-ink); }
.v-dropoff { background: var(--v-blue-bg); color: var(--v-blue); }
.v-ewaste { background: var(--v-blue-bg); color: var(--v-blue); }
.v-battery { background: var(--warn-bg); color: var(--warn-ink); }
.v-hhw { background: var(--clay); color: var(--clay-ink); }
.v-trash { background: var(--surface-2); color: var(--muted); }
.v-donate { background: var(--v-plum-bg); color: var(--v-plum); }
.v-compost { background: var(--v-soil-bg); color: var(--v-soil); }
:root { --v-blue: #1f4f8a; --v-blue-bg: #e1ebf7; --v-plum: #6a2c70; --v-plum-bg: #f1e4f2; --v-soil: #6b4a1f; --v-soil-bg: #f1e7d6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --v-blue: #a9c8f0; --v-blue-bg: #1b2c42; --v-plum: #e3b5e8; --v-plum-bg: #34203a; --v-soil: #e8c99a; --v-soil-bg: #352a19; } }
:root[data-theme="dark"] { --v-blue: #a9c8f0; --v-blue-bg: #1b2c42; --v-plum: #e3b5e8; --v-plum-bg: #34203a; --v-soil: #e8c99a; --v-soil-bg: #352a19; }

/* lookup */
.lookup { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 34px; }
.bigsearch { position: relative; }
.bigsearch input { width: 100%; font: inherit; font-size: 18px; padding: 15px 16px 15px 46px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); }
.bigsearch input:focus { outline: none; border-color: var(--green); }
.bigsearch svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.popular { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; align-items: center; font-size: 13.5px; color: var(--muted); }
.popular button { font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.popular button:hover { border-color: var(--green); }
.itemres summary { grid-template-columns: minmax(0, 1fr) auto; }
.itemres .verdict { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.itemres .body p { margin: 0; }
.photo { background: var(--surface); border: 1px dashed var(--green); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.photo h3 { font-size: 18px; font-weight: 800; }
.photo .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo .result { display: flex; flex-direction: column; gap: 8px; }
.filebtn { position: relative; overflow: hidden; display: inline-flex; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green); animation: spin 0.8s linear infinite; display: inline-block; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* events */
.event { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.datebox { background: var(--deep); color: var(--deep-ink); border-radius: 10px; text-align: center; padding: 8px 4px; align-self: start; font-family: var(--display); line-height: 1.05; }
.datebox small { display: block; font-family: var(--body); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.datebox b { font-size: 26px; font-weight: 800; }
.event h4 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; font-weight: 600; }
.event .meta { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.event .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 6px 13px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); }

/* reminders */
.remind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.formcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.field2 { display: flex; flex-direction: column; gap: 5px; }
.field2 label, .field2 .lbl { font-weight: 600; font-size: 14px; }
.field2 .hint2 { font-size: 12.5px; color: var(--muted); }
.field2 input, .field2 select, .field2 textarea { font: inherit; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.field2 textarea { min-height: 84px; resize: vertical; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { display: inline-flex; }
.days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.days span { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.days input:checked + span { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.days input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--green); }
.upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.upcoming li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; flex-wrap: wrap; }
.upcoming li b { font-variant-numeric: tabular-nums; }

/* quiz */
.quizwrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.qcard .q { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.2; }
.qprog { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.qprog i { display: block; height: 100%; background: var(--green); transition: width 0.3s; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts button { font: inherit; font-weight: 600; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.opts button:hover:not(:disabled) { border-color: var(--green); }
.opts button.right { border-color: var(--green); background: var(--green); color: var(--green-ink); }
.opts button.wrong { border-color: var(--clay); color: var(--clay); }
.opts button:disabled { cursor: default; }
.feedback { font-size: 14.5px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.score { font-family: var(--display); font-size: 56px; font-weight: 800; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.challenge ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.challenge li label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.challenge li input { margin-top: 3px; accent-color: var(--green); }
.challenge li input:checked + span { color: var(--muted); text-decoration: line-through; }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--leaf); }

/* dialog */
dialog.dlg { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
dialog.dlg::backdrop { background: rgba(8, 20, 12, 0.55); }
dialog.dlg form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
dialog.dlg h3 { font-size: 20px; font-weight: 800; }
dialog.dlg .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reportlink { font: inherit; font-size: 13px; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; align-self: flex-start; }
.reportlink:hover { color: var(--clay); }
.ok { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 14px; }

@media (max-width: 900px) {
  .lookup, .remind, .quizwrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .opts, .grid2 { grid-template-columns: 1fr; }
  .event { grid-template-columns: 52px minmax(0, 1fr); }
}

/* ---------- v2 ---------- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--leaf); color: #10240f; font-weight: 700; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
[data-v] h1:focus, [data-v] h2:focus { outline: none; }
button.linkbtn { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.btn.ondark { background: transparent; color: var(--deep-ink); border: 1.5px solid rgba(255,255,255,0.35); }
.btn.ondark:hover { background: rgba(255,255,255,0.1); filter: none; }
.btn:disabled { opacity: 0.6; cursor: default; }
.locnote { margin: 0; font-size: 13.5px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 8px 12px; }
#results[aria-busy="true"] { opacity: 0.55; transition: opacity 0.15s; }
.v-special { background: var(--ink); color: var(--paper); }
.danger { background: var(--clay) !important; color: var(--clay-ink) !important; }
.badge { color: var(--clay-ink) !important; }

/* pages rendered without the app: states, counties, items */
.page { max-width: 1000px; }
.page h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 10px; }
.page h2 { font-size: 22px; font-weight: 800; margin: 30px 0 12px; }
.page .lead { font-size: 17px; max-width: 68ch; margin: 0 0 14px; }
.page p { max-width: 72ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; max-width: none !important; }
.linkrow a:not(.linkbtn) { font-weight: 600; margin-right: 10px; }
.answer { margin: 0 0 12px; }
.answer .verdict { font-size: 15px; padding: 6px 14px; }
.plainlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.plainlist.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px 22px; }
.plainlist li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.plainlist a { font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; align-items: start; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; scroll-margin-top: 90px; }
.pcard:target { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.pcard h3 { font-size: 17.5px; font-weight: 600; margin: 0; }
.pcard .sub { color: var(--muted); font-size: 13.5px; margin: 2px 0 10px; }
.pcard .kv { font-size: 14px; }
.agency h2 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.25; }
.page .caution { margin: 14px 0; }

/* ---------- v3: add your listing ---------- */
nav.tabs a.navcta { border: 1.5px solid rgba(255,255,255,0.35); }
nav.tabs a.navcta[aria-current="page"] { border-color: var(--leaf); }
.addgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.addform { gap: 22px; }
.addform fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.addform > fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 18px; }
.addform legend { font-family: var(--display); font-weight: 800; font-size: 19px; padding: 0; margin-bottom: 4px; }
.req { font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--clay); margin-left: 4px; }
.choicecards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choicecards label { display: flex; cursor: pointer; }
.choicecards input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choicecards span { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.choicecards b { font-size: 15px; }
.choicecards small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.choicecards input:checked + span { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; background: var(--surface); }
.choicecards input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.recblock { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.blockhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.blockhead b { font-size: 16px; }
.chipset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chipset legend { font-family: var(--body) !important; font-size: 14px !important; font-weight: 600 !important; margin-bottom: 6px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { display: inline-flex; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.chips input:focus-visible + span { outline: 3px solid var(--leaf); outline-offset: 2px; }
.pickrow { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.pickrow:hover { border-color: var(--green); }
.pickedrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1.5px solid var(--green); border-radius: 10px; background: var(--surface); }
.closedbox { color: var(--clay); font-weight: 600; }
.addcta { margin: 0; font-size: 14px; }
@media (max-width: 900px) { .addgrid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .choicecards { grid-template-columns: 1fr; } }
