/* ============================================
   Wave & See Creative Sanctuary
   Governance Portal — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Cosmic palette */
  --void: #0a0a14;
  --deep-space: #0f0e1a;
  --nebula: #1a1530;
  --twilight: #2a2145;
  --amethyst: #6b4c9a;
  --violet-glow: #9b6dcc;
  --lavender: #c4a7e7;
  --starlight: #e8dff5;
  --pure-light: #f8f5ff;
  --gold-accent: #d4a853;
  --gold-muted: #b89444;
  --warm-white: #faf8f0;
  --sage: #7a9e7e;
  --sage-muted: #5a7e5e;
  --rose-soft: #d4738a;
  --pending-amber: #e8a84c;
  --pending-bg: rgba(232, 168, 76, 0.08);
  --ratified-green: #5cb85c;
  --ratified-bg: rgba(92, 184, 92, 0.08);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  /* Layout */
  --max-width: 900px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--deep-space);
  color: var(--starlight);
  line-height: 1.7;
  min-height: 100vh;
}

/* Cosmic background texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(107, 76, 154, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(155, 109, 204, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(42, 33, 69, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Links --- */
a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--gold-accent);
}

/* --- Site Header --- */
.site-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  border-bottom: 1px solid rgba(196, 167, 231, 0.1);
}

.site-kicker {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: var(--space-sm);
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--pure-light);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.site-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--lavender);
  opacity: 0.7;
  font-weight: 400;
}

/* --- Desktop Pill Nav --- */
.tab-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(196, 167, 231, 0.08);
  background: rgba(15, 14, 26, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: var(--space-sm) var(--space-md);
}

.tab-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--lavender);
  opacity: 0.55;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  opacity: 1;
  color: var(--pure-light);
  background: rgba(196, 167, 231, 0.06);
  border-color: rgba(196, 167, 231, 0.1);
}
.tab-btn.active {
  opacity: 1;
  color: var(--gold-accent);
  background: rgba(212, 168, 83, 0.08);
  border-color: rgba(212, 168, 83, 0.2);
  font-weight: 600;
}

.tab-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.tab-label {}

/* --- Mobile Nav Bar (sticky hamburger) --- */
.mobile-nav-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 26, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 167, 231, 0.08);
  padding: 12px var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-brand {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-accent);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: transparent;
  border: 1px solid rgba(196, 167, 231, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.mobile-nav-toggle:hover {
  border-color: rgba(196, 167, 231, 0.3);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--lavender);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-nav-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Drawer --- */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mobile-drawer.open {
  pointer-events: all;
}

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0);
  transition: background 0.3s ease;
}
.mobile-drawer.open .mobile-drawer-overlay {
  background: rgba(10, 10, 20, 0.7);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--nebula);
  border-left: 1px solid rgba(196, 167, 231, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid rgba(196, 167, 231, 0.06);
}

.mobile-drawer-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: 0.04em;
}

.mobile-drawer-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(196, 167, 231, 0.1);
  border-radius: var(--radius-sm);
  color: var(--lavender);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.mobile-drawer-close:hover {
  border-color: rgba(196, 167, 231, 0.3);
}

.mobile-drawer-links {
  list-style: none;
  padding: var(--space-md) 0;
  flex: 1;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--starlight);
  opacity: 0.7;
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}
.mobile-drawer-link:hover {
  opacity: 1;
  background: rgba(196, 167, 231, 0.04);
}
.mobile-drawer-link.active {
  opacity: 1;
  color: var(--gold-accent);
  background: rgba(212, 168, 83, 0.05);
  border-left-color: var(--gold-accent);
  font-weight: 600;
}
.mobile-drawer-link .tab-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.mobile-drawer-footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(196, 167, 231, 0.06);
}
.mobile-drawer-footer a {
  font-size: 0.82rem;
  color: var(--lavender);
  opacity: 0.4;
  text-decoration: none;
}
.mobile-drawer-footer a:hover {
  opacity: 0.7;
}

/* --- Main Content --- */
.main-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* --- Typography --- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--pure-light);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pure-light);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(196, 167, 231, 0.12);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lavender);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--starlight);
  opacity: 0.85;
}

.page-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--starlight);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

/* --- Callout Boxes --- */
.callout {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  border-left: 3px solid;
}

.callout-info {
  background: rgba(107, 76, 154, 0.08);
  border-color: var(--amethyst);
}
.callout-info p { color: var(--starlight); opacity: 0.85; }

.callout-warning {
  background: var(--pending-bg);
  border-color: var(--pending-amber);
}
.callout-warning p { color: var(--warm-white); opacity: 0.85; }

.callout-success {
  background: var(--ratified-bg);
  border-color: var(--ratified-green);
}
.callout-success p { color: var(--starlight); opacity: 0.85; }

.callout p:last-child { margin-bottom: 0; }

.callout strong {
  color: var(--pure-light);
}

/* --- Status Badges --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.status-pending {
  background: rgba(232, 168, 76, 0.12);
  color: var(--pending-amber);
  border: 1px solid rgba(232, 168, 76, 0.25);
}

.status-ratified {
  background: rgba(92, 184, 92, 0.12);
  color: var(--ratified-green);
  border: 1px solid rgba(92, 184, 92, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-pending .status-dot {
  background: var(--pending-amber);
  animation: pulse-dot 2s ease-in-out infinite;
}
.status-ratified .status-dot {
  background: var(--ratified-green);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Ratification Banner --- */
.ratification-banner {
  background: linear-gradient(135deg, rgba(232, 168, 76, 0.06), rgba(232, 168, 76, 0.02));
  border: 1px solid rgba(232, 168, 76, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.ratification-banner h3 {
  font-family: var(--font-display);
  color: var(--gold-accent);
  margin-top: 0;
  font-size: 1.3rem;
}

.ratification-banner p {
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 600px;
  margin: var(--space-sm) auto var(--space-md);
}

.ratification-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.progress-bar-wrap {
  flex: 0 1 300px;
  height: 6px;
  background: rgba(232, 168, 76, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-accent));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-accent);
  white-space: nowrap;
}

/* --- Board Member Cards --- */
.board-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.board-card {
  background: rgba(26, 21, 48, 0.5);
  border: 1px solid rgba(196, 167, 231, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.board-card:hover {
  border-color: rgba(196, 167, 231, 0.2);
  transform: translateY(-1px);
}

.board-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.board-card-identity {
  flex: 1;
  min-width: 200px;
}

.board-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pure-light);
  margin-bottom: 2px;
}

.board-role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.board-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--lavender);
  opacity: 0.7;
  margin-top: 2px;
}

.board-bio {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--starlight);
  opacity: 0.75;
  margin-bottom: var(--space-md);
}

.board-meta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(196, 167, 231, 0.06);
}

.board-meta-item {
  font-size: 0.78rem;
  color: var(--lavender);
  opacity: 0.6;
}
.board-meta-item strong {
  color: var(--starlight);
  font-weight: 500;
  opacity: 1;
}

/* Ratification action within card */
.ratify-action {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(232, 168, 76, 0.1);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.ratify-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--void);
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-muted));
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}
.ratify-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--void);
}
.ratify-btn:active { transform: translateY(0); }

.ratify-note {
  font-size: 0.78rem;
  color: var(--lavender);
  opacity: 0.5;
  font-style: italic;
}

/* --- Document List --- */
.doc-list {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(26, 21, 48, 0.35);
  border: 1px solid rgba(196, 167, 231, 0.06);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}
.doc-item:hover {
  border-color: rgba(196, 167, 231, 0.15);
}

.doc-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
}

.doc-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--pure-light);
}

.doc-meta {
  font-size: 0.78rem;
  color: var(--lavender);
  opacity: 0.5;
  margin-top: 2px;
}

.doc-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-accent);
  text-decoration: none;
  white-space: nowrap;
}
.doc-link:hover {
  color: var(--pure-light);
}

/* --- Policy Sections --- */
.policy-section {
  background: rgba(26, 21, 48, 0.35);
  border: 1px solid rgba(196, 167, 231, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.policy-section h3 {
  margin-top: 0;
  color: var(--pure-light);
}

.policy-meta {
  font-size: 0.78rem;
  color: var(--lavender);
  opacity: 0.5;
  margin-bottom: var(--space-md);
}

/* --- Meeting Timeline --- */
.meeting-list {
  list-style: none;
  border-left: 2px solid rgba(196, 167, 231, 0.1);
  padding-left: var(--space-xl);
  margin: var(--space-lg) 0;
}

.meeting-item {
  position: relative;
  margin-bottom: var(--space-xl);
}
.meeting-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 5px);
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amethyst);
  border: 2px solid var(--deep-space);
}
.meeting-item.upcoming::before {
  background: var(--gold-accent);
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.4);
}

.meeting-date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: var(--space-xs);
}

.meeting-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pure-light);
  margin-bottom: var(--space-xs);
}

.meeting-details {
  font-size: 0.85rem;
  color: var(--starlight);
  opacity: 0.65;
}

.meeting-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lavender);
}

/* --- Financial Info Cards --- */
.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.finance-card {
  background: rgba(26, 21, 48, 0.4);
  border: 1px solid rgba(196, 167, 231, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.finance-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lavender);
  opacity: 0.5;
  margin-bottom: var(--space-xs);
}

.finance-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pure-light);
  font-weight: 600;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lavender);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--pure-light);
  background: rgba(26, 21, 48, 0.5);
  border: 1px solid rgba(196, 167, 231, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.2s ease;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--amethyst);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--void);
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-muted));
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 28px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.form-submit:hover { opacity: 0.9; }

/* --- Ratification Modal --- */
.ratify-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.ratify-modal-overlay.active {
  display: flex;
}

.ratify-modal {
  background: var(--nebula);
  border: 1px solid rgba(196, 167, 231, 0.15);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: var(--space-xl);
}

.ratify-modal h3 {
  font-family: var(--font-display);
  color: var(--pure-light);
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.ratify-modal p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.ratify-modal .form-group {
  margin-bottom: var(--space-md);
}

.ratify-checkbox-label {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--starlight);
  opacity: 0.85;
  cursor: pointer;
  line-height: 1.5;
}
.ratify-checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.ratify-modal-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.btn-cancel {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--lavender);
  background: transparent;
  border: 1px solid rgba(196, 167, 231, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.btn-cancel:hover { border-color: rgba(196, 167, 231, 0.3); }

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid rgba(196, 167, 231, 0.06);
  margin-top: var(--space-2xl);
}

.footer-org {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--lavender);
  opacity: 0.5;
  margin-bottom: var(--space-xs);
}

.footer-legal {
  font-size: 0.72rem;
  color: var(--lavender);
  opacity: 0.3;
  line-height: 1.6;
}

.footer-nav {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.78rem;
  color: var(--lavender);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}
.footer-nav a:hover {
  opacity: 0.8;
  color: var(--gold-accent);
}

/* --- Responsive --- */

/* Tablet: wrap pills nicely */
@media (max-width: 860px) {
  .tab-nav-inner {
    gap: 4px;
  }
  .tab-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}

/* Mobile breakpoint */
@media (max-width: 640px) {
  /* Show mobile nav, hide desktop nav */
  .tab-nav {
    display: none;
  }
  .mobile-nav-bar {
    display: flex;
  }
  .mobile-drawer {
    display: block;
  }

  /* Larger base text on mobile */
  html {
    font-size: 17px;
  }

  body {
    line-height: 1.75;
  }

  .main-content {
    padding: var(--space-xl) var(--space-md);
  }

  /* Headers */
  h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }

  /* Body text bump */
  p, .board-bio, .page-intro {
    font-size: 1rem;
    line-height: 1.8;
  }
  .page-intro {
    font-size: 1.05rem;
  }

  /* Callouts */
  .callout {
    padding: var(--space-md);
    font-size: 0.95rem;
  }

  /* Cards */
  .board-card {
    padding: var(--space-lg);
  }
  .board-name {
    font-size: 1.25rem;
  }
  .board-role {
    font-size: 0.85rem;
  }
  .board-bio {
    font-size: 0.95rem;
  }

  /* Agreement cards */
  .agreement-card {
    padding: var(--space-lg);
  }
  .agreement-title {
    font-size: 1.2rem;
  }
  .agreement-card p {
    font-size: 0.95rem;
  }

  /* Policy sections */
  .policy-section {
    padding: var(--space-lg);
  }
  .policy-section p {
    font-size: 0.95rem;
  }

  /* Charter principles */
  .charter-principle p {
    font-size: 0.95rem;
  }

  /* Finance grid */
  .finance-grid {
    grid-template-columns: 1fr 1fr;
  }
  .finance-value {
    font-size: 1.1rem;
  }

  /* Doc list */
  .doc-title {
    font-size: 0.95rem;
  }
  .doc-meta {
    font-size: 0.82rem;
  }

  /* Ratification banner */
  .ratification-banner {
    padding: var(--space-md);
  }
  .ratification-banner h3 {
    font-size: 1.1rem;
  }

  /* Packet header */
  .packet-header {
    padding: var(--space-md) 0;
  }

  /* Status badges in h1 — stack on mobile */
  h1 .status-badge {
    display: block;
    margin-top: var(--space-sm);
    width: fit-content;
  }

  /* Anchor nav wrap better */
  .anchor-nav {
    gap: 6px;
  }
  .anchor-link {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  /* Meeting list */
  .meeting-title {
    font-size: 1.05rem;
  }
  .meeting-details {
    font-size: 0.9rem;
  }

  /* Form elements */
  .form-input, .form-textarea {
    font-size: 1rem;
    padding: 12px 14px;
  }
  .form-label {
    font-size: 0.88rem;
  }
  .ratify-checkbox-label {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  /* Footer */
  .site-footer {
    padding: var(--space-xl) var(--space-md);
  }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
}

/* --- Agreement Cards --- */
.agreement-card {
  background: rgba(26, 21, 48, 0.4);
  border: 1px solid rgba(196, 167, 231, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.agreement-card:hover {
  border-color: rgba(196, 167, 231, 0.15);
}

.agreement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.agreement-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pure-light);
}

.agreement-subtitle {
  font-size: 0.82rem;
  color: var(--lavender);
  opacity: 0.6;
  margin-top: 2px;
}

.version-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(107, 76, 154, 0.12);
  color: var(--lavender);
  border: 1px solid rgba(196, 167, 231, 0.15);
  white-space: nowrap;
}

.section-number {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-accent);
  margin-right: 6px;
}

.signature-block {
  background: rgba(26, 21, 48, 0.3);
  border: 1px dashed rgba(196, 167, 231, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--lavender);
  opacity: 0.5;
  text-align: center;
  font-style: italic;
}

.charter-principle {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(196, 167, 231, 0.06);
}
.charter-principle:last-child {
  border-bottom: none;
}

.charter-principle h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.packet-header {
  text-align: center;
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(196, 167, 231, 0.08);
}

.packet-header .packet-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.packet-header .packet-version {
  font-size: 0.78rem;
  color: var(--lavender);
  opacity: 0.5;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.anchor-link {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(107, 76, 154, 0.08);
  border: 1px solid rgba(196, 167, 231, 0.1);
  color: var(--lavender);
  text-decoration: none;
  transition: all 0.2s ease;
}
.anchor-link:hover {
  background: rgba(107, 76, 154, 0.15);
  border-color: rgba(196, 167, 231, 0.25);
  color: var(--pure-light);
}

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

.text-gold { color: var(--gold-accent); }
.text-muted { opacity: 0.5; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
