/* SE Oklahoma Journal — site styles */

:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --surface-2: #e9edf1;
  --ink: #131921;
  --ink-2: #2a3340;
  --muted: #5b6676;
  --rule: #dce1e7;
  --rule-strong: #131921;
  --navy: #0f2a46;
  --navy-2: #18395c;
  --on-navy: #ffffff;
  --on-navy-muted: #b9c8d9;
  --accent: #1b5ca4;
  --accent-soft: #e6eef8;
  --red: #b23a22;
  --red-soft: #fbece8;
  --gold: #a87b22;
  --green: #2d6a45;
  --green-soft: #e7f3ec;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 16px rgba(16, 24, 40, .06);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1217; --surface: #161c23; --surface-2: #1e252e; --ink: #e9edf2; --ink-2: #ccd3dc;
    --muted: #9aa5b3; --rule: #2a323c; --rule-strong: #e9edf2; --navy: #0a1b2d; --navy-2: #12304f;
    --on-navy-muted: #9fb3c9; --accent: #74aaea; --accent-soft: #15283d; --red: #e46c52; --red-soft: #2f1914;
    --gold: #d9ad55; --green: #6cc08e; --green-soft: #13261b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1217; --surface: #161c23; --surface-2: #1e252e; --ink: #e9edf2; --ink-2: #ccd3dc;
  --muted: #9aa5b3; --rule: #2a323c; --rule-strong: #e9edf2; --navy: #0a1b2d; --navy-2: #12304f;
  --on-navy-muted: #9fb3c9; --accent: #74aaea; --accent-soft: #15283d; --red: #e46c52; --red-soft: #2f1914;
  --gold: #d9ad55; --green: #6cc08e; --green-soft: #13261b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over display rules */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
main { min-height: 60vh; outline: none; }
.loading-block { padding: 80px 24px; text-align: center; font-family: var(--sans); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: var(--on-navy); font-family: var(--sans); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 18px; white-space: nowrap; overflow: hidden; }
.topbar-wx { display: inline-flex; align-items: center; gap: 6px; color: var(--on-navy-muted); }
.topbar-wx:hover { color: #fff; }
.topbar-wx svg { width: 16px; height: 16px; }
.topbar-right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-right a { color: var(--on-navy-muted); font-weight: 500; }
.topbar-right a:hover { color: #fff; }
.theme-toggle {
  background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: var(--on-navy);
  border-radius: 999px; width: 30px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .1); }
.theme-toggle svg { width: 15px; height: 15px; }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--bg); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 12px; }
.masthead-side { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--muted); display: flex; flex-direction: column; gap: 3px; text-transform: uppercase; font-weight: 600; }
/* Top-left badge: Oklahoma outline with the coverage line centered beneath it. */
.masthead-left { justify-self: start; align-items: center; text-align: center; gap: 9px; }
.masthead-left .ok-mark svg { width: 112px; }
.masthead-left #mastCounties { font-size: 13px; font-weight: 700; letter-spacing: .14em; line-height: 1.5; max-width: 220px; color: var(--ink-2); }
.masthead-left #mastPickup { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent); margin-top: -6px; max-width: 220px; }
.masthead-right { align-items: flex-end; text-align: right; }
.masthead-center { text-align: center; }
.nameplate {
  font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5.6vw, 66px);
  letter-spacing: -.01em; line-height: 1; color: var(--ink); display: inline-block;
}
.nameplate:hover { color: var(--ink); }
.tagline {
  margin-top: 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 12px;
}
.tagline::before, .tagline::after { content: ""; height: 1px; width: 36px; background: var(--rule); }
.ok-mark { display: inline-block; color: var(--navy); }
:root[data-theme="dark"] .ok-mark { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ok-mark { color: var(--accent); } }
.ok-mark svg { width: 64px; height: auto; display: block; }
.ok-mark .ok-dot { fill: var(--red); }

/* ---------- main nav ---------- */
.mainnav { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 3px solid var(--rule-strong); box-shadow: 0 1px 0 var(--rule); }
.mainnav-inner { display: flex; align-items: center; gap: 8px; }
.mainnav-links { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
/* Center the links when they fit, but never clip the first ones when they don't. */
.mainnav-links > a:first-child { margin-left: auto; }
.mainnav-links > a:last-child { margin-right: auto; }
.mainnav-links::-webkit-scrollbar { display: none; }
.mainnav-links a {
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  padding: 14px 11px 12px; border-bottom: 3px solid transparent; margin-bottom: -3px; color: var(--ink-2);
}
.mainnav-links a:hover { color: var(--accent); }
.mainnav-links a.active { color: var(--ink); border-bottom-color: var(--red); }
.search-toggle { background: none; border: none; padding: 10px; color: var(--ink-2); display: inline-flex; border-radius: 4px; }
.search-toggle:hover { color: var(--accent); background: var(--surface); }
.searchbar { border-top: 1px solid var(--rule); background: var(--surface); }
.searchbar-inner { display: flex; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.searchbar input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); font-family: var(--sans); font-size: 15px; }

/* ---------- breaking bar ---------- */
.breaking { background: var(--red); color: #fff; font-family: var(--sans); }
.breaking-inner { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.breaking-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: #fff; color: var(--red); padding: 4px 9px; border-radius: 3px; flex-shrink: 0;
}
:root[data-theme="dark"] .breaking-label { color: #8e2a17; }
.breaking a { color: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; padding: 8px 0; transition: opacity .3s; }
.breaking a:hover { text-decoration: underline; color: #fff; }
.breaking a.fading { opacity: 0; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid transparent; line-height: 1.2; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: var(--accent); color: #0b1520; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--accent); color: #0b1520; } }
.btn-primary:hover { filter: brightness(1.15); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { font-size: 12.5px; padding: 6px 11px; }
.btn[disabled] { opacity: .55; cursor: default; }

.form { display: grid; gap: 16px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-family: var(--sans); font-size: 12.5px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--bg); font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.check { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.check input { width: 17px; height: 17px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: var(--green-soft); color: var(--green); }
.form-status.err { display: block; background: var(--red-soft); color: var(--red); }

/* ---------- shared story pieces ---------- */
.kicker {
  font-family: var(--sans); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; display: block;
}
.kicker a:hover { text-decoration: underline; }
.meta { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.meta b { color: var(--ink-2); font-weight: 600; }
.photo { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 2px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-16x9 { aspect-ratio: 16 / 9; }
.photo-3x2 { aspect-ratio: 3 / 2; }
.photo-sq { aspect-ratio: 1; }
.photo-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: rgba(255, 255, 255, .9);
}
.photo-ph .ok-mark { color: rgba(255, 255, 255, .85); }
.photo-ph .ok-mark svg { width: 30%; min-width: 90px; max-width: 220px; }
.caption { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.block-head {
  font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 3px solid var(--rule-strong); padding-top: 10px; margin-bottom: 16px;
}
.block-head a.more { font-size: 12px; letter-spacing: .04em; color: var(--accent); font-weight: 700; text-transform: none; }
.block-head a.more:hover { text-decoration: underline; }
.empty { font-family: var(--sans); color: var(--muted); padding: 30px 0; }
.badge {
  display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--surface-2); color: var(--ink-2); vertical-align: middle;
}
.badge-red { background: var(--red); color: #fff; }
.badge-blue { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--green-soft); color: var(--green); }

/* ---------- home ---------- */
.wrap.home { padding-top: 28px; padding-bottom: 20px; }
.home-top { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.lead .photo { margin-bottom: 18px; }
.lead-title { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.01em; margin-bottom: 12px; }
.lead-title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead-dek { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.lead-nophoto { border-top: 3px solid var(--rule-strong); padding-top: 18px; }
.lead-nophoto .lead-title { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; margin-bottom: 18px; }
.lead-nophoto .lead-dek { font-size: 21px; }
.rail { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.latest { list-style: none; margin: 0; padding: 0; counter-reset: latest; }
.latest li { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--rule); counter-increment: latest; }
.latest li:first-child { padding-top: 0; }
.latest li::before { content: counter(latest); font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--muted); opacity: .45; line-height: 1; }
.latest h3 { font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.latest .meta { margin-top: 4px; }

.home-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.card .photo { margin-bottom: 12px; }
.card-title { font-size: 21px; font-weight: 700; line-height: 1.2; }
.card-title a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.card-dek { font-size: 15.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }

.home-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.mini { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mini:first-of-type { padding-top: 0; }
.mini:last-child { border-bottom: none; }
.mini h3 { font-size: 17px; font-weight: 700; line-height: 1.25; }
.mini .services { font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.mini .photo { margin-bottom: 10px; }

.home-bottom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr); gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.scoreboard { display: flex; flex-direction: column; gap: 10px; }
.score-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; font-family: var(--sans); background: var(--bg);
}
.score-row .teams { font-weight: 700; font-size: 14.5px; }
.score-row .status { font-size: 12px; color: var(--muted); margin-top: 2px; }
.score-row .score { font-weight: 800; font-size: 17px; color: var(--ink); text-align: right; white-space: nowrap; }
.score-row.final .score { color: var(--red); }
.quote-card { background: var(--surface); border-left: 4px solid var(--gold); padding: 20px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.quote-card blockquote { margin: 0 0 12px; font-size: 19px; font-style: italic; line-height: 1.45; }
.quote-card .meta { margin: 0 0 14px; }
.spot-box {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; text-align: center; font-family: var(--sans);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; background: var(--surface);
}
.spot-box .spot-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spot-box strong { font-family: var(--serif); font-size: 21px; }
.spot-box p { font-size: 13.5px; color: var(--muted); }

.edition-strip { padding: 30px 0 10px; }
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.issue { display: block; }
.issue-cover {
  aspect-ratio: 8.5 / 11; border: 1px solid var(--rule); background: var(--surface); position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s;
}
a.issue:hover .issue-cover { transform: translateY(-3px); }
.issue-cover img { width: 100%; height: 100%; object-fit: cover; }
.issue-cover .cover-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 16px 12px; text-align: center; gap: 8px; background: var(--bg);
}
.cover-ph .cp-name { font-family: var(--display); font-weight: 900; font-size: 17px; line-height: 1.05; border-bottom: 2px solid var(--ink); padding-bottom: 6px; width: 100%; }
.cover-ph .cp-lines { width: 100%; display: grid; gap: 5px; margin-top: 4px; }
.cover-ph .cp-lines i { display: block; height: 5px; background: var(--surface-2); }
.cover-ph .cp-lines i:nth-child(1) { height: 40px; }
.issue-title { font-family: var(--sans); font-size: 13.5px; font-weight: 700; margin-top: 10px; }
.issue-sub { font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* ---------- section & list pages ---------- */
.page-head { padding: 34px 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.01em; }
.page-head p { color: var(--ink-2); font-size: 17.5px; margin-top: 8px; max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--ink-2); background: var(--bg);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-bottom: 50px; }
.list-item { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.list-item:first-child { padding-top: 0; }
.list-item.no-photo { grid-template-columns: 1fr; }
.list-item h2 { font-size: 23px; font-weight: 700; line-height: 1.2; }
.list-item h2 a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.list-item p { color: var(--ink-2); font-size: 16px; margin-top: 8px; }
.list-item .services { font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.side-box { border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.side-box + .side-box { margin-top: 22px; }
.side-box h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; margin-bottom: 12px; }
.side-box p { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }

/* ---------- article ---------- */
.wrap.article { padding-top: 34px; padding-bottom: 60px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.article-main { max-width: 760px; }
.crumbs { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--accent); font-weight: 700; }
.article h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.01em; }
.article .dek { font-size: 21px; line-height: 1.45; color: var(--ink-2); margin-top: 14px; }
.byline-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 22px 0 26px; font-family: var(--sans); font-size: 14px;
}
.byline-row .by { font-weight: 700; }
.byline-row .when { color: var(--muted); }
.share { display: flex; gap: 8px; }
.share a, .share button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); padding: 0;
}
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share svg { width: 16px; height: 16px; }
.article figure { margin: 0 0 28px; }
.services-box { background: var(--surface); border-left: 4px solid var(--gold); padding: 14px 18px; font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 26px; }
.body-copy p { font-size: 19px; line-height: 1.72; margin-bottom: 22px; }
.body-copy p:first-child::first-letter {
  font-family: var(--display); font-weight: 800; float: left; font-size: 66px; line-height: .86; padding: 6px 10px 0 0; color: var(--navy);
}
:root[data-theme="dark"] .body-copy p:first-child::first-letter { color: var(--accent); }
.article-foot { border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 10px; font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); }
.article-foot a { color: var(--accent); font-weight: 700; }
.related .mini h3 { font-size: 16px; }

/* ---------- weather ---------- */
.wx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wx-now {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 10px; padding: 26px 30px; margin-bottom: 22px;
}
.wx-now .wx-icon svg { width: 76px; height: 76px; }
.wx-now .temp { font-family: var(--sans); font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.wx-now .place { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-muted); font-weight: 700; }
.wx-now .cond { font-size: 22px; margin-top: 2px; }
.wx-stats { font-family: var(--sans); font-size: 14px; display: grid; gap: 6px; color: var(--on-navy-muted); }
.wx-stats b { color: #fff; font-weight: 700; }
.wx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.wx-day { border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 8px; text-align: center; font-family: var(--sans); background: var(--bg); }
.wx-day .d { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.wx-day .dd { font-size: 11.5px; color: var(--muted); }
.wx-day svg { width: 34px; height: 34px; margin: 8px auto; color: var(--accent); }
.wx-day .hi { font-weight: 800; font-size: 20px; }
.wx-day .lo { color: var(--muted); font-size: 14px; }
.wx-day .pop { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 4px; min-height: 16px; }
.wx-day .c { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.alert-card { border: 1px solid var(--rule); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; background: var(--bg); }
.alert-card.sev-Severe, .alert-card.sev-Extreme { border-left-color: var(--red); }
.alert-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; }
.alert-card .meta { margin-top: 4px; }
.alert-card details { margin-top: 10px; font-size: 15px; }
.alert-card summary { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; }
.alert-card pre { white-space: pre-wrap; font-family: var(--serif); font-size: 15px; margin: 10px 0 0; }
.wx-mini .wx-mini-now { display: flex; align-items: center; gap: 14px; font-family: var(--sans); }
.wx-mini .wx-mini-now svg { width: 46px; height: 46px; color: var(--accent); }
.wx-mini .t { font-size: 36px; font-weight: 800; line-height: 1; }
.wx-mini .c { font-size: 14px; color: var(--ink-2); }
.wx-mini-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.wx-mini-days div { text-align: center; font-family: var(--sans); font-size: 12.5px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 4px; }
.wx-mini-days b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.wx-mini-days svg { width: 24px; height: 24px; margin: 4px auto; color: var(--accent); }
.wx-source { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- sound off ---------- */
.so-list { display: grid; gap: 16px; }
.so-item { border-left: 4px solid var(--gold); background: var(--surface); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.so-item blockquote { margin: 0; font-size: 18px; font-style: italic; line-height: 1.5; }
.so-item .meta { margin-top: 8px; }

/* ---------- advertise ---------- */
.rate-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; margin: 6px 0 30px; }
.rate-table th, .rate-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.rate-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--rule-strong); }
.rate-table td:not(:first-child) { font-weight: 700; }
.county-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--on-navy); margin-top: 40px; font-family: var(--sans); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 2fr .9fr; gap: 36px; padding-top: 44px; padding-bottom: 34px; }
/* Coverage counties: names only, flowing into neat columns. */
.footer ul#footCounties { display: block; columns: 3; column-gap: 22px; }
#footCounties li { break-inside: avoid; margin-bottom: 7px; font-size: 13.5px; }
.foot-more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13.5px; }
.footer h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--on-navy-muted); text-decoration: underline; }
.footer-brand p { color: var(--on-navy-muted); margin-top: 8px; line-height: 1.6; }
.footer-name { font-family: var(--display); font-weight: 900; font-size: 28px; margin-top: 12px; }
.footer .ok-mark { color: #fff; }
.ok-mark-lg svg { width: 96px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 16px; padding-bottom: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-navy-muted); font-size: 13px;
}
.footer-bottom .staff-link { color: var(--on-navy-muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- admin ---------- */
.wrap.admin { padding-top: 28px; padding-bottom: 60px; font-family: var(--sans); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.admin-head h1 { font-family: var(--display); font-size: 36px; font-weight: 800; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-status { font-size: 13px; font-weight: 700; color: var(--muted); }
.admin-status.dirty { color: var(--red); }
.admin-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.admin-tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 70px; border-right: 1px solid var(--rule); padding-right: 12px; }
.admin-tab { background: none; border: none; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--muted); text-align: left; display: flex; align-items: center; justify-content: space-between; }
.admin-tab:hover { color: var(--ink); background: var(--surface); }
.admin-tab.active { color: var(--ink); border-left-color: var(--red); background: var(--surface); }
#adminPanel { min-width: 0; }
@media (max-width: 760px) {
  .admin-body { grid-template-columns: 1fr; gap: 18px; }
  .admin-tabs { flex-direction: row; overflow-x: auto; position: static; border-right: none; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .admin-tab { border-left: none; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; }
  .admin-tab.active { border-bottom-color: var(--red); background: none; }
}
.admin-tab .count { background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-toolbar select, .admin-toolbar input { padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); font-size: 14px; }
.admin-toolbar input { flex: 1; min-width: 180px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--rule-strong); }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.admin-table td.title { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.admin-table td.title .badge { margin-left: 6px; }
.admin-table tr:hover td { background: var(--surface); }
.admin-card { border: 1px solid var(--rule); border-radius: 8px; padding: 18px 20px; margin-bottom: 14px; background: var(--bg); }
.admin-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.admin-card .row-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
.editor .form { max-width: none; }
.editor-side { display: flex; flex-direction: column; gap: 16px; }
.photo-edit .photo { border: 1px solid var(--rule); }
.photo-edit .photo .none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.issue-edit { display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.issue-edit .issue-cover { box-shadow: none; }
.login-box { max-width: 400px; margin: 40px auto; border: 1px solid var(--rule); border-radius: 10px; padding: 30px; background: var(--bg); box-shadow: var(--shadow); }
.login-box h1 { font-family: var(--display); font-size: 30px; margin-bottom: 6px; }
.login-box p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.inbox-item.unread { border-left: 4px solid var(--accent); }
.inbox-item .msg { white-space: pre-wrap; font-family: var(--serif); font-size: 16px; margin-top: 10px; }
.inbox-item .who { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.inbox-item .who a { color: var(--accent); }
.notice { background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 14px 18px; font-size: 14px; margin-bottom: 18px; }
.notice code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ---------- counties ---------- */
.county-btn {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 3px 10px 3px 8px; font-family: var(--sans); font-size: 12.5px; font-weight: 700;
}
.county-btn:hover { background: rgba(255, 255, 255, .18); }
.county-btn svg { width: 14px; height: 14px; }
.county-btn svg:last-child { width: 12px; height: 12px; opacity: .8; }
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(8, 15, 25, .55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; }
.modal[hidden] { display: none; }
.modal-box {
  background: var(--bg); width: 100%; max-width: 760px; max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column; padding: 22px 24px 8px; font-family: var(--sans);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { font-family: var(--display); font-size: 26px; font-weight: 800; }
.modal-close { background: none; border: none; font-size: 30px; line-height: 1; color: var(--muted); padding: 0 6px; }
.modal-close:hover { color: var(--ink); }
.modal-sub { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.county-search {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg);
  font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.county-search:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.page-head .county-search { max-width: 460px; margin-top: 18px; }
.picker-list { overflow-y: auto; padding: 4px 2px 16px; margin-top: 12px; }
.picker-group { font-family: var(--sans); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 14px 0 8px; }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.county-opt {
  text-align: left; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 9px 12px;
  display: flex; flex-direction: column; gap: 1px; font-family: var(--sans); color: var(--ink);
}
.county-opt b { font-size: 14.5px; }
.county-opt span { font-size: 12px; color: var(--muted); }
.county-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.county-opt.current { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.counties-page { padding-bottom: 50px; }
.counties-page .county-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.county-head { display: flex; gap: 26px; align-items: center; }
.county-map { flex-shrink: 0; color: var(--navy); }
:root[data-theme="dark"] .county-map { color: var(--accent); }
.county-map svg { width: 170px; height: auto; display: block; }
.county-map .ok-dot { fill: var(--red); r: 6; }
.county-combo { position: relative; max-width: 420px; margin-top: 18px; font-family: var(--sans); }
.county-combo label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.county-combo input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg);
  font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.county-combo input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.combo-list {
  position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; z-index: 40;
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 340px; overflow-y: auto;
}
.combo-list li { padding: 9px 12px; border-radius: 4px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.combo-list li b { font-size: 15px; }
.combo-list li span { font-size: 12.5px; color: var(--muted); }
.combo-list li i { font-style: normal; color: var(--accent); font-weight: 700; }
.combo-list li.active, .combo-list li:hover { background: var(--accent-soft); }
.combo-list li.none { cursor: default; color: var(--muted); font-size: 14px; }
.combo-list mark { background: none; color: var(--accent); font-weight: 800; }
.county-block { margin-bottom: 30px; }
.home-local { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.block-head .head-actions { display: inline-flex; gap: 14px; align-items: baseline; }
.block-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.block-head svg { width: 15px; height: 15px; color: var(--red); }
.linkish { background: none; border: none; padding: 0; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: .04em; }
.linkish:hover { color: var(--accent); text-decoration: underline; }
.chip svg { width: 13px; height: 13px; vertical-align: -2px; }
button.chip { cursor: pointer; }

/* ---------- statewide wire ---------- */
.src { font-weight: 800; }
.src-voice { color: #b5372b; }
.src-watch { color: #1f6f5c; }
:root[data-theme="dark"] .src-voice { color: #f08a7a; }
:root[data-theme="dark"] .src-watch { color: #6fd0b5; }
.ext { font-family: var(--sans); font-size: .7em; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.tag { font-family: var(--sans); font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag:hover { background: var(--accent-soft); color: var(--accent); }
.credit-box { margin-top: 26px; background: var(--surface); border-left: 4px solid var(--accent); padding: 14px 18px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.credit-box a { color: var(--accent); font-weight: 700; }
.wire-body p:first-child::first-letter { all: unset; }
.wire-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.wire-body figure { margin: 0 0 24px; }
.wire-body img { width: 100%; height: auto; }
.wire-body img.pixel { width: 1px; height: 1px; }
.wire-body figcaption { font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.wire-body h2, .wire-body h3 { font-family: var(--serif); margin: 26px 0 12px; font-size: 24px; }
.wire-body blockquote { border-left: 3px solid var(--rule); margin: 0 0 22px; padding-left: 18px; color: var(--ink-2); }
.wire-body ul, .wire-body ol { font-size: 18px; line-height: 1.6; margin: 0 0 22px; }
.hl-list { list-style: none; margin: 0; padding: 0; }
.hl-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.hl-list a { font-weight: 700; font-size: 17px; }

/* ---------- weather extras ---------- */
.wx-alert { background: #7a1408; color: #fff; font-family: var(--sans); }
.wx-alert-inner { display: flex; align-items: center; gap: 10px; min-height: 42px; font-size: 14.5px; }
.wx-alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.wx-alert a { color: #fff; }
.wx-alert a:hover { color: #fff; text-decoration: underline; }
.alert-card.urgent { border-left-color: #c3260f; background: var(--red-soft); }
.other-alerts { margin-top: 14px; font-family: var(--sans); }
.other-alerts summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 12px; }
.wx-now .station { font-size: 12px; opacity: .8; }
.wx-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; }
.wx-hour { flex: 1 0 72px; border: 1px solid var(--rule); border-radius: var(--radius); text-align: center; padding: 10px 4px; font-family: var(--sans); }
.wx-hour .h { font-size: 12px; font-weight: 700; color: var(--muted); }
.wx-hour svg { width: 28px; height: 28px; margin: 6px auto; color: var(--accent); }
.wx-hour .t { font-weight: 800; font-size: 17px; }
.wx-hour .p { font-size: 11.5px; color: var(--accent); font-weight: 700; min-height: 15px; }
.wx-detail { margin-top: 34px; }
.wx-detail p { font-size: 16.5px; line-height: 1.6; margin-bottom: 12px; }
.mini-alert { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--red); }
.mini-alert svg { width: 16px; height: 16px; }
.wx-mini.flat .block-head { border-top: none; padding-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .home-top, .with-rail, .wrap.article, .editor { grid-template-columns: 1fr; }
  .rail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .home-bottom { grid-template-columns: 1fr 1fr; }
  .home-bottom .spot-box { grid-column: 1 / -1; min-height: 0; }
  .article-main { max-width: none; }
  .wx-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mainnav-links { justify-content: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar-right a:not(:first-child) { display: none; }
  .topbar-left #todayDate { display: none; }
  .masthead-inner { grid-template-columns: 1fr; text-align: center; padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  .masthead-side { display: none; }
  .tagline { font-size: 10.5px; letter-spacing: .12em; }
  .tagline::before, .tagline::after { width: 18px; }
  .home-row, .home-sections, .home-bottom, .rail, .home-local { grid-template-columns: 1fr; }
  .county-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .county-map svg { width: 120px; }
  .county-combo { max-width: none; }
  .county-btn span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-wx { display: none; }
  .modal { padding: 0; }
  .modal-box { max-height: 100vh; height: 100%; border-radius: 0; padding: 16px 16px 4px; }
  .county-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counties-page .county-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-row .card .photo { display: none; }
  .home-row .card:first-child .photo { display: block; }
  .list-item { grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; }
  .list-item h2 { font-size: 19px; }
  .list-item p { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .wx-now { grid-template-columns: auto 1fr; padding: 22px; }
  .wx-now .wx-stats { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .wx-now .temp { font-size: 52px; }
  .wx-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .body-copy p { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .foot-coverage { grid-column: 1 / -1; }
  .admin-table .hide-sm { display: none; }
  .issue-edit { grid-template-columns: 1fr; }
  .issue-edit .issue-cover { max-width: 140px; }
}

@media print {
  .topbar, .mainnav, .breaking, .footer, .share, .rail, .related, .article aside { display: none !important; }
  .wrap.article { display: block; }
}
.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; }
.print-grid .check { font-weight: 500; font-size: 14px; }

/* ---------- drought, lakes, cattle markets ---------- */
.dr-chip { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dr-0 { background: #e7eef5; color: #3d5266; }
.dr-1 { background: #fff36b; color: #4a4300; }
.dr-2 { background: #fcd37f; color: #5a3c00; }
.dr-3 { background: #ffaa00; color: #3d2400; }
.dr-4 { background: #e60000; color: #fff; }
.dr-5 { background: #730000; color: #fff; }
.dr-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 12px 0 6px; background: var(--surface-2); }
.dr-bar span { display: block; height: 100%; }
.drought-box .dr-chip { font-size: 13px; }
.worse { color: var(--red); font-size: 11px; }
.better { color: var(--green); font-size: 11px; }
.mini-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.mini-table td { padding: 8px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.mini-table td:last-child { text-align: right; }
.mini-table a { font-weight: 700; }
.mini-table a:hover { color: var(--accent); }
.table-wrap { overflow-x: auto; }
.lake-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.lake-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--rule-strong); }
.lake-table td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lake-table td a { color: var(--accent); }
.lk { font-weight: 800; font-size: 13px; white-space: nowrap; }
.lk.above { color: var(--accent); }
.lk.below { color: #b4570e; }
:root[data-theme="dark"] .lk.below { color: #f0a35e; }
.lk.near { color: var(--green); }
.markets { margin-bottom: 10px; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.market-card { border: 1px solid var(--rule); border-radius: 8px; padding: 16px 18px; background: var(--bg); display: flex; flex-direction: column; }
.market-card.market-main { border-color: var(--navy); border-width: 2px; }
.market-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.market-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; }
.market-main h3 { font-size: 19px; }
.market-sum { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 10px 0 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.market-main .market-sum { -webkit-line-clamp: unset; display: block; }
.price-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13.5px; margin-top: auto; }
.price-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 4px; border-bottom: 2px solid var(--rule); }
.price-table td { padding: 6px 4px; border-bottom: 1px solid var(--rule); }
.price-table td:not(:first-child), .price-table th:not(:first-child) { text-align: right; }
.price-table td:not(:first-child) { font-weight: 700; }
.more-link { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 10px; }
.more-link:hover { text-decoration: underline; }
.wx-land { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.wx-land .side-box + .side-box { margin-top: 0; }
@media (max-width: 760px) {
  .market-grid, .wx-land { grid-template-columns: 1fr; }
  .lake-table { font-size: 14px; }
  .lake-table td, .lake-table th { padding: 10px 6px; }
  .lake-table .hide-sm { display: none; }
}

/* ---------- logo (inline SVG in the masthead) ---------- */
.nameplate .logo { display: block; width: clamp(240px, 26vw, 340px); height: auto; margin: 0 auto; overflow: visible; }
.logo .logo-ink { fill: url(#seojInk); }
.logo .logo-cut { stroke: var(--bg); stroke-width: 9; paint-order: stroke; stroke-linejoin: round; }
.logo .logo-state { fill: url(#seojState); }
.logo .logo-sub { fill: var(--muted); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
:root[data-theme="dark"] .logo .logo-ink { fill: #e8eef6; }
:root[data-theme="dark"] .logo .logo-state { fill: #6f95c2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-ink { fill: #e8eef6; }
  :root:not([data-theme="light"]) .logo .logo-state { fill: #6f95c2; }
}
@media (max-width: 760px) { .nameplate .logo { width: min(300px, 78vw); } }
.logo .logo-dot { fill: var(--red); }

/* Right side of the masthead: a touch larger so it balances the logo. */
.masthead-right { font-size: 14px; gap: 6px; color: var(--ink-2); }

/* ---------- masthead "ears" ---------- */
.masthead-side { gap: 7px; }
.ear-wx { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); }
.ear-wx:hover { color: var(--accent); }
.ear-wx svg { width: 22px; height: 22px; color: var(--accent); }
.ear-wx b { font-size: 19px; font-weight: 800; }
.ear-wx span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ear-btn {
  display: inline-flex; align-items: center; margin-top: 4px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--navy); background: transparent; color: var(--navy);
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.ear-btn:hover { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .ear-btn { border-color: var(--accent); color: var(--accent); }
:root[data-theme="dark"] .ear-btn:hover { background: var(--accent); color: #0b1520; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ear-btn { border-color: var(--accent); color: var(--accent); }
}

/* ---------- Home: the reader's county first ---------- */
.home-county { padding-bottom: 10px; }
.home-county-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 24px;
}
.home-county-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.01em; margin-top: 2px; }
.home-county-head h1 a:hover { color: var(--accent); }
.home-county-head p { color: var(--ink-2); font-size: 16px; margin-top: 6px; }
.home-county-head p a { color: var(--accent); font-weight: 700; font-family: var(--sans); font-size: 14px; }
.home-county-head .county-combo { margin-top: 0; width: 100%; max-width: 380px; }
.front-divider {
  display: flex; align-items: center; gap: 16px; margin: 18px 0 26px;
  font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.front-divider::before, .front-divider::after { content: ""; flex: 1; height: 3px; background: var(--rule-strong); }

/* ---------- E-Edition: dashboard uploader ---------- */
.upload-card { border-color: var(--navy); }
.builder-head { font-family: var(--sans); font-size: 15px; font-weight: 800; margin: 20px 0 10px; }
.builder-head .meta { font-weight: 500; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.page-tile { border: 1px solid var(--rule); border-radius: 6px; padding: 6px; background: var(--surface); text-align: center; position: relative; }
.page-img { aspect-ratio: 8.5 / 11; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.page-img img { width: 100%; height: 100%; object-fit: contain; }
.page-img img[src=""] { visibility: hidden; }
.page-num { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.page-name { font-family: var(--sans); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 5px 0 4px; }
.page-acts { display: flex; justify-content: center; gap: 4px; }
.page-acts button { border: 1px solid var(--rule); background: var(--bg); border-radius: 4px; width: 30px; height: 26px; font-size: 11px; padding: 0; }
.page-acts button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.page-acts button[disabled] { opacity: .35; cursor: default; }
.progress { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin-top: 16px; }
.progress div { height: 100%; background: var(--accent); transition: width .3s; }

/* ---------- E-Edition: page-flip reader ---------- */
.reader { background: #1f262f; color: #e8eef6; padding: 0 0 18px; min-height: calc(100vh - 120px); font-family: var(--sans); }
.reader:fullscreen { overflow: auto; }
.reader-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 24px; background: #161c23; border-bottom: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; z-index: 5;
}
.reader-back { color: #b9c8d9; font-weight: 700; font-size: 14px; }
.reader-back:hover { color: #fff; }
.reader-title { display: flex; flex-direction: column; text-align: center; flex: 1; min-width: 160px; }
.reader-title b { font-size: 16px; }
.reader-title span { font-size: 12.5px; color: #9fb3c9; }
.reader-tools { display: flex; align-items: center; gap: 6px; }
.reader-tools button {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 6px;
  min-width: 36px; height: 34px; font-size: 18px; font-weight: 700; padding: 0 10px;
}
.reader-tools button.txt { font-size: 12.5px; letter-spacing: .03em; }
.reader-tools button:hover { background: rgba(255, 255, 255, .18); }
.reader-count { font-size: 13px; font-weight: 700; min-width: 74px; text-align: center; color: #cfd9e5; }
.reader-stage { margin: 22px auto 0; padding: 0 16px; width: 100%; position: relative; }
.reader-stage .stf__parent { margin: 0 auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .45)); }
.reader-loading { text-align: center; color: #9fb3c9; padding: 80px 0; }
.reader-hint { text-align: center; color: #8597ab; font-size: 12.5px; margin-top: 14px; }
.reader-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; padding: 16px 24px;
  background: #161c23; border-bottom: 1px solid rgba(255, 255, 255, .08); max-height: 46vh; overflow-y: auto;
}
.reader-thumbs[hidden] { display: none; }
.reader-thumbs button { background: none; border: 2px solid transparent; border-radius: 4px; padding: 0; color: #cfd9e5; font-size: 12px; font-weight: 700; }
.reader-thumbs button:hover { border-color: #74aaea; }
.reader-thumbs img { width: 100%; display: block; background: #fff; }
.reader-zoom { position: fixed; inset: 0; z-index: 160; background: rgba(10, 14, 19, .96); display: flex; flex-direction: column; }
.reader-zoom[hidden] { display: none; }
.zoom-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: #e8eef6; font-size: 13.5px; font-weight: 700; }
.zoom-bar button { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 6px; height: 34px; min-width: 38px; padding: 0 12px; font-weight: 700; }
.zoom-gap { flex: 1; }
.zoom-scroll { flex: 1; overflow: auto; cursor: grab; text-align: center; }
.zoom-scroll:active { cursor: grabbing; }
.zoom-scroll img { max-width: none; display: inline-block; background: #fff; user-select: none; -webkit-user-drag: none; }
@media (max-width: 760px) {
  .reader-bar { padding: 10px 12px; position: static; }   /* too tall to pin on phones; it would cover the page */
  .reader-title { order: -1; flex-basis: 100%; }
  .reader-tools { width: 100%; justify-content: center; }
  .reader-tools .hide-sm { display: none; }
  .reader-stage { margin-top: 12px; padding: 0 8px; }
}

/* ---------- E-Edition: mouse-wheel zoom on the open paper ---------- */
.book-zoom { position: absolute; inset: 0; overflow: hidden; cursor: grab; z-index: 3; }
.book-zoom[hidden] { display: none; }
.book-zoom.panning { cursor: grabbing; }
.bz-inner { position: absolute; inset: 0; transform-origin: 0 0; }
.bz-inner img { position: absolute; max-width: none; background: #fff; user-select: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.bz-tip {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); pointer-events: none;
  background: rgba(15, 20, 26, .82); color: #e8eef6; font-family: var(--sans); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

/* ---------- E-Edition: publication tabs in the dashboard ---------- */
.pub-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pub-tab {
  border: 1px solid var(--rule); background: var(--bg); color: var(--ink-2); border-radius: 8px; padding: 10px 16px;
  font-family: var(--sans); font-size: 15px; font-weight: 800;
}
.pub-tab span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pub-tab:hover { border-color: var(--accent); }
.pub-tab.active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); color: var(--ink); }

/* ---------- obituary submissions ---------- */
.obit-box fieldset { border: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.obit-box legend { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.obit-box .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }
.obit-note { font-style: italic; color: var(--ink-2); border-left: 3px solid var(--gold); padding-left: 12px; margin-bottom: 16px !important; }
.obit-box textarea { min-height: 140px; }
.obit-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.obit-photo img { width: 72px; height: 90px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule); }
.obit-sub-head { display: flex; gap: 14px; align-items: flex-start; }
.obit-sub-photo { width: 84px; height: 104px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule); flex-shrink: 0; background: var(--surface); }
.obit-sub-photo.none { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.obit-sub-head h3 { font-family: var(--serif); font-size: 19px; }
.deny-box { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.done-list { margin: 10px 0 0; }
.done-list summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 10px; }
.inbox-item.done { opacity: .85; }
@media (max-width: 760px) { .obit-box .form-row { grid-template-columns: 1fr; } }

.obit-modal { max-width: 560px; overflow-y: auto; padding-bottom: 22px; }
.obit-modal .obit-note { margin: 4px 0 18px; }

/* ---------- obituary portraits ---------- */
.list-item.obit-item { grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: start; }
.obit-portrait {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; width: 100%;
  border-radius: 4px; overflow: hidden; background: var(--surface); border: 1px solid var(--rule);
}
.obit-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.obit-initials { font-family: var(--display); font-weight: 700; font-size: 40px; color: var(--muted); letter-spacing: .02em; }
.obit-portrait:hover { border-color: var(--accent); }
.mini.obit-mini { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.obit-portrait.sm .obit-initials { font-size: 22px; }
.obit-figure { float: left; width: 240px; margin: 4px 26px 16px 0 !important; }
.obit-figure img { width: 100%; border-radius: 4px; border: 1px solid var(--rule); }
@media (max-width: 760px) {
  .list-item.obit-item { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .list-item.obit-item p { display: block; font-size: 15px; }
  .obit-initials { font-size: 28px; }
  .obit-figure { float: none; width: 60%; max-width: 240px; margin: 0 auto 20px !important; }
}
.obit-candle { width: 46%; height: auto; color: var(--gold); opacity: .85; }

/* ---------- obituary: Obituary / Service Schedule tabs ---------- */
.obit-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--rule); margin: 4px 0 24px; }
.obit-tab {
  background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 16px;
  font-family: var(--sans); font-size: 15px; font-weight: 800; color: var(--muted);
}
.obit-tab:hover { color: var(--ink); }
.obit-tab.active { color: var(--ink); border-bottom-color: var(--gold); }
[data-obit-panel="obit"]::after { content: ""; display: block; clear: both; }
.svc-list { display: grid; gap: 14px; }
.svc-card { border: 1px solid var(--rule); border-left: 4px solid var(--gold); border-radius: 6px; padding: 16px 18px; background: var(--bg); font-family: var(--sans); }
.svc-type { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.svc-when b, .svc-place b { display: block; font-size: 17px; color: var(--ink); }
.svc-when span, .svc-place span { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 1px; }
.svc-place { margin-top: 10px; }
.svc-notes { font-family: var(--serif); font-size: 15.5px; color: var(--ink-2); margin-top: 10px; }
.svc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.svc-edit-row { border: 1px solid var(--rule); border-radius: 6px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.obit-sub-svcs { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 3px; }
.obit-svc-row { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); margin-bottom: 10px; }
.obit-name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.obit-name.lg { font-size: 22px; margin-top: 8px; }
.obit-sub-hl { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); margin-top: 2px; }

/* ---------- dashboard inbox ---------- */
.ib-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.ib-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.ib-tile {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--muted); font-family: var(--sans);
}
.ib-tile b { font-size: 22px; font-weight: 800; color: var(--muted); }
.ib-tile span { font-size: 13px; font-weight: 700; }
.ib-tile.has { border-color: var(--red); color: var(--ink); }
.ib-tile.has b { color: var(--red); }
.ib-tile:hover { border-color: var(--accent); }
.ib-clear { display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px dashed var(--rule); border-radius: 8px; text-align: center; margin-bottom: 24px; font-family: var(--sans); }
.ib-clear b { font-size: 17px; }
.ib-clear span { color: var(--muted); font-size: 14px; }
.ib-section { margin-bottom: 26px; scroll-margin-top: 80px; }
.count-pill { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; letter-spacing: 0; }
.ib-empty { color: var(--muted); font-family: var(--sans); font-size: 14px; padding: 4px 0 6px; }
.ib-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--bg); margin-bottom: 8px; font-family: var(--sans);
}
.ib-row[role="button"] { cursor: pointer; }
.ib-row[role="button"]:hover { border-color: var(--accent); background: var(--surface); }
.ib-thumb { width: 52px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--rule); flex-shrink: 0; background: var(--surface); }
.ib-thumb.sm { width: 38px; height: 46px; }
.ib-thumb.none { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 9.5px; color: var(--muted); line-height: 1.2; }
.ib-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ib-main b { font-size: 15.5px; color: var(--ink); }
.ib-hl { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink-2); }
.ib-sub { font-size: 12.5px; color: var(--muted); }
.ib-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-quote { font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--ink); }
.ib-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ib-open { font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ib-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ib-done { opacity: .85; }
.ib-msg { margin-bottom: 8px; }
.ib-msg .ib-row { margin-bottom: 0; }
.ib-msg.unread .ib-row { border-left: 4px solid var(--accent); }
.ib-msg.unread .ib-main b::after { content: " • New"; color: var(--accent); font-size: 12px; }
.ib-msg.open .ib-row { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ib-msg-body { border: 1px solid var(--rule); border-top: none; border-radius: 0 0 8px 8px; padding: 12px 16px 14px; background: var(--surface); font-family: var(--sans); }
.ib-msg-body .who a { color: var(--accent); }
.ib-msg-body .msg { white-space: pre-wrap; font-family: var(--serif); font-size: 16px; margin-top: 8px; }
@media (max-width: 760px) {
  .ib-row { flex-wrap: wrap; }
  .ib-acts { width: 100%; justify-content: flex-end; }
}
/* Dashboard uses the full window width: section menu flush against the left edge. */
.wrap.admin { max-width: none; padding-left: 0; }
.wrap.admin .admin-head { padding-left: 24px; }
.admin-body { grid-template-columns: 200px minmax(0, 1fr); }
.admin-tabs { padding: 8px 0; background: var(--surface); border-radius: 0 8px 8px 0; border-right: 1px solid var(--rule); }
.admin-tab { border-radius: 0; padding: 11px 16px 11px 21px; }
.admin-tab.active { background: var(--bg); }
@media (max-width: 760px) {
  .wrap.admin { padding-left: 24px; }
  .wrap.admin .admin-head { padding-left: 0; }
  .admin-tabs { background: none; padding: 0; border-radius: 0; border-right: none; }
  .admin-tab { padding: 10px 12px; }
  .admin-tab.active { background: none; }
}
.ib-tile { cursor: pointer; border-bottom-width: 3px; }
.ib-tile.active { border-color: var(--accent); background: var(--bg); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.ib-tile.active span { color: var(--ink); }
.ib-panel .ib-clear { margin: 6px 0 14px; }
.county-opt .in-print { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.donate-box { border-top: 3px solid var(--accent); }
.donate-box p { font-size: 15px; line-height: 1.55; }
.donate-box .meta { font-size: 13px; margin-top: 10px; }
.donate-box .meta a { color: var(--accent); }
.donate-thanks { font-family: var(--serif); font-style: italic; margin-top: 10px; color: var(--ink-2); }
.so-log .ib-row { background: var(--surface); }
.so-log .admin-toolbar { margin-bottom: 12px; }
.admin-card .row-actions .badge { align-self: center; }

/* ---------- print ad rate card ---------- */
.rate-wrap { margin: 6px 0 32px; font-family: var(--sans); }
.rate-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rate-top .meta { margin: 0; }
.rate-toggle { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 3px; background: var(--surface); }
.rate-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rate-toggle label { padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.rate-toggle input:checked + label { background: var(--accent); color: #fff; }
.rate-toggle input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.rate-card { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rate-wrap:has(#rateBw:checked) .rate-card.is-color, .rate-wrap:has(#rateColor:checked) .rate-card.is-bw { display: none; }
.rate-card th, .rate-card td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--rule); }
.rate-card th:first-child { text-align: left; }
.rate-card thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--rule-strong); vertical-align: bottom; }
.rate-card thead th.best span { display: block; font-size: 10px; letter-spacing: .06em; color: var(--accent); margin-top: 2px; }
.rate-card tbody th { font-weight: 700; color: var(--ink); }
.rate-card td { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rate-card td.best { font-weight: 800; color: var(--ink); background: var(--accent-soft); }
.rate-card thead th.best { background: var(--accent-soft); }
.rate-card tr.rate-group th { text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: 18px; border-bottom: 1px solid var(--rule-strong); background: none; }
.rate-card tbody tr:not(.rate-group):hover td, .rate-card tbody tr:not(.rate-group):hover th { background: var(--surface); }
@media (max-width: 560px) { .rate-card th, .rate-card td { padding: 9px 7px; font-size: 14px; } }
.rate-edit .rate-in { width: 76px; padding: 6px 8px; }
.rate-edit .rate-in.size { width: 110px; }
.rate-edit th { white-space: nowrap; }
.spot-terms { border-top: 3px solid var(--accent); }
.spot-terms ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.spot-terms li { display: grid; gap: 3px; padding-left: 26px; position: relative; font-family: var(--sans); }
.spot-terms li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236aa8f0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.spot-terms li b { font-size: 14.5px; color: var(--ink); }
.spot-terms li > span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------- inserts ---------- */
.insert-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -10px 0 34px; padding: 20px 22px;
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface); font-family: var(--sans); }
.insert-text h3 { font-family: var(--display); font-size: 21px; margin: 4px 0 6px; color: var(--ink); }
.insert-text p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.insert-note { white-space: nowrap; font-weight: 700; color: var(--ink); }
.insert-price { text-align: right; flex-shrink: 0; }
.insert-price b { display: block; font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1; }
.insert-price span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 560px) { .insert-card { flex-direction: column; align-items: flex-start; } .insert-price { text-align: left; } }
.insert-card + .insert-card { margin-top: -18px; }
.insert-text p a { color: var(--accent); font-weight: 700; white-space: nowrap; }
.insert-price b { white-space: nowrap; }

/* ---------- side ads ---------- */
.page-shell { position: relative; }
.spot-rail { display: none; }
.spot-label { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; text-align: center; }
.spot-unit img, .spot-unit video { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); }
.spot-unit a { display: block; }
.spot-unit a:hover img, .spot-unit a:hover video { border-color: var(--accent); }
/* Margins wide enough for a tall ad on each side of the page (content column is 1240px). */
@media (min-width: 1620px) {
  .spot-rail:not([hidden]) { display: block; position: absolute; top: 24px; bottom: 24px; width: min(300px, calc((100% - 1240px) / 2 - 24px)); }
  .spot-l { right: calc(50% + 620px + 4px); }
  .spot-r { left: calc(50% + 620px + 4px); }
  .spot-rail .spot-unit + .spot-unit { margin-top: 18px; }
  .spot-top, .spot-bottom { display: none !important; }
}
/* Smaller screens: one banner under the menu. */
.spot-top:not([hidden]) { display: flex; justify-content: center; padding: 12px 16px 4px; }
.spot-top .spot-unit { width: 100%; max-width: 340px; }
.spot-top .spot-unit.wide { max-width: 728px; }
.spot-top .spot-unit img, .spot-top .spot-unit video { max-height: 280px; object-fit: contain; }
body.admin-open .spot-rail, body.admin-open .spot-top { display: none !important; }

/* ---------- dashboard: website ads ---------- */
.spot-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 230px auto; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 10px; background: var(--bg); font-family: var(--sans); }
.spot-thumb { width: 70px; height: 96px; object-fit: contain; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.spot-main b { font-size: 15.5px; }
.spot-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.spot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.spot-stats b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); }
.spot-stats span { font-size: 11.5px; color: var(--muted); }
.spot-stats .spot-sub { grid-column: 1 / -1; }
.spot-acts { display: flex; flex-direction: column; gap: 6px; }
.spot-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin-top: 10px; }
.spot-checks .check.strong { grid-column: 1 / -1; font-weight: 800; }
.spot-radio { display: flex; gap: 22px; flex-wrap: wrap; }
.spot-preview { display: flex; align-items: flex-end; gap: 10px; margin: 4px 0 8px; }
.spot-preview img, .spot-preview video { max-width: 180px; max-height: 260px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
@media (max-width: 900px) { .spot-row { grid-template-columns: 70px minmax(0, 1fr); } .spot-stats, .spot-acts { grid-column: 1 / -1; } .spot-acts { flex-direction: row; } }
.spot-bottom:not([hidden]) { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 16px 28px; }
.spot-bottom .spot-unit { width: 100%; max-width: 340px; }
.spot-bottom .spot-unit.wide { max-width: 728px; }
.spot-bottom .spot-unit img, .spot-bottom .spot-unit video { max-height: 280px; object-fit: contain; }
.arrange .arr-page { display: flex; align-items: center; gap: 8px; font-weight: 700; font-family: var(--sans); font-size: 14px; }
.arr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.arr-col { border: 1px dashed var(--rule-strong); border-radius: 8px; padding: 12px; }
.arr-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.arr-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); margin-bottom: 8px; font-family: var(--sans); }
.arr-item .spot-thumb { width: 54px; height: 70px; }
.arr-name { display: flex; flex-direction: column; gap: 2px; }
.arr-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .arr-cols { grid-template-columns: 1fr; } }

/* ---------- about us ---------- */
.about-head h1 { font-style: italic; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 30px; font-family: var(--sans); }
.about-stat { border: 1px solid var(--rule-strong); border-top: 3px solid var(--accent); border-radius: 8px; padding: 16px 18px; background: var(--surface); }
.about-stat b { display: block; font-family: var(--display); font-size: 30px; color: var(--ink); line-height: 1.1; }
.about-stat > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.about-body p { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.about-body .block-head { margin-top: 28px; }
.about-list { columns: 2; column-gap: 28px; margin: 0 0 16px; padding-left: 20px; font-size: 16.5px; line-height: 1.7; }
.about-list a { color: var(--accent); font-weight: 700; }
.about-dist { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--sans); font-size: 13.5px; font-weight: 700; margin: 4px 0 14px; color: var(--ink-2); }
.about-dist .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.about-dist .dot.hard { background: #6aa36f; } .about-dist .dot.elec { background: #e8cf52; } .about-dist .dot.mail { background: #e0726b; }
.about-sub { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.about-towns { font-family: var(--sans); font-size: 14.5px !important; line-height: 1.8 !important; color: var(--ink-2); }
.about-deadlines { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; margin: 6px 0 22px; }
.about-deadlines th, .about-deadlines td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.about-deadlines th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--rule-strong); }
.about-quote { font-family: var(--display); font-size: 21px; line-height: 1.4; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--surface); border-radius: 0 8px 8px 0; margin: 4px 0 20px; }
.about-contact p { font-family: var(--sans); font-size: 14.5px; line-height: 1.6; }
.about-contact a { color: var(--accent); font-weight: 700; }
@media (max-width: 560px) { .about-list { columns: 1; } }

/* ---------- website text editor ---------- */
.text-group h3 { margin-bottom: 10px; }
.text-row { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--rule); font-family: var(--sans); }
.text-row:first-of-type { border-top: none; }
.text-row label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.text-row input, .text-row textarea { width: 100%; }
.text-row .btn { justify-self: start; }
body.text-edit [data-t], body.text-edit [data-ts] { outline: 2px dashed rgba(106, 168, 240, .75); outline-offset: 2px; border-radius: 2px; cursor: text; }
body.text-edit [data-t]:hover, body.text-edit [data-ts]:hover { outline-color: var(--accent); background: rgba(106, 168, 240, .14); }
body.text-edit { padding-bottom: 70px; }
.text-edit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; background: #10233a; color: #fff; font-family: var(--sans); font-size: 14px; box-shadow: 0 -4px 18px rgba(0,0,0,.3); }
.text-edit-bar > span:first-child { flex: 1; min-width: 240px; }
.text-edit-status { font-weight: 700; color: #ffd27a; }
.text-edit-pop { position: absolute; z-index: 90; background: var(--bg); border: 1px solid var(--accent); border-radius: 8px; padding: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-family: var(--sans); }
.text-edit-pop textarea { width: 100%; margin: 8px 0 4px; font-size: 15px; }
.text-edit-pop .tep-head { font-size: 12.5px; color: var(--muted); }
.text-edit-pop .tep-head b { color: var(--ink); }
.tep-btns { display: flex; gap: 8px; margin-top: 8px; }

/* ---------- staff and activity ---------- */
.admin-who { font-family: var(--sans); font-size: 13.5px; color: var(--muted); }
.admin-who b { color: var(--ink); }
.staff-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-family: var(--sans); }
.staff-row:first-of-type { border-top: none; }
.staff-acts { display: flex; gap: 8px; }
.staff-add { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--rule-strong); }
.staff-add h4 { font-family: var(--sans); font-size: 14px; margin: 0 0 8px; }
.admin-table.activity td { font-size: 13.5px; }
.admin-table.activity td:first-child { white-space: nowrap; color: var(--muted); }

/* ---------- ad board ---------- */
.board-top { flex-wrap: wrap; }
.board-zoom { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: auto; }
.board-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; font-family: var(--sans); }
.board-stats > div { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; }
.board-stats b { display: block; font-size: 20px; color: var(--ink); }
.board-stats span { font-size: 12px; color: var(--muted); }
.board-sell-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0; font-family: var(--sans); font-size: 14px; }
.board-custom { display: flex; align-items: center; gap: 6px; }
.board-custom input { width: 80px; }
.board-owner summary { cursor: pointer; font-family: var(--sans); }
.board-owner h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
.board-placing { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, 92vw); z-index: 60; box-shadow: 0 6px 24px rgba(0,0,0,.35); background: #10233a; color: #fff; padding: 10px 14px; border-radius: 8px; margin: 0 0 12px; font-family: var(--sans); font-size: 14px; }
.board-placing .btn { margin-left: 8px; }
.board-pages { display: flex; flex-wrap: wrap; gap: 18px 14px; padding-bottom: 30px; }
.bpage-head { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; margin-bottom: 5px; min-height: 24px; }
.bpage-head .badge { font-size: 10px; }
.bpage-lock { margin-left: auto; font-size: 11px; background: none; border: 1px solid var(--rule-strong); border-radius: 4px; color: var(--muted); padding: 1px 6px; cursor: pointer; }
.bgrid { position: relative; background-color: #fff; border: 1px solid #8a94a3; border-radius: 2px;
  background-image: linear-gradient(to right, rgba(30, 60, 100, .13) 1px, transparent 1px), linear-gradient(to bottom, rgba(30, 60, 100, .13) 1px, transparent 1px); }
.bpage.locked .bgrid { background-color: #f3e4e4; }
.bbox { position: absolute; margin: 1px; border-radius: 3px; overflow: hidden; padding: 3px 4px; font-family: var(--sans); font-size: 10.5px; line-height: 1.2; color: #0b2340; cursor: pointer; display: flex; flex-direction: column; }
.bbox.sold { background: #bcd7f2; border: 1px solid #2e6fb5; }
.bbox.hold { background: #fff1c9; border: 1.5px dashed #b88a12; color: #4d3a05; }
.bbox.mine.sold { background: #b9e3c6; border-color: #2d8a4e; color: #0d3a1c; }
.bbox.news { background: #e1e4e8; border: 1px solid #a7adb5; color: #555c66; cursor: pointer; }
.bbox.main { box-shadow: inset 0 0 0 2px #c0392b; }
.bbox.sel { outline: 3px solid #e2702f; outline-offset: 0; z-index: 2; }
.bb-size { font-weight: 800; }
.bb-biz { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-when { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-by { margin-top: auto; align-self: flex-end; font-weight: 800; font-size: 10px; }
.bghost { position: absolute; pointer-events: none; border-radius: 3px; z-index: 3; }
.bghost.ok { background: rgba(46, 160, 90, .35); border: 2px solid #2d8a4e; }
.bghost.bad { background: rgba(200, 50, 50, .3); border: 2px solid #b23030; }
.board-detail h3 .badge { vertical-align: 2px; }
.board-detail { position: fixed; right: 20px; bottom: 20px; width: min(440px, 92vw); max-height: 75vh; overflow: auto; z-index: 55; margin: 0; box-shadow: 0 10px 34px rgba(0,0,0,.4); border: 1px solid var(--accent); }
.board-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-x { background: none; border: none; color: inherit; font-size: 15px; line-height: 1; margin-left: 4px; cursor: pointer; padding: 0 2px; }
.board-resize { margin: 10px 0 4px; }
.board-resize select { flex: 1; }

/* ---------- page reordering ---------- */
.page-tile[draggable="true"] { cursor: grab; }
.page-tile.dragging { opacity: .4; }
.page-tile.drop-before { box-shadow: -4px 0 0 0 var(--accent); }
.page-tile.drop-after { box-shadow: 4px 0 0 0 var(--accent); }
.reorder { margin: 10px 0 4px; padding: 12px; border: 1px dashed var(--rule-strong); border-radius: 8px; }
.reorder .page-grid { margin-top: 8px; }

/* ---------- issue order ---------- */
.issue-edit { position: relative; }
.issue-order { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-right: 4px; font-family: var(--sans); }
.issue-order button { border: 1px solid var(--rule); background: var(--bg); border-radius: 4px; width: 28px; height: 24px; font-size: 10px; padding: 0; color: var(--ink); }
.issue-order button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.issue-order button[disabled] { opacity: .3; }
.issue-pos { font-size: 12px; font-weight: 800; color: var(--muted); }
.drag-handle { cursor: grab; font-size: 18px; color: var(--muted); line-height: 1; user-select: none; }
.issue-edit.drop-before { box-shadow: 0 -4px 0 0 var(--accent); }
.issue-edit.drop-after { box-shadow: 0 4px 0 0 var(--accent); }
.issue-edit.dragging, .drag-handle.dragging { opacity: .5; }
.issue-edit { grid-template-columns: 34px 120px minmax(0, 1fr); }
@media (max-width: 760px) {
  .issue-edit { grid-template-columns: 34px minmax(0, 1fr); }
  .issue-edit > .form { grid-column: 2; }
}

/* ---------- fill areas drawn on the ad board ---------- */
.ncell { position: absolute; background: #dfe2e6; cursor: pointer; border: 0 solid #8f969f; }
.ncell.nt { border-top-width: 1.5px; } .ncell.nb { border-bottom-width: 1.5px; } .ncell.nl { border-left-width: 1.5px; } .ncell.nr { border-right-width: 1.5px; }
.ncell.sel { background: #f6d7c3; border-color: #e2702f; }
.nlabel { position: absolute; font-family: var(--sans); font-size: 10px; font-weight: 800; color: #4b525b; pointer-events: auto; cursor: pointer; white-space: nowrap; z-index: 1; }
.pcell { position: absolute; background: rgba(46, 160, 90, .45); outline: 1px solid rgba(45, 138, 78, .6); pointer-events: none; z-index: 2; }
.pcell.erase { background: rgba(200, 50, 50, .45); outline-color: rgba(178, 48, 48, .7); }
.bdraw { position: absolute; z-index: 3; pointer-events: none; border: 2px dashed #2d8a4e; background: rgba(46, 160, 90, .18); }
.bdraw.erase { border-color: #b23030; background: rgba(200, 50, 50, .15); }
body.board-drawing .bgrid { cursor: crosshair; touch-action: none; }
.draw-count { font-weight: 700; color: #ffd27a; margin-left: 4px; }
