/* ============================================================
   Michigan Department of Treasury — shared.css
   Design tokens + shared layout used across every page.
   A distinct identity from MDOT: ledger/seal motifs instead of
   highway signage, deep navy + brass gold instead of blue/green,
   serif display type instead of condensed highway gothic.
   ============================================================ */

:root {
  --navy: #14213d;
  --navy-dark: #0c1526;
  --gold: #b8912f;
  --gold-light: #d9b566;
  --forest: #2f4a3c;
  --paper: #f8f4ea;
  --paper-dim: #efe9d8;
  --ledger-line: #ddd3ba;
  --ink: #221d16;
  --ink-soft: #5a5240;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

/* ---------- Disclaimer bar ---------- */
.disclaimer-bar {
  background: var(--navy-dark);
  color: #b9c0cc;
  font-size: 0.78rem;
}
.disclaimer-bar .inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 24px;
  text-align: center;
  line-height: 1.4;
}
.disclaimer-bar strong { color: #fff; }

/* ---------- Header ---------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--ledger-line);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text .state {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.brand-text .dept {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

nav.site-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}
nav.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
}
nav.site-nav a:hover { border-bottom-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 2px;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
}
.section-head span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
footer.site-footer {
  margin-top: 70px;
  background: var(--navy-dark);
  color: #a9b1bf;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 24px 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand .brand-seal { width: 38px; height: 38px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
}
.footer-inner p { font-size: 0.82rem; line-height: 1.55; max-width: 32ch; }
footer h5 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  color: var(--gold-light);
  margin-bottom: 12px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { text-decoration: none; color: #a9b1bf; font-size: 0.86rem; }
footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.76rem;
  padding: 16px 24px;
  color: #7c8493;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  nav.site-nav ul { gap: 0; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
}
