@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');
:root {
  --background: 43 42% 96%;
  --foreground: 168 25% 19%;
  --card: 45 40% 99%;
  --card-foreground: 168 25% 19%;
  --popover: 45 40% 99%;
  --popover-foreground: 168 25% 19%;
  --primary: 165 35% 28%;
  --primary-foreground: 45 40% 99%;
  --secondary: 43 31% 91%;
  --secondary-foreground: 168 25% 19%;
  --muted: 43 29% 92%;
  --muted-foreground: 165 10% 43%;
  --accent: 15 52% 54%;
  --accent-foreground: 45 40% 99%;
  --destructive: 2 58% 48%;
  --destructive-foreground: 45 40% 99%;
  --border: 40 21% 83%;
  --input: 40 21% 83%;
  --ring: 165 35% 28%;
  --app-font-sans: 'DM Sans', sans-serif;
  --app-font-serif: 'Fraunces', Georgia, serif;
  --app-font-mono: 'DM Mono', monospace;
  --radius: 0.8rem;
  --button-outline: rgba(40, 64, 56, 0.12);
  --badge-outline: rgba(40, 64, 56, 0.08);
  --elevate-1: rgba(40, 64, 56, 0.035);
  --elevate-2: rgba(40, 64, 56, 0.08);
  --sidebar: 43 42% 96%;
  --sidebar-foreground: 168 25% 19%;
  --sidebar-border: 40 21% 83%;
  --sidebar-primary: 165 35% 28%;
  --sidebar-primary-foreground: 45 40% 99%;
  --sidebar-accent: 43 31% 91%;
  --sidebar-accent-foreground: 168 25% 19%;
  --sidebar-ring: 165 35% 28%;
  --chart-1: 165 35% 28%;
  --chart-2: 15 52% 54%;
  --chart-3: 44 44% 59%;
  --chart-4: 194 27% 49%;
  --chart-5: 331 24% 52%;
}

.dark {
  --background: 168 22% 13%;
  --foreground: 43 32% 92%;
  --card: 168 20% 17%;
  --card-foreground: 43 32% 92%;
  --popover: 168 20% 17%;
  --popover-foreground: 43 32% 92%;
  --primary: 157 31% 57%;
  --primary-foreground: 168 25% 13%;
  --secondary: 168 15% 23%;
  --secondary-foreground: 43 32% 92%;
  --muted: 168 15% 23%;
  --muted-foreground: 43 15% 68%;
  --accent: 15 57% 64%;
  --accent-foreground: 168 25% 13%;
  --destructive: 2 60% 58%;
  --destructive-foreground: 43 32% 92%;
  --border: 168 13% 29%;
  --input: 168 13% 29%;
  --ring: 157 31% 57%;
  --sidebar: 168 22% 13%;
  --sidebar-foreground: 43 32% 92%;
  --sidebar-border: 168 13% 29%;
  --sidebar-primary: 157 31% 57%;
  --sidebar-primary-foreground: 168 25% 13%;
  --sidebar-accent: 168 15% 23%;
  --sidebar-accent-foreground: 43 32% 92%;
  --sidebar-ring: 157 31% 57%;
  --chart-1: 157 31% 57%;
  --chart-2: 15 57% 64%;
  --chart-3: 44 44% 63%;
  --chart-4: 194 35% 62%;
  --chart-5: 331 34% 66%;
}

html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--app-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { border-color: hsl(var(--border)); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid hsl(var(--accent)); outline-offset: 3px; }

.page-grain::before {
  content: '';
  pointer-events: none;
  position: fixed;
  z-index: 10;
  inset: 0;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

.reveal { animation: rise-in 650ms cubic-bezier(.2,.75,.25,1) both; }
.reveal-delay { animation-delay: 110ms; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

.page-grain { min-height: 100dvh; position: relative; overflow: hidden; }
.site-header { height: 77px; border-bottom: 1px solid hsl(var(--border)); position: relative; z-index: 2; }
.header-inner, .footer-inner, .footer-bottom { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: hsl(var(--foreground)); }
.brand-symbol { width: 31px; height: 31px; display: grid; place-items: center; color: hsl(var(--primary)); border: 1px solid hsl(var(--primary) / .4); border-radius: 50% 50% 47% 47%; }
.brand-name { font-family: var(--app-font-serif); font-size: 21px; font-weight: 600; letter-spacing: -.7px; }
.brand-period { color: hsl(var(--accent)); }
.header-nav { display: flex; align-items: center; gap: 35px; height: 100%; }
.nav-link { text-decoration: none; color: hsl(var(--muted-foreground)); font-size: 15px; font-weight: 600; letter-spacing: .015em; display: inline-flex; height: 100%; align-items: center; position: relative; transition: color .2s; }
.nav-link:hover, .nav-link.is-current { color: hsl(var(--foreground)); }
.nav-link.is-current::after { content: ''; position: absolute; bottom: -1px; height: 2px; left: 0; right: 0; background: hsl(var(--accent)); }
.header-note { color: hsl(var(--muted-foreground)); font-size: 14px; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .12); }

.hero { min-height: 520px; background: hsl(43 40% 93%); position: relative; padding: 78px 0 52px; }
.hero-inner { width: min(1120px, calc(100% - 64px)); min-height: 370px; margin: auto; display: grid; grid-template-columns: 1fr .9fr 80px; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 12px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: hsl(var(--primary)); font-size: 13px; letter-spacing: .16em; font-weight: 700; }
.eyebrow-line { width: 25px; height: 1px; background: hsl(var(--accent)); }
.hero h1, .about-hero h1 { margin: 24px 0 20px; font-family: var(--app-font-serif); font-weight: 500; font-size: clamp(55px, 6.5vw, 82px); letter-spacing: -.065em; line-height: .99; color: hsl(var(--foreground)); }
.hero h1 em, .lookup-intro h2 em, .about-hero h1 em { color: hsl(var(--primary)); font-weight: 500; }
.hero-description { max-width: 392px; color: hsl(var(--muted-foreground)); font-size: 16px; line-height: 1.8; margin: 0; }
.hero-scroll { display: flex; align-items: center; gap: 11px; margin-top: 27px; color: hsl(var(--foreground)); text-decoration: none; font-size: 15px; font-weight: 600; width: max-content; }
.scroll-circle { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid hsl(var(--border)); border-radius: 50%; color: hsl(var(--primary)); transition: background .2s, transform .2s; }
.hero-scroll:hover .scroll-circle { transform: translateY(3px); background: hsl(var(--card)); }
.hero-art { height: 350px; position: relative; display: grid; place-items: center; }
.art-orbit { border: 1px solid hsl(var(--primary) / .14); border-radius: 50%; position: absolute; }
.orbit-one { width: 310px; height: 310px; }
.orbit-two { width: 246px; height: 246px; border-style: dashed; opacity: .65; }
.pamphlet-illustration { width: 200px; height: 260px; position: relative; transform: rotate(5deg); z-index: 1; }
.pamphlet-sheet { background: #f9f5e9; position: absolute; inset: 0 0 13px 12px; padding: 25px 24px; border: 1px solid #d7d0bd; box-shadow: 9px 11px 0 #e5ddc9; color: hsl(var(--primary)); }
.pamphlet-spine { position: absolute; z-index: 2; width: 10px; top: 0; bottom: 13px; left: 8px; background: #b3c2a5; border-left: 1px solid #91a085; }
.pamphlet-mark { border: 1px solid hsl(var(--primary) / .45); width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 23px; }
.pamphlet-caption { font-family: var(--app-font-serif); font-size: 17px; line-height: 1.15; letter-spacing: -.5px; }
.pamphlet-rule { height: 2px; width: 30px; background: hsl(var(--accent)); margin: 14px 0 12px; }
.pamphlet-lines { display: flex; flex-direction: column; gap: 6px; }
.pamphlet-lines i { height: 2px; width: 100%; background: #d6d4c7; }
.pamphlet-lines i:last-child { width: 62%; }
.pamphlet-year { font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .02em; color: #758779; position: absolute; bottom: 21px; }
.pamphlet-shadow { position: absolute; width: 240px; height: 25px; bottom: 0; left: -15px; border-radius: 50%; background: hsl(var(--primary) / .10); filter: blur(12px); }
.art-star { position: absolute; width: 13px; height: 13px; }
.art-star::before, .art-star::after { content: ''; position: absolute; background: hsl(var(--accent)); }
.art-star::before { height: 1px; width: 13px; top: 6px; }
.art-star::after { height: 13px; width: 1px; left: 6px; }
.star-a { top: 55px; right: 76px; transform: rotate(45deg); }
.star-b { bottom: 52px; left: 80px; transform: rotate(45deg) scale(.7); }
.art-caption { position: absolute; right: -12px; bottom: 18px; writing-mode: vertical-rl; color: hsl(var(--muted-foreground)); font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .1em; }
.hero-side-note { align-self: center; justify-self: end; font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .08em; line-height: 1.7; color: hsl(var(--muted-foreground)); writing-mode: vertical-rl; }
.hero-side-note span { margin-top: 20px; color: hsl(var(--accent)); }
.hero-bottom-rule { width: min(1120px, calc(100% - 64px)); margin: 33px auto 0; padding-top: 14px; border-top: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; color: hsl(var(--muted-foreground)); font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .1em; }

.lookup-section { padding: 87px 0 91px; }
.lookup-grid { width: min(1000px, calc(100% - 64px)); margin: auto; display: grid; grid-template-columns: .85fr 1fr; gap: 88px; align-items: start; }
.section-index { color: hsl(var(--accent)); font-family: var(--app-font-mono); font-size: 13px; letter-spacing: .13em; }
.section-index span { color: hsl(var(--muted-foreground)); padding: 0 4px; }
.lookup-intro h2 { margin: 23px 0 17px; font: 500 clamp(36px, 4vw, 46px)/1.12 var(--app-font-serif); letter-spacing: -.045em; }
.lookup-intro p { color: hsl(var(--muted-foreground)); font-size: 16px; line-height: 1.8; max-width: 360px; }
.trust-note { margin-top: 25px; display: flex; align-items: flex-start; gap: 11px; color: hsl(var(--primary)); }
.trust-note span { font-size: 14px; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.trust-note strong { color: hsl(var(--foreground)); font-weight: 600; }
.lookup-panel { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 27px 30px 0; box-shadow: 0 12px 40px rgba(56, 67, 51, .045); }
.panel-label { display: flex; align-items: center; gap: 8px; color: hsl(var(--primary)); font-size: 13px; letter-spacing: .11em; font-weight: 700; padding-bottom: 22px; border-bottom: 1px solid hsl(var(--border)); }
.zip-form { padding-top: 21px; }
.zip-form label { font-size: 15px; font-weight: 600; display: block; margin-bottom: 9px; }
.input-row { display: flex; gap: 9px; }
.zip-input-wrap { height: 48px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); display: flex; align-items: center; gap: 10px; padding: 0 13px; flex: 1; min-width: 0; color: hsl(var(--muted-foreground)); transition: border-color .2s; }
.zip-input-wrap:focus-within { border-color: hsl(var(--primary)); }
.zip-input-wrap input { width: 100%; border: 0; outline: none; background: transparent; color: hsl(var(--foreground)); font-family: var(--app-font-mono); font-size: 16px; letter-spacing: .07em; }
.zip-input-wrap input::placeholder { color: hsl(var(--muted-foreground) / .65); }
.zip-input-wrap input:focus-visible { outline: none; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 13px; text-decoration: none; border: 0; padding: 0 18px; min-height: 46px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.button-primary:hover { background: hsl(165 35% 23%); transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); }
.search-button { min-width: 108px; }
.input-hint, .form-error { font-size: 14px; color: hsl(var(--muted-foreground)); margin: 9px 0 0; }
.form-error { color: hsl(var(--destructive)); }
.zip-directory { margin-top: 23px; }
.zip-directory-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 0 9px; color: hsl(var(--muted-foreground)); font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.zip-directory-heading span:last-child { color: hsl(var(--primary)); }
.zip-directory-list { border-top: 1px solid hsl(var(--border)); }
.zip-directory-row { width: 100%; display: grid; grid-template-columns: 61px 1fr 16px; align-items: center; gap: 10px; padding: 11px 2px; border: 0; border-bottom: 1px solid hsl(var(--border)); background: transparent; color: hsl(var(--foreground)); text-align: left; cursor: pointer; transition: background .18s, padding .18s; }
.zip-directory-row:hover { padding-inline: 8px; background: hsl(var(--primary) / .045); }
.zip-directory-code { color: hsl(var(--primary)); font-size: 15px; letter-spacing: .04em; }
.zip-directory-place { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.zip-directory-place strong { font-size: 14px; font-weight: 600; }
.zip-directory-place span { color: hsl(var(--muted-foreground)); font-size: 12px; }
.zip-directory-row > svg { color: hsl(var(--accent)); }
.zip-directory-note { margin: 10px 0 0; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.55; }
.panel-footnote { margin: 27px -30px 0; padding: 14px 30px; border-top: 1px solid hsl(var(--border)); display: flex; gap: 9px; align-items: center; color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.5; }
.footnote-mark { border: 1px solid hsl(var(--border)); color: hsl(var(--primary)); width: 16px; height: 16px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-family: var(--app-font-serif); font-size: 14px; }
.search-results { margin: 22px -30px 0; border-top: 1px solid hsl(var(--border)); }
.results-heading { padding: 14px 30px; display: flex; align-items: center; justify-content: space-between; }
.results-count { font-size: 15px; font-weight: 700; }
.results-zip { font-family: var(--app-font-mono); font-size: 13px; color: hsl(var(--muted-foreground)); }
.lookup-message { margin: 0 18px 17px; padding: 15px; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.7; }
.jurisdiction-summary { margin: 0 18px 16px; padding: 16px; border: 1px solid hsl(var(--border)); background: hsl(43 38% 95%); }
.jurisdiction-state { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid hsl(var(--border)); }
.jurisdiction-state span, .geography-group h3 { color: hsl(var(--muted-foreground)); font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.jurisdiction-state strong { font-size: 14px; font-weight: 700; }
.geography-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 12px; }
.geography-group { min-width: 0; }
.geography-group h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.geography-group h3 span { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: hsl(var(--primary) / .08); color: hsl(var(--primary)); }
.geography-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.geography-group li, .geography-group > p { margin: 0; color: hsl(var(--foreground)); font-size: 13px; line-height: 1.55; }
.geography-group li span { color: hsl(var(--muted-foreground)); }
.geography-group > p { color: hsl(var(--muted-foreground)); }
.mapping-caveat { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.65; }
.not-indexed { margin: 0 18px 18px; display: flex; gap: 14px; padding: 18px; background: hsl(43 38% 95%); border: 1px solid hsl(var(--border)); }
.not-indexed-icon { display: grid; place-items: center; width: 38px; height: 38px; background: hsl(var(--primary) / .08); color: hsl(var(--primary)); flex: 0 0 auto; }
.not-indexed-copy h3 { margin: 1px 0 7px; font: 500 18px/1.25 var(--app-font-serif); letter-spacing: -.02em; }
.not-indexed-copy p { margin: 0; max-width: 410px; color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.75; }
.official-link, .source-link { display: inline-flex; align-items: center; gap: 7px; color: hsl(var(--primary)); text-decoration: none; font-weight: 700; }
.official-link { margin-top: 13px; font-size: 14px; border-bottom: 1px solid hsl(var(--primary) / .3); padding-bottom: 3px; }
.official-link:hover, .source-link:hover { color: hsl(var(--accent)); }
.search-again { margin: 0 30px 17px; padding: 0; background: none; border: 0; color: hsl(var(--muted-foreground)); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.search-again:hover { color: hsl(var(--primary)); }
.results-list { padding: 0 18px 16px; display: grid; gap: 10px; }
.result-card { border: 1px solid hsl(var(--border)); background: hsl(var(--background)); padding: 17px; }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.result-kicker { display: flex; align-items: center; gap: 6px; color: hsl(var(--primary)); font-size: 13px; font-weight: 700; letter-spacing: .03em; }
.tiny-seal { border: 1px solid hsl(var(--primary) / .35); width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; }
.result-updated { color: hsl(var(--muted-foreground)); font-size: 12px; }
.result-card h3 { font: 500 21px/1.3 var(--app-font-serif); letter-spacing: -.03em; margin: 13px 0; }
.result-comma { color: hsl(var(--accent)); }
.result-facts { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 11px; padding: 12px 0; border-block: 1px solid hsl(var(--border)); }
.result-facts div { display: flex; flex-direction: column; gap: 5px; }
.result-facts span { color: hsl(var(--muted-foreground)); font-size: 12px; }
.result-facts strong { font-size: 14px; font-weight: 600; }
.mono { font-family: var(--app-font-mono); }
.result-actions { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; padding-top: 13px; }
.result-actions .button-primary { min-height: 36px; padding: 0 12px; font-size: 13px; }
.source-link { font-size: 13px; }

.principles-strip { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); background: hsl(43 35% 94%); padding: 26px max(32px, calc((100% - 1120px) / 2)); display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 30px; }
.principle { display: grid; grid-template-columns: 32px 1fr; column-gap: 9px; row-gap: 4px; align-items: baseline; }
.principle-number { grid-row: span 2; align-self: start; color: hsl(var(--accent)); font-family: var(--app-font-mono); font-size: 13px; }
.principle-title { font-family: var(--app-font-serif); font-size: 17px; }
.principle-copy { color: hsl(var(--muted-foreground)); font-size: 13px; line-height: 1.5; }
.principle-more { display: flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; color: hsl(var(--primary)); font-size: 14px; font-weight: 700; }
.principle-more:hover { color: hsl(var(--accent)); }

.site-footer { padding: 32px 0 18px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 27px; }
.footer-brand p { font-size: 14px; color: hsl(var(--muted-foreground)); margin: 8px 0 0 41px; }
.footer-brand .brand-symbol { width: 28px; height: 28px; }
.footer-brand .brand-name { font-size: 19px; }
.footer-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; color: hsl(var(--muted-foreground)); font-size: 13px; }
.footer-meta a { display: flex; align-items: center; gap: 6px; color: hsl(var(--primary)); text-decoration: none; font-weight: 600; }
.footer-bottom { border-top: 1px solid hsl(var(--border)); padding-top: 13px; display: flex; justify-content: space-between; color: hsl(var(--muted-foreground)); font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .015em; }

.about-page { width: min(980px, calc(100% - 64px)); margin: auto; }
.about-topline { padding: 27px 0 52px; display: flex; align-items: center; justify-content: space-between; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: hsl(var(--muted-foreground)); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { color: hsl(var(--primary)); }
.about-hero { padding: 7px 0 56px 95px; border-bottom: 1px solid hsl(var(--border)); }
.about-hero h1 { font-size: clamp(47px, 6vw, 68px); margin: 21px 0 17px; }
.about-hero h1 em { font-size: .82em; }
.about-lede { margin: 0; max-width: 505px; font-size: 16px; line-height: 1.8; color: hsl(var(--muted-foreground)); }
.about-layout { display: grid; grid-template-columns: 210px 1fr; gap: 64px; padding: 58px 0 63px; }
.about-aside { display: flex; flex-direction: column; align-items: flex-start; color: hsl(var(--muted-foreground)); font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .11em; }
.aside-number { color: hsl(var(--accent)); font-size: 33px; letter-spacing: -.08em; margin-bottom: 7px; }
.aside-line { width: 28px; height: 1px; background: hsl(var(--accent)); margin: 18px 0; }
.aside-note { font-family: var(--app-font-serif); font-size: 18px; line-height: 1.45; letter-spacing: -.02em; color: hsl(var(--primary)); }
.about-content { max-width: 625px; }
.about-block { padding-bottom: 37px; margin-bottom: 34px; border-bottom: 1px solid hsl(var(--border)); }
.about-block-index { color: hsl(var(--accent)); font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .12em; }
.about-block h2 { font: 500 27px/1.2 var(--app-font-serif); letter-spacing: -.04em; margin: 11px 0 12px; }
.about-block p { color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.85; margin: 0 0 13px; }
.about-block p strong { color: hsl(var(--foreground)); font-weight: 700; }
.about-block p a { color: hsl(var(--primary)); text-underline-offset: 3px; }
.about-block p a:hover { color: hsl(var(--accent)); }
.policy-callout { margin-top: 19px; border-left: 2px solid hsl(var(--accent)); background: hsl(43 35% 93%); padding: 14px 16px; display: flex; gap: 11px; align-items: flex-start; color: hsl(var(--primary)); }
.policy-callout span { color: hsl(var(--foreground)); font-size: 14px; line-height: 1.7; }
.about-cta { margin-top: 5px; }
.about-signoff { display: flex; align-items: center; gap: 13px; color: hsl(var(--muted-foreground)); font-size: 14px; line-height: 1.7; }
.about-signoff strong { color: hsl(var(--foreground)); font-weight: 600; }
.signoff-seal { width: 31px; height: 31px; border: 1px solid hsl(var(--primary) / .35); border-radius: 50%; color: hsl(var(--primary)); display: grid; place-items: center; }
.about-bottom { display: flex; justify-content: space-between; color: hsl(var(--muted-foreground)); border-top: 1px solid hsl(var(--border)); padding: 14px 0; font-family: var(--app-font-mono); font-size: 12px; letter-spacing: .05em; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr .75fr 38px; }
  .hero-art { transform: scale(.88); }
  .lookup-grid { gap: 40px; }
  .principles-strip { grid-template-columns: 1fr 1fr; padding-inline: 32px; }
}
@media (max-width: 680px) {
  .header-inner, .footer-inner, .footer-bottom { width: min(100% - 36px, 520px); }
  .site-header { height: 67px; }
  .header-inner { flex-wrap: wrap; }
  .brand-name { font-size: 19px; }
  .header-nav { gap: 16px; }
  .nav-link { font-size: 14px; }
  .header-note { display: none; }
  .hero { padding: 53px 0 27px; }
  .hero-inner { width: min(100% - 40px, 520px); display: grid; grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { font-size: clamp(53px, 14vw, 72px); margin-top: 19px; }
  .hero-description { font-size: 16px; max-width: 360px; }
  .hero-art { display: none; }
  .hero-copy { z-index: 1; }
  .hero-side-note { display: none; }
  .hero-bottom-rule { width: calc(100% - 40px); margin-top: 36px; font-size: 11px; }
  .lookup-section { padding: 60px 0; }
  .lookup-grid { width: min(100% - 40px, 520px); grid-template-columns: 1fr; gap: 27px; }
  .lookup-intro h2 { font-size: 39px; }
  .lookup-intro p { max-width: 470px; }
  .trust-note { margin-top: 19px; }
  .lookup-panel { padding: 21px 18px 0; }
  .zip-directory { margin-top: 20px; }
  .zip-directory-row { grid-template-columns: 55px 1fr 16px; }
  .panel-footnote { margin-inline: -18px; padding-inline: 18px; }
  .search-results { margin-inline: -18px; }
  .results-heading { padding-inline: 18px; }
  .not-indexed { margin-inline: 12px; padding: 14px; }
  .lookup-message { margin-inline: 12px; }
  .jurisdiction-summary { margin-inline: 12px; padding: 13px; }
  .geography-grid { gap: 12px; }
  .results-list { padding-inline: 12px; }
  .search-again { margin-inline: 18px; }
  .result-facts { grid-template-columns: 1fr 1fr; }
  .result-facts div:last-child { grid-column: 1 / -1; }
  .principles-strip { padding: 25px 20px; grid-template-columns: 1fr 1fr; gap: 23px 13px; }
  .principle { grid-template-columns: 25px 1fr; gap: 4px 6px; }
  .principle-title { font-size: 16px; }
  .principle-copy { font-size: 12px; }
  .principle-more { font-size: 13px; }
  .footer-inner { gap: 20px; }
  .footer-brand p { margin-left: 0; max-width: 190px; line-height: 1.5; }
  .footer-meta { text-align: right; }
  .footer-bottom { gap: 12px; font-size: 11px; line-height: 1.5; }
  .about-page { width: min(100% - 40px, 520px); }
  .about-topline { padding: 22px 0 38px; }
  .about-hero { padding: 0 0 38px; }
  .about-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .about-hero h1 em { font-size: .8em; }
  .about-lede { font-size: 15px; }
  .about-layout { grid-template-columns: 1fr; gap: 25px; padding: 36px 0 42px; }
  .about-aside { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; }
  .aside-number { font-size: 23px; margin: 0; }
  .aside-line { margin: 0; width: 100%; }
  .aside-note { font-size: 15px; line-height: 1.3; }
  .about-block { padding-bottom: 28px; margin-bottom: 26px; }
  .about-block h2 { font-size: 25px; }
  .about-bottom { gap: 14px; font-size: 11px; line-height: 1.5; }
}

@media (max-width: 380px) {
  .header-inner, .footer-inner, .footer-bottom { width: calc(100% - 28px); }
  .brand-lockup { gap: 6px; }
  .header-nav { gap: 10px; }
  .nav-link { font-size: 13px; }
  .input-row { flex-direction: column; }
  .search-button { width: 100%; }
  .hero-bottom-rule { font-size: 11px; }
  .principles-strip { grid-template-columns: 1fr; }
  .principle-more { margin-left: 31px; }
}

/* Coverage tier notice: shown when a statewide guide answers a local lookup. */
.tier-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid hsl(var(--accent));
  border-radius: 0.4rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ZIP autocomplete */
.zip-suggestions {
  list-style: none;
  margin: -0.25rem 0 0.75rem;
  padding: 0.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: 0 10px 26px rgba(40, 64, 56, 0.10);
  max-height: 17rem;
  overflow-y: auto;
}
.zip-suggestions[hidden] { display: none; }

.zip-suggestion {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: calc(var(--radius) - 0.35rem);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.zip-suggestion:hover,
.zip-suggestion:focus-visible { background: hsl(var(--secondary)); }

.zip-suggestion-code {
  font-family: var(--app-font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: hsl(var(--primary));
}

.zip-suggestion-label {
  flex: 1;
  font-size: 0.86rem;
  color: hsl(var(--muted-foreground));
}

.zip-suggestion-badge {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Coverage tiers: city, county and state guides are shown together, most
   local first, each labelled so a statewide guide is never mistaken for the
   local one.

   .search-results spans the full panel width using negative margins, so every
   block inside it supplies its own horizontal padding. These groups had none,
   which pushed the heading and hint flush against the panel edge. 18px matches
   .results-list and .not-indexed. */
.tier-group {
  margin-bottom: 1.75rem;
  padding: 0 18px;
}

/* Inside a tier group the cards already sit in a padded container, so the list
   itself must not add a second layer of padding. */
.tier-group .results-list {
  padding: 0;
}

.tier-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.3rem;
  font-family: var(--app-font-serif);
  font-size: 1.05rem;
  color: hsl(var(--foreground));
}

.tier-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  font-family: var(--app-font-mono);
  font-size: 0.72rem;
}

.tier-hint {
  margin: 0 0 0.9rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

/* The populous-county browser is a starting point, hidden while a ZIP result is
   on screen. */
.zip-directory[hidden] { display: none; }

/* "At a glance" panel: rendered from the extraction stored with each record,
   so it costs nothing to serve. Deliberately compact - a county pamphlet can
   yield 164 offices, so details are collapsed behind <details>. */
.glance {
  margin: 14px 0 4px;
  padding: 14px 15px 12px;
  border: 1px solid hsl(var(--border));
  background: hsl(43 38% 95.5%);
}

.glance-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid hsl(var(--border));
}

.glance-label {
  font-family: var(--app-font-mono);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  font-weight: 700;
}

.glance-source {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.glance-election {
  margin: 11px 0 12px;
  font: 500 15px/1.35 var(--app-font-serif);
  color: hsl(var(--foreground));
}

.glance-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.glance-stat {
  padding: 8px 9px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.glance-stat span {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 3px;
}

.glance-stat strong {
  font-family: var(--app-font-mono);
  font-size: 17px;
  color: hsl(var(--primary));
}

.glance-details {
  border-top: 1px solid hsl(var(--border));
  padding-top: 9px;
  margin-top: 9px;
}

.glance-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: hsl(var(--foreground));
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.glance-details summary::-webkit-details-marker { display: none; }

.glance-details summary::before {
  content: '+';
  font-family: var(--app-font-mono);
  color: hsl(var(--accent));
  font-weight: 700;
}

.glance-details[open] summary::before { content: '-'; }

.glance-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: hsl(var(--primary) / .08);
  color: hsl(var(--primary));
  font-family: var(--app-font-mono);
  font-size: 12px;
}

.glance-measures,
.glance-offices {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.glance-measures li {
  padding-bottom: 9px;
  border-bottom: 1px dotted hsl(var(--border));
}

.glance-measures li:last-child { border-bottom: 0; padding-bottom: 0; }

.glance-measure-id {
  display: inline-block;
  margin-bottom: 3px;
  padding: 1px 6px;
  background: hsl(var(--primary) / .08);
  color: hsl(var(--primary));
  font-family: var(--app-font-mono);
  font-size: 12px;
}

.glance-measures strong,
.glance-offices strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.glance-measures p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

.glance-offices li span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

.glance-more,
.glance-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
}

.glance-note {
  padding-top: 9px;
  border-top: 1px solid hsl(var(--border));
}

/* Pamphlet pages: the complete view behind each result card. */
.guide-page { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }

.guide-head { margin: 26px 0 34px; }

.guide-head h1 {
  font: 500 34px/1.2 var(--app-font-serif);
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.guide-lede {
  margin: 0 0 18px;
  color: hsl(var(--muted-foreground));
  font-size: 16px;
}

.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.guide-disclaimer {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 15px;
  line-height: 1.6;
}

.guide-section { margin-top: 38px; }

.guide-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 500 20px/1.3 var(--app-font-serif);
}

.guide-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  background: hsl(var(--primary) / .08);
  color: hsl(var(--primary));
  font-family: var(--app-font-mono);
  font-size: 14px;
}

.page-measure {
  padding: 16px 0;
  border-top: 1px solid hsl(var(--border));
}

.page-measure-id {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  background: hsl(var(--primary) / .08);
  color: hsl(var(--primary));
  font-family: var(--app-font-mono);
  font-size: 13px;
}

.page-measure h3,
.page-office h3 {
  margin: 0 0 8px;
  font: 600 14px/1.45 var(--app-font-sans);
}

.page-quote {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 15px;
  line-height: 1.7;
}

.page-office {
  padding: 14px 0;
  border-top: 1px solid hsl(var(--border));
}

.page-office ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }

.page-office li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
}

.page-office li strong { font-weight: 600; }

.page-party {
  padding: 1px 7px;
  border-radius: 99px;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  font-size: 13px;
}

.page-office li em { color: hsl(var(--muted-foreground)); font-size: 14px; font-style: normal; }

.page-site { color: hsl(var(--primary)); font-size: 14px; text-decoration: none; border-bottom: 1px solid hsl(var(--primary) / .3); }

.page-muted { margin: 10px 0 0; color: hsl(var(--muted-foreground)); font-size: 15px; }

.glance-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: hsl(var(--primary));
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--primary) / .3);
}

.glance-more-link { color: hsl(var(--primary)); font-weight: 700; }

/* Site credit: kept visually quiet but legible, in both the footer and the
   about page. */
.footer-credit {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  text-align: center;
}

.footer-credit a,
.about-credit a {
  color: hsl(var(--primary));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--primary) / .3);
}

.footer-credit a:hover,
.about-credit a:hover { color: hsl(var(--accent)); }

.about-credit {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 13px;
  text-align: center;
}
