/* ============================================================
   Rich Ginn, Standing Civic Site
   styles.css, single shared stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

/* Design tokens */
:root {
  --blue-deep:   #1f3a5f;
  --blue-mid:    #2a5080;
  --blue-light:  #e8eff7;
  --gold:        #b08d57;
  --gold-hover:  #8f6e3c;
  --text:        #1a1a1a;
  --text-mid:    #3a3a3a;
  --text-muted:  #555555;
  --bg:          #fdfdfd;
  --border:      #e0e0e0;
  --nav-height:  64px;
  --max-content: 700px;
  --max-wide:    980px;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

/* Skip link */
.skip-link {
  position: absolute; top: -999px; left: 1rem;
  background: var(--blue-deep); color: #fff;
  padding: 0.5rem 1rem; font-family: 'Inter', sans-serif;
  font-size: 0.875rem; border-radius: 0 0 4px 4px; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   SITE HEADER + NAV
   ============================================================ */
.site-header {
  background: var(--blue-deep);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.site-logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; flex-shrink: 0;
}
.site-logo img { height: 36px; width: auto; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.site-logo-name {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 0.98rem; color: #fff; letter-spacing: 0.01em;
}
.site-logo-title {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  color: rgba(255,255,255,0.68); font-weight: 400;
}

.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.82); text-decoration: none;
  padding: 0.4rem 0.65rem; border-radius: 4px;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12); color: #fff;
}
.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--gold);
}

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 0.4rem; color: #fff; flex-shrink: 0;
}
.nav-toggle svg { display: block; }

/* Mobile drawer */
.mobile-nav { display: none; background: var(--blue-deep); border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.86); text-decoration: none;
  padding: 0.85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.12s;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { background: rgba(255,255,255,0.1); color: #fff; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.hero-inner { max-width: var(--max-content); margin: 0 auto; }

.page-hero h1 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2; margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.page-hero .hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 400; color: rgba(255,255,255,0.8);
  margin-bottom: 0.3rem; line-height: 1.45;
}
.page-hero .hero-note {
  font-family: 'Inter', sans-serif; font-size: 0.87rem;
  color: rgba(255,255,255,0.58); margin-top: 0.75rem; font-style: italic;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main { padding: 3rem 1.25rem 4.5rem; }
.content-body { max-width: var(--max-content); margin: 0 auto; }

.content-body h2 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  color: var(--blue-deep);
  margin-top: 2.75rem; margin-bottom: 0.8rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--blue-light);
  line-height: 1.3;
}
.content-body h3 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 1.05rem; color: var(--blue-deep);
  margin-top: 2rem; margin-bottom: 0.55rem; line-height: 1.35;
}

.content-body p { margin-bottom: 1.1rem; color: var(--text-mid); }

.content-body ul,
.content-body ol { margin: 0.75rem 0 1.1rem 1.5rem; color: var(--text-mid); }
.content-body li { margin-bottom: 0.45rem; line-height: 1.65; }

/* Blockquotes - Variant A: Rich's own words
   Gold left border, italic, cream background, no label */
.content-body blockquote {
  border-left: 4px solid var(--gold);
  background: #faf8f4;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-mid);
  border-radius: 0 4px 4px 0;
}
.content-body blockquote p { margin-bottom: 0.6rem; }
.content-body blockquote p:last-child { margin-bottom: 0; }

/* Blockquotes - Variant B: Third-party voice (other trustees, petition text, etc.)
   Gray left border, no italic, neutral background, preceded by label.
   .petition-quote is kept as an alias for backward compatibility. */
.content-body blockquote.third-party-quote,
.content-body blockquote.petition-quote {
  border-left: 4px solid #888888;
  background: #f7f7f7;
  font-style: normal;
  color: var(--text-mid);
  border-radius: 0 4px 4px 0;
}
.content-body blockquote.third-party-quote p,
.content-body blockquote.petition-quote p { margin-bottom: 0.6rem; }
.content-body blockquote.third-party-quote p:last-child,
.content-body blockquote.petition-quote p:last-child { margin-bottom: 0; }

/* Third-party quote label */
.third-party-quote-label,
.petition-quote-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 0.3rem;
  margin-top: 1.5rem;
}

/* Tables */
.content-body table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  display: block; overflow-x: auto;
}
.content-body thead th {
  background: var(--blue-deep); color: #fff; font-weight: 600;
  padding: 0.7rem 0.85rem; text-align: left; letter-spacing: 0.01em;
}
.content-body tbody tr:nth-child(even) { background: var(--blue-light); }
.content-body tbody td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid); vertical-align: middle;
}
.content-body tbody tr:last-child td { border-bottom: none; }
.content-body strong { color: var(--text); font-weight: 600; }

/* Inline navigation link */
.section-link {
  display: inline-block; margin-top: 0.75rem;
  font-family: 'Inter', sans-serif; font-size: 0.87rem; font-weight: 600;
  color: var(--blue-mid); text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.section-link:hover { color: var(--gold-hover); border-color: var(--gold-hover); }

/* CTA box */
.cta-box {
  background: var(--blue-light);
  border: 1px solid #c3d5e9;
  border-left: 5px solid var(--blue-deep);
  padding: 1.2rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin-top: 2.5rem;
  font-family: 'Inter', sans-serif; font-size: 1rem;
  color: var(--blue-deep); line-height: 1.55;
}
.cta-box strong { font-weight: 700; }
.cta-box p { color: var(--blue-deep); margin-bottom: 0.5rem; }
.cta-box p:last-child { margin-bottom: 0; }

/* Horizontal rule */
hr.section-rule { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Petition ground label */
.ground-label {
  display: inline-block;
  font-family: 'Inter', sans-serif; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.2rem;
}

/* ============================================================
   KEY FACTS TIMELINE
   ============================================================ */
.key-facts {
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-deep);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-family: 'Inter', sans-serif;
}
.key-facts-heading {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 0.85rem;
}
.key-facts ul { margin: 0; padding: 0; list-style: none; }
.key-facts li {
  font-size: 0.9rem; color: var(--text-mid);
  padding: 0.45rem 0; border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.key-facts li:last-child { border-bottom: none; padding-bottom: 0; }
.fact-date { font-weight: 600; color: var(--blue-deep); }

/* Press statement */
.press-statement {
  background: #fefefe;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-family: 'Inter', sans-serif;
}
.press-statement-label {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.65rem;
}
.press-statement p {
  font-size: 0.93rem; line-height: 1.7;
  color: var(--text-mid); margin: 0;
}

/* ============================================================
   QUICK SUMMARY
   ============================================================ */
.quick-summary {
  background: #f0f5fa;
  border: 1px solid #c3d5e9;
  border-left: 5px solid var(--blue-deep);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-family: 'Inter', sans-serif;
}
.quick-summary h2 {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-deep);
  margin-top: 0; margin-bottom: 0.7rem;
  padding-bottom: 0; border-bottom: none;
}
.quick-summary p {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text-mid); margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   ENROLLMENT CHART
   ============================================================ */
.chart-wrap {
  margin: 1.75rem 0;
  background: #f7f9fc; border: 1px solid var(--border);
  border-radius: 6px; padding: 1.25rem 0.75rem 0.75rem;
}
.chart-wrap svg { width: 100%; max-width: 620px; display: block; margin: 0 auto; }
.chart-wrap figcaption {
  font-family: 'Inter', sans-serif; font-size: 0.79rem;
  color: var(--text-muted); margin-top: 0.65rem;
  text-align: center; font-style: italic;
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: 6px; margin: 1.5rem 0 0.5rem;
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.video-fallback {
  font-family: 'Inter', sans-serif; font-size: 0.84rem;
  color: var(--text-muted); margin-bottom: 1.5rem;
}

/* ============================================================
   ABOUT PAGE PORTRAIT
   ============================================================ */
.about-portrait {
  float: right;
  margin: 0 0 1.5rem 2rem;
  width: 280px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
@media (max-width: 560px) {
  .about-portrait {
    float: none; width: 100%; max-width: 280px;
    margin: 0 auto 1.75rem;
    display: block;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue-deep); color: rgba(255,255,255,0.72);
  padding: 2.5rem 1.25rem 2rem;
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--max-wide); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem; align-items: start;
}
.footer-cta { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.35rem; }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 0.79rem; margin-top: 0.3rem; }
.footer-links { text-align: right; }
.footer-links a {
  color: rgba(255,255,255,0.68); text-decoration: none;
  display: block; margin-bottom: 0.3rem; transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

/* ============================================================
   STAND CARDS (Where I Stand index)
   ============================================================ */
.stand-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.stand-card {
  display: block;
  background: #fefefe;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.stand-card:hover {
  border-color: var(--gold);
  background: #faf8f4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  color: inherit;
}
.stand-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.stand-card-summary {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
