:root {
  --bg-obsidian: #090d16;
  --surface-pcb: #111827;
  --surface-alt: #0d1322;
  --border-trace: rgba(241, 245, 249, 0.13);
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --copper: #f59e0b;
  --text-white: #f1f5f9;
  --text-slate: #cbd5e1;
  --text-dim: #94a3b8;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald);
  color: var(--bg-obsidian);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* PCB Topbar */
.pcb-topbar {
  background: #05080f;
  border-bottom: 1px solid var(--border-trace);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.55rem 0;
  color: var(--text-slate);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--emerald);
  font-weight: 600;
}

.led-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.topbar-meta a {
  color: var(--copper);
  text-decoration: none;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-trace);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
  text-decoration: none;
  color: var(--text-white);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.pcb-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

.brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.brand-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--copper);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.95rem;
}

.nav-item {
  color: var(--text-slate);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--emerald);
}

.nav-item-parent {
  color: var(--copper);
  font-weight: 700;
}

.nav-item-parent:hover,
.nav-item-parent:focus-visible {
  color: var(--emerald-bright);
}

.nav-btn {
  background: var(--emerald);
  color: var(--bg-obsidian);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: var(--emerald-bright);
}

.burger-btn {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-trace);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-white);
  margin: 4px 0;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--border-trace);
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.09), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.silkscreen-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.14;
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-slate);
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-emerald {
  background: var(--emerald);
  color: var(--bg-obsidian);
}

.btn-emerald:hover,
.btn-emerald:focus-visible {
  background: var(--emerald-bright);
  transform: translateY(-1px);
}

.btn-copper {
  background: var(--surface-pcb);
  color: var(--text-white);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.btn-copper:hover,
.btn-copper:focus-visible {
  border-color: var(--copper);
  color: var(--copper);
}

.btn-block {
  width: 100%;
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-trace);
}

.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.spec-value {
  font-size: 0.92rem;
  color: var(--emerald);
}

/* Interactive Terminal Card */
.terminal-card {
  background: #070a12;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #111827;
  border-bottom: 1px solid var(--border-trace);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.amber { background: #f59e0b; }
.dot.green { background: #10b981; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(17, 24, 39, 0.65);
  border-bottom: 1px solid var(--border-trace);
}

.month-chip {
  background: transparent;
  border: 1px solid var(--border-trace);
  color: var(--text-slate);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
}

.month-chip.active,
.month-chip:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--emerald);
  color: var(--emerald);
}

.terminal-screen {
  padding: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

.term-cmd {
  color: var(--emerald);
  margin-bottom: 0.75rem;
}

.term-heading {
  color: var(--copper);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.term-block {
  margin-bottom: 0.75rem;
  color: var(--text-slate);
}

.term-block strong {
  color: var(--text-white);
}

/* Sections */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-trace);
}

.alt-surface {
  background: var(--surface-alt);
}

.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-slate);
  font-size: 1.02rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.time-card {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 10px;
  padding: 1.5rem;
}

.highlight-card {
  border-top: 3px solid var(--copper);
}

.highlight-emerald {
  border-top: 3px solid var(--emerald);
}

.time-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  margin-bottom: 0.6rem;
}

.time-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.time-card p {
  font-size: 0.9rem;
  color: var(--text-slate);
}

/* Schedule Rows */
.schedule-cards {
  display: grid;
  gap: 1rem;
}

.sched-row {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.sched-date {
  border-right: 1px solid var(--border-trace);
  padding-right: 1rem;
}

.sched-mo {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.sched-date strong {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--copper);
}

.sched-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.sched-body p {
  font-size: 0.92rem;
  color: var(--text-slate);
}

.sched-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  white-space: nowrap;
}

/* Kit Grid */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.kit-card {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 10px;
  padding: 1.75rem;
}

.kit-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  margin-bottom: 0.65rem;
}

.kit-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.kit-card p {
  font-size: 0.92rem;
  color: var(--text-slate);
}

/* Academic Layout */
.academic-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.check-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-slate);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

.roles-panel {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-left: 4px solid var(--emerald);
  border-radius: 10px;
  padding: 1.75rem;
}

.roles-panel h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1.15rem;
}

.role-item {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-trace);
}

.role-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--copper);
}

.role-item span {
  font-size: 0.92rem;
  color: var(--text-white);
}

/* RSVP Panel */
.rsvp-panel {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 12px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.rsvp-intro h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 0.85rem;
}

.rsvp-intro p {
  color: var(--text-slate);
}

.rsvp-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-trace);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--emerald);
  border-color: transparent;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rsvp-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--emerald);
}

/* Footer */
.site-footer {
  padding: 2.75rem 0;
  background: #05080f;
  font-size: 0.88rem;
  color: var(--text-slate);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-footer strong {
  color: var(--text-white);
}

.site-footer a {
  color: var(--emerald);
  text-decoration: none;
}

.footer-board-note {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-slate);
}

.footer-inquiries-label {
  margin-bottom: 0.35rem;
}

/* Conference Expeditions & Field Deployments */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.deploy-card {
  background: var(--surface-card);
  border: 1px solid var(--border-trace);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.deploy-card:hover {
  border-color: var(--emerald-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.deploy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.deploy-dates {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.05em;
}

.deploy-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.deploy-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.deploy-loc {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.deploy-desc {
  font-size: 0.92rem;
  color: var(--text-slate);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.deploy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-trace);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.deploy-role {
  color: var(--text-muted);
}

.deploy-link {
  color: var(--emerald-glow);
  text-decoration: none;
  font-weight: 700;
}

.deploy-link:hover {
  text-decoration: underline;
}

/* Interactive XYZ Resume Bullet Builder & 1-on-1 Clinic Intake */
.xyz-workbench {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  align-items: start;
}

.xyz-builder-col,
.xyz-intake-col {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 12px;
  padding: 2rem;
}

.xyz-builder-col {
  border-top: 3px solid var(--emerald);
}

.xyz-intake-col {
  border-top: 3px solid var(--copper);
}

.xyz-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.xyz-builder-header h3,
.xyz-intake-col h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-white);
}

.xyz-intake-desc {
  font-size: 0.9rem;
  color: var(--text-slate);
  margin: 0.5rem 0 1.25rem;
}

.xyz-fields {
  display: grid;
  gap: 1rem;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

.xyz-output-box {
  margin-top: 1.35rem;
  background: #060911;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 8px;
  padding: 1.25rem;
}

.xyz-output-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-trace);
}

.xyz-template-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--copper);
}

.xyz-char-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--emerald);
}

.xyz-generated-text {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-white);
  margin-bottom: 1rem;
  word-break: break-word;
}

.xyz-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .timeline-grid,
  .kit-grid,
  .deploy-grid,
  .academic-layout,
  .rsvp-panel,
  .xyz-workbench {
    grid-template-columns: 1fr;
  }

  .sched-row {
    grid-template-columns: 1fr;
  }

  .sched-date {
    border-right: none;
    border-bottom: 1px solid var(--border-trace);
    padding-bottom: 0.5rem;
  }

  .quick-specs,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .burger-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-pcb);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-trace);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-item,
  .nav-links .nav-btn {
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.9rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    min-height: 74px;
    height: auto;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .brand-main {
    white-space: normal;
    font-size: 1rem;
  }

  .brand-sub {
    white-space: normal;
    font-size: 0.62rem;
    line-height: 1.25;
  }
}

/* ==========================================================================
   Donation Funnel (#donate) — 0%-Fee Zeffy 501(c)(3) Lab & Student Fund
   ========================================================================== */
.donate-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--border-trace);
  border-bottom: 1px solid var(--border-trace);
}

.donate-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: start;
}

.donate-card {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-top: 3px solid var(--emerald);
  border-radius: 12px;
  padding: 2rem;
}

.donate-freq-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  background: #070a12;
  border: 1px solid var(--border-trace);
  border-radius: 8px;
  padding: 0.35rem;
  margin-bottom: 1.35rem;
}

.donate-freq-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-slate);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donate-freq-btn:hover,
.donate-freq-btn:focus-visible {
  color: var(--emerald-bright);
}

.donate-freq-btn.active {
  background: var(--emerald);
  color: var(--bg-obsidian);
}

.donate-tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.donate-tier-btn {
  appearance: none;
  background: #070a12;
  border: 1px solid var(--border-trace);
  border-radius: 8px;
  padding: 0.85rem 0.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.donate-tier-btn:hover,
.donate-tier-btn:focus-visible {
  border-color: var(--emerald);
}

.donate-tier-btn.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.donate-tier-amount {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
}

.donate-tier-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--copper);
  line-height: 1.2;
}

.donate-impact-box {
  background: #060911;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-left: 4px solid var(--emerald);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.35rem;
}

.donate-impact-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 0.35rem;
}

.donate-impact-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 0.25rem;
}

.donate-impact-copy {
  font-size: 0.9rem;
  color: var(--text-slate);
}

.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.donate-fee-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.donate-fee-note a {
  color: var(--copper);
}

.donate-embed-wrap {
  margin-top: 1.35rem;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.donate-embed-wrap[hidden] {
  display: none;
}

.donate-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #070a12;
  border-bottom: 1px solid var(--border-trace);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-bright);
}

.donate-embed-iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
  display: block;
}

.donate-assurance-card {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-top: 3px solid var(--copper);
  border-radius: 12px;
  padding: 2rem;
}

.donate-assurance-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.donate-check-list {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.donate-legal-box {
  background: #070a12;
  border: 1px solid var(--border-trace);
  border-radius: 8px;
  padding: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-slate);
  line-height: 1.6;
}

.donate-legal-box strong {
  color: var(--text-white);
}

.donate-legal-box a {
  color: var(--emerald-bright);
}

@media (max-width: 960px) {
  .donate-grid,
  .internships-grid {
    grid-template-columns: 1fr;
  }
}

/* Employer Internship Partner Program (#internships) */
.internships-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.intern-benefits {
  min-width: 0;
}

.intern-card {
  background: var(--surface-card);
  border: 1px solid var(--border-trace);
  border-top: 3px solid var(--copper);
  border-radius: 12px;
  padding: 1.75rem;
}

.intern-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.intern-intake-card {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-top: 3px solid var(--emerald);
  border-radius: 12px;
  padding: 1.75rem;
  min-width: 0;
}

.intern-intake-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.intern-intake-note {
  font-size: 0.88rem;
  color: var(--text-slate);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.intern-intake-note a {
  color: var(--emerald-bright);
  text-decoration: none;
}

.intern-intake-note a:hover {
  text-decoration: underline;
}

.intern-intake-card .field {
  min-width: 0;
}

.intern-intake-card .field input,
.intern-intake-card .field select,
.intern-intake-card .field textarea {
  min-width: 0;
}

.intern-status {
  margin-top: 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-slate);
}

.intern-status.is-error {
  color: #fca5a5;
  font-weight: 600;
}

.intern-status.is-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text-white);
}

.intern-status-link {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--emerald-bright);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .donate-tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .donate-tier-grid .donate-tier-btn:last-child {
    grid-column: span 2;
  }
}

/* Optional focus designation pill bar */
.donate-focus-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.donate-focus-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--copper);
}

.donate-fund-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.donate-fund-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border-trace);
  background: var(--surface-pcb);
  color: var(--text-slate);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.donate-fund-btn:hover,
.donate-fund-btn:focus-visible {
  border-color: var(--emerald-bright);
  color: var(--text-white);
  outline: none;
}

.donate-fund-btn.active {
  border-color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald-bright);
}

/* ===== "Who counts as a student" inclusivity note ===== */
.who-note {
  margin-top: 1.25rem;
  padding: 0.95rem 1.15rem;
  border-left: 4px solid var(--copper);
  border-radius: 0 6px 6px 0;
  background: rgba(245, 158, 11, 0.09);
  color: var(--text-slate);
  font-size: 0.95rem;
  line-height: 1.65;
}

.who-note strong {
  color: var(--text-white);
}

@media (max-width: 640px) {
  .who-note {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
  }
}

/* ===================== Intake embed (replaces mailto: forms) ===================== */
.intake-embed {
  margin-top: 1.25rem;
}

.intake-frame {
  display: block;
  width: 100%;
  min-height: 920px;
  border: 1px solid var(--border-trace);
  border-radius: 8px;
  background: #ffffff;
}

.intake-embed-compact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.intake-cta-note {
  margin: 0;
  color: var(--text-slate);
  font-size: 0.92rem;
  line-height: 1.6;
}

.intake-fallback,
.intake-fallback-note {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-trace);
  border-left: 4px solid var(--emerald);
  border-radius: 0 8px 8px 0;
  background: var(--surface-alt);
  color: var(--text-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

.intake-fallback p {
  margin: 0 0 0.4rem;
}

.intake-fallback-contacts {
  font-weight: 600;
  color: var(--text-white);
}

/* ===================== Quarterly newsletter band ===================== */
.newsletter-band {
  padding: 3rem 0;
  background: var(--surface-pcb);
  border-top: 1px solid var(--border-trace);
  border-bottom: 1px solid var(--border-trace);
}

.newsletter-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.newsletter-copy {
  flex: 1 1 28rem;
}

.newsletter-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--copper);
}

.newsletter-band h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.25;
  color: var(--text-white);
}

.newsletter-sub {
  margin: 0;
  max-width: 46rem;
  color: var(--text-slate);
  font-size: 0.95rem;
  line-height: 1.65;
}

.newsletter-action {
  flex: 0 0 auto;
}

.btn-newsletter {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 8px;
  background: var(--emerald);
  color: #04130c;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-newsletter:hover,
.btn-newsletter:focus-visible {
  background: var(--emerald-bright);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .newsletter-band { padding: 2.25rem 0; }
  .newsletter-inner { gap: 1.5rem; }
  .newsletter-action { width: 100%; }
  .btn-newsletter { display: block; text-align: center; }
  .intake-frame { min-height: 1100px; }
}

/* ===================== Direct Intake Link Row ===================== */
.intake-direct-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-trace);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-slate);
}

/* ===================== 404 Error Recovery Page ===================== */
.error-section {
  padding: 4.5rem 0 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.07), transparent 45%);
}

.error-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--surface-pcb);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 2.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.error-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.error-lead {
  font-size: 1.03rem;
  color: var(--text-slate);
  max-width: 66ch;
  margin-bottom: 1.75rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.error-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-trace);
}

.error-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-trace);
  border-radius: 8px;
  background: var(--surface-alt);
  text-decoration: none;
  color: var(--text-white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.error-link-card:hover,
.error-link-card:focus-visible {
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.error-link-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--copper);
}

.error-link-card strong {
  font-size: 1rem;
  color: var(--text-white);
}

.error-link-card span:last-child {
  font-size: 0.88rem;
  color: var(--text-slate);
  line-height: 1.5;
}

.error-contact {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.error-contact a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: none;
}

.error-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .error-card { padding: 1.75rem 1.25rem; }
  .error-links-grid { grid-template-columns: 1fr; }
}
