/*
 * HarmonyStocks pages.css (owner: pages): the inner pages in the harmonic.fun look (docs/SHELL.md, sections 2 to 5).
 *   /manifesto   About page: blue duotone photo hero, a white statement, the long read in numbered rows,
 *                a cyan grain band for the principle line, the plan, the appendix and a closing CTA   (.mf-*)
 *   /desk        how the desk works: white cards on paper and graph paper, mono labels               (.dk-*)
 *   /notes/*     news article: mono meta row, blue title, lead, framed cover, 68ch body, more notes  (.nt-*)
 *   /legal/*     long-form legal: last updated line, sticky section list, numbered headings          (.lg-*)
 *   /404         a blue grain field with a huge white 404                                          (.nf-*)
 * Shared bits are .pg-*. Load after css/base.css. No inline styles anywhere (strict CSP): everything lives here.
 */

/* ---------------------------------------------------------------- shared */

.pg-section { padding-block: 96px; }
.pg-kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.pg-kicker::before { content: ''; width: 7px; height: 7px; flex: none; background: currentColor; }
.on-dark .pg-kicker { color: var(--white); }
.pg-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 48px; }
.pg-head__text { max-width: 34em; margin-top: 20px; font: 400 18px/27px var(--font-sans); color: var(--ink); }
.pg-tag { display: inline-block; padding: 2px 6px; box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); font: 500 11px/14px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pg-tag--fill { background: var(--blue); color: var(--white); }

/* links inside copy */
.pg-link, .nt-body a:not([class]), .lg__body a:not([class]), .mf-text a:not([class]), .mf-notes a:not([class]) {
  color: var(--blue);
  text-decoration: underline 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--blue) 45%, transparent);
  transition: text-decoration-color 0.15s ease-out, color 0.15s ease-out;
}
.pg-link:hover, .nt-body a:not([class]):hover, .lg__body a:not([class]):hover, .mf-text a:not([class]):hover, .mf-notes a:not([class]):hover { color: var(--blue-hover); text-decoration-color: currentColor; }

/* footnote markers (manifesto) */
.pg-fn { display: inline-block; margin-left: 1px; padding: 0 2px; color: var(--blue); font: 500 0.62em/1 var(--font-mono); vertical-align: super; text-decoration: none; transition: background-color 0.15s; }
.pg-fn:hover { background: var(--blue-08); }

/* card: white, 1px rule, image on top (note cards, desk engine cards) */
.pg-card { display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 24px; background: var(--white); border: 1px solid var(--line); transition: translate 0.2s var(--ease), border-color 0.2s; }
a.pg-card:hover { translate: 0 -2px; border-color: var(--line-strong); }
a.pg-card:active { translate: 0 1px; transition-duration: 0s; }
.pg-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue); }
.pg-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pg-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 11px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pg-card__title { margin-top: 18px; font: 500 var(--fs-h4)/1.15 var(--font-sans); letter-spacing: -0.01em; color: var(--blue); }
.pg-card__text { margin: 10px 0 20px; font: 400 15px/23px var(--font-sans); color: var(--ink); }
.pg-card > .arrow-link { margin-top: auto; }

@media (max-width: 1023px) {
  .pg-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 809px) {
  .pg-section { padding-block: 64px; }
  .pg-head { margin-bottom: 32px; }
  .pg-head__text { font-size: 17px; line-height: 26px; }
}

/* ================================================================ /manifesto (.mf-*) */

/* hero: full-bleed blue duotone photo under the floating nav, statement bottom left */
.mf-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(620px, 88svh); padding: calc(var(--nav-clear) + 40px) var(--page-pad) clamp(48px, 8vh, 88px); background: var(--blue); overflow: hidden; }
.mf-hero__photo, .mf-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.mf-hero__photo img { object-fit: cover; object-position: 60% 50%; }
.mf-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--blue) 10%, color-mix(in oklab, var(--blue) 70%, transparent) 35%, transparent 65%), linear-gradient(to top, color-mix(in oklab, var(--blue) 60%, transparent), transparent 40%); }
.mf-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.mf-hero__title { max-width: 9.6em; color: var(--white); }

/* the long read: one row per part, a mono label on the left and the text on the right */
.mf-read { padding-block: 96px 32px; }
.mf-read--notes { padding-block: 72px 48px; border-top: 1px solid var(--line-strong); }
.mf-read--notes .mf-row { padding-bottom: 32px; }
.mf-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 48px; padding-block: 40px 72px; border-top: 1px solid var(--line-strong); }
.mf-row:first-child { border-top: 0; padding-top: 0; }
.mf-row__label { display: flex; align-items: baseline; gap: 14px; padding-top: 8px; font: 500 13px/20px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.mf-row__num { color: var(--muted); }
.mf-text { max-width: 760px; font: 400 18px/1.65 var(--font-sans); color: #2a2a2a; }
.mf-text > p + p { margin-top: 1.05em; }
.mf-lead { font: 400 clamp(22px, calc(0.75vw + 18px), 30px)/1.4 var(--font-sans); letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }
.mf-lead .pg-fn { font-size: 0.5em; }
.mf-hl { padding-inline: 2px; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--cyan) 85%, transparent) 58%); color: var(--ink); font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* the plan: three numbered steps in one white card */
.mf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--line-strong); }
.mf-step { display: flex; flex-direction: column; gap: 36px; min-width: 0; padding: 24px 24px 32px; }
.mf-step + .mf-step { border-left: 1px solid var(--line-strong); }
.mf-step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mf-step__num { color: var(--blue); }
.mf-step__text { font: 500 20px/1.4 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }

/* the principle: a cyan grain band */
.mf-band { --grain: 0.65; padding-block: 112px; background: var(--cyan); }
.mf-band__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; }
.mf-band__label { padding-top: 10px; font: 500 13px/20px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.mf-band__pre { max-width: 30em; font: 400 clamp(20px, calc(0.5vw + 16.4px), 24px)/1.45 var(--font-sans); color: var(--ink); }
.mf-band__line { max-width: 14em; margin-top: 32px; font: 700 var(--fs-h2)/1.02 var(--font-sans); letter-spacing: -0.025em; color: var(--blue); text-wrap: balance; }

/* appendix: the numbered notes */
.mf-notes { display: grid; gap: 4px; padding: 0; list-style: none; counter-reset: mf-note; }
.mf-notes { max-width: 760px; }
.mf-notes li { position: relative; padding: 10px 12px 10px 48px; font: 400 15px/1.6 var(--font-sans); color: #3a3a3a; counter-increment: mf-note; transition: background-color 0.3s; }
.mf-notes li::before { content: counter(mf-note, decimal-leading-zero); position: absolute; left: 6px; top: 12px; font: 500 12px/20px var(--font-mono); color: var(--blue); }
.mf-notes li:target { background: color-mix(in srgb, var(--cyan) 35%, transparent); }

/* closing: the statement over the etching */
.mf-close { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 640px; padding-block: 112px; border-top: 1px solid var(--line-strong); overflow: hidden; }
.mf-close__art { position: absolute; right: max(0px, calc((100vw - 1440px) / 2)); top: 50%; width: min(58vw, 900px); height: auto; transform: translateY(-50%); pointer-events: none; }
.mf-close__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.mf-close__title { max-width: 8em; }
.mf-close__text { max-width: 28em; margin-top: -8px; font: 400 18px/27px var(--font-sans); color: var(--ink); }

@media (max-width: 1023px) {
  .mf-row, .mf-band__inner { grid-template-columns: 1fr; }
  .mf-row { padding-block: 32px 56px; }
  .mf-row__label, .mf-band__label { padding-top: 0; }
  .mf-steps { grid-template-columns: 1fr; }
  .mf-step { gap: 20px; }
  .mf-step + .mf-step { border-left: 0; border-top: 1px solid var(--line-strong); }
  .mf-close { min-height: 0; padding-block: 64px 80px; }
  .mf-close__art { position: relative; right: auto; top: auto; width: 100%; max-width: 640px; margin: 0 auto 24px; transform: none; }
}
@media (max-width: 809px) {
  .mf-hero { min-height: max(560px, 84svh); }
  .mf-hero__photo img { object-position: 66% 50%; }
  .mf-hero__shade { background: linear-gradient(to top, var(--blue) 18%, color-mix(in oklab, var(--blue) 70%, transparent) 50%, color-mix(in oklab, var(--blue) 20%, transparent) 80%); }
  .mf-hero__title { font-size: min(48px, 12.2vw); }
  .mf-read { padding-top: 64px; }
  .mf-text { font-size: 17px; }
  .mf-band { padding-block: 72px; }
  .mf-band__line { margin-top: 24px; }
  .mf-notes li { padding-left: 40px; }
  .mf-notes li::before { left: 2px; }
}

/* ================================================================ /desk (.dk-*) */

/* hero on graph paper, under the floating nav */
.dk-hero { position: relative; overflow: hidden; padding-block: calc(var(--nav-clear) + 48px) 96px; border-bottom: 1px solid var(--line-strong); }
.dk-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 32px 48px; }
.dk-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.dk-hero__title { max-width: 7.5em; }
.dk-hero__lead { max-width: 30em; font: 400 var(--fs-lead)/1.43 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.dk-hero__art { width: 100%; max-width: 720px; height: auto; justify-self: end; }

/* the engine: three cards */
.dk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dk-card__name { margin-top: 18px; font: 700 clamp(30px, calc(1vw + 22px), 40px)/1.05 var(--font-sans); letter-spacing: -0.025em; color: var(--blue); }
.dk-card__bio { margin: 12px 0 28px; font: 400 16px/1.6 var(--font-sans); color: var(--ink); }
.dk-card__spec { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px 14px; background: var(--blue-08); color: var(--blue); font: 500 12px/18px var(--font-mono); letter-spacing: 0.03em; text-transform: uppercase; }
.dk-card__spec svg { width: 20px; height: 20px; flex: none; }
.dk-card > .arrow-link { margin-top: 20px; }

/* method: title left, statements right */
.dk-method { border-top: 1px solid var(--line-strong); }
.dk-method__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 48px; align-items: start; }
.dk-method__title { position: sticky; top: calc(var(--nav-top) + var(--nav-h) + 32px); }
.dk-method__col { max-width: 760px; font: 400 18px/1.65 var(--font-sans); color: #2a2a2a; }
.dk-method__col > p + p { margin-top: 1.05em; }
.dk-method__col > .dk-method__strong { margin-top: 32px; padding-left: 22px; border-left: 2px solid var(--blue); font: 500 clamp(19px, calc(0.4vw + 16px), 22px)/1.5 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }

/* rules: six cells on graph paper */
.dk-rules { border-top: 1px solid var(--line-strong); }
.dk-rules__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; list-style: none; background: var(--line-strong); border: 1px solid var(--line-strong); }
.dk-rule { display: flex; flex-direction: column; min-width: 0; padding: 28px 28px 36px; background: var(--white); }
.dk-rule__num { font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.dk-rule__title { margin-top: 40px; font: 500 var(--fs-h4)/1.15 var(--font-sans); letter-spacing: -0.01em; color: var(--blue); }
.dk-rule__text { margin-top: 12px; font: 400 16px/1.6 var(--font-sans); color: var(--ink); }

/* the universe: pools per fee tier and the stock strip */
.dk-universe { border-top: 1px solid var(--line-strong); overflow: hidden; }
.dk-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0; list-style: none; background: var(--line-strong); border: 1px solid var(--line-strong); }
.dk-tier { display: flex; flex-direction: column; min-width: 0; padding: 24px 28px 28px; background: var(--white); }
.dk-tier__fee { font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dk-tier__n { display: flex; align-items: baseline; gap: 10px; margin-top: 36px; color: var(--blue); }
.dk-tier__num { font: 700 clamp(44px, calc(2.4vw + 20px), 64px)/1 var(--font-sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dk-tier__unit { font: 500 var(--fs-h5)/1.2 var(--font-sans); }
.dk-foot { margin-top: 16px; color: var(--muted); }

.dk-strip { position: relative; margin-top: 48px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.dk-strip__track { display: flex; gap: 16px; width: max-content; padding: 0; margin: 0; list-style: none; animation: dk-roll 120s linear infinite; }
.dk-strip:hover .dk-strip__track, .dk-strip.is-paused .dk-strip__track { animation-play-state: paused; }
@keyframes dk-roll { to { transform: translateX(calc(-50% - 8px)); } }
.dk-tile { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; flex: none; width: 236px; padding: 16px; background: var(--white); border: 1px solid var(--line); }
.dk-tile__logo { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); }
.dk-tile__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.dk-tile__sym { font: 700 14px/20px var(--font-mono); letter-spacing: 0.04em; color: var(--ink); }
.dk-tile__pools { font: 500 11px/16px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.dk-tile__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px/20px var(--font-sans); color: var(--muted); }

/* call to action: a blue grain field */
.dk-join { --grain: 0.2; padding-block: 120px; background: var(--blue); }
.dk-join__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 32px 48px; }
.dk-join__title { max-width: 8em; color: var(--cyan); }
.on-dark .dk-join__title { color: var(--cyan); }
.dk-join__side { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.dk-join__text { max-width: 28em; font: 400 18px/27px var(--font-sans); color: rgba(255, 255, 255, 0.92); }

@media (max-width: 1199px) {
  .dk-cards { gap: 16px; }
  .dk-rule { padding: 24px 22px 30px; }
}
@media (max-width: 1023px) {
  .dk-hero__grid { grid-template-columns: 1fr; }
  .dk-hero__art { justify-self: center; max-width: 640px; }
  .dk-cards { grid-template-columns: 1fr; max-width: 640px; }
  .dk-method__grid { grid-template-columns: 1fr; }
  .dk-method__title { position: static; }
  .dk-rules__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-join__inner { grid-template-columns: 1fr; align-items: start; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .dk-cards { max-width: none; }
  .dk-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 24px; padding: 16px; }
  .dk-card > .pg-card__img { grid-column: 1; grid-row: 1 / -1; align-self: start; }
  .dk-card > :not(.pg-card__img) { grid-column: 2; }
  .dk-card > .pg-card__meta { margin-top: 0; }
  .dk-card__name { margin-top: 14px; }
  .dk-card__bio { margin-bottom: 20px; font-size: 15px; }
  .dk-card__spec { align-self: end; }
  .dk-card > .arrow-link { margin-top: 14px; }
}
@media (max-width: 809px) {
  .dk-hero { padding-block: calc(var(--nav-clear) + 24px) 56px; }
  .dk-hero__title { font-size: min(48px, 12.2vw); }
  .dk-method__col { font-size: 17px; }
  .dk-rules__grid { grid-template-columns: 1fr; }
  .dk-rule__title { margin-top: 24px; }
  .dk-tier { padding: 20px 18px 22px; }
  .dk-tier__n { margin-top: 24px; }
  .dk-strip { margin-top: 32px; }
  .dk-join { padding-block: 80px; }
}

/* ================================================================ /notes/* (.nt-*) */

.nt-head { padding-top: 8px; }
.nt-col { width: 100%; max-width: 720px; margin-inline: auto; }
.nt-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.15s; }
.nt-back::before { content: '\2190'; transition: translate 0.2s var(--ease); }
.nt-back:hover { color: var(--blue); }
.nt-back:hover::before { translate: -3px 0; }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 40px; font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nt-meta__dot { color: var(--line-strong); }
.nt-title { margin-top: 20px; font: 700 clamp(36px, calc(2.6vw + 24px), 68px)/1.02 var(--font-sans); letter-spacing: -0.03em; color: var(--blue); text-wrap: balance; overflow-wrap: break-word; }
.nt-lead { margin-top: 24px; font: 400 var(--fs-lead)/1.45 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.nt-byline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line-strong); font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nt-cover { width: 100%; max-width: 1100px; margin: 48px auto 0; padding: 12px; background: var(--white); border: 1px solid var(--line-strong); }
.nt-cover__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue); }
.nt-cover__img img { width: 100%; height: 100%; object-fit: cover; }

/* the body: 18px / 1.65 at about 68 characters */
.nt-body { margin-top: 64px; padding-bottom: 32px; font: 400 18px/1.65 var(--font-sans); color: #2a2a2a; }
.nt-body > * + * { margin-top: 1.1em; }
.nt-body > h2 { margin-top: 2.1em; font: 700 clamp(28px, calc(0.8vw + 22px), 36px)/1.1 var(--font-sans); letter-spacing: -0.02em; color: var(--blue); }
.nt-body > h3 { margin-top: 1.8em; font: 500 22px/1.3 var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.nt-body > h5 { margin-top: 2.2em; padding-top: 14px; border-top: 1px solid var(--line-strong); font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.nt-body > h2 + *, .nt-body > h3 + *, .nt-body > h5 + * { margin-top: 0.6em; }
.nt-body strong { font-weight: 600; color: var(--ink); }
.nt-body > ul, .nt-body > ol { padding-left: 1.4em; }
.nt-body > ul li + li, .nt-body > ol li + li { margin-top: 0.5em; }
.nt-body > ul li::marker { color: var(--blue); }
.nt-body > ol li::marker { color: var(--blue); font: 500 0.8em var(--font-mono); }
.nt-body code { padding: 2px 6px; background: var(--blue-08); color: var(--blue-deep); font: 400 0.84em/1 var(--font-mono); overflow-wrap: anywhere; }
.nt-body blockquote { padding: 4px 0 4px 24px; border-left: 2px solid var(--blue); font: 400 22px/1.5 var(--font-sans); color: var(--ink); }
.nt-body > .pg-buttons { margin-top: 40px; }
.nt-body > .faq { margin-top: 20px; }

/* tables and figures: white cards with 1px rules */
.nt-table { margin-top: 32px; background: var(--white); border: 1px solid var(--line-strong); overflow-x: auto; }
.nt-body > .nt-table, .nt-body > .nt-fig { margin-top: 32px; }
.nt-table table { width: 100%; font: 400 15px/1.45 var(--font-sans); color: var(--ink); }
.nt-table caption { caption-side: bottom; padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; font: 500 11px/16px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.nt-table th { padding: 12px 16px; background: #fafafa; border-bottom: 1px solid var(--line-strong); text-align: left; vertical-align: bottom; font: 500 11px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nt-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nt-table tbody tr:last-child td { border-bottom: 0; }
.nt-table td:first-child { font-weight: 500; }
.nt-table .num { text-align: right; white-space: nowrap; }
.nt-table td.num { font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }

.nt-fig { padding: 28px 24px 18px; background: var(--white); border: 1px solid var(--line-strong); }
.nt-fig svg { width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }
.nt-fig figcaption { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); font: 500 11px/16px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.nt-fig .f-shape { fill: color-mix(in srgb, var(--cyan) 55%, var(--white)); stroke: var(--blue); stroke-width: 1; }
.nt-fig .f-band { fill: var(--blue-14); stroke: var(--blue); stroke-width: 1; }
.nt-fig .f-gap { fill: var(--ink); }
.nt-fig circle.f-gap { fill: var(--blue); }
.nt-fig .f-rule { fill: none; stroke: rgba(23, 23, 23, 0.45); stroke-width: 1; }
.nt-fig .f-dash { fill: none; stroke: rgba(23, 23, 23, 0.18); stroke-width: 1; stroke-dasharray: 3 3; }
.nt-fig text { fill: var(--ink); font: 500 13px/1 var(--font-mono); letter-spacing: 0; }
.nt-fig text.f-sm { fill: var(--muted); font-size: 11.5px; }

/* more notes */
.nt-more { margin-top: 64px; padding-block: 64px 96px; border-top: 1px solid var(--line-strong); }
.nt-more__inner { max-width: 1100px; margin-inline: auto; }
.nt-more__title { font: 700 var(--fs-h3)/1.05 var(--font-sans); letter-spacing: -0.02em; color: var(--blue); }
.nt-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 809px) {
  .nt-meta { margin-top: 28px; }
  .nt-cover { margin-top: 32px; padding: 8px; }
  .nt-body { margin-top: 40px; font-size: 17px; }
  .nt-body > h3 { font-size: 20px; }
  .nt-table table { font-size: 14px; }
  .nt-table th, .nt-table td { padding: 10px 10px; }
  .nt-table td.num { font-size: 12.5px; }
  .nt-fig { padding: 20px 14px 14px; }
  .nt-more { margin-top: 32px; padding-block: 48px 64px; }
  .nt-more__grid { grid-template-columns: 1fr; }
}

/* ================================================================ /legal/* (.lg-*) */

.lg { padding-bottom: 96px; }
.lg__wrap { max-width: 1140px; margin-inline: auto; }
.lg__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 8px 0 40px; border-bottom: 1px solid var(--line-strong); }
.lg__title { font: 700 clamp(44px, calc(3vw + 28px), 80px)/1 var(--font-sans); letter-spacing: -0.035em; color: var(--blue); }
.lg__date { font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lg__grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px 72px; align-items: start; margin-top: 48px; }

/* section list: sticky on desktop, a collapsible card on smaller screens */
.lg__toc { position: sticky; top: calc(var(--nav-top) + var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-top) - var(--nav-h) - 48px); overflow-y: auto; }
.lg__toc-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.lg__toc-sum::-webkit-details-marker { display: none; }
.lg__toc-sum::marker { content: ''; }
.lg__toc-sum::after { content: '+'; color: var(--blue); font-size: 16px; }
.lg__toc[open] .lg__toc-sum::after { content: '\2212'; }
.lg__toc-label { display: none; margin-bottom: 12px; font: 500 12px/16px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lg__toc ol { display: flex; flex-direction: column; padding: 0; list-style: none; border-left: 1px solid var(--line-strong); }
.lg__toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font: 400 14px/20px var(--font-sans); color: var(--muted); transition: color 0.15s, border-color 0.15s; }
.lg__toc a span { font: 500 12px/20px var(--font-mono); color: inherit; }
.lg__toc a:hover { color: var(--blue); }
.lg__toc a[aria-current='true'] { color: var(--blue); border-left-color: var(--blue); }

.lg__body { max-width: 740px; font: 400 17px/1.65 var(--font-sans); color: #2a2a2a; }
.lg__body > * + * { margin-top: 1em; }
.lg__body > h2 { display: flex; align-items: baseline; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font: 700 clamp(24px, calc(0.5vw + 20px), 30px)/1.2 var(--font-sans); letter-spacing: -0.02em; color: var(--blue); }
.lg__body > h2:first-child { margin-top: 0; }
.lg-num { flex: none; min-width: 2.1em; font: 500 0.56em/1 var(--font-mono); letter-spacing: 0; color: var(--blue); }
.lg__body > h3 { margin-top: 1.8em; font: 500 19px/1.35 var(--font-sans); color: var(--ink); }
.lg__body > h2 + *, .lg__body > h3 + * { margin-top: 0.7em; }
.lg__body strong { font-weight: 600; color: var(--ink); }
.lg__body > ul { display: flex; flex-direction: column; gap: 0.6em; padding-left: 1.3em; }
.lg__body > ul li::marker { color: var(--blue); }
.lg__body code { padding: 2px 6px; background: var(--blue-08); color: var(--blue-deep); font: 400 0.84em/1 var(--font-mono); }
.lg__caps { padding: 18px 22px; background: var(--white); border: 1px solid var(--line-strong); font-size: 15px; line-height: 1.6; letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink); }

@media (min-width: 1024px) {
  .lg__toc[open] > .lg__toc-sum { display: none; }
  .lg__toc[open] .lg__toc-label { display: block; }
}
@media (max-width: 1023px) {
  .lg__grid { grid-template-columns: 1fr; margin-top: 32px; }
  .lg__toc { position: static; max-height: none; overflow: visible; background: var(--white); border: 1px solid var(--line-strong); }
  .lg__toc ol { margin: 0 16px 16px; }
}
@media (max-width: 809px) {
  .lg { padding-bottom: 64px; }
  .lg__head { padding-bottom: 28px; }
  .lg__body { font-size: 16px; }
  .lg__body > h2 { margin-top: 44px; }
  .lg__caps { padding: 16px; font-size: 14px; }
}

/* ================================================================ /404 (.nf-*) */

.nf { --grain: 0.2; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(620px, 100svh); padding: calc(var(--nav-clear) + 40px) var(--page-pad) clamp(48px, 9vh, 96px); background: var(--blue); overflow: hidden; }
.nf__inner { display: flex; flex-direction: column; align-items: flex-start; }
.nf__code { margin-left: -0.05em; font: 700 clamp(150px, 30vw, 440px)/0.8 var(--font-sans); letter-spacing: -0.06em; color: var(--white); font-variant-numeric: tabular-nums; user-select: none; }
.nf__title { margin-top: clamp(32px, 5vh, 56px); font: 700 var(--fs-h3)/1.05 var(--font-sans); letter-spacing: -0.02em; color: var(--white); }
.nf__lead { max-width: 30em; margin-top: 16px; font: 400 20px/28px var(--font-sans); color: rgba(255, 255, 255, 0.9); }
.nf .pg-buttons { margin-top: 32px; }
.nf .pg-kicker { margin-bottom: 28px; }
.nf__art { position: absolute; z-index: -1; right: max(-40px, calc((100vw - 1500px) / 2)); top: 50%; width: min(56vw, 900px); height: auto; transform: translateY(-46%); opacity: 0.16; filter: brightness(0) invert(1); pointer-events: none; }
@media (max-width: 1023px) { .nf__art { display: none; } }
@media (max-width: 809px) {
  .nf__lead { font-size: 18px; line-height: 26px; }
}
