/* ============================================================
   Partisan Prohibition Historical Society — Shared Theme
   ============================================================ */

:root {
  --navy:    #1a2744;
  --gold:    #c8a951;
  --gold-lt: #e8d49a;
  --cream:   #f7f4ef;
  --white:   #ffffff;
  --text:    #2c2c2c;
  --muted:   #6b6b6b;
  --border:  #ddd6c8;
  --red:     #8b1a1a;
  --shadow:  0 2px 12px rgba(26,39,68,.10);
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--cream);
  margin: 0;
  padding: 0;
}

/* ── TYPOGRAPHY OVERRIDES ────────────────────────────── */
body, td, th, p, li, div {
  font-family: 'Inter', Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--navy);
  line-height: 1.3;
  margin-top: 1.25em;
  margin-bottom: .5em;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }

p { margin-bottom: .9rem; color: var(--text); }

a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--red); }
a:visited { color: #4a2060; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .25rem; }

blockquote {
  border-left: 4px solid var(--gold);
  padding: .75rem 1.25rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--navy);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

img { max-width: 100%; height: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

td, th {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  vertical-align: top;
  font-size: .9rem;
}

th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

tr:nth-child(even) { background: rgba(247,244,239,.6); }

/* ── SITE HEADER ─────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.site-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold) !important;
  text-decoration: none !important;
  line-height: 1.3;
}

.site-title span {
  display: block;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: .65rem;
  font-weight: 400;
  color: var(--gold-lt) !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(200,169,81,.4);
  color: var(--gold);
  font-size: 1.2rem;
  padding: .3rem .65rem;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
}

/* Horizontal nav strip below the header bar */
.site-nav {
  background: #142038;
  border-top: 1px solid rgba(200,169,81,.2);
}

.site-nav ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0 !important;
}

.site-nav ul li a {
  display: block;
  padding: .55rem .85rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gold-lt) !important;
  text-decoration: none !important;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.site-nav ul li a:hover {
  background: rgba(200,169,81,.15);
  color: var(--white) !important;
}

/* ── PAGE CONTENT WRAPPER ────────────────────────────── */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.inner-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}

/* Legacy alignment overrides */
.inner-content table { display: table; }
.inner-content td, .inner-content th { display: table-cell; }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: .8rem;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem .7rem;
  margin-bottom: .75rem;
}

.footer-links a {
  color: var(--gold-lt) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color .15s;
}

.footer-links a:hover { color: var(--white) !important; }
.footer-sep { color: rgba(255,255,255,.25); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: .5rem 0;
  }

  .site-nav ul li a {
    padding: .65rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .inner-content {
    padding: 1.25rem;
  }

  .page-content {
    padding: 1rem .75rem 2rem;
  }

  table {
    font-size: .8rem;
  }
}
