/* posts/post.css — build.py가 만든다: vendor/nycta/nycta.css 전체 + src/post.css. src/post.css를 고친다. */
/* ==========================================================================
   NYCTA Graphics Standards Manual (1970) → Web — design tokens & components
   Source of truth: ledger.yaml (rule IDs). Comment format:
   RULE-ID | pdf p.N | [status]
   [변환] values carry their formula. "in" in formulas = one manual inch.
   ========================================================================== */

/* -------------------------------------------------------------------------
   0. Typeface
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Albert Sans NYCTA";
  src: url("albert-sans-nycta-wght.75cc4f4029.woff2") format("woff2");
  font-weight: 100 900;                       /* DEC-017 | - | [설계결정] variable wght axis */
  /* DEC-024 | pdf p.13, 94–157 | [변환] Albert Sans (OFL) with the manual's pair chart (TYPE-016/017) compiled into
     its kern feature: gap between glyph outlines = chart units + master reference insets, 1 unit = cap/36.
     Pairs not in the chart = 4 units (TYPE-024: 2 + 2). Renamed per OFL. */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NYCTA Hangul";
  src: url("nycta-hangul.4258072c95.woff2") format("woff2");
  font-weight: 100 900;                       /* DEC-032 | - | [설계결정] one static weight (SUIT wght 700); range stops faux bold */
  /* DEC-032 | - | [변환] SUIT (OFL, renamed) Hangul only: frame = 1.1 cap, top on the cap line, native fixed width − 1 unit.
     Only syllables SUIT draws (2,668 incl. all KS X 1001); others fall back. */
  unicode-range: U+3131-318E, U+AC00-D7A3;
  font-style: normal;
  font-display: swap;
}

@layer nycta.tokens, nycta.base, nycta.components; /* DEC-046 | - | [설계결정] cascade layers so host apps override without specificity battles */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
@layer nycta.tokens {
:root {
  /* --- typeface --- */
  --font-sign: "Albert Sans NYCTA", "NYCTA Hangul", system-ui, sans-serif; /* DEC-017, DEC-024, DEC-032 | - | [설계결정] substitute for TYPE-001 Standard Medium; Hangul companion */
  --font-weight-light: 600;                             /* DEC-017 | - | [설계결정] Medium equivalent (TYPE-002), dark type on white */
  --font-weight: var(--font-weight-light);              /* DEC-017, DEC-019 | - | [설계결정] current page weight (dark mode swaps it) */
  --font-weight-dark: 560;                              /* DEC-019 | - | [설계결정] irradiation compensation */
  --cap-em: 0.700;                                      /* DEC-017 | - | [변환] Albert Sans capHeight 700 / UPM 1000 */
  --ls: 0em;                                            /* DEC-024 | pdf p.13 | [변환] spacing now comes from the chart kerning in the font */
  --ws: -0.1485em;                                      /* DEC-018, TYPE-021 | pdf p.62,65 | [변환] word gap = 0.34 cap ink-to-ink (manual samples '& Brooklyn', 'Broadway Nassau') */
  --lsb-comp: 0.064em;                                  /* DEC-025 | pdf p.62,66 | [변환] straight-stem capitals (B D E F H I K L M N P R U): font side bearing − master inset; round letters end up ≈0.02em left (optical overshoot) */
  --ws-ko: -0.0737em;                                   /* DEC-033, DEC-018 | - | [변환] Hangul word gap ink-to-ink = 0.34 × 1.1 cap */
  --lsb-table: "A0.0022 B0.0642 C0.0398 D0.0638 E0.0776 F0.0622 G0.0392 H0.0628 I0.064 J0.0437 K0.0624 L0.0634 M0.0669 N0.0622 O0.0371 P0.069 Q0.0359 R0.0682 S0.042 T0.0281 U0.0569 V0.021 W0.0186 X0.043 Y0.0183 Z0.0438 a0.0371 b0.0561 c0.0394 d0.0316 e0.0371 f0.0325 g0.0394 h0.056 i0.0563 j-0.0441 k0.0618 l0.0552 m0.0554 n0.055 o0.0423 p0.0653 q0.0388 r0.0565 s0.0404 t0.0222 u0.0448 v0.0084 w0.0206 x0.0218 y-0.0028 z0.0336 00.0547 10.032 20.0394 30.0465 40.0326 50.0557 60.0519 70.0244 80.0496 90.0422 &0.0559";                                     /* DEC-043, DEC-025 | - | [변환] per first letter pull (em), written by tools/build_fonts.py --write-css, applied by js/nycta.js */
  --lsb-comp-ko: 0.0199em;                              /* DEC-033, DEC-025 | - | [변환] median Hangul left side bearing (after −1 unit tracking) */
  --trim-k: 0.35;                                       /* GRID-003 | - | [변환] (ascent+descent)/2 − (ascent − cap) of the web font */

  /* --- module (sign scale) --- */
  --fs-min: 12px;                                       /* DEC-016, DEC-023 | - | [설계결정] Information text floor */
  --module: clamp(40px, 10vw, calc(1rem * var(--cap-em) * 12 / 1.375)); /* DEC-001, DEC-002 | - | [변환] tracks --cap-em & root font-size (97.75px for Albert 16px) */

  /* line heights (font-size units) = pitch / cap × capEm */
  --lh-g2: calc(5.625 / 4.25 * var(--cap-em));          /* GRID-006 | pdf p.10 | [변환] pitch 5 5/8in → 0.9265 */
  --lh-g1: calc(1.875 / 1.375 * var(--cap-em));         /* GRID-007 | pdf p.11 | [변환] pitch 1 7/8in → 0.9545 */
  --lh-body: 1.5;                                       /* DEC-020 | - | [설계결정] long-form text only */

  /* discs (sizes in the module rule below) */
  --disc-glyph: 0.408;                                  /* DISC-004, DISC-007 | pdf p.15–40 | [이미지판독] glyph cap / D, median of 26 masters */

  /* --- document scale (DEC-002): body = Information tier at 1rem --- */
  --doc-in: calc(1rem * var(--cap-em) / 1.375);         /* DEC-002 | - | [변환] 1rem ↔ 1 3/8in cap → 1in ≈ 8.15px */
  --doc-fs-s: 1rem;                                     /* DEC-005 | - | [설계결정] */
  --doc-fs-m: clamp(1.75rem, 1rem + 3vw, calc(1rem * 4.25 / 1.375));  /* DEC-002, DEC-005 | - | [설계결정] max = TYPE-006 ratio 3.091rem */
  --doc-fs-l: clamp(2.5rem, 1rem + 7vw, calc(1rem * 9 / 1.375));      /* DEC-002, DEC-005 | - | [설계결정] max = TYPE-005 ratio 6.545rem */
  --doc-space-1: calc(var(--doc-in) * 0.5);             /* GRID-003 | - | [변환] ½in */
  --doc-space-2: calc(var(--doc-in) * 1.375);           /* GRID-006 | - | [변환] 1 3/8in */
  --doc-space-3: calc(var(--doc-in) * 1.875);           /* GRID-007 | - | [변환] 1 7/8in */
  --doc-space-4: calc(var(--doc-in) * 5.625);           /* GRID-006 | - | [변환] 5 5/8in */
  --doc-space-5: calc(var(--doc-in) * 12);              /* GRID-002 | - | [변환] 1 module */
  --doc-band: calc(var(--doc-in) * 1.625);              /* GRID-013 | - | [변환] band at document scale */
  --doc-rule: max(1px, calc(var(--doc-in) * 0.125));    /* SIGN-023 | - | [변환] 1/8in */

  /* --- UI geometry, focus & layering tokens --- */
  --ring-w: 0.5px;                                      /* DEC-041 | - | [설계결정] plate / dark-mode ring width */
  --focus-w: 1px;                                       /* DEC-008 | - | [설계결정] minimal keyboard focus outline */
  --focus-offset: 2px;                                  /* DEC-008 | - | [설계결정] */
  --z-dot: 1;                                           /* DEC-045 | - | [설계결정] station dot above vertical strip */
  --z-print-grain: 2147483646;                          /* DEC-038 | - | [설계결정] paper grain overlay above page flow */

  /* --- colors (DEC-003: scan, paper-corrected) --- */
  --c-pure-white: #FFFFFF;                              /* COLOR-009 | pdf p.65 | [확정] immutable white (unaffected by DEC-038 paper tint) */
  --c-white:      var(--c-pure-white);                  /* COLOR-009 | pdf p.65 | [확정] surface white (paper tint swaps this under data-print) */
  --c-black:      #000000;                              /* COLOR-009, DEC-003 | pdf p.65 | [설계결정] pure black, swatch photo distorted */
  --c-yellow:     #FFCE0E;                              /* COLOR-005 | pdf p.49 | [이미지판독] PMS 130 lines + PMS 109 Transfer */
  --c-orange:     #FF6E10;                              /* COLOR-005 | pdf p.50 | [이미지판독] PMS 165 */
  --c-red:        #FF4C2B;                              /* COLOR-005 | pdf p.51 | [이미지판독] PMS 185 lines + Warm Red Exit + mandatory */
  --c-magenta:    #FB3998;                              /* COLOR-005 | pdf p.52 | [이미지판독] PMS 239 */
  --c-green:      #01C16C;                              /* COLOR-005 | pdf p.53 | [이미지판독] PMS 354 */
  --c-lightblue:  #02C6F4;                              /* COLOR-005 | pdf p.54 | [이미지판독] PMS 312 */
  --c-blue:       #0262D3;                              /* COLOR-005 | pdf p.55 | [이미지판독] PMS 300 */
  --c-grey:       #9A9392;                              /* COLOR-005, COLOR-007, DEC-027 | pdf p.57,88 | [설계결정] scan #9E9897 darkened to 3:1 with white */
  --c-grey-text:  #797473;                              /* DEC-046, DEC-045, DEC-027 | - | [설계결정] --c-grey darkened (same hue) to 4.61:1 on white / 4.51:1 on paper, small grey text on white surfaces */
  --c-red-text-light: #E72400;                          /* DEC-026 | - | [설계결정] scan red darkened (same hue) to 4.5:1 on white, small red text only */
  --c-red-text:   var(--c-red-text-light);              /* DEC-026, DEC-041 | - | [설계결정] dark mode swaps it; plates keep the light value */

  /* semantic (swapped in dark mode, DEC-019) */
  --fg: var(--c-black);                                 /* COLOR-009 | pdf p.65 | [확정] black on white */
  --bg: var(--c-white);                                 /* COLOR-009 | pdf p.65 | [확정] */
  --ring-plate: 0 0 0 var(--ring-w) var(--c-black);     /* DEC-041 | - | [설계결정] 0.5px black ring in light mode, white in dark mode */
  --disc-dark-ring: none;                               /* DEC-019, DEC-041 | - | [설계결정] 0.5px white ring on black discs sitting on dark surfaces */
  --backdrop-bg: color-mix(in srgb, var(--bg) 80%, transparent); /* DEC-031 | - | [설계결정] page colour at 80% */
  --select-arrow-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.5 -0.5 1 1'%3E%3Cg transform='rotate(90)'%3E%3Cpath fill='%23000000' d='M -0.488 -0.1015 L 0.119 -0.1015 L -0.048 -0.269 L 0.096 -0.403 L 0.5 0 L 0.096 0.403 L -0.048 0.269 L 0.119 0.1015 L -0.488 0.1015 Z'/%3E%3C/g%3E%3C/svg%3E");
  --select-arrow-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.5 -0.5 1 1'%3E%3Cg transform='rotate(90)'%3E%3Cpath fill='%23FFFFFF' d='M -0.488 -0.1015 L 0.119 -0.1015 L -0.048 -0.269 L 0.096 -0.403 L 0.5 0 L 0.096 0.403 L -0.048 0.269 L 0.119 0.1015 L -0.488 0.1015 Z'/%3E%3C/g%3E%3C/svg%3E");
  --select-arrow: var(--select-arrow-light);            /* DEC-009, ARROW-005 | - | [설계결정] down arrow on <select> */
  --c-exit-bg: var(--c-red);    --c-exit-fg: var(--c-white);       /* COLOR-010 | pdf p.67 | [확정] white on Warm Red */
  --c-transfer-bg: var(--c-yellow); --c-transfer-fg: var(--c-black); /* COLOR-011, DEC-004 | pdf p.67 | [확정] black on PMS 109 */
  --c-mandatory: var(--c-red-text);                     /* SIGN-018, COLOR-012, DEC-026 | pdf p.86 | [설계결정] */
  --c-error: var(--c-red-text);                         /* DEC-010, DEC-026 | - | [설계결정] */
  --c-disabled: var(--c-grey);                          /* DEC-012 | - | [설계결정] */
  --c-reverse-bg: var(--c-grey);                        /* COLOR-007 | pdf p.88,92 | [확정] 'Subway' / 'Exit only' reverse */

  color-scheme: light dark;
}
/* Everything measured in the module (sign scale). Declared again on every element that sets its own --module, or the
   values arrive already computed from :root and only the cells (.m) follow the new module, not the type, rules or discs.
   DEC-016, DEC-002 | - | [설계결정] .compact and .module-scope (any element that sets --module) recompute them */
:root, .compact, .module-scope {
  --in: calc(var(--module) / 12);                       /* GRID-002 | pdf p.9–11 | [변환] module = 12in */

  /* cap heights (TYPE-004: size = UPPER CASE X height) */
  --cap-l: calc(var(--in) * 9);                         /* TYPE-005 | pdf p.7–9 | [이미지판독] identification / Exit / Transfer */
  --cap-m: calc(var(--in) * 4.25);                      /* TYPE-006 | pdf p.7,8,10 | [이미지판독] directional */
  --cap-s: calc(var(--in) * 1.375);                     /* TYPE-007 | pdf p.7,8,11 | [이미지판독] informational */
  --fs-l: calc(var(--cap-l) / var(--cap-em));           /* TYPE-005 | - | [변환] cap / capEm */
  --fs-m: calc(var(--cap-m) / var(--cap-em));           /* TYPE-006 | - | [변환] cap / capEm */
  --fs-s: max(var(--fs-min), calc(var(--cap-s) / var(--cap-em))); /* TYPE-007, DEC-016 | - | [변환] cap / capEm, 12px floor [설계결정] */

  /* space units (TYPE-026: 1 unit = cap / 36) — reference only; the pair matrix is applied inside the font (DEC-024) */
  --unit-l: calc(var(--cap-l) / 36);                    /* TYPE-026 | pdf p.104,116 | [이미지판독] */
  --unit-m: calc(var(--cap-m) / 36);                    /* TYPE-026 | pdf p.158 | [이미지판독] */
  --unit-s: calc(var(--cap-s) / 36);                    /* TYPE-026 | pdf p.174 | [이미지판독] */

  /* spacing */
  --space-margin: calc(var(--in) * 0.5);                /* GRID-003, GRID-004 | pdf p.9–11 | [이미지판독] ½in top/left */
  --space-gap-g1: calc(var(--in) * 0.5);                /* GRID-007 | pdf p.11 | [이미지판독] baseline → next cap line */
  --space-gap-g2: calc(var(--in) * 1.375);              /* GRID-006 | pdf p.10 | [이미지판독] */
  --space-disc-text: calc(var(--in) * 0.5);             /* GRID-009 | pdf p.11 | [이미지판독] */

  /* strokes */
  --stroke-band: calc(var(--in) * 1.625);               /* GRID-013 | pdf p.64 | [이미지판독] black band 1 5/8in */
  --stroke-divider: max(1px, calc(var(--in) * 0.125));  /* SIGN-023 | pdf p.88 | [확정] 1/8in divider line */

  /* discs */
  --disc-l: calc(var(--in) * 11);                       /* DISC-001, GRID-016 | pdf p.14,65 | [이미지판독] 11in in 12in module */
  --disc-m: calc(var(--in) * 5.5);                      /* DISC-001 | pdf p.14 | [이미지판독] */
  --disc-s: calc(var(--in) * 1.6875);                   /* DISC-001, GRID-008 | pdf p.11,14 | [이미지판독] 1 11/16in */
}

/* -------------------------------------------------------------------------
   2. Dark mode (DEC-019)
   ------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg: var(--c-white);                               /* DEC-019 | - | [설계결정] swap */
    --bg: var(--c-black);                               /* DEC-019 | - | [설계결정] swap */
    --font-weight: var(--font-weight-dark);             /* DEC-019 | - | [설계결정] */
    --c-red-text: var(--c-red);                         /* DEC-026 | - | [설계결정] scan red already 6.3:1 on black */
    --ring-plate: 0 0 0 var(--ring-w) var(--c-pure-white); /* DEC-041 | - | [설계결정] 0.5px white ring on plates, popups, line-strips */
    --disc-dark-ring: 0 0 0 var(--ring-w) var(--c-pure-white); /* DEC-019, DEC-041 | - | [설계결정] 0.5px white ring on black discs outside light plates */
    --select-arrow: var(--select-arrow-dark);           /* DEC-009 | - | [설계결정] */
  }
}
:root[data-theme="dark"] {
  --fg: var(--c-white);                                 /* DEC-019 | - | [설계결정] */
  --bg: var(--c-black);                                 /* DEC-019 | - | [설계결정] */
  --font-weight: var(--font-weight-dark);               /* DEC-019 | - | [설계결정] */
  --c-red-text: var(--c-red);                           /* DEC-026 | - | [설계결정] */
  --ring-plate: 0 0 0 var(--ring-w) var(--c-pure-white); /* DEC-041 */
  --disc-dark-ring: 0 0 0 var(--ring-w) var(--c-pure-white); /* DEC-019, DEC-041 */
  --select-arrow: var(--select-arrow-dark);             /* DEC-009 */
}
} /* end @layer nycta.tokens */

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */
@layer nycta.base {
*, *::before, *::after { box-sizing: border-box; border-radius: 0; } /* DEC-009 | - | [설계결정] exact rectangles everywhere */
/* em-based spacing must resolve against each element's own font-size, so it is set on every element
   (an inherited letter-spacing would keep the body's px value) — DEC-018 | - | [변환] */
* { letter-spacing: var(--ls); word-spacing: var(--ws); --lsb-pull: var(--lsb-comp); }
/* Korean text — set per element by its own language, so lang="en" inside a Korean page keeps the Latin values */
:lang(ko) {
  word-break: keep-all;                                 /* DEC-033 | - | [설계결정] never break inside a Korean word */
  line-break: strict;                                   /* DEC-033 | - | [설계결정] */
  word-spacing: var(--ws-ko);                           /* DEC-033, DEC-018 | - | [변환] */
  --lsb-pull: var(--lsb-comp-ko);                       /* DEC-033, DEC-025 | - | [변환] */
}
body:lang(ko) { --lh-body: 1.7; }                       /* DEC-033, DEC-020 | - | [설계결정] long-form Hangul */

html {
  font-family: var(--font-sign);                        /* TYPE-001, DEC-017 */
  font-weight: var(--font-weight);                      /* TYPE-002, DEC-017 */
  font-size: 100%;
  color: var(--fg);
  background: var(--bg);
  font-kerning: normal;
  font-synthesis: none;                                 /* SIGN-002 | pdf p.93 | [확정] no distorted/faux forms */
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  font-size: var(--doc-fs-s);                           /* DEC-005 | - | [설계결정] body = Information tier */
  line-height: var(--lh-body);                          /* DEC-020 | - | [설계결정] */
  text-transform: none;                                 /* DONT-005 | pdf p.13 | [확정] never all caps */
  text-align: left;                                     /* GRID-004 | pdf p.9–11 | [이미지판독] flush left */
}

/* Cap-line / baseline trimming so margins are measured to cap line and baseline,
   as on the grid drawings (GRID-003). Fallback derived from Albert Sans metrics:
   ascent .95, descent .25, cap .70 → trim = lh/2 − 0.35 em (each side) = --trim-k. */
.trim {
  --lh: var(--lh-g1);
  line-height: var(--lh);
  margin-block: calc((var(--trim-k) - var(--lh) / 2) * 1em); /* GRID-003 | pdf p.9–11 | [변환] (asc+desc−lh)/2 − (asc−cap) */
}
@supports (text-box: trim-both cap alphabetic) {
  .trim { margin-block: 0; text-box: trim-both cap alphabetic; }
}

/* -------------------------------------------------------------------------
   4. Typography — from the manual (sign scale)
   ------------------------------------------------------------------------- */
.t-ident {                                              /* TYPE-005, GRID-005 | pdf p.9 | [이미지판독] Grid 3: one line */
  font-size: var(--fs-l);
  --lh: var(--lh-g2);                                   /* single line; value only affects trimming */
  white-space: nowrap;
}
.t-direction {                                          /* TYPE-006, GRID-006, TYPE-011 | pdf p.8,10 | [이미지판독] Grid 2, max 2 lines */
  font-size: var(--fs-m);
  --lh: var(--lh-g2);                                   /* max 2 lines is an authoring rule (TYPE-011), not clipped */
}
.t-info {                                               /* TYPE-007, GRID-007, TYPE-012 | pdf p.8,11 | [이미지판독] Grid 1, max 6 lines */
  font-size: var(--fs-s);
  --lh: var(--lh-g1);
}
.t-ident, .t-direction, .t-info { line-height: var(--lh); margin: 0; }
/* first glyph sits on the ½in margin like the masters: pull text left by the font's extra side bearing — DEC-025 */
.t-ident, .t-direction, .t-info, h1, .h1, h2, .h2, h3, .h3, .compact__title, .compact__item { margin-inline-start: calc(-1 * var(--lsb-pull)); } /* DEC-025, DEC-033 */
.t-info--clamp6 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; } /* TYPE-012 | pdf p.8 | [확정] */

/* -------------------------------------------------------------------------
   5. Typography — extended for the web (document scale, DEC-005)
   ------------------------------------------------------------------------- */
h1, .h1 {                                               /* DEC-005 | - | [설계결정] = Identification tier */
  font-size: var(--doc-fs-l);
  line-height: var(--lh-g2);                            /* DEC-005 | - | [설계결정] reuse Grid 2 pitch if wrapping */
  font-weight: var(--font-weight);
  margin: 0 0 var(--doc-space-3);
}
h2, .h2 {                                               /* DEC-005 | - | [설계결정] = Directional tier */
  font-size: var(--doc-fs-m);
  line-height: var(--lh-g2);                            /* GRID-006 | pdf p.10 | [변환] */
  font-weight: var(--font-weight);
  margin: var(--doc-space-4) 0 var(--doc-space-2);
}
h3, .h3, p, li, dd {                                    /* DEC-005 | - | [설계결정] = Information tier */
  font-size: var(--doc-fs-s);
  font-weight: var(--font-weight);
}
h3, .h3 { margin: var(--doc-space-3) 0 var(--doc-space-1); line-height: var(--lh-g1); }
p { margin: 0 0 var(--doc-space-3); }

/* Compact contexts — DEC-016 | pdf p.68–72 precedent | [설계결정] */
.compact { --module: clamp(40px, 6vw, 64px); }
.compact__title { font-size: var(--fs-m); line-height: var(--lh-g2); } /* drop one tier: top item → Directional */
.compact__item  { font-size: var(--fs-s); line-height: var(--lh-g1); } /* rest → Information (12px floor via --fs-s) */
.compact > * + * { border-top: var(--stroke-divider) solid currentColor; padding-top: var(--space-gap-g1); } /* hierarchy by order + rule */

} /* end @layer nycta.base */

/* -------------------------------------------------------------------------
   6. Layout utilities
   ------------------------------------------------------------------------- */
@layer nycta.components {
.plate {                                                /* GRID-012, GRID-013, GRID-014, DEC-041 | pdf p.64–65 | [이미지판독] */
  --fg: var(--c-black); --bg: var(--c-white);           /* DEC-041 | - | [설계결정] plates stay light in both themes */
  --font-weight: var(--font-weight-light);              /* DEC-041, DEC-019 | - | [설계결정] black type on white → no irradiation offset */
  --c-red-text: var(--c-red-text-light);                /* DEC-041, DEC-026 | - | [설계결정] red text on white keeps light contrast */
  --c-mandatory: var(--c-red-text-light);               /* DEC-041, DEC-026 | - | [설계결정] */
  --c-error: var(--c-red-text-light);                   /* DEC-041, DEC-026 | - | [설계결정] */
  --disc-dark-ring: none;                               /* DEC-041, DEC-019 | - | [설계결정] black discs on white plate need no white ring */
  --select-arrow: var(--select-arrow-light);            /* DEC-041 | - | [설계결정] */
  display: flex;
  align-items: stretch;
  border-top: var(--stroke-band) solid var(--fg);       /* GRID-013 | pdf p.64 | [이미지판독] band above the field */
  background: var(--bg);
  color: var(--fg);
  font-weight: var(--font-weight);
  width: max-content;                                   /* DEC-023 | - | [설계결정] the whole plate (field + band) sticks out when wider than its container; */
  flex-shrink: 0;                                       /* DEC-023 | - | [설계결정] never shrink a plate inside a flex wrapper (its band must cover every cell) */
  min-width: 0;                                         /*   no max-width, or the field and band stop at the container while the cells run on */
  overflow: visible;                                    /* DEC-023 | - | [설계결정] plates never scroll inside; a plate wider than the screen sticks out */
  box-shadow: var(--ring-plate);                        /* DEC-041 | - | [설계결정] 0.5px black ring in light mode, white ring in dark mode */
}
.m {                                                    /* GRID-012 | pdf p.64 | [확정] 1 ft module cell, field 12in */
  flex: 0 0 auto;
  width: var(--module);
  min-height: var(--module);                            /* GRID-014 | pdf p.65 | [이미지판독] field = 12in; grows only when the 12px text floor overflows (DEC-023) */
  padding: var(--space-margin) var(--space-margin) 0;  /* GRID-003, GRID-004 | pdf p.9–11 | [이미지판독] */
  position: relative;
}
.m-2 { width: calc(var(--module) * 2); }                /* GRID-012 | pdf p.64 | [확정] informational 2×1 */
.m-4 { width: calc(var(--module) * 4); }                /* GRID-012 | pdf p.64 | [확정] directional 4×1 */
.m-6 { width: calc(var(--module) * 6); }                /* SIGN-012 | pdf p.66 | [확정] */
.m-8 { width: calc(var(--module) * 8); }                /* GRID-012 | pdf p.64 | [확정] identification 8×1 */
.m-auto { width: auto; min-width: var(--module); padding-right: var(--space-margin); } /* SIGN-003 | pdf p.62 | [이미지판독] copy width varies */
/* Identification plates size themselves to the name in ½ ft steps (DEC-030, .sign-ident below + js/nycta.js);
   .m-auto is for other copy cells whose width varies (Exit, Transfer). */
.m-blank { padding: 0; }                                /* SIGN-004 | pdf p.62 | [확정] blank 1×1 between directions */
.m-center { display: grid; place-items: center; padding: 0; overflow: clip; } /* GRID-016, GRID-017, DEC-023 | pdf p.65 | [이미지판독] disc/arrow centered; rotated arrow box clipped */

.stack-g1 > * + * { margin-top: var(--space-gap-g1); } /* GRID-007 | pdf p.11 | [이미지판독] */
.stack-g2 > * + * { margin-top: var(--space-gap-g2); } /* GRID-006 | pdf p.10 | [이미지판독] */
.row { display: flex; align-items: flex-start; }        /* SIGN-003 | pdf p.62 | [확정] left → right order */
.row--disc-text { gap: var(--space-disc-text); }        /* GRID-009 | pdf p.11 | [이미지판독] */

/* -------------------------------------------------------------------------
   7. Component — line disc (route badge)
   ------------------------------------------------------------------------- */
.disc {                                                 /* COLOR-002, DISC-001, DISC-004 | pdf p.14–48 | [이미지판독] */
  --d: var(--disc-l);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;                                   /* DISC-001 | pdf p.14 | [확정] circle — the only non-rectangular form (DEC-009 exception) */
  background: var(--line, var(--c-black));
  color: var(--c-white);                                /* COLOR-002, DEC-004 | pdf p.14 | [확정] white glyph */
  font-size: calc(var(--d) * var(--disc-glyph) / var(--cap-em)); /* DISC-004 | - | [변환] glyph cap = 0.408 D */
  line-height: 1;
  letter-spacing: var(--ls);
  text-align: center;
  white-space: nowrap;
  vertical-align: top;
  position: relative;
}
/* Glyph = baked outline (DEC-035): the circle is the box's background, the glyph a second layer in the same box,
   painted in currentColor through a mask, so the two can never drift apart (no text layout, no font rounding).
   Masked labels keep their text, transparent, for screen readers and copying; other labels fall back to the text. */
.disc > span { display: block; color: var(--disc-text, inherit); } /* DEC-035 | - | [설계결정] */
.disc::after {                                          /* DISC-004, DISC-007, DEC-035, DEC-037 | pdf p.15–40 | [변환] glyph layer, bold outlines */
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--disc-mask, linear-gradient(#0000 0 0)) center / 100% 100% no-repeat;
  mask: var(--disc-mask, linear-gradient(#0000 0 0)) center / 100% 100% no-repeat;
  pointer-events: none;
}
.disc--m { --d: var(--disc-m); }                        /* DISC-001 | pdf p.14 | [이미지판독] 5½in */
.disc--s { --d: var(--disc-s); }                        /* DISC-001 | pdf p.14 | [이미지판독] 1 11/16in */
.disc--inline {                                         /* GRID-008, DEC-034 | pdf p.11 | [설계결정] beside text, no minimum size */
  /* D = parent cap × (1 11/16 ÷ 1 3/8); glyph cap = 0.408 D.
     font-size uses parent em: k = 0.408 × 1.6875 / 1.375 = 0.5007  [변환] */
  font-size: calc(1em * var(--disc-glyph) * 1.6875 / 1.375);
  --d: calc(1em * var(--cap-em) / var(--disc-glyph));   /* GRID-008 | pdf p.11 | [변환] own em → D */
  --disc-mb: 0.3;                                       /* DEC-034 | - | [설계결정] overhang never changes line spacing */
  margin-block: calc(var(--d) * -1 * var(--disc-mb));
  /* Centre on the cap height (DEC-034), from geometry only (no font metrics, which the browser rounds):
     the glyph is out of flow, so the disc's baseline is its bottom margin edge, D × (0.5 − mb) below its centre.
     Raise = parent cap / 2 − D × (0.5 − mb), parent cap = D × 1.375 / 1.6875  [변환] */
  vertical-align: calc(var(--d) * (1.375 / 1.6875 / 2 - 0.5 + var(--disc-mb)));
}
.disc--inline > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } /* DEC-034 | - | [변환] out of flow → baseline = margin edge */

/* line → color (COLOR-003 | pdf p.15–40 | [확정]; hex DEC-003); data-color allows non-1970 labels to pick a palette color cleanly (DEC-004, DEC-046) */
:is(.disc, .line-strip):is([data-line="1"],  [data-line="7"],  [data-line="D"],  [data-line="EE"], [data-color="orange"])    { --line: var(--c-orange); }
:is(.disc, .line-strip):is([data-line="2"],  [data-line="HH"], [data-line="QB"], [data-color="red"])                         { --line: var(--c-red); }
:is(.disc, .line-strip):is([data-line="3"],  [data-line="8"],  [data-line="E"],  [data-line="M"],  [data-color="lightblue"]) { --line: var(--c-lightblue); }
:is(.disc, .line-strip):is([data-line="4"],  [data-line="AA"], [data-line="F"],  [data-color="magenta"])                     { --line: var(--c-magenta); }
:is(.disc, .line-strip):is([data-line="5"],  [data-line="B"],  [data-line="LL"], [data-line="QJ"], [data-color="black"])     { --line: var(--c-black); }
:is(.disc, .line-strip):is([data-line="6"],  [data-line="N"],  [data-color="yellow"])                                        { --line: var(--c-yellow); }
.disc:is([data-line="6"], [data-line="N"], [data-color="yellow"]) { color: var(--c-black); } /* DEC-004 | - | [설계결정] yellow → black glyph */
:is(.disc, .line-strip):is([data-line="CC"], [data-line="GG"], [data-line="RR"], [data-line="SS"], [data-color="green"])     { --line: var(--c-green); }
:is(.disc, .line-strip):is([data-line="A"],  [data-line="KK"], [data-color="blue"])                                          { --line: var(--c-blue); }
:is(.disc, .line-strip)[data-color="grey"] { --line: var(--c-grey); }

/* Per-label glyph outlines — DISC-004, DISC-007, DEC-035 | pdf p.15–40 | [변환] D = 1000, glyph cap 408, ink centre at the
   master offset (data/disc_masters.json: dx_D, dy_D, two-letter ink gap); labels without a master (0, 9, C, G, R, X …) centred. */
/* disc glyph masks — generated by tools/build_fonts.py from the shipped font (DEC-035). Do not edit by hand. */
.disc[data-line="1"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M459 361H404V295H538V703H459Z'/%3E%3C/svg%3E"); }
.disc[data-line="2"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M368 648 481 541Q513 512 531 491Q549 471 557 454Q566 436 566 417Q566 392 552 376Q538 360 506 360Q487 360 473 369Q459 378 451 395Q444 412 443 435H367Q368 386 387 355Q406 323 438 308Q470 293 508 293Q553 293 584 309Q615 325 630 352Q646 380 646 416Q646 442 637 466Q628 490 606 516Q584 543 546 578L479 639H655V705H368Z'/%3E%3C/svg%3E"); }
.disc[data-line="3"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M361 413Q364 375 382 348Q400 321 431 308Q462 294 503 294Q546 294 576 310Q605 325 621 352Q636 378 636 409Q636 433 627 451Q617 469 602 480Q587 492 572 497V499Q593 506 610 518Q626 531 635 549Q644 568 644 595Q644 629 628 655Q612 681 581 696Q550 710 506 710Q462 710 429 697Q396 684 377 656Q358 628 356 581H433Q434 613 451 628Q468 643 504 643Q525 643 539 637Q552 630 559 618Q565 606 565 588Q565 555 543 543Q521 532 475 532H458V469H475Q500 469 518 464Q537 460 547 449Q557 438 557 419Q557 394 543 378Q529 361 501 361Q480 361 467 369Q454 376 447 388Q440 400 439 413Z'/%3E%3C/svg%3E"); }
.disc[data-line="4"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M513 619H308V560L500 297H592V553H644V619H592V705H513ZM517 553V381L395 553Z'/%3E%3C/svg%3E"); }
.disc[data-line="5"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M608 293V359H424V457Q436 442 455 434Q475 425 502 425Q538 425 564 438Q589 450 605 470Q621 491 629 514Q636 538 636 560Q636 603 618 635Q601 668 567 687Q534 705 488 705Q443 705 411 690Q379 674 360 647Q342 620 338 586H415Q420 609 439 623Q457 638 488 638Q511 638 526 629Q541 619 549 602Q556 585 556 561Q556 527 538 509Q520 490 487 490Q462 490 445 503Q428 516 421 536H345V293Z'/%3E%3C/svg%3E"); }
.disc[data-line="6"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M498 709Q454 709 419 690Q384 672 364 639Q344 606 344 565Q344 532 357 499Q371 465 398 430L501 297H587L466 451L390 532Q401 486 433 459Q466 432 512 432Q551 432 582 448Q613 465 632 495Q650 525 650 566Q650 608 629 640Q609 673 574 691Q540 709 498 709ZM424 566Q424 589 433 606Q441 624 458 633Q474 642 498 642Q521 642 537 633Q553 624 561 606Q570 589 570 566Q570 543 561 526Q553 510 537 500Q521 491 498 491Q474 491 458 500Q441 510 433 526Q424 543 424 566Z'/%3E%3C/svg%3E"); }
.disc[data-line="7"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M643 295V354L486 703H406L564 361H361V295Z'/%3E%3C/svg%3E"); }
.disc[data-line="8"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M414 488Q388 475 371 453Q355 432 355 399Q355 369 371 345Q386 321 418 307Q449 292 498 292Q546 292 578 307Q609 321 625 345Q640 370 640 399Q640 430 624 453Q607 476 582 488Q614 500 633 526Q651 552 651 587Q651 625 631 652Q611 679 576 694Q542 708 498 708Q454 708 419 694Q385 679 365 652Q345 625 345 587Q345 552 363 526Q382 500 414 488ZM561 409Q561 381 544 369Q528 356 498 356Q468 356 452 369Q435 381 435 409Q435 435 452 450Q469 465 498 465Q526 465 544 450Q561 434 561 409ZM498 521Q476 521 459 528Q443 535 434 549Q425 563 425 584Q425 612 443 628Q461 644 498 644Q534 644 552 628Q571 611 571 584Q571 564 562 550Q553 536 537 528Q520 521 498 521Z'/%3E%3C/svg%3E"); }
.disc[data-line="A"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M504 363H484L364 705H283L429 297H559L705 705H624ZM371 545H609V611H371Z'/%3E%3C/svg%3E"); }
.disc[data-line="AA"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M289 362H268L148 704H67L213 296H343L489 704H408ZM155 544H393V610H155ZM734 362H713L594 704H513L659 296H789L935 704H854ZM601 544H838V610H601Z'/%3E%3C/svg%3E"); }
.disc[data-line="B"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M579 416Q579 390 562 377Q546 364 516 364H417V467H516Q546 467 562 454Q579 441 579 416ZM338 706V298H527Q570 298 599 312Q628 326 643 351Q658 375 658 405Q658 432 648 451Q638 469 621 480Q604 491 582 495V500Q608 503 628 515Q647 526 657 546Q668 567 668 596Q668 628 652 653Q636 678 606 692Q577 706 534 706ZM417 640H524Q555 640 572 627Q589 613 589 586Q589 559 571 545Q552 531 522 531H417Z'/%3E%3C/svg%3E"); }
.disc[data-line="CC"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M93 501Q93 455 108 417Q124 379 152 351Q180 323 217 308Q255 293 299 293Q362 293 411 323Q459 353 483 409L418 428Q405 403 386 388Q367 373 345 366Q323 359 300 359Q263 359 234 377Q205 395 188 427Q172 459 172 501Q172 543 188 575Q205 607 234 625Q263 643 300 643Q323 643 346 635Q369 628 389 611Q409 593 423 564L488 582Q463 646 413 677Q363 709 299 709Q255 709 217 694Q180 679 152 651Q124 623 108 585Q93 547 93 501ZM510 501Q510 455 526 417Q542 379 569 351Q597 323 635 308Q673 293 717 293Q779 293 828 323Q877 353 901 409L835 428Q822 403 803 388Q785 373 763 366Q740 359 718 359Q680 359 651 377Q622 395 606 427Q590 459 590 501Q590 543 606 575Q622 607 651 625Q680 643 718 643Q741 643 764 635Q787 628 807 611Q827 593 840 564L905 582Q880 646 831 677Q781 709 717 709Q673 709 635 694Q597 679 569 651Q542 623 526 585Q510 547 510 501Z'/%3E%3C/svg%3E"); }
.disc[data-line="D"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M485 295Q551 295 599 320Q647 346 674 392Q700 438 700 500Q700 562 674 608Q647 653 599 678Q551 703 485 703H334V295ZM483 637Q549 637 585 601Q620 564 620 500Q620 435 585 398Q549 361 483 361H412V637Z'/%3E%3C/svg%3E"); }
.disc[data-line="E"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M632 361H424V464H580V528H424V637H632V703H346V295H632Z'/%3E%3C/svg%3E"); }
.disc[data-line="EE"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M492 361H284V464H439V528H284V637H492V703H205V295H492ZM799 361H591V464H747V528H591V637H799V703H512V295H799Z'/%3E%3C/svg%3E"); }
.disc[data-line="F"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M370 306H656V372H448V475H604V539H448V714H370Z'/%3E%3C/svg%3E"); }
.disc[data-line="GG"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M399 427Q379 392 350 376Q321 361 287 361Q251 361 222 379Q192 397 175 429Q158 461 158 502Q158 544 175 576Q191 608 221 625Q250 643 288 643Q313 643 335 634Q357 626 373 610Q390 595 401 575V541H289V478H477V585Q463 619 436 647Q408 676 370 693Q332 710 285 710Q241 710 203 695Q165 680 137 652Q109 624 93 586Q78 548 78 502Q78 457 93 418Q109 380 137 352Q165 324 203 309Q241 294 285 294Q326 294 362 307Q399 320 427 345Q456 370 470 405ZM836 427Q816 392 787 376Q758 361 724 361Q688 361 659 379Q629 397 612 429Q595 461 595 502Q595 544 612 576Q628 608 658 625Q687 643 725 643Q750 643 772 634Q794 626 810 610Q827 595 838 575V541H726V478H914V585Q900 619 873 647Q845 676 807 693Q769 710 722 710Q678 710 640 695Q602 680 574 652Q546 624 530 586Q515 548 515 502Q515 457 530 418Q546 380 574 352Q602 324 640 309Q678 294 722 294Q763 294 799 307Q836 320 864 345Q893 370 907 405Z'/%3E%3C/svg%3E"); }
.disc[data-line="HH"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M143 293H222V461H403V293H482V701H403V527H222V701H143ZM516 293H595V461H776V293H855V701H776V527H595V701H516Z'/%3E%3C/svg%3E"); }
.disc[data-line="KK"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M163 295H242V463H266L409 295H505L336 496L509 703H409L265 529H242V703H163ZM525 295H603V463H627L771 295H867L697 496L871 703H771L627 529H603V703H525Z'/%3E%3C/svg%3E"); }
.disc[data-line="LL"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M344 295V637H525V703H265V295ZM629 295V637H811V703H551V295Z'/%3E%3C/svg%3E"); }
.disc[data-line="M"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M357 703H278V295H368L498 600L628 295H718V703H639V440L529 703H467L357 440Z'/%3E%3C/svg%3E"); }
.disc[data-line="N"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M670 298V706H590L411 422V706H332V298H412L591 581V298Z'/%3E%3C/svg%3E"); }
.disc[data-line="QB"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M288 585H359V764H288ZM322 713Q279 713 241 698Q204 683 175 655Q147 627 131 589Q114 551 114 505Q114 459 131 421Q147 383 175 355Q204 327 241 312Q279 297 322 297Q366 297 404 312Q441 327 470 355Q498 383 514 421Q530 459 530 505Q530 551 514 589Q498 627 470 655Q441 683 403 698Q366 713 322 713ZM323 646Q360 646 389 628Q417 611 434 579Q450 547 450 505Q450 462 434 431Q417 399 389 382Q360 364 323 364Q285 364 256 382Q227 399 211 431Q195 462 195 505Q195 547 211 579Q227 611 256 628Q285 646 323 646ZM790 419Q790 393 774 380Q758 367 728 367H628V470H728Q757 470 774 457Q790 444 790 419ZM550 709V301H739Q782 301 811 315Q840 329 855 354Q870 378 870 408Q870 435 860 454Q850 472 833 483Q815 494 793 498V503Q820 506 839 518Q859 529 869 549Q880 570 880 599Q880 631 864 656Q848 681 818 695Q788 709 746 709ZM628 643H736Q766 643 783 630Q801 616 801 589Q801 562 782 548Q764 534 734 534H628Z'/%3E%3C/svg%3E"); }
.disc[data-line="QJ"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M324 586H395V765H324ZM358 714Q315 714 277 699Q240 684 211 656Q183 628 167 590Q150 552 150 506Q150 460 167 422Q183 384 211 356Q240 328 277 313Q315 298 358 298Q402 298 440 313Q477 328 506 356Q534 384 550 422Q566 460 566 506Q566 552 550 590Q534 628 506 656Q477 684 439 699Q402 714 358 714ZM359 647Q396 647 425 629Q453 612 470 580Q486 548 486 506Q486 463 470 432Q453 400 425 383Q396 365 359 365Q321 365 292 383Q263 400 247 432Q230 463 230 506Q230 548 247 580Q263 612 292 629Q321 647 359 647ZM747 302H826V588Q826 627 809 656Q793 684 764 699Q735 714 698 714Q652 714 620 692Q589 669 577 627L646 608Q650 621 657 630Q664 639 674 644Q684 648 697 648Q712 648 724 641Q735 634 741 621Q747 608 747 592Z'/%3E%3C/svg%3E"); }
.disc[data-line="RR"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M412 421Q412 393 395 377Q379 361 344 361H257V482H344Q367 482 382 474Q397 467 404 453Q412 440 412 421ZM346 295Q395 295 427 312Q460 329 476 358Q492 387 492 421Q492 444 484 466Q476 488 458 507Q441 525 413 536Q385 547 346 547H257V703H178V295ZM390 521 500 703H412L307 521ZM754 421Q754 393 737 377Q720 361 685 361H598V482H685Q709 482 724 474Q739 467 746 453Q754 440 754 421ZM688 295Q737 295 769 312Q802 329 818 358Q834 387 834 421Q834 444 826 466Q818 488 800 507Q783 525 755 536Q727 547 688 547H598V703H520V295ZM732 521 842 703H754L648 521Z'/%3E%3C/svg%3E"); }
.disc[data-line="SS"] { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M243 590Q247 606 256 618Q266 630 282 637Q298 644 320 644Q354 644 371 628Q388 613 388 591Q388 573 377 561Q367 550 348 542Q328 534 304 526Q280 519 257 511Q234 503 216 491Q197 478 187 459Q176 439 176 410Q176 372 194 346Q212 320 245 306Q277 293 318 293Q354 293 383 303Q412 313 431 333Q451 352 460 381L387 401Q384 388 374 379Q364 369 350 364Q336 358 320 358Q302 358 288 363Q273 369 264 380Q256 391 256 406Q256 422 266 432Q275 442 292 448Q308 455 329 461Q353 469 377 478Q402 486 422 500Q443 514 455 535Q468 556 468 588Q468 622 452 649Q436 676 404 693Q372 709 324 709Q284 709 251 697Q219 686 198 663Q177 641 171 610ZM583 590Q586 606 596 618Q606 630 622 637Q638 644 659 644Q694 644 710 628Q727 613 727 591Q727 573 717 561Q706 550 687 542Q668 534 643 526Q620 519 597 511Q574 503 556 491Q537 478 526 459Q515 439 516 410Q516 372 534 346Q552 320 584 306Q616 293 658 293Q694 293 723 303Q751 313 771 333Q790 352 799 381L727 401Q724 388 714 379Q704 369 690 364Q676 358 660 358Q642 358 627 363Q613 369 604 380Q596 391 596 406Q596 422 605 432Q615 442 632 448Q648 455 668 461Q693 469 717 478Q742 486 762 500Q782 514 795 535Q807 556 807 588Q807 622 792 649Q776 676 743 693Q711 709 663 709Q623 709 591 697Q559 686 538 663Q517 641 510 610Z'/%3E%3C/svg%3E"); }
.disc[data-line="0"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M344 502Q344 456 351 418Q359 380 377 352Q395 324 425 309Q455 294 500 294Q545 294 575 309Q605 324 623 352Q641 380 649 418Q656 456 656 502Q656 548 649 587Q641 625 623 653Q605 680 575 695Q545 710 500 710Q455 710 425 695Q395 680 377 653Q359 625 351 587Q344 548 344 502ZM576 502Q576 474 574 449Q572 424 564 404Q557 384 542 373Q526 361 500 361Q474 361 458 373Q443 384 436 404Q428 424 426 449Q424 474 424 502Q424 531 426 557Q428 582 436 601Q443 621 458 632Q474 643 500 643Q526 643 542 632Q557 621 564 601Q572 582 574 557Q576 531 576 502Z'/%3E%3C/svg%3E"); }
.disc[data-line="9"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M499 294Q543 294 578 313Q613 331 633 364Q653 397 653 439Q653 471 640 504Q626 538 599 573L496 706H410L531 552L607 471Q596 517 564 544Q531 571 485 571Q446 571 415 555Q384 538 365 508Q347 478 347 437Q347 395 368 363Q388 330 422 312Q457 294 499 294ZM573 437Q573 413 564 396Q555 379 539 370Q522 361 499 361Q476 361 460 370Q444 379 436 396Q427 413 427 437Q427 460 436 477Q444 494 460 503Q476 512 499 512Q522 512 539 503Q555 494 564 477Q573 460 573 437Z'/%3E%3C/svg%3E"); }
.disc[data-line="C"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M302 502Q302 456 318 418Q334 380 362 352Q389 324 427 309Q465 294 509 294Q572 294 620 324Q669 354 693 410L627 429Q615 404 596 389Q577 374 555 367Q533 360 510 360Q472 360 443 378Q414 396 398 428Q382 460 382 502Q382 544 398 576Q414 608 443 626Q472 644 510 644Q533 644 556 636Q579 629 599 612Q619 594 633 565L698 583Q672 647 623 678Q573 710 509 710Q465 710 427 695Q389 680 362 652Q334 624 318 586Q302 548 302 502Z'/%3E%3C/svg%3E"); }
.disc[data-line="G"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M621 427Q602 392 573 376Q544 361 510 361Q473 361 444 379Q415 397 398 429Q380 461 380 502Q380 544 397 576Q414 608 443 625Q473 643 511 643Q535 643 557 634Q579 626 596 610Q613 595 623 575V541H511V478H700V585Q686 619 658 647Q631 676 593 693Q555 710 508 710Q464 710 426 695Q388 680 360 652Q332 624 316 586Q300 548 300 502Q300 457 316 418Q332 380 360 352Q388 324 425 309Q463 294 507 294Q548 294 585 307Q622 320 650 345Q678 370 693 405Z'/%3E%3C/svg%3E"); }
.disc[data-line="H"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M331 296H410V464H590V296H669V704H590V530H410V704H331Z'/%3E%3C/svg%3E"); }
.disc[data-line="I"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M461 296H539V704H461Z'/%3E%3C/svg%3E"); }
.disc[data-line="J"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M546 296H624V582Q624 621 608 650Q591 678 563 693Q534 708 497 708Q450 708 419 686Q387 663 376 621L445 602Q448 615 455 624Q462 633 472 637Q483 642 496 642Q511 642 522 635Q533 628 539 615Q546 602 546 586Z'/%3E%3C/svg%3E"); }
.disc[data-line="K"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M327 296H405V464H429L573 296H669L500 497L673 704H573L429 530H405V704H327Z'/%3E%3C/svg%3E"); }
.disc[data-line="L"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M449 296V638H630V704H370V296Z'/%3E%3C/svg%3E"); }
.disc[data-line="O"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M500 710Q457 710 419 695Q381 680 353 652Q324 624 308 586Q292 548 292 502Q292 456 308 418Q324 380 353 352Q381 324 419 309Q457 294 500 294Q543 294 581 309Q619 324 647 352Q676 380 692 418Q708 456 708 502Q708 548 692 586Q676 624 647 652Q619 680 581 695Q543 710 500 710ZM500 643Q537 643 566 625Q595 608 611 576Q628 544 628 502Q628 459 611 428Q595 396 566 379Q537 361 500 361Q462 361 434 379Q405 396 388 428Q372 459 372 502Q372 544 389 576Q405 608 434 625Q462 643 500 643Z'/%3E%3C/svg%3E"); }
.disc[data-line="P"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M509 483Q532 483 547 475Q562 468 570 454Q577 441 577 422Q577 393 560 378Q544 362 509 362H422V483ZM657 422Q657 445 649 467Q641 489 623 508Q606 526 578 537Q550 548 511 548H422V704H343V296H511Q560 296 593 313Q625 330 641 359Q657 388 657 422Z'/%3E%3C/svg%3E"); }
.disc[data-line="Q"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M465 582H536V761H465ZM500 710Q457 710 419 695Q381 680 353 652Q324 624 308 586Q292 548 292 502Q292 456 308 418Q324 380 353 352Q381 324 419 309Q457 294 500 294Q543 294 581 309Q619 324 647 352Q676 380 692 418Q708 456 708 502Q708 548 692 586Q676 624 647 652Q619 680 581 695Q543 710 500 710ZM500 643Q537 643 566 625Q595 608 611 576Q628 544 628 502Q628 459 611 428Q595 396 566 379Q537 361 500 361Q462 361 434 379Q405 396 388 428Q372 459 372 502Q372 544 389 576Q405 608 434 625Q462 643 500 643Z'/%3E%3C/svg%3E"); }
.disc[data-line="R"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M573 422Q573 394 556 378Q540 362 505 362H418V483H505Q528 483 543 475Q558 468 565 454Q573 441 573 422ZM507 296Q556 296 588 313Q621 330 637 359Q653 388 653 422Q653 445 645 467Q637 489 619 508Q602 526 574 537Q546 548 507 548H418V704H339V296ZM551 522 661 704H573L468 522Z'/%3E%3C/svg%3E"); }
.disc[data-line="S"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M424 591Q428 607 437 619Q447 631 463 638Q479 645 500 645Q535 645 552 629Q569 614 569 592Q569 574 558 562Q547 551 528 543Q509 535 485 527Q461 520 438 512Q415 504 397 492Q378 479 367 460Q357 440 357 411Q357 373 375 347Q393 321 425 307Q458 294 499 294Q535 294 564 304Q592 314 612 334Q631 353 640 382L568 402Q565 389 555 380Q545 370 531 365Q517 359 501 359Q483 359 468 364Q454 370 445 381Q437 392 437 407Q437 423 447 433Q456 443 473 449Q489 456 509 462Q534 470 558 479Q583 487 603 501Q624 515 636 536Q649 557 649 589Q649 623 633 650Q617 677 585 694Q552 710 504 710Q464 710 432 698Q400 687 379 664Q358 642 351 611Z'/%3E%3C/svg%3E"); }
.disc[data-line="T"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M335 296H665V362H539V704H461V362H335Z'/%3E%3C/svg%3E"); }
.disc[data-line="U"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M331 296H410V553Q410 582 421 602Q433 621 453 631Q473 641 499 641Q526 641 547 631Q567 621 579 602Q590 582 590 553V296H669V549Q669 590 655 619Q641 649 617 669Q593 689 562 698Q532 708 498 708Q454 708 416 691Q378 673 354 638Q331 603 331 549Z'/%3E%3C/svg%3E"); }
.disc[data-line="V"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M613 296H697L547 704H452L303 296H387L500 624Z'/%3E%3C/svg%3E"); }
.disc[data-line="W"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M420 704H328L215 296H300L375 613L456 296H545L625 612L700 296H785L672 704H580L500 411Z'/%3E%3C/svg%3E"); }
.disc[data-line="X"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M307 296H396L501 439L604 296H693L547 500L693 704H604L501 561L396 704H307L455 500Z'/%3E%3C/svg%3E"); }
.disc[data-line="Y"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M603 296H692L539 561V704H461V561L308 296H396L500 485Z'/%3E%3C/svg%3E"); }
.disc[data-line="Z"]  { --disc-text: #0000; --disc-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'%3E%3Cpath d='M649 356 443 638H649V704H351V644L556 362H351V296H649Z'/%3E%3C/svg%3E"); }
/* end of disc glyph masks */

/* black disc ring on dark surfaces — DEC-019, DEC-041, DEC-045 | - | [설계결정] surface sets --disc-dark-ring */
.disc:is([data-line="5"],[data-line="B"],[data-line="LL"],[data-line="QJ"],[data-color="black"]) { box-shadow: var(--disc-dark-ring); }

/* disc row order: alphabetical, then numerical — DISC-002 | pdf p.14 | [확정] (author must order markup) */
.discs { display: inline-flex; gap: 0; }                /* SIGN-003 | pdf p.62 | [이미지판독] each disc in its own module */

/* -------------------------------------------------------------------------
   8. Component — arrow (inline SVG, ARROW-005 path)
   Markup: <svg class="arrow" data-dir="right" viewBox="-0.5 -0.5 1 1" aria-hidden="true">
             <path d="M -0.488 -0.1015 L 0.119 -0.1015 L -0.048 -0.269 L 0.096 -0.403 L 0.5 0
                      L 0.096 0.403 L -0.048 0.269 L 0.119 0.1015 L -0.488 0.1015 Z"/></svg>
   ------------------------------------------------------------------------- */
.arrow {                                                /* ARROW-004, ARROW-005 | pdf p.58,60 | [이미지판독] D = construction circle */
  --d: var(--disc-l);                                   /* ARROW-004 | pdf p.60 | [이미지판독] circle = 11in = disc size */
  width: var(--d);
  height: var(--d);
  flex: 0 0 auto;
  fill: currentColor;                                   /* COLOR-009 | pdf p.65 | [확정] black on white */
  overflow: visible;
}
.arrow[data-dir="right"]    { transform: rotate(0deg); }    /* ARROW-001 | pdf p.59 | [확정] */
.arrow[data-dir="down"]     { transform: rotate(90deg); }   /* ARROW-001, ARROW-002 | pdf p.59 | [확정] */
.arrow[data-dir="left"]     { transform: rotate(180deg); }  /* ARROW-001 | pdf p.59 | [확정] */
.arrow[data-dir="up"]       { transform: rotate(-90deg); }  /* ARROW-001 | pdf p.59 | [확정] straight ahead */
.arrow[data-dir="up-right"] { transform: rotate(-45deg); }  /* ARROW-006 | pdf p.61 | [이미지판독] bear right */
.arrow[data-dir="up-left"]  { transform: rotate(-135deg); } /* ARROW-006 | pdf p.61 | [이미지판독] bear left */
/* no down-diagonals, no double-headed arrows — ARROW-001, DONT-006 | pdf p.59,63 | [확정] */
.arrow--inline { --d: calc(1em * var(--cap-em) * 1.6875 / 1.375); vertical-align: calc(-1 * (var(--d) - 1em * var(--cap-em))); } /* DEC-014 | - | [설계결정] same size as inline disc */

/* -------------------------------------------------------------------------
   9. Component — sign blocks
   ------------------------------------------------------------------------- */
/* Directional: [arrow][copy][discs…] — SIGN-003, COPY-005 | pdf p.62,177 | [확정] */
.sign-direction .m-auto .t-direction { margin-top: 0; }
/* Identification: 8×1 (or 4/6) one line, 9in — SIGN-012 | pdf p.66 | [확정] */
.sign-ident .t-ident { margin-top: 0; }
/* DEC-030 | pdf p.66 | [설계결정] ID plate hugs the name: ½in + name + ½in, rounded up to ½ ft (+½ ft when < 1in room).
   js/nycta.js sets --plate-w = module × ft; without it the plate is the bare hug width. Height stays 12in. */
.sign-ident .m { width: var(--plate-w, max-content); min-width: var(--module); }
/* Exit: white on red, 2×1, 9in type — SIGN-013, COLOR-010 | pdf p.67 | [확정] */
.m-exit     { background: var(--c-exit-bg); color: var(--c-exit-fg); width: auto; min-width: calc(var(--module) * 2); padding-right: var(--space-margin); }
/* Transfer: black on yellow, 4×1, 9in type — SIGN-013, COLOR-011 | pdf p.67 | [확정] */
.m-transfer { background: var(--c-transfer-bg); color: var(--c-transfer-fg); min-width: calc(var(--module) * 4); }
.m-exit .t-ident, .m-transfer .t-ident { font-size: var(--fs-l); }
/* arrows stay black on white in their own module — DONT-006 | pdf p.63 | [이미지판독] no reversed arrows */
/* Mandatory: 1×1, red 1 3/8in text on white, ≤6 lines — SIGN-018 | pdf p.86 | [이미지판독] */
.m-mandatory { color: var(--c-mandatory); }
/* Reverse (street 'Subway' / 'Exit only'): white on grey — COLOR-007, SIGN-025 | pdf p.88,92 | [확정] */
.m-reverse { background: var(--c-reverse-bg); color: var(--c-white); }
/* Train information: [direction 4][disc 1…][info 2][rush-hour] — GRID-022, COPY-012 | pdf p.73,178 | [확정] */
.sign-train .m-info { width: calc(var(--module) * 2); }

/* -------------------------------------------------------------------------
   10. Component — arrow guide bar / navigation (DEC-014)
   ------------------------------------------------------------------------- */
.guide {                                                /* DEC-014, SIGN-003 | pdf p.62 | [설계결정] [arrow][label] */
  display: flex;
  align-items: flex-start;
  gap: var(--doc-space-1);
  border-top: var(--doc-band) solid var(--fg);          /* GRID-013 | - | [변환] band at document scale */
  padding: var(--doc-space-1) var(--doc-space-1) var(--doc-space-1) 0;
  font-size: var(--doc-fs-s);
  line-height: var(--lh-g1);
}
.nav { display: flex; flex-wrap: wrap; gap: 0 var(--doc-space-3); margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-flex; gap: calc(var(--doc-in) * 0.5); align-items: baseline; text-decoration: none; } /* DEC-014 | - | [설계결정] arrow identifies the link */
.nav a .arrow { --d: calc(1em * var(--cap-em) * 1.6875 / 1.375); position: relative; top: calc((var(--d) - 1em * var(--cap-em)) / 2); } /* arrow centred on cap height */

/* breadcrumb = information tree — DEC-015, SIGN-011 | pdf p.5 | [설계결정] */
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--doc-space-1); list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: none; }
.crumbs .arrow { --d: calc(1em * var(--cap-em)); }      /* [설계결정] arrow circle = cap height */

/* -------------------------------------------------------------------------
   11. Web elements without a manual counterpart (DEC-006 … DEC-015)
   ------------------------------------------------------------------------- */
a {                                                     /* DEC-006 | - | [설계결정] */
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: var(--doc-rule);           /* SIGN-023 ratio | - | [변환] 1/8in */
  text-underline-offset: 0.18em;                        /* [설계결정] */
}

:focus:not(:focus-visible) { outline: none; }           /* DEC-008 | - | [설계결정] never on mouse/touch */
:focus-visible { outline: var(--focus-w) solid currentColor; outline-offset: var(--focus-offset); } /* DEC-008 | - | [설계결정] minimal */

.btn, button {                                          /* DEC-007, DEC-044 | - | [설계결정] white plate + top band, framed like inputs */
  appearance: none;                                     /* DEC-009 */
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  color: var(--fg);
  background: var(--bg);
  border: var(--doc-rule) solid var(--fg);              /* DEC-044 | - | [설계결정] side + bottom rules, as DEC-009 */
  border-top: var(--doc-band) solid var(--fg);
  padding: var(--doc-space-1);                          /* DEC-044 | - | [설계결정] label off the left rule */
  line-height: var(--lh-g1);
  cursor: pointer;
  text-align: left;
}
.btn:active, button:active, .btn[aria-pressed="true"], button[aria-pressed="true"] { /* DEC-007 | - | [설계결정] reversed; frame fg on fg, size unchanged (DEC-044) */
  color: var(--bg);
  background: var(--fg);
}
.btn:disabled, button:disabled { color: var(--c-disabled); border-color: var(--c-disabled); cursor: default; } /* DEC-012, DEC-044 */

/* Text-link action control (modal openers, print toggle, inline close) — DEC-006, DEC-038, DEC-044 | - | [설계결정] */
.btn-link, .print-toggle {
  appearance: none;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: var(--doc-rule);
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.btn-link:active, .print-toggle:active,
.btn-link[aria-pressed="true"], .print-toggle[aria-pressed="true"] { color: inherit; background: none; }

label { display: block; font-size: var(--doc-fs-s); line-height: var(--lh-g1); margin-bottom: var(--doc-space-1); } /* DEC-009 | - | [설계결정] info tier */
input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"]),
select, textarea {                                      /* DEC-009 | - | [설계결정] plate + band, exact rectangle; text controls only */
  appearance: none;
  border-radius: 0;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  color: var(--fg);
  background: var(--bg);
  border: var(--doc-rule) solid var(--fg);
  border-top: var(--doc-band) solid var(--fg);
  padding: var(--doc-space-1);
  line-height: var(--lh-g1);
  width: 100%;
}
select {                                                /* DEC-009, ARROW-005 | - | [설계결정] downward NYCTA arrow indicator */
  padding-inline-end: calc(var(--doc-space-1) * 2 + 1em);
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right var(--doc-space-1) center;
  background-size: calc(1em * var(--cap-em) * 1.6875 / 1.375);
  cursor: pointer;
}
input[type="checkbox"], input[type="radio"] {           /* DEC-009 | - | [설계결정] exact square, no rounding */
  appearance: none;
  border-radius: 0;
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0;
  vertical-align: -0.15em;
  background: var(--bg);
  border: var(--doc-rule) solid var(--fg);
  cursor: pointer;
}
input[type="checkbox"]:checked, input[type="radio"]:checked {
  background: var(--fg);
  box-shadow: inset 0 0 0 2px var(--bg);
}
input:disabled, select:disabled, textarea:disabled { color: var(--c-disabled); border-color: var(--c-disabled); cursor: default; } /* DEC-012 */
input[type="checkbox"]:checked:disabled, input[type="radio"]:checked:disabled { background: var(--c-disabled); }
[aria-invalid="true"] { border-color: var(--c-error); }  /* DEC-010 */
.error { color: var(--c-error); font-size: var(--doc-fs-s); } /* DEC-010 | - | [설계결정] */
.success { color: inherit; }                            /* DEC-011 | - | [설계결정] wording only */

table { border-collapse: collapse; width: 100%; font-size: var(--doc-fs-s); } /* DEC-013, GRID-020 | pdf p.81 | [설계결정] Directory */
thead th {
  background: var(--fg); color: var(--bg);              /* SIGN-015 | pdf p.81 | [이미지판독] white on black header */
  text-align: left; padding: var(--doc-space-1);
}
td { padding: var(--doc-space-1); border-bottom: var(--doc-rule) solid var(--fg); text-align: left; vertical-align: top; }

.notice {                                               /* DEC-015, SIGN-019, DONT-009 | pdf p.87 | [설계결정] temporary sign: subordinate */
  font-size: var(--doc-fs-s);
  line-height: var(--lh-g1);
  border-top: var(--doc-rule) solid var(--fg);
  padding: var(--doc-space-1) 0;
}

/* -------------------------------------------------------------------------
   12. Component — information popup (DEC-031, DEC-042)
   Markup: <dialog class="popup"> <div class="popup__body">
             [<span class="disc popup__disc" data-line="3"><span>3</span></span>]
             <div class="popup__text"> <p>…</p> <p>… <span class="disc disc--inline">…</span></p>
               <form method="dialog"><button class="popup__close">Close</button></form> </div>
           </div></dialog>       (a <div class="popup" role="dialog"> uses <button type="button" class="popup__close">)
   ------------------------------------------------------------------------- */
.popup {
  --p-fs: var(--popup-fs, var(--doc-fs-s));            /* DEC-031 | - | [설계결정] Information tier 1rem; --popup-fs scales the whole popup */
  --p-in: calc(var(--p-fs) * var(--cap-em) / 1.375);   /* DEC-031, DEC-002 | - | [변환] cap = 1 3/8in */
  --p-rule: max(1px, calc(var(--p-in) * 0.125));        /* DEC-031, SIGN-023 | pdf p.88 | [변환] 1/8in rule */
  --fg: var(--c-black); --bg: var(--c-white);           /* DEC-042 | - | [설계결정] a plate: black band over a white field, in both themes (DEC-041) */
  --font-weight: var(--font-weight-light);              /* DEC-042, DEC-019 | - | [설계결정] black type on white */
  --c-red-text: var(--c-red-text-light);                /* DEC-042, DEC-026 | - | [설계결정] red text on white keeps light contrast */
  --c-mandatory: var(--c-red-text-light);               /* DEC-042, DEC-026 | - | [설계결정] */
  --c-error: var(--c-red-text-light);                   /* DEC-042, DEC-026 | - | [설계결정] */
  --disc-dark-ring: none;                               /* DEC-042, DEC-019 | - | [설계결정] black discs on white popup need no white ring */
  --select-arrow: var(--select-arrow-light);            /* DEC-042 | - | [설계결정] */
  color: var(--fg);                                     /* DEC-042, COLOR-009 | pdf p.65 | [설계결정] black on white, like .plate */
  background:
    linear-gradient(var(--fg), var(--fg)) 0 0 / 100% calc(var(--p-in) * 1.625) no-repeat, /* DEC-042, GRID-013 | pdf p.64 | [변환] black band 1⅝in at the top edge */
    var(--bg);
  font-size: var(--p-fs);                               /* DEC-031, TYPE-007 | - | [설계결정] */
  font-weight: var(--font-weight);
  line-height: var(--lh-g1);                            /* GRID-007 | pdf p.11 | [변환] */
  border: 0;
  margin: auto;                                         /* DEC-031 | - | [설계결정] centred when modal */
  padding: calc(var(--p-in) * 2.125) calc(var(--p-in) * 0.5) calc(var(--p-in) * (0.5 + 0.235 * 1.375)); /* DEC-042, GRID-003, GRID-011, GRID-013 | - | [설계결정] top = band 1⅝ + ½in margin; sides ½in; bottom ½in below the descender guide (0.235 cap) */
  width: max-content;
  max-inline-size: min(calc(var(--p-in) * 48), calc(100% - 2 * var(--doc-space-3))); /* DEC-031 | - | [설계결정] ≤ 4 ft */
  max-block-size: calc(100% - 2 * var(--doc-space-3));
  overflow: auto;
  box-shadow: var(--ring-plate);                        /* DEC-041, DEC-042 | - | [설계결정] 0.5px black ring in light mode, white ring in dark mode */
}
.popup:not(dialog), dialog.popup[open] { display: block; }
.popup::backdrop { background: var(--backdrop-bg); }    /* DEC-031 | - | [설계결정] page colour at 80% */
.popup__body { display: flex; align-items: flex-start; gap: calc(var(--p-in) * 0.5); } /* GRID-009 | pdf p.11 | [이미지판독] disc → text ½in */
.disc.popup__disc { --d: calc(var(--p-in) * (1.375 + 1.875)); } /* DEC-031, GRID-010 | - | [설계결정] cap line 1 → baseline 2 = 3 1/4in */
.popup__text { min-width: 0; }
.popup__text > * {                                      /* GRID-007, TYPE-012 | pdf p.8,11 | [변환] Grid 1 lines, trimmed to cap line / baseline */
  --p-trim: calc((var(--trim-k) - var(--lh-g1) / 2) * 1em); /* GRID-003 | - | [변환] same as .trim fallback */
  font-size: inherit;
  line-height: var(--lh-g1);
  margin: var(--p-trim) 0 var(--p-trim) calc(-1 * var(--lsb-pull)); /* DEC-025, DEC-033 | - | [변환] first glyph on the ½in margin */
}
.popup__text > * + * { margin-block-start: calc(var(--p-in) * 0.5 + var(--p-trim)); } /* GRID-007 | pdf p.11 | [이미지판독] baseline → next cap line ½in */
@supports (text-box: trim-both cap alphabetic) {
  .popup__text > * { --p-trim: 0px; text-box: trim-both cap alphabetic; }
}
.popup .popup__close {                                  /* DEC-031, DEC-006 | - | [설계결정] text control styled as a link, not DEC-007 */
  appearance: none;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: var(--p-rule);
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* -------------------------------------------------------------------------
   13. Component — route map (DEC-036)
   Markup: <figure class="map" aria-label="…"><script type="application/json">{ groups, articles, series }</script></figure>
   + js/nycta-map.js (draws the SVG). Data format: see the head of js/nycta-map.js.
   ------------------------------------------------------------------------- */
.map {
  --map-fs: var(--doc-fs-s);                            /* DEC-036, DEC-005 | - | [설계결정] station names = Information tier */
  --map-cap: calc(var(--map-fs) * var(--cap-em));       /* DEC-036 | - | [변환] name cap height */
  --map-pitch: calc(var(--map-cap) * 2);                /* DEC-036 | - | [설계결정] strand pitch = 2 cap (reference photo ≈1.9–2.2) */
  --map-gap: calc(var(--doc-in) * 0.25);                /* DEC-036, SIGN-023 | - | [설계결정] ground between strands = 2 × ⅛in rule */
  --map-stop: calc(var(--map-cap) * 1.6875 / 1.375);    /* DEC-036, GRID-008, DISC-001 | pdf p.11,14 | [변환] station = small disc beside a name of that cap */
  --map-label-gap: calc(var(--doc-in) * 0.5);           /* DEC-036, GRID-009 | pdf p.11 | [변환] strand edge → name ½in */
  --map-radius: 1;                                      /* DEC-036 | - | [설계결정] innermost strand bend radius, in pitches; +1 pitch per strand outward */
  --map-unit: 2;                                        /* DEC-036 | - | [설계결정] grid step, in pitches */
  margin: 0;
  overflow-x: auto;                                     /* DEC-036 | - | [설계결정] the map keeps its scale; narrow screens pan */
  font-size: var(--map-fs);
}
.map__svg { display: block; max-width: none; overflow: visible; }
.map__casing { fill: none; stroke: var(--bg); stroke-linecap: butt; stroke-linejoin: round; } /* DEC-036 | - | [설계결정] ground cut where lines cross */
.map__line { fill: none; stroke: var(--line); stroke-linecap: butt; stroke-linejoin: round; } /* DEC-036, COLOR-003 | - | [설계결정] route colour */
.map__stop { fill: var(--c-black); }                    /* DEC-036 | - | [설계결정] station = plain black circle, no letter; no dark-mode ring (it always sits on a line) */
.map__transfer { fill: none; stroke: var(--fg); stroke-linecap: round; stroke-linejoin: round; } /* DEC-036 | - | [설계결정] one station on two groups; page colour so it stays visible in dark mode */
.map__grid line { stroke: var(--c-grey); stroke-width: 1px; opacity: 0.35; vector-effect: non-scaling-stroke; } /* DEC-036 | - | [설계결정] alignment check only ("grid": true) */
.map__name { fill: var(--fg); font-weight: var(--font-weight); } /* DEC-036, TYPE-001 | - | [설계결정] */
.map a:focus-visible { outline: var(--focus-w) solid var(--fg); } /* DEC-008 | - | [설계결정] */

/* -------------------------------------------------------------------------
   14. Component — vertical line strip (DEC-045)
   Markup: <div class="line-strip [line-strip--light]" data-color="yellow">
             <button type="button" class="line-strip__head" aria-expanded="true">
               <span class="disc line-strip__disc" data-line="R" data-color="yellow"><span>R</span></span>
               <span class="line-strip__title">Series name</span>
             </button>
             <ol class="line-strip__stops">
               <li class="line-strip__stop"><span class="line-strip__name">Station <span class="line-strip__tail">Name <span class="disc disc--inline" data-line="A"><span>A</span></span></span></span></li>
               <li class="line-strip__fold"><span class="line-strip__count">역 24개</span></li>
               <li class="line-strip__stop is-current" aria-current="location"><span class="line-strip__name">Current station</span></li>
             </ol>
           </div>
   ------------------------------------------------------------------------- */
.line-strip {                                           /* DEC-045, SIGN-017, GRID-021 | pdf p.82 | [설계결정] */
  --strip-in: max(calc(var(--fs-min) * var(--cap-em) / 1.375), calc(var(--module) / 12)); /* DEC-045, DEC-016 | - | [변환] scales with --module, 12px floor */
  --strip-cap: calc(var(--strip-in) * 1.375);           /* TYPE-007 | pdf p.11 | [변환] Information tier cap */
  --strip-fs: calc(var(--strip-cap) / var(--cap-em));   /* TYPE-007, TYPE-008 | - | [변환] 1rem at standard module */
  --strip-lh: var(--lh-g1);                             /* GRID-007 | pdf p.11 | [변환] Grid 1 pitch */
  --strip-dot: calc(var(--strip-in) * 1.6875);          /* DEC-045, DEC-034, DEC-036, GRID-008 | pdf p.11 | [변환] cap × 1 11/16 ÷ 1 3/8 */
  --strip-w: calc(var(--strip-dot) * 1.4);              /* DEC-045, GRID-021 | pdf p.82 | [변환] 1:5:1 → 2.3625in (20% colour margin each side) */
  --strip-gap: calc(var(--strip-in) * 0.5);             /* DEC-045, GRID-009, DEC-036 | pdf p.11 | [변환] strip/disc → name ½in */
  --strip-pad: calc(var(--strip-in) * 0.5);             /* GRID-003, GRID-004 | pdf p.9–11 | [변환] ½in plate margin */
  --strip-rule: max(1px, calc(var(--strip-in) * 0.125)); /* SIGN-023 | pdf p.88 | [변환] ⅛in rule */
  --strip-cut: calc(var(--strip-w) * 0.11);             /* DEC-045 | - | [설계결정] fold horizontal cut thickness */
  --strip-slice: calc(var(--strip-w) * 0.21);           /* DEC-045 | - | [설계결정] fold colour slice height */
  --strip-row-pad: calc((var(--strip-w) - var(--strip-fs) * var(--strip-lh)) / 2); /* DEC-045 | - | [변환] centres line-1 cap on the dot (½ strip from row top) */
  --strip-bg: var(--c-black);                           /* DEC-045 | - | [설계결정] black plate (photo default) */
  --strip-fg: var(--c-white);                           /* DEC-045 | - | [설계결정] */
  --strip-count-fg: var(--c-grey);                      /* DEC-045 | - | [설계결정] #9A9392 on black = 6.96:1 */
  --disc-dark-ring: 0 0 0 var(--ring-w) var(--c-pure-white); /* DEC-045, DEC-019, DEC-041 | - | [설계결정] black disc on black plate needs a white ring */
  --font-weight: var(--font-weight-dark);               /* DEC-045, DEC-019 | - | [설계결정] white type on black */
  color: var(--strip-fg);
  font-size: var(--strip-fs);
  font-weight: var(--font-weight);
  line-height: var(--strip-lh);
  background:
    linear-gradient(var(--c-white), var(--c-white)) 0 calc(var(--strip-in) * 1.5) / 100% var(--strip-rule) no-repeat, /* DEC-045, DEC-040 | - | [설계결정] 1½in + ⅛in white rule */
    var(--strip-bg);
  padding: calc(var(--strip-in) * 2.125) var(--strip-pad) var(--strip-pad); /* DEC-040, GRID-003 | - | [설계결정] 1½ + ⅛ + ½in top; ½in sides & bottom */
  width: min(100%, calc(var(--strip-in) * 48));         /* DEC-045 | - | [설계결정] standard 4 ft width, fits narrower viewports */
  box-shadow: var(--ring-plate);                        /* DEC-041 | - | [설계결정] 0.5px black ring in light mode, white ring in dark mode */
}
.line-strip--light {                                    /* DEC-045, DEC-042 | - | [설계결정] white plate: 1⅝in black top band, white field, black type */
  --strip-bg: var(--c-white);
  --strip-fg: var(--c-black);
  --strip-count-fg: var(--c-grey-text);                 /* DEC-046, DEC-045 | - | [설계결정] darkened same-hue grey (4.61:1 on white) */
  --disc-dark-ring: none;                               /* DEC-045, DEC-041 | - | [설계결정] white plate needs no white ring, even in dark mode */
  --font-weight: var(--font-weight-light);
  background:
    linear-gradient(var(--c-black), var(--c-black)) 0 0 / 100% calc(var(--strip-in) * 1.625) no-repeat, /* DEC-042, GRID-013 | pdf p.64 | [변환] 1⅝in black band */
    var(--strip-bg);
}

.line-strip__head {                                     /* DEC-045 | - | [설계결정] route disc (D = strip) + series name, usable as toggle button */
  appearance: none;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: var(--strip-w) minmax(0, 1fr);
  column-gap: var(--strip-gap);
  align-items: center;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  text-align: left;
}
button.line-strip__head { cursor: pointer; }
button.line-strip__head:active { background: transparent; color: inherit; }
.line-strip__disc { --d: var(--strip-w); }              /* DEC-045 | - | [설계결정] head disc D = strip width, aligned to strip axis */
.line-strip__title { min-width: 0; font-size: var(--strip-fs); line-height: var(--strip-lh); }

.line-strip__stops { list-style: none; margin: calc(var(--strip-in) * 0.5) 0 0; padding: 0; } /* DEC-045 | - | [설계결정] */
.line-strip__stop {                                     /* DEC-045 | - | [설계결정] strip column + station name */
  display: grid;
  grid-template-columns: var(--strip-w) minmax(0, 1fr);
  column-gap: var(--strip-gap);
  align-items: start;
  position: relative;
  font-size: var(--strip-fs);
}
.line-strip__stop::before {                             /* DEC-045 | - | [설계결정] continuous vertical strip */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--strip-w);
  background: var(--line, var(--c-black));
}
.line-strip__stop:not(:last-child)::before { bottom: -1px; } /* DEC-045 | - | [설계결정] overlap 1px so fractional scales leave no seam */
.line-strip__stop:last-child::before { bottom: auto; height: var(--strip-w); } /* DEC-045 | - | [설계결정] butt end ½ strip past last dot centre */
.line-strip__stop::after {                              /* DEC-045, DEC-036 | - | [설계결정] black station dot, centred on line 1; pseudo-element keeps DOM border-radius 0 (DEC-009) */
  content: "";
  position: absolute;
  left: calc((var(--strip-w) - var(--strip-dot)) / 2);
  top: calc((var(--strip-w) - var(--strip-dot)) / 2);
  width: var(--strip-dot);
  height: var(--strip-dot);
  border-radius: 50%;
  background: var(--c-black);
  z-index: var(--z-dot);
}
.line-strip__name {                                     /* DEC-045 | - | [설계결정] horizontal name + inline transfer discs, wraps like a paragraph */
  grid-column: 2;
  min-width: 0;
  display: block;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration: none;
  text-align: left;
  padding: var(--strip-row-pad) 0;
}
button.line-strip__name { appearance: none; width: 100%; cursor: pointer; }
button.line-strip__name:active { background: transparent; color: inherit; }
.line-strip__tail { white-space: nowrap; }              /* DEC-045 | - | [설계결정] binds last word to transfer disc so no disc is orphaned at line start */

/* Current station ("you are here") — DEC-045, DEC-007 | - | [설계결정] */
.line-strip__stop:is(.is-current, [aria-current]:not([aria-current="false"])) {
  --disc-dark-ring: none;                               /* white reversed row on black plate needs no white ring */
}
.line-strip--light .line-strip__stop:is(.is-current, [aria-current]:not([aria-current="false"])) {
  --disc-dark-ring: 0 0 0 var(--ring-w) var(--c-pure-white); /* black reversed row on white plate needs a white ring */
}
.line-strip__stop:is(.is-current, [aria-current]:not([aria-current="false"]))::after {
  background: var(--c-white);                           /* DEC-045 | - | [설계결정] white centre + black ring */
  border: calc(var(--strip-dot) * 0.22) solid var(--c-black);
}
.line-strip__stop:is(.is-current, [aria-current]:not([aria-current="false"])) > .line-strip__name {
  background: var(--strip-fg);                          /* DEC-045, DEC-007 | - | [설계결정] reversed to the plate right edge */
  color: var(--strip-bg);
  font-weight: var(--font-weight-light);                /* DEC-019 | - | [설계결정] black on white on black plate */
  margin-inline: calc(-1 * var(--strip-gap)) calc(-1 * var(--strip-pad));
  padding-inline: var(--strip-gap) var(--strip-pad);
}
.line-strip--light .line-strip__stop:is(.is-current, [aria-current]:not([aria-current="false"])) > .line-strip__name {
  font-weight: var(--font-weight-dark);                 /* DEC-019 | - | [설계결정] white on black on white plate */
}

/* Fold indicator — DEC-045 | - | [설계결정] continuous strip sliced centrally by 4 bg cuts leaving 3 colour slices */
.line-strip__fold {
  display: grid;
  grid-template-columns: var(--strip-w) minmax(0, 1fr);
  column-gap: var(--strip-gap);
  align-items: center;
  min-height: calc(var(--strip-w) * 2.55);              /* DEC-045 | - | [설계결정] 2.55 × strip */
  position: relative;
  font-size: var(--strip-fs);
}
.line-strip__fold::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--strip-w);
  background: linear-gradient(
    to bottom,
    var(--line, var(--c-black)) 0,
    var(--line, var(--c-black)) calc(50% - var(--strip-slice) * 1.5 - var(--strip-cut) * 2),
    var(--strip-bg)             calc(50% - var(--strip-slice) * 1.5 - var(--strip-cut) * 2),
    var(--strip-bg)             calc(50% - var(--strip-slice) * 1.5 - var(--strip-cut)),
    var(--line, var(--c-black)) calc(50% - var(--strip-slice) * 1.5 - var(--strip-cut)),
    var(--line, var(--c-black)) calc(50% - var(--strip-slice) * 0.5 - var(--strip-cut)),
    var(--strip-bg)             calc(50% - var(--strip-slice) * 0.5 - var(--strip-cut)),
    var(--strip-bg)             calc(50% - var(--strip-slice) * 0.5),
    var(--line, var(--c-black)) calc(50% - var(--strip-slice) * 0.5),
    var(--line, var(--c-black)) calc(50% + var(--strip-slice) * 0.5),
    var(--strip-bg)             calc(50% + var(--strip-slice) * 0.5),
    var(--strip-bg)             calc(50% + var(--strip-slice) * 0.5 + var(--strip-cut)),
    var(--line, var(--c-black)) calc(50% + var(--strip-slice) * 0.5 + var(--strip-cut)),
    var(--line, var(--c-black)) calc(50% + var(--strip-slice) * 1.5 + var(--strip-cut)),
    var(--strip-bg)             calc(50% + var(--strip-slice) * 1.5 + var(--strip-cut)),
    var(--strip-bg)             calc(50% + var(--strip-slice) * 1.5 + var(--strip-cut) * 2),
    var(--line, var(--c-black)) calc(50% + var(--strip-slice) * 1.5 + var(--strip-cut) * 2),
    var(--line, var(--c-black)) 100%
  );
}
.line-strip__fold:not(:last-child)::before { bottom: -1px; }
.line-strip__count {                                    /* DEC-045, DEC-046, TYPE-008 | - | [설계결정] 1rem Information tier */
  grid-column: 2;
  min-width: 0;
  font-size: var(--strip-fs);
  line-height: var(--strip-lh);
  color: var(--strip-count-fg);
}

/* -------------------------------------------------------------------------
   15. Print simulation layer (DEC-038) — opt-in: <html data-print>
   Off by default; a button with data-print-toggle switches it per viewer (js/nycta.js). Two parts: paper grain + ink edge.
   Dark mode keeps both, mirrored (white fibre, screen blend), without the paper colour; high contrast, forced colours and real printing turn it off.
   Ink-edge filter (#nycta-ink) is injected by js/nycta.js; without the script only paper + grain apply.
   ------------------------------------------------------------------------- */
:root[data-print] {
  --c-paper: #FFFCFA;                                   /* DEC-038, COLOR-005 | pdf p.49–57 | [설계결정] scan paper #EAE5E2 normalised to R = 255 (#FFFAF6), halfway to white */
  --c-white: var(--c-paper);                            /* DEC-038 | - | [설계결정] white type = bare paper */
  --print-grain: 0.15;                                  /* DEC-038 | - | [설계결정] fine fibre */
  --print-grain-dark: 0.25;                             /* DEC-038 | - | [설계결정] fine fibre in dark mode: white specks, screen blend */
  --print-edge: 1.5;                                    /* DEC-038, DEC-039 | - | [설계결정] edge displacement in px at 100 % zoom (max ±0.75px), read by js/nycta.js */
  --print-filter: url(#nycta-ink);
  --print-grain-now: var(--print-grain);
  --print-grain-tex-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 1.8 0 0 0 -.82'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --print-grain-tex-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.8 0 0 0 -.82'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --print-grain-tex: var(--print-grain-tex-light);
  --print-grain-blend: multiply;
}
@media (prefers-color-scheme: dark) {
  :root[data-print]:not([data-theme="light"]) {         /* DEC-038, DEC-019 | - | [설계결정] dark mode: grain mirrored (light specks lift the black), ink edge kept; no paper colour */
    --c-white: var(--c-pure-white);
    --print-grain-now: var(--print-grain-dark);
    --print-grain-tex: var(--print-grain-tex-dark);
    --print-grain-blend: screen;
  }
}
:root[data-print][data-theme="dark"] {
  --c-white: var(--c-pure-white);
  --print-grain-now: var(--print-grain-dark);
  --print-grain-tex: var(--print-grain-tex-dark);
  --print-grain-blend: screen;
}
:root[data-print] body::after {                         /* DEC-038 | - | [설계결정] paper: fine fibre over ink too (light: multiply, dark: screen) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-print-grain);
  background: var(--print-grain-tex) 0 0 / var(--print-grain-size, 240px) var(--print-grain-size, 240px); /* DEC-039 | - | [설계결정] tile held at screen-pixel size by js/nycta.js */
  mix-blend-mode: var(--print-grain-blend);
  opacity: var(--print-grain-now);
}
:root[data-print] :is(.plate, .popup, .line-strip, .map__svg),
:root[data-print] .disc:not(.plate .disc, .popup .disc, .line-strip .disc) {
  filter: var(--print-filter);                          /* DEC-038, DEC-009 | - | [설계결정] ragged ink edge, sub-pixel so corners stay square */
}
@media (prefers-contrast: more), (forced-colors: active), print {
  :root[data-print] { --c-white: var(--c-pure-white); --print-filter: none; } /* DEC-038 | - | [설계결정] whole layer off */
  :root[data-print] body::after { display: none; }
}

/* -------------------------------------------------------------------------
   16. Pointer hover states (DEC-047) — pointer devices only (no sticky hover on touch)
   ------------------------------------------------------------------------- */
@media (hover: hover) {
  a:hover,
  .btn-link:hover,
  .print-toggle:hover {
    text-decoration-thickness: calc(var(--doc-rule) * 2.5); /* DEC-047, DEC-006 | - | [설계결정] */
  }
  .popup .popup__close:hover {
    text-decoration-thickness: calc(var(--p-rule) * 2.5);   /* DEC-047, DEC-031 | - | [설계결정] scales with --popup-fs */
  }
  .nav a:hover {
    text-decoration: underline;                             /* DEC-047, DEC-014 | - | [설계결정] */
    text-decoration-thickness: var(--doc-rule);
    text-underline-offset: 0.18em;
  }
  .btn:hover:not(:disabled),
  button:hover:not(:disabled):not(.btn-link):not(.print-toggle):not(.popup__close):not(.line-strip__head):not(.line-strip__name) {
    color: var(--bg);                                       /* DEC-047, DEC-007, DEC-044 | - | [설계결정] reversed plate */
    background: var(--fg);
  }
  button.line-strip__head:hover .line-strip__title,
  :is(button, a).line-strip__name:hover {
    text-decoration: underline;                             /* DEC-047, DEC-045 | - | [설계결정] */
    text-decoration-thickness: var(--strip-rule);
    text-underline-offset: 0.18em;
  }
  .map a:hover .map__name {
    text-decoration: underline;                             /* DEC-047, DEC-036 | - | [설계결정] */
  }
}
} /* end @layer nycta.components */


/* ==========================================================================
   [eee] 웹 연재(G) 글 페이지. build.py가 vendor/nycta/nycta.css 전체 뒤에 이 파일을 붙여 posts/post.css를 만든다.
   원칙(2026-11-21 사용자 요청 "원래 있는 모듈을 최대한 이용"): 모양은 nycta 구성요소가 정하고, 여기에는 그것들을
   한 페이지에 놓는 자리와 nycta에 없는 글 요소(인용·구분선·그림)만 둔다. 새 크기나 간격 값은 만들지 않는다.
   - 글 머리 = 표준 길이 모듈 판 하나(.plate > .m-4/.m-6)에 제목(방향 크기). 맨 위 노선도 링크·연재·날짜 줄은 뺐다(2026-11-21 사용자 요청)
   - 모듈 판은 nycta .plate 그대로(흰 바탕·검은 띠, DEC-042)
   - 본문 = nycta 문서 규모(DEC-005: h1 식별·h2 방향·본문 안내 크기, p 간격, 한국어 행간 DEC-033)
   - 끝 = 모듈 판 하나에 .nav: [← (G) 이전 글 제목] [(G) 다음 글 제목 →] [돌아가기 ↙] (팝업 글처럼)
   ========================================================================== */

/* 판 크기: nycta 모듈(DEC-002)을 그대로 쓰되, 좁은 화면에서는 6ft 판이 화면 폭에 꼭 맞을 때까지만 줄인다.
   .module-scope(nycta DEC-016 메모)라서 글자·띠·원판 토큰도 이 모듈로 다시 계산된다 */
.page{--module:clamp(40px, (100vw - 2 * var(--doc-space-3)) / 6, 97.75px);
  width:calc(var(--module) * 6);max-width:calc(100% - 2 * var(--doc-space-3));margin:0 auto;padding:var(--doc-space-3) 0 var(--doc-space-5)}

/* [eee] 이 페이지의 모듈 판(글 머리·끝 표지)은 nycta .plate 그대로: 흰 바탕 위에 검은 띠(1⅝in), 검은 글자, 라이트 0.5px 검정·다크 0.5px 흰 테두리
   (nycta DEC-041/042, 2026-11-22 사용자 요청: 전체적으로 검은 머리에 흰 바탕. 그전에는 바탕과 반대 색 반전 판이었다) */
.page .plate h1,.page .plate .t-direction{font-weight:inherit}

/* 글 머리: 표준 길이 모듈 판 하나(.plate > .m, GRID-012/014). 제목은 방향 크기 Grid 2(.t-direction), 길이·높이는 post.html 스크립트 */
.head h1{text-wrap:balance}
/* [eee] 글 머리 판만 예전 반전 판 그대로(2026-11-22 사용자 요청: 다른 판은 흰 바탕·검은 띠로 바꾸되 원판·제목 상자는 이전 버전으로).
   검은 판·흰 글자(dark 굵기), 띠·선 없음(2026-11-21 사용자 요청: 위에 디바이더 없이), 두 테마 같음. 다크 모드 테두리는 nycta .plate의 0.5px 흰색 */
.page .plate.head{border-top:0;background:var(--fg);color:var(--bg);--font-weight:var(--font-weight-dark);font-weight:var(--font-weight)}
:root:not([data-theme=dark]) .page .plate.head{box-shadow:none}
/* [eee] 원판 칸(2026-11-21 사용자 요청: 매뉴얼 열차 표지 SIGN-016처럼 흰 바탕에 원판, 그 옆에 제목 두 줄). 1 ft 칸 전체를 판과 반대 색(흰색)으로
   칠하고 그 가운데에 원판을 둔다. 위·왼쪽·아래에 판 색 ⅛in 선(SIGN-023)을 ㄷ자로 둘러 페이지와 이어지지 않게 한다. 제목 칸은 보통 칸처럼 위·왼쪽 ½in(GRID-003) */
.head .hcell{flex:0 0 auto;width:var(--module);padding:0;background:var(--bg);display:grid;place-items:center;
  box-shadow:inset var(--stroke-divider) 0 0 0 var(--fg),inset 0 var(--stroke-divider) 0 0 var(--fg),inset 0 calc(-1 * var(--stroke-divider)) 0 0 var(--fg)}   /* 위·왼쪽 마진 없이 판 모서리에 붙은 1 ft 정사각형 */
/* [eee] 다크 모드에서는 ㄷ자 선을 흰색으로 바꾼다(2026-11-23 준하님 요청: "반전하면 흰색 테두리가 하나 더 쳐지는데 그렇게 말고 테두리 색을 반전").
   검정 선이 그대로면 nycta .plate의 0.5px 흰 테두리(DEC-041) 안쪽에 검은 줄이 한 겹 더 보였다. 흰 선은 흰 칸과 하나가 되어 바깥 흰 테두리 한 줄만 남는다 */
:root[data-theme=dark] .head .hcell{box-shadow:inset var(--stroke-divider) 0 0 0 var(--c-white),inset 0 var(--stroke-divider) 0 0 var(--c-white),inset 0 calc(-1 * var(--stroke-divider)) 0 0 var(--c-white)}
.head .hcell .disc{--d:calc(var(--in) * 10.5)}   /* 사용자 요청: 원판 조금 작게(DISC-001 11in → 10½in), 칸은 그대로 */
/* 글 속 원판 {G}·{G:orange}(build.py가 .disc--inline으로 바꿈, DEC-034). 색을 정해 준 원판(data-color)은 다크 모드 테두리도 그 색으로 정한다:
   검정 원판만 흰 테두리(nycta의 1970 검정 노선 규칙과 같은 값). {B:orange}처럼 검정 노선을 다른 색으로 바꾸면 테두리를 뺀다 */
:root[data-theme=dark] .disc[data-color]{box-shadow:none}
:root[data-theme=dark] .disc[data-color=black]{box-shadow:0 0 0 1px var(--c-white)}
/* 판 안은 다크 모드에서도 흰 바탕이라 검정 원판에 흰 테두리가 필요 없다 */
:root[data-theme=dark] .page .plate .disc{box-shadow:none}
.page .plate.head h1 .disc[data-color=black]{box-shadow:0 0 0 1px var(--bg)}   /* 검은 글 머리 판 안의 검정 원판: 흰 테두리 */

/* 본문: 데스크톱에서는 5ft 폭(긴 글 한 줄 30자 안팎), 폰에서는 6ft 판 폭 전체 */
.body{max-width:calc(var(--module) * 5);margin-top:var(--doc-space-4);line-height:1.5}   /* [eee] 행간 1.5(2026-11-21 사용자 요청: 한글 긴 글 1.7(DEC-033)이 넓어 보임 → nycta 긴 글 기본값 DEC-020) */
@media (max-width:640px){.body{max-width:none}}
.body>:last-child{margin-bottom:0}
.body ul,.body ol{margin:0 0 var(--doc-space-3);padding-inline-start:var(--doc-space-3)}
.body li+li{margin-top:var(--doc-space-1)}
.body strong,.body em{font-weight:inherit;font-style:normal}    /* TYPE-002, DONT-001: 한 굵기, 기울임 없음 */
.body code{font:inherit}                                         /* DONT-001: 다른 서체 없음 */
/* nycta에 없는 글 요소: 기존 선(⅛in, SIGN-023)과 간격 토큰만 쓴다 */
.body blockquote{margin:0 0 var(--doc-space-3);padding-inline-start:var(--doc-space-3);border-inline-start:var(--doc-rule) solid currentColor}
.body blockquote>:last-child{margin-bottom:0}
.body hr{border:0;border-top:var(--doc-rule) solid currentColor;margin:var(--doc-space-4) 0}
.body figure{margin:0 0 var(--doc-space-3)}
.body img{display:block;max-width:100%;height:auto}
.body figcaption{line-height:var(--lh-g1);margin-top:var(--doc-space-1)}

/* 끝 줄: 모듈 판 하나에 [← (G) 이전 글 제목] [(G) 다음 글 제목 →] [돌아가기 ↙] (2026-11-21 사용자 요청: 팝업 글처럼, 그린 대로).
   - 한 문단처럼 흐른다(사용자 취향, CLAUDE.md): 항목 단위로 끊지도, 말줄임하지도 않고, 줄이 차면 글이 자연스럽게 다음 줄로
     이어지며 판은 1ft 단위로 길어진다. 줄 간격은 Grid 1(GRID-007, 노선도 팝업과 같음)
   - 다닥다닥: 제목 안의 띄어쓰기 말고는 빈칸·간격이 없다(2026-11-21 사용자 요청). 화살표·원판·제목·다음 항목이 붙는다(노선도 팝업의 역이름ⓡ요약→닫기처럼)
   - 화살표·원판은 줄 안 크기(DEC-034, 대문자 높이 가운데)
   - 글자 = 모듈의 4/15, 1rem 바닥: 폰 390px(모듈 약 60px)에서 1rem(문서 본문 크기, DEC-005) 글자가 판에 보이는 비율을
     데스크톱에도 그대로(사용자 요청: 웹에서도 모바일만큼 큼지막하게). 데스크톱 16 → 26px
   - 밑줄 없음(사용자 요청). 길이·높이는 post.html 스크립트 */
.seqbar{margin-top:var(--doc-space-5)}
.seqbar .m{padding-inline-end:0}   /* [eee] 오른쪽 여백 없음(2026-11-21 사용자 요청): 판 폭은 그대로, 글은 판 오른쪽 끝까지 흐른다. 위·왼쪽 ½in은 GRID-003/004 그대로 */
.seqbar ul{list-style:none;margin-inline:0;padding:0;font-size:max(1rem, calc(var(--module) * 4 / 15));--lh:var(--lh-g1);line-height:var(--lh-g1)}
.seqbar li{display:inline;font-size:inherit;margin:0}
.seqbar a{color:inherit;text-decoration:none}
.seqbar .nw{white-space:nowrap}
.seqbar .arrow{--d:calc(1em * var(--cap-em) * 1.6875 / 1.375);vertical-align:calc(-1 * (var(--d) - 1em * var(--cap-em)) / 2)}
/* [eee] ↙(돌아가기): 매뉴얼의 6방향(ARROW-001/006)에 없는 방향, 사용자 지정. 같은 화살표를 135° 돌린다 */
.arrow[data-dir=down-left]{transform:rotate(135deg)}

/* [eee] 인쇄 질감(nycta DEC-038): 노선도에서 켠 ⁘를 따른다(post.html). nycta는 판·원판에만 잉크 번짐을 걸지만 이 페이지는 본문까지 모든 요소에 건다
   (2026-11-22 사용자 요청). 판은 .page 필터 안에 들어가므로 두 번 걸리지 않게 판·원판 자체 필터는 뺀다 */
:root[data-print] .page{filter:var(--print-filter)}
:root[data-print] .page :is(.plate,.disc){filter:none}
