/*
  DIRECTION CONTRACT: Environmental Systems Dossier

  Invariants:
  - Existing DOM, reading order, anchors, report controls, grids and responsive logic stay intact.
  - The report remains dense, serious and useful for long-form reading.
  - Scenario colors keep their semantic meaning.

  First viewport:
  - Same cover composition and information hierarchy.
  - Cold technical paper, green-black ink, mineral blue registration marks and deep red risk emphasis.
  - Condensed technical typography frames titles, chapter markers and measured data.

  Signature:
  - Precise exhibit marks, dry paper surfaces, neutral rules and colored evidence fields.
  - Investor conclusions use a pale signal field and red text, never a colored edge.

  Do not introduce:
  - Decorative gradients, glass, glow, pills, card stacks, monospace interface text or colored edge stripes.
*/

:root {
  --f-tech: "Sofia Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  --f-editorial: var(--f-tech);
  --bg: #f1f3ef;
  --bg2: #e7ebe6;
  --surface: #f8f9f5;
  --ink: #172925;
  --ink2: #40534d;
  --mut: #66766f;
  --line: #ccd4cf;
  --line2: #9baaa2;
  --panel: #f4e4e0;
  --panel-ink: #2a201d;
  --panel-mut: #6f3a33;
  --depression-bg: #722b27;
  --depression-bg-hover: #63231f;
  --depression-ink: #ffffff;

  --mineral: #2d647c;
  --mineral-soft: #dce8ec;
  --signal: #a8322a;
  --signal-dark: #7d251f;
  --signal-soft: #f2dfda;
  --field: #476f60;
  --field-soft: #dde8e1;

  --sc15: #9a741d;
  --sc15-soft: #eee5c8;
  --sc15-ink: #684d0c;
  --sc2: #b55a28;
  --sc2-soft: #efdfd2;
  --sc2-ink: #743313;
  --sc3: var(--signal);
  --sc3-soft: var(--signal-soft);
  --sc3-ink: var(--signal-dark);
  --sc-past: #697a72;
  --sc-past-soft: #e2e7e3;

  --p1: #4f625a;
  --p2: #896e25;
  --p3: #9c4932;
  --p4: #607052;
  --pind: var(--field);
  --p5: #96382f;
  --p6: #722b27;
  --map-p5: #96382f;
  --map-p6: #722b27;
  --warn: #856615;
  --warn-soft: #eee6c9;
  --listmark: var(--signal);

  --fs-body: clamp(1rem, .16vw + .97rem, 1.1rem);
  --fs-small: .91rem;
  --fs-tiny: .77rem;
  --lh: 1.68;
  --measure: 72ch;
  --nav-h: 58px;
  --maxw: 1380px;
}

html[data-theme="dark"] {
  --bg: #0b0d10;
  --bg2: #12151a;
  --surface: #181c22;
  --ink: #f1f0ea;
  --ink2: #c9c9c7;
  --mut: #969ba2;
  --line: #2b3037;
  --line2: #4b525c;
  --panel: #2d1b1d;
  --panel-ink: #f5ebe8;
  --panel-mut: #e2a69f;
  --depression-bg: #351b24;
  --depression-bg-hover: #44212d;
  --depression-ink: #ffffff;

  --mineral: #8eb2c4;
  --mineral-soft: #18252d;
  --signal: #ed6c5e;
  --signal-dark: #ff9185;
  --signal-soft: #351d20;
  --field: #9aaab4;
  --field-soft: #1f272d;

  --sc15: #d8ae4e;
  --sc15-soft: #3b3219;
  --sc15-ink: #f0ce75;
  --sc2: #e58a54;
  --sc2-soft: #40271a;
  --sc2-ink: #f1ae82;
  --sc3: var(--signal);
  --sc3-soft: var(--signal-soft);
  --sc3-ink: var(--signal-dark);
  --sc-past: #9ca3aa;
  --sc-past-soft: #252a31;

  --p1: #aeb4ba;
  --p2: #d6b457;
  --p3: #e48869;
  --p4: #b5ad82;
  --pind: var(--field);
  --p5: #e47a70;
  --p6: #c96560;
  --map-p5: #e47a70;
  --map-p6: #c96560;
  --warn: #d7b95d;
  --warn-soft: #342d19;
  --listmark: var(--signal);
}

html {
  scrollbar-color: var(--line2) var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-kerning: normal;
  letter-spacing: -.006em;
  text-rendering: geometricPrecision;
}

body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: var(--line2); border: 3px solid var(--bg); }

::selection { background: var(--mineral); color: #fff; }

a {
  text-decoration-color: color-mix(in srgb, var(--mineral) 72%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover { color: var(--mineral); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--mineral) !important;
  outline-offset: 3px !important;
}

.topbar {
  min-height: var(--nav-h);
  padding-inline: clamp(.7rem, 1.7vw, 1.35rem);
  gap: .8rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line2);
  backdrop-filter: none;
  box-shadow: none;
}

.brand,
.navlinks a,
.reportGlobalNav a,
.lens-lbl,
.lens button,
.seg button,
.zoom button,
.zoom .zlvl {
  font-family: var(--f-body);
  letter-spacing: .025em;
}

.brand {
  color: var(--ink);
  font-size: .72rem;
  font-weight: 650;
}

.brand b {
  padding: .43em .55em .38em;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 760;
  letter-spacing: .055em;
}

.navlinks a {
  padding: .35rem .68em;
  color: var(--mut);
  border-bottom-width: 1px;
  font-size: .69rem;
  font-weight: 620;
  letter-spacing: .045em;
}

.navlinks a:hover { color: var(--ink); }
.navlinks a.act { color: var(--ink); border-bottom-color: var(--signal); }

.reportGlobalNav {
  border-color: var(--line);
}

.reportGlobalNav a {
  color: var(--mut);
  font-size: .65rem;
  font-weight: 620;
  letter-spacing: .035em;
}

.reportGlobalNav a:hover { background: var(--bg2); color: var(--ink); }

.zoom,
.seg,
.tbtn,
.lens button,
.hnClimateNav {
  border-color: var(--line2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.zoom button,
.lens button,
.seg button,
.tbtn {
  color: var(--ink2);
  background: var(--surface);
}

.lens button {
  padding: .32em .58em;
  border-radius: 0;
}

.seg button.on,
.hnClimateNav a[aria-current="page"] {
  background: var(--ink) !important;
  color: var(--surface) !important;
  box-shadow: none !important;
}

.tbtn {
  position: relative;
  width: 32px;
  height: 32px;
  font-size: 0;
}

.tbtn::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 6px 0 0 currentColor;
}

#progress {
  height: 2px;
  background: var(--signal);
}

.cover {
  background: var(--bg);
  border-bottom: 1px solid var(--line2);
}

.cover-grid {
  opacity: 1;
  background: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.cover-grid::before,
.cover-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.cover-grid::before { left: 25%; }
.cover-grid::after { right: 25%; }

html[data-theme="dark"] .cover-grid::before,
html[data-theme="dark"] .cover-grid::after {
  display: none;
}

.cover::before,
.cover::after {
  content: "+";
  position: absolute;
  z-index: 1;
  color: var(--mineral);
  font: 500 1rem/1 var(--f-body);
}

.cover::before { top: calc(var(--nav-h) + 1rem); left: var(--gut); }
.cover::after { right: var(--gut); bottom: 4.5rem; }

.cover-meta {
  position: relative;
  z-index: 2;
  padding-top: 1.4rem;
  color: var(--mut);
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 620;
  letter-spacing: .055em;
}

.cover-title {
  position: relative;
  z-index: 2;
  max-width: 15ch;
  margin: clamp(5rem, 12vh, 9rem) 0 clamp(2rem, 5vh, 4rem);
  color: var(--ink);
  font-family: var(--f-editorial);
  font-size: clamp(3rem, 7.2vw, 6rem) !important;
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.038em;
  text-transform: uppercase;
  text-wrap: balance;
}

.cover-title em { color: var(--signal); font-style: normal; }

.cover-intro {
  position: relative;
  z-index: 2;
  max-width: 72ch;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line2);
  border-left: 0;
  color: var(--ink2);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.55;
}

.cover-sub,
.cover-foot,
.cover-foot .read3 {
  font-family: var(--f-body);
  letter-spacing: .025em;
}

.cover-sub { color: var(--ink2); font-size: .84rem; }
.cover-sub .sep { background: var(--mineral); }

.cover-deg { gap: 0; }
.cover-deg span {
  padding: .42em .76em;
  border-radius: 0;
  border-right: 0;
  background: var(--surface);
  font-family: var(--f-body);
  font-size: .76rem;
  font-weight: 650;
}
.cover-deg span:last-child { border-right: 1px solid; }

.cover-foot {
  position: relative;
  z-index: 2;
  border-color: var(--line2);
}

.divider {
  min-height: 66svh;
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

html[data-theme="dark"] .divider {
  background: #15181d;
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .divider .dv-title,
html[data-theme="dark"] .divider .dv-cover,
html[data-theme="dark"] .divider .dv-lead,
html[data-theme="dark"] .divider .dv-body p,
html[data-theme="dark"] .divider .dv-coords {
  color: var(--ink);
}

html[data-theme="dark"] .divider .dv-part {
  color: var(--pc);
}

.divider::before,
.divider::after {
  content: "+";
  position: absolute;
  color: var(--pc);
  font: 500 1rem/1 var(--f-body);
}
.divider::before { top: 1.4rem; left: var(--gut); }
.divider::after { right: var(--gut); bottom: 1.4rem; }

.dv-num {
  color: transparent;
  opacity: .65;
  font-family: var(--f-editorial);
  font-weight: 400;
  letter-spacing: -.04em;
  -webkit-text-stroke: 1px var(--pc);
}

.dv-body .dv-part,
.dv-coords {
  font-family: var(--f-body);
  letter-spacing: .055em;
}

.dv-body .dv-part::before {
  width: 20px;
  height: 1px;
  background: var(--pc);
}

.dv-title {
  max-width: 13ch;
  color: inherit;
  font-family: var(--f-editorial);
  font-size: clamp(2.7rem, 6.4vw, 5.8rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.dv-cover { color: color-mix(in srgb, currentColor 70%, transparent); }
.dv-edge { display: none; }

.theme {
  padding-block: clamp(2.7rem, 5vw, 4.7rem);
  border-top-color: var(--line);
}

.layout { gap: clamp(2rem, 4.8vw, 5.5rem); }

.main { max-width: var(--measure); }

.rail { top: calc(var(--nav-h) + 24px); }

.sut {
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.sut .sut-lbl,
.rail .railmeta {
  font-family: var(--f-body);
  letter-spacing: .055em;
}

.sut .sut-lbl {
  color: var(--accent, var(--mineral));
  font-size: .68rem;
  font-weight: 720;
}

.h-disp,
h2.h-sec,
.flaghead .fh-t,
.consensus .cq-text {
  font-family: var(--f-editorial);
  font-weight: 500;
  letter-spacing: -.028em;
}

h2.h-sec {
  max-width: 18ch;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1;
  text-wrap: balance;
}

h3.h-theme {
  max-width: none;
  font-size: clamp(1.25rem, 1.55vw, 1.52rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.018em;
  text-wrap: pretty;
}

h4.h-sub { font-weight: 620; letter-spacing: -.01em; }

.kicker {
  gap: .7rem;
  margin-bottom: 1rem;
  color: var(--mut);
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .055em;
}

.kicker::before {
  width: 18px;
  background: var(--mineral);
}

.kicker .no { color: var(--mineral); font-variant-numeric: tabular-nums; }

.src,
.quote .q-att,
.consensus .cq-att,
.fig figcaption .fno,
table.matrix caption,
table.matrix thead th {
  font-family: var(--f-body);
  letter-spacing: .01em;
}

.src { color: var(--mut); }

a.srcl .tip,
.txt-tip-wrap .txt-tip,
.navigatorTooltip {
  border: 1px solid var(--line2);
  border-radius: 0;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 12px 28px rgba(9, 18, 15, .22);
}

@media (min-width: 721px) {
  a.srcl .tip {
    max-height: calc(100vh - 24px);
    overflow: auto;
    transform: translateX(var(--tip-shift-x, 0px)) translateY(3px);
  }

  a.srcl:hover .tip,
  a.srcl:focus-visible .tip {
    transform: translateX(var(--tip-shift-x, 0px));
  }

  a.srcl.tip-below .tip {
    top: calc(100% + 9px);
    bottom: auto;
  }

  a.srcl.tip-below .tip::before {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--ink);
  }

  .txt-tip-wrap .txt-tip {
    max-height: calc(100vh - 24px);
    overflow: auto;
    transform: translateX(calc(-50% + var(--tip-shift-x, 0px))) translateY(3px);
  }

  .txt-tip-wrap:hover .txt-tip,
  .txt-tip-wrap:focus-visible .txt-tip {
    transform: translateX(calc(-50% + var(--tip-shift-x, 0px)));
  }

  .txt-tip-wrap.tip-below .txt-tip {
    top: calc(100% + 9px);
    bottom: auto;
  }

  .txt-tip-wrap.tip-below .txt-tip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--ink);
  }
}

.vyvod {
  margin: 2.2rem 0;
  padding: 1.35rem 1.45rem 1.45rem;
  border: 1px solid var(--line);
  border-left-width: 1px;
  background: var(--signal-soft);
  color: var(--panel-ink);
  box-shadow: none;
}

html:not([data-theme="dark"]) .vyvod {
  border-color: #8f5d58;
  background: linear-gradient(135deg, #722b27 0%, #4f2223 100%);
  color: #fff;
}

html:not([data-theme="dark"]) .vyvod .v-lbl {
  color: #f2c9c4;
}

html:not([data-theme="dark"]) .vyvod .src,
html:not([data-theme="dark"]) .vyvod a {
  color: rgba(255, 255, 255, .78);
}

.vyvod .v-lbl {
  margin-bottom: .65rem;
  color: var(--signal-dark);
  font-family: var(--f-body);
  font-size: .7rem;
  font-weight: 760;
  letter-spacing: .055em;
}

.vyvod .v-lbl::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.vyvod .src { color: color-mix(in srgb, var(--panel-ink) 72%, transparent); }

.quote {
  padding: .25rem 0;
  border-left: 0;
}

.quote .q-text {
  color: var(--ink);
  font-family: var(--f-editorial);
  font-weight: 500;
  letter-spacing: -.018em;
}

.quote.q-long {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.theme.theme-flag {
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--signal) 10%, var(--bg)) 0%,
    color-mix(in srgb, var(--signal) 5%, var(--bg)) 26%,
    var(--bg) 64%
  );
}

html[data-theme="dark"] .theme.theme-flag { background: var(--signal-soft); }

.flaghead {
  margin: 2.4rem 0 1.5rem;
  padding: 1.2rem 1.35rem;
  background: var(--signal);
  color: #fff;
  box-shadow: none;
}

.flaghead .fh-k {
  font-family: var(--f-body);
  letter-spacing: .055em;
}

.flaghead .fh-k::before { width: 18px; height: 1px; }

html #p2-t3 .flaghead {
  --accent: var(--signal);
  background: var(--signal) !important;
  border: 0 !important;
  color: #fff !important;
}

html #p2-t3 .flaghead .fh-k,
html #p2-t3 .flaghead .fh-t {
  color: #fff !important;
}

.consensus {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line2);
  background: var(--surface);
}

.consensus .cons-lbl {
  color: var(--signal);
  font-family: var(--f-body);
  letter-spacing: .055em;
}

.consensus .cons-lbl::before { width: 18px; height: 1px; }
.consensus .cons-quote::before { color: var(--signal); }

.caveat,
.note-author {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.caveat .c-lbl,
.note-author .na-lbl {
  font-family: var(--f-body);
  letter-spacing: .055em;
}

.stat-row,
.scen,
.table-scroll,
details.case,
.fig .fig-box,
.fstep,
.chain .ch {
  border-color: var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.stat-row,
.scen .scen-cols { gap: 0; background: transparent; }

.stat {
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.stat:last-child { border-right: 0; }

.stat .n,
.sc-col .sc-num {
  font-family: var(--f-editorial);
  font-weight: 600;
  letter-spacing: -.025em;
}

.sc-chip {
  border-radius: 2px;
  font-family: var(--f-body);
  font-weight: 680;
}

.scen .scen-head { border-color: var(--line2); }
.scen .scen-cols { border-top: 0; }
.sc-col { border-right: 1px solid var(--line); background: var(--surface); }
.sc-col:last-child { border-right: 0; }
.sc-col::before { display: none; }

.sc-col .sc-tag {
  font-family: var(--f-body);
  font-weight: 720;
  letter-spacing: .04em;
}

.scen .scen-verdict::before,
.scen-verdict.standalone-verdict::before {
  color: var(--signal);
  font-family: var(--f-body);
}

body[data-lens="15"] .sc-col[data-sc~="15"],
body[data-lens="15"] .sc-col[data-sc~="now"],
body[data-lens="2"] .sc-col[data-sc~="2"],
body[data-lens="3"] .sc-col[data-sc~="3"] {
  box-shadow: none;
}

table.matrix caption,
table.matrix thead th {
  letter-spacing: .045em;
}

table.matrix thead th { background: var(--bg2); }
table.matrix tbody th { background: var(--surface); }

details.case > summary .c-mark,
details.case > summary .c-cta {
  font-family: var(--f-body);
}

details.case > summary .c-mark { color: var(--mineral); }
details.case > summary .c-cta { letter-spacing: .035em; }
details.case .c-body { border-top-style: solid; }

.fig figcaption { border-top: 1px solid var(--line); padding-top: .55rem; }
.fig figcaption .fno { color: var(--mineral); letter-spacing: .035em; }

.fstep::before,
.fstep .f-cs span i,
.chain .ar {
  font-family: var(--f-body);
}

.fstep::before { color: var(--signal); font-variant-numeric: tabular-nums; }
.chain .ar { color: var(--mineral); }

.model-section { background: var(--bg2); }

.wm-section { margin-block: 4rem; }

.wm-head {
  text-align: left;
}

.wm-head .kicker { justify-content: flex-start; }
.wm-head .lead { margin-inline: 0; }

.wm-machine {
  margin-top: 2rem;
  padding-block: 3rem 2.4rem;
  border-color: var(--line2);
  background: var(--bg2);
}

.wm-no,
.wm-title,
.wm-insight {
  font-family: var(--f-editorial);
  font-weight: 500;
  letter-spacing: -.02em;
}

.wm-no { color: var(--accent); }

.wm-no small,
.wm-axis,
.wm-dossier .d-water,
.wm-dossier .d-tag,
.wm-dossier .d-now b.lbl,
.wm-mech b,
.wm-loop b,
.wm-loop .gap,
.wm-legend {
  font-family: var(--f-body);
  letter-spacing: .035em;
}

.wm-card,
.wm-dossier,
.wm-th {
  border-color: var(--line);
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

a.wm-card:hover,
.wm-card[data-href]:hover,
a.wm-dossier:hover,
.wm-dossier[data-href]:hover,
.wm-th[data-href]:hover {
  transform: none;
  border-color: var(--accent);
  box-shadow: none;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.wm-card.accentfill,
html[data-theme="dark"] .wm-card.accentfill {
  background: var(--depression-bg);
  border-color: var(--line);
}

.wm-card.accentfill h4,
.wm-card.accentfill p,
.wm-card.accentfill .wm-sub,
.wm-card.accentfill a.srcl {
  color: var(--depression-ink);
}

a.wm-card.accentfill:hover,
.wm-card.accentfill[data-href]:hover {
  border-color: var(--line2) !important;
  background: var(--depression-bg-hover);
}

a.wm-card.accentfill:hover h4,
a.wm-card.accentfill:hover p,
a.wm-card.accentfill:hover .wm-sub,
.wm-card.accentfill[data-href]:hover h4,
.wm-card.accentfill[data-href]:hover p,
.wm-card.accentfill[data-href]:hover .wm-sub,
.wm-card.accentfill[data-href]:hover a.srcl {
  color: var(--depression-ink);
}

.wm-dossier .d-water {
  padding: 0 0 .15rem;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
}

.wm-dossier .d-now {
  border-radius: 0;
  background: var(--bg2);
}

.wm-arrow {
  position: relative;
  width: 30px;
  height: 12px;
  padding: 0;
  color: transparent;
  font-size: 0;
}

.wm-arrow::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 4px;
  top: 5px;
  height: 1px;
  background: var(--signal);
}

.wm-arrow::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 2px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--signal);
  border-right: 1px solid var(--signal);
  transform: rotate(45deg);
}

.wm-axis { letter-spacing: .06em; }
.wm-axis::before,
.wm-axis::after { height: 1px; background: var(--line2); }

.wm-mech {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-top-color: var(--line);
  border-radius: 0;
  background: var(--surface);
}

.wm-loop {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-top-color: var(--line);
  border-radius: 0;
  background: var(--surface);
}

.wm-loop .ico { display: none; }
.wm-legend i { border-radius: 0; }

.reportMenuFloat { font-family: var(--f-body); }

.reportMenuFloat > summary {
  min-height: 48px !important;
  border: 1px solid var(--line2) !important;
  border-radius: 0 !important;
  background: var(--ink) !important;
  color: var(--surface) !important;
  box-shadow: 0 10px 24px rgba(8, 18, 14, .2) !important;
  font-size: .8rem !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
}

.reportMenuFloat > summary:hover,
.reportMenuFloat[open] > summary {
  transform: none;
  background: var(--signal-dark) !important;
  color: #fff !important;
}

.reportMenuFloat > summary::before {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 4px / 9px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 14px 1px no-repeat;
}

.reportMenuFloat nav {
  padding: 0 !important;
  border: 1px solid var(--line2) !important;
  border-radius: 0 !important;
  background: var(--surface) !important;
  box-shadow: 0 16px 36px rgba(8, 18, 14, .22) !important;
}

.reportMenuFloat nav a {
  color: var(--ink2) !important;
  border-color: var(--line) !important;
  font-family: var(--f-body) !important;
  font-weight: 580 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.reportMenuFloat nav a:hover { background: var(--bg2) !important; color: var(--ink) !important; }

.climate-support,
.livingReport,
.reportOtherMaterials {
  background: var(--bg2);
}

.climate-support { border-color: var(--line2); }

.climate-support-kicker,
.livingReportUpdated,
.livingReportLog time {
  font-family: var(--f-body);
  letter-spacing: .035em;
}

.climate-support h2,
.livingReportCopy h2 {
  font-family: var(--f-editorial);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.climate-support-link {
  border-color: var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-weight: 650;
}

.climate-support-link:hover { background: var(--ink); color: var(--surface); }

.livingReport { border-color: var(--line2); }
.livingReportHistory { border-top-color: var(--mineral); }
.livingReportLog time { color: var(--signal); }
.livingReportLog a { color: var(--ink); text-decoration-color: var(--mineral); }
.livingReportLog a:hover { color: var(--mineral); }

.reportSubscribeTopics input { accent-color: var(--mineral); }

.reportSubscribeRow input {
  border-color: var(--line2);
  background: var(--surface);
}

.reportSubscribeRow button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--f-body);
  font-weight: 680;
  letter-spacing: .025em;
}

.reportSubscribeRow button:hover,
.reportSubscribeRow button:focus-visible {
  background: var(--mineral);
  border-color: var(--mineral);
  color: #fff;
}

.reportOtherMaterials { border-top: 1px solid var(--line2); }

.reportFooterNav { border-color: var(--line2); }
.reportFooterNav a { border-color: var(--line); }
.reportFooterNav a:hover { background: var(--surface); color: var(--mineral); }

.report-about-grid { border-top: 0; padding-top: 2rem; }

.report-acknowledgements { border-left-color: var(--line2); }

/* Cyprus case study: one forensic ledger, not a nested dashboard. */
.cy-e3,
.cy-e3-hero,
.cy-e3-grid-title,
.cy-e3-facts,
.cy-e3-squeeze,
.cy-e3-cascade,
.cy-e3-verdict {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cy-e3 {
  background: transparent !important;
}

.cy-e3-hero,
.cy-e3-grid-title,
.cy-e3-facts,
.cy-e3-squeeze,
.cy-e3-cascade {
  border-color: var(--line2) !important;
}

.cy-e3-hero,
.cy-e3-hero > div,
.cy-e3-grid-title,
.cy-e3-fact,
.cy-e3-squeeze,
.cy-e3-cascade,
.cy-e3-trigger,
.cy-e3-lane,
.cy-e3-risk,
.cy-e3-impact,
.cy-e3-impact-card,
.cy-e3-card-metrics > div {
  background: var(--surface) !important;
}

.cy-e3-stamp {
  border-left: 0 !important;
  border-top: 1px solid var(--line) !important;
}

.cy-e3-stamp span,
.cy-e3-title span,
.cy-e3-grid-title span,
.cy-e3-k,
.cy-e3-block-head span,
.cy-e3-trigger span,
.cy-e3-risk span,
.cy-e3-chain-core span,
.cy-e3-chain-card span,
.cy-e3-impact-core span,
.cy-e3-impact-card span,
.cy-e3-verdict span {
  font-family: var(--f-body) !important;
  font-weight: 680 !important;
  letter-spacing: .055em !important;
}

.cy-e3-stamp b,
.cy-e3-title h4,
.cy-e3-fact-top > b,
.cy-e3-block-head b,
.cy-e3-trigger b,
.cy-e3-risk b,
.cy-e3-chain-core b,
.cy-e3-impact-core b {
  font-family: var(--f-editorial) !important;
  font-weight: 500 !important;
  letter-spacing: -.035em !important;
}

.cy-e3-stamp em {
  font-family: var(--f-body) !important;
  letter-spacing: .035em !important;
}

.cy-e3-grid-title {
  border-bottom: 1px solid var(--line) !important;
}

.cy-e3-facts {
  gap: 0 !important;
  background: var(--surface) !important;
  border-top: 0 !important;
}

.cy-e3-fact {
  border-top: 0 !important;
  border-right: 1px solid var(--line) !important;
}

.cy-e3-fact:last-child { border-right: 0 !important; }

.cy-e3-fact-top {
  border-top: 1px solid var(--line) !important;
}

.cy-e3-fact.danger .cy-e3-fact-top,
.cy-e3-fact.hot .cy-e3-fact-top { border-top-color: var(--line) !important; }

.cy-e3-metric {
  background: var(--bg2) !important;
}

.cy-e3-squeeze,
.cy-e3-cascade {
  margin-inline: 0 !important;
}

.cy-e3-block-head {
  padding-left: 1.15rem !important;
  background: var(--surface) !important;
}

.cy-e3-block-head::before { display: none !important; }

.cy-e3-trigger {
  border-top: 1px solid var(--line) !important;
}

.cy-e3-trigger::after,
.cy-e3-lane::after,
.cy-e3-chain-core::after,
.cy-e3-chain-card::after {
  display: none !important;
}

.cy-e3-lane {
  padding: 1rem 1.15rem !important;
  border-left: 0 !important;
  border-top: 1px solid var(--line) !important;
}

.cy-e3-lane.reserve,
.cy-e3-lane.down { border-top-color: var(--line) !important; }

.cy-e3-lane-tag,
.cy-e3-lane.reserve .cy-e3-lane-tag,
.cy-e3-lane.down .cy-e3-lane-tag {
  display: block !important;
  width: fit-content;
  min-height: 0 !important;
  margin-bottom: .7rem !important;
  padding: 0 0 .22rem !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ink2) !important;
  font-family: var(--f-body) !important;
  font-weight: 680 !important;
  letter-spacing: .045em !important;
}

.cy-e3-risk {
  border-left: 1px solid var(--line) !important;
  border-top: 1px solid var(--line) !important;
  background: var(--signal-soft) !important;
}

.cy-e3-impact-cards {
  gap: 0 !important;
  background: var(--surface) !important;
}

.cy-e3-impact-card {
  border-top: 1px solid var(--line) !important;
  border-right: 1px solid var(--line) !important;
}

.cy-e3-impact-card.cool,
.cy-e3-impact-card.economy { border-top-color: var(--line) !important; }
.cy-e3-impact-card:last-child { border-right: 0 !important; }

.cy-e3-card-metrics {
  gap: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
}

.cy-e3-card-metrics > div {
  border-right: 1px solid var(--line) !important;
}

.cy-e3-card-metrics > div:last-child { border-right: 0 !important; }

.cy-e3-verdict {
  margin-inline: 0 !important;
  border: 1px solid var(--line) !important;
  background: var(--signal-soft) !important;
  color: var(--panel-ink) !important;
}

.cy-e3-verdict span { color: var(--signal-dark) !important; }
.cy-e3-verdict p { color: var(--panel-ink) !important; }

@media (max-width: 1100px) {
  .hnClimateSectionMenu > summary,
  .hnClimateSectionPanel a,
  .hnClimateNav a,
  .tbtn {
    font-family: var(--f-body) !important;
  }

  .hnClimateSectionMenu > summary,
  .hnClimateSectionPanel a {
    letter-spacing: .035em;
  }

  .hnClimateSectionMenu > summary {
    font-size: 11px !important;
    letter-spacing: .055em !important;
  }

  .hnClimateSectionPanel {
    border-color: var(--line2);
    background: var(--surface);
    box-shadow: 0 18px 36px rgba(8, 18, 14, .2);
  }

  .hnClimateSectionPanel a {
    color: var(--ink2);
    border-color: var(--line);
    min-height: 50px;
    font-size: 12px;
    font-weight: 580;
    letter-spacing: .015em;
    text-transform: none;
  }

  .hnClimateSectionPanel a::before { color: var(--signal); }
  .hnClimateSectionPanel a.act { background: var(--ink); color: var(--surface); box-shadow: none; }

  .topbar .hnClimateNav {
    height: 40px !important;
  }

  .hnClimateNav a {
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding-inline: 8px !important;
    font-size: 10px !important;
    font-weight: 680 !important;
    letter-spacing: .025em !important;
  }

  .tbtn {
    width: 44px !important;
    height: 44px !important;
  }
}

@media (max-width: 820px) {
  .cover-grid::before { left: 33.333%; }
  .cover-grid::after { right: 16.667%; }

  .cover-title {
    max-width: 14ch;
    margin-top: clamp(4rem, 12vh, 6rem);
    font-size: clamp(2.55rem, 10.4vw, 4.4rem) !important;
  }

  .divider .dv-inner { gap: 1.2rem; }
  .dv-num { font-size: clamp(5rem, 25vw, 9rem); }
  .dv-title { font-size: clamp(2.35rem, 9vw, 4.2rem); }

  .stat-row.price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }

  .report-about-grid { padding-top: 1.5rem; }
}

@media (max-width: 720px) {
  :root { --nav-h: 56px; --gut: 1.15rem; }

  .topbar { padding-inline: .75rem; }

  .cover::before,
  .cover::after,
  .divider::before,
  .divider::after {
    content: none;
  }

  .cover-with-intro .cover-title {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }

  .cover-title-break {
    white-space: nowrap;
    font-size: .72em;
    line-height: .92;
  }

  .cover-title-break em {
    display: inline !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }

  .wm-thresholds {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .wm-th { padding: 1rem 1.1rem; }

  .cover::before { left: var(--gut); }
  .cover::after { right: var(--gut); }

  .cover-meta { padding-top: 1rem; font-size: .67rem; }

  .cover-title {
    margin-bottom: 2rem;
    font-size: clamp(2.3rem, 11vw, 3.5rem) !important;
    line-height: .98;
  }

  html[lang="ru"] .cover-title em,
  html[lang="uk"] .cover-title em {
    display: block;
    font-size: .8em;
    line-height: 1.02;
    letter-spacing: -.035em;
  }

  .cover-intro { padding-top: 1rem; font-size: 1rem; line-height: 1.58; }

  .divider { min-height: 58svh; }
  .divider .dv-inner { grid-template-columns: 1fr; }
  .dv-num { position: absolute; right: var(--gut); top: 2rem; opacity: .34; }
  .dv-body { position: relative; z-index: 1; }

  .theme { padding-block: 2.7rem; }

  .vyvod { margin-inline: 0; padding: 1.15rem; }

  .stat-row,
  .stat-row-2col,
  .stat-row.price-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }

  .scen .scen-cols { grid-template-columns: 1fr; }
  .sc-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .sc-col:last-child { border-bottom: 0; }

  .cy-e3-fact { border-right: 0 !important; }
  .cy-e3-risk { border-left: 0 !important; }
  .cy-e3-impact-card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .cy-e3-impact-card:last-child { border-bottom: 0 !important; }

  .reportMenuFloat {
    right: 64px !important;
    bottom: 14px !important;
  }

  .reportMenuFloat > summary {
    width: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
  }

  .reportMenuFloat > summary::before {
    width: 16px;
    height: 10px;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 16px 1px no-repeat,
      linear-gradient(currentColor, currentColor) 0 4.5px / 10px 1px no-repeat,
      linear-gradient(currentColor, currentColor) 0 9px / 16px 1px no-repeat;
  }

  .reportMenuFloat > summary::after { display: none !important; }

  .reportMenuFloat nav {
    min-width: min(300px, calc(100vw - 32px)) !important;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }

  .toTop {
    right: 14px !important;
    bottom: 14px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 0 !important;
    background: var(--surface) !important;
    box-shadow: none !important;
  }

  .toTop::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 0;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
    box-shadow: none;
    transform: rotate(45deg) translate(2px, 2px);
  }

  .toTop::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 14px;
    width: 1px;
    height: 15px;
    background: currentColor;
    transform: translateX(-50%);
  }

  .reportMenuFloat,
  .toTop {
    transition: opacity .16s ease, transform .16s ease;
  }

  body.hnCompactControlsHidden .reportMenuFloat,
  body.hnCompactControlsHidden .toTop {
    opacity: 0;
    transform: translateY(64px);
    pointer-events: none;
  }
}

@media print {
  .vyvod {
    background: #f4e4e0;
    color: #2a201d;
    border: 1px solid #8f8f8f;
  }
}

/* --------------------------------------------------------------------------
   Technical typography and edge-free emphasis

   Meaning is carried by type, field tone and text color. Colored strokes may
   identify data inside a diagram, but never decorate the edge of a container.
   -------------------------------------------------------------------------- */

.cover-title,
.dv-num,
.dv-title,
.h-disp,
h2.h-sec,
.flaghead .fh-t,
.consensus .cq-text,
.stat .n,
.sc-col .sc-num,
.wm-no,
.wm-title,
.wm-insight,
.climate-support h2,
.livingReportCopy h2,
.cy-e3-stamp b,
.cy-e3-title h4,
.cy-e3-fact-top > b,
.cy-e3-block-head b,
.cy-e3-trigger b,
.cy-e3-risk b,
.cy-e3-chain-core b,
.cy-e3-impact-core b,
.cy-e3-metric strong,
.cy-e3-card-metrics strong {
  font-family: var(--f-tech) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums lining-nums;
}

.cover-title {
  width: min(1120px, 100%);
  max-width: none;
  margin-top: clamp(2.5rem, 5vh, 4rem);
  font-size: clamp(4.5rem, 8.25vw, 8rem) !important;
  line-height: .84;
  letter-spacing: .004em;
  text-wrap: pretty;
}

.dv-title {
  max-width: 16ch;
  font-size: clamp(3.25rem, 7.1vw, 6.7rem);
  line-height: .86;
  letter-spacing: .006em;
}

.dv-num {
  letter-spacing: -.015em;
}

h2.h-sec {
  max-width: 22ch;
  font-size: clamp(2.35rem, 4.15vw, 4.15rem);
  line-height: .9;
  letter-spacing: .006em;
}

.stat .n,
.sc-col .sc-num {
  letter-spacing: .005em;
}

/* Functional state uses a filled cell, not a colored underline. */
.navlinks a.act {
  border-bottom-color: transparent;
  background: var(--bg2);
}

.seg button.on,
.hnClimateNav a[aria-current="page"],
.hnClimateSectionPanel a.act {
  border-color: var(--ink) !important;
  background: var(--ink) !important;
  color: var(--surface) !important;
  box-shadow: none !important;
}

#progress {
  background: var(--line2);
}

/* Remove decorative colored rules while preserving neutral structure. */
.cover-intro,
.sut,
.vyvod,
.quote,
.quote.q-long,
.theme.theme-flag,
.consensus,
.critical,
.flaghead,
.wm-card,
.wm-dossier,
.wm-th,
.wm-mech,
.wm-loop,
.cy-e3-stamp,
.cy-e3-fact-top,
.cy-e3-trigger,
.cy-e3-lane,
.cy-e3-risk,
.cy-e3-impact-card,
.cy-e3-verdict {
  border-color: var(--line) !important;
}

.cover-intro {
  border-top-color: var(--line2) !important;
}

.dv-edge {
  display: none !important;
}

.cover-deg span,
.cover-deg .d15,
.cover-deg .d2,
.cover-deg .d3 {
  border-color: var(--line2) !important;
}

.cec-metric {
  border-bottom: 0 !important;
  color: var(--signal-dark) !important;
  font-family: var(--f-tech);
  font-weight: 700;
  letter-spacing: .01em;
}

.sut {
  padding: 1rem 0;
  border-top-width: 1px;
  border-bottom: 1px solid var(--line);
}

.vyvod {
  border-width: 1px;
}

.quote {
  padding-left: 0;
  border-left: 0 !important;
}

.quote.q-long {
  border-width: 1px;
}

.theme.theme-flag {
  border-top-width: 1px;
}

.consensus,
.cy-e3-verdict {
  border-width: 1px !important;
}

.kicker::before,
.dv-body .dv-part::before,
.vyvod .v-lbl::before,
.flaghead .fh-k::before,
.consensus .cons-lbl::before {
  display: none !important;
}

.sc-col::before {
  display: none !important;
}

body[data-lens="15"] .sc-col[data-sc~="15"],
body[data-lens="15"] .sc-col[data-sc~="now"],
body[data-lens="2"] .sc-col[data-sc~="2"],
body[data-lens="3"] .sc-col[data-sc~="3"] {
  background: color-mix(in srgb, var(--scc) 7%, var(--surface));
  box-shadow: none;
}

.sc-chip {
  border-color: transparent !important;
}

.wm-card,
.wm-dossier,
.wm-th,
.wm-mech,
.wm-loop {
  border-top-width: 1px;
}

.wm-dossier .d-water {
  border-bottom: 0;
  color: var(--accent);
}

.wm-card[data-href]:hover,
a.wm-card:hover,
.wm-dossier[data-href]:hover,
a.wm-dossier:hover,
.wm-th[data-href]:hover {
  border-color: var(--line2) !important;
}

.cy-e3-stamp {
  border-top-width: 1px !important;
  background: var(--signal-soft) !important;
}

.cy-e3-fact-top,
.cy-e3-trigger,
.cy-e3-lane,
.cy-e3-risk,
.cy-e3-impact-card {
  border-top-width: 1px !important;
}

.cy-e3-lane.reserve {
  background: color-mix(in srgb, var(--sc15) 7%, var(--surface)) !important;
}

.cy-e3-lane.down,
.cy-e3-trigger,
.cy-e3-risk {
  background: color-mix(in srgb, var(--signal) 7%, var(--surface)) !important;
}

.cy-e3-impact-card.cool {
  background: color-mix(in srgb, var(--sc2) 6%, var(--surface)) !important;
}

.cy-e3-impact-card.economy {
  background: color-mix(in srgb, var(--signal) 6%, var(--surface)) !important;
}

.cy-e3-lane-tag,
.cy-e3-lane.reserve .cy-e3-lane-tag,
.cy-e3-lane.down .cy-e3-lane-tag {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.theme p[style*="border-left"],
.theme div[style*="border-left"] {
  border-left-color: var(--line2) !important;
}

@media (max-width: 820px) {
  .cover-title {
    width: 100%;
    max-width: none;
    font-size: clamp(3.4rem, 12.8vw, 5.7rem) !important;
  }

  .dv-title {
    max-width: 17ch;
    font-size: clamp(3rem, 11.5vw, 5rem);
  }
}

@media (max-width: 720px) {
  .cover-title {
    margin-top: clamp(3rem, 8vh, 4.5rem);
    font-size: clamp(3.25rem, 15vw, 4.25rem) !important;
    line-height: .86;
  }

  html[lang="ru"] .cover-title em,
  html[lang="uk"] .cover-title em {
    font-size: .9em;
    line-height: .9;
    letter-spacing: .004em;
  }
}
