*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:         #1b3a6b;
  --navy-dark:    #112248;
  --navy-mid:     #2453a0;
  --navy-pale:    #eef2f9;
  --bg:           #f7f6f2;
  --surface:      #ffffff;
  --green:        #3b7a51;
  --green-pale:   #eef5f0;
  --earth:        #7a5c30;
  --earth-pale:   #f6f0e6;
  --text:         #1c1c1c;
  --text-muted:   #545454;
  --text-light:   #888;
  --border:       #d5d0c6;
  --border-light: #eae6df;
  --radius:       8px;
  --max-w:        1060px;
  --header-h:     64px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--navy-mid); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--navy-dark); }

/* ─── SITE HEADER ──────────────────────────────── */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  line-height: 1.2;
}

.logo-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.logo-sub   { font-size: 0.68rem; opacity: 0.65; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  padding: 13px 11px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-toggle:hover { background: rgba(255,255,255,0.18); }
.nav-toggle span  { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* mobile nav — hidden by default */
.site-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 199;
  padding: 4px 0 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.site-nav.nav-open { display: block; }

.site-nav ul  { list-style: none; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.site-nav li  { border-bottom: 1px solid rgba(255,255,255,0.07); }
.site-nav li:last-child { border-bottom: none; }

.site-nav a {
  display: block;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 15px 6px;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active { color: #fff; }
.site-nav a.active { font-weight: 700; }

/* desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    padding: 0;
    z-index: auto;
    box-shadow: none;
  }

  .site-nav ul { display: flex; align-items: center; gap: 2px; padding: 0; max-width: none; }
  .site-nav li { border: none; }

  .site-nav a {
    padding: 8px 11px;
    font-size: 0.88rem;
    border-radius: 6px;
    white-space: nowrap;
  }

  .site-nav a:hover  { background: rgba(255,255,255,0.12); }
  .site-nav a.active { background: rgba(255,255,255,0.18); }

  /* Ag Weather pill — visually distinct from governance nav */
  .site-nav li.nav-weather { margin-left: 8px; }
  .site-nav li.nav-weather a {
    background: var(--green);
    color: #fff !important;
    font-weight: 600;
    border-radius: 20px;
    padding: 6px 14px;
  }
  .site-nav li.nav-weather a:hover {
    background: #2f6641;
  }
  .site-nav li.nav-weather a.active {
    background: #2f6641;
  }
}

/* ─── HOME HERO ────────────────────────────────── */
.home-hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 64px 20px 60px;
  text-align: center;
  border-bottom: 3px solid var(--green);
}

.home-hero h1 {
  font-size: clamp(1.65rem, 5vw, 2.8rem);
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.home-hero .est {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  margin-bottom: 18px;
}

.home-hero .tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.76);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-stats {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stat {
  padding: 14px 30px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.hero-stat:last-child { border-right: none; }

.hero-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  margin-bottom: 4px;
}

.hero-stat-value { font-size: 1.3rem; font-weight: 700; color: #fff; }

/* ─── PAGE HERO (inner pages) ──────────────────── */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 44px 20px 38px;
  border-bottom: 3px solid var(--green);
}

.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }

.page-hero h1 { font-size: clamp(1.4rem, 4vw, 2.1rem); color: #fff; margin-bottom: 8px; }
.page-hero p  { font-size: 0.97rem; color: rgba(255,255,255,0.68); max-width: 580px; }

/* ─── PAGE HERO WITH SUBSCRIBE WIDGET ──────────── */
.page-hero-inner--subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-subscribe { flex-shrink: 0; width: 300px; }

.hero-subscribe-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  display: block;
}

.hero-subscribe form { display: flex; gap: 8px; }

.hero-subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}

.hero-subscribe input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }

.hero-subscribe input[type="email"]:focus {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 1px;
}

.hero-subscribe button[type="submit"] {
  padding: 9px 16px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.hero-subscribe button[type="submit"]:hover { background: #3a6040; }
.hero-subscribe button[type="submit"]:disabled { opacity: 0.7; cursor: default; }

.hero-subscribe .subscribe-widget-msg {
  font-size: 0.8rem;
  min-height: 16px;
  margin-top: 6px;
}

/* ─── MAIN LAYOUT ──────────────────────────────── */
.main-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 20px 88px;
}

section + section {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border-light);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-heading { font-size: 1.5rem; color: var(--navy-dark); margin-bottom: 20px; }

.prose p { color: var(--text-muted); max-width: 680px; }
.prose p + p { margin-top: 14px; }

/* ─── CARDS ────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card.vacant { background: var(--bg); border-style: dashed; }
.card.vacant .card-title { color: var(--text-light); font-style: italic; }

.card-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; }
.card-title { font-size: 1.08rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; }
.card-body  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ─── TABLES ────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th {
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--navy-pale); }

.data-table td.amt        { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.data-table td.label-col  { font-weight: 600; color: var(--text-muted); }

.data-table tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--border);
  background: var(--navy-pale);
  color: var(--navy-dark);
}

/* ─── NOTICE / CALLOUT ──────────────────────────── */
.notice {
  background: var(--navy-pale);
  border: 1px solid rgba(27,58,107,0.14);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.notice.green {
  background: var(--green-pale);
  border-color: rgba(59,122,81,0.14);
  border-left-color: var(--green);
}

.notice.earth {
  background: var(--earth-pale);
  border-color: rgba(122,92,48,0.14);
  border-left-color: var(--earth);
}

.notice + .notice { margin-top: 12px; }
.notice strong { color: var(--text); }

/* ─── BADGES ────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-navy    { background: var(--navy-pale);  color: var(--navy);  border: 1px solid rgba(27,58,107,0.2); }
.badge-green   { background: var(--green-pale); color: var(--green); border: 1px solid rgba(59,122,81,0.25); }
.badge-earth   { background: var(--earth-pale); color: var(--earth); border: 1px solid rgba(122,92,48,0.2); }
.badge-pending { background: #fff8ec; color: #7a6010; border: 1px solid rgba(122,96,16,0.2); }

/* ─── TIMELINE ──────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -26px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--navy);
}

.timeline-date {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.timeline-title { font-size: 1.01rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.timeline-body  { font-size: 0.93rem; color: var(--text-muted); line-height: 1.72; max-width: 680px; }

/* ─── CHECK / ALERT LISTS ───────────────────────── */
.icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.icon-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.icon-list li .icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.icon-list.alert li .icon { background: var(--earth-pale); color: var(--earth); }
.icon-list.check li .icon { background: var(--green-pale); color: var(--green); }

.icon-list li .item-body { font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; }
.icon-list li .item-body strong { color: var(--text); display: block; margin-bottom: 3px; }

/* ─── SITE FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.62);
  padding: 48px 20px;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.9;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-name  { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-rule  { width: 36px; height: 1px; background: rgba(255,255,255,0.18); margin: 20px auto; }
.site-footer a { color: rgba(255,255,255,0.52); }
.site-footer a:hover { color: #fff; }

/* ─── COMMISSIONER NOTE ─────────────────────────── */
.commissioner-note {
  background: #f5efe3;
  border: 1px solid rgba(122,92,48,0.18);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.note-body {
  font-size: 1.02rem;
  color: #4a4438;
  line-height: 1.85;
  max-width: 700px;
}

.note-body p + p { margin-top: 18px; }

.note-signature {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(122,92,48,0.2);
  color: #5a5040;
  line-height: 1.9;
  font-size: 0.97rem;
}

.note-signature .sig-name {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy-dark);
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .commissioner-note { padding: 24px 20px; }
}

/* ─── CONTENT + SIDEBAR LAYOUT ─────────────────── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.subscribe-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.subscribe-widget .section-label { margin-bottom: 6px; }

.subscribe-widget h3 {
  font-size: 1.02rem;
  color: var(--navy-dark);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.subscribe-widget p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.subscribe-widget input[type="email"] {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--bg);
  margin-bottom: 8px;
  color: var(--text);
}

.subscribe-widget input[type="email"]:focus {
  outline: 2px solid var(--navy-mid);
  outline-offset: 1px;
}

.subscribe-widget button[type="submit"] {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: #2c4a2e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.subscribe-widget button[type="submit"]:hover { background: #3a6040; }
.subscribe-widget button[type="submit"]:disabled { opacity: 0.7; cursor: default; }

.subscribe-widget-msg {
  margin-top: 8px;
  font-size: 0.82rem;
  min-height: 18px;
  line-height: 1.4;
}

/* subscribe teaser link on home page */
.subscribe-teaser {
  font-size: 0.97rem;
  color: var(--text-muted);
}

.subscribe-teaser a {
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--navy-mid);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.subscribe-teaser a:hover { color: var(--navy-mid); border-color: transparent; }

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar {
    position: static;
    margin-top: 52px;
    padding-top: 52px;
    border-top: 1px solid var(--border-light);
  }
}

@media (max-width: 640px) {
  .main-wrap  { padding: 36px 16px 64px; }
  .home-hero  { padding: 48px 16px 44px; }
  .page-hero  { padding: 36px 16px 30px; }
  .card-grid  { grid-template-columns: 1fr; }
  section + section { margin-top: 44px; padding-top: 44px; }

  .hero-stats { flex-direction: column; width: 100%; max-width: 220px; }
  .hero-stat  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero-stat:last-child { border-bottom: none; }

  .page-hero-inner--subscribe { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-subscribe { width: 100%; }
}
