/* ==========================================================================
   v2-sg.css  -  Synapse Grid pages (body.p-sg): /synapse-grid/ and /synapse-grid/changelog/
   Loaded AFTER assets/v2.css. Uses the v2 tokens; accent = --sg (cyan), secondary = --sg-2 (magenta).
   Sections: 1 page-wide  2 hero  3 sub-nav  4 stat strip  5 whats-new  6 rules  7 gallery
             8 feature grid  9 demo + soundtrack  10 Grid Runner  11 Steam page + requirements
             12 price band  13 community + cross-promo  14 trailer dialog  15 changelog
   ========================================================================== */

/* 1 ─ page-wide ──────────────────────────────────────────────────────────── */
html:has(body.p-sg) { scroll-padding-top: calc(var(--header-h) + 64px); }
body.p-sg { --accent-2: var(--sg-2); }
.p-sg .btn--pink { background: var(--sg-2); border-color: transparent; color: #2a0414; box-shadow: 0 10px 30px -12px var(--sg-2); }
.p-sg .btn--pink:hover { background: var(--sg-2); filter: brightness(1.1); box-shadow: 0 14px 34px -12px var(--sg-2); }
.p-sg .section-head .lead { margin-bottom: 0; }
.p-sg .sg-narrow { max-width: 760px; }
.p-sg .sg-more { margin-top: 28px; }
.p-sg .sg-cap-note { margin: 18px 0 0; color: var(--dim); font-size: .9rem; max-width: 74ch; }

/* 2 ─ hero ───────────────────────────────────────────────────────────────── */
.sg-hero { min-height: clamp(600px, 90vh, 920px); min-height: clamp(600px, 90svh, 920px); align-items: flex-end; }
.sg-hero .hero-media { background: #05070a; }
.sg-hero-video { width: 100%; height: 100%; object-fit: cover; }
.sg-hero .hero-scrim {
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11, 13, 16, .82) 18%, rgba(11, 13, 16, .25) 50%, rgba(11, 13, 16, .12) 72%, rgba(11, 13, 16, .55) 100%),
    linear-gradient(90deg, rgba(7, 9, 16, .86) 0%, rgba(7, 9, 16, .5) 42%, rgba(7, 9, 16, 0) 74%);
}
.sg-hero::after {              /* faint magenta floor glow, the secondary accent */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 18% 100%, rgba(255, 46, 151, .16), transparent 70%);
}
.sg-hero .hero-title { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .96; letter-spacing: -.045em; margin-bottom: 20px; }
.sg-hero .hero-title span { color: var(--sg); text-shadow: 0 0 40px rgba(46, 230, 246, .35); }
.sg-hero .hero-lead { max-width: 54ch; }
.sg-hero .btn-row { margin-bottom: 0; }
.sg-hero .hero-note { max-width: 62ch; margin-top: 18px; }
.sg-hero .hero-note a { color: var(--text); }
.sg-hero .chips { margin-bottom: 22px; }
.sg-hero-ctl {                 /* pause / play for the background loop */
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: rgba(11, 13, 16, .6);
  backdrop-filter: blur(8px); color: var(--text); font: 500 .8rem/1 var(--font-body); cursor: pointer;
}
.sg-hero-ctl:hover { border-color: var(--sg); color: var(--sg); }
.sg-hero-ctl svg { width: 14px; height: 14px; fill: currentColor; }
.sg-hero-ctl .i-play, .sg-hero-ctl[aria-pressed="true"] .i-pause { display: none; }
.sg-hero-ctl[aria-pressed="true"] .i-play { display: block; }
.sg-hero-ctl[hidden] { display: none; }
@media (max-width: 760px) {
  .sg-hero { padding: 36px 0 84px; }
  .sg-hero .btn-row { gap: 10px; }
  .sg-hero .btn-row .btn { flex: 1 1 calc(50% - 5px); min-height: 48px; padding: 0 14px; font-size: .95rem; }
  .sg-hero .btn-row .btn:first-child { flex-basis: 100%; }
  .sg-hero .hero-lead { margin-bottom: 20px; }
  .sg-hero-ctl { left: var(--gutter); right: auto; bottom: 22px; }
}

/* 3 ─ sub-nav (sticky under the header) ─────────────────────────────────── */
.sg-subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(11, 13, 16, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sg-subnav-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sg-subnav-in::-webkit-scrollbar { display: none; }
.sg-subnav a {
  flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.sg-subnav a:hover { color: var(--text); }
.sg-subnav a.is-active, .sg-subnav a[aria-current="page"] { color: var(--sg); border-bottom-color: var(--sg); }
.sg-subnav .sg-subnav-sep { flex: none; width: 1px; height: 20px; margin: 0 8px; background: var(--line-2); }
@media (max-width: 960px) { .sg-subnav { top: 0; position: relative; } }

/* 4 ─ stat strip ─────────────────────────────────────────────────────────── */
.sg-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sg-stats .stat-num { color: var(--sg); }
@media (max-width: 960px) { .sg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-stats .stat:last-child { grid-column: 1 / -1; } }
@media (max-width: 400px) { .sg-stats { grid-template-columns: minmax(0, 1fr); } }

/* 5 ─ what's new ─────────────────────────────────────────────────────────── */
.sg-new { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.sg-new-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.sg-new-list li { position: relative; padding-left: 20px; color: var(--muted); }
.sg-new-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--sg); box-shadow: 0 0 10px var(--sg); }
.sg-new-list b { color: var(--text); font-weight: 600; }
.sg-new-media { margin: 0; }
.sg-new-media img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #05070a; }
.sg-new-media figcaption { margin-top: 12px; color: var(--dim); font-size: .88rem; }
@media (max-width: 960px) { .sg-new { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* 6 ─ four rules ─────────────────────────────────────────────────────────── */
.sg-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: rule; }
.sg-rule {
  position: relative; padding: 26px 22px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(46, 230, 246, .06), rgba(46, 230, 246, 0) 50%), var(--surface);
}
.sg-rule::before {
  counter-increment: rule; content: "0" counter(rule); display: block; margin-bottom: 16px;
  font: 500 .75rem/1 var(--font-mono); letter-spacing: .14em; color: var(--sg);
}
.sg-rule h3 { margin-bottom: 10px; }
.sg-rule p { margin: 0; color: var(--muted); font-size: .97rem; }
.sg-rule--amber { border-color: rgba(255, 179, 71, .3); background: linear-gradient(180deg, rgba(255, 179, 71, .09), rgba(255, 179, 71, 0) 50%), var(--surface); }
.sg-rule--amber::before { color: #ffb347; }
.sg-rule--green { border-color: rgba(123, 255, 158, .26); background: linear-gradient(180deg, rgba(123, 255, 158, .08), rgba(123, 255, 158, 0) 50%), var(--surface); }
.sg-rule--green::before { color: #7bff9e; }
@media (max-width: 1060px) { .sg-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sg-rules { grid-template-columns: minmax(0, 1fr); } }

/* 7 ─ gallery ────────────────────────────────────────────────────────────── */
.p-sg .gallery--mosaic .shot img { transition: transform .7s var(--ease); }
.p-sg .gallery--mosaic { gap: 10px; }
.sg-manual { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 56px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sg-manual-pages { display: flex; }
.sg-manual-pages img { width: 84px; height: auto; border-radius: 6px; border: 1px solid var(--line-2); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.sg-manual-pages img + img { margin-left: -28px; }
.sg-manual h3 { margin-bottom: 6px; }
.sg-manual p { margin: 0 0 12px; color: var(--muted); }
@media (max-width: 640px) { .sg-manual { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; } }

/* 8 ─ feature grid ───────────────────────────────────────────────────────── */
.p-sg .feature-icon { color: var(--sg); }
.sg-features-foot { margin-top: 28px; }
.sg-details { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sg-details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; cursor: pointer; list-style: none;
  font: 600 1.05rem/1.3 var(--font-head);
}
.sg-details > summary::-webkit-details-marker { display: none; }
.sg-details > summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--sg); font: 500 1.2rem/1 var(--font-body); }
.sg-details[open] > summary::after { content: "\2212"; }
.sg-details > summary:hover { color: var(--sg); }
.sg-details-body { padding: 4px 24px 28px; border-top: 1px solid var(--line); }
.sg-prose { max-width: 74ch; }
.sg-prose h4 { margin: 1.8em 0 .5em; font: 500 .78rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sg); }
.sg-prose p, .sg-prose li { color: var(--muted); }
.sg-prose strong { color: var(--text); font-weight: 600; }
.sg-prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.sg-prose li + li { margin-top: .5em; }

/* 9 ─ demo + soundtrack ──────────────────────────────────────────────────── */
.sg-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.sg-demo-col { padding: 30px 28px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.sg-demo-col h3 { margin-bottom: 18px; }
.sg-demo-col--in { border-color: rgba(255, 46, 151, .3); background: linear-gradient(180deg, rgba(255, 46, 151, .08), rgba(255, 46, 151, 0) 45%), var(--surface); }
.sg-demo-col p { color: var(--muted); }
.sg-demo-col .mark-list--check li::before { background-color: rgba(255, 46, 151, .12); }
@media (max-width: 760px) { .sg-demo { grid-template-columns: minmax(0, 1fr); } }
.sg-ost { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; align-items: center; }
.sg-ost img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
@media (max-width: 760px) { .sg-ost { grid-template-columns: minmax(0, 1fr); gap: 24px; } .sg-ost img { max-width: 280px; } }

/* 10 ─ Grid Runner: framed browser game ─────────────────────────────────── */
.sg-runner { max-width: 1000px; margin: 0 auto; }
.sg-cab {
  padding: 18px; border-radius: 18px; border: 1px solid rgba(46, 230, 246, .28);
  background: linear-gradient(160deg, #0d1219, #080b10);
  box-shadow: 0 0 0 1px rgba(255, 46, 151, .08), 0 30px 80px -20px rgba(46, 230, 246, .18), var(--shadow);
}
.sg-cab-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.sg-seg { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius-pill); overflow: hidden; }
.sg-seg button {
  font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 11px 14px; min-height: 40px;
  background: transparent; border: 0; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s;
}
.sg-seg button + button { border-left: 1px solid var(--line); }
.sg-seg button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.sg-seg button.on { background: var(--sg); color: #02282c; font-weight: 700; }
.sg-readout { display: flex; flex-direction: column; gap: 2px; min-width: 76px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .35); }
.sg-readout span { font: 500 .6rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.sg-readout b { font: 700 1.1rem/1.1 var(--font-head); color: var(--sg); font-variant-numeric: tabular-nums; }
.sg-cab-obj { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.gwrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #05040f; }
#gr { display: block; width: 100%; height: auto; background: #05040f; touch-action: none; }
#gr:focus-visible { outline: 2px solid var(--sg); outline-offset: -2px; }
.gover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 26px; background: radial-gradient(90% 90% at 50% 50%, rgba(5, 4, 15, .86), rgba(5, 4, 15, .97));
}
.gover[hidden] { display: none; }
.gtitle { font: 700 clamp(1.4rem, 3.6vw, 2.1rem)/1.1 var(--font-head); margin: 0; text-shadow: 0 0 28px rgba(46, 230, 246, .45); }
.gsub { margin: 0; color: var(--muted); max-width: 48ch; font-size: .96rem; }
.gsub b { color: var(--sg); }
.powers { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.powers button {
  position: relative; flex: 1; min-width: 112px; min-height: 48px; overflow: hidden; text-align: left;
  font: 500 .7rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(0, 0, 0, .35);
  color: var(--dim); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.powers button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill, 100%); background: rgba(46, 230, 246, .13); transition: width .2s linear; }
.powers button.ready { color: var(--sg); border-color: rgba(46, 230, 246, .45); }
.powers button:hover { background: rgba(46, 230, 246, .1); }
.powers button i { position: relative; display: block; font-style: normal; font-size: .58rem; color: var(--dim); letter-spacing: .14em; margin-bottom: 2px; }
.powers button b { position: relative; font-weight: 500; }
.inv { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font: 500 .72rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); min-height: 1.4em; }
.inv i { display: inline-block; width: 9px; height: 9px; background: var(--c); border-radius: 2px; box-shadow: 0 0 8px var(--c); margin-right: 5px; }
.inv .none { color: var(--dim); letter-spacing: .04em; text-transform: none; font-style: italic; font-family: var(--font-body); }
.gpad { display: none; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
.gpad div { display: flex; gap: 8px; }
.gpad button { width: 64px; height: 52px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(46, 230, 246, .08); color: var(--sg); font-size: 1rem; cursor: pointer; }
@media (pointer: coarse) { .gpad:not([hidden]) { display: flex; } }
.sg-keys { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.sg-keys kbd { margin-right: 6px; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2); color: var(--text); font: 500 .72rem/1.4 var(--font-mono); }
.sg-runner-note { margin: 22px 0 0; color: var(--muted); font-size: .95rem; max-width: 74ch; }
.sg-runner-note b { color: #ffb347; font-weight: 600; }
.sg-runner-live { margin: 10px 0 0; min-height: 1.2em; color: var(--dim); font-size: .85rem; }
@media (max-width: 600px) {
  .sg-cab { padding: 12px; border-radius: 14px; }
  .sg-seg button { padding: 10px 10px; font-size: .64rem; }
}

/* 11 ─ Steam page copy + requirements ───────────────────────────────────── */
.sg-reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sg-req { padding: 28px 28px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.sg-req > h3 { margin-bottom: 18px; }
.sg-req h4 { margin: 26px 0 10px; font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sg); }
.sg-req h4:first-of-type { margin-top: 0; }
.sg-req .facts { font-size: .94rem; }
.sg-req .facts dt { padding-top: 14px; }
.sg-req .facts dd { color: var(--muted); }
.sg-req-note { margin: 12px 0 0; color: var(--dim); font-size: .88rem; }
@media (max-width: 860px) { .sg-reqs { grid-template-columns: minmax(0, 1fr); } }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sg-chips li { padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .9rem; }
.sg-glance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sg-glance h3 { margin-bottom: 16px; }
@media (max-width: 960px) { .sg-glance { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.sg-short { margin: 0 0 40px; padding: 26px 28px; border-left: 3px solid var(--sg); border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(90deg, rgba(46, 230, 246, .07), rgba(46, 230, 246, 0)); font: 500 clamp(1.1rem, 1.8vw, 1.35rem)/1.5 var(--font-head); color: var(--text); }
.sg-short-label { display: block; margin-bottom: 10px; font: 500 .72rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sg); }

/* 12 ─ price band ────────────────────────────────────────────────────────── */
.sg-price { text-align: center; max-width: 760px; margin: 0 auto; }
.sg-price-num { margin: 8px 0 4px; font: 700 clamp(3.4rem, 9vw, 5.6rem)/1 var(--font-head); letter-spacing: -.04em; color: var(--text); text-shadow: 0 0 50px rgba(46, 230, 246, .3); }
.sg-price-tag { margin: 0 0 22px; }
.sg-price h2 { margin-bottom: 14px; }
.sg-price .muted { max-width: 60ch; margin-inline: auto; }
.sg-price .btn-row { justify-content: center; margin-top: 28px; }
.sg-price-note { margin: 16px 0 0; color: var(--dim); font-size: .88rem; }
.sg-price-note a { color: var(--muted); }

/* 13 ─ community + cross-promo ──────────────────────────────────────────── */
.sg-community { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .sg-community { grid-template-columns: minmax(0, 1fr); } }
.sg-support { margin: 28px 0 0; color: var(--muted); font-size: .95rem; max-width: 74ch; }
.sg-promo { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid rgba(63, 207, 142, .3); border-radius: 20px; background: radial-gradient(80% 120% at 0% 0%, rgba(63, 207, 142, .12), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.sg-promo-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.sg-promo-body h2 { margin: 0; }
.sg-promo-body p { margin: 0; color: var(--muted); }
.sg-promo-media { position: relative; min-height: 300px; margin: 0; }
.sg-promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-promo-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface), transparent 30%); }
@media (max-width: 860px) {
  .sg-promo { grid-template-columns: minmax(0, 1fr); }
  .sg-promo-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .sg-promo-media::after { background: linear-gradient(to top, var(--surface), transparent 40%); }
  .sg-promo-body { padding: 30px 24px 34px; }
}

/* 14 ─ trailer dialog ───────────────────────────────────────────────────── */
.sg-trailer { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: #000; color: var(--text); overflow: visible; box-shadow: 0 30px 120px rgba(0, 0, 0, .8); }
.sg-trailer::backdrop { background: rgba(3, 5, 8, .88); backdrop-filter: blur(6px); }
.sg-trailer video { width: 100%; max-height: calc(100vh - 24px); border-radius: var(--radius); background: #000; }
.sg-trailer-x { position: absolute; z-index: 2; top: -18px; right: -6px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sg-trailer-x:hover { border-color: var(--sg); color: var(--sg); }
.sg-trailer-dl { margin: 0; padding: 10px 14px; background: rgba(0, 0, 0, .6); color: var(--dim); font-size: .85rem; border-radius: 0 0 var(--radius) var(--radius); }
.sg-trailer-dl a { color: var(--muted); }
@media (max-width: 600px) { .sg-trailer-x { top: -16px; right: 4px; } }

/* 15 ─ changelog ─────────────────────────────────────────────────────────── */
.cl-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 90% 0%, rgba(46, 230, 246, .1), transparent 65%), radial-gradient(50% 100% at 0% 100%, rgba(255, 46, 151, .08), transparent 65%), var(--bg); }
.cl-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 14px; }
.cl-head .lead { margin-bottom: 0; }
.cl-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.cl-index { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.cl-index h2 { margin: 0 0 12px; font: 500 .72rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cl-jump { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.cl-jump a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-left: -1px; padding: 7px 14px; border-left: 2px solid transparent; color: var(--muted); font: 600 .95rem/1.3 var(--font-head); text-decoration: none; transition: color .2s, border-color .2s; }
.cl-jump a small { font: 500 .66rem/1 var(--font-mono); letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.cl-jump a:hover { color: var(--text); }
.cl-jump a.is-active { color: var(--sg); border-left-color: var(--sg); }
.cl-note { margin-bottom: 40px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .96rem; }
.cl-note p { margin: 0; }
.cl-notes { min-width: 0; max-width: 780px; }
.rel { padding: 0 0 44px; margin: 0 0 44px; border-bottom: 1px solid var(--line); }
.rel:last-child { border-bottom: 0; margin-bottom: 0; }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 4px; }
.rel-head h2 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.rel-head time { font: 500 .8rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sg); }
.rel-meta { margin: 0 0 22px; font: 500 .72rem/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.rel h3 { margin: 0 0 14px; font-size: 1.3rem; }
.rel h4 { margin: 28px 0 10px; font: 500 .78rem/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sg); }
.rel p, .rel li { color: var(--muted); }
.rel strong { color: var(--text); font-weight: 600; }
.rel ul { margin: 0 0 1em; padding-left: 1.3em; }
.rel li + li { margin-top: .45em; }
.rel li::marker { color: var(--sg); }
.rel .corr { margin: 0 0 22px; padding: 14px 18px 4px; border: 1px solid rgba(240, 168, 58, .3); border-left: 3px solid var(--studio); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(240, 168, 58, .06); }
.rel .corr > b { display: block; margin-bottom: 6px; font: 500 .72rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--studio); }
.rel .corr p { font-size: .95rem; }
.cl-foot { margin-top: 48px; }
@media (max-width: 960px) {
  .cl-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cl-index { position: static; max-height: none; overflow: visible; }
  .cl-jump { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .cl-jump a { margin: 0; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); }
  .cl-jump a small { display: none; }
  .cl-jump a.is-active { border-color: var(--sg); }
}
