@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── THEME TOKENS ── */
:root {
  --bg:           #0d1f2e;
  --card:         #192f44;
  --border:       #1b4965;
  --text-bright:  #cae9ff;
  --text:         #5fa8d3;
  --text-dim:     #4e86aa;
  --accent:       #62b6cb;
  --highlight:    #bee9e8;
  --warning:      #f8c46a;
  --danger:       #f08080;

  /* Hanging indent shared by every bulleted list, so contexts stay aligned */
  --list-indent:  20px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text-bright);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-emoji: text;
}

/* ── HERO ── */
.hero {
  padding: 60px 32px 44px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg) 0%, #112234 50%, var(--bg) 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, #62b6cb18, transparent);
  pointer-events: none;
}
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.hero h1 {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-bright) 30%, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: var(--text); font-size: 14px; max-width: 460px; margin: 0 auto 28px; }
.hero-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-tag { background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 11px; padding: 3px 10px; border-radius: 20px; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #0d1f2edd;
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; gap: 2px; align-items: center; height: 46px;
  overflow-x: auto;
}
nav::-webkit-scrollbar { height: 0; }
.nav-brand { color: var(--accent); font-weight: 700; font-size: 13px; margin-right: 16px; white-space: nowrap; flex-shrink: 0; }
nav a { color: var(--text-dim); text-decoration: none; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; transition: background .15s, color .15s; white-space: nowrap; flex-shrink: 0; }
nav a:hover, nav a.active { background: var(--bg); color: var(--text-bright); }

/* ── SECTIONS ── */
section { padding: 36px 28px; border-bottom: 1px solid var(--border); scroll-margin-top: 64px; }
.si { max-width: 1100px; margin: 0 auto; }
h2 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 600; color: var(--text); margin: 16px 0 8px; }
p { color: var(--text); }

/* ── GRID ── */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.grid-halves { grid-template-columns: 1fr 1fr; }

/* ── CARDS ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 15px 17px; transition: border-color .2s, box-shadow .2s; }
.card-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; color: var(--text); }
.card-title strong { color: var(--text-bright); font-weight: 600; }
.card ul { padding-left: var(--list-indent); color: var(--text); }
.card ul li { margin-bottom: 5px; font-size: 13px; }
.card ul li strong { color: var(--text-bright); font-weight: 600; }

/* ── INNER CARD ── */
.inner-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.accent-card { background: var(--bg); border: 1px solid var(--accent); border-radius: 8px; padding: 12px; }

/* ── BADGE / TAG ── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; flex-shrink: 0; background: var(--bg); color: var(--text-bright); border: 1px solid var(--border); }
.tag { font-size: 10px; font-weight: 500; background: var(--card); color: var(--text); padding: 2px 8px; border-radius: 4px; }

/* ── LINKS ── */
.links { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
a.ref-link { color: var(--text); text-decoration: none; }
a.ref-link:hover { color: var(--accent); }

/* ── CLICKABLE CARD ── */
a.card-link { display: block; text-decoration: none; color: inherit; }
a.card-link .card { cursor: pointer; }
a.card-link:hover .card { border-color: var(--accent); box-shadow: 0 0 0 1px #62b6cb20, 0 4px 16px #0006; }

/* ── HASH TAGS ── */
.hash-tag { font-size: 11px; color: var(--text-dim); font-weight: 500; }
.hash-tag::before { content: "#"; color: var(--text-dim); }

/* ── CALLOUT ── */
.callout { border-radius: 8px; padding: 9px 13px; margin: 9px 0; font-size: 13px; background: var(--bg); border: 1px solid var(--border); color: var(--highlight); }
.card .callout { margin-top: 8px; margin-bottom: 0; }

/* ── INSIGHT ── */
.insight { padding: 16px 20px; margin-bottom: 16px; text-align: center; }
.insight p { color: var(--highlight); font-size: 15px; line-height: 1.6; }

/* ── QUOTE ── */
.quote { border-left: 2px solid var(--text); padding: 4px 0 4px 12px; color: var(--text); font-style: italic; list-style: none; margin-left: 0; line-height: 1.6; }

/* ── ANNOTATION ── */
.annotation { color: var(--warning); font-style: normal; }
.annotation::before { content: "📌 "; font-style: normal; font-weight: 600; }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-scroll { overflow-x: auto; margin-top: 8px; }
th { background: var(--card); color: var(--text); font-weight: 600; padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--border); }
th[scope="col"] { color: var(--text-bright); letter-spacing: .04em; text-transform: uppercase; }
th[scope="row"] { color: var(--text-bright); white-space: nowrap; }
td { background: var(--card); color: var(--text); padding: 9px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
td strong { color: var(--text-bright); }

/* ── SVG WRAP ── */
.svg-wrap { overflow-x: auto; padding: 4px 0; }
svg text { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; }

/* ── ICON (grayscale emoji) ── */
.em { filter: grayscale(1) brightness(1.4); display: inline-block; }

/* ── FOOTER ── */
footer { text-align: center; padding: 28px 24px; color: var(--text-dim); font-size: 12px; border-top: 1px solid var(--border); }
footer span { color: var(--accent); }
