/* ==========================================================================
   Agent Orchestration Benchmark — Stylesheet
   Palette: Cool Nordic drafting paper (#F3F6F8), Pure surface (#FFFFFF),
   Marine graphite ink (#121A24), Fjord blue signal (#0B5CAB)
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/ibm-plex-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --bg-canvas: #f3f6f8;
  --bg-surface: #ffffff;
  --bg-subtle: #e8eef3;
  --bg-trace: #101822;
  --bg-trace-elevated: #172230;

  --ink-primary: #121a24;
  --ink-secondary: #425263;
  --ink-tertiary: #5d6e80;

  --border-hairline: #d4dee8;
  --border-strong: #b4c4d4;

  --accent-primary: #0b5cab;
  --accent-hover: #084683;
  --accent-tint: #ebf3fb;
  --accent-border: #9ec5eb;

  --pass-fg: #116641;
  --pass-bg: #e7f5ee;
  --pass-border: #aadbc2;

  --warn-fg: #8c4100;
  --warn-bg: #fef3e6;
  --warn-border: #f2cb9c;

  --fail-fg: #9e1c28;
  --fail-bg: #fcecee;
  --fail-border: #eebbc0;

  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container-max: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius-sm: 4px;
  --radius-md: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

p code,
li code,
td code {
  font-size: 0.875em;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink-primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  left: var(--gutter);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(243, 246, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.01em;
}

.brand-link:hover {
  color: var(--ink-primary);
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--ink-primary);
  background: var(--bg-subtle);
}

.nav-link[aria-current="page"] {
  color: var(--ink-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  margin-left: 6px;
  background: var(--ink-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  background: #223042;
  color: #ffffff;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   Hero & Live Verification Simulator
   ========================================================================== */

.hero-section {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--border-hairline);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-canvas) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.meta-line {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--ink-tertiary);
  font-weight: 500;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink-primary);
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink-secondary);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--accent-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--bg-surface);
  color: var(--ink-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.quick-verdict {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.quick-verdict-heading {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.verdict-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.verdict-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  padding-top: 8px;
  border-top: 1px solid var(--bg-subtle);
}

.verdict-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.verdict-row dt {
  color: var(--ink-secondary);
  font-weight: 500;
}

.verdict-row dd {
  margin: 0;
  color: var(--ink-primary);
}

/* Interactive Verification Trace Workbench */
.trace-workbench {
  background: var(--bg-trace);
  color: #e6edf5;
  border: 1px solid #263547;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 24, 34, 0.12);
}

.trace-header {
  padding: 14px 18px;
  background: var(--bg-trace-elevated);
  border-bottom: 1px solid #263547;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trace-scenario {
  font-size: 0.82rem;
  color: #b7c6d6;
}

.trace-scenario code {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
}

.trace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #0c131b;
  border-bottom: 1px solid #263547;
}

.trace-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid #263547;
  border-bottom: 2px solid transparent;
  color: #9fb1c4;
  padding: 11px 10px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  line-height: 1.25;
}

.trace-tab:last-child {
  border-right: 0;
}

.trace-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.trace-tab[aria-selected="true"] {
  color: #ffffff;
  background: var(--bg-trace);
  border-bottom-color: #4da3ff;
  font-weight: 600;
}

.trace-body {
  padding: 18px;
}

.trace-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.stage-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 3px;
  background: #1a2736;
  color: #c6d4e3;
  border: 1px solid #2c3e53;
}

.stage-pill.is-pass {
  background: rgba(25, 135, 84, 0.2);
  color: #8ce0b5;
  border-color: rgba(140, 224, 181, 0.35);
}

.stage-pill.is-warn {
  background: rgba(217, 119, 6, 0.2);
  color: #fcd38d;
  border-color: rgba(252, 211, 141, 0.35);
}

.stage-pill.is-fail {
  background: rgba(220, 38, 38, 0.22);
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.35);
}

.trace-code {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #0b1118;
  border: 1px solid #223041;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
  color: #dce6f2;
}

.diff-add {
  color: #8ce0b5;
}

.diff-warn {
  color: #fcd38d;
}

.diff-comment {
  color: #8499b0;
}

.trace-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.trace-metric {
  background: var(--bg-trace-elevated);
  border: 1px solid #263547;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.trace-metric-label {
  display: block;
  font-size: 0.75rem;
  color: #9ab0c7;
  margin-bottom: 3px;
}

.trace-metric-value {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 500;
  color: #ffffff;
}

.trace-finding {
  margin: 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.5;
  border: 1px solid #2c3e53;
  background: #15212f;
  color: #dbe6f2;
}

.trace-finding[data-tone="pass"] {
  border-color: rgba(140, 224, 181, 0.4);
  background: rgba(17, 102, 65, 0.22);
}

.trace-finding[data-tone="warn"] {
  border-color: rgba(252, 211, 141, 0.4);
  background: rgba(140, 65, 0, 0.22);
}

.trace-finding[data-tone="fail"] {
  border-color: rgba(252, 165, 165, 0.4);
  background: rgba(158, 28, 40, 0.24);
}

/* ==========================================================================
   Two-Column Specification Body Layout
   ========================================================================== */

.spec-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(48px, 7vw, 88px);
  align-items: start;
}

.spec-rail {
  position: sticky;
  top: 84px;
}

.rail-heading {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-tertiary);
}

.rail-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-left: 1px solid var(--border-hairline);
}

.rail-list li {
  margin: 0;
}

.rail-list a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-secondary);
  text-decoration: none;
}

.rail-list a:hover {
  color: var(--ink-primary);
  border-left-color: var(--border-strong);
}

.rail-list a.is-active {
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
  font-weight: 600;
}

.rail-related {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.rail-related-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.rail-related-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.83rem;
  line-height: 1.4;
}

.spec-main {
  min-width: 0;
}

.spec-section {
  padding-bottom: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--border-hairline);
  scroll-margin-top: 84px;
}

.spec-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink-primary);
}

.prose {
  max-width: 66ch;
  color: var(--ink-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.prose p {
  margin: 0 0 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink-primary);
  font-weight: 600;
}

/* ==========================================================================
   Architecture Taxonomy Table / Grid
   ========================================================================== */

.taxonomy-list {
  margin-top: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.taxonomy-item {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-hairline);
}

.taxonomy-item:last-child {
  border-bottom: 0;
}

.taxonomy-name {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.taxonomy-examples {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-tertiary);
}

.taxonomy-desc {
  margin: 0 0 10px;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.58;
  max-width: 64ch;
}

.taxonomy-tradeoff {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-primary);
}

/* ==========================================================================
   Interactive Requirement Matcher
   ========================================================================== */

.matcher-panel {
  margin-top: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
}

.matcher-controls-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.matcher-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.btn-reset {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  min-height: 38px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
}

.btn-reset:hover {
  color: var(--ink-primary);
  background: var(--bg-subtle);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-chip:hover {
  background: var(--bg-subtle);
}

.filter-chip[aria-pressed="true"] {
  background: var(--accent-tint);
  border-color: var(--accent-primary);
  color: var(--accent-hover);
  font-weight: 600;
}

.chip-indicator {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.matcher-results {
  display: grid;
  gap: 10px;
}

.matcher-row {
  display: grid;
  grid-template-columns: 210px 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.matcher-row.is-top-match {
  border-color: var(--accent-border);
  background: #f7fbff;
}

.matcher-row.is-dimmed {
  opacity: 0.56;
  background: var(--bg-canvas);
}

.matcher-tool-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-primary);
}

.matcher-tool-cat {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-tertiary);
  font-weight: 400;
}

.matcher-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  width: fit-content;
}

.badge-pass {
  background: var(--pass-bg);
  color: var(--pass-fg);
  border: 1px solid var(--pass-border);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
  border: 1px solid var(--warn-border);
}

.badge-neutral {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--border-hairline);
}

.matcher-reason {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Semantic Comparison Matrix Table
   ========================================================================== */

.table-scroll {
  margin-top: 22px;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.865rem;
  line-height: 1.45;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--bg-subtle);
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-strong);
}

.comparison-table tbody th {
  font-weight: 600;
  color: var(--ink-primary);
  background: var(--bg-surface);
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid var(--border-hairline);
  min-width: 155px;
}

.comparison-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  border-right: 1px solid var(--border-strong);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-table tr.row-highlight th,
.comparison-table tr.row-highlight td {
  background: #f5f9fe;
}

.comparison-table tr.row-highlight th {
  border-left: 3px solid var(--accent-primary);
}

/* ==========================================================================
   Detailed Platform Specification Sheets (Zero SaaS Card Slop)
   ========================================================================== */

.eval-sheet {
  padding: 28px 0;
  border-top: 1px solid var(--border-hairline);
  scroll-margin-top: 84px;
}

.eval-sheet:first-of-type {
  margin-top: 16px;
}

.eval-sheet-featured {
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 26px 26px;
  margin-top: 22px;
  margin-bottom: 8px;
  scroll-margin-top: 84px;
}

.eval-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.eval-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.eval-classification {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-tertiary);
}

.eval-summary {
  margin: 0 0 18px;
  max-width: 66ch;
  color: var(--ink-secondary);
  line-height: 1.62;
}

.eval-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}

.eval-subhead {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.eval-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 0.91rem;
  line-height: 1.55;
}

.eval-list li {
  margin-bottom: 6px;
}

.eval-list li:last-child {
  margin-bottom: 0;
}

.eval-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.875rem;
}

.eval-fit {
  color: var(--ink-primary);
}

.cap-section {
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.cap-item {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.cap-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.cap-desc {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.48;
  color: var(--ink-secondary);
}

/* ==========================================================================
   FAQ Accordions (<details> / <summary>)
   ========================================================================== */

.faq-stack {
  margin-top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.faq-item {
  border-bottom: 1px solid var(--border-hairline);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-tertiary);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-primary);
}

.faq-answer {
  padding: 0 22px 20px;
  max-width: 68ch;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.64;
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Subpage Article & Interactive Rubric Controls
   ========================================================================== */

.page-header {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(26px, 4vw, 40px);
  background: #ffffff;
  border-bottom: 1px solid var(--border-hairline);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-tertiary);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  font-weight: 600;
  max-width: 24ch;
}

.callout-box {
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
}

.callout-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink-primary);
}

.callout-box p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  max-width: 66ch;
}

.code-panel {
  margin: 20px 0;
  background: var(--bg-trace);
  color: #e6edf5;
  border-radius: var(--radius-sm);
  border: 1px solid #263547;
  overflow: hidden;
}

.code-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-trace-elevated);
  border-bottom: 1px solid #263547;
  font-size: 0.82rem;
  color: #b7c6d6;
}

.copy-btn {
  appearance: none;
  background: #233346;
  color: #ffffff;
  border: 1px solid #39506b;
  border-radius: 3px;
  padding: 6px 12px;
  min-height: 36px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.copy-btn:hover {
  background: #2d425a;
}

.code-panel pre {
  margin: 0;
  padding: 16px;
  font-size: 0.8125rem;
  line-height: 1.58;
  overflow-x: auto;
}

.weight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.weight-control {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.weight-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.weight-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
  min-height: 28px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-hairline);
  padding: 40px 0 48px;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.footer-disclosure {
  margin: 0 0 12px;
  max-width: 54ch;
  line-height: 1.58;
  color: var(--ink-secondary);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-rail {
    position: static;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 16px;
  }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 0;
    margin-bottom: 14px;
  }

  .rail-list a {
    border-left: 0;
    padding: 6px 10px;
    margin-left: 0;
    background: var(--bg-canvas);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 760px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-strong);
    padding: 12px var(--gutter) 16px;
    box-shadow: 0 10px 24px rgba(18, 26, 36, 0.08);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    justify-content: center;
  }

  .verdict-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .trace-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .trace-tab {
    border-right: 0;
    border-bottom: 1px solid #263547;
  }

  .trace-tab[aria-selected="true"] {
    border-left: 3px solid #4da3ff;
    border-bottom-color: #263547;
  }

  .trace-outcome-grid,
  .taxonomy-item,
  .matcher-row,
  .eval-columns,
  .cap-grid,
  .weight-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .taxonomy-item {
    gap: 10px;
    padding: 18px;
  }

  .matcher-panel,
  .eval-sheet-featured {
    padding: 18px;
  }
}
