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

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:       #080c18;
  --bg-alt:   #0c1224;
  --bg-card:  #111827;
  --gold:     #f0c040;
  --cyan:     #48d9e8;
  --purple:   #c08af0;
  --green:    #60d090;
  --text:     #dde6f0;
  --muted:    #7a8fa5;
  --border:   #1e2d42;
  --nav-h:    60px;
  --r:        8px;
  --max:      1100px;
  --gap:      1.5rem;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
}
/* Subtle background star field */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at  7%  12%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 21%  38%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 34%   8%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 47%  55%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 58%  22%, rgba(255,255,255,0.16) 0%, transparent 100%),
    radial-gradient(1px 1px at 63%  78%, rgba(255,255,255,0.11) 0%, transparent 100%),
    radial-gradient(1px 1px at 72%  44%, rgba(255,255,255,0.14) 0%, transparent 100%),
    radial-gradient(1px 1px at 81%   6%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 89%  67%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 93%  31%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 14%  72%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 29%  91%, rgba(255,255,255,0.13) 0%, transparent 100%),
    radial-gradient(1px 1px at 41%  47%, rgba(255,255,255,0.09) 0%, transparent 100%),
    radial-gradient(1px 1px at 54%  84%, rgba(255,255,255,0.14) 0%, transparent 100%),
    radial-gradient(1px 1px at 77%  18%, rgba(255,255,255,0.11) 0%, transparent 100%),
    radial-gradient(1px 1px at  3%  58%, rgba(255,255,255,0.16) 0%, transparent 100%),
    radial-gradient(1px 1px at 96%  49%, rgba(255,255,255,0.10) 0%, transparent 100%),
    radial-gradient(1px 1px at 38%  29%, rgba(255,255,255,0.13) 0%, transparent 100%),
    radial-gradient(1px 1px at 68%  93%, rgba(255,255,255,0.09) 0%, transparent 100%),
    radial-gradient(1px 1px at 85%  82%, rgba(255,255,255,0.15) 0%, transparent 100%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; }
p + p { margin-top: 0.85rem; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8, 12, 24, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
}
.nav-brand svg { flex-shrink: 0; }
.nav-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(240,192,64,0.35);
}
.nav-links {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(240, 192, 64, 0.12);
  color: var(--gold);
  text-decoration: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    gap: 0.15rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 1rem; font-size: 0.95rem; }
}

/* ===== PAGE BODY (offset for fixed nav) ===== */
.page-body { padding-top: var(--nav-h); }

/* ===== SECTIONS ===== */
.section { padding: 4rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: var(--max); margin: 0 auto; }
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

/* ===== HERO ===== */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(72,217,232,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(240,192,64,0.07) 0%, transparent 70%),
    radial-gradient(ellipse at center, #0d1428 0%, #080c18 100%);
  position: relative;
  overflow: hidden;
}
/* CSS star field via radial-gradient dots */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1px at  8% 12%, rgba(255,255,255,.75) 0%, transparent 100%),
    radial-gradient(circle 1px at 23%  8%, rgba(255,255,255,.50) 0%, transparent 100%),
    radial-gradient(circle 2px at 40% 18%, rgba(255,255,255,.60) 0%, transparent 100%),
    radial-gradient(circle 1px at 62%  5%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(circle 1px at 78% 22%, rgba(255,255,255,.65) 0%, transparent 100%),
    radial-gradient(circle 1px at 91%  9%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(circle 1px at  5% 38%, rgba(255,255,255,.50) 0%, transparent 100%),
    radial-gradient(circle 1px at 18% 55%, rgba(255,255,255,.40) 0%, transparent 100%),
    radial-gradient(circle 2px at 33% 42%, rgba(240,192,64,.55)  0%, transparent 100%),
    radial-gradient(circle 1px at 50% 30%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(circle 1px at 67% 48%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(circle 2px at 83% 35%, rgba(72,217,232,.45)  0%, transparent 100%),
    radial-gradient(circle 1px at 95% 42%, rgba(255,255,255,.60) 0%, transparent 100%),
    radial-gradient(circle 1px at 12% 72%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(circle 1px at 28% 80%, rgba(255,255,255,.50) 0%, transparent 100%),
    radial-gradient(circle 2px at 47% 68%, rgba(255,255,255,.65) 0%, transparent 100%),
    radial-gradient(circle 1px at 58% 85%, rgba(255,255,255,.40) 0%, transparent 100%),
    radial-gradient(circle 1px at 74% 75%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(circle 1px at 88% 62%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(circle 1px at  3% 90%, rgba(255,255,255,.60) 0%, transparent 100%),
    radial-gradient(circle 2px at 96% 88%, rgba(255,255,255,.70) 0%, transparent 100%),
    radial-gradient(circle 1px at 52% 95%, rgba(255,255,255,.40) 0%, transparent 100%),
    radial-gradient(circle 1px at 35% 96%, rgba(255,255,255,.50) 0%, transparent 100%),
    radial-gradient(circle 1px at 15% 25%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(circle 1px at 55% 58%, rgba(255,255,255,.30) 0%, transparent 100%),
    radial-gradient(circle 2px at 70% 92%, rgba(192,138,240,.45) 0%, transparent 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(72,217,232,0.12);
  border: 1px solid rgba(72,217,232,0.3);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 60px rgba(240,192,64,0.25);
}
.hero-desc {
  color: var(--text);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #080c18; }
.btn-primary:hover { background: #ffd04a; color: #080c18; }
.btn-outline { border: 1.5px solid var(--cyan); color: var(--cyan); background: transparent; }
.btn-outline:hover { background: rgba(72,217,232,0.1); color: var(--cyan); }

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.card-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.card-body { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.card-footer { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.card-footer strong { color: var(--text); }

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.badge-meeting    { background: rgba(240,192,64,0.15);  color: var(--gold);   border: 1px solid rgba(240,192,64,0.3); }
.badge-starparty  { background: rgba(72,217,232,0.12);  color: var(--cyan);   border: 1px solid rgba(72,217,232,0.3); }
.badge-virtual    { background: rgba(192,138,240,0.12); color: var(--purple); border: 1px solid rgba(192,138,240,0.3); }
.badge-outreach   { background: rgba(96,208,144,0.12);  color: var(--green);  border: 1px solid rgba(96,208,144,0.3); }

.badge-filter {
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, transform .1s;
  user-select: none;
}
.badge-filter:hover  { opacity: .85; }
.badge-filter.active { opacity: 1; }
.badge-filter:not(.active) {
  opacity: .35;
  filter: grayscale(.6);
}

/* ===== CELESTIAL EVENTS TABLE ===== */
.responsive-table { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.data-table thead th {
  background: var(--bg-card);
  color: var(--gold);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.025); }
.data-table td { padding: 0.7rem 1rem; vertical-align: top; }
.col-date { color: var(--gold); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.col-time { color: var(--cyan); font-size: 0.85rem; white-space: nowrap; font-weight: 600; }
.col-desc { color: var(--text); }

/* ===== SCHEDULE TABLE ===== */
.sched-month {
  background: linear-gradient(135deg, rgba(240,192,64,0.08), rgba(240,192,64,0.04));
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  letter-spacing: 0.02em;
}
.sched-table { width: 100%; border-collapse: collapse; }
.sched-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.sched-table td { padding: 1rem; vertical-align: top; border-bottom: 1px solid rgba(30,45,66,0.5); }
.sched-table tr:hover td { background: rgba(255,255,255,0.018); }
.sched-date-cell { width: 60px; color: var(--gold); font-size: 1.6rem; font-weight: 800; line-height: 1; padding-top: 1.1rem; }
.sched-time { color: var(--cyan); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.sched-event { font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.sched-info { color: var(--muted); font-size: 0.875rem; }
.sched-loc strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 0.1rem; }
.sched-loc span { color: var(--muted); font-size: 0.85rem; }

/* ===== CONSTELLATION ===== */
.const-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.const-wrap img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.const-info h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 0.75rem; }
.const-info p { color: var(--text); font-size: 0.95rem; }
@media (max-width: 640px) { .const-wrap { grid-template-columns: 1fr; } }

/* ===== ARTICLE CARDS ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none !important;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: var(--text);
}
.article-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  color: var(--text);
}
.article-icon { font-size: 1.4rem; margin-bottom: 0.25rem; }
.article-title { font-weight: 700; font-size: 0.98rem; color: var(--text); }
.article-desc { color: var(--muted); font-size: 0.85rem; flex: 1; line-height: 1.4; }
.article-cta { color: var(--cyan); font-size: 0.82rem; font-weight: 600; margin-top: 0.25rem; }

/* ===== LINKS PAGE ===== */
.link-category { margin-bottom: 2.5rem; }
.link-category h3 {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.link-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.link-list li { display: grid; grid-template-columns: 1fr; gap: 0.1rem; }
.link-list a { font-weight: 600; font-size: 0.95rem; }
.link-desc { color: var(--muted); font-size: 0.85rem; }

/* ===== MEMBERSHIP ===== */
.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.benefits-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.benefits-list li::before { content: '★'; color: var(--gold); flex-shrink: 0; margin-top: 0.05rem; }
.dues-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 480px;
}
.dues-card-header {
  background: linear-gradient(135deg, rgba(240,192,64,0.12), rgba(240,192,64,0.06));
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.dues-card-header h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.25rem; }
.dues-card-header p { color: var(--muted); font-size: 0.9rem; }
.dues-card-body { padding: 1.5rem; }

/* ===== INFO BOXES ===== */
.info-box {
  background: rgba(72,217,232,0.05);
  border: 1px solid rgba(72,217,232,0.2);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.info-box strong { color: var(--cyan); }

/* ===== TWO-COL LAYOUT ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner { max-width: var(--max); margin: auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }
.footer-name { color: var(--gold); font-weight: 800; font-size: 1.05rem; margin-bottom: 0.4rem; }
.footer-tagline { color: var(--muted); font-size: 0.875rem; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
@media (max-width: 600px) { .footer-nav { align-items: flex-start; } }
.footer-nav a { color: var(--muted); font-size: 0.875rem; }
.footer-nav a:hover { color: var(--cyan); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-copy { color: var(--muted); font-size: 0.8rem; }
.footer-contact a { color: var(--cyan); font-size: 0.8rem; }

/* ===== ARTICLE PAGES ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: var(--muted); }

.article-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.article-byline {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.article-byline strong { color: var(--text); }

.article-body {
  max-width: 720px;
}
.article-body p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  margin: 2rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { border-top: none; margin-top: 0; }
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 1.5rem 0 0.5rem;
}
.article-body ul,
.article-body ol {
  margin: 0.5rem 0 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.article-body li { line-height: 1.6; color: var(--text); }

.article-figure {
  margin: 2rem 0;
  text-align: center;
}
.article-figure img {
  max-width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
  margin: 0 auto;
}
.article-figure figcaption {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.6rem;
  text-align: center;
}

.article-aside {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 340px;
  width: 100%;
}
.article-aside img {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.article-aside figcaption {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
}
@media (max-width: 600px) {
  .article-aside { float: none; margin: 0 0 1.5rem; max-width: 100%; }
}

.key-fact {
  background: rgba(240,192,64,0.07);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.key-fact strong { color: var(--gold); }

.qa-block { margin-bottom: 2rem; }
.qa-question {
  background: rgba(72,217,232,0.06);
  border-left: 3px solid var(--cyan);
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  color: var(--cyan);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.qa-answer { padding: 0 0 0 1rem; border-left: 1px solid var(--border); }
.qa-answer p { margin-bottom: 0; }

.scope-type {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.scope-type h3 { color: var(--gold); margin-top: 0; padding-top: 0; border-top: none; }
.scope-images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.scope-images figure {
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.scope-images img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.scope-images figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.spec-table th {
  background: var(--bg-card);
  color: var(--gold);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.spec-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table .swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}
.spec-table tr:hover td { background: rgba(255,255,255,0.02); }

.article-nav-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== UTILITIES ===== */
.text-gold   { color: var(--gold); }
.text-cyan   { color: var(--cyan); }
.text-muted  { color: var(--muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== PAGE HEADER GRADIENTS ===== */
.page-header {
  background: linear-gradient(to bottom, var(--bg-alt), var(--bg));
  padding: 3.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header--article {
  background: linear-gradient(to bottom, var(--bg-alt), var(--bg));
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* ===== PAGE HEADER TYPOGRAPHY ===== */
.page-header__sub {
  color: var(--muted);
  max-width: 600px;
  margin-top: .5rem;
}
.page-header__eyebrow {
  color: var(--muted);
  margin-top: .5rem;
}

/* ===== HEADING SIZES ===== */
.h1-lg  { font-size: 2.2rem; }
.h1-xl  { font-size: 2.4rem; }

/* ===== ARTICLE HEADER ===== */
.article-header         { margin-bottom: 2rem; }
.article-header__byline { color: var(--muted); margin-top: .5rem; }

/* ===== CARD VARIANTS ===== */
.card-inset {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
}
.card-inset--lg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}

/* ===== CARD INTERNALS ===== */
.card-inset__title {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .3rem;
}
.card-inset__desc {
  color: var(--muted);
  font-size: .875rem;
}

/* ===== LIST SPACING ===== */
.list-spaced         { line-height: 2; }
.list-spaced-ol      { line-height: 2.2; padding-left: 1.5rem; }

/* ===== WELCOME BANNER ===== */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(240,192,64,0.12), rgba(72,217,232,0.10), rgba(240,192,64,0.12));
  border-bottom: 1px solid rgba(240,192,64,0.25);
  padding: .6rem 1.5rem;
  font-size: .9rem;
  color: var(--gold);
  text-align: center;
}
.welcome-banner__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .25rem;
  flex-shrink: 0;
}
.welcome-banner__close:hover { color: var(--text); }
.welcome-banner.hidden { display: none; }
