/* ═══════════════════════════════════════════════════════════
   CuraLex — shared design system
   Type: Satoshi (display) · IBM Plex Sans (UI/body) · JetBrains Mono (data)
   ═══════════════════════════════════════════════════════════ */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@500,600,700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.shell-loading body { visibility: hidden; }

:root {
  /* Ink + neutrals (cool-neutral) */
  --ink:    #14181f;
  --navy:   #173451;
  --t1:     #1a1f29;
  --t2:     #525c6b;
  --t3:     #8a93a3;
  --t4:     #aab2bf;

  /* Surfaces */
  --bg:     #ffffff;
  --bg2:    #f6f7f9;
  --bg3:    #eef1f5;
  --bg-navy:#102a44;

  /* Accent (interactive blue, from CuraLex shield) */
  --accent:      #1561a0;
  --accent-press:#0e4576;
  --accent-soft: #e9f1f9;
  --accent-mid:  #c5dcf0;
  --green:       #4f9e57;
  --green-soft:  #eaf4ec;

  /* Lines */
  --line:   #e4e8ee;
  --line-2: #d3dae3;

  /* Radii */
  --r-sm: 7px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(20,30,45,.05), 0 1px 1px rgba(20,30,45,.03);
  --sh-2: 0 4px 16px rgba(20,30,45,.07);
  --sh-3: 0 12px 36px rgba(20,30,45,.13);
  --sh-pop: -20px 0 60px rgba(20,30,45,.16);

  --font-d: 'Satoshi', system-ui, sans-serif;
  --font-b: 'IBM Plex Sans', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, monospace;

  --nav-h: 58px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--t2);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-d); color: var(--t1); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-press); }
button { font-family: inherit; }
::selection { background: var(--accent-mid); color: var(--ink); }
.mono { font-family: var(--font-m); font-feature-settings: "tnum" 1; }

/* ── Top nav ─────────────────────────────────────────── */
.cx-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.cx-nav-inner {
  width: 100%; max-width: 1480px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 22px;
}
.cx-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cx-mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; overflow: hidden;
  background: #fff; box-shadow: var(--sh-1); display: block;
}
.cx-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-wordmark {
  font-family: var(--font-d); font-weight: 800; font-size: 20px;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.cx-wordmark .lx { color: var(--accent); }
.cx-nav-links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.cx-nav-links a {
  font-size: 14px; font-weight: 500; color: var(--t2);
  padding: 7px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.cx-nav-links a:hover { background: var(--bg2); color: var(--t1); }
.cx-nav-links a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.cx-nav-spacer { flex: 1; }
.cx-nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: #fff !important;
  background: var(--accent); padding: 8px 15px; border-radius: 9px;
  transition: background .15s, transform .12s;
}
.cx-nav-cta:hover { background: var(--accent-press); transform: translateY(-1px); }
.cx-hamburger { display: none; }

@media (max-width: 800px) {
  .cx-nav-links { display: none; }
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-b); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--accent-press); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--t1); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg2); border-color: var(--t4); }
.btn-quiet { background: transparent; color: var(--t2); }
.btn-quiet:hover { background: var(--bg2); color: var(--t1); }

/* ── Status pills ────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 3px 9px 3px 8px;
  border-radius: 999px; white-space: nowrap; line-height: 1.4;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.st-passed   { background: #e8f5ee; color: #1c7a48; }
.st-enrolled { background: #e7f0fb; color: #1d5fa6; }
.st-engrossed{ background: #eeeefb; color: #4b51c0; }
.st-introduced{ background: #f0f2f5; color: #5c6675; }
.st-vetoed   { background: #fdf1e7; color: #b5651d; }
.st-failed   { background: #fbecec; color: #b3403a; }
.st-na       { background: #f0f2f5; color: #8a93a3; }

/* ── Footer ──────────────────────────────────────────── */
.cx-footer {
  background: var(--bg-navy); color: #b9c6d6; margin-top: 0;
}
.cx-footer-inner {
  max-width: 1480px; margin: 0 auto; padding: 40px 24px 32px;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start;
}
.cx-footer .f-brand { display: flex; align-items: center; gap: 11px; }
.cx-footer .cx-wordmark { color: #fff; }
.cx-footer .cx-wordmark .lx { color: #8fc1ea; }
.cx-footer .f-tag { margin-top: 10px; font-size: 13px; color: #8597ab; max-width: 280px; line-height: 1.6; }
.cx-footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.cx-footer-col h5 { font-family: var(--font-b); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6f819a; margin-bottom: 12px; }
.cx-footer-col a { display: block; font-size: 13.5px; color: #b9c6d6; padding: 4px 0; }
.cx-footer-col a:hover { color: #fff; }

/* discreet mini footer */
.cx-mini-footer { border-top: 1px solid var(--line); background: var(--bg); }
.cx-mini-footer .mf-inner { max-width: 1080px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cx-mini-footer .mf-brand { display: flex; align-items: center; gap: 8px; }
.cx-mini-footer .mf-brand img { width: 22px; height: 22px; border-radius: 6px; }
.cx-mini-footer .mf-copy { font-size: 12.5px; color: var(--t3); }
.cx-mini-footer .mf-links { margin-left: auto; display: flex; gap: 22px; }
.cx-mini-footer .mf-links a { font-size: 13px; color: var(--t2); text-decoration: none; }
.cx-mini-footer .mf-links a:hover { color: var(--accent); }
@media (max-width: 560px) { .cx-mini-footer .mf-links { margin-left: 0; width: 100%; } }
.cx-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 1480px; margin: 0 auto; padding: 16px 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #6f819a;
}

/* ── Utility ─────────────────────────────────────────── */
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--bg3); border-top-color: var(--accent); animation: cx-rot .8s linear infinite; margin: 0 auto 14px; }
@keyframes cx-rot { to { transform: rotate(360deg); } }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--t3); }
