/* ── Design Tokens & Shared Styles ──
   Single source of truth for variables, base reset, and shared components.
   Linked from every page so future changes happen in one place.
   ─────────────────────────────────────────────────────────────────────── */

/* ════════════════════════════════════
   DESIGN TOKENS (CSS Custom Properties)
   ════════════════════════════════════ */

:root {
  /* ── Colors ── */
  --bg:          #0C1016;
  --surface:     #141B24;
  --surface-alt: #1A2333;
  --border:      #243044;
  --cobalt:      #3B82F6;
  --silver:      #D1DCE8;
  --emerald:     #34D399;
  --text:        #F0F6FF;
  --muted:       #8B9EB8;

  /* ── Font Families ── */
  --ff-display:   'Bebas Neue', sans-serif;
  --ff-body:      'Barlow Condensed', sans-serif;
  --ff-mono:      'DM Mono', monospace;

  /* ── Font Sizes — Display & Hero ── */
  --fs-hero:         80px;
  --fs-hero-mobile:  56px;
  --fs-brand-title:  52px;

  /* ── Font Sizes — Headings ── */
  --fs-h1:           56px;
  --fs-h1-mobile:    42px;
  --fs-h2:           48px;
  --fs-h2-mobile:    36px;
  --fs-h2-content:   32px;
  --fs-h3:           28px;
  --fs-h3-content:   24px;
  --fs-h4:           20px;
  --fs-cta-h2:       42px;

  /* ── Font Sizes — Navigation ── */
  --fs-nav-logo:     26px;
  --fs-nav-link:     15px;
  --fs-nav-arrow:    0.6rem;

  /* ── Font Sizes — Body & UI ── */
  --fs-body:         16px;
  --fs-body-lg:      20px;
  --fs-btn:          16px;

  /* ── Font Sizes — Labels & Metadata ── */
  --fs-section-label: 11px;
  --fs-tag:           13px;
  --fs-meta:          11px;

  /* ── Font Sizes — Card Interiors ── */
  --fs-card-title:   28px;
  --fs-card-body:    16px;
  --fs-card-icon:    20px;

  /* ── Font Sizes — Footer ── */
  --fs-footer-brand: 18px;
  --fs-footer-meta:  11px;

  /* ── Font Sizes — Page Nav (sidebar) ── */
  --fs-pagenav:      14px;
  --fs-pagenav-sub:  13px;

  /* ── Font Sizes — Assessment (rem for zoom accessibility) ── */
  --fs-assess-h1:       1.8rem;
  --fs-assess-h2:       1.3rem;
  --fs-assess-h2-about: 1.7rem;
  --fs-assess-h3:       1.3rem;
  --fs-assess-name:     1.2rem;
  --fs-assess-body:     1rem;
  --fs-assess-desc:     0.9rem;
  --fs-assess-hint:     0.82rem;
  --fs-assess-mono-sm:  0.8rem;
  --fs-assess-mono-xs:  0.78rem;
  --fs-assess-score:    2.6rem;
  --fs-assess-badge:    1.1rem;
  --fs-assess-breakdown: 0.92rem;
  --fs-assess-chip:     0.9rem;
  --fs-assess-chip-val: 0.85rem;
  --fs-assess-gap-name: 1rem;
  --fs-assess-gap-avg:  0.94rem;
  --fs-assess-gap-rank: 0.82rem;
  --fs-assess-toast:    0.94rem;
  --fs-assess-logo:     2.4rem;
  --fs-assess-subtitle: 0.82rem;
  --fs-assess-tab:      1rem;
}


/* ════════════════════════════════════
   BASE RESET & TYPOGRAPHY
   ════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--ff-body); background: var(--bg); color: var(--text); min-height: 100vh; }
a { text-decoration: none; }


/* ════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════ */

.site-nav {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 14px 32px; display: flex; align-items: center; justify-content: space-between;
}
.site-nav .logo {
  font-family: var(--ff-display); font-size: var(--fs-nav-logo); letter-spacing: 0.07em;
  color: var(--text); text-decoration: none;
}
.site-nav .logo span { color: var(--silver); }
.site-nav .links { display: flex; gap: 24px; align-items: center; }
.site-nav .links a {
  font-weight: 600; font-size: var(--fs-nav-link); letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); transition: color 0.15s;
}
.site-nav .links a:hover { color: var(--text); }
.site-nav .links a.active { color: var(--emerald); }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a .dd-arrow { font-size: var(--fs-nav-arrow); transition: transform 0.2s; }
.nav-dropdown.open > a .dd-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35); min-width: 180px; overflow: hidden;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 18px; font-weight: 600; font-size: var(--fs-nav-link);
  letter-spacing: 0.06em; color: var(--muted); transition: all 0.12s; text-transform: uppercase;
}
.nav-dropdown-menu a:hover { background: rgba(59,130,246,0.08); color: var(--emerald); }


/* ════════════════════════════════════
   BUTTONS
   ════════════════════════════════════ */

.btn {
  font-family: var(--ff-body); font-weight: 700; font-size: var(--fs-btn);
  letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 28px;
  border-radius: 4px; cursor: pointer; transition: all 0.15s; display: inline-block;
}
.btn-primary { background: var(--cobalt); color: #fff; border: none; }
.btn-primary:hover { background: #2563EB; }
.btn-outline-emerald { background: transparent; color: var(--emerald); border: 1.5px solid var(--emerald); }
.btn-outline-emerald:hover { background: rgba(52,211,153,0.08); }
.btn-outline-silver { background: transparent; color: var(--silver); border: 1.5px solid var(--border); }
.btn-outline-silver:hover { background: rgba(209,220,232,0.05); }


/* ════════════════════════════════════
   SECTIONS & LABELS
   ════════════════════════════════════ */

.section {
  max-width: 1100px; margin: 0 auto; padding: 64px 32px;
}
.section-label {
  font-family: var(--ff-mono); font-size: var(--fs-section-label); color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }


/* ════════════════════════════════════
   CARDS
   ════════════════════════════════════ */

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 24px; transition: border-color 0.2s;
}
.card:hover { border-color: var(--cobalt); }

/* Card padding variants */
.card-compact { padding: 14px 18px; }
.card-snug    { padding: 18px 22px; }
.card-roomy   { padding: 28px; }
.card-spacious { padding: 36px 32px; }

/* Card with left accent border (callouts) */
.card-accent {
  border-left: 3px solid var(--cobalt); border-radius: 0 8px 8px 0;
}

/* Card interior helpers */
.card-label {
  font-family: var(--ff-mono); font-size: var(--fs-meta); color: var(--cobalt);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px;
}
.card-event {
  font-family: var(--ff-mono); font-size: var(--fs-tag); color: var(--emerald);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.card-title {
  font-family: var(--ff-display); font-size: var(--fs-card-title); letter-spacing: 0.04em;
  color: var(--text); line-height: 1.1; margin-bottom: 16px;
}
.card-body {
  font-size: var(--fs-card-body); color: var(--muted); line-height: 1.65; margin-bottom: 14px;
}


/* ════════════════════════════════════
   VIDEO EMBEDS
   ════════════════════════════════════ */

.video-embed {
  position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}


/* ════════════════════════════════════
   ICON BOX
   ════════════════════════════════════ */

.icon-box {
  width: 48px; height: 48px; border-radius: 8px; background: rgba(59,130,246,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--cobalt);
}


/* ════════════════════════════════════
   LINK CARDS
   ════════════════════════════════════ */

.link-card { display: flex; align-items: center; gap: 14px; }
.link-icon {
  width: 40px; height: 40px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 18px; color: var(--cobalt); background: rgba(59,130,246,0.12);
}
.link-icon.emerald { background: rgba(52,211,153,0.12); color: var(--emerald); }
.link-icon.silver  { background: rgba(209,220,232,0.12); color: var(--silver); }
.link-text { flex: 1; min-width: 0; }
.link-title {
  font-family: var(--ff-body); font-size: var(--fs-body); font-weight: 600;
  color: var(--text); line-height: 1.3;
}
.link-desc { font-size: var(--fs-tag); color: var(--muted); margin-top: 2px; }
.link-meta {
  font-family: var(--ff-mono); font-size: var(--fs-tag); color: var(--muted);
  margin-top: 2px;
}
.link-arrow { color: var(--muted); flex-shrink: 0; transition: color 0.2s; }
.link-card:hover .link-arrow { color: var(--cobalt); }


/* ════════════════════════════════════
   CONTENT WRAPPER & TYPOGRAPHY
   ════════════════════════════════════ */

/* .content = standalone pages; .blog-main = blog pages (flex child, no max-width) */
.content { max-width: 1100px; margin: 0 auto; padding: 48px 32px 64px; }
.content h1, .blog-main h1 {
  font-family: var(--ff-display); font-size: var(--fs-h1); letter-spacing: 0.04em;
  line-height: 0.95; color: var(--text); margin-bottom: 8px;
}
.content h1 .silver, .blog-main h1 .silver { color: var(--silver); }
.content .subtitle, .blog-main .subtitle {
  font-family: var(--ff-mono); font-size: var(--fs-tag); color: var(--emerald);
  letter-spacing: 0.14em; margin-bottom: 32px;
}
.content h2, .blog-main h2 {
  font-family: var(--ff-display); font-size: var(--fs-h2-content); letter-spacing: 0.05em;
  color: var(--text); margin: 36px 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--cobalt);
}
.content h3, .blog-main h3 {
  font-family: var(--ff-display); font-size: var(--fs-h3-content); letter-spacing: 0.04em;
  color: var(--text); margin: 24px 0 8px;
}
.blog-main h4 {
  font-family: var(--ff-display); font-size: var(--fs-h4); letter-spacing: 0.04em;
  color: var(--text); margin: 20px 0 6px;
}
.content p, .blog-main p { font-size: var(--fs-body); color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.content strong, .blog-main strong { color: var(--text); }
.content a:not(.btn), .blog-main a:not(.btn) { color: var(--cobalt); transition: color 0.15s; }
.content a:not(.btn):hover, .blog-main a:not(.btn):hover { color: var(--emerald); }
.blog-main ul, .blog-main ol {
  font-size: var(--fs-body); color: var(--muted); line-height: 1.65; margin: 0 0 14px 20px;
}
.blog-main li { margin-bottom: 6px; }
.content table, .blog-main table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); margin: 14px 0 24px; }
.content th, .blog-main th {
  background: rgba(59,130,246,0.08); color: var(--cobalt); padding: 8px 12px; text-align: left;
  font-family: var(--ff-mono); font-weight: 500; font-size: var(--fs-tag);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.content td, .blog-main td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--muted); }
.content tr:last-child td, .blog-main tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
  .content h1, .blog-main h1 { font-size: var(--fs-h1-mobile); }
  .content { padding: 32px 20px 48px; }
}


/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */

.site-footer {
  max-width: 1100px; margin: 0 auto; padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.site-footer .brand {
  font-family: var(--ff-display); font-size: var(--fs-footer-brand); letter-spacing: 0.06em; color: var(--border);
}
.site-footer .meta {
  font-family: var(--ff-mono); font-size: var(--fs-footer-meta); color: var(--border);
}
