:root {
  --ink: #20223b;
  --cream: #fffaf2;
  --paper: #fff;
  --yellow: #ffd45c;
  --coral: #ff6b5f;
  --mint: #9fe0c3;
  --lilac: #c8b7ff;
  --muted: #66657a;
  --line: 2px solid var(--ink);
  --shadow: 0 6px 0 var(--ink);
  color-scheme: light;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { min-width: 300px; margin: 0; background: var(--cream); }
a { color: inherit; }
a, button { min-height: 44px; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--coral); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; border: var(--line); border-radius: 10px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 10px clamp(14px, 4vw, 56px); border-bottom: var(--line); background: rgba(255,250,242,.96); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 48px; height: 48px; }
.brand span { display: grid; line-height: 1.05; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .68rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.site-header nav a { display: inline-grid; place-items: center; padding: 9px 13px; border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 900; text-decoration: none; }
main { width: min(1480px, 100%); margin: auto; }
main > section, main > aside { margin-inline: clamp(14px, 4vw, 56px); }
.eyebrow { margin: 0 0 9px; font-size: .74rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p, li, dd, dt, span { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(3.1rem, 8vw, 7.6rem); line-height: .86; letter-spacing: -.06em; }
h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.7rem); line-height: .98; letter-spacing: -.04em; }
h3 { margin: 0; line-height: 1.08; }
p, li { line-height: 1.55; }
.directory-hero { position: relative; isolation: isolate; margin-inline: 0; padding: clamp(70px, 10vw, 145px) clamp(14px, 4vw, 56px) 80px; overflow: hidden; background: var(--ink); color: var(--paper); }
.directory-hero::after { position: absolute; z-index: -1; right: -80px; bottom: -310px; width: min(700px, 75vw); aspect-ratio: 1; border: 100px solid rgba(159,224,195,.12); border-radius: 50%; content: ""; }
.hero-copy { max-width: 820px; margin: 28px 0 40px; color: #e5e3f1; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.system-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 1060px; margin: 0; }
.system-facts div { padding: 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; background: rgba(255,255,255,.08); }
.system-facts dt { color: var(--mint); font-size: .68rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.system-facts dd { margin: 6px 0 0; font-weight: 950; }
.system-notice { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: -28px; padding: 20px 22px; border: var(--line); border-radius: 18px; background: var(--yellow); box-shadow: var(--shadow); }
.system-notice > span { display: grid; width: 48px; aspect-ratio: 1; place-items: center; border: var(--line); border-radius: 50%; background: var(--paper); font-size: 1.7rem; font-weight: 950; }
.system-notice h2 { font-size: 1.1rem; letter-spacing: 0; }
.system-notice p { margin: 6px 0 0; font-size: .88rem; }
.system-notice a { display: inline-grid; place-items: center; padding: 10px 14px; border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 950; text-align: center; text-decoration: none; }
.open-polls, .method, .history, .data-boundary { padding-block: clamp(76px, 9vw, 125px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 32px; }
.section-heading > p { max-width: 560px; margin: 0; color: var(--muted); }
.poll-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); }
.poll-card { display: flex; min-width: 0; padding: clamp(22px, 4vw, 38px); border: var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); flex-direction: column; }
.art-card { background: #fff7d9; }
.parent-card { background: #e5f8ef; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.poll-number, .status { display: inline-flex; width: max-content; padding: 7px 10px; border: var(--line); border-radius: 999px; font-size: .72rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.status.open { background: var(--mint); }
.art-preview { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 28px 0; }
.art-preview span { display: grid; min-height: 90px; place-items: end center; padding: 8px 3px; border: var(--line); border-radius: 12px; color: var(--ink); font-size: .72rem; font-weight: 950; }
.art-preview span:nth-child(1) { background: #dcebd1; }
.art-preview span:nth-child(2) { background: #eea09b; }
.art-preview span:nth-child(3) { background: #bbd9ed; }
.art-preview span:nth-child(4) { background: #b6b2e8; }
.art-preview span:nth-child(5) { background: #ffd45c; }
.art-preview span:nth-child(6) { background: #9fe0c3; }
.question-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0; }
.question-preview span { display: grid; min-height: 90px; place-items: center; padding: 10px; border: var(--line); border-radius: 14px; background: var(--paper); font-size: .78rem; font-weight: 950; text-align: center; }
.poll-card .audience { margin: 0 0 10px; color: var(--muted); font-size: .74rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.poll-card h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.035em; }
.poll-card > p:not(.audience) { color: var(--muted); }
.card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 24px; }
.card-facts div { padding: 11px; border: 1px solid #aaa9b4; border-radius: 10px; background: rgba(255,255,255,.65); }
.card-facts dt { color: var(--muted); font-size: .65rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.card-facts dd { margin: 5px 0 0; font-weight: 900; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-top: auto; padding: 12px 16px; border: var(--line); border-radius: 999px; background: var(--coral); font-weight: 950; text-decoration: none; }
.plain-link { display: inline-grid; place-items: center; margin-top: 10px; font-weight: 900; }
.method { margin-inline: 0; padding-inline: clamp(14px, 4vw, 56px); border-block: var(--line); background: #edf8f5; }
.method-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.method-steps li { padding: 20px; border: var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--ink); }
.method-steps li > span { display: grid; width: 42px; aspect-ratio: 1; margin-bottom: 26px; place-items: center; border: var(--line); border-radius: 50%; background: var(--yellow); font-weight: 950; }
.method-steps h3 { font-size: 1.18rem; }
.method-steps p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.history-table { overflow: hidden; border: var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 4px 0 var(--ink); }
.history-row { display: grid; grid-template-columns: .6fr 2fr .7fr 1fr; align-items: center; gap: 16px; min-height: 72px; padding: 14px 18px; border-bottom: 1px solid #cfced6; text-decoration: none; }
.history-row:last-child { border: 0; }
.history-row:not(.history-head):hover { background: #fff7d9; }
.history-head { min-height: 46px; background: var(--ink); color: var(--paper); font-size: .7rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.history-row > span:first-child { display: grid; }
.history-row small { margin-top: 3px; color: var(--muted); }
.history-row .status { font-size: .65rem; }
.registry-note { color: var(--muted); font-size: .86rem; }
.registry-note a { display: inline-grid; min-height: 44px; padding-inline: 4px; place-items: center; font-weight: 900; }
.data-boundary { margin-bottom: 90px; padding-inline: clamp(24px, 6vw, 80px); border: var(--line); border-radius: 24px; background: var(--lilac); box-shadow: var(--shadow); }
.data-boundary > div:first-child > p:last-child { max-width: 900px; }
.boundary-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.boundary-lists article { padding: 22px; border: var(--line); border-radius: 16px; background: var(--paper); }
.boundary-lists ul { padding-left: 22px; }
.provider-note { max-width: 900px; color: #454258; font-size: .86rem; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px clamp(14px, 4vw, 56px); border-top: var(--line); background: var(--ink); color: var(--paper); }
footer p { margin: 0; }
footer a { display: inline-grid; place-items: center; color: var(--paper); font-weight: 950; }

@media (max-width: 960px) {
  .poll-card-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-notice { grid-template-columns: auto 1fr; }
  .system-notice a { grid-column: 2; justify-self: start; }
}
@media (max-width: 680px) {
  .site-header { position: relative; align-items: flex-start; }
  .brand small { display: none; }
  .site-header nav { max-width: 150px; }
  .site-header nav a { width: 100%; font-size: .72rem; }
  .system-facts, .boundary-lists { grid-template-columns: 1fr 1fr; }
  .system-notice { grid-template-columns: 1fr; margin-top: 16px; }
  .system-notice > span { display: none; }
  .system-notice a { grid-column: 1; justify-self: stretch; }
  .section-heading { display: grid; align-items: start; gap: 14px; }
  .art-preview { grid-template-columns: repeat(3, 1fr); }
  .art-preview span { min-height: 64px; }
  .question-preview, .method-steps { grid-template-columns: 1fr; }
  .question-preview span { min-height: 64px; }
  .history-table { border: 0; overflow: visible; background: transparent; box-shadow: none; }
  .history-head { display: none; }
  .history-row { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; border: var(--line) !important; border-radius: 15px; background: var(--paper); box-shadow: 0 3px 0 var(--ink); }
  footer { display: grid; }
}
@media (max-width: 420px) { .system-facts, .boundary-lists, .card-facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
