/* thisispune.com — site styles */

:root {
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #8a8580;
  --paper: #fbfaf7;
  --paper-2: #f3f0e9;
  --line: #e4dfd4;
  --blue: #0000ff;
  --blue-ink: #0000c8;
  --orange: #f64000;
  --orange-ink: #c93300;
  --green: #1f7a4d;
  --red: #c02626;
  --amber: #b7791f;
  --maxw: 1080px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- Status strip ---------- */
.strip {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
/* orange glow bleeding in from the left, soft white lift on the right */
.strip::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 220%;
  background:
    radial-gradient(60% 50% at 18% 50%, rgba(246,64,0,.55), transparent 60%),
    radial-gradient(40% 60% at 85% 50%, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}
.strip .wrap {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 44px; overflow: hidden;
}
.strip time {
  background: var(--orange); color: #fff;
  padding: 8px 12px; border-radius: 999px;
  font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; flex: none;
}
.chips {
  display: flex; gap: 6px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
/* ticker (JS-driven; see site.js) */
.chips.ticker { overflow-x: auto; scroll-behavior: auto; }
.chips.ticker .track { display: flex; gap: 6px; flex: none; }
.chip .ico { width: 15px; height: 15px; flex: none; opacity: .9; margin-right: 1px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(0,0,0,.28); white-space: nowrap; flex: none;
  transition: background .15s;
}
.chip:hover { background: rgba(0,0,0,.42); }
.chip b { font-weight: 700; color: #fff; }
.chip .delta { font-variant-numeric: tabular-nums; }
.chip .up { color: #ffb4a0; }
.chip .down { color: #9ff0b4; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex: none; }
.dot.warn { background: #fbbf24; }
.dot.bad  { background: var(--orange); }
.chip .src { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 400; margin-left: 2px; }
.chip .src::before { content: "· "; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px; height: 60px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -.01em;
  display: inline-flex; align-items: baseline; gap: 2px; flex: none;
}
.brand .mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--orange); align-self: center; margin-right: 8px;
}
.brand em { font-style: italic; font-weight: 500; color: var(--ink-2); }

.nav {
  display: flex; align-items: center; gap: 2px; margin-left: auto;
}
.nav a {
  padding: 8px 11px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--blue-ink); }
.nav a.live::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green); margin-left: 6px;
  vertical-align: 2px;
}

.search-btn, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  cursor: pointer; flex: none;
}
.search-btn:hover, .menu-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.search-btn svg, .menu-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 6px 16px 12px; margin: 0;
    box-shadow: 0 12px 24px rgba(28,25,23,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-radius: 0; border-top: 1px solid var(--line); font-size: 16px; }
  .nav a:first-child { border-top: 0; }
  .nav a:hover { background: none; }
  .search-btn { order: 2; }
  .menu-btn { order: 3; margin-left: 0; }
  .brand { margin-right: auto; }
  .brand em { display: none; }
}

/* ---------- Language switch ---------- */
.lang { font-size: 13px; color: var(--ink-3); white-space: nowrap; margin-left: auto; }
.lang a { color: var(--ink-2); }
.lang a:hover { color: var(--blue); }
.lang [aria-current] { color: var(--ink); font-weight: 600; }


/* ---------- "At a glance" answers ---------- */
.glance { padding: 40px 0 56px; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--blue); margin: 0 0 10px; }
.glance h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 12px; }
.glance .lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 6px; }
.updated { font-size: 13px; color: var(--ink-3); margin: 0 0 28px; }
.answers { display: grid; gap: 18px; }
.qa { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 10px; padding: 16px 18px; }
.qa h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.qa p { margin: 0; color: var(--ink-2); }
.qa .cite { color: var(--blue); font-size: .9rem; white-space: nowrap; }
.fine { font-size: 12.5px; color: var(--ink-3); margin-top: 28px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Topic pages ---------- */
.topic { padding: 32px 0 56px; max-width: 800px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.topic h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 10px; }
.topic h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 36px 0 12px; }
.topic .lead { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 6px; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.answer { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 10px; padding: 18px 20px; margin-top: 18px; }
.answer .big { margin: 0; font-size: 1.15rem; line-height: 1.55; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 15px; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--paper-2); border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
table.data tbody th { font-weight: 500; color: var(--ink-2); width: 45%; }
table.data td { font-variant-numeric: tabular-nums; font-weight: 600; }
table.data td small { font-weight: 400; color: var(--ink-3); }
table.data tbody tr:first-child th, table.data tbody tr:first-child td { border-top: 0; }
table.data a { color: var(--blue); }
.rel { columns: 2; gap: 24px; padding-left: 1.1em; margin: 0; font-size: 15px; }
.rel li { margin: 4px 0; break-inside: avoid; }
.rel a { color: var(--blue); }
@media (max-width: 600px) { .rel { columns: 1; } }

/* ---------- Responsive hardening ---------- */
html, body { overflow-x: clip; }
.site-header .wrap { min-width: 0; }
.brand { min-width: 0; }
.lang { flex: 0 1 auto; min-width: 0; text-align: right; }
table.data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data tbody, table.data thead { display: table; width: 100%; table-layout: fixed; }
table.data thead th, table.data tbody th, table.data td { overflow-wrap: anywhere; }
.answer .big { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .site-header .wrap { gap: 10px; height: 56px; }
  .brand { font-size: 19px; }
  .brand .mark { width: 8px; height: 8px; margin-right: 6px; }
  .lang { font-size: 12px; }
  .search-btn { width: 34px; height: 34px; }
  .search-btn svg { width: 16px; height: 16px; }
  .strip .wrap { height: 40px; gap: 6px; }
  .strip time { padding: 6px 9px; font-size: 10px; }
  .chip { padding: 7px 10px; font-size: 12.5px; }
  .glance, .topic { padding-top: 24px; }
  .glance h1, .topic h1 { font-size: 1.75rem; }
  .glance .lead, .topic .lead { font-size: 1rem; }
  .answer { padding: 14px 16px; }
  .answer .big { font-size: 1.02rem; }
  .qa { padding: 14px 16px; }
  table.data th, table.data td { padding: 9px 10px; font-size: 14px; }
  table.data tbody th { width: 48%; }
  .rel { font-size: 14px; }
}
@media (max-width: 360px) {
  .brand { font-size: 17px; }
  .lang { font-size: 11px; }
  .site-header .wrap { gap: 8px; }
}
@media (min-width: 1440px) {
  :root { --maxw: 1140px; }
  body { font-size: 17px; }
}

/* wide screens: homepage answers in two columns, topic pages keep a readable measure but centred header block */
@media (min-width: 960px) {
  .glance { max-width: none; }
  .glance .lead { max-width: 720px; }
  .answers { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .topic { max-width: 860px; }
}
@media (min-width: 1440px) {
  .answers { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- 404 ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nf { padding: 48px 0 64px; }
.nf-hero { max-width: 720px; }
.nf-code { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(4.5rem, 14vw, 8rem); line-height: 1; color: var(--blue); letter-spacing: -.04em; margin-bottom: 8px; }
.nf-dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--orange); margin: 0 .02em; box-shadow: 0 0 0 .12em var(--paper), 0 0 0 .2em var(--orange); }
.nf h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 12px; }
.nf .lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 10px; }
.nf-alt { color: var(--ink-3); font-size: 15px; line-height: 1.7; margin: 0 0 24px; }
.nf-search { display: flex; max-width: 560px; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(28,25,23,.05), 0 8px 24px rgba(28,25,23,.06); }
.nf-search input { flex: 1; min-width: 0; border: 0; padding: 14px 20px; font: inherit; font-size: 1rem; background: transparent; outline: none; }
.nf-search input:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.nf-search button { border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 600; padding: 0 22px; cursor: pointer; }
.nf-search button:hover { background: var(--blue-ink); }
.nf-path { margin-top: 12px; }
.nf-path code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }
.nf-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.nf-col h2 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.nf-col ul { list-style: none; padding: 0; margin: 0; }
.nf-col li { border-top: 1px solid var(--line); }
.nf-col li:first-child { border-top: 0; }
.nf-col a { display: block; padding: 9px 0; color: var(--ink); font-size: 15px; }
.nf-col a:hover { color: var(--blue); }
.nf-col a::before { content: "→ "; color: var(--orange); }
@media (max-width: 480px) { .nf { padding-top: 28px; } .nf-search input { padding: 12px 16px; } .nf-search button { padding: 0 16px; } }

/* ---------- Sticky strip + header, smooth scrolling ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.strip { position: sticky; top: 0; z-index: 60; }
.site-header { top: 44px; z-index: 50; }
@media (max-width: 480px) {
  .site-header { top: 40px; }
  html { scroll-padding-top: 108px; }
}

/* ---------- Brand cursors (fine pointers only; touch devices unaffected) ---------- */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url(/img/cursor/arrow.png) 3 3, auto; cursor: image-set(url(/img/cursor/arrow.png) 1x, url(/img/cursor/arrow@2x.png) 2x) 3 3, auto; }
  a, button, [role="button"], input[type="submit"], input[type="search"]::-webkit-search-cancel-button, summary, label[for], .chip {
    cursor: url(/img/cursor/ring.png) 16 16, pointer; cursor: image-set(url(/img/cursor/ring.png) 1x, url(/img/cursor/ring@2x.png) 2x) 16 16, pointer;
  }
  .chips.ticker { cursor: url(/img/cursor/grab.png) 16 16, grab; cursor: image-set(url(/img/cursor/grab.png) 1x, url(/img/cursor/grab@2x.png) 2x) 16 16, grab; }
  input[type="text"], input[type="search"], textarea { cursor: text; }
  [disabled] { cursor: not-allowed; }
}

.prose p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); margin: 0 0 1em; }
.prose p b { color: var(--ink); }
.prose a { color: var(--blue); }
.site-footer a { color: var(--ink-2); }

/* ---------- District facts ---------- */
.facts { max-width: 900px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat b { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.05; color: var(--ink); }
.stat b small { font-size: .55em; font-weight: 500; color: var(--ink-2); }
.stat .s { font-size: 12.5px; color: var(--ink-3); }
.odop { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 12px 16px; margin: 0 0 8px; }
.odop .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #047857; }
.odop b { font-family: var(--font-display); font-size: 1.3rem; color: #065f46; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.facts h3 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 6px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 5px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.plain li:first-child { border-top: 0; }
.powers { columns: 3; gap: 24px; padding-left: 1.4em; margin: 8px 0 20px; font-size: 14.5px; }
.powers li { break-inside: avoid; margin: 3px 0; }
.powers li span { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } .cols { grid-template-columns: 1fr; gap: 8px; } .powers { columns: 2; } }
@media (max-width: 420px) { .powers { columns: 1; } }

.lead-sm { color: var(--ink-2); margin: 0 0 12px; }
table.data thead th { text-align: left; }
table.forts td:nth-child(2), table.forts td:nth-child(3) { white-space: nowrap; }
table.data td .sub { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.eras { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.eras li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.eras li:first-child { border-top: 0; }
.eras .yr { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 1.05rem; line-height: 1.3; }
.eras b { display: block; margin-bottom: 4px; }
.eras p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 520px) { .eras li { grid-template-columns: 1fr; gap: 4px; } }
