/* True News design system. Neutral palette on purpose: no party red/blue pairing. */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #f0ede6; --text: #1a1916; --muted: #625d54; --border: #e2ddd3;
  --navy: #14314f; --navy-2: #1f4e79; --accent: #1f5f8b; --accent-text: #ffffff; --warm: #b45309; --good: #1d6b3a;
  --danger: #b42318; --shadow: 0 1px 2px rgba(20, 30, 45, .06), 0 6px 18px rgba(20, 30, 45, .07);
  --shadow-hover: 0 2px 4px rgba(20, 30, 45, .08), 0 12px 28px rgba(20, 30, 45, .12);
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Section colours */
  --c-congress: #6d4bb8; --c-government: #4b5563; --c-economy: #0f766e; --c-health: #15803d;
  --c-world: #b45309; --c-national: #8a5a2b; --c-community: #0e7490;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121417; --surface: #1b1e23; --surface-2: #22262c; --text: #eceae5; --muted: #a8a39a; --border: #30343b;
          --navy: #0e2236; --navy-2: #173a5c; --accent: #7fb6e6; --accent-text: #0b1a28; --warm: #f0a24a; --good: #6fcf97;
          --danger: #f28b82; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
          --shadow-hover: 0 2px 4px rgba(0,0,0,.5), 0 12px 28px rgba(0,0,0,.45);
          --c-congress: #a78bfa; --c-government: #9ca3af; --c-economy: #2dd4bf; --c-health: #4ade80;
          --c-world: #fbbf24; --c-national: #d6a36b; --c-community: #22d3ee; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 1.2rem 0 .6rem; }
main { min-height: 60vh; }

/* ── Top bar & masthead ── */
.topbar { background: var(--navy); color: #d8e3ee; font-size: .8rem; }
.topbar-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 16px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-app { color: #fff; font-weight: 600; text-decoration: none; }
.topbar-app:hover { text-decoration: underline; }
.badge-neutral { letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: #f3d9a4; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
            box-shadow: 0 1px 0 var(--border), 0 4px 14px rgba(20, 30, 45, .04); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px 16px; }
@media (max-width: 700px) { .masthead { position: static; } .hero-local { padding: 20px 18px; } .now-temp { font-size: 3rem; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 9px; }
.brand-text { font: 700 1.65rem/1 var(--serif); letter-spacing: -.02em; display: grid; }
.brand-name { white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--warm); }
.brand-text small { font: 500 .72rem/1.3 var(--sans); color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px; }
.mainnav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .93rem; padding: 7px 13px; border-radius: 999px; transition: background .15s; }
.mainnav a:hover { background: var(--surface-2); }
.mainnav a[aria-current="page"] { background: var(--navy); color: #fff; }
.mainnav a.cta { background: var(--warm); color: #fff; font-weight: 600; }
.mainnav a.cta:hover { filter: brightness(1.08); }

/* ── Shared bits ── */
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--warm); margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; color: var(--warm); font-weight: 700; margin: 1.5rem 0 0; }
.lede { font-size: 1.15rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .85rem; }
.section-title { font-size: 1.6rem; margin: 0; }
.front-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2.2rem 0 1rem;
              border-bottom: 3px solid var(--text); padding-bottom: 6px; }
.more-link { font-weight: 600; text-decoration: none; }
.chip { display: inline-block; font: 700 .68rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase;
        padding: 5px 8px; border-radius: 999px; color: #fff; background: var(--c-national); vertical-align: middle; }
.chip-congress { background: var(--c-congress); } .chip-government { background: var(--c-government); }
.chip-economy { background: var(--c-economy); } .chip-health { background: var(--c-health); }
.chip-world { background: var(--c-world); } .chip-national { background: var(--c-national); }
.chip-community { background: var(--c-community); }
@media (prefers-color-scheme: dark) { .chip { color: #111; } }

.button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 16px;
          background: var(--accent); color: var(--accent-text); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
          transition: transform .12s, filter .12s; }
.button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.button.danger { background: var(--danger); color: #fff; }
.button.small { padding: 5px 10px; font-size: .8rem; }
.button.light { background: #fff; color: var(--navy); }
.button.big { padding: 14px 26px; font-size: 1.05rem; background: var(--warm); color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Local briefing hero ── */
.hero-local { margin: 1.4rem 0 0; padding: 26px 28px 22px; border-radius: 20px; color: #fff;
              background: radial-gradient(circle at 85% 0%, rgba(240, 162, 74, .28), transparent 45%),
                          linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #256a8f 100%);
              box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-local .eyebrow { color: #f3d9a4; }
.hero-local h1 { color: #fff; margin: .25rem 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.local-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.local-controls select { width: auto; min-width: 210px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.local-controls select option { color: #111; }
.hero-status { color: #d6e4f0; margin: .6rem 0 0; }
.hero-status:empty { display: none; }
.now-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.now { display: flex; align-items: center; gap: 16px; }
.now img { border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.now-temp { font: 700 3.6rem/1 var(--serif); margin: 0; }
.now-desc { font-size: 1.1rem; margin: 4px 0 0; font-weight: 600; }
.now-meta { color: #cfe0ee; font-size: .88rem; margin: 2px 0 0; }
.alert-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.alert-chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.alert-chip.sev-extreme, .alert-chip.sev-severe { background: #b42318; border-color: #f97066; }
.alert-chip.sev-moderate { background: #b54708; border-color: #fdb022; }
.alert-chip.clear { background: rgba(29, 107, 58, .55); border-color: #6fcf97; }
.forecast-strip { display: flex; gap: 10px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: thin; }
.strip-item { flex: 0 0 132px; display: grid; justify-items: start; gap: 2px; padding: 10px 12px; border-radius: 12px;
              background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.strip-item.night { background: rgba(0,0,0,.15); }
.strip-item img { border-radius: 8px; }
.strip-name { font-size: .8rem; font-weight: 700; color: #f3d9a4; }
.strip-temp { font: 700 1.5rem/1 var(--serif); }
.strip-desc { font-size: .8rem; color: #d6e4f0; line-height: 1.3; }
.hero-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 0; }
.hero-links a { color: #fff; font-weight: 600; }

.local-extra { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px 14px; box-shadow: var(--shadow); }
.panel-title { font-size: 1.15rem; margin: .8rem 0 .4rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--border); display: grid; gap: 2px; }
.link-list li:last-child { border-bottom: 0; }
.link-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.link-list a:hover { color: var(--accent); }

/* ── Front page ── */
.front-grid { display: grid; gap: 18px; grid-template-columns: 1.25fr 1fr; }
@media (max-width: 820px) { .front-grid { grid-template-columns: 1fr; } }
.lead-card, .feature-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text);
                            background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
                            box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.lead-card:hover, .feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.lead-card { padding: 26px; justify-content: flex-end; min-height: 280px;
             background: linear-gradient(160deg, var(--surface) 0%, var(--surface) 55%, var(--surface-2) 100%);
             border-top: 6px solid var(--warm); }
.lead-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.lead-card .chip { align-self: flex-start; }
.source { color: var(--muted); font-size: .85rem; margin: 0; }
.featured { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .featured { grid-template-columns: 1fr; } }
.feature-card { padding: 16px; }
.feature-card .chip { align-self: flex-start; }
.feature-card h4 { margin: 0; font-size: 1.02rem; }
.headline-columns { list-style: none; padding: 0; margin: 20px 0 0; columns: 2 320px; column-gap: 28px; }
.headline-columns li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--border); }
.headline-columns a { color: var(--text); font-weight: 600; text-decoration: none; margin-left: 4px; }
.headline-columns a:hover { color: var(--accent); }

/* ── Officials band, stats, CTA ── */
.officials-band { margin: 2.6rem 0; display: grid; gap: 24px; grid-template-columns: 1.3fr 1fr; align-items: center;
                  background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--navy-2);
                  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
@media (max-width: 820px) { .officials-band { grid-template-columns: 1fr; } }
.officials-band h2 { margin: .3rem 0; font-size: 1.7rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 14px; display: grid; }
.stat-num { font: 700 2rem/1.1 var(--serif); color: var(--navy-2); }
@media (prefers-color-scheme: dark) { .stat-num { color: var(--accent); } }
.stat-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.cta-band { margin: 2.6rem 0 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
            padding: 26px 28px; border-radius: 20px; color: #fff;
            background: linear-gradient(120deg, #7c2d12 0%, var(--warm) 100%); box-shadow: var(--shadow); }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; max-width: 620px; color: #fde8d2; }
.cta-band .button.big { background: #fff; color: #7c2d12; }

/* ── Stories & editions ── */
.edition-band { margin-top: 2rem; }
.edition-title a { color: var(--text); text-decoration: none; }
.stories { display: grid; gap: 14px; margin: 1.5rem 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.card h3 { margin: .3rem 0; font-size: 1.3rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .kicker { margin-top: 0; }
.card.uplifting { border-left: 6px solid var(--good); }
.card.uplifting .kicker { color: var(--good); }
.excerpt { margin: .3rem 0; }
.closer-heading { color: var(--good); margin: 1rem 0 0; }
.edition-hero { padding: .5rem 0 1rem; border-bottom: 1px solid var(--border); }
.story .story-body p, .story-body p { font-family: var(--serif); font-size: 1.12rem; }
.story { max-width: 760px; }
.sources { border-top: 1px solid var(--border); margin-top: 1.5rem; }
.sources li { word-break: break-word; }

/* ── Forms ── */
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 1rem 0 2rem; box-shadow: var(--shadow); }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.check input { width: auto; margin-top: 5px; }
fieldset { border: 1px solid var(--border); border-radius: 10px; display: grid; gap: 6px; }
.hp { position: absolute; left: -9999px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
form.inline { display: flex; flex-wrap: wrap; gap: 6px; }
.search { display: flex; gap: 8px; margin: 1rem 0; }
.alert { border: 1px solid var(--danger); color: var(--danger); background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.notice { border: 1px solid var(--good); color: var(--good); padding: 10px 14px; border-radius: 10px; }
.notice.unconfirmed { border-color: var(--warm); color: inherit; border-left-width: 6px; }
.unconfirmed-tag { color: var(--warm); font-weight: 700; }
.verify { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; }
.verify legend { font-weight: 700; padding: 0 6px; }
/* Phone: big, full-width editor buttons */
@media (max-width: 600px) { .actions .button { flex: 1 1 100%; padding: 14px; font-size: 1.05rem; } }
.plain-list { padding-left: 1.1rem; }
.plain-list li { margin: .4rem 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--surface); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td { font-variant-numeric: tabular-nums; }
.edit-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: grid; gap: 10px; }
.edit-box summary { cursor: pointer; }
.edit-box[open] summary { margin-bottom: 8px; }
.ai-check { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--muted); border-radius: 10px; padding: 4px 16px 10px; }
.ai-check.approve { border-left-color: var(--good); }
.ai-check.revise { border-left-color: var(--warm); }
.ai-check.reject { border-left-color: var(--danger); }

/* ── State pickers ── */
.state-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1rem 0; }
.state-picker label { font-weight: 600; }
.state-picker select { width: auto; min-width: 220px; }

/* ── Officials directory: neutral styling, no party colours ── */
.toc { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; margin: 1rem 0; }
.toc a { padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; background: var(--surface); }
.office-group { margin-top: 1.8rem; }
.office-group h2 { border-bottom: 2px solid var(--text); padding-bottom: 4px; }
.officials-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.official { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); }
.official img { width: 58px; height: 70px; object-fit: cover; border-radius: 8px; background: var(--border); flex: none; }
.official h3 { margin: 0; font-size: 1.05rem; }
.official h3 a { color: var(--text); }
.official .meta { margin: 2px 0; }
.contact { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; margin: 4px 0 0; }
.member-head { display: flex; gap: 18px; align-items: flex-start; }
.member-head img { width: 120px; border-radius: 12px; box-shadow: var(--shadow); }
.bill-list li { margin: .7rem 0; }
.bill-list .meta { display: block; }

/* ── Headlines page ── */
.section-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0; }
.section-tabs a { padding: 5px 13px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; background: var(--surface); }
.section-tabs a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.headline-list { list-style: none; padding: 0; }
.headline-list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: grid; gap: 3px; }
.headline-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.headline-list a:hover { color: var(--accent); }

/* ── Weather page ── */
.forecast { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.period { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; font-size: .9rem; box-shadow: var(--shadow); }
.period .temp { font-size: 1.5rem; font-weight: 700; }
.alert-card { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--muted); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.alert-card summary { cursor: pointer; }
.alert-card.sev-extreme, .alert-card.sev-severe { border-left-color: var(--danger); }
.alert-card.sev-moderate { border-left-color: var(--warm); }

/* ── Footer ── */
.site-footer { margin-top: 3rem; padding: 2rem 0 2.5rem; background: var(--navy); color: #c9d6e2; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font: 700 1.4rem var(--serif); color: #fff; margin: 0 0 .4rem; }
.footer-brand span { color: #f0a24a; }
.footer-head { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin: 0 0 .4rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
