/* deflockaurora.com — a public-record file
   Shared styles. No external dependencies (served statically by GitHub Pages). */

:root {
  --ink:        #1a1714;
  --ink-soft:   #4a443d;
  --ink-faint:  #6f685f;
  --paper:      #f7f4ef;
  --paper-2:    #efe9e0;
  --line:       #ddd4c7;
  --rule:       #cabfae;
  --accent:     #a11f1f;   /* flag / emphasis */
  --accent-2:   #7c1717;
  --notice:     #7a4f00;   /* site banner label: amber, darkened for contrast on paper */
  --link:       #0b5e8a;
  --link-visited:#5a3d8a;
  --tag-bg:     #ece4d6;
  --tag-ink:    #5a4a33;
  --max:        44rem;
  --max-wide:   64rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #ece6dd;
    --ink-soft:   #c3bbae;
    --ink-faint:  #8f887c;
    --paper:      #16140f;
    --paper-2:    #201d17;
    --line:       #332f27;
    --rule:       #413a2f;
    --accent:     #e4625f;
    --accent-2:   #f0817e;
    --notice:     #f0c15a;
    --link:       #6fb8e0;
    --link-visited:#b79ae0;
    --tag-bg:     #2a251d;
    --tag-ink:    #cbbfa8;
  }
}
:root[data-theme="dark"] {
  --ink:#ece6dd; --ink-soft:#c3bbae; --ink-faint:#8f887c;
  --paper:#16140f; --paper-2:#201d17; --line:#332f27; --rule:#413a2f;
  --accent:#e4625f; --accent-2:#f0817e; --notice:#f0c15a; --link:#6fb8e0; --link-visited:#b79ae0;
  --tag-bg:#2a251d; --tag-ink:#cbbfa8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

/* ---- Skip link ---- */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---- Layout ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 16px; }
/* Keep the gutter clear of a phone's notch / rounded corners in landscape
   (viewport-fit=cover is set in each page's viewport meta). */
.wrap, .wrap-wide {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ---- Masthead ---- */
.masthead {
  border-bottom: 3px double var(--rule);
  background: var(--paper);
}
.masthead .wrap-wide { padding-top: 1.1rem; padding-bottom: .8rem; }
.kicker {
  font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 .5rem;
}
.sitetitle {
  font: 700 1.5rem/1.25 Georgia, serif;
  margin: 0; letter-spacing: -0.01em;
}
.sitetitle a { color: var(--ink); text-decoration: none; }
.sitetitle a:hover { text-decoration: underline; text-decoration-color: var(--rule); }

/* ---- Nav ---- */
nav.primary { border-top: 1px solid var(--line); margin-top: .85rem; }
nav.primary ul {
  list-style: none; margin: 0; padding: .55rem 0; display: flex; flex-wrap: wrap; gap: .1rem 1.25rem;
  font: 600 .82rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em; text-transform: uppercase;
}
nav.primary a { color: var(--ink-soft); text-decoration: none; padding: .15rem 0; border-bottom: 2px solid transparent; }
nav.primary a:hover { color: var(--ink); border-bottom-color: var(--accent); }
nav.primary a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Site banner (every page, under the masthead) ----
   Full-bleed amber bar, as on deflockarvada.com, so the renewal deadline is
   visible before any page content. The text sits in a measured inner block so
   it does not run as one long line across a wide monitor. */
.site-banner {
  margin: 0; padding: .8rem 1.25rem; text-align: center; max-width: none;
  background: rgba(232,178,58,.13); border-bottom: 1px solid rgba(232,178,58,.45);
  color: var(--ink); font-size: .95rem; line-height: 1.45;
}
.site-banner strong { color: var(--notice); letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.site-banner a { color: var(--ink); font-weight: 600; text-decoration-color: var(--notice); }
.site-banner a:hover, .site-banner a:focus-visible { color: var(--notice); }
.site-banner-inner { display: block; max-width: var(--max-wide); margin: 0 auto; }
.watchdog-banner {
  margin: 0; padding: .5rem 1.25rem; text-align: center; max-width: none;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
  font: 600 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---- Standing notice ---- */
.notice {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: .9rem 1.1rem;
  margin: 1.4rem auto;
  border-radius: 2px;
}
.notice p { margin: .3rem 0; font-size: .96rem; color: var(--ink-soft); }
.notice strong { color: var(--ink); }
.notice .label {
  font: 700 .72rem/1 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: .35rem;
}

/* ---- Countdown ---- */
.countdown { display: flex; gap: 1rem; margin: .7rem 0 .2rem; flex-wrap: wrap; }
.countdown .unit {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 3px;
  padding: .4rem .7rem; text-align: center; min-width: 4.2rem;
}
.countdown .num {
  display: block; font: 700 1.4rem/1 ui-monospace, monospace; color: var(--accent); font-variant-numeric: tabular-nums;
}
.countdown .lab {
  display: block; font: 600 .72rem/1 ui-monospace, monospace; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: .3rem;
}

/* ---- Hero ---- */
.hero { padding: 2.2rem 0 1rem; }
.hero h1 { font-size: clamp(1.7rem, 5.5vw, 2.55rem); line-height: 1.12; margin: .2rem 0 .8rem; letter-spacing: -0.02em; }
.lede { font-size: 1.22rem; color: var(--ink-soft); line-height: 1.5; margin: 0 0 1.1rem; }
.tagline {
  font: 600 1.08rem/1.5 Georgia, serif; color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: .9rem 0; margin: 1.2rem 0;
}
.tagline .accent { color: var(--accent); }

/* ---- Content ---- */
main { padding-bottom: 3rem; }
section { margin: 2.4rem 0; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 2.2rem 0 .7rem; letter-spacing: -0.01em; }
h3 { font-size: 1.14rem; margin: 1.6rem 0 .4rem; }
p { margin: .7rem 0; }
a { color: var(--link); }
a:visited { color: var(--link-visited); }
ul, ol { padding-left: 1.3rem; }
li { margin: .35rem 0; }
blockquote {
  margin: 1rem 0; padding: .3rem 0 .3rem 1.1rem; border-left: 3px solid var(--rule);
  color: var(--ink-soft); font-style: italic;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.section-kicker {
  font: 700 .72rem/1 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .2rem;
}

/* ---- Five numbers ---- */
.numbers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  margin: 1.2rem 0;
}
.numbers .cell { background: var(--paper); padding: 1.1rem 1rem; }
.numbers .fig {
  font: 700 1.9rem/1 Georgia, serif; color: var(--accent); font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em; display: block;
}
.numbers .cap { font-size: .9rem; color: var(--ink); margin: .45rem 0 .2rem; font-weight: 600; }
.numbers .note { font-size: .82rem; color: var(--ink-faint); line-height: 1.45; }

/* ---- Timeline ---- */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: tl; }
.timeline > li {
  position: relative; padding: 0 0 1.8rem 1.6rem; margin: 0;
  border-left: 2px solid var(--rule);
}
.timeline > li:last-child { border-left-color: transparent; }
.timeline > li::before {
  content: ""; position: absolute; left: -7px; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--paper);
}
.timeline .date {
  font: 700 .82rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .03em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: .15rem;
  font-variant-numeric: tabular-nums;
}
.timeline .event { font: 700 1.14rem/1.3 Georgia, serif; margin: .1rem 0 .4rem; color: var(--ink); }
.timeline .body { font-size: .98rem; color: var(--ink-soft); }
.timeline .body p { margin: .5rem 0; }
.timeline .money {
  font: 700 .85em ui-monospace, monospace; color: var(--ink); font-variant-numeric: tabular-nums;
  background: var(--tag-bg); padding: .05em .35em; border-radius: 2px; white-space: nowrap;
}

/* ---- Source tag ---- */
.tag {
  display: inline-block;
  font: 700 .68rem/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tag-ink); background: var(--tag-bg); border: 1px solid var(--rule);
  padding: .25em .5em; border-radius: 2px; vertical-align: .08em; margin-left: .15rem;
}

/* ---- Footnote refs ---- */
sup.fn { font-size: .7em; line-height: 0; }
sup.fn a { text-decoration: none; padding: 0 .1em; }
.backref { text-decoration: none; }

/* ---- Records list ---- */
.records { list-style: none; padding: 0; margin: 1.3rem 0; }
.records > li {
  border: 1px solid var(--line); border-radius: 3px; padding: 1rem 1.1rem; margin: .8rem 0;
  background: var(--paper-2);
}
.records .rid {
  font: 700 .78rem/1 ui-monospace, monospace; letter-spacing: .04em; color: var(--accent);
  text-transform: uppercase;
}
.records .rtitle { font-weight: 700; margin: .25rem 0; }
.records .rmeta { font-size: .86rem; color: var(--ink-faint); }
.records .rmeta .money { font-family: ui-monospace, monospace; }

/* ---- Citations ---- */
.citations { font-size: .9rem; color: var(--ink-soft); }
.citations a { overflow-wrap: anywhere; }
.citations ol { padding-left: 1.4rem; }
.citations li { margin: .5rem 0; }
.citations li:target { background: var(--tag-bg); outline: 2px solid var(--accent); border-radius: 2px; }

/* ---- Footer ---- */
footer {
  background: var(--paper-2); border-top: 3px double var(--rule);
  padding: 2.5rem 0 3rem; margin-top: 3rem; font-size: .9rem; color: var(--ink-soft);
}
footer a { color: var(--link); }
.disclaimer { font-size: .84rem; line-height: 1.65; color: var(--ink-faint); max-width: 86ch; margin: 0; }
.disclaimer strong { color: var(--ink-soft); }
.partners {
  display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.6rem;
  margin: 1.9rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.partners-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint);
}
.partners ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.4rem;
}
.partners a.logo-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .3rem .1rem; border-radius: 6px;
  color: var(--ink-soft); text-decoration: none; font-size: .88rem;
  opacity: .8; transition: opacity .15s ease, color .15s ease;
}
.partners a.logo-link:hover, .partners a.logo-link:focus-visible { opacity: 1; color: var(--ink); }
.partners a.logo-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.partners a.logo-link img { display: block; height: 21px; width: auto; max-width: 118px; }
.partners a.logo-link .fallback { display: none; }
.partners a.logo-link.noimg img { display: none; }
.partners a.logo-link.noimg .fallback { display: inline; }
.partners a.ext::after { content: " \2197"; font-size: .78em; opacity: .65; }
@media (max-width: 560px) {
  .partners { gap: .7rem 1.1rem; }
  .partners ul { gap: .5rem 1.1rem; }
}
.footer-demand {
  font-weight: 700; font-size: 1.05rem; color: var(--accent);
  letter-spacing: .5px; text-align: center; margin: 1.4rem 0 0;
}
.copy { font-size: .82rem; color: var(--ink-faint); margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---- Utility ---- */
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.muted { color: var(--ink-faint); }
.cta { display: inline-block; margin: .3rem 0; font-weight: 700; text-decoration: none; }
.cta::after { content: " \2192"; }
.cardlist { list-style: none; padding: 0; margin: 1.2rem 0; }
.cardlist > li { border-top: 1px solid var(--line); padding: .9rem 0; }
.cardlist .n { font: 700 .8rem/1 ui-monospace, monospace; color: var(--ink-faint); }
.cardlist .t { font-weight: 700; font-size: 1.08rem; display: block; margin: .15rem 0; }
.cardlist .t a { text-decoration: none; color: var(--ink); }
.cardlist .t a:hover { color: var(--accent); }
.cardlist .d { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---- Checksums ---- */
.checks { list-style: none; padding: 0; margin: 1.2rem 0; }
.checks > li { border-top: 1px solid var(--line); padding: .75rem 0; }
.checks a { font-weight: 600; overflow-wrap: anywhere; } /* break at the hyphens first, mid-word only if it must */
.checks .sz { color: var(--ink-faint); font-size: .85rem; }
.hash {
  display: block; margin-top: .35rem;
  font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-soft); word-break: break-all;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; padding: .4rem .55rem;
}
.verify {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px;
  padding: .9rem 1.1rem; font-size: .92rem; margin: 1rem 0;
}
.verify code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--tag-bg); padding: .08em .35em; border-radius: 2px; font-size: .88em;
}
.records .dl { margin-top: .5rem; }
.records .dl a { font: 700 .8rem/1 ui-monospace, monospace; letter-spacing: .03em; text-decoration: none; }
.records .dl a::after { content: " \2193"; }

/* ---- Map ---- */
figure.map { margin: 1.4rem 0 2rem; }
figure.map .alpr-map {
  display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1450;
  border: 1px solid var(--line); border-radius: 3px; background: var(--paper-2);
}
figure.map img { display: block; width: 100%; height: auto; }
figure.map figcaption { font-size: .86rem; color: var(--ink-faint); line-height: 1.55; margin-top: .7rem; }
/* The way out of a map that has been scaled below the size of its own targets.
   Hidden wherever the dots are big enough to hit: every pointer that is not a
   finger and every screen with room for the map at something near its scale. */
.map-escape { display: none; }
@media (pointer: coarse), (max-width: 700px) {
  .map-escape { display: block; margin: .75rem 0 0; }
  .map-escape a {
    display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem;
    border: 1px solid var(--rule); border-radius: 3px; background: var(--paper-2);
    color: var(--link); text-decoration: none; font-weight: 700;
  }
  .map-escape a::after { content: " \2197"; }
}
@media print { .map-escape { display: none; } }
.map-teaser { margin: 1.2rem 0; }
.map-teaser > a { display: block; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--paper-2); }
.map-teaser img { display: block; width: 100%; height: auto; }
.map-teaser figcaption { font-size: .86rem; color: var(--ink-faint); margin-top: .5rem; }

/* ---- Data tables ---- */
table.data { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1rem 0; }
table.data th, table.data td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font: 700 .7rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
table.data tbody th { font-weight: 700; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data caption { caption-side: bottom; text-align: left; font-size: .82rem; color: var(--ink-faint); padding: .5rem 0; }
table.data code, p code, li code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--tag-bg); padding: .08em .35em; border-radius: 2px; }
pre.query {
  font: .84rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px;
  padding: .7rem .85rem; overflow-x: auto; margin: .8rem 0;
}

/* Homepage cartoon. One of twenty is chosen at random in the markup.
   The caption says the scene is invented so it cannot be read as a record
   photograph. */
.cartoon {
  margin: .2rem auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cartoon picture { display: contents; }
.cartoon img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
}
.cartoon figcaption {
  margin: .65rem 0 0;
  max-width: 52ch;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--ink-faint);
  text-align: center;
}

/* ---- Touch targets & small screens ---- */

/* Jumped-to anchors (citations, footnote back-refs) land just below the top
   edge, so the :target outline is not clipped by the viewport. */
:target { scroll-margin-top: 1rem; }

/* Larger hit areas on touch devices and in narrow windows. Inline-block plus
   padding grows the tappable box; the negative margins keep it from pushing
   the surrounding line apart. Links inside running text are left alone. */
@media (pointer: coarse), (max-width: 40em) {
  nav.primary ul { padding: .1rem 0; gap: 0 1.25rem; }
  nav.primary a { display: inline-block; padding: .8rem 0; border-bottom: 0; }
  /* The box is tall now; keep the current-page mark beside the text, not at the box edge. */
  nav.primary a:hover, nav.primary a[aria-current="page"] {
    text-decoration: underline; text-decoration-color: var(--accent);
    text-decoration-thickness: 2px; text-underline-offset: .4em;
  }
  sup.fn a { display: inline-block; line-height: 1; padding: .65em .5em; margin: -.65em -.2em; }
  .backref { display: inline-block; line-height: 1; padding: .4em .45em; margin: -.4em 0; }
  .cta { padding: .4rem 0; }
  .records .dl a { display: inline-block; padding: .6rem 0; margin: -.3rem 0; }
  .checks a { display: inline-block; padding: .25rem 0; margin: -.25rem 0; }
  .cardlist .t a { display: inline-block; padding: .3rem 0; margin: -.3rem 0; }
}

/* Layout and rhythm on phones. */
@media (max-width: 40em) {
  .site-banner { padding: .6rem 1rem; font-size: .88rem; line-height: 1.4; }
  .site-banner strong { font-size: .76rem; }
  .watchdog-banner { padding: .4rem 1rem; font-size: .66rem; letter-spacing: .04em; line-height: 1.4; }
  .masthead .wrap-wide { padding-top: .9rem; padding-bottom: .6rem; }
  nav.primary { margin-top: .6rem; }
  .hero { padding: 1.6rem 0 .8rem; }
  .lede { font-size: 1.12rem; }
  section { margin: 2rem 0; }
  h2 { margin-top: 1.8rem; }
  .notice { padding: .85rem .9rem; margin: 1.1rem auto; }
  .countdown { gap: .6rem; }
  .countdown .unit { flex: 1 1 0; padding: .45rem .3rem; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers .cell { padding: .95rem .85rem; }
  /* Five cells in two columns leaves one orphan; let it span the row. */
  .numbers .cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .timeline > li { padding-left: 1.25rem; }
  .records > li { padding: .9rem .95rem; }
  .verify { padding: .8rem .9rem; }
}
@media (max-width: 21em) {
  .numbers { grid-template-columns: 1fr; }
}

@media print {
  nav.primary, .countdown, .skip, .theme-toggle, .site-banner, .watchdog-banner { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
}
