:root {
  --bg: #08100f;
  --bg-2: #0d1715;
  --panel: #111e1b;
  --panel-2: #162521;
  --text: #eaf5ef;
  --muted: #9eb3a9;
  --line: #294039;
  --accent: #78f0b0;
  --accent-2: #b8ffd9;
  --warning: #ffd782;
  --danger: #ff9c9c;
  --success: #8cf1ba;
  --white-room: #f7f7f7;
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0,0,0,.24);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height:1.6; }
a { color:var(--accent-2); text-decoration-thickness:1px; text-underline-offset:3px; }
a:hover { color:var(--accent); }
img { max-width:100%; }
button, input { font:inherit; }
button { cursor:pointer; }
button:disabled, input:disabled { opacity:.6; cursor:not-allowed; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

.shell { width:min(var(--shell), calc(100% - 32px)); margin:0 auto; }
.skip-link { position:absolute; left:-9999px; top:auto; }
.skip-link:focus { left:16px; top:16px; z-index:999; background:#fff; color:#000; padding:10px 14px; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.site-header { position:sticky; top:0; z-index:50; background:rgba(8,16,15,.92); backdrop-filter:blur(14px); border-bottom:1px solid rgba(120,240,176,.12); }
.header-inner { min-height:72px; display:flex; align-items:center; gap:28px; }
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; font-weight:800; letter-spacing:-.02em; }
.brand-mark { display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--accent); border-radius:50%; color:var(--accent); font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
.primary-nav { display:flex; gap:22px; margin-left:auto; }
.primary-nav a { position:relative; color:var(--muted); text-decoration:none; font-weight:650; font-size:.95rem; transition:color .15s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color:var(--text); }
.primary-nav a[aria-current="page"]::after { content:""; position:absolute; left:0; right:0; bottom:-10px; height:2px; border-radius:999px; background:var(--accent); }
.header-search { width:180px; }
.header-search input, .wide-input, .search-page-form input, .answer-row input { width:100%; background:#0a1412; border:1px solid var(--line); color:var(--text); border-radius:10px; padding:11px 13px; outline:none; }
.header-search input:focus, .wide-input:focus, .search-page-form input:focus, .answer-row input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(120,240,176,.12); }

.hero { padding:76px 0 64px; background:radial-gradient(circle at 75% 10%, rgba(120,240,176,.11), transparent 32%), linear-gradient(180deg,#091310 0%,#08100f 100%); border-bottom:1px solid var(--line); }
.hero-content { max-width:900px; }
.eyebrow { color:var(--accent); text-transform:uppercase; letter-spacing:.14em; font:700 .76rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; margin:0 0 12px; }
h1,h2,h3 { line-height:1.15; letter-spacing:-.035em; margin-top:0; }
h1 { font-size:clamp(2.5rem,6vw,5rem); margin-bottom:22px; }
h2 { font-size:clamp(1.65rem,3vw,2.45rem); }
h3 { font-size:1.25rem; }
.hero-copy, .lead { font-size:1.2rem; color:#c7d8d0; max-width:760px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin:28px 0 22px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:11px 18px; border-radius:11px; border:1px solid transparent; text-decoration:none; font-weight:750; transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease; }
.button-primary { background:var(--accent); color:#062015; border-color:var(--accent); }
.button-primary:hover { background:var(--accent-2); color:#062015; transform:translateY(-1px); }
.button-secondary { background:transparent; color:var(--text); border-color:var(--line); }
.button-secondary:hover, .button-quiet:hover { border-color:var(--accent); background:rgba(120,240,176,.05); transform:translateY(-1px); }
.button-quiet { background:#0b1513; color:var(--text); border-color:var(--line); }
.session-stats { display:flex; gap:24px; color:var(--muted); }
.session-stats strong { color:var(--text); font-size:1.25rem; }
.session-stats.large { margin-bottom:28px; font-size:1.1rem; }
.session-stats.large strong { font-size:2rem; }
.hero-visual { position:relative; margin-top:42px; overflow:hidden; border:1px solid rgba(120,240,176,.22); border-radius:24px; background:#050914; box-shadow:0 30px 90px rgba(0,0,0,.38); }
.hero-visual::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow:inset 0 0 0 1px rgba(255,255,255,.03), inset 0 -80px 120px rgba(2,8,14,.16); }
.hero-visual img { display:block; width:100%; height:auto; }

.page-hero { padding:78px 0 58px; border-bottom:1px solid var(--line); background:linear-gradient(180deg,#0b1613,#08100f); }
.page-hero.compact { padding:54px 0 42px; }
.page-hero.compact h1, .challenge-hero h1 { font-size:clamp(2.2rem,5vw,4rem); }
.page-hero p:last-child { max-width:820px; color:#c7d8d0; }
.reviewed { color:var(--muted)!important; font-size:.9rem; }

.breadcrumbs { margin-bottom:20px; }
.breadcrumbs ol { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0; font-size:.85rem; color:var(--muted); }
.breadcrumbs li:not(:last-child)::after { content:"/"; margin-left:8px; color:#49635a; }
.breadcrumbs a { color:var(--muted); text-decoration:none; }

.section { padding:68px 0; }
.section-alt { background:var(--bg-2); border-block:1px solid var(--line); }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.section-heading h2 { margin-bottom:0; }
.card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.challenge-card, .article-card, .panel, .search-result { border:1px solid var(--line); background:linear-gradient(180deg,var(--panel),#0c1714); border-radius:var(--radius); }
.challenge-card { padding:22px; min-height:245px; display:flex; flex-direction:column; }
.challenge-card h2 { font-size:1.35rem; margin:16px 0 10px; }
.challenge-card h2 a { color:var(--text); text-decoration:none; }
.challenge-card p { color:var(--muted); }
.card-topline, .card-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.card-topline { justify-content:space-between; }
.card-meta { margin-top:auto; padding-top:18px; border-top:1px solid rgba(120,240,176,.09); font-size:.82rem; color:var(--muted); }
.challenge-number { color:var(--accent); font:700 .75rem ui-monospace, monospace; }
.difficulty { display:inline-flex; padding:4px 8px; border-radius:999px; border:1px solid var(--line); font-size:.75rem; font-weight:800; }
.difficulty-beginner { color:#b8ffd9; }
.difficulty-intermediate { color:#ffe2a8; }
.difficulty-advanced { color:#ffc0c0; }
.solved-badge { color:var(--success); }
.article-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.article-grid.large { grid-template-columns:repeat(2,minmax(0,1fr)); }
.article-card { padding:24px; }
.article-card h2, .article-card h3 { margin:10px 0 12px; }
.article-card h2 a, .article-card h3 a { color:var(--text); text-decoration:none; }
.article-card p { color:var(--muted); }
.split-panel { display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; }
.split-panel p { color:#c1d3ca; }

.filter-row { display:flex; gap:9px; flex-wrap:wrap; margin-bottom:24px; }
.filter-chip { padding:7px 11px; border:1px solid var(--line); border-radius:999px; text-decoration:none; color:var(--muted); }
.filter-chip:hover { color:var(--text); border-color:var(--accent); }

.challenge-title-row { display:grid; grid-template-columns:1fr auto; gap:30px; align-items:end; }
.case-scorecard { min-width:180px; padding:18px; border:1px solid var(--line); border-radius:var(--radius); display:grid; gap:8px; background:#0b1513; }
.case-scorecard strong { font-size:1.5rem; }
.case-scorecard small { color:var(--muted); }
.challenge-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
.challenge-main { min-width:0; }
.challenge-sidebar { min-width:0; }
.sticky-panel { position:sticky; top:92px; }
.panel { padding:22px; margin-bottom:20px; }
.panel-header { display:flex; justify-content:space-between; gap:20px; align-items:center; border-bottom:1px solid rgba(120,240,176,.09); padding-bottom:14px; margin-bottom:18px; }
.panel-header h2 { font-size:1.15rem; margin:0; }
.panel-header span { color:var(--muted); font-size:.8rem; }
.artifact { border:1px solid #29433b; background:#080d0c; border-radius:12px; padding:26px; min-height:170px; overflow:auto; }
.artifact p:first-child { margin-top:0; }
.artifact p:last-child { margin-bottom:0; }
.artifact-line { white-space:pre-wrap; }
.wrap-anywhere { overflow-wrap:anywhere; word-break:break-word; }
.artifact-note { padding:16px; border-left:3px solid #3c6156; background:#0d1715; }
.artifact-card { padding:18px; border:1px dashed #3c6156; border-radius:10px; }
.terminal { margin:0; color:#b9f6d2; font-size:.9rem; white-space:pre-wrap; }
.white-room { background:var(--white-room); color:#111; border-radius:8px; padding:22px; }
.white-room .ghost-white { color:var(--white-room); background:var(--white-room); user-select:text; }
.challenge-orbit { --fugitive-signal: "ORBIT"; }
.answer-panel label, .search-page-form label, .section>label { display:block; font-weight:700; margin-bottom:8px; }
.answer-row { display:flex; gap:10px; }
.answer-row input { flex:1; }
.status-box { min-height:26px; margin-top:14px; color:var(--muted); }
.status-success { color:var(--success); }
.status-error { color:var(--danger); }
.hint-controls { display:flex; align-items:center; gap:14px; margin-top:18px; }
.hint-controls span { color:var(--muted); font-size:.86rem; }
.hint-list { color:#d4e5dd; }
.hint-list li { margin:8px 0; }
.is-hidden { display:none; }
.solution-panel { border-color:rgba(120,240,176,.42); }
.solution-panel h3 { color:var(--accent-2); }
.stat-list { margin:0; }
.stat-list div { display:flex; justify-content:space-between; gap:14px; padding:10px 0; border-bottom:1px solid rgba(120,240,176,.08); }
.stat-list dt { color:var(--muted); }
.stat-list dd { margin:0; text-align:right; }
.small-note { color:var(--muted); font-size:.82rem; }

.content-article { max-width:820px; }
.content-article p { color:#c8d9d1; font-size:1.04rem; }
.longform h2 { margin-top:38px; }
.article-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:50px; align-items:start; }
.faq-section { margin-top:46px; }
details { border-top:1px solid var(--line); padding:14px 0; }
details:last-child { border-bottom:1px solid var(--line); }
summary { cursor:pointer; font-weight:750; color:var(--text); }
details p { color:var(--muted); }
.glossary-list { margin-top:28px; }
.glossary-list>div { display:grid; grid-template-columns:220px 1fr; gap:30px; padding:18px 0; border-top:1px solid var(--line); }
.glossary-list dt { font-weight:800; color:var(--accent-2); }
.glossary-list dd { margin:0; color:#c6d7cf; }
.wide-input { max-width:520px; margin-top:8px; }
.search-results { display:grid; gap:14px; }
.search-result { padding:20px; }
.search-result h2 { font-size:1.25rem; margin:5px 0 8px; }
.search-result h2 a { color:var(--text); }
.search-result p { color:var(--muted); margin-bottom:0; }
.search-page-form { max-width:720px; margin-top:24px; }

.site-footer { border-top:1px solid var(--line); background:#060c0b; padding:54px 0 24px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:50px; }
.footer-grid h2 { font-size:1rem; margin-bottom:12px; }
.footer-grid p { color:var(--muted); max-width:520px; }
.footer-grid>div:not(:first-child) { display:flex; flex-direction:column; gap:7px; }
.footer-grid a { color:var(--muted); text-decoration:none; }
.footer-grid a:hover { color:var(--text); }
.footer-bottom { margin-top:40px; padding-top:20px; border-top:1px solid #172621; display:flex; justify-content:space-between; gap:20px; color:#789087; font-size:.8rem; }

.mobile-nav { display:none; position:relative; margin:0; border:0; }
.mobile-nav > summary { min-height:44px; display:flex; align-items:center; justify-content:center; padding:9px 13px; border:1px solid var(--line); border-radius:10px; background:#0a1412; color:var(--text); list-style:none; user-select:none; }
.mobile-nav > summary::-webkit-details-marker { display:none; }
.mobile-nav[open] > summary { border-color:var(--accent); background:#0d1a16; }
.mobile-nav-panel { position:absolute; top:calc(100% + 12px); right:0; width:min(320px,calc(100vw - 32px)); padding:10px; border:1px solid var(--line); border-radius:14px; background:rgba(8,16,15,.985); box-shadow:0 22px 60px rgba(0,0,0,.45); }
.mobile-nav-panel nav { display:grid; gap:4px; }
.mobile-nav-panel nav a { display:flex; align-items:center; min-height:44px; padding:9px 11px; border-radius:9px; color:var(--muted); text-decoration:none; font-weight:700; }
.mobile-nav-panel nav a:hover, .mobile-nav-panel nav a[aria-current="page"] { color:var(--text); background:rgba(120,240,176,.08); }
.mobile-nav-search { display:none; margin-top:10px; padding-top:12px; border-top:1px solid rgba(120,240,176,.12); }
.mobile-nav-search label { display:block; margin-bottom:7px; color:var(--muted); font-size:.8rem; font-weight:700; }
.mobile-nav-search input { width:100%; background:#0a1412; border:1px solid var(--line); color:var(--text); border-radius:10px; padding:11px 13px; outline:none; }
.mobile-nav-search input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(120,240,176,.12); }

@media (max-width: 960px) {
  .header-inner { gap:12px; }
  .primary-nav { display:none; }
  .header-search { margin-left:auto; }
  .mobile-nav { display:block; }
  .split-panel, .challenge-layout, .article-layout { grid-template-columns:1fr; }
  .card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .article-grid, .article-grid.large { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sticky-panel { position:static; }
  .challenge-title-row { grid-template-columns:1fr; }
  .case-scorecard { max-width:260px; }
}

@media (max-width: 620px) {
  .header-inner { min-height:66px; }
  .header-search { display:none; }
  .mobile-nav { margin-left:auto; }
  .mobile-nav-search { display:block; }
  .hero { padding:58px 0 48px; }
  .hero-visual { margin-top:32px; border-radius:16px; }
  .section { padding:48px 0; }
  .card-grid, .article-grid, .article-grid.large, .footer-grid { grid-template-columns:1fr; }
  .answer-row { flex-direction:column; }
  .section-heading { align-items:start; flex-direction:column; }
  .glossary-list>div { grid-template-columns:1fr; gap:5px; }
  .footer-bottom { flex-direction:column; }
  .panel-header { align-items:flex-start; flex-direction:column; gap:4px; }
}

/* Challenge-safe Machine View: native disclosure, inert representation output. */
.machine-view { padding:0; overflow:hidden; }
.machine-view > summary { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:20px 22px; list-style-position:inside; }
.machine-view > summary span, .machine-view-pane > summary span { color:var(--muted); font-size:.8rem; font-weight:600; }
.machine-view[open] > summary { border-bottom:1px solid rgba(120,240,176,.09); }
.machine-view-intro { padding:18px 22px 4px; }
.machine-view-intro p { margin-top:0; color:#c8d9d1; }
.machine-view-pane { margin:0 22px; padding:14px 0; }
.machine-view-pane:last-child { margin-bottom:18px; }
.machine-view-pane > summary { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.machine-view-output { margin:14px 0 2px; max-height:440px; overflow:auto; padding:16px; border:1px solid #29433b; border-radius:10px; background:#070c0b; color:#c9f8dc; font:500 .78rem/1.55 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace; white-space:pre-wrap; overflow-wrap:anywhere; tab-size:4; }
.machine-view-output:focus { outline:2px solid var(--accent); outline-offset:2px; }
.machine-view-characters { white-space:pre; overflow-wrap:normal; }

@media (max-width: 620px) {
  .machine-view > summary, .machine-view-pane > summary { align-items:flex-start; flex-direction:column; gap:4px; }
  .machine-view-output { max-height:360px; font-size:.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .machine-view * { scroll-behavior:auto !important; }
}

/* CASE 019: controlled comparison evidence layout. */
.controlled-differential section { margin-top:22px; }
.controlled-sample { display:grid; grid-template-columns:170px minmax(0,1fr); gap:14px; align-items:start; padding:10px 0; border-top:1px solid rgba(120,240,176,.08); }
.controlled-sample strong { font-size:.86rem; color:#d5e6de; }
.controlled-sample-line { display:block; min-width:0; overflow-x:auto; white-space:pre; color:#b9f6d2; }
.controlled-table-wrap { overflow-x:auto; }
.controlled-evidence-table { width:100%; border-collapse:collapse; min-width:560px; }
.controlled-evidence-table th, .controlled-evidence-table td { padding:10px 12px; border-top:1px solid rgba(120,240,176,.1); text-align:left; vertical-align:top; }
.controlled-evidence-table thead th { color:#d5e6de; font-size:.82rem; }
.controlled-evidence-table tbody th { color:#c8d9d1; font-weight:650; }
.controlled-evidence-table td { color:var(--muted); font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace; font-size:.82rem; }

@media (max-width: 620px) {
  .controlled-sample { grid-template-columns:1fr; gap:5px; }
}

/* Michael Kappel public profile/contact page. */
.profile-hero {
  position:relative;
  overflow:hidden;
  padding:44px 0 50px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(circle at 78% 12%, rgba(120,240,176,.105), transparent 25%),
    linear-gradient(180deg,#091310 0%,#08100f 100%);
}
.profile-hero::after {
  content:"";
  position:absolute;
  right:-10vw;
  bottom:-280px;
  width:560px;
  height:560px;
  border:1px solid rgba(120,240,176,.055);
  border-radius:50%;
  pointer-events:none;
}
.profile-hero-grid {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,320px);
  gap:clamp(44px,6vw,76px);
  align-items:start;
}
.profile-hero-copy { min-width:0; max-width:800px; padding-top:2px; }
.profile-hero .breadcrumbs { margin-bottom:18px; }
.profile-hero h1 { margin:7px 0 14px; font-size:clamp(3rem,5vw,4.7rem); line-height:.97; letter-spacing:-.056em; }
.profile-headline { max-width:720px; margin:0; color:var(--accent-2); font-size:clamp(1.12rem,1.72vw,1.4rem); font-weight:760; line-height:1.36; letter-spacing:-.018em; }
.profile-lede { max-width:750px; margin:16px 0 0; color:#c3d5cc; font-size:.98rem; line-height:1.6; }
.profile-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.profile-hero-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:22px 0 0; padding:16px 0 0; border-top:1px solid rgba(120,240,176,.15); }
.profile-hero-metrics > div { min-width:0; display:flex; flex-direction:column; padding:0 18px; border-left:1px solid rgba(120,240,176,.12); }
.profile-hero-metrics > div:first-child { padding-left:0; border-left:0; }
.profile-hero-metrics dt { color:var(--muted); font-size:.7rem; line-height:1.35; }
.profile-hero-metrics dd { order:-1; margin:0 0 4px; color:var(--accent-2); font-size:1.16rem; font-weight:850; line-height:1.05; letter-spacing:-.035em; }
.profile-portrait-card { width:100%; max-width:320px; justify-self:end; margin:0; padding:8px; border:1px solid rgba(120,240,176,.25); border-radius:22px; background:linear-gradient(180deg,rgba(22,37,33,.96),rgba(8,16,15,.96)); box-shadow:0 24px 70px rgba(0,0,0,.3); }
.profile-portrait-frame { position:relative; overflow:hidden; border-radius:15px; background:#0a1210; }
.profile-portrait-frame::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow:inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -62px 100px rgba(2,8,6,.12); }
.profile-portrait-card img { display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; object-position:center 28%; }
.profile-portrait-card figcaption { display:flex; justify-content:space-between; gap:16px; padding:10px 6px 2px; color:var(--muted); font-size:.75rem; }
.profile-portrait-card figcaption span:first-child { color:#cfe0d8; font-weight:700; }

.profile-section { padding-top:58px; padding-bottom:64px; }
.profile-section-heading { margin-bottom:26px; }
.profile-section-heading > div { max-width:760px; }
.profile-section-heading > p { max-width:360px; margin:0; color:var(--muted); }
.profile-focus-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.profile-focus-card { position:relative; overflow:hidden; min-height:220px; padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(145deg,var(--panel),#0b1513); }
.profile-focus-card::before { content:""; position:absolute; inset:0 auto 0 0; width:2px; background:linear-gradient(180deg,var(--accent),transparent 72%); opacity:.8; }
.profile-focus-card-topline { min-height:25px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.profile-focus-card h3 { margin:16px 0 9px; font-size:1.3rem; }
.profile-focus-card p { max-width:560px; margin:0; color:var(--muted); line-height:1.65; }
.profile-code { display:inline-flex; padding:4px 8px; border:1px solid rgba(120,240,176,.22); border-radius:999px; background:rgba(120,240,176,.04); color:var(--accent); font:800 .7rem ui-monospace,monospace; letter-spacing:.09em; }
.profile-focus-mark { width:8px; height:8px; border-radius:50%; background:rgba(120,240,176,.55); box-shadow:0 0 0 4px rgba(120,240,176,.06); }

.profile-contact-section { padding-top:72px; padding-bottom:46px; }
.profile-contact-grid { display:grid; grid-template-columns:minmax(0,.92fr) minmax(430px,1.08fr); gap:clamp(38px,6vw,72px); align-items:start; }
.profile-contact-intro > p:not(.eyebrow) { max-width:610px; color:#c4d6cd; line-height:1.72; }
.profile-link-cards { display:grid; gap:10px; margin-top:28px; }
.profile-link-card { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:78px; padding:15px 17px; border:1px solid rgba(120,240,176,.16); border-radius:13px; background:rgba(8,16,15,.55); color:var(--text); text-decoration:none; transition:background-color .15s ease,border-color .15s ease,transform .15s ease; }
.profile-link-card:hover { border-color:rgba(120,240,176,.5); background:rgba(120,240,176,.06); color:var(--text); transform:translateY(-1px); }
.profile-link-card > span:first-child { min-width:0; display:grid; gap:3px; }
.profile-link-card small { color:var(--muted); font-size:.74rem; }
.profile-link-card strong { overflow-wrap:anywhere; font-size:.98rem; }
.profile-link-card > span:last-child { color:var(--accent); font-size:1.05rem; }
.profile-contact-card { margin:0; padding:8px 18px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(180deg,#0c1714,#09110f); box-shadow:0 20px 50px rgba(0,0,0,.14); font-style:normal; }
.profile-contact-card a, .profile-contact-card > div { display:grid; grid-template-columns:92px minmax(0,1fr) 20px; gap:18px; align-items:center; min-height:65px; padding:12px 8px; border-bottom:1px solid rgba(120,240,176,.1); text-decoration:none; }
.profile-contact-card a { margin-inline:-8px; padding-inline:16px; border-radius:9px; transition:background-color .15s ease; }
.profile-contact-card a:hover { background:rgba(120,240,176,.055); }
.profile-contact-card > :last-child { border-bottom:0; }
.profile-contact-card span { color:var(--muted); font-size:.84rem; }
.profile-contact-card strong { min-width:0; color:var(--text); text-align:right; overflow-wrap:anywhere; font-size:.94rem; }
.profile-contact-card .profile-contact-arrow { color:#6d8f80; text-align:right; }
.profile-contact-card a:hover .profile-contact-arrow { color:var(--accent); }
.profile-source-note { margin:34px 0 0; padding-top:20px; border-top:1px solid rgba(120,240,176,.1); color:#789087; font-size:.8rem; }
.profile-source-note a { color:#a6bbb0; }

@media (max-width: 1100px) and (min-width: 901px) {
  .profile-focus-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-focus-card { min-height:190px; }
}

@media (max-width: 900px) {
  .profile-hero-grid, .profile-contact-grid { grid-template-columns:1fr; }
  .profile-hero-copy { max-width:none; }
  .profile-portrait-card { max-width:320px; justify-self:start; }
  .profile-section-heading > p { max-width:620px; }
  .profile-focus-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-focus-card { min-height:190px; }
}

@media (max-width: 620px) {
  .profile-hero { padding:40px 0 46px; }
  .profile-hero .breadcrumbs { margin-bottom:24px; }
  .profile-hero h1 { font-size:clamp(2.9rem,15vw,4.2rem); }
  .profile-headline { font-size:1.12rem; }
  .profile-lede { margin-top:18px; font-size:.98rem; line-height:1.62; }
  .profile-actions { margin-top:24px; }
  .profile-actions .button { flex:1 1 calc(50% - 5px); }
  .profile-actions .button-primary { flex-basis:100%; }
  .profile-hero-metrics { margin-top:28px; padding-top:18px; }
  .profile-hero-metrics > div { padding:0 10px; }
  .profile-hero-metrics dd { font-size:1.02rem; }
  .profile-hero-metrics dt { font-size:.64rem; }
  .profile-portrait-card { max-width:260px; justify-self:center; }
  .profile-section { padding-top:50px; padding-bottom:54px; }
  .profile-focus-grid { grid-template-columns:1fr; }
  .profile-focus-card { min-height:0; padding:21px; }
  .profile-contact-section { padding-top:54px; }
  .profile-contact-grid { gap:34px; }
  .profile-contact-card { padding-inline:12px; }
  .profile-contact-card a, .profile-contact-card > div { grid-template-columns:76px minmax(0,1fr) 16px; gap:10px; }
  .profile-contact-card strong { font-size:.88rem; }
}

@media (max-width: 430px) {
  .profile-portrait-card figcaption { font-size:.74rem; }
  .profile-contact-card a, .profile-contact-card > div { grid-template-columns:68px minmax(0,1fr) 16px; gap:8px; }
  .profile-contact-card strong { font-size:.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .profile-link-card { transition:none; }
  .button:hover, .profile-link-card:hover { transform:none; }
}

/* Investigation Workspace v1. */
.investigation-hero { padding:62px 0 54px; }
.investigation-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:52px; align-items:end; }
.investigation-hero h1 { max-width:860px; margin:10px 0 18px; font-size:clamp(2.7rem,5.2vw,4.7rem); letter-spacing:-.052em; line-height:.98; }
.investigation-hero p:last-child { max-width:780px; }
.investigation-privacy-card { display:flex; gap:13px; align-items:flex-start; padding:18px; border:1px solid rgba(120,240,176,.2); border-radius:14px; background:rgba(120,240,176,.035); }
.investigation-privacy-card .status-dot { flex:0 0 10px; width:10px; height:10px; margin-top:6px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px rgba(120,240,176,.08); }
.investigation-privacy-card div { display:grid; gap:4px; }
.investigation-privacy-card strong { color:var(--text); }
.investigation-privacy-card span { color:var(--muted); font-size:.85rem; line-height:1.45; }
.investigation-shell { padding-top:38px; }
.investigation-toolbar { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; }
.investigation-toolbar h2 { margin:3px 0 3px; font-size:1.45rem; }
.investigation-toolbar .eyebrow { margin:0; }
.investigation-toolbar-actions { display:flex; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
.investigation-grid { display:grid; grid-template-columns:280px minmax(0,1fr); gap:24px; align-items:start; }
.investigation-sidebar { position:sticky; top:88px; }
.investigation-list { display:grid; gap:8px; }
.investigation-list-item { width:100%; display:grid; gap:5px; padding:12px 13px; text-align:left; border:1px solid rgba(120,240,176,.12); border-radius:10px; background:#0a1412; color:var(--text); }
.investigation-list-item:hover, .investigation-list-item[aria-current="true"] { border-color:rgba(120,240,176,.45); background:rgba(120,240,176,.055); }
.investigation-list-item strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.investigation-list-item span { color:var(--muted); font-size:.72rem; }
.evidence-rung-list { list-style:none; display:grid; gap:0; margin:0 0 18px; padding:0; }
.evidence-rung-list li { position:relative; display:grid; gap:2px; padding:10px 8px 10px 25px; border-left:1px solid rgba(120,240,176,.16); color:#657b72; }
.evidence-rung-list li::before { content:""; position:absolute; left:-5px; top:16px; width:9px; height:9px; border:2px solid #355047; border-radius:50%; background:#0c1714; }
.evidence-rung-list li strong { font-size:.75rem; letter-spacing:.04em; }
.evidence-rung-list li span { font-size:.7rem; }
.evidence-rung-list li.is-supported { color:#a7c4b7; border-left-color:rgba(120,240,176,.45); }
.evidence-rung-list li.is-supported::before { border-color:var(--accent); background:var(--accent); }
.evidence-rung-list li.is-current { color:var(--accent-2); }
.evidence-rung-list li.is-current strong { color:var(--accent-2); }
.investigation-main > .panel { margin-bottom:18px; }
.investigation-main label, .investigation-main .form-grid label { display:block; margin:0 0 7px; font-weight:700; font-size:.86rem; color:#d7e6df; }
.investigation-main input, .investigation-main select, .investigation-main textarea { width:100%; border:1px solid var(--line); border-radius:10px; background:#08110f; color:var(--text); padding:11px 12px; }
.investigation-main textarea { resize:vertical; min-height:96px; line-height:1.5; }
.investigation-main input:focus, .investigation-main select:focus, .investigation-main textarea:focus { outline:2px solid rgba(120,240,176,.45); outline-offset:1px; border-color:var(--accent); }
.form-grid { display:grid; gap:14px; margin-bottom:16px; }
.form-grid.two-up { grid-template-columns:repeat(2,minmax(0,1fr)); }
.form-grid.three-up { grid-template-columns:repeat(3,minmax(0,1fr)); }
.form-actions { display:flex; gap:14px; align-items:center; margin-top:14px; }
.investigation-case-link { margin-top:12px; }
.evidence-timeline { display:grid; gap:10px; margin-top:24px; }
.evidence-empty { padding:18px; border:1px dashed rgba(120,240,176,.18); border-radius:12px; color:var(--muted); text-align:center; }
.evidence-entry { padding:16px; border:1px solid rgba(120,240,176,.15); border-radius:12px; background:linear-gradient(180deg,#0c1714,#091310); }
.evidence-entry-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:9px; }
.evidence-entry-header > div { display:flex; align-items:center; gap:9px; }
.evidence-index { display:inline-flex; align-items:center; justify-content:center; min-width:29px; height:25px; border-radius:7px; background:rgba(120,240,176,.08); color:var(--accent); font:800 .68rem ui-monospace,monospace; }
.evidence-remove { border:0; background:transparent; color:#8ba39a; font-size:.75rem; text-decoration:underline; text-underline-offset:3px; }
.evidence-remove:hover { color:var(--accent-2); }
.evidence-entry p { margin:0 0 11px; color:#c7d8d0; white-space:pre-wrap; overflow-wrap:anywhere; }
.evidence-entry-meta { display:flex; gap:8px; flex-wrap:wrap; }
.evidence-entry-meta span, .evidence-entry-meta time { display:inline-flex; padding:4px 7px; border-radius:999px; background:rgba(120,240,176,.05); color:#819b90; font-size:.67rem; }
.assessment-status { display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:center; margin-bottom:20px; padding:17px; border:1px solid rgba(120,240,176,.18); border-radius:12px; background:rgba(120,240,176,.035); }
.assessment-status > div { display:grid; gap:4px; }
.assessment-status span { color:var(--muted); font-size:.72rem; }
.assessment-status strong { color:var(--accent-2); font-size:1.05rem; }
.assessment-status p { margin:0; color:#a9bdb4; font-size:.86rem; line-height:1.5; }
.assessment-actions { display:grid; grid-template-columns:220px minmax(0,1fr); gap:14px 20px; align-items:end; margin-top:15px; }
.assessment-actions label { grid-column:1; margin-bottom:-6px; }
.assessment-actions select { grid-column:1; }
.assessment-actions .status-box { grid-column:2; grid-row:1 / span 2; margin:0; align-self:stretch; display:flex; align-items:center; }
.status-warning { border-color:rgba(255,191,89,.35); background:rgba(255,191,89,.06); color:#f3c77e; }
.investigation-report { border:1px solid rgba(120,240,176,.12); border-radius:12px; padding:22px; background:#08110f; }
.investigation-report h3 { margin:6px 0 19px; font-size:1.55rem; }
.investigation-report h4 { margin:22px 0 7px; font-size:.95rem; }
.investigation-report > p:not(.eyebrow) { color:#bfd1c8; white-space:pre-wrap; overflow-wrap:anywhere; }
.report-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid rgba(120,240,176,.11); border-radius:10px; background:rgba(120,240,176,.1); }
.report-summary div { min-width:0; display:grid; gap:4px; padding:12px; background:#0a1512; }
.report-summary dt { color:var(--muted); font-size:.68rem; }
.report-summary dd { margin:0; overflow-wrap:anywhere; color:#d9e7e1; font-size:.82rem; font-weight:700; }

@media (max-width: 1050px) {
  .investigation-hero-grid { grid-template-columns:1fr; gap:24px; }
  .investigation-privacy-card { max-width:520px; }
  .investigation-grid { grid-template-columns:1fr; }
  .investigation-sidebar { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .investigation-sidebar .panel { margin-bottom:0; }
  .form-grid.three-up { grid-template-columns:1fr 1fr; }
  .form-grid.three-up > div:last-child { grid-column:1 / -1; }
}

@media (max-width: 700px) {
  .investigation-hero { padding:44px 0 40px; }
  .investigation-toolbar { align-items:flex-start; flex-direction:column; }
  .investigation-toolbar-actions { width:100%; justify-content:flex-start; }
  .investigation-toolbar-actions .button { flex:1 1 auto; }
  .investigation-sidebar { grid-template-columns:1fr; }
  .form-grid.two-up, .form-grid.three-up { grid-template-columns:1fr; }
  .form-grid.three-up > div:last-child { grid-column:auto; }
  .form-actions { align-items:flex-start; flex-direction:column; }
  .assessment-status, .assessment-actions { grid-template-columns:1fr; }
  .assessment-actions label, .assessment-actions select, .assessment-actions .status-box { grid-column:1; grid-row:auto; }
  .report-summary { grid-template-columns:1fr 1fr; }
}

@media (max-width: 430px) {
  .investigation-toolbar-actions .button { width:100%; }
  .report-summary { grid-template-columns:1fr; }
}
.investigation-case-cta { width:100%; margin:18px 0 14px; }
.investigation-home-callout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); gap:48px; align-items:center; padding-top:54px; padding-bottom:54px; }
.investigation-home-callout h2 { max-width:720px; margin-bottom:12px; }
.investigation-home-callout p:not(.eyebrow) { max-width:780px; margin:0; color:#b9ccc3; }
.investigation-home-actions { display:grid; gap:14px; justify-items:start; }
.report-evidence-list { display:grid; gap:9px; margin:10px 0 0; padding-left:22px; }
.report-evidence-list li { color:#bfd1c8; }
.report-evidence-list li strong { display:block; margin-bottom:2px; color:#dce9e3; font-size:.78rem; }
.report-evidence-list li span { white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width: 800px) {
  .investigation-home-callout { grid-template-columns:1fr; gap:24px; }
}

/* CASE 020: independent held-out replication evidence layout. */
.independent-replication > p:first-child { margin-top:0; }
.replication-rule { margin:18px 0 24px; padding:0; border:1px solid rgba(120,240,176,.18); border-radius:12px; background:rgba(9,22,18,.72); overflow:hidden; }
.replication-rule > summary { padding:14px 16px; color:#dff7e8; font-weight:760; cursor:pointer; }
.replication-rule[open] > summary { border-bottom:1px solid rgba(120,240,176,.12); }
.replication-rule-list { margin:0; padding:16px 20px 18px 38px; color:#c8d9d1; }
.replication-rule-list li + li { margin-top:9px; }
.replication-packet { margin-top:24px; padding:18px; border:1px solid rgba(120,240,176,.14); border-radius:14px; background:linear-gradient(145deg,rgba(13,29,24,.86),rgba(8,18,15,.7)); }
.replication-packet > h3 { margin-top:0; }
.replication-records { margin:16px 0 18px; }
.replication-control { background:rgba(120,240,176,.025); }
.replication-checkpoint { margin:22px 0; padding:15px 17px; border-left:3px solid var(--accent); border-radius:0 10px 10px 0; background:rgba(120,240,176,.06); color:#cfe2d8; }
.replication-heldout { margin-top:22px; border:1px solid rgba(120,240,176,.2); border-radius:14px; overflow:hidden; }
.replication-heldout > summary { padding:16px 18px; color:var(--accent-2); font-weight:800; cursor:pointer; background:rgba(9,23,19,.78); }
.replication-heldout[open] > summary { border-bottom:1px solid rgba(120,240,176,.12); }
.replication-heldout .replication-packet { margin:0; border:0; border-radius:0; }

@media (max-width: 620px) {
  .replication-packet { padding:14px; }
  .replication-rule-list { padding-left:32px; }
}

/* Concept Graph v1 */
.concept-hero { background:radial-gradient(circle at 78% 22%,rgba(120,240,176,.09),transparent 33%),linear-gradient(180deg,#0b1613,#08100f); }
.concept-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:58px; align-items:end; }
.concept-hero h1 { margin:8px 0 18px; font-size:clamp(3rem,6vw,5.4rem); letter-spacing:-.058em; }
.concept-hero .lead { max-width:790px; }
.concept-graph-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; border:1px solid rgba(120,240,176,.2); border-radius:18px; overflow:hidden; background:rgba(8,16,15,.7); }
.concept-graph-stats div { min-height:112px; display:flex; flex-direction:column; justify-content:center; padding:18px 20px; border-right:1px solid rgba(120,240,176,.12); border-bottom:1px solid rgba(120,240,176,.12); }
.concept-graph-stats div:nth-child(2n) { border-right:0; }
.concept-graph-stats div:nth-last-child(-n+2) { border-bottom:0; }
.concept-graph-stats dt { color:var(--muted); font-size:.76rem; }
.concept-graph-stats dd { order:-1; margin:0 0 3px; color:var(--accent-2); font-size:2rem; font-weight:850; letter-spacing:-.045em; }
.concept-graph-intro { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); gap:52px; align-items:center; }
.concept-graph-intro h2 { margin-bottom:12px; }
.concept-graph-intro > div:first-child > p:last-child { max-width:760px; color:#bed0c7; }
.concept-boundary-card { padding:22px; border:1px solid rgba(120,240,176,.2); border-radius:14px; background:rgba(120,240,176,.035); }
.concept-boundary-card strong { display:block; margin-bottom:7px; color:var(--accent-2); }
.concept-boundary-card p { margin:0; color:var(--muted); font-size:.9rem; }
.concept-browser-heading > p { max-width:480px; margin:0; color:var(--muted); text-align:right; }
.concept-domain-nav { display:flex; gap:9px; flex-wrap:wrap; margin:-4px 0 24px; }
.concept-domain-nav .filter-chip span { margin-left:6px; color:var(--accent); font:700 .72rem ui-monospace,monospace; }
.concept-controls { display:grid; grid-template-columns:minmax(250px,1fr) auto; gap:18px 24px; align-items:end; margin-bottom:42px; }
.concept-search-field label { display:block; margin-bottom:7px; color:#d7e6df; font-size:.86rem; font-weight:750; }
.concept-search-field input { width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:10px; background:#08110f; color:var(--text); outline:none; }
.concept-search-field input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(120,240,176,.12); }
.concept-domain-buttons { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.concept-domain-buttons .filter-chip { background:transparent; font:inherit; cursor:pointer; }
.concept-domain-buttons .filter-chip.is-active { border-color:var(--accent); background:rgba(120,240,176,.09); color:var(--text); }
.concept-control-status { color:var(--muted); font-size:.82rem; }
.concept-clear-focus { justify-self:end; min-height:38px; padding:7px 12px; font-size:.78rem; }
.concept-domain { scroll-margin-top:94px; margin-top:56px; }
.concept-domain:first-of-type { margin-top:24px; }
.concept-domain-heading { display:flex; justify-content:space-between; gap:28px; align-items:end; margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid rgba(120,240,176,.12); }
.concept-domain-heading h2 { margin:0 0 6px; }
.concept-domain-heading p:not(.eyebrow) { max-width:720px; margin:0; color:var(--muted); }
.concept-domain-heading > span { flex:0 0 auto; color:var(--accent); font:700 .76rem ui-monospace,monospace; }
.concept-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.concept-card { scroll-margin-top:94px; display:flex; flex-direction:column; min-width:0; padding:23px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(155deg,var(--panel),#0b1513); transition:border-color .15s ease,opacity .15s ease,transform .15s ease,box-shadow .15s ease; }
.concept-card:target, .concept-card.is-focused { border-color:var(--accent); box-shadow:0 0 0 2px rgba(120,240,176,.1),0 18px 60px rgba(0,0,0,.18); }
.concept-card.is-related { border-color:rgba(120,240,176,.45); }
.concept-card.is-dimmed { opacity:.38; }
.concept-card-header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.concept-card-header h3 { margin:8px 0 4px; font-size:1.42rem; }
.concept-domain-badge { display:inline-flex; padding:3px 8px; border:1px solid rgba(120,240,176,.18); border-radius:999px; color:var(--muted); font-size:.68rem; font-weight:750; text-transform:uppercase; letter-spacing:.08em; }
.concept-focus-button { flex:0 0 auto; padding:6px 9px; border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--muted); font-size:.73rem; font-weight:750; }
.concept-focus-button:hover, .concept-focus-button[aria-pressed="true"] { border-color:var(--accent); color:var(--text); background:rgba(120,240,176,.08); }
.concept-id { display:block; margin:4px 0 16px; color:var(--accent); font-size:.74rem; overflow-wrap:anywhere; }
.concept-definition { margin:0 0 20px; color:#c1d3ca; }
.concept-facets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 18px; margin:0 0 22px; padding:15px; border:1px solid rgba(120,240,176,.1); border-radius:11px; background:#091310; }
.concept-facets div { min-width:0; }
.concept-facets dt { color:var(--muted); font-size:.65rem; text-transform:uppercase; letter-spacing:.07em; }
.concept-facets dd { margin:2px 0 0; color:#dbe9e2; font-size:.8rem; overflow-wrap:anywhere; }
.concept-links-block { margin-top:auto; padding-top:17px; border-top:1px solid rgba(120,240,176,.1); }
.concept-links-block + .concept-links-block { margin-top:18px; }
.concept-links-block h4 { display:flex; justify-content:space-between; gap:12px; margin:0 0 10px; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:#dceae3; }
.concept-links-block h4 span { color:var(--muted); font:700 .72rem ui-monospace,monospace; }
.concept-related-list, .concept-resources ul { display:grid; gap:7px; margin:0; padding:0; list-style:none; }
.concept-related-list a, .concept-resources a { display:flex; justify-content:space-between; gap:12px; align-items:center; min-height:38px; padding:8px 10px; border:1px solid transparent; border-radius:8px; background:#091310; color:#d7e6df; text-decoration:none; }
.concept-related-list a:hover, .concept-resources a:hover { border-color:rgba(120,240,176,.3); background:rgba(120,240,176,.045); }
.concept-related-list span, .concept-resources span { min-width:0; overflow-wrap:anywhere; }
.concept-related-list code { flex:0 0 auto; color:var(--muted); font-size:.64rem; }
.concept-resources a { align-items:flex-start; flex-direction:column; gap:1px; }
.concept-resources small { color:var(--muted); font-size:.67rem; text-transform:uppercase; letter-spacing:.05em; }

@media (max-width: 1050px) {
  .concept-hero-grid { grid-template-columns:1fr; gap:28px; align-items:start; }
  .concept-graph-stats { max-width:620px; }
  .concept-graph-intro { grid-template-columns:1fr; gap:24px; }
  .concept-browser-heading > p { text-align:left; }
}

@media (max-width: 760px) {
  .concept-controls { grid-template-columns:1fr; align-items:start; }
  .concept-domain-buttons { justify-content:flex-start; }
  .concept-clear-focus { justify-self:start; }
  .concept-grid { grid-template-columns:1fr; }
  .concept-domain-heading { align-items:flex-start; flex-direction:column; gap:10px; }
}

@media (max-width: 520px) {
  .concept-graph-stats { grid-template-columns:1fr 1fr; }
  .concept-graph-stats div { min-height:96px; padding:15px; }
  .concept-graph-stats dd { font-size:1.55rem; }
  .concept-card { padding:18px; }
  .concept-facets { grid-template-columns:1fr; }
  .concept-related-list a { align-items:flex-start; flex-direction:column; gap:2px; }
}

/* Learning Paths + Curriculum Progress v1 */
.learning-paths-hero { background:radial-gradient(circle at 82% 18%,rgba(120,240,176,.1),transparent 34%),linear-gradient(180deg,#0b1613,#08100f); }
.learning-paths-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:54px; align-items:end; }
.learning-paths-hero h1 { margin:8px 0 18px; font-size:clamp(3rem,6vw,5.2rem); letter-spacing:-.058em; }
.learning-path-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; border:1px solid rgba(120,240,176,.2); border-radius:18px; overflow:hidden; background:rgba(8,16,15,.72); }
.learning-path-stats div { min-height:118px; display:flex; flex-direction:column; justify-content:center; padding:18px; border-right:1px solid rgba(120,240,176,.12); }
.learning-path-stats div:last-child { border-right:0; }
.learning-path-stats dt { color:var(--muted); font-size:.72rem; line-height:1.25; }
.learning-path-stats dd { order:-1; margin:0 0 5px; color:var(--accent-2); font-size:1.8rem; font-weight:850; letter-spacing:-.045em; }
.learning-paths-intro { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); gap:52px; align-items:center; }
.learning-paths-intro > div > p:last-child { max-width:780px; color:#bed0c7; }
.learning-path-boundary { padding:22px; border:1px solid rgba(120,240,176,.2); border-radius:14px; background:rgba(120,240,176,.035); }
.learning-path-boundary strong { display:block; margin-bottom:7px; color:var(--accent-2); }
.learning-path-boundary p { margin:0; color:var(--muted); font-size:.9rem; }
.curriculum-progress-overview { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,.72fr); gap:32px; align-items:center; margin:0 0 42px; padding:24px; border:1px solid rgba(120,240,176,.24); border-radius:16px; background:linear-gradient(145deg,rgba(120,240,176,.065),rgba(8,16,15,.74)); }
.curriculum-progress-overview h2 { margin-bottom:9px; }
.curriculum-progress-overview > div:first-child > p:last-child { max-width:740px; margin:0; color:#bed0c7; }
.curriculum-progress-summary { min-width:0; }
.curriculum-progress-total { display:flex; align-items:baseline; justify-content:space-between; gap:18px; margin-bottom:9px; color:var(--muted); font-size:.86rem; }
.curriculum-progress-total strong { color:var(--accent-2); font-size:1.4rem; letter-spacing:-.035em; }
.curriculum-progress-summary progress, .learning-path-progress progress { width:100%; height:9px; overflow:hidden; border:0; border-radius:999px; background:#10201b; accent-color:var(--accent); }
.curriculum-progress-summary progress::-webkit-progress-bar, .learning-path-progress progress::-webkit-progress-bar { background:#10201b; border-radius:999px; }
.curriculum-progress-summary progress::-webkit-progress-value, .learning-path-progress progress::-webkit-progress-value { background:var(--accent); border-radius:999px; }
.curriculum-progress-summary progress::-moz-progress-bar, .learning-path-progress progress::-moz-progress-bar { background:var(--accent); border-radius:999px; }
.curriculum-progress-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:15px; }
.curriculum-progress-actions .button { min-height:40px; padding:8px 12px; font-size:.82rem; }
.curriculum-progress-status { min-height:1.4em; margin:10px 0 0; color:var(--muted); font-size:.78rem; }
.curriculum-resume-state { display:flex; align-items:center; min-height:40px; margin-top:15px; }
.curriculum-resume-state[hidden] { display:none; }
.curriculum-resume-complete { display:inline-flex; align-items:center; min-height:34px; padding:6px 10px; border:1px solid rgba(120,240,176,.22); border-radius:8px; background:rgba(120,240,176,.055); color:#bed0c7; font-size:.78rem; font-weight:800; }
.learning-path-resume { min-height:28px; margin-top:10px; font-size:.76rem; }
.learning-path-resume .text-link { font-weight:800; }
.learning-path-progress { margin-top:13px; padding-top:11px; border-top:1px solid rgba(120,240,176,.12); }
.learning-path-progress strong { display:block; margin-bottom:6px; color:var(--accent-2); font-size:.74rem; }
.learning-path-step.is-complete > article { border-color:rgba(120,240,176,.34); background:linear-gradient(155deg,rgba(18,38,31,.98),#0b1513); }
.learning-path-step.is-complete .learning-path-step-marker { background:rgba(120,240,176,.12); color:var(--accent-2); }
.learning-path-step-actions { align-self:center; display:flex; flex-direction:column; align-items:stretch; gap:5px; min-width:126px; }
.learning-path-complete-button { min-height:34px; padding:6px 9px; border:1px solid rgba(120,240,176,.22); border-radius:8px; background:#0a1512; color:#cfe0d8; font-size:.72rem; font-weight:800; }
.learning-path-complete-button:hover { border-color:var(--accent); color:var(--accent-2); }
.learning-path-complete-button[aria-pressed="true"] { border-color:rgba(120,240,176,.5); background:rgba(120,240,176,.12); color:var(--accent-2); }
.learning-path-browser-heading > p { max-width:480px; margin:0; color:var(--muted); text-align:right; }
.learning-path-jump-nav { display:flex; flex-wrap:wrap; gap:9px; margin:-4px 0 34px; }
.learning-path-list { display:grid; gap:58px; }
.learning-path { scroll-margin-top:94px; }
.learning-path-header { display:grid; grid-template-columns:64px minmax(0,1fr) minmax(280px,.65fr); gap:24px; align-items:start; margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid rgba(120,240,176,.16); }
.learning-path-number { width:54px; height:54px; display:grid; place-items:center; border:1px solid rgba(120,240,176,.26); border-radius:14px; background:rgba(120,240,176,.05); color:var(--accent); font:800 .86rem ui-monospace,monospace; }
.learning-path-header h2 { margin:0 0 10px; }
.learning-path-summary { max-width:760px; margin:0; color:#c4d5cd; }
.learning-path-outcome { padding:16px 18px; border-left:2px solid var(--accent); border-radius:0 10px 10px 0; background:rgba(120,240,176,.045); }
.learning-path-outcome span { display:block; margin-bottom:6px; color:var(--accent); font:750 .68rem ui-monospace,monospace; text-transform:uppercase; letter-spacing:.11em; }
.learning-path-outcome p { margin:0; color:#c7d8d0; font-size:.88rem; }
.learning-path-steps { counter-reset:path-step; display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.learning-path-step { position:relative; }
.learning-path-step:not(:last-child)::after { content:""; position:absolute; top:54px; bottom:-13px; left:25px; width:1px; background:linear-gradient(180deg,rgba(120,240,176,.32),rgba(120,240,176,.08)); }
.learning-path-step > article { position:relative; display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:18px; align-items:start; padding:20px 20px 20px 0; border:1px solid var(--line); border-radius:14px; background:linear-gradient(155deg,var(--panel),#0b1513); }
.learning-path-step-marker { position:relative; z-index:1; width:50px; height:50px; display:grid; place-items:center; margin:-1px 0 -1px -1px; border:1px solid rgba(120,240,176,.32); border-radius:14px; background:#0b1713; color:var(--accent-2); font:850 .8rem ui-monospace,monospace; }
.learning-path-step-content { min-width:0; }
.learning-path-step-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:7px; color:var(--muted); font-size:.72rem; }
.learning-path-kind { display:inline-flex; padding:3px 7px; border:1px solid rgba(120,240,176,.18); border-radius:999px; color:var(--accent); font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.learning-path-step h3 { margin:0 0 8px; font-size:1.22rem; }
.learning-path-step h3 a { color:var(--text); text-decoration:none; }
.learning-path-step h3 a:hover { color:var(--accent-2); }
.learning-path-step-content > p { max-width:900px; margin:0; color:#bcd0c6; }
.learning-path-concepts { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.learning-path-concepts a { display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:5px 8px; border:1px solid rgba(120,240,176,.13); border-radius:8px; background:#091310; color:#cfe0d8; text-decoration:none; font-size:.72rem; }
.learning-path-concepts a:hover { border-color:rgba(120,240,176,.38); background:rgba(120,240,176,.045); }
.learning-path-concepts code { color:var(--muted); font-size:.62rem; }
.learning-path-step-action { display:inline-flex; align-items:center; gap:6px; margin:0; padding:8px 10px; border-radius:8px; color:var(--accent); text-decoration:none; font-size:.78rem; font-weight:800; white-space:nowrap; }
.learning-path-step-action:hover { background:rgba(120,240,176,.07); color:var(--accent-2); }
.learning-paths-next { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:42px; align-items:center; }
.learning-paths-next p:last-child { max-width:820px; color:#bfd1c8; }
.learning-paths-next-actions { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.section-heading-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px 18px; }

@media (max-width: 1050px) {
  .learning-paths-hero-grid { grid-template-columns:1fr; gap:28px; align-items:start; }
  .learning-path-stats { max-width:680px; }
  .learning-paths-intro { grid-template-columns:1fr; gap:24px; }
  .curriculum-progress-overview { grid-template-columns:1fr; gap:20px; }
  .learning-path-header { grid-template-columns:54px minmax(0,1fr); }
  .learning-path-outcome { grid-column:2; }
  .learning-paths-next { grid-template-columns:1fr; gap:24px; }
}

@media (max-width: 760px) {
  .learning-path-browser-heading { align-items:flex-start; flex-direction:column; }
  .learning-path-browser-heading > p { text-align:left; }
  .learning-path-header { grid-template-columns:1fr; gap:14px; }
  .learning-path-number { width:46px; height:46px; }
  .learning-path-outcome { grid-column:auto; }
  .learning-path-step > article { grid-template-columns:44px minmax(0,1fr); gap:14px; padding:16px 16px 16px 0; }
  .learning-path-step-marker { width:42px; height:42px; border-radius:11px; }
  .learning-path-step:not(:last-child)::after { top:46px; left:21px; }
  .learning-path-step-actions { grid-column:2; justify-self:start; align-items:flex-start; min-width:0; margin-top:2px; }
  .learning-path-step-action { padding-left:0; }
  .learning-path-concepts a { align-items:flex-start; flex-direction:column; gap:1px; }
  .section-heading-links { justify-content:flex-start; }
}

@media (max-width: 520px) {
  .learning-path-stats { grid-template-columns:1fr; }
  .learning-path-stats div { min-height:88px; border-right:0; border-bottom:1px solid rgba(120,240,176,.12); }
  .learning-path-stats div:last-child { border-bottom:0; }
  .curriculum-progress-overview { padding:18px; }
  .curriculum-progress-total { align-items:flex-start; flex-direction:column; gap:2px; }
  .curriculum-progress-actions { display:grid; }
  .learning-path-jump-nav { display:grid; }
  .learning-path-jump-nav .filter-chip { text-align:center; }
  .learning-path-concepts { display:grid; }
  .learning-path-concepts a { width:100%; }
}
