/* ===========================================================================
   FARFOLD — refresh-2026-11 v3 "Studio Editorial" page layout (TASK-088). Loaded by home.html (until TASK-146), notes/index.html (TASK-146, was weekly-map.html) and
   education/strategy.html only. Port of docs/design/refresh-2026-11/mockups/studio.css + v3.css, scoped to
   main.s-page. farfold.css tokens only: no new colour, font, shadow or radius. No pills; cards ≤10px, buttons ≤4px.
   Shared fragments (regimeCard compact, releaseCalendar, legalBlock, notSignal) are restyled here, never rebuilt.
   =========================================================================== */

/* ---- frame: 12-column full-width grid, section name in the left 3 columns, content in the right 9 ---- */
.s-page { padding-bottom: 0; }
.s-page a { color: inherit; }
.s-wrap { padding-inline: clamp(16px, 2.2vw, 32px); max-width: 1760px; margin: 0 auto; }
.s-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.4vw, 24px); }
.s-grid > * { min-width: 0; }

/* ---- type scale: display / title / lead / body / meta ---- */
.s-page .s-display { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5.2vw, 84px); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; word-break: keep-all; }
.s-page .s-display.is-read { font-size: clamp(36px, 3.9vw, 56px); }
.s-page .s-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.2; letter-spacing: -0.01em; margin: 0; text-wrap: balance; word-break: keep-all; }
.s-page .s-title.is-sm { font-size: 28px; line-height: 1.3; }
.s-lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--color-text-secondary); margin: 0; max-width: 34em; word-break: keep-all; }
.s-meta { font-size: 13px; line-height: 1.5; color: var(--color-text-secondary); margin: 0; }
.s-page .s-label { font-size: 13px; line-height: 1.5; color: var(--color-text-secondary); margin: 0; font-weight: 500; font-family: var(--font-sans); letter-spacing: 0; }
.s-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.s-gap-2 { margin-top: var(--space-2); }
.s-gap-4 { margin-top: var(--space-4); }
.s-gap-6 { margin-top: var(--space-6); }

/* ---- section: 1px rule on top, name | content, no box ---- */
.s-sec { border-top: 1px solid var(--color-border-strong); padding: var(--space-6) 0 clamp(64px, 8vw, 128px); }
.s-sec > .s-grid > .s-name { grid-column: 1 / span 3; }
.s-sec > .s-grid > .s-main { grid-column: 4 / span 9; }
.s-sec.is-tight { padding-bottom: var(--space-16); }

/* ---- links and the one CTA (radius-xs = 2px, ≤4px rule) ---- */
.s-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 500;
  transition: text-decoration-thickness var(--motion-dur-micro) var(--motion-ease-move); }
.s-link:hover { text-decoration-thickness: 2px; }
.s-page .s-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-6); background: var(--color-primary); color: var(--color-surface);
  text-decoration: none; font-weight: 600; border-radius: var(--radius-xs); transition: background-color var(--motion-dur-micro) var(--motion-ease-move); }
.s-page .s-cta:hover { background: var(--color-primary-hover); }
.s-page .s-cta:active { transform: scale(.98); }
.s-page a:focus-visible, .s-page .s-cta:focus-visible, .s-page summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-xs); }

/* ---- landing hero: words only ---- */
.s-hero { padding: clamp(32px, 5vw, 96px) 0 clamp(40px, 5vw, 80px); }
.s-hero .s-display { grid-column: 1 / span 10; }
.s-hero-sub { grid-column: 6 / span 6; margin-top: clamp(32px, 4vw, 64px); display: grid; gap: var(--space-6); }
.s-hero-act { display: flex; gap: var(--space-8); align-items: center; flex-wrap: wrap; }

/* ---- regime band: the page's one inverted ground. regimeCard(…, 'compact') is rendered as-is (C-F11) and only
   restyled; the light theme remaps text tokens inside the band (scoped remap, no new value) ---- */
.s-ink { padding: clamp(48px, 6vw, 96px) 0; }
:root[data-theme="light"] .s-ink, :root:not([data-theme]) .s-ink { background: var(--color-text-primary); color: var(--color-surface); }
:root[data-theme="light"] .s-ink > .s-wrap, :root:not([data-theme]) .s-ink > .s-wrap {
  --color-text-primary: var(--color-surface); --color-text-secondary: var(--color-border); --color-text-muted: var(--color-border);
  --color-primary: var(--color-surface); --badge-text-neutral: var(--color-border); --badge-text-warn: var(--color-surface);
  --color-border-strong: var(--color-text-secondary); --focus-ring: var(--color-surface); color: var(--color-text-primary);
  --muted: var(--color-border); --text: var(--color-surface); --neutral: var(--color-border);   /* F1: aliases resolve at :root */
}
/* black: no glaring light slab — one raised surface with rules */
:root[data-theme="black"] .s-ink { background: var(--color-surface-elevated); color: var(--color-text-primary); border-block: 1px solid var(--color-border-strong); }
.s-ink .s-name { grid-column: 1 / span 3; }
.s-ink .s-state { grid-column: 4 / span 6; }
.s-ink .lens-regime { border: 0; padding: 0; margin: 0; background: transparent; }
.s-ink .lens-regime-head { display: block; }
.s-ink .lens-regime-head .kicker { display: none; }   /* the band's name column already says "지금의 국면" */
.s-ink .lens-regime-head .lens-badges { margin: 0 0 var(--space-3); }
.s-ink .lens-regime-line { margin: 0; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary); }
.s-ink .lens-regime-line strong { display: block; margin-bottom: var(--space-3); font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -0.01em; color: var(--color-text-primary); word-break: keep-all; }
/* Confirm and Invalidate counts: one line, same size and weight (C-F17, R1) */
.s-ink .lens-regime-line + .small { margin: var(--space-6) 0 0; font-size: 15px; line-height: 1.6; color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
.s-ink .vzb-meters { display: none; }   /* the same two counts as the line above */
.s-ink .lens-regime-line ~ .lens-meta { display: none; }   /* release identifier stays out of the hero body (AC2); asOf is in the state line */
.s-ink .lens-cond { margin-top: var(--space-4); }
.s-ink .lens-cond > summary { cursor: pointer; font-size: 13px; color: var(--color-text-secondary); }
.s-ink .lens-cond[open] > summary { margin-bottom: var(--space-3); }
.s-ink .lens-regime a { color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 4px; }
.s-ink .lens-notsignal { margin: var(--space-4) 0 0; font-size: 13px; color: var(--color-text-primary); }
.s-ink .state-block, .s-ink .stale-warning { background: transparent; border-color: var(--color-border-strong); color: var(--color-text-primary); }
/* F3: gated / empty states read as plain left-aligned lines inside the band — no box in the band */
.s-ink .state-block { border: 0; padding: 0; margin: 0; align-items: flex-start; text-align: left; }
.s-ink .state-block p { margin: 0; }

/* ---- next week: five ruled columns, the day's release name leads (U6) ---- */
.s-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.s-week > li { padding: 0 var(--space-4) 0 0; border-right: 1px solid var(--color-border); min-width: 0; }
.s-week > li + li { padding-left: var(--space-4); }
.s-week > li:last-child { border-right: 0; }
.s-week .n { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 500; line-height: 1.3; margin: var(--space-1) 0; }
.s-week .n + .s-meta { color: var(--color-text-primary); font-size: 15px; word-break: keep-all; }
.s-week .is-today .s-label { color: var(--color-text-primary); }

/* ---- row list (state changes, more links) ---- */
.s-rows { list-style: none; margin: 0; padding: 0; }
.s-rows > li { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: clamp(12px, 1.4vw, 24px); padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); align-items: baseline; }
.s-rows > li:first-child { border-top: 1px solid var(--color-border); }
.s-rows .c1 { grid-column: span 2; } .s-rows .c2 { grid-column: span 4; } .s-rows .c3 { grid-column: span 3; text-align: right; }
.s-rows .big { font-size: 20px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.s-rows .c-all { grid-column: 1 / -1; margin-top: var(--space-3); }
.s-rows .c-all .lens-badges { margin: 0 0 var(--space-2); }
.s-rows .c-all .s-cond { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-6); margin: 0; font-size: 14px; }
.s-rows .c-all dt { color: var(--color-text-secondary); } .s-rows .c-all dd { margin: 0; }
.s-rows a.big { text-decoration: none; }
.s-rows a.big:hover { text-decoration: underline; text-underline-offset: 4px; }
.s-chip { display: inline-block; font-size: 13px; line-height: 1.4; padding: 0 0 0 var(--space-2); border-left: 2px solid var(--color-border-strong); } /* L65·L66: no pill */
.s-fold summary { cursor: pointer; font-size: 13px; color: var(--color-text-secondary); list-style-position: inside; min-height: 24px; }
.s-fold[open] summary { margin-bottom: var(--space-3); }

/* ---- state marks (U3): STALE = warning bar · tier delay = dashed neutral rule · not provided = muted text behind a dash ---- */
.s-flag { display: inline-block; font-size: 12px; line-height: 1.4; padding-left: var(--space-2); border-left: 2px solid var(--color-warning); color: var(--color-text-primary); }
.v3-tier { display: inline-block; font-size: 12px; line-height: 1.4; padding-left: var(--space-2); border-left: 2px dashed var(--color-border-strong); color: var(--color-text-primary); }
.v3-na { color: var(--color-text-secondary); }   /* secondary, not muted: muted is 4.4:1 on some grounds */
.v3-na::before { content: "— "; }
.s-page .lens-sources { list-style: none; margin: var(--space-2) 0 0; padding: 0; }

/* ---- start tiles: two image tiles + two text links ---- */
.s-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(12px, 1.4vw, 24px); row-gap: var(--space-10); }
.s-tile h3 { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; margin: var(--space-1) 0 var(--space-3); font-weight: 600; }
.s-tile h3 a { text-decoration: none; }
.s-tile p + p { margin-top: var(--space-3); }
.s-more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(12px, 1.4vw, 24px); border-top: 1px solid var(--color-border-strong); }
.s-more a { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); text-decoration: none; font-size: 18px; font-weight: 500; }
.s-more a span { font-size: 13px; color: var(--color-text-secondary); font-weight: 400; text-align: right; }
.s-more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- closing CTA and statutory notice (legalBlock restyled, wording and size kept — C-F4) ---- */
.s-end { padding: clamp(64px, 9vw, 160px) 0; border-top: 1px solid var(--color-border-strong); }
.s-end .s-title { grid-column: 1 / span 8; }
.s-end .s-act { grid-column: 10 / span 3; align-self: end; }
.s-legal { border-top: 1px solid var(--color-border); padding: var(--space-6) 0 var(--space-16); }
.s-legal .lens-legal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.4vw, 24px);
  border: 0; padding: 0; margin: 0; background: transparent; }
.s-legal .lens-legal-title { grid-column: 1 / span 3; grid-row: 1 / span 2; font-family: var(--font-sans); font-size: 16px; line-height: 1.5; font-weight: 600; margin: 0; }
.s-legal .lens-legal-list { grid-column: 4 / span 7; margin: 0; padding-left: 1.1em; font-size: 14px; line-height: 1.7; color: var(--color-text-secondary); }
.s-legal .lens-legal > .small { grid-column: 4 / span 7; margin: var(--space-3) 0 0; }

/* ---- data plates (Treasury par-curve terrain, brief cover). Axis notes live in HTML, never in the image ---- */
.v3-terrain { margin: 0; padding-block: var(--space-6) 0; overflow: hidden; }
.v3-cover { margin-bottom: var(--space-10); }   /* compliance C-1: the cover does not read as the indicators' evidence */
.s-page .v3-terrain > figcaption { border-top: 0; padding-top: 0; margin-top: 0; font-size: inherit; line-height: inherit; color: inherit; }
.v3-cap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); border-top: 1px solid var(--color-border); padding-top: var(--space-3); margin-top: var(--space-2); }
.v3-cap .k { grid-column: 1 / 4; }
.v3-cap .v { grid-column: 4 / 13; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0; }
.v3-cap .v + .v { margin-top: var(--space-2); }
.v3-cap .v span { color: var(--color-text-secondary); font-size: 13px; }
.v3-cap .v b { color: var(--color-text-primary); font-weight: 600; }
.v3-key { display: inline-block; width: 18px; height: 2px; background: var(--color-accent); vertical-align: middle; margin-right: var(--space-2); }
.t-stage { position: relative; width: min(100%, 1760px); margin-inline: auto; }
.t-img { display: block; width: 100%; height: auto; }
.t-img.is-black { display: none; }
:root[data-theme="black"] .t-img.is-light { display: none; }
:root[data-theme="black"] .t-img.is-black { display: block; }
.t-svg { display: block; width: 100%; height: auto; }
.t-svg .ta { stroke-width: 4; }                                  /* compliance B-5 */
.t-stage.is-stale .t-svg .ta { stroke: var(--color-text-primary); stroke-width: 1.8; }   /* R8-3 */ /* T-3: an old plate keeps no "newest" accent */
/* motion stages: still <img> stays in the flow (alt + reduced-motion path); the video covers it only once its first
   frame decoded (M-4). Light video on white × multiply, black video on black × screen: the video ground vanishes. */
.t-vid { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t-vid.is-light { mix-blend-mode: multiply; }
.t-vid.is-black { mix-blend-mode: screen; }
.t-stage.is-anim img { opacity: 0; animation: none; }   /* must beat any img rule above, else the still blends under the video */
.is-anim .t-vid.is-light { display: block; }
:root[data-theme="black"] .is-anim .t-vid.is-light { display: none; }
:root[data-theme="black"] .is-anim .t-vid.is-black { display: block; }
.s-tile .t-stage { margin-bottom: var(--space-4); }
.s-tile .t-img { aspect-ratio: 4 / 3; object-fit: contain; }

/* ---- brief masthead and two columns ---- */
.s-mast { padding: clamp(40px, 6vw, 96px) 0 var(--space-12); }
.s-mast .issue { grid-column: 1 / span 3; }
.s-mast .hd { grid-column: 4 / span 9; }
.s-mast .tally { grid-column: 4 / span 9; margin-top: var(--space-10); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-border-strong); }
.s-mast .tally > div { padding-top: var(--space-3); min-width: 0; }
.s-mast .tally .v { font-family: var(--font-display); font-size: clamp(36px, 3.6vw, 56px); line-height: 1.1; font-weight: 600; margin: var(--space-2) 0 0; }
.s-mast .tally .v.d { font-family: var(--font-num); font-size: 20px; font-weight: 500; margin-top: var(--space-3); }
.s-two .s-name { grid-column: 1 / span 3; }
.s-two .l { grid-column: 4 / span 5; padding-right: var(--space-6); border-right: 1px solid var(--color-border); }
.s-two .r { grid-column: 9 / span 4; }
/* the shared modules sit in the columns without their card frame */
.s-two .nc, .s-two .rc { border: 0; padding: 0; margin: 0; background: transparent; }
.s-two .nc-h { font-family: var(--font-display); font-size: 28px; line-height: 1.3; font-weight: 600; }
.s-two .lens-notsignal { margin: var(--space-8) 0 0; }

/* ---- lesson ---- */
.s-lhead { padding: clamp(48px, 7vw, 120px) 0 var(--space-12); }
.s-lhead .crumb { grid-column: 1 / span 3; }
.s-lhead .ttl { grid-column: 4 / span 6; }
.s-lhead .cv { grid-column: 10 / span 3; grid-row: 1 / span 2; margin: 0; align-self: start; }
.s-lhead .cv img { aspect-ratio: 4 / 3; object-fit: contain; }
.s-page .v3-pos figcaption { margin-top: var(--space-2); border-top: 1px solid var(--color-border); padding-top: var(--space-2); font-size: 13px; line-height: 1.5; }
.v3-pos figcaption strong { color: var(--color-text-primary); font-weight: 600; }
.s-lhead .facts { grid-column: 4 / span 6; margin: var(--space-10) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-4); border-top: 1px solid var(--color-border-strong); padding-top: var(--space-3); }
.s-lhead .facts > div { min-width: 0; }
.s-lhead .facts dd { display: block; font-weight: 500; font-size: 15px; margin: var(--space-1) 0 0; overflow-wrap: anywhere; }
.s-article { align-items: start; }
.s-article .rail { grid-column: 1 / span 3; position: sticky; top: 88px; }
.s-article .txt { grid-column: 4 / span 9; min-width: 0; }
.s-article .txt > * { max-width: 760px; }
.s-article .rail .edu-toc-list a { border-left: 0; padding: 0; line-height: 2; font-size: 13px; }
.s-article .rail .edu-toc-list a[aria-current] { font-weight: 500; }
.s-article .rail .edu-toc-list a[aria-current]::before { content: ""; display: inline-block; width: 16px; height: 1px; background: currentColor; vertical-align: middle; margin-right: var(--space-2); }
.s-q { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.4; font-weight: 600; margin: 0 0 var(--space-8); max-width: 24em; word-break: keep-all; }
.s-points { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.s-points li { counter-increment: p; font-size: 15px; line-height: 1.7; border-top: 1px solid var(--color-border-strong); padding-top: var(--space-3); word-break: keep-all; }
.s-points li::before { content: counter(p, decimal-leading-zero); display: block; font: 500 13px/1.5 var(--font-num); color: var(--color-text-secondary); margin-bottom: var(--space-2); }
.s-page .edu-section { margin-top: clamp(var(--space-12), 5vw, var(--space-16)); } /* TASK-138 #10: was clamp(64px, 7vw, 112px) */
.s-page .edu-section .ff-section-head h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.3; font-weight: 600; }
.s-page .edu-parts { max-width: none; gap: 0; }
.s-page .edu-part h3 { font-size: 19px; line-height: 1.45; font-weight: 600; margin: var(--space-10) 0 var(--space-3); }
.s-page .edu-part h3 .s-num { color: var(--color-text-secondary); font-weight: 500; margin-right: var(--space-3); }
/* TASK-138 round 2 (spec A-2): one paragraph per <p> at a 40rem measure, a rule between steps. Anchors need no offset here: site-kit.css sets scroll-padding-top on html. */
.s-page .edu-parts > .edu-part + .edu-part { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--color-border); }
.s-page .edu-part-head { margin-bottom: var(--space-4); }
.s-page .edu-part-head h3 { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); margin: 0; }
.s-page .edu-part-head h3 .s-num { margin-right: 0; }
.s-page .edu-part-body { max-inline-size: 40rem; min-width: 0; }
.s-page .edu-part-body > p { white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.s-page .edu-part-body > p + p { margin-block-start: var(--space-4); }
.s-page .edu-parts > .edu-part > .edu-part-code, .s-page .edu-parts > .edu-part > .edu-part-figure { margin: var(--space-6) 0 0; }
/* contents: the lesson's own steps under 원리 */
.edu-toc-num { margin-right: var(--space-2); font-variant-numeric: tabular-nums; }
.s-page .edu-toc-fold .edu-toc-list a { display: flex; align-items: center; min-height: 44px; }
.s-page .edu-toc-fold .edu-toc-sub a { padding-left: var(--space-6); }
/* TASK-138 2f: hanging indent - the second line of a two-line step title starts under the title, not under its number */
.s-article .rail .edu-toc-list .edu-toc-sub a { padding: var(--space-1) 0 var(--space-1) calc(var(--space-4) + 2ch + var(--space-2)); text-indent: calc(-2ch - var(--space-2)); line-height: 1.5; }
.s-article .rail .edu-toc-list .edu-toc-sub a[aria-current] { padding-left: calc(var(--space-4) + 2ch + var(--space-6) + var(--space-2)); text-indent: calc(-2ch - var(--space-6) - var(--space-2)); }
.s-article .rail.edu-toc { max-height: calc(100vh - 104px); overflow-y: auto; } /* 88px top + 16: a long list scrolls inside the rail */
/* E-5: figure = body column width, caption under one rule as title | description */
.s-page .edu-part-figure, .s-page .edu-example-chart { width: 100%; max-width: none; margin: var(--space-10) 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.s-page .edu-part-figure > figcaption { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: clamp(12px, 1.4vw, 24px); }
.s-page .edu-part-figure > figcaption strong { grid-column: span 3; font-weight: 500; font-size: 13px; color: var(--color-text-primary); }
.s-page .edu-part-figure > figcaption span { grid-column: span 6; }
/* E-6: pitfalls as a definition list, △ in warning ink only — no risk red, no tint (v3 mockup; replaces the Wave P callout) */
.s-pits { margin: 0; }
.s-pits > div { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: clamp(12px, 1.4vw, 24px); padding: var(--space-5) 0; border-top: 1px solid var(--color-border); }
.s-pits dt { grid-column: span 3; font-weight: 600; }
.s-pits dt::before { content: "△"; color: var(--color-warning); margin-right: var(--space-2); font-size: 12px; }
.s-pits dd { grid-column: span 6; margin: 0; color: var(--color-text-secondary); line-height: 1.7; }

/* ---- responsive ---- */
@media (max-width: 1023px) {
  .s-sec > .s-grid > .s-name, .s-sec > .s-grid > .s-main, .s-hero .s-display, .s-hero-sub,
  .s-ink .s-name, .s-ink .s-state, .s-end .s-title, .s-end .s-act,
  .s-lhead .crumb, .s-lhead .ttl, .s-lhead .facts, .s-article .rail, .s-article .txt,
  .s-mast .issue, .s-mast .hd, .s-mast .tally, .s-two .s-name, .s-two .l, .s-two .r { grid-column: 1 / -1; }
  .s-legal .lens-legal-title, .s-legal .lens-legal-list, .s-legal .lens-legal > .small { grid-column: 1 / -1; grid-row: auto; }
  .s-legal .lens-legal-title { margin-bottom: var(--space-3); }
  .s-two .s-name, .s-sec > .s-grid > .s-name, .s-mast .issue, .s-lhead .crumb, .s-ink .s-name { margin-bottom: var(--space-6); }
  .s-article .rail { display: none; }
  .s-end .s-act { margin-top: var(--space-6); }
  .s-two .l { border-right: 0; padding-right: 0; margin-bottom: var(--space-12); }
  /* U5: the strategy-map position stays, after the facts row */
  .s-lhead .cv.v3-pos { grid-column: 1 / -1; grid-row: auto; order: 1; max-width: 420px; margin-top: var(--space-8); }
}
@media (min-width: 1024px) { .s-page .edu-toc-fold { display: none; } .s-page .edu-toc { display: block; } } /* TASK-138 2d: education.css showed the rail only from 1200px, so 1024-1199px had no contents list at all */
@media (max-width: 767px) {
  .s-rows > li, .s-pits > div, .s-page .edu-part-figure > figcaption { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
  .s-rows .c1, .s-rows .c2, .s-rows .c3, .s-pits dt, .s-pits dd, .s-page .edu-part-figure > figcaption strong, .s-page .edu-part-figure > figcaption span { grid-column: 1 / -1; text-align: left; }
  .s-points { grid-template-columns: minmax(0, 1fr); }
  .s-lhead .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-4); }
  .s-page .s-cta { width: 100%; justify-content: center; }
  .s-week { grid-template-columns: minmax(0, 1fr); }   /* vertical list on phones — no sideways scroll */
  .s-week > li, .s-week > li + li { display: grid; grid-template-columns: 6em 3em minmax(0, 1fr); align-items: baseline; padding: var(--space-3) 0; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .s-week .n { margin: 0; }
  .s-tiles, .s-more { grid-template-columns: minmax(0, 1fr); }
  .s-mast .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-4); }
}
@media (max-width: 760px) {
  .v3-cap { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
  .v3-cap .k, .v3-cap .v { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .s-link, .s-page .s-cta { transition: none; } .s-page .s-cta:active { transform: none; } }

/* brief calendar (B-3): the day head carries "N건", which replaces the bar mini-chart in this column */
.s-two .vz-week { display: none; }
.s-two .rc-day-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin: var(--space-6) 0 var(--space-2); padding: 0; font-size: 15px; font-weight: 600; }
.s-two .rc-day-n { font-weight: 400; font-size: 13px; color: var(--color-text-secondary); }

/* lesson frame: the reading page drops the 1180 wrap for the 12-column studio grid; DOM order body → toc kept */
.s-page.edu-lesson { max-width: none; margin: 0; padding: 0 0 var(--space-12); }
.s-article > .txt, .s-article > .rail { grid-row: 1; }
.s-article .rail { margin-top: 0; }
.s-glance { margin-top: 0; }
.s-glance .s-label { margin-bottom: var(--space-4); }
.s-page .edu-toc-fold { margin: 0 0 var(--space-8); }
.s-lhead .facts dt { margin: 0; }
/* the terrain's hidden-line fill must equal the page ground: paper in light (Wave P), --color-bg in black */
:root[data-theme="black"] .t-stage { --t-ground: var(--color-bg); }
.s-rows .big { font-family: var(--font-sans); }

/* ---- round 2 (review M/L, compliance #7, critique F2–F10) ---- */
/* F3: the change section repeats the band's gate sentence — one quiet line, same copy */
.nc-compact .state-block { display: block; border: 0; padding: 0; background: transparent; text-align: left; }
.nc-compact .state-block p { display: inline; margin: 0; }
.nc-compact .state-block p + p::before { content: " "; }
/* F4: gated tally cells keep their place with a small state word, never an empty or big number */
.s-mast .tally .v.d.is-state { font-family: var(--font-sans); font-size: 15px; color: var(--color-text-secondary); }
/* F8: glossary as a ruled list like the pitfalls, with room before the notice */
.s-page .ff-glossary { gap: 0; margin-bottom: var(--space-8); }
.s-page .ff-glossary div { border: 0; border-top: 1px solid var(--color-border); border-radius: 0; background: none; padding: var(--space-3) 0; }
/* F9: dates never break inside source and meta lines */
.s-page time, .s-page .s-num time, .s-page .lens-sources time { white-space: nowrap; }
/* F10: the facts row gives the long data name two cells at full width */
@media (min-width: 768px) { .s-lhead .facts .is-wide { grid-column: span 2; } }
@media (min-width: 1024px) { .s-lhead .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* F2: one alignment line — the shared header/footer .wrap takes the studio gutter on these pages
   (no :has → they keep the 1180 wrap, as before) */
body:has(main.s-page) .topbar-inner.wrap, body:has(main.s-page) > footer.wrap {
  max-width: 1760px; padding-inline: clamp(16px, 2.2vw, 32px);
}
/* R8-1: a fixed-period brief cover neutralises the accent baked into the raster */
.v3-cover.is-fixed .t-img { filter: grayscale(1); }
/* TASK-109 → TASK-146 /notes 주별 공개 기록: week label + one row per research (status label from site-kit .status) */
.ff-site .past-week { margin-top:var(--space-6); }
.ff-site .past-week-label { font-size:var(--kit-body); }
.ff-site .past-week-label .mono { margin-left:var(--space-2); font-size:var(--kit-meta); font-weight:400; color:var(--kit-copy); }
.ff-site .past-list { list-style:none; padding:0; }
.ff-site .past-list li { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:var(--space-2) var(--space-4); padding-block:var(--space-2); border-bottom:1px solid var(--kit-rule); }
.ff-site .past-list .text-link { gap:var(--space-3); }
/* TASK-121 → TASK-146 /notes#market-record 이번 주 시장 구조 한 장: scrolls inside .table-scroll on phones; numbers right-aligned, tabular */
.ff-site .market-sheet { min-width:640px; }
.ff-site .market-sheet-note { margin:var(--space-3) 0; font-size:13px; color:var(--kit-copy); } /* the old caption, moved above the scroll area (TASK-138 #7) */
.ff-site .market-sheet th[scope="row"] { min-width:180px; }
.ff-site .market-sheet .line-note { display:inline-block; margin-top:var(--space-1); font-weight:400; max-width:32ch; }
.ff-site .market-sheet th.num, .ff-site .market-sheet td.num { text-align:right; font-family:var(--font-mono); font-variant-numeric:tabular-nums; white-space:nowrap; }
.ff-site .market-sheet td.mono { white-space:nowrap; }
.ff-site .note-lead { margin-block:var(--space-2); font-weight:600; }
@media (max-width:600px) {
  .ff-site .market-sheet th, .ff-site .market-sheet td { padding:10px 8px; font-size:13px; }
}
