/*
 * SASE Codex — Edge Solutions
 * Shared Stylesheet · main.css
 * Edge Documents v0.2 brand tokens
 * All pages link to this file. Per-page <style> blocks for truly page-specific rules only.
 */

/* ============================================================
   GOOGLE FONTS — loaded here so HTML files don't need the link
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:ital,wght@0,200..800;1,200..800&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — Edge Documents v0.2 Brand Tokens
   ============================================================ */
:root {
  /* ── Core palette ── */
  --edge-blue:    #486D87;   /* Primary — headers, nav, dominant backgrounds */
  --edge-green:   #C6D219;   /* Accent — rules, pills, CTAs — punctuation only */
  --edge-dark:    #4C5351;   /* Body text on light surfaces */
  --edge-muted:   #7B7D72;   /* Secondary text, labels, meta */
  --edge-light:   #F2F3F4;   /* Page canvas, light surfaces */
  --edge-moss:    #9DA03C;   /* Supporting accent, category differentiation */
  --warning:      #E6A817;   /* Caution states */
  --error:        #C44536;   /* Error states, destructive actions */
  --white:        #FFFFFF;

  /* ── Typography ── */
  --font:         'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Cascadia Code', 'Fira Code', ui-monospace, monospace;

  /* ── Type scale (base 14px on html) ── */
  --t-display:    2.5rem;    /* 35px — hero titles */
  --t-h1:         1.875rem;  /* 26.25px — section headlines */
  --t-h2:         1.5rem;    /* 21px — subsection headers */
  --t-h3:         1.125rem;  /* 15.75px — card titles */
  --t-body:       1rem;      /* 14px — default body */
  --t-body-sm:    0.875rem;  /* 12.25px — dense content */
  --t-meta:       0.75rem;   /* 10.5px — labels, captions */
  --t-mono:       0.8125rem; /* 11.375px — code, IDs */

  /* ── Spacing (4px base) ── */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* ── Radius ── */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* ── Motion ── */
  --dur-fast:    180ms;
  --dur-normal:  300ms;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);

  /* ── Vendor color palette (scorecard charts) ── */
  --v-palo:       #E74C3C;
  --v-cato:       #2E86AB;
  --v-netskope:   #8E44AD;
  --v-cloudflare: #E67E22;
  --v-zscaler:    #1A7A4A;

  /* ── Pillar badge colors ── */
  --pb-ztna:        #1A7A4A;
  --pb-sse:         #2E86AB;
  --pb-sdwan:       #E67E22;
  --pb-aiops:       #8E44AD;
  --pb-sovereignty: #C44536;
}

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

/* ============================================================
   BASE
   ============================================================ */
html { font-size: 14px; }

body {
  font-family: var(--font);
  background: var(--edge-light);
  color: var(--edge-dark);
  font-size: var(--t-body);
  line-height: 1.6;
}

/* Ambient gradient — skill canonical pattern */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(72,109,135,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(198,210,25,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 10%, rgba(72,109,135,0.07) 0%, transparent 45%);
  box-shadow: inset 0 0 200px rgba(0,0,0,0.18);
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Content above grain */
header, nav, main, footer, .page-body { position: relative; z-index: 2; }

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--edge-blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
  transition: outline-offset var(--dur-fast) var(--ease-spring);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* TOC layout scaffold */
body.has-toc {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.has-toc .page-body {
  display: flex;
  flex: 1;
}
body.has-toc main {
  flex: 1;
  min-width: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.edge-header {
  background: var(--edge-blue);
  padding: 18px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.edge-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.edge-header__brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}
.edge-header__pills {
  display: flex;
  gap: 8px;
  align-items: center;
}
.edge-header__bottom { margin-top: 4px; }
.edge-header__title {
  font-weight: 700;
  font-size: 26px;
  color: var(--white);
  line-height: 1.2;
}
.edge-header__subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ============================================================
   PILLS / BADGES
   ============================================================ */
.edge-pill {
  display: inline-block;
  background: var(--edge-green);
  color: var(--edge-dark);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
}
.edge-pill--muted  { background: var(--edge-muted); color: var(--white); }
.edge-pill--moss   { background: var(--edge-moss);  color: var(--white); }
/* Legacy aliases — keep so existing HTML doesn't break before per-file pass */
.edge-pill--secondary { background: var(--edge-muted); color: var(--white); }
.edge-pill--phase     { background: #2d4a5c; color: var(--edge-green); border: 1px solid var(--edge-green); }

/* Score badges (circular) */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
}

/* Score dot — compact variant used by scorecard master table.
   Color is set inline by JS; this class provides the circle geometry. */
.score-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  color: var(--white);
  flex-shrink: 0;
}
.score-5    { background: #1A7A4A; }
.score-4    { background: #2E86AB; }
.score-3    { background: var(--warning); }
.score-2    { background: var(--error); }
.score-1    { background: #7F0000; }
.score-null { background: var(--edge-muted); font-size: 10px; }

/* Weight badges */
.weight-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  display: inline-block;
  margin-top: 3px;
}
.weight-critical { background: var(--error);   color: var(--white); }
.weight-high     { background: var(--warning); color: var(--white); }
.weight-medium   { background: #F1C40F;        color: var(--edge-dark); }

/* Pillar tags */
.pillar-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .8px;
}
.pillar-ztna        { background: var(--pb-ztna);        color: var(--white); }
.pillar-sse         { background: var(--pb-sse);         color: var(--white); }
.pillar-sdwan       { background: var(--pb-sdwan);       color: var(--white); }
.pillar-aiops       { background: var(--pb-aiops);       color: var(--white); }
.pillar-sovereignty { background: var(--pb-sovereignty); color: var(--white); }

/* Phase III pillar badge */
.pillar-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  letter-spacing: .5px;
  color: var(--white);
}
.pb-ztna        { background: var(--pb-ztna); }
.pb-sse         { background: var(--pb-sse); }
.pb-sdwan       { background: var(--pb-sdwan); }
.pb-aiops       { background: var(--pb-aiops); }
.pb-sovereignty { background: var(--pb-sovereignty); }

/* Winner / persona tags */
.winner-tag     { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); font-weight: 700; font-size: 10px; letter-spacing: .5px; margin: 2px 2px 2px 0; }
.winner-primary { background: var(--edge-green); color: var(--edge-dark); }
.winner-alt     { background: var(--edge-muted); color: var(--white); }

/* Vendor color chips */
.v-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; }
.v-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.v-palo .v-dot       { background: var(--v-palo); }
.v-cato .v-dot       { background: var(--v-cato); }
.v-netskope .v-dot   { background: var(--v-netskope); }
.v-cloudflare .v-dot { background: var(--v-cloudflare); }
.v-zscaler .v-dot    { background: var(--v-zscaler); }

/* ============================================================
   DOC NAV (top breadcrumb bar)
   ============================================================ */
.doc-nav {
  background: #2d4a5c;
  padding: 10px 40px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--edge-green);
  align-items: center;
  position: relative;
  z-index: 2;
}
.doc-nav a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.doc-nav a:hover,
.doc-nav a.active {
  color: var(--edge-green);
  background: rgba(255,255,255,0.07);
}
.doc-nav__sep { color: rgba(255,255,255,0.3); font-size: 11px; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.edge-section {
  padding: var(--sp-10);
  max-width: 1100px;
  margin: 0 auto;
}
.edge-section--wide { padding: var(--sp-10); max-width: 100%; }
.edge-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edge-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.edge-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.edge-rule   { height: 3px; background: var(--edge-green); border: none; margin: 8px 0 20px; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading,
h2.section-heading {
  font-weight: 700;
  font-size: 20px;
  color: var(--edge-blue);
  margin-bottom: 4px;
  margin-top: 32px;
}
.section-heading:first-child { margin-top: 0; }

h3.sub-heading {
  font-weight: 700;
  font-size: 15px;
  color: var(--edge-blue);
  margin-bottom: 8px;
}

/* Section heading with lime rule (skill pattern) */
.edge-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.edge-section-mark {
  font-size: var(--t-meta);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--edge-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.edge-section-head h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  color: var(--edge-blue);
}

/* ============================================================
   CARDS
   ============================================================ */
.edge-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid rgba(72,109,135,0.25);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(72,109,135,0.10);
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-spring);
}
.edge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(72,109,135,0.16);
}
.edge-card__accent     { height: 4px; background: var(--edge-green); }
.edge-card__body       { padding: 16px 20px; }
.edge-card__title {
  font-weight: 600;
  font-size: var(--t-h3);
  color: var(--edge-blue);
  margin: 8px 0 6px;
}
.edge-card--supplemental { border-color: rgba(72,109,135,0.15); }
.edge-card--supplemental .edge-card__accent { background: var(--edge-muted); }
.edge-card p,
.edge-card li { font-size: 13px; line-height: 1.55; }
.edge-card ul  { padding-left: 18px; margin-top: 6px; }
.edge-card li  { margin-bottom: 4px; }

/* Mini-card */
.mini-card {
  background: rgba(242,243,244,0.8);
  border: 1px solid rgba(72,109,135,0.2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.mini-card h4 {
  font-weight: 700;
  font-size: 11px;
  color: var(--edge-blue);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mini-card p { font-size: 12.5px; line-height: 1.5; color: var(--edge-dark); }

/* Vendor summary cards (Phase III) */
.vendor-summary-card {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(72,109,135,0.10);
  border: 0.5px solid rgba(72,109,135,0.2);
}
.vendor-summary-card__header  { padding: 14px 16px; color: var(--white); }
.vendor-summary-card__name    { font-weight: 700; font-size: 15px; }
.vendor-summary-card__product { font-size: 10px; opacity: .8; margin-top: 2px; letter-spacing: .3px; }
.vendor-summary-card__body    { padding: 14px 16px; }
.vendor-summary-card__body p  { font-size: 12.5px; line-height: 1.5; margin-bottom: 8px; }
.vendor-summary-card__scores  { display: grid; gap: 4px; margin-top: 10px; }
.mini-score-row               { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.mini-score-row .label        { flex: 1; color: var(--edge-dark); }
.mini-score-row .bar-bg       { width: 80px; background: rgba(72,109,135,0.15); border-radius: 2px; height: 6px; }
.mini-score-row .bar-fill     { height: 6px; border-radius: 2px; }
.mini-score-row .pct          { font-weight: 700; font-size: 11px; min-width: 30px; text-align: right; }

/* ============================================================
   CALLOUTS
   ============================================================ */
.edge-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(198,210,25,0.10);
  border: 1px solid rgba(198,210,25,0.5);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--edge-dark);
  margin: 14px 0;
}
.edge-callout__accent {
  width: 4px;
  min-height: 28px;
  background: var(--edge-green);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}
.edge-callout--warning {
  background: rgba(230,168,23,0.10);
  border-color: rgba(230,168,23,0.5);
}
.edge-callout--warning .edge-callout__accent { background: var(--warning); }

/* BLUF box */
.bluf-box {
  background: #2d4a5c;
  border-left: 5px solid var(--edge-green);
  padding: 18px 24px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 32px;
}
.bluf-box__label {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--edge-green);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bluf-box p { font-size: 14px; line-height: 1.65; color: var(--white); margin-bottom: 8px; }
.bluf-box p:last-child { margin-bottom: 0; }

/* Feynman box */
.feynman-box {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(72,109,135,0.25);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.feynman-box__label {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--edge-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feynman-box h3 { font-weight: 700; font-size: 15px; color: var(--edge-blue); margin-bottom: 8px; }
.feynman-box p  { font-size: 13.5px; margin-bottom: 8px; }

/* ============================================================
   TABLES
   ============================================================ */
.edge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
}
.edge-table th {
  font-weight: 700;
  font-size: 11px;
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  background: var(--edge-blue);
}
.edge-table th.vendor-col { background: var(--edge-dark); text-align: center; min-width: 110px; }
.edge-table td {
  padding: 8px 12px;
  border: .5px solid rgba(72,109,135,0.2);
  color: var(--edge-dark);
  vertical-align: top;
}
.edge-table tbody tr:nth-child(odd)  td:first-child       { background: rgba(72,109,135,0.08); }
.edge-table tbody tr:nth-child(even) td:first-child       { background: rgba(72,109,135,0.04); }
.edge-table tbody tr:nth-child(odd)  td:not(:first-child) { background: var(--white); }
.edge-table tbody tr:nth-child(even) td:not(:first-child) { background: rgba(72,109,135,0.04); }
.score-cell       { text-align: center; }
.criterion-label  { font-weight: 500; }
.criterion-scale  { font-size: 11px; color: var(--edge-muted); margin-top: 2px; }
.score-note       { font-size: 11px; color: var(--edge-dark); margin-top: 4px; line-height: 1.4; text-align: left; }

/* Master table (Phase III / Scorecard)
   Note: scorecard renders this table via JS into .master-table.
   font-size is 12px in the scorecard (compact) vs 13px here (default).
   The scorecard JS writes inline style overrides where needed. */
.master-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.master-table th { font-weight: 700; font-size: 11px; color: var(--white); padding: 10px 14px; text-align: left; background: #2d4a5c; }
.master-table th.vcol { text-align: center; min-width: 90px; }
.master-table td { padding: 6px 12px; border-bottom: .5px solid rgba(72,109,135,0.1); vertical-align: middle; }
.master-table .score-cell { text-align: center; }
.master-table .pillar-group-header td { background: rgba(72,109,135,0.06); padding: 6px 12px; }
.master-table .total-row td { background: var(--edge-light) !important; font-weight: 700; font-size: 13px; }

/* Score bar */
.score-bar-wrap { display: flex; align-items: center; gap: 8px; }
.score-bar-bg   { flex: 1; background: rgba(72,109,135,0.15); border-radius: 2px; height: 8px; min-width: 60px; }
.score-bar-fill { height: 8px; border-radius: 2px; }
.score-pct      { font-weight: 700; font-size: 12px; min-width: 36px; text-align: right; }

/* Persona table */
.persona-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.persona-table th { background: var(--edge-blue); color: var(--white); font-weight: 700; font-size: 11px; padding: 9px 14px; text-align: left; }
.persona-table td { padding: 10px 14px; border: .5px solid rgba(72,109,135,0.2); vertical-align: top; }
.persona-table tbody tr:nth-child(odd)  td { background: var(--white); }
.persona-table tbody tr:nth-child(even) td { background: var(--edge-light); }

/* Competition table (emerging vendors) */
.compete-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.compete-table th { background: var(--edge-blue); color: var(--white); font-weight: 700; font-size: 11px; padding: 8px 12px; text-align: left; }
.compete-table td { padding: 8px 12px; border: .5px solid rgba(72,109,135,0.2); vertical-align: top; }
.compete-table tbody tr:nth-child(odd)  td { background: var(--white); }
.compete-table tbody tr:nth-child(even) td { background: var(--edge-light); }

/* Regulatory Certification Matrix */
.reg-matrix { width:100%; border-collapse:collapse; font-size:12.5px; margin-top:12px; }
.reg-matrix th { background:var(--edge-blue); color:var(--white); font-weight:700; font-size:11px; padding:9px 12px; text-align:center; }
.reg-matrix th:first-child { text-align:left; min-width:140px; }
.reg-matrix td { padding:8px 12px; border:.5px solid rgba(72,109,135,0.2); text-align:center; font-size:12px; }
.reg-matrix td:first-child { text-align:left; font-weight:500; background:var(--edge-light); }
.reg-matrix td:last-child { text-align:left; font-size:11px; color:var(--edge-muted); }
.reg-matrix tbody tr:hover td { background:rgba(72,109,135,0.06); }
.cert-yes     { color:#1A7A4A; font-weight:700; }
.cert-no      { color:var(--error); font-weight:700; }
.cert-partial { color:var(--warning); font-weight:700; }

/* ============================================================
   SCORECARD — Pillar rank bars, vendor summary cards, mini bars
   Used by: sase_scorecard.html
   ============================================================ */
.pillar-rank-block  { margin-bottom: 28px; }
.pillar-rank-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pillar-rank-title  { font-weight: 700; font-size: 13px; color: var(--edge-blue); }

.vendor-rank-row         { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.vendor-rank-row .v-label    { font-size: 11px; font-weight: 700; width: 140px; flex-shrink: 0; color: var(--edge-dark); }
.vendor-rank-row .bar-bg     { flex: 1; background: rgba(72,109,135,0.15); border-radius: 3px; height: 14px; }
.vendor-rank-row .bar-fill   { height: 14px; border-radius: 3px; }
.vendor-rank-row .pct-label  { font-weight: 700; font-size: 12px; min-width: 42px; text-align: right; color: var(--edge-dark); }

.v-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.v-summary-card {
  background: rgba(255,255,255,0.80);
  border-radius: var(--r-md);
  border: 0.5px solid rgba(72,109,135,0.25);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(72,109,135,0.10);
}
.v-summary-card__hdr  { padding: 12px 14px; }
.v-summary-card__name { font-weight: 700; font-size: 13px; color: var(--white); }
.v-summary-card__sub  { font-size: 10px; color: rgba(255,255,255,.75); margin-top: 2px; }
.v-summary-card__body { padding: 12px 14px; }
.v-summary-card__arch {
  font-size: 10px; color: var(--edge-muted);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px;
}

.v-mini-bars          { display: grid; gap: 5px; }
.v-mini-row           { display: flex; align-items: center; gap: 6px; }
.v-mini-row .lbl      { font-size: 10px; flex: 1; color: var(--edge-dark); }
.v-mini-row .mini-bg  { width: 60px; background: rgba(72,109,135,0.15); border-radius: 2px; height: 5px; }
.v-mini-row .mini-fill{ height: 5px; border-radius: 2px; }
.v-mini-row .mini-pct { font-weight: 700; font-size: 10px; min-width: 30px; text-align: right; }

.emerging-scope-note {
  background: var(--edge-light);
  border: 1px solid rgba(72,109,135,0.2);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--edge-muted);
  margin-top: 6px;
}

/* Pending status badge — working-doc index rows and spin-off headers */
.badge-pending {
  background: rgba(230,168,23,0.12);
  color: #8a6200;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-family: var(--font-ui);
  font-weight: 600;
  white-space: nowrap;
}

/* DLP philosophy */
.dlp-philosophy-badge {
  display: inline-block;
  background: #2d4a5c;
  color: var(--white);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  white-space: nowrap;
}
.dlp-depth-badge { font-size: 14px; letter-spacing: 2px; white-space: nowrap; }
.dlp-depth--5 { color: #1A7A4A; }
.dlp-depth--4 { color: #2E86AB; }
.dlp-depth--3 { color: var(--warning); }
.dlp-depth--2 { color: var(--error); }

/* ============================================================
   RADAR CHART
   ============================================================ */
#radar-container {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(72,109,135,0.25);
  border-radius: var(--r-md);
  padding: 28px 32px 20px;
  box-shadow: 0 4px 24px rgba(72,109,135,0.10);
}

/* CSS-driven aspect ratio — Chart.js fills via maintainAspectRatio:false */
.radar-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 55%;
}
.radar-canvas-wrapper canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 1199px) { .radar-canvas-wrapper { padding-bottom: 58%; } }
@media (max-width:  899px) { .radar-canvas-wrapper { padding-bottom: 62%; } }
@media (max-width:  599px) { .radar-canvas-wrapper { padding-bottom: 70%; } }

canvas#radarChart { display: block; }

/* ============================================================
   VENDOR BLOCKS (Phase II deep dives)
   ============================================================ */
.vendor-section  { margin-bottom: 36px; }
.vendor-header   {
  background: var(--edge-blue);
  padding: 14px 20px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.vendor-header h2   { font-weight: 700; font-size: 16px; color: var(--white); }
.vendor-header .arch-tag { font-size: 10px; color: var(--edge-green); letter-spacing: .8px; }
.vendor-body {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(72,109,135,0.25);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 20px 24px;
}
.vendor-body p { margin-bottom: 10px; font-size: 13.5px; }
.vendor-body p:last-child { margin-bottom: 0; }
.vendor-subhead {
  font-weight: 700;
  font-size: 11px;
  color: var(--edge-blue);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 16px 0 4px;
  border-left: 3px solid var(--edge-green);
  padding-left: 8px;
}
.vendor-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.strength-dot { color: var(--edge-moss); }
.watch-dot    { color: var(--error); }

/* Emerging vendor header variant */
.vendor-header-emerging {
  background: #2d4a5c;
  padding: 16px 24px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--edge-green);
  border-bottom: none;
}
.vendor-header-emerging h2       { font-weight: 700; font-size: 18px; color: var(--white); }
.vendor-header-emerging .tagline { font-size: 12px; color: var(--edge-green); margin-top: 4px; font-style: italic; }
.vendor-header-emerging .scope-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ============================================================
   DARK SECTIONS
   ============================================================ */
.edge-dark-section {
  background: var(--edge-blue);
  color: var(--white);
  padding: var(--sp-10);
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.edge-dark-section h2 {
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 6px;
}
.edge-dark-section h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: var(--edge-green);
  margin-top: 8px;
  margin-bottom: 18px;
}
.edge-dark-section p  { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.88); max-width: 960px; margin-bottom: 12px; }
.edge-dark-section li { color: rgba(255,255,255,0.75); font-size: 13px; line-height: 1.7; }
.edge-dark-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 2px solid rgba(198,210,25,0.15);
  pointer-events: none;
}

/* Pillar hero */
.pillar-hero {
  background: #2d4a5c;
  padding: 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 4px solid var(--edge-green);
}
.pillar-hero__icon  { width: 52px; height: 52px; background: var(--edge-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.pillar-hero__title { font-weight: 700; font-size: 22px; color: var(--white); }
.pillar-hero__sub   { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 3px; }

/* Stats */
.edge-stat         { text-align: center; padding: 12px; }
.edge-stat__number { font-weight: 700; font-size: 32px; color: var(--edge-green); }
.edge-stat__label  { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: .5px; margin-top: 3px; }
/* Light-surface variant — use when stat cards sit on a light/glass background */
.edge-stat--light .edge-stat__number { color: var(--edge-blue); }
.edge-stat--light .edge-stat__label  { color: var(--edge-muted); }

/* Criterion blocks (Phase I) */
.criterion-block {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--edge-green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(72,109,135,0.08);
}
.criterion-block__label { font-weight: 700; font-size: 13px; color: var(--edge-blue); margin-bottom: 4px; }
.criterion-block p { font-size: 13px; line-height: 1.6; }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  background: var(--edge-light);
  border: 1px solid rgba(72,109,135,0.25);
  color: var(--edge-dark);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
}

/* Score loading indicator */
.score-loading { color: var(--edge-muted); font-size: 13px; padding: 20px; text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.edge-footer {
  background: var(--edge-blue);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.edge-footer__brand { font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--white); }
.edge-footer__url   { font-size: 12px; color: rgba(255,255,255,0.6); }
.edge-footer__meta  { font-size: 11px; color: rgba(255,255,255,0.45); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .edge-header,
  .edge-footer,
  .edge-dark-section {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .toc-sidebar { display: none; }
  body::before, body::after { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .edge-section  { padding: 24px 20px; }
  .edge-grid-3   { grid-template-columns: 1fr; }
  .edge-grid-2   { grid-template-columns: 1fr; }
  .vendor-grid   { grid-template-columns: 1fr; }
  .edge-header   { padding: 14px 20px 16px; }
  .doc-nav       { padding: 8px 20px; }
  .edge-footer   { padding: 16px 20px; }
  .pillar-hero   { padding: 18px 20px; }
}
