/* share.quorumcivic.app: the Public Record look, shared by the receipt,
 * directory, subscribe and legal templates. Mirrors the marketing home page
 * (katalys-marketing/home.css; system in web/DESIGN.md). Templates keep only
 * their page-specific rules inline.
 */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/public-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #FFFFFF;
  --ink: #111111;
  --ink-2: #3A3D44;
  --ink-3: #5B5F68;
  --field: #D9DCE1;
  --rule: #111111;
  --rule-soft: #C9CDD3;
  --band: #111111;
  --band-ink: #FFFFFF;
  --band-ink-2: #C9CCD2;
  --spark: #FF6200;
  --ember: #BE4700;
  --ember-hover: #9E3B00;
  --on-ember: #FFFFFF;
  --err: #A1261B;
  --pad: 40px;
  --max: 1440px;
  --col: 700px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E0F12;
    --ink: #F2F3F5;
    --ink-2: #C3C6CC;
    --ink-3: #9A9EA7;
    --field: #17191D;
    --rule: #9A9EA7;
    --rule-soft: #2E3138;
    --band: #000000;
    --band-ink: #F2F3F5;
    --band-ink-2: #A9ADB5;
    --ember: #FF6200;
    --ember-hover: #FF8533;
    --on-ember: #0B0B0F;
    --err: #FF8A7A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 "Public Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--ground); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
/* Reading measure: under ~75 characters at every type size. */
main p, main li, .wrap p, .wrap li, .disclaimer, .cta-sub, .source { max-width: 60ch; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; padding: 8px 12px; background: var(--ground); color: var(--ink); }
.skip:focus { left: 8px; top: 8px; z-index: 10; }

/* ── Title band ───────────────────────────────────────────────────────────── */
.band { background: var(--band); color: var(--band-ink); }
.band::after { content: ""; display: block; height: 3px; background: var(--ground); border-bottom: 8px solid var(--band); }
.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px max(var(--pad), env(safe-area-inset-right)) 18px max(var(--pad), env(safe-area-inset-left));
  display: flex;
  align-items: flex-end;
  gap: 32px;
}
.band :focus-visible { outline-color: var(--band-ink); }
.wordmark { text-decoration: none; display: flex; flex-direction: column; margin-right: auto; color: var(--band-ink); }
.wordmark-name { font-size: 44px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.wordmark .spark { color: var(--spark); }
.wordmark-sub { font-size: 14px; color: var(--band-ink-2); margin-top: 8px; }
.band-nav { display: flex; gap: 4px; padding-bottom: 2px; }
.band-nav a { color: var(--band-ink); font-size: 15px; font-weight: 550; text-decoration: none; padding: 12px; }
.band-nav a:hover { text-decoration: underline; }
.band-line {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px max(var(--pad), env(safe-area-inset-right)) 14px max(var(--pad), env(safe-area-inset-left));
  border-top: 1px solid #3A3D44;
  font-size: 14px;
  color: var(--band-ink-2);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.band-asof { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Buttons: square. Ember is the one primary action in view; the rest are
   outlined in ink and invert on hover. ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  font: 650 15px/1 "Public Sans", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .2s cubic-bezier(.16, 1, .3, 1), color .2s cubic-bezier(.16, 1, .3, 1);
}
.btn-primary { background: var(--ember); color: var(--on-ember); }
.btn-primary:hover { background: var(--ember-hover); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ground); }
.btn[disabled], .btn:disabled { opacity: .6; cursor: default; }
/* On the band, an outlined button rings in band-ink. */
.band .btn-outline { color: var(--band-ink); box-shadow: inset 0 0 0 1.5px var(--band-ink); }
.band .btn-outline:hover { background: var(--band-ink); color: var(--band); }

/* ── ZIP field: a 2px ink frame around a square input and its button ─────── */
.zip-field { display: flex; max-width: 460px; border: 2px solid var(--ink); }
.zip-field input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--ground);
  color: var(--ink);
  font: 500 19px "Public Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  caret-color: var(--ember);
}
.zip-field input::placeholder { color: var(--ink-3); letter-spacing: 0; }
.zip-field input:focus { outline: none; }
.zip-field:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.zip-field .btn { min-height: 52px; padding: 0 22px; font-size: 16px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer.site-foot { border-top: 1px solid var(--rule); }
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px max(var(--pad), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
  font-size: 14px;
  color: var(--ink-3);
}
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 6px; margin-left: -10px; }
.footer-links a { color: var(--ink-2); text-decoration: none; padding: 12px 10px; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.footer-social { display: flex; gap: 2px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink-2); }
.footer-social a:hover { color: var(--ink); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-credit { margin-top: 10px; }

/* ── Shared type ─────────────────────────────────────────────────────────── */
.display { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.source-line { font-size: 13.5px; color: var(--ink-3); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --pad: 24px; }
}
@media (max-width: 760px) {
  .band-inner { flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 4px; }
  .wordmark-name { font-size: 34px; }
  .wordmark-sub { margin-top: 4px; font-size: 13px; }
  .band-nav { order: 3; width: 100%; margin-left: -12px; }
  .band-nav a { padding: 8px 12px; font-size: 14.5px; }
  .band-line { display: block; font-size: 13px; padding-top: 10px; padding-bottom: 12px; }
  .band-asof { display: block; }
  .band::after { height: 2px; border-bottom-width: 5px; }
  .zip-field input, .zip-field .btn { min-height: 48px; }
  .display { font-size: 30px; }
}
@media (max-width: 420px) {
  /* Keep the wordmark and the band's one button on a single row down to 320px. */
  .wordmark-name { font-size: 29px; }
  .band .btn { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
}
@media (max-width: 380px) {
  .zip-field .btn { padding: 0 14px; font-size: 15px; }
}
@media (max-width: 340px) {
  .band-inner { gap: 10px 12px; }
  .wordmark-name { font-size: 25px; }
  .wordmark-sub { font-size: 12px; }
  .band .btn { padding: 0 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
