/*
  v6 Phase 3 — Research shell, typography, mathematical presentation
  This layer intentionally overrides the v5/v6-foundation inline CSS without
  changing the scientific model/state foundation. It is designed to remain
  removable during review and to keep the static GitHub Pages deployment.
*/

:root{
  --bg:#0b1118;
  --bg2:#0b1118;
  --panel:#101923;
  --panel2:#121d28;
  --panel3:#0f1822;
  --text:#e8edf2;
  --muted:#a8b5c2;
  --line:#2b3948;
  --line2:#52687d;
  --accent:#a9c7e6;
  --accent2:#c7dbef;
  --accentSoft:rgba(169,199,230,.09);
  --green:#9dc4af;
  --greenSoft:rgba(157,196,175,.075);
  --amber:#dfb978;
  --amberSoft:rgba(223,185,120,.075);
  --red:#ea9a9a;
  --redSoft:rgba(234,154,154,.075);
  --violet:#b7aed7;
  --cyan:#9dc8cf;
  --shadow:none;
  --radius:10px;
  --sans:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --editorial:"STIX Two Text",Georgia,"Times New Roman",serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  --shell-max:1680px;
  --reading:72ch;
}

html{scroll-padding-top:96px;background:var(--bg)}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  letter-spacing:-.005em;
}
body::before{display:none!important}

::selection{background:rgba(169,199,230,.22);color:var(--text)}
a{color:inherit}
a:hover{color:#fff}

.skip-link{
  position:fixed;left:18px;top:10px;z-index:9999;
  transform:translateY(-160%);
  background:var(--text);color:var(--bg);
  padding:8px 12px;border-radius:7px;font-weight:650;
  transition:transform .12s ease;
}
.skip-link:focus{transform:translateY(0)}

.topbar{
  min-height:64px;
  padding:10px clamp(18px,3vw,48px);
  background:rgba(11,17,24,.94);
  border-bottom:1px solid rgba(232,237,242,.09);
  backdrop-filter:blur(12px);
}
.brand{gap:12px}
.brandmark{
  width:34px;height:34px;border-radius:7px;
  border:1px solid var(--line);
  background:transparent;
  font-weight:700;letter-spacing:.06em;
  color:var(--accent2)
}
.brandtitle{font-size:.96rem;font-weight:650;letter-spacing:-.015em}
.brandsub{font-size:.72rem;color:var(--muted);letter-spacing:.015em}
.top-actions{gap:6px}
.btn,.navbtn,.segbtn{
  border-color:var(--line);
  background:transparent;
  border-radius:7px;
  min-height:40px;
  font-weight:550;
  box-shadow:none;
}
.btn:hover,.navbtn:hover,.segbtn:hover{background:rgba(232,237,242,.035);border-color:var(--line2)}
.btn.primary,.navbtn.active,.segbtn.active{background:var(--accentSoft);border-color:#718ca6;color:#f5f8fb}
.btn:focus-visible,.navbtn:focus-visible,.segbtn:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{
  outline:3px solid rgba(169,199,230,.42);outline-offset:3px
}

.global-scope{
  width:min(var(--shell-max),calc(100% - clamp(32px,6vw,96px)));
  margin:16px auto 0;
  padding:10px 0 12px;
  border:0;border-bottom:1px solid rgba(223,185,120,.28);border-radius:0;
  background:transparent;
  color:var(--muted);font-size:.78rem;
}
.global-scope strong{color:#e8d2ab;font-weight:600}

.workspace{
  width:min(var(--shell-max),calc(100% - clamp(32px,6vw,96px)));
  margin:0 auto;
  grid-template-columns:208px minmax(0,1fr);
  gap:32px;
  padding:28px 0 104px;
}
.sidebar{
  top:92px;
  border:0;
  border-right:1px solid rgba(232,237,242,.09);
  border-radius:0;
  background:transparent;
  padding:0 24px 0 0;
  box-shadow:none;
}
.side-label{
  padding:0 8px 13px;
  color:#cad4dd;
  font-size:.68rem;font-weight:650;letter-spacing:.14em
}
.side-nav{display:flex;flex-direction:column;gap:2px}
.nav-group-label{
  color:#778899;
  font-size:.64rem;font-weight:650;letter-spacing:.13em;text-transform:uppercase;
  padding:18px 8px 7px;
  order:0;
}
.nav-group-label:first-child{padding-top:2px}
.nav-group-program{order:0}.nav-group-instruments{order:4}.nav-group-audit{order:8}
.navbtn{
  position:relative;
  display:grid;grid-template-columns:26px minmax(0,1fr);gap:6px;align-items:center;
  min-height:40px;padding:8px 8px;
  border:0;border-radius:6px;
  color:var(--muted);
}
.navbtn::before{
  content:"";position:absolute;left:-25px;top:8px;bottom:8px;width:2px;
  background:transparent;border-radius:2px
}
.navbtn.active{background:rgba(169,199,230,.065);color:var(--text)}
.navbtn.active::before{background:var(--accent)}
.navbtn .nav-kicker{font-size:.66rem;color:#6f8295;font-variant-numeric:tabular-nums}
.navbtn .nav-name{font-size:.82rem;font-weight:550;line-height:1.25;margin:0}
.navbtn[data-view="overview"]{order:1}.navbtn[data-view="graph"]{order:2}.navbtn[data-view="methodology"]{order:3}
.navbtn[data-view="lab"]{order:5}.navbtn[data-view="spectrum"]{order:6}.navbtn[data-view="rg"]{order:7}
.navbtn[data-view="audit"]{order:9}.navbtn[data-view="falsify"]{order:10}.navbtn[data-view="sources"]{order:11}.navbtn[data-view="review"]{order:12}
.side-status{
  margin-top:26px;padding:14px 8px 0;
  border:0;border-top:1px solid rgba(223,185,120,.24);border-radius:0;background:transparent
}
.side-status strong{font-size:.73rem;color:#e3c790;font-weight:600}
.side-status p{font-size:.71rem;line-height:1.45;margin-top:5px}

.main{min-width:0;max-width:1376px;width:100%}
.view{animation:none}
.view.active{display:block}
.view>*.section-title:first-child{margin-top:2px}

.card{
  border:1px solid rgba(232,237,242,.09);
  background:var(--panel);
  border-radius:10px;
  padding:28px;
  box-shadow:none;
}
.card.flat{background:transparent;border-color:var(--line)}

h1,h2,h3{letter-spacing:-.025em}
h1{
  font-family:var(--editorial);
  font-size:clamp(2.55rem,5.2vw,4.65rem);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:600;
  max-width:16ch;
}

/* Overview title: one editorial line on desktop, responsive wrapping only when the viewport requires it. */
#view-overview .overview-primary h1{
  max-width:none;
  white-space:nowrap;
  font-size:clamp(2.35rem,3.65vw,3.55rem);
  letter-spacing:-.04em;
}
h2{font-size:clamp(1.55rem,2.35vw,2.15rem);line-height:1.15;font-weight:620}
h3{font-size:1rem;font-weight:620;letter-spacing:-.012em}
.lead{font-size:1.05rem;line-height:1.75;color:#cbd5df;max-width:68ch}
.small{font-size:.82rem}
.muted{color:var(--muted)}

.section-title{
  align-items:flex-start;
  margin:0 0 28px;
  padding:0 0 20px;
  border-bottom:1px solid rgba(232,237,242,.09)
}
.section-title>div{max-width:var(--reading)}
.section-title p{font-size:.9rem;line-height:1.65;margin-top:8px;max-width:66ch}
.section-title .status-chip{margin-top:2px}

.status-chip,.pill{
  border:0;border-left:2px solid var(--line2);
  border-radius:0;
  padding:2px 0 2px 8px;
  background:transparent;
  font-size:.72rem;
  line-height:1.3;
}
.status-chip.est{border-color:var(--green);color:#c9ddcf}
.status-chip.hyp{border-color:var(--amber);color:#e7c998}
.status-chip.target{border-color:var(--accent);color:#c8dbed}
.dot{display:none}
.eyebrow{margin-bottom:18px;gap:16px}

.pub-strip{
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  margin:0 0 42px;
  padding:0 0 18px;
  border:0;border-bottom:1px solid rgba(232,237,242,.09);
  border-radius:0;background:transparent
}
.pub-meta{gap:14px 18px}
.pub-meta a,.pub-meta span{
  border:0;border-radius:0;padding:0;background:transparent;
  font-size:.72rem;color:var(--muted)
}
.pub-meta a:hover{text-decoration:underline;color:var(--text)}
.pub-actions{align-items:flex-start}

.hero-grid{
  grid-template-columns:minmax(0,1fr) minmax(250px,320px);
  gap:64px;
  align-items:start
}
.hero-main{
  padding:0;
  background:transparent;
  border:0;
  border-radius:0
}
.hero-main .lead{margin-top:24px}
.hero-actions{margin-top:28px;gap:9px}
.hero-citation{
  margin-top:28px;
  padding:14px 0 14px 18px;
  border-radius:0;
  background:transparent;
  border-left:1px solid var(--accent)
}
.cite-line{font-size:.82rem;line-height:1.55;color:#d0d9e2;margin-top:3px}
.stat-stack{
  padding:0 0 0 26px;
  border:0;border-left:1px solid rgba(232,237,242,.10);
  background:transparent;
  border-radius:0;
  gap:0
}
.stat{
  padding:17px 0;
  border:0;border-bottom:1px solid rgba(232,237,242,.085);
  border-radius:0;background:transparent
}
.stat:first-child{padding-top:0}
.stat:last-child{border-bottom:0}
.stat.warning{background:transparent;border-color:rgba(223,185,120,.20)}
.stat .k{font-size:.66rem;letter-spacing:.12em}
.stat .v{font-weight:600;font-size:.94rem;margin-top:5px}
.stat .d{font-size:.75rem;line-height:1.45;margin-top:5px}

/* Redundant trust badges are removed from the visual hierarchy in v6. */
#view-overview .trust-grid{display:none!important}
.brief-cards{
  margin-top:74px;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  padding-top:24px;
  border-top:1px solid rgba(232,237,242,.09)
}
.brief-card{
  padding:0 16px 0 0;
  border:0;border-right:1px solid rgba(232,237,242,.08);border-radius:0;background:transparent
}
.brief-card:last-child{border-right:0}
.brief-card .num{font-size:.65rem;letter-spacing:.08em}
.brief-card strong{font-size:.9rem;font-weight:600;margin-top:6px}
.brief-card p{font-size:.76rem;line-height:1.5;margin-top:7px}
.footer{margin-top:48px;padding-top:18px;font-size:.72rem}
.footer .kbd{display:none}

/* Equation system --------------------------------------------------------- */
.equation-shell{
  margin-top:28px;
  padding:22px 0 20px;
  border-top:1px solid rgba(169,199,230,.20);
  border-bottom:1px solid rgba(169,199,230,.20)
}
.equation-meta{
  display:flex;gap:12px;align-items:center;flex-wrap:wrap;
  margin-bottom:10px;
  color:var(--muted);font-size:.68rem;letter-spacing:.075em;text-transform:uppercase
}
.equation-meta .eq-class{color:#e0bf87}
.equation-note{margin-top:10px;color:var(--muted);font-size:.78rem;max-width:70ch}
.equation{
  padding:0;
  border:0;border-radius:0;
  background:transparent;
  overflow-x:auto;overflow-y:hidden;
  font-family:inherit;
  font-size:clamp(1.04rem,1.55vw,1.26rem);
  line-height:1.45;
  color:#f1f4f6
}
.hero-equation{margin-top:0}
.math-block mjx-container{margin:.25em 0!important}
.math-block mjx-container[display="true"]{text-align:left!important;overflow-x:auto;overflow-y:hidden;padding:.12em 0}
.math-hidden .equation-shell{display:none!important}
.math-hidden .math-block{display:none!important}

/* Analytical compositions ------------------------------------------------ */
.proof-grid{
  grid-template-columns:minmax(0,1fr) minmax(300px,330px);
  gap:28px;
  align-items:start
}
#view-graph .proof-grid>article.card{padding:18px;background:#0e1720}
#view-graph .node-inspector{position:sticky;top:96px;padding:24px}
.graph-wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
.proof-svg{width:100%;min-width:680px;max-width:100%;height:auto}
.proof-svg .edge{stroke:#72869a;stroke-width:2}
.proof-svg .node rect{fill:#101b25;stroke:#72869a;rx:9}
.proof-svg .node.active rect{stroke:#b8d1e8;stroke-width:2.2}
.proof-svg .node.ok rect{stroke:#9dc4af}.proof-svg .node.fail rect{stroke:#ea9a9a}
.proof-svg .sub{fill:#aab6c1}.proof-svg .id{fill:#bfd5e9}
.node-inspector{gap:0}
.inspector-block{
  padding:16px 0;
  border:0;border-bottom:1px solid rgba(232,237,242,.085);
  border-radius:0;background:transparent
}
.inspector-block:last-child{border-bottom:0}
.inspector-label{font-size:.65rem;letter-spacing:.12em}
.dependency-list span{border:0;border-radius:0;padding:2px 0;color:#c2ced8}
#dependencyLinear{margin-top:14px;padding-top:14px}

.lab-layout{
  grid-template-columns:minmax(290px,.72fr) minmax(0,1.58fr);
  gap:32px;
  align-items:start
}
#view-lab .lab-layout>article:first-child{background:#0f1821}
#view-lab .lab-layout>article:last-child{padding:32px}
.assumptions{gap:0;margin-top:18px}
.assumption{
  padding:14px 0!important;
  border:0!important;border-bottom:1px solid rgba(232,237,242,.08)!important;
  border-radius:0!important;background:transparent!important
}
.assumption:last-child{border-bottom:0!important}
.assumption .title{font-weight:600;font-size:.86rem}
.assumption .desc{font-size:.76rem;line-height:1.45;margin-top:5px}
.preset-row{gap:6px;margin-top:15px}
.segbtn{min-height:36px;padding:7px 9px;font-size:.72rem}
.controls{gap:18px;margin-top:22px}
.controls label{display:block;margin-bottom:6px;font-size:.75rem;color:#cad4dd;font-weight:550}
.range-row{grid-template-columns:minmax(0,1fr) 62px;gap:14px}
.range-row output{
  text-align:right;font-variant-numeric:tabular-nums;font-family:var(--mono);
  color:#dce5ec;font-size:.8rem
}
input[type="range"]{appearance:none;width:100%;height:28px;background:transparent}
input[type="range"]::-webkit-slider-runnable-track{height:3px;background:#45596d;border-radius:2px}
input[type="range"]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border-radius:50%;background:#d2e1ef;border:2px solid #607992;margin-top:-6.5px}
input[type="range"]::-moz-range-track{height:3px;background:#45596d;border-radius:2px}
input[type="range"]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#d2e1ef;border:2px solid #607992}
.metric-grid,.rg-summary{gap:0;border-top:1px solid rgba(232,237,242,.10);border-bottom:1px solid rgba(232,237,242,.10)}
.metric{
  padding:18px 16px 18px 0;
  border:0;border-right:1px solid rgba(232,237,242,.09);
  border-radius:0;background:transparent
}
.metric:last-child{border-right:0;padding-right:0;padding-left:16px}
.metric:not(:first-child){padding-left:16px}
.metric span{font-size:.68rem;letter-spacing:.03em}
.metric b{font-size:1.16rem;font-weight:600;font-variant-numeric:tabular-nums}
.verdict{
  padding:18px 0;
  border:0;border-top:1px solid rgba(232,237,242,.08);
  border-radius:0;background:transparent!important
}
.verdict.ok{border-color:rgba(157,196,175,.28)}
.verdict.fail{border-color:rgba(234,154,154,.28)}
.verdict.wait{border-color:rgba(223,185,120,.28)}
.trace{
  padding:18px;
  border-color:rgba(232,237,242,.10);
  border-radius:8px;background:#0c141d;
  font-size:.75rem;line-height:1.75
}
.result-scope{font-size:.72rem;line-height:1.55;border-color:rgba(232,237,242,.10)}

#view-spectrum .grid2,#view-rg .grid2{
  grid-template-columns:minmax(290px,.76fr) minmax(0,1.54fr);
  gap:32px;
  align-items:start
}
#view-spectrum .grid2>article,#view-rg .grid2>article{min-width:0}
#view-spectrum .grid2>article:last-child,#view-rg .grid2>article:last-child{padding:32px}
.spectrum-stage{
  margin-top:22px;
  min-height:360px;
  display:flex;align-items:center;
  border-color:rgba(232,237,242,.10);
  border-radius:9px;background:#0c151e;
  padding:30px
}
.spectrum-axis{width:100%;height:160px;margin-top:0}
.axis-line{background:#72869a!important;height:2px!important}
.forbidden{background:rgba(223,185,120,.17)!important;border-right:1px solid #dfb978}
.axis-label{font-size:.74rem!important;color:#bac6d0!important}
.rg-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}
#view-rg .grid2>article:last-child{min-height:360px;display:flex;flex-direction:column;justify-content:center}

/* Audit / reading views --------------------------------------------------- */
.audit-table{font-size:.79rem;line-height:1.5}
#view-audit .card{padding:12px 24px;overflow-x:auto}
.audit-table th,.audit-table td{padding:15px 12px;border-color:rgba(232,237,242,.085)}
.audit-table th{font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;font-weight:600}
.audit-table td:first-child{color:#bed5e9}

.source-grid,.method-grid,.review-grid{gap:0;border-top:1px solid rgba(232,237,242,.09)}
.source-card,.method-card,.review-box{
  padding:22px 20px 22px 0;
  border:0;border-bottom:1px solid rgba(232,237,242,.09);
  border-radius:0;background:transparent
}
.source-grid>*:nth-child(even),.method-grid>*:nth-child(even),.review-grid>*:nth-child(even){padding-left:24px;border-left:1px solid rgba(232,237,242,.07)}
.source-card p,.method-card p,.review-box p{font-size:.82rem;line-height:1.6}
.source-card .slide,.method-card .level{font-size:.65rem;letter-spacing:.09em}
.release-strip{
  padding:0 0 15px;margin-bottom:24px;
  border:0;border-bottom:1px solid rgba(232,237,242,.09);border-radius:0;background:transparent
}
details{border-color:rgba(232,237,242,.10);border-radius:8px;background:transparent}
details[open] summary{border-color:rgba(232,237,242,.09)}

/* Narrow screens ---------------------------------------------------------- */
@media (max-width:1180px){
  .workspace{grid-template-columns:176px minmax(0,1fr);gap:26px}
  .sidebar{padding-right:18px}
  .navbtn::before{left:-19px}
  .hero-grid{gap:40px;grid-template-columns:minmax(0,1fr) 280px}
  .proof-grid{grid-template-columns:minmax(0,1fr)}
  #view-graph .node-inspector{position:static}
  .lab-layout,#view-spectrum .grid2,#view-rg .grid2{grid-template-columns:minmax(260px,.82fr) minmax(0,1.35fr);gap:24px}
}

@media (max-width:960px){
  .global-scope,.workspace{width:min(100% - 40px,1000px)}
  .workspace{display:block;padding-top:22px}
  .sidebar{
    position:static;
    border-right:0;border-bottom:1px solid rgba(232,237,242,.09);
    padding:0 0 18px;margin-bottom:34px
  }
  .side-label{padding-left:0}
  .side-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px}
  .nav-group-label{grid-column:1/-1;padding:15px 0 3px}
  .navbtn{grid-template-columns:24px minmax(0,1fr);padding-left:0}
  .navbtn::before{display:none}
  .side-status{margin-top:16px;padding:12px 0 0;max-width:70ch}
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .stat-stack{padding:22px 0 0;border-left:0;border-top:1px solid rgba(232,237,242,.10);grid-template-columns:repeat(2,minmax(0,1fr));display:grid;column-gap:28px}
  .stat{padding:15px 0}
  .pub-strip{grid-template-columns:1fr}
  .pub-actions{justify-content:flex-start}
  .brief-cards{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:28px}
  .brief-card:nth-child(2){border-right:0}
  .lab-layout,#view-spectrum .grid2,#view-rg .grid2{grid-template-columns:1fr;gap:22px}
  #view-lab .lab-layout>article:last-child,#view-spectrum .grid2>article:last-child,#view-rg .grid2>article:last-child{padding:28px}
  .source-grid,.method-grid,.review-grid{grid-template-columns:1fr}
  .source-grid>*:nth-child(even),.method-grid>*:nth-child(even),.review-grid>*:nth-child(even){padding-left:0;border-left:0}
}

@media (max-width:820px){
  #view-overview .overview-primary h1{
    white-space:normal;
    max-width:19ch;
    font-size:clamp(2.15rem,9vw,3rem);
    text-wrap:balance;
  }
}

@media (max-width:680px){
  body{font-size:16px;line-height:1.62}
  .topbar{padding:9px 16px;min-height:58px}
  .brandtitle{max-width:48vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .brandsub{display:none}
  .global-scope,.workspace{width:calc(100% - 32px)}
  .global-scope{margin-top:12px;font-size:.72rem}
  .workspace{padding-bottom:72px}
  .side-nav{grid-template-columns:1fr 1fr}
  .navbtn{min-height:42px}
  .navbtn .nav-name{font-size:.78rem}
  h1{font-size:clamp(2.3rem,12vw,3.25rem);max-width:18ch}
  h2{font-size:1.5rem}
  .section-title{display:block;margin-bottom:22px}
  .section-title .status-chip{margin-top:12px;display:inline-flex}
  .card{padding:22px}
  .hero-main{padding:0}
  .stat-stack{grid-template-columns:1fr}
  .brief-cards{grid-template-columns:1fr;gap:22px;margin-top:50px}
  .brief-card{border-right:0;border-bottom:1px solid rgba(232,237,242,.08);padding-bottom:20px}
  .brief-card:last-child{border-bottom:0}
  .proof-svg{min-width:660px}
  .metric-grid,.rg-summary{grid-template-columns:1fr 1fr}
  .metric:nth-child(2){border-right:0}.metric:nth-child(3){border-top:1px solid rgba(232,237,242,.09)}.metric:nth-child(4){border-top:1px solid rgba(232,237,242,.09);border-right:0}
  .spectrum-stage{min-height:280px;padding:20px}
  .spectrum-axis{height:140px}
  .pub-meta{display:grid;gap:8px}
  .pub-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .pub-actions .btn{justify-content:center;text-align:center}
  #view-audit .card{padding:8px 12px}
}

@media (max-width:430px){
  .global-scope,.workspace{width:calc(100% - 24px)}
  .top-actions{gap:4px}.top-actions .btn{padding-inline:9px}
  .brandmark{width:32px;height:32px}
  .side-nav{grid-template-columns:1fr}
  .nav-group-label{padding-top:13px}
  .navbtn{grid-template-columns:28px 1fr}
  .pub-actions{grid-template-columns:1fr}
  .metric-grid,.rg-summary{grid-template-columns:1fr}
  .metric,.metric:not(:first-child),.metric:last-child{padding:13px 0;border-right:0;border-top:1px solid rgba(232,237,242,.09)}
  .metric:first-child{border-top:0}
  .proof-svg{min-width:620px}
}

@media print{
  body{font-family:Georgia,"Times New Roman",serif!important;background:#fff!important;color:#111!important;font-size:11pt}
  .global-scope{color:#333;border-color:#aaa}
  .workspace{width:100%!important}
  .equation-shell{border-color:#aaa}
  .equation{color:#111}
  .card,.spectrum-stage{background:#fff!important;border-color:#bbb!important}
  .section-title{border-color:#bbb}
}

/* Phase 3.1 — overview declutter / editorial refinement -------------------- */
#view-overview.overview-refined{max-width:1260px}
.overview-masthead{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:0 0 16px;margin-bottom:54px;
  border-bottom:1px solid rgba(232,237,242,.085);
  color:var(--muted);font-size:.7rem
}
.overview-meta,.overview-meta-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.overview-meta a,.overview-meta-actions a,.overview-text-action{
  color:var(--muted);font:inherit;background:none;border:0;padding:0;min-height:auto;cursor:pointer
}
.overview-meta a:hover,.overview-meta-actions a:hover,.overview-text-action:hover{color:var(--text);text-decoration:underline}
.overview-version{color:#c9d4de;font-weight:650}
.overview-hero{
  display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:clamp(48px,7vw,92px);align-items:start
}
.overview-primary{min-width:0;max-width:860px}
.overview-kicker{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  margin-bottom:18px;color:#bac5cf;font-size:.72rem;letter-spacing:.025em
}
.overview-open{color:#dfc28d}
#view-overview h1{
  max-width:13ch;font-size:clamp(3rem,5.7vw,5.45rem);line-height:.96;
  letter-spacing:-.055em;text-wrap:balance
}
.overview-lead{max-width:61ch;margin-top:26px!important;font-size:1.02rem;line-height:1.72;color:#c4ced8}
.overview-equation{margin-top:34px;padding-top:20px;padding-bottom:20px;max-width:800px}
.overview-equation .equation-note{max-width:62ch;margin-top:9px}
.overview-actions{align-items:center;margin-top:25px}
.overview-export{
  margin-left:4px;padding:8px 2px;border:0;background:transparent;color:var(--muted);
  font:inherit;font-size:.78rem;cursor:pointer
}
.overview-export:hover{color:var(--text);text-decoration:underline}
.overview-summary{padding-top:4px;border-top:1px solid rgba(232,237,242,.13)}
.overview-summary-item{padding:19px 0;border-bottom:1px solid rgba(232,237,242,.085)}
.overview-summary-item:first-child{padding-top:15px}
.overview-summary-label{
  display:block;margin-bottom:7px;color:#8798a8;font-size:.63rem;font-weight:650;
  letter-spacing:.12em;text-transform:uppercase
}
.overview-summary-item strong{display:block;font-size:.9rem;font-weight:600;line-height:1.35}
.overview-summary-item small{display:block;margin-top:5px;color:var(--muted);font-size:.72rem;line-height:1.45}
.overview-spine{
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  gap:16px;align-items:center;margin-top:76px;padding:24px 0;
  border-top:1px solid rgba(232,237,242,.085);border-bottom:1px solid rgba(232,237,242,.085)
}
.overview-spine-step{min-width:0}
.overview-spine-step>span{display:block;color:#718394;font-family:var(--mono);font-size:.61rem;letter-spacing:.08em;margin-bottom:6px}
.overview-spine-step strong{display:block;font-size:.83rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-spine-step small{display:block;color:var(--muted);font-size:.69rem;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-spine-arrow{color:#526474;font-size:.9rem}
.overview-footnote{max-width:80ch;margin-top:20px;color:#7f90a0;font-size:.7rem;line-height:1.55}

/* Old overview-only dashboard blocks are intentionally retired in 3.1. */
#view-overview .pub-strip,#view-overview .hero-grid,#view-overview .trust-grid,#view-overview .brief-cards,#view-overview .footer{display:none!important}

@media (max-width:1050px){
  .overview-hero{grid-template-columns:1fr;gap:46px}
  .overview-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-top:1px solid rgba(232,237,242,.10)}
  .overview-summary-item{border-bottom:0;padding:18px 0}
  .overview-summary-item+ .overview-summary-item{border-left:1px solid rgba(232,237,242,.08);padding-left:24px}
}
@media (max-width:760px){
  .overview-masthead{align-items:flex-start;flex-direction:column;gap:9px;margin-bottom:38px}
  .overview-meta{gap:9px 13px}
  .overview-meta-actions{gap:13px}
  #view-overview h1{font-size:clamp(2.65rem,12vw,4rem);max-width:14ch}
  .overview-lead{font-size:.98rem;margin-top:22px!important}
  .overview-summary{grid-template-columns:1fr;gap:0}
  .overview-summary-item{padding:16px 0!important;border-bottom:1px solid rgba(232,237,242,.075)!important;border-left:0!important}
  .overview-spine{grid-template-columns:1fr;gap:0;margin-top:54px;padding:8px 0}
  .overview-spine-step{padding:15px 0;border-bottom:1px solid rgba(232,237,242,.07)}
  .overview-spine-step:last-of-type{border-bottom:0}
  .overview-spine-arrow{display:none}
  .overview-spine-step strong,.overview-spine-step small{white-space:normal;overflow:visible}
}
@media (max-width:430px){
  .overview-masthead{margin-bottom:32px}
  .overview-meta{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .overview-meta-actions{width:100%;justify-content:space-between;padding-top:2px}
  #view-overview h1{font-size:2.65rem;line-height:.98}
  .overview-kicker{font-size:.68rem}
  .overview-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .overview-actions .btn{width:100%}
  .overview-export{grid-column:1/-1;text-align:left;margin-left:0}
}

/* Phase 3.3 — overview horizontal research summary ------------------------ */
#view-overview .overview-hero{display:block}
#view-overview .overview-primary{max-width:none;width:100%}
#view-overview .overview-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:32px 0 0;
  padding:18px 0 20px;
  border-top:1px solid rgba(232,237,242,.10);
  border-bottom:1px solid rgba(232,237,242,.08)
}
#view-overview .overview-summary-item{
  min-width:0;
  padding:2px 28px;
  border-bottom:0
}
#view-overview .overview-summary-item:first-child{padding-left:0;padding-top:2px}
#view-overview .overview-summary-item+ .overview-summary-item{
  border-left:1px solid rgba(232,237,242,.08)
}
#view-overview .overview-summary-item:last-child{padding-right:0}
#view-overview .overview-summary-item strong{font-size:.94rem}
#view-overview .overview-summary-item small{max-width:34ch}
#view-overview .overview-equation{margin-top:30px}

@media (min-width:1051px){
  #view-overview .overview-primary h1{
    max-width:none;
    white-space:nowrap;
    font-size:clamp(2.65rem,4.15vw,4.15rem);
    letter-spacing:-.048em;
    line-height:1.02
  }
}

@media (max-width:1050px){
  #view-overview .overview-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
  #view-overview .overview-summary-item{padding:4px 20px}
  #view-overview .overview-summary-item:first-child{padding-left:0}
}

@media (max-width:760px){
  #view-overview .overview-summary{grid-template-columns:1fr;margin-top:26px;padding:8px 0}
  #view-overview .overview-summary-item,
  #view-overview .overview-summary-item:first-child,
  #view-overview .overview-summary-item:last-child{
    padding:15px 0;border-left:0;border-bottom:1px solid rgba(232,237,242,.075)
  }
  #view-overview .overview-summary-item:last-child{border-bottom:0}
}
