/* ============================================================
   Bakersfield Daily Brief — highway guide-sign design system
   Sign charcoal #232B30 · deep #1A2126 · roadwork amber #DC9A1F
   asphalt ink #20262C · paper #FAF6EC
   Type: Barlow Condensed (display) · Public Sans (body) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --sign: #232B30;
  --sign-deep: #1A2126;
  --sign-dark: #14191D;
  --amber: #DC9A1F;
  --amber-soft: #F3C76E;
  --red: #B3472F;
  --red-deep: #8F3720;
  --ink: #20262C;
  --ink-soft: #57504A;
  --paper: #FAF6EC;          /* cream (Tucson-style editorial) */
  --paper-2: #F1EADA;
  --card: #FFFDF7;
  --line: #E3DBC8;
  --line-strong: #C4BAA2;
  --white: #FFFFFF;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(32, 38, 28, .07), 0 8px 24px rgba(32, 38, 28, .06);
  --focus: 0 0 0 3px rgba(220, 154, 31, .55);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; overflow-x: clip; width: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--sign); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--sign-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ------------------------------------------------ status bar (Tucson-style) */
.statusbar { background: var(--sign-deep); color: #F1F3F4; font-size: 13.5px; }
.statusbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; padding: 7px 20px; min-height: 32px;
}
.statusbar .sb-left { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.statusbar .sb-right { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.statusbar .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4CC38A; margin-right: 6px; box-shadow: 0 0 0 2px rgba(76,195,138,.25);
}
.statusbar .sb-ok { display: inline-flex; align-items: center; color: #DCE9DF; }
.statusbar .sb-alert { color: var(--amber-soft); font-weight: 600; }
.statusbar .sb-meeting strong { color: var(--amber-soft); font-weight: 600; }
.statusbar .sb-weather { color: #fff; font-weight: 600; }
.statusbar .sb-weather .sb-city { color: #9FBFAE; font-weight: 400; }
.statusbar .sep { color: #6E8F7D; }

/* ------------------------------------------------ masthead (editorial) */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 26px 0 18px; }
.mast-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mast-brand { min-width: 0; }
.tagline {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; font-size: 13px; color: var(--red);
  margin: 0 0 6px;
}
.title-row { display: flex; align-items: center; gap: 14px; }
.route-shield {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  background: #232B30;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(16, 48, 37, .28), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.mast-title {
  font-family: var(--serif); font-weight: 700;
  color: var(--ink);
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-decoration: none;
}
a.mast-title:hover { color: var(--sign); }
.mast-sub {
  margin: 0 0 4px; color: var(--ink-soft); font-size: 16px; font-style: italic;
  max-width: 300px; text-align: right; line-height: 1.4;
}
.mast-sub em { color: var(--red); }
@media (max-width: 760px) {
  .mast-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mast-sub { text-align: left; max-width: none; }
}

/* ------------------------------------------------ nav (editorial rule) */
.navwrap {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 15px;
  padding: 11px 13px;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: var(--red); }
.nav-list a[aria-current="page"], .nav-list a.active { color: var(--red); border-bottom-color: var(--red); }
.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--ink); font-family: var(--display);
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 16px;
  padding: 10px 8px; cursor: pointer;
}
.nav-toggle:hover { color: var(--red); }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-bottom: 6px;
  }
  .nav-list.open { display: flex; }
  .nav-list a { border-bottom: 0; border-left: 3px solid transparent; }
  .nav-list a[aria-current="page"], .nav-list a.active { border-left-color: var(--red); }
}

/* ------------------------------------------------ hero + page head */
.hero { padding: 26px 0 6px; }
.hero .kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sign);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 6px;
}
.hero .kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber); display: inline-block; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 56px);
  line-height: .95;
  margin: 0 0 10px;
  letter-spacing: .01em;
}
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 720px; margin: 0 0 14px; }
.hero .meta { font-family: var(--mono); font-size: 13.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero .meta .dot { color: var(--amber); }
.updated { color: var(--sign); font-weight: 600; }

/* ------------------------------------------------ sign section headers */
.block { margin: 30px 0; }
.sign-head {
  display: flex;
  align-items: stretch;
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sign-head .tab {
  background: var(--amber);
  color: var(--sign-dark);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 15px;
  display: flex; align-items: center;
  padding: 0 14px;
  white-space: nowrap;
}
.sign-head h2 {
  background: var(--sign);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(21px, 3.2vw, 27px);
  margin: 0;
  padding: 9px 18px;
  flex: 1;
  display: flex; align-items: center; gap: 12px;
}
.sign-head h2 .unit { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--amber-soft); text-transform: none; letter-spacing: .04em; }
@media (max-width: 560px) { .sign-head .tab { display: none; } }

/* ------------------------------------------------ cards */
.grid { display: grid; gap: 16px; min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sign);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
a.card:hover { transform: translateY(-3px); border-left-color: var(--amber); box-shadow: 0 4px 6px rgba(14,74,49,.08), 0 14px 30px rgba(14,74,49,.12); }
a.card:hover h3 { color: var(--sign); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 6px; line-height: 1.1; color: var(--ink); }
.card p { margin: 0 0 10px; font-size: 15.5px; color: var(--ink-soft); }
.card .card-go { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--sign); display: inline-flex; align-items: center; gap: 6px; }
.card .card-go::after { content: "→"; transition: transform .15s ease; }
a.card:hover .card-go::after { transform: translateX(4px); }
.card .tag {
  display: inline-block;
  background: var(--paper-2);
  color: var(--sign-deep);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 20px;
  margin: 0 6px 8px 0;
  text-transform: uppercase;
}
.card .tag.amber { background: #FBEED2; color: #8a5d0a; }
.card .tag.red { background: #FBE3DE; color: #9c3a1d; }
.card .tag.green { background: #E7E9EA; color: #232B30; }

/* ------------------------------------------------ data lists */
.dl { list-style: none; margin: 0; padding: 0; }
.dl li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 15.5px;
  min-width: 0;
}
.dl li:last-child { border-bottom: 0; }
.dl .k { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); flex: 0 0 118px; letter-spacing: .02em; }
.dl .v { min-width: 0; word-break: break-word; }
.dl .v strong { color: var(--sign-deep); }
@media (max-width: 560px) { .dl li { flex-direction: column; gap: 2px; } .dl .k { flex: none; } }

/* headlines: title + source chip + link out */
.hl { list-style: none; margin: 0; padding: 0; }
.hl li { padding: 11px 2px; border-bottom: 1px dashed var(--line); min-width: 0; }
.hl li:last-child { border-bottom: 0; }
.hl .src { font-family: var(--mono); font-size: 11.5px; color: var(--amber); text-transform: uppercase; letter-spacing: .1em; display: inline-block; margin-bottom: 2px; }
.hl a { font-weight: 600; font-size: 16.5px; text-decoration: none; }
.hl a:hover { text-decoration: underline; }
.hl .when { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-left: 8px; }

/* ------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 0; }
table.data th {
  background: var(--sign);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
  text-align: left;
  padding: 9px 12px;
  white-space: nowrap;
}
table.data td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:nth-child(even) { background: var(--paper); }
table.data td.num, table.data th.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
@media (max-width: 700px) { table.data { font-size: 13px; } table.data td, table.data th { padding: 6px 8px; } }

/* ------------------------------------------------ stat chips */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sign);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat .n { font-family: var(--mono); font-weight: 600; font-size: 26px; color: var(--sign-deep); line-height: 1.1; }
.stat .n small { font-size: 14px; color: var(--ink-soft); font-weight: 400; }
.stat .l { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.stat.amber { border-top-color: var(--amber); }
.stat.amber .n { color: #8a5d0a; }

/* ------------------------------------------------ callouts */
.callout {
  background: #FDF6E7;
  border: 1px solid #E8D5A0;
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15.5px;
}
.callout strong { color: #7a5205; }
.note {
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 14px 0;
}
.note code { font-family: var(--mono); font-size: 13px; background: #fff; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--line); }

/* ------------------------------------------------ overnight strip + note */
.ko-strip {
  display: flex; align-items: baseline; gap: 12px;
  margin: 6px 0 4px; padding: 11px 16px;
  border-left: 3px solid var(--amber);
  background: var(--paper-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ko-strip .ko-label {
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.ko-strip .ko-text { margin: 0; font-size: 14.5px; color: var(--ink); }
.ko-strip a { color: var(--sign-deep); font-weight: 600; white-space: nowrap; }
.trans-note {
  font-size: .84em; font-style: italic; color: var(--ink-soft);
  margin: 12px 0 0; max-width: 72ch; line-height: 1.55;
}

/* ------------------------------------------------ overnight reports */
.letter { scroll-margin-top: 90px; }
.letter h1 {
  font-family: var(--display); font-weight: 700; font-size: 26px;
  color: var(--sign-deep); margin: 6px 0 10px;
}
.letter h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; font-size: 15px; color: var(--sign-deep);
  border-left: 3px solid var(--amber); padding-left: 10px; margin: 24px 0 10px;
}
.letter p { color: var(--ink-soft); line-height: 1.62; margin: 0 0 10px; max-width: 74ch; }
.letter ul { list-style: none; margin: 4px 0 16px; padding: 0; }
.letter li {
  position: relative; padding: 10px 12px 10px 34px; margin: 0 0 8px;
  background: var(--paper-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--ink-soft); line-height: 1.55;
}
.letter li::before {
  content: ""; position: absolute; left: 14px; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
}
.letter li strong { color: var(--ink); }
.letter-meta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--amber); margin: 0 0 4px;
}

/* ------------------------------------------------ homepage overnight section */
.ko-section {
  margin: 16px 0; padding: 18px 20px;
  border: 1px solid var(--line-strong); border-top: 3px solid var(--amber);
  border-radius: var(--radius); background: var(--paper);
}
.ko-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.ko-main { flex: 1 1 320px; min-width: 0; }
.ko-title { font-family: var(--display); font-size: 20px; margin: 0 0 6px; }
.ko-title a { color: var(--ink); text-decoration: none; }
.ko-title a:hover { color: var(--sign-deep); text-decoration: underline; }
.ko-text { margin: 0 0 6px; color: var(--ink-soft); line-height: 1.55; }
.ko-friend { margin: 0 0 4px; font-style: italic; color: var(--ink-soft); line-height: 1.5; }
.ko-cats {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--amber); margin: 0;
}
.ko-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-ghost {
  background: transparent; color: var(--sign-deep);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-red {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 13px; color: #fff;
  background: var(--red); border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; text-decoration: none;
  box-shadow: 0 2px 0 var(--red-deep);
}
.btn-red:hover { background: var(--red-deep); }

/* ------------------------------------------------ brief article */
.seg-intro {
  font-style: italic; color: var(--ink-soft); line-height: 1.6;
  margin: 0 0 10px; max-width: 72ch;
}
.brief-seg { margin: 26px 0 10px; }
.brief-seg .sec-head { margin-bottom: 8px; }

/* ------------------------------------------------ prose pages */
.prose { max-width: 780px; }
.prose h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 26px; color: var(--sign-deep); margin: 34px 0 10px; }
.prose h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 19px; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { font-weight: 600; }

/* ------------------------------------------------ map */
.mapwrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #E8EEF0; }
#alpr-map { height: 520px; width: 100%; }
@media (max-width: 700px) { #alpr-map { height: 400px; } }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content { font-size: 14px; }
.cluster-dot {
  background: var(--sign);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px 14px; background: var(--paper-2); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); font-family: var(--mono); }
.map-legend .sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* ------------------------------------------------ SVG charts */
.chart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin: 14px 0; }
.chart svg { width: 100%; height: auto; display: block; }

/* ------------------------------------------------ ads (inert until approved) */
.ad-slot { min-height: 90px; margin: 26px 0; display: flex; align-items: center; justify-content: center; }
.ad-slot:empty { display: none; }
.ad-slot .ad-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--paper-2); border: 1px dashed var(--line-strong);
  padding: 6px 12px; border-radius: 4px;
}

/* ------------------------------------------------ footer */
.footer { background: var(--ink); color: #C6CFC9; margin-top: 46px; font-size: 14.5px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 30px 0 10px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr; gap: 18px; } }
.footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--amber-soft); font-size: 16px; margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: #C6CFC9; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 20px; color: #fff; letter-spacing: .04em; }
.footer .src-note { font-size: 12.5px; color: #8FA099; line-height: 1.55; margin-top: 8px; }
.footer .base { border-top: 1px solid #333; padding: 14px 0; margin-top: 20px; font-size: 13px; color: #8FA099; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.footer .base a { color: #8FA099; }
.footer .base a:hover { color: #fff; }

/* ------------------------------------------------ misc */
.pill { display: inline-block; background: var(--paper-2); color: var(--sign-deep); font-family: var(--mono); font-size: 12.5px; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line); }
.pill.amber { background: #FBEED2; color: #8a5d0a; border-color: #E8D5A0; }
.errorbox { background: #FBE3DE; border: 1px solid #E8B4A6; border-radius: var(--radius); padding: 12px 16px; color: #7a2d14; font-size: 14.5px; margin: 14px 0; }
.breadcrumbs { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin: 18px 0 -8px; }
.breadcrumbs a { color: var(--sign); }
.pagehead { margin: 26px 0 6px; }

/* ---- AQI category colors (EPA) ---- */
.aqi-good { color: #1E7A46; font-weight: 700; }
.aqi-mod  { color: #B45309; font-weight: 700; }
.aqi-usg  { color: #C2410C; font-weight: 700; }
.aqi-unh  { color: #B91C1C; font-weight: 700; }
.aqi-vunh { color: #6D28D9; font-weight: 700; }
.aqi-haz  { color: #9F1239; font-weight: 700; }

/* ---- big status (Grapevine page) ---- */
.big-status {
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 10px 0 18px; background: var(--card);
}
.big-status .big-label { font-family: var(--display); text-transform: uppercase;
  letter-spacing: .12em; font-size: 13px; color: var(--ink-soft); margin: 0 0 6px; }
.big-status .big-word { font-family: var(--display); font-size: 52px; line-height: 1;
  font-weight: 700; margin: 0 0 8px; }
.big-status .big-note { margin: 0; color: var(--ink-soft); }
.big-open .big-word { color: #1E7A46; }
.big-restrict .big-word { color: var(--amber-deep, #B45309); }
.big-closed .big-word { color: #B91C1C; }
.big-open { border-color: #1E7A46; }
.big-restrict { border-color: var(--amber); }
.big-closed { border-color: #B91C1C; background: #FDF3F2; }

/* ------------------------------------------------ homepage: editorial brief */
.today-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: 15px; color: var(--red); margin: 0 0 8px;
}
.sun-sm { width: 20px; height: 20px; }
.today-h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 4.2vw, 42px); line-height: 1.08;
  letter-spacing: -.015em; margin: 0 0 10px; color: var(--ink);
}
.today-h1 a { color: inherit; text-decoration: none; }
.today-h1 a:hover { color: var(--red); }
.hero-src { color: var(--sign); font-style: normal; font-size: 14px; }

.brief-top { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; padding: 24px 0 6px; }
.hero-col { min-width: 0; }
.hero-col .lede { font-style: italic; color: var(--ink-soft); font-size: 17px; margin: 0 0 12px; }
.sidebar-col { min-width: 0; }
@media (max-width: 900px) { .brief-top { grid-template-columns: 1fr; gap: 18px; } }

.read-more {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 16px; color: #fff;
  background: var(--red); border-radius: 8px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; margin-top: 10px; text-decoration: none;
  box-shadow: 0 2px 0 var(--red-deep);
}
.read-more:hover { background: var(--red-deep); }
.read-more::after { content: "→"; font-size: 20px; transition: transform .15s ease; }
.read-more:hover::after { transform: translateX(4px); }
@media (max-width: 560px) { .read-more { width: 100%; justify-content: center; } }

/* ---- category grid (Latest across Bakersfield) ---- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 940px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
a.cat-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--sign);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  color: inherit; text-decoration: none; min-width: 0;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
a.cat-card:hover { transform: translateY(-3px); border-top-color: var(--amber); box-shadow: 0 4px 6px rgba(14,74,49,.08), 0 14px 30px rgba(14,74,49,.12); }
.cat-card .cat-label {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 12.5px; color: var(--red);
}
.cat-card h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.15; margin: 2px 0; color: var(--ink); }
a.cat-card:hover h3 { color: var(--sign); }
.cat-card p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.cat-tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px;
  padding: 2px 9px; color: var(--sign-deep);
}
.cat-tag.red { background: #FBE3DE; border-color: #E8B4A6; color: #9c3a1d; }
.cat-card .card-go { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px; color: var(--sign); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; }
.cat-card .card-go::after { content: "→"; transition: transform .15s ease; }
a.cat-card:hover .card-go::after { transform: translateX(4px); }

/* ---- week at a glance ---- */
.week-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 940px) { .week-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); } }
.day-col {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; box-shadow: var(--shadow); min-width: 0;
}
.day-col.today { border: 2px solid var(--amber); background: #FFFDF3; }
.day-col h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: 14px; color: var(--ink); margin: 0 0 8px; padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.day-col.today h3 { color: #8a5d0a; }
.day-col ul { list-style: none; margin: 0; padding: 0; }
.day-col li { margin: 0 0 9px; font-size: 13.5px; line-height: 1.4; min-width: 0; }
.day-col li:last-child { margin-bottom: 0; }
.day-col li a { text-decoration: none; font-weight: 600; }
.day-col li a:hover { text-decoration: underline; color: var(--red); }
.day-col li.day-alert a { color: #8a5d0a; }
.day-col li.day-empty { color: var(--line-strong); font-style: italic; }
.day-col .tag { display: inline-block; margin-right: 4px; }

/* ---- archive ---- */
.arch-list { list-style: none; margin: 0; padding: 0; }
.arch-row { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.arch-row:last-child { border-bottom: 0; }
.arch-date { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); flex: 0 0 110px; }
.arch-head { min-width: 0; }
.arch-head a { font-weight: 600; text-decoration: none; }
.arch-head a:hover { color: var(--red); text-decoration: underline; }
.arch-more { margin: 12px 0 0; }
.arch-more a { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--red); text-decoration: none; }
.arch-more a:hover { text-decoration: underline; }
@media (max-width: 560px) { .arch-row { flex-direction: column; gap: 2px; } .arch-date { flex: none; } }

/* ---- topic-grouped news cards (keyless digest) ---- */
.news-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .news-groups { grid-template-columns: 1fr; } }
.card.ng h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 15px; color: var(--red);
  margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.ng-list { list-style: none; margin: 0; padding: 0; }
.ng-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.ng-list li:last-child { border-bottom: 0; }
.ng-list a { font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.35; }
.ng-list a:hover { color: var(--red); text-decoration: underline; }
.ng-list .src {
  display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--sign); margin-top: 2px;
}
.ng-credit { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin: 10px 0 0; }

.sec-head {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: 17px; color: var(--red);
  margin: 34px 0 14px; padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
.sec-head .unit { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--ink-soft); letter-spacing: .05em; text-transform: none; }

.date-line {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .18em; font-size: 14px; color: var(--ink-soft);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  padding: 9px 0; margin: 6px 0 8px;
}
.date-line span:last-child { color: var(--red); }

.today-brief { padding: 26px 0 10px; }
.today-grid { display: flex; gap: 28px; align-items: center; }
.today-copy { flex: 1 1 auto; min-width: 0; }
.today-copy h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08;
  letter-spacing: -.015em; margin: 4px 0 10px; color: var(--ink);
}
.today-copy h1 a { color: inherit; text-decoration: none; }
.today-copy h1 a:hover { color: var(--red); }
.today-copy .lede { font-style: italic; color: var(--ink-soft); font-size: 17px; margin: 0 0 12px; }
.read-more {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 16px; color: #fff;
  background: var(--red); border-radius: 8px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; margin-top: 10px; text-decoration: none;
  box-shadow: 0 2px 0 var(--red-deep);
}
.read-more:hover { background: var(--red-deep); }
.read-more::after { content: "→"; font-size: 20px; transition: transform .15s ease; }
.read-more:hover::after { transform: translateX(4px); }
@media (max-width: 560px) { .read-more { width: 100%; justify-content: center; } }
.sun { flex: 0 0 auto; width: clamp(90px, 12vw, 150px); opacity: .92; }
@media (max-width: 760px) { .sun { display: none; } }

.brief-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.brief-main { min-width: 0; }
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side-box {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--amber);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.side-box h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 16px; color: var(--sign-deep);
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.numlist { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.numlist li {
  counter-increment: n; position: relative;
  padding: 0 0 12px 34px; margin-bottom: 12px; border-bottom: 1px dashed var(--line);
  font-size: 15px; line-height: 1.45;
}
.numlist li:last-child { border-bottom: 0; margin-bottom: 0; }
.numlist li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--amber);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px;
  width: 26px; height: 26px; display: grid; place-items: center;
}
.numlist a { font-weight: 600; text-decoration: none; color: var(--ink); }
.numlist a:hover { color: var(--red); text-decoration: underline; }
.numlist .n-src { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--sign); display: block; margin-top: 2px; }

.side-cond dl { margin: 0; }
.side-cond .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.side-cond .row:last-child { border-bottom: 0; }
.side-cond .row .k { color: var(--ink-soft); }
.side-cond .row .v { font-family: var(--mono); font-weight: 600; color: var(--sign-deep); text-align: right; }

.latest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.latest-list li { padding: 11px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.latest-list .src { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--sign); display: block; margin-bottom: 2px; }
.latest-list a { font-weight: 600; font-size: 15.5px; text-decoration: none; line-height: 1.35; }
.latest-list a:hover { color: var(--red); text-decoration: underline; }
@media (max-width: 700px) { .latest-list { grid-template-columns: 1fr; } }

.cond-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 8px; }
.cond-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; box-shadow: var(--shadow); min-width: 0;
}
a.cond-chip { text-decoration: none; color: inherit; display: block; transition: border-color .12s ease, box-shadow .12s ease; }
a.cond-chip:hover, a.cond-chip:focus-visible { border-color: var(--amber); box-shadow: 0 1px 8px rgba(220, 154, 31, .28); }
a.cond-chip:hover .v, a.cond-chip:focus-visible .v { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.cond-chip .l { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 3px; }
.cond-chip .v { font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--sign-deep); line-height: 1.2; }
.cond-chip .v.amber { color: #8a5d0a; }
@media (max-width: 700px) { .cond-strip { grid-template-columns: 1fr; } }

/* ------------------------------------------------ hero summary + article lead */
.hero .lede a, .article-lead a { color: var(--amber-deep, #8a5d0a); }
.article-lead { border-left: 4px solid var(--amber); padding: 4px 0 4px 18px; margin: 8px 0 18px; }
.article-lead p { margin: 0 0 10px; }
.article-lead p:last-child { margin-bottom: 0; }

/* ------------------------------------------------ brief read (article) */
.sunday-body { font-family: var(--serif); font-size: 17px; line-height: 1.7; }
.sunday-body p { margin: 0 0 16px; }
.sunday-body h3.sunday-h { font-family: var(--display); font-size: 20px;
  margin: 26px 0 8px; color: var(--sign-deep); }
.sunday-body a { font-weight: 600; }
.brief-read .greet { font-family: var(--serif); font-size: 18px; line-height: 1.55;
  margin: 4px 0 22px; }
.brief-read .greet p { margin: 0 0 10px; }
.brief-seg { margin: 26px 0 30px; }
.brief-seg .sign-head { margin-bottom: 4px; }
.story-list { margin: 0 0 0 18px; padding: 0; }
.story-list li { margin-bottom: 9px; line-height: 1.45; }
.good-head { box-shadow: none; margin-bottom: 10px; }
.good-head h2 { border-left: 4px solid var(--amber); padding-left: 10px; }

/* "Something good" — compact horizontal news card */
.pos-card { display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; }
.pos-card img.thumb { width: 180px; height: 120px; object-fit: cover; border-radius: 8px;
  flex: 0 0 auto; margin-top: 2px; }
.pos-body { min-width: 0; }
.pos-body .cat-tag { display: inline-block; margin-bottom: 6px; }
.pos-body h3 { font-family: var(--serif); font-size: 17px; line-height: 1.3;
  margin: 0 0 5px; }
.pos-body h3 a { color: var(--ink); text-decoration: none; }
.pos-body h3 a:hover { color: var(--sign); text-decoration: underline; }
.pos-body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
@media (max-width: 480px) {
  .pos-card { flex-direction: column; }
  .pos-card img.thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* ------------------------------------------------ gas prices */
.gas-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gas-table th, .gas-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.gas-table thead th { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--ink-soft); }
.gas-table .gas-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.gas-table .gas-y { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.gas-delta { font-size: 13px; font-weight: 600; }
.gas-delta.up { color: #a33; }
.gas-delta.down { color: #1c6b3c; }
.gas-delta.flat { color: var(--ink-soft); }

/* ------------------------------------------------ weather page */
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wx-day { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--amber);
  border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.wx-icon img { display: block; width: 48px; height: 48px; }
.wx-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.wx-temp { font-size: 22px; font-weight: 700; }
.wx-low { font-size: 13px; color: var(--ink-soft); }
.wx-short { font-size: 13.5px; color: var(--ink); }
.wx-wind { font-size: 12px; color: var(--ink-soft); }

/* ------------------------------------------------ figures + thumbnails */
.fig { margin: 18px 0 20px; }
.fig img { display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); }
/* uniform figure height so mixed aspect ratios (panorama vs 3:2) don't
   produce wildly different sizes on the same page */
.fig img { aspect-ratio: 16 / 7; object-fit: cover; object-position: center 35%; }
.fig figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-soft);
  font-family: var(--mono); letter-spacing: .02em; }
.fig figcaption a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.fig figcaption a:hover { color: var(--sign); }
img.thumb { display: block; width: 100%; height: 130px; object-fit: cover;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 1px solid var(--line); }

/* ------------------------------------------------ newsletter block */
.nl-block { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  border: 2px solid var(--amber); border-radius: var(--radius);
  background: var(--card); padding: 22px 26px; margin: 18px 0;
  box-shadow: 0 2px 0 rgba(220, 154, 31, .18); }
.nl-kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em;
  font-size: 14px; font-weight: 600; color: var(--amber-deep, #8a5d0a); margin: 0 0 4px; }
.nl-pitch { margin: 0; font-size: 16px; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.nl-form input[type="email"] { padding: 10px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); font: inherit; min-width: 230px; }
.nl-form input[type="email"]:focus { border-color: var(--amber); outline: none;
  box-shadow: 0 0 0 3px rgba(220, 154, 31, .22); }
.nl-form .btn { background: var(--sign-deep); color: #fff; border: 0; border-radius: var(--radius);
  padding: 11px 20px; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600; cursor: pointer; }
.nl-form .btn:hover { background: var(--sign); }
@media (max-width: 640px) { .nl-form { margin-left: 0; width: 100%; }
  .nl-form input[type="email"] { flex: 1; min-width: 0; } }

/* ------------------------------------------------ letters + numbers */
.letters { display: grid; gap: 14px; }
.letter { background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--amber); border-radius: var(--radius);
  padding: 14px 18px; }
.letter h2 { font-family: var(--display); font-size: 19px; margin: 4px 0 8px; }
.letter-meta { font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin: 0; }
.letter-form label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 14px; }
.letter-form input, .letter-form textarea { width: 100%; padding: 9px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; text-decoration: none; color: inherit; }
.tile strong { display: block; font-family: var(--display); color: var(--sign-deep); }
.tile span { font-size: 13px; color: var(--ink-soft); }
.tile:hover { border-color: var(--amber); }

/* ------------------------------------------------ events list */
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ev-row:last-child { border-bottom: 0; }
.ev-date { font-family: var(--mono); font-size: 13px; color: #8a5d0a; white-space: nowrap; min-width: 118px; }
.ev-body a { color: var(--sign-deep); font-weight: 600; text-decoration: none; }
.ev-body a:hover { text-decoration: underline; }
.ev-venue { display: block; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 560px) { .ev-row { flex-direction: column; gap: 2px; } }

@media (max-width: 900px) { .brief-grid { grid-template-columns: 1fr; } }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  a.card { transform: none !important; }
  a.card:hover { transform: none; }
}

/* print */
@media print {
  .navwrap, .footer, .ad-slot, .masthead .exit-tab { display: none !important; }
  body { background: #fff; }
  a { color: var(--ink); }
}
