/* ===================================================
   MauriceDriveCondo.Org — Governance Information Resource
   Shared Stylesheet — v2
   Register: civic reference document (statute / public record)
   Type: Source Serif 4 (display) + Public Sans (body/utility)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Public+Sans:wght@400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Palette */
  --navy: #1B2A4A;
  --navy-light: #243656;
  --navy-ink: #16223C;
  --gold: #A8862F;          /* deepened slightly for contrast on paper */
  --gold-light: #D4B35C;
  --white: #FFFFFF;
  --paper: #F7F5F0;         /* page background */
  --paper-shade: #EFECE4;   /* table stripes, quiet fills */
  --rule: #D8D4CA;          /* hairlines */
  --gray: #6B7280;
  --text: #26282C;
  --text-light: #52555C;

  /* Type — the only five sizes used on the site */
  --fs-xs: 0.8125rem;   /* tags, disclaimer, fine print */
  --fs-sm: 0.9375rem;   /* nav, captions, tables, callouts */
  --fs-base: 1.0625rem; /* body */
  --fs-lg: 1.375rem;    /* h2 */
  --fs-xl: clamp(1.75rem, 4.5vw, 2.5rem); /* hero h1, fluid */

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, sans-serif;

  /* Structure */
  --radius: 3px;
  --max-width: 960px;
  --measure: 70ch;      /* reading width for prose */
  --nav-height: 64px;
  --shadow: 0 1px 3px rgba(22, 34, 60, 0.10);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Accessible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gold);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-brand {
  font-family: var(--serif);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  border-bottom-color: rgba(212, 179, 92, 0.5);
}

.nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* --- Page Wrapper --- */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Hero / Page Header --- */
/* Flat navy band, set like a title page: serif heading,
   rule, then small-caps address as an imprint line. */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 20px 56px;
  text-align: center;
  border-bottom: 1px solid var(--gold);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.page-hero h1 span {
  color: var(--gold-light);
}

.page-hero .subtitle {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.page-hero .address {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 18px;
  padding-top: 14px;
  position: relative;
}

/* Short centered rule between title block and address imprint */
.page-hero .address::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: var(--gold);
}

/* --- Content Area --- */
.content {
  background: var(--white);
  padding: 44px 48px 48px;
  margin: 28px auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: var(--max-width);
}

.content h2 {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--navy);
  margin: 44px 0 14px;
  line-height: 1.25;
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

/* Short rule instead of a full-width underline on every heading */
.content h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy-light);
  margin: 28px 0 8px;
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.content h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 20px 0 6px;
}

.content p {
  margin: 12px 0;
  max-width: var(--measure);
  color: var(--text);
}

.content ul, .content ol {
  margin: 8px 0 16px 24px;
  max-width: var(--measure);
}

.content li {
  margin: 5px 0;
}

.content strong {
  color: var(--navy);
}

/* --- Tables --- */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: var(--fs-sm);
  border: 1px solid var(--rule);
}

.content thead th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.content tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.content tbody tr:nth-child(even) {
  background: var(--paper-shade);
}

/* --- Callout Box --- */
.callout {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  padding: 16px 20px;
  margin: 22px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
  max-width: var(--measure);
}

.callout.gold {
  border-left-color: var(--gold);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

/* --- Step Numbers --- */
.step-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
  max-width: var(--measure);
}

.step-list li {
  counter-increment: step;
  padding: 10px 0 10px 48px;
  position: relative;
  margin: 2px 0;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 9px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  line-height: 28px;
  font-family: var(--serif);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* --- Home Page Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--gold);
  border-top-color: var(--gold);
  background: #FDFCF9;
}

/* Emoji icons retired: the small-caps tag becomes the card's
   eyebrow instead. Delete the .card-icon divs from the HTML
   whenever convenient — this rule keeps things clean meanwhile. */
.card-icon {
  display: none;
}

.card .card-tag {
  order: -1;
  margin: 0 0 10px;
  font-size: var(--fs-xs);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card h3 {
  font-family: var(--serif);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.card p {
  font-size: var(--fs-sm);
  color: var(--text-light);
  margin: 0;
  flex-grow: 1;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 36px 20px;
  color: var(--gray);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  background: var(--white);
}

.site-footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-disclaimer {
  margin-top: 16px;
  font-size: var(--fs-xs);
  color: var(--gray);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: var(--fs-sm);
  color: var(--gray);
  padding: 14px 0 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}

/* --- Print Styles --- */
@media print {
  .site-nav, .site-footer, .breadcrumb {
    display: none;
  }
  body {
    background: var(--white);
  }
  .content {
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
  }
  .content p, .content ul, .content ol {
    max-width: none;
  }
  .page-hero {
    background: none;
    color: var(--text);
    padding: 20px 0;
    border-bottom: 2px solid var(--navy);
  }
  .page-hero h1 {
    color: var(--navy);
  }
  .page-hero .subtitle {
    color: var(--gold);
  }
  .page-hero .address {
    color: var(--gray);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    padding: 8px 20px 16px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .page-hero {
    padding: 44px 16px 40px;
  }

  .content {
    padding: 28px 20px;
    margin: 16px 0;
  }

  .content h2 {
    font-size: var(--fs-base);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: var(--fs-sm);
  }

  .nav-inner {
    padding: 8px 14px;
  }

  .page-hero {
    padding: 36px 14px 32px;
  }

  .content {
    padding: 24px 14px;
  }

  .content table {
    font-size: var(--fs-xs);
  }

  .content thead th,
  .content tbody td {
    padding: 8px 10px;
  }
}
/* --- Media card (non-clickable card containing video links) --- */
.content .card-media {
  border-top: 2px solid var(--gold);
}

.content .card-media:hover {
  border-color: var(--rule);
  border-top-color: var(--navy);
  background: var(--white);
  transform: none;
}

.content .card-media .media-links {
  font-size: var(--fs-xs);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}

.content .card-media .media-links li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.content .card-media .media-links li:last-child {
  border-bottom: none;
}

.content .card-media .media-links a {
  display: block;
  padding: 8px 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.content .card-media .media-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}