/* LocalWatch — editorial newsroom console.
   Design language: paper, ink, stone, brass. Serif for masthead/headlines,
   sans for interface. Thin rules, minimal shadow, red reserved for urgency. */

:root {
  --paper:      #F5F1E8;   /* page ground (brand ivory) */
  --paper-deep: #EFE9DB;   /* section band */
  --card:       #FDFBF6;   /* raised paper */
  --ink:        #17130B;   /* near-black warm text */
  --ink-soft:   #4A4536;   /* body secondary */
  --stone:      #8B8471;   /* metadata */
  --rule:       #E0D8C4;   /* hairline rules */
  --rule-soft:  #EAE3D3;
  --brass:      #9A6B1E;   /* accent (links, active) */
  --brass-deep: #7E561A;
  --brass-wash: #F2E8D2;   /* brass tint fill */
  --urgent:     #A3241C;   /* short-notice / failure only */
  --urgent-wash:#F6E3DF;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brass-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.serif { font-family: var(--serif); }
.muted { color: var(--stone); }

/* ---- header ---- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,241,232,.92); backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.masthead img.logo { width: 208px; height: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 9px 18px; border-radius: 3px; border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
}
.btn-solid { background: var(--ink); color: #F7F3EA; }
.btn-solid:hover { background: #000; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #F7F3EA; text-decoration: none; }
.btn-brass { background: var(--brass); color: #FBF6EC; }
.btn-brass:hover { background: var(--brass-deep); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.signin { color: var(--ink); font-weight: 600; font-size: 14.5px; }

/* ---- hero ---- */
.hero { padding: 74px 0 30px; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.04; margin: 0 0 20px;
  max-width: 15ch;
}
.hero p.lede {
  font-size: 19px; line-height: 1.5; color: var(--ink-soft);
  max-width: 60ch; margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-actions .btn { padding: 12px 22px; font-size: 15.5px; }
.quiet-link { font-size: 15px; font-weight: 600; color: var(--brass-deep); }
.quiet-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* live search */
.searchbar { margin: 34px 0 6px; position: relative; max-width: 720px; }
.searchbar svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--stone); }
.searchbar input {
  width: 100%; font-family: var(--sans); font-size: 16.5px; color: var(--ink);
  padding: 15px 18px 15px 50px; background: var(--card);
  border: 1px solid var(--rule); border-radius: 4px; outline: none;
}
.searchbar input:focus { border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-wash); }
.searchbar input::placeholder { color: var(--stone); }

.statline { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 20px; color: var(--stone); font-size: 13.5px; }
.statline b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.freshdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3f8f5b; margin-right: 7px; vertical-align: middle; }

/* topic filter chips */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 4px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  padding: 6px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card);
  transition: all .12s;
}
.chip:hover { border-color: var(--stone); }
.chip.on { background: var(--ink); color: #F7F3EA; border-color: var(--ink); }

/* ================= NEWS FRONT PAGE ================= */
.masthead.compact .wrap { height: 60px; }
.masthead.compact img.logo { width: 172px; }

.fronthead { padding: 38px 0 26px; }
.tagline { font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brass-deep); margin: 0 0 14px; }
.identity { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 3.8vw, 37px); line-height: 1.16; letter-spacing: -.01em; margin: 0 0 16px; max-width: 22ch; }
.searchbar.big { max-width: 640px; margin: 20px 0 0; }
.searchbar.big input { padding: 15px 18px 15px 52px; font-size: 16.5px; }
.statline .dot { color: var(--rule); }

/* feed toolbar: tabs + filters */
.feed-section { padding: 8px 0 40px; }
.feedbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--stone); cursor: pointer; padding: 11px 15px; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--brass); }
.feed-filters { display: flex; gap: 8px; padding-bottom: 8px; }
.ffilter { font-family: var(--sans); font-size: 13px; color: var(--ink); padding: 8px 11px; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); cursor: pointer; max-width: 46vw; }
.ffilter:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-wash); }
.feed-more { text-align: center; margin-top: 24px; }

/* news cards */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.ncard { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--rule); border-radius: 6px; padding: 18px 20px 16px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: box-shadow .12s, border-color .12s; }
.ncard.is-new { border-left-color: var(--brass); }
.ncard.is-urgent { border-left-color: var(--urgent); }
.ncard:hover { box-shadow: 0 8px 24px -18px rgba(23,19,11,.5); border-color: var(--stone); text-decoration: none; }
.ncard-flags { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.ncard-body { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.ncard-head { font-family: var(--serif); font-weight: 600; font-size: 19.5px; line-height: 1.24; letter-spacing: -.006em; margin: 0 0 9px; color: var(--ink); }
.ncard-meta { font-size: 12.5px; color: var(--stone); margin-bottom: 11px; }
.ncard-meta b { color: var(--ink); }
.ncard-sum { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-sum.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.ncard-expand { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--brass-deep); background: none; border: none; padding: 0 0 12px; cursor: pointer; text-align: left; }
.ncard-expand:hover { text-decoration: underline; text-underline-offset: 2px; }
.ntags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ntag { font-size: 10.5px; color: var(--ink-soft); background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 3px; padding: 3px 8px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.ncard-official { font-size: 12px; color: var(--stone); margin-bottom: 12px; border-top: 1px dotted var(--rule); padding-top: 10px; }
.ncard .src { margin-top: auto; }

.alertcard { grid-column: 1 / -1; background: var(--paper-deep); border: 1px dashed var(--brass); border-radius: 6px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 15px; color: var(--ink-soft); }
.alertcard b { color: var(--ink); }

/* ---- section headers ---- */
.section { padding: 20px 0 44px; }
.section-band { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: 27px; margin: 0; letter-spacing: -.01em; }
.sec-head .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }

/* ---- meeting cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 5px;
  border-left: 3px solid var(--rule); padding: 18px 20px 16px; display: flex; flex-direction: column;
  transition: border-color .12s, box-shadow .12s; color: var(--ink); text-decoration: none;
}
.card:hover { box-shadow: 0 1px 0 var(--rule), 0 6px 22px -16px rgba(23,19,11,.4); text-decoration: none; border-color: var(--stone); }
.card.is-new { border-left-color: var(--brass); }
.card.is-urgent { border-left-color: var(--urgent); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card .city { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -.005em; }
.card .platform { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.card .mname { font-size: 14.5px; color: var(--ink-soft); margin: 3px 0 12px; }
.card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--stone); margin-bottom: 12px; align-items: center; }
.card .meta .date { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.tag-new { background: var(--brass-wash); color: var(--brass-deep); }
.tag-urgent { background: var(--urgent-wash); color: var(--urgent); }
.tag-agenda { background: #E7EFE3; color: #386b45; }
.tag-none { background: #EDE7D8; color: var(--stone); }

.why { border-top: 1px dotted var(--rule); padding-top: 11px; margin-top: auto; }
.why .label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brass-deep); }
.why .topics { display: flex; gap: 6px; flex-wrap: wrap; margin: 7px 0 8px; }
.why .topic { font-size: 11.5px; color: var(--ink-soft); background: var(--paper-deep); border: 1px solid var(--rule); border-radius: 3px; padding: 2px 7px; }
.why .excerpt { font-size: 13px; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.src { font-size: 13px; font-weight: 600; color: var(--brass-deep); }
.src::after { content: " \2192"; }
.card:hover .src { text-decoration: underline; text-underline-offset: 2px; }
.watchbtn { font-size: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer; background: none; border: 1px solid var(--rule); border-radius: 3px; padding: 5px 10px; }
.watchbtn:hover { border-color: var(--ink); color: var(--ink); }
.empty { color: var(--stone); font-size: 15px; padding: 30px 0; text-align: center; }

/* ---- promises ---- */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.promise .n { font-family: var(--serif); font-size: 15px; color: var(--brass-deep); border-top: 2px solid var(--brass); padding-top: 12px; display: inline-block; width: 34px; }
.promise h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 8px 0 8px; }
.promise p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---- coverage ---- */
.cov-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.cov-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 5px; overflow: hidden; }
.cov-stat { background: var(--card); padding: 20px 22px; }
.cov-stat .num { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.cov-stat .lbl { font-size: 12.5px; color: var(--stone); margin-top: 7px; }
.platlist { margin-top: 18px; }
.platrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; }
.platrow .pname { width: 190px; font-weight: 600; }
.platrow .bar { height: 8px; background: var(--brass); border-radius: 2px; opacity: .82; }
.platrow .pn { color: var(--stone); font-variant-numeric: tabular-nums; }
.trust li { margin-bottom: 12px; color: var(--ink-soft); font-size: 15px; }
.trust b { color: var(--ink); }

/* ---- newsroom CTA ---- */
.cta { background: var(--ink); color: #EDE7D8; border-radius: 8px; padding: 46px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 0 0 8px; color: #F7F3EA; }
.cta p { margin: 0; color: #C7BFA9; max-width: 46ch; }

/* ---- coverage (slim scale line) ---- */
.coverage-line { max-width: 760px; }
.coverage-line .kicker { margin-bottom: 12px; }
.coverage-line .scale { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.6vw, 33px); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 14px; }
.coverage-line .scale-sub { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* ---- mission ---- */
.mission { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.35; letter-spacing: -.01em; max-width: 24ch; color: var(--ink); }
.mission { max-width: 30ch; }

/* ---- newsletter signup ---- */
.signup { display: flex; gap: 10px; flex: none; }
.signup input { font: inherit; font-size: 15px; padding: 12px 15px; border-radius: 4px; border: 1px solid #4a4433; background: #211c14; color: #F3EEE1; min-width: 240px; outline: none; }
.signup input::placeholder { color: #9a927e; }
.signup input:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(154,107,30,.3); }
.signup .btn { white-space: nowrap; }
.signup-note { margin: 12px 2px 0; font-size: 12.5px; }
.signup-done { color: #C7BFA9; font-size: 15px; max-width: 40ch; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--rule); padding: 40px 0 60px; margin-top: 30px; color: var(--stone); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer img { width: 150px; height: auto; opacity: .8; }
footer .cols { display: flex; gap: 60px; flex-wrap: wrap; }
footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 0 0 12px; }
footer a { display: block; color: var(--stone); margin-bottom: 8px; }
footer a:hover { color: var(--ink); }

/* keyboard focus visibility (accessibility) */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, .card:focus-visible, .mrow:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px;
}

@media (max-width: 860px) {
  .masthead .wrap { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px 24px; }
  .nav { margin-left: 0; flex-wrap: wrap; gap: 16px 20px; width: 100%; }
  .cov-grid { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 40px 0 20px; }
}
