/* =====================================================================
   The Bourbs: Manteno Record section skin  (/manteno/)
   ---------------------------------------------------------------------
   Loaded AFTER each page's own <style> blocks, so it re-skins the
   original MantenoIllinois.com design system into The Bourbs look
   (Inter, Bourbs green, mint paper) without rewriting page markup.

   Colors that CARRY MEANING are deliberately left alone:
     --blue  = Village president / executive side
     --amber = trustees / board side
     --flag, --true/--false/--mixed/... = fact-check verdicts
     --law*  = statute and ordinance text boxes
   Source of truth for this file:
     _private/scripts/manteno_section/manteno.css
   (build_manteno_section.py copies it into /manteno/)
   ===================================================================== */

:root{
  --navy:#1e5c3a; --navy-2:#2d7a52;
  --paper:#f5faf7; --card:#ffffff; --bg:#f5faf7;
  --ink:#1a2e23; --body:#2c3d34; --muted:#5b7166; --line:#dfece4;
  --good:#2f6b4f; --green:#1e5c3a;
  --shadow:0 1px 2px rgba(30,92,58,.05),0 6px 20px rgba(30,92,58,.07);
  --serif:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --brand:#1e5c3a; --brand-dark:#164830; --brand-mid:#2d7a52;
  --brand-light:#e8f5ee; --brand-line:#c8e6d5;
}
/* The picture-book pages keep their storybook serif inside the book */
body.mi-book{
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
}

/* Sticky chrome: The Bourbs nav (.k3-nav, sticky top:0) + this section bar.
   manteno-nav.js measures them and sets:
     --k3h      height of The Bourbs nav
     --mi-stick total sticky chrome height (k3 nav + section bar on desktop)
     --mi-top   total chrome height at the top of the page                 */
html{scroll-padding-top:calc(var(--mi-stick,106px) + 14px)}
body.mi-page{background:var(--paper);color:var(--body);font-family:var(--sans);
  font-size:16px;line-height:1.66;-webkit-font-smoothing:antialiased}
body.mi-page [id]{scroll-margin-top:calc(var(--mi-stick,106px) + 14px)}
/* fact-check pages also pin a verdict filter bar under the chrome */
.mi-page .filters{top:var(--mi-stick,106px)!important}
body.mi-page:has(.filters) [id]{scroll-margin-top:calc(var(--mi-stick,106px) + 80px)}

.mi-page h1,.mi-page h2,.mi-page h3,.mi-page h4{letter-spacing:-.018em}
body.mi-page:not(.mi-book) h1,body.mi-page:not(.mi-book) h2,
body.mi-page:not(.mi-book) h3,body.mi-page:not(.mi-book) h4{font-family:var(--sans)}
.mi-page h1,.mi-page h2{font-weight:800}
.mi-page h3,.mi-page h4{font-weight:700}
body.mi-book h1,body.mi-book h2,body.mi-book h3,body.mi-book h4{letter-spacing:normal}

/* low specificity on purpose: beats each page's bare `a{}` rule (loaded
   earlier) but never a page's class-level link colors (.clink, .fbtn...) */
a{color:var(--brand)}
a:hover{color:var(--brand-dark)}
.eyebrow{color:var(--brand)}
.stat .n{font-weight:800;letter-spacing:-.02em}

/* ---- hero: Bourbs navy-to-green gradient ---- */
.mi-page .hero{background:linear-gradient(135deg,#1e3a5c 0%,#1e5c3a 58%,#2d7a52 100%);
  position:relative;overflow:hidden}
.mi-page .hero::before{content:"";position:absolute;top:-40%;right:-15%;width:55%;height:180%;
  background:radial-gradient(circle,rgba(255,255,255,.07) 0%,transparent 70%);pointer-events:none}
.mi-page .hero > *{position:relative;z-index:1}
.mi-page .hero h1{color:#fff;font-weight:900;letter-spacing:-.03em;line-height:1.1}
.mi-page .hero .kicker{color:#bfe8d0;font-weight:700;letter-spacing:.14em}
.mi-page .hero p,.mi-page .hero p.lead{color:rgba(255,255,255,.88)}
.mi-page .hero .meta{color:rgba(255,255,255,.74);border-top-color:rgba(255,255,255,.18)}
.mi-page .hero .meta b{color:#fff}
.mi-page .hero a{color:#d1fae5}
.mi-page .hero .pill{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.22);color:#fff}

/* ---- byline (reporter and editor) ---- */
.mi-byline{font-size:14.5px;font-weight:600;color:var(--muted);margin:-4px 0 16px}
.mi-page .hero .mi-byline{color:#d1fae5;opacity:.95}

/* ---- forms & buttons ---- */
.mi-page .ff-submit{background:var(--brand);border-radius:50px;font-weight:700;padding:11px 24px}
.mi-page .ff-submit:hover{background:var(--brand-dark)}
.mi-page .ff input:focus,.mi-page .ff select:focus,.mi-page .ff textarea:focus{border-color:var(--brand)}

/* =====================================================================
   Section bar (rendered by manteno-nav.js under The Bourbs #k3-nav)
   ===================================================================== */
.mi-bar{position:sticky;top:var(--k3h,53px);z-index:900;background:rgba(240,250,244,.97);
  -webkit-backdrop-filter:saturate(140%) blur(8px);backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--brand-line);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.3}
.mi-bar *{box-sizing:border-box}
.mi-bar-in{max-width:1200px;margin:0 auto;padding:0 16px;height:52px;display:flex;
  align-items:center;justify-content:space-between;gap:12px}
.mi-brand{display:flex;align-items:center;gap:9px;color:var(--ink)!important;text-decoration:none!important;flex-shrink:0}
.mi-mk{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,#1e3a5c,#1e5c3a);
  color:#fff;font-weight:900;font-size:15px;display:flex;align-items:center;justify-content:center;letter-spacing:0}
.mi-bt b{display:block;font-size:14.5px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.mi-bt small{display:block;font-size:9.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:1px}
.mi-nav{display:flex;align-items:center;gap:2px}
.mi-link,.mi-trig{font-family:inherit;font-size:13px;font-weight:700;color:#4a6358!important;padding:7px 12px;
  border-radius:50px;border:0;background:none;cursor:pointer;white-space:nowrap;
  text-decoration:none!important;display:inline-flex;align-items:center;gap:5px;line-height:1.2}
.mi-link:hover,.mi-trig:hover,.mi-group.open>.mi-trig{background:var(--brand-light);color:var(--brand)!important}
.mi-link.here,.mi-group.here>.mi-trig{background:var(--brand);color:#fff!important}
.mi-caret{font-size:9px;opacity:.75;transition:transform .15s}
.mi-group.open .mi-caret{transform:rotate(180deg)}
.mi-group{position:relative}
.mi-panel{display:none;position:absolute;top:calc(100% + 8px);left:0;min-width:260px;background:#fff;
  border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(20,46,32,.16);padding:6px;z-index:5}
.mi-group.open .mi-panel{display:block}
.mi-nav > .mi-group:last-of-type .mi-panel{left:auto;right:0}
.mi-panel a{display:block;padding:9px 12px;border-radius:8px;font-size:13.5px;font-weight:600;
  color:var(--ink)!important;text-decoration:none!important;white-space:nowrap}
.mi-panel a:hover{background:var(--brand-light);color:var(--brand)!important}
.mi-panel a.here{background:var(--brand-light);color:var(--brand)!important;font-weight:800}
.mi-menu{display:none;font-family:inherit;font-size:13px;font-weight:800;color:#fff;background:var(--brand);
  border:0;border-radius:50px;padding:8px 14px;cursor:pointer;align-items:center;gap:6px}
@media (max-width:900px){
  .mi-bar{position:relative;top:auto}   /* phones: only The Bourbs nav stays pinned */
  .mi-menu{display:inline-flex}
  .mi-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;
    border-bottom:1px solid var(--line);box-shadow:0 16px 30px rgba(20,46,32,.14);
    flex-direction:column;align-items:stretch;gap:2px;padding:8px 12px 14px;
    max-height:calc(100vh - 110px);overflow-y:auto}
  .mi-nav.open{display:flex}
  .mi-link,.mi-trig{border-radius:10px;padding:11px 12px;font-size:15px;width:100%;justify-content:space-between}
  .mi-panel{position:static;box-shadow:none;border:0;border-left:2px solid var(--brand-line);
    border-radius:0;margin:2px 0 6px 14px;padding:0 0 0 6px;min-width:0}
  .mi-panel a{white-space:normal;font-size:14.5px}
}
@media (max-width:400px){ .mi-bt small{display:none} }

/* Pages whose first screen is sized to the viewport (the picture book) */
#bookStage{height:calc(100dvh - var(--mi-top,106px))}
.landing{min-height:calc(100vh - var(--mi-top,106px))}

/* =====================================================================
   "About this record": the section's own notes, disclaimer and
   corrections policy, shown above The Bourbs site footer.
   ===================================================================== */
.mi-about{background:var(--paper);padding:34px 16px 40px;border-top:1px solid var(--line);
  font-size:14px;line-height:1.65;color:var(--muted);font-family:var(--sans)}
.mi-about > .wrap{max-width:1060px;margin:0 auto;background:#fff;border:1px solid var(--line);
  border-radius:14px;box-shadow:var(--shadow);padding:24px 26px}
.mi-about h4{font-family:var(--sans);font-size:15px;font-weight:800;color:var(--ink);margin:0 0 8px;letter-spacing:-.01em}
.mi-about p{margin:0 0 12px}
.mi-about a{color:var(--brand)!important;font-weight:600}
.mi-about b,.mi-about strong{color:var(--ink)}
.mi-about .cols{display:grid;grid-template-columns:2fr 1fr;gap:28px}
.mi-about .fine{font-size:12.5px;color:var(--muted);border-top:1px solid var(--line);margin-top:18px;padding-top:16px}
.mi-about .fine p:last-child{margin-bottom:0}
@media (max-width:720px){
  .mi-about > .wrap{padding:20px 18px}
  .mi-about .cols{grid-template-columns:1fr;gap:6px}
}
/* spot.html's old footer was a single flex row */
.mi-about > .wrap > span{display:block}
