/* NYCTA design system — vendor/nycta/nycta.css §0–1 + disc glyph masks + §14 print layer (commit: b2b19db 2026-11-24 Vertical line strip component (.line-strip, DEC-045)) */
/* -------------------------------------------------------------------------
   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;
}

/* -------------------------------------------------------------------------
   1. 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) --- */
  --module: clamp(40px, 10vw, 97.75px);                 /* DEC-001, DEC-002 | - | [변환] 1rem × 0.700 × 12 / 1.375 = 97.75px max */

  /* 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 */

  /* --- colors (DEC-003: scan, paper-corrected) --- */
  --c-white:      #FFFFFF;                              /* COLOR-009 | pdf p.65 | [확정] */
  --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-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 | [확정] */
  --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(12px, 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 */
}

/* 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 */

/* -------------------------------------------------------------------------
   14. Component — vertical line strip (DEC-045)
   Markup: <div class="line-strip [line-strip--light]" style="--line: var(--c-yellow)">
             <button type="button" class="line-strip__head" aria-expanded="true">
               <span class="disc line-strip__disc" data-line="R"><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 | [설계결정] */
  --ls-in: max(calc(12px * var(--cap-em) / 1.375), calc(var(--module) / 12)); /* DEC-045, DEC-016 | - | [변환] scales with --module, 12px floor */
  --ls-cap: calc(var(--ls-in) * 1.375);                 /* TYPE-007 | pdf p.11 | [변환] Information tier cap */
  --ls-fs: calc(var(--ls-cap) / var(--cap-em));         /* TYPE-007, TYPE-008 | - | [변환] 1rem at standard module */
  --ls-lh: var(--lh-g1);                                /* GRID-007 | pdf p.11 | [변환] Grid 1 pitch */
  --ls-dot: calc(var(--ls-in) * 1.6875);                /* DEC-045, DEC-034, DEC-036, GRID-008 | pdf p.11 | [변환] cap × 1 11/16 ÷ 1 3/8 */
  --ls-strip: calc(var(--ls-dot) * 1.4);                /* DEC-045, GRID-021 | pdf p.82 | [변환] 1:5:1 → 2.3625in (20% colour margin each side) */
  --ls-gap: calc(var(--ls-in) * 0.5);                   /* DEC-045, GRID-009, DEC-036 | pdf p.11 | [변환] strip/disc → name ½in */
  --ls-pad: calc(var(--ls-in) * 0.5);                   /* GRID-003, GRID-004 | pdf p.9–11 | [변환] ½in plate margin */
  --ls-rule: max(1px, calc(var(--ls-in) * 0.125));      /* SIGN-023 | pdf p.88 | [변환] ⅛in rule */
  --ls-cut: calc(var(--ls-strip) * 0.11);               /* DEC-045 | - | [설계결정] fold horizontal cut thickness */
  --ls-slice: calc(var(--ls-strip) * 0.21);             /* DEC-045 | - | [설계결정] fold colour slice height */
  --ls-row-pad: calc((var(--ls-strip) - var(--ls-fs) * var(--ls-lh)) / 2); /* DEC-045 | - | [변환] centres line-1 cap on the dot (½ strip from row top) */
  --ls-bg: var(--c-black);                              /* DEC-045 | - | [설계결정] black plate (photo default) */
  --ls-fg: var(--c-white);                              /* DEC-045 | - | [설계결정] */
  --font-weight: var(--font-weight-dark);               /* DEC-045, DEC-019 | - | [설계결정] white type on black */
  color: var(--ls-fg);
  font-size: var(--ls-fs);
  font-weight: var(--font-weight);
  line-height: var(--ls-lh);
  background:
    linear-gradient(var(--c-white), var(--c-white)) 0 calc(var(--ls-in) * 1.5) / 100% var(--ls-rule) no-repeat, /* DEC-045, DEC-040 | - | [설계결정] 1½in + ⅛in white rule */
    var(--ls-bg);
  padding: calc(var(--ls-in) * 2.125) var(--ls-pad) var(--ls-pad); /* DEC-040, GRID-003 | - | [설계결정] 1½ + ⅛ + ½in top; ½in sides & bottom */
  width: min(100%, calc(var(--ls-in) * 48));            /* DEC-045 | - | [설계결정] standard 4 ft width, fits narrower viewports */
  box-shadow: 0 0 0 0.5px var(--c-black);               /* DEC-041 | - | [설계결정] 0.5px black ring in light mode */
}
.line-strip--light {                                    /* DEC-045, DEC-042 | - | [설계결정] white plate: 1⅝in black top band, white field, black type */
  --ls-bg: var(--c-white);
  --ls-fg: var(--c-black);
  --font-weight: var(--font-weight-light);
  background:
    linear-gradient(var(--c-black), var(--c-black)) 0 0 / 100% calc(var(--ls-in) * 1.625) no-repeat, /* DEC-042, GRID-013 | pdf p.64 | [변환] 1⅝in black band */
    var(--ls-bg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .line-strip { box-shadow: 0 0 0 0.5px var(--c-white); } /* DEC-041 | - | [설계결정] */
}
:root[data-theme="dark"] .line-strip { box-shadow: 0 0 0 0.5px var(--c-white); } /* DEC-041 | - | [설계결정] */

.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(--ls-strip) minmax(0, 1fr);
  column-gap: var(--ls-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(--ls-strip); }             /* DEC-045 | - | [설계결정] head disc D = strip width, aligned to strip axis */
.line-strip__title { min-width: 0; font-size: var(--ls-fs); line-height: var(--ls-lh); }

.line-strip__stops { list-style: none; margin: calc(var(--ls-in) * 0.5) 0 0; padding: 0; } /* DEC-045 | - | [설계결정] */
.line-strip__stop {                                     /* DEC-045 | - | [설계결정] strip column + station name */
  display: grid;
  grid-template-columns: var(--ls-strip) minmax(0, 1fr);
  column-gap: var(--ls-gap);
  align-items: start;
  position: relative;
  font-size: var(--ls-fs);
}
.line-strip__stop::before {                             /* DEC-045 | - | [설계결정] continuous vertical strip */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--ls-strip);
  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(--ls-strip); } /* 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(--ls-strip) - var(--ls-dot)) / 2);
  top: calc((var(--ls-strip) - var(--ls-dot)) / 2);
  width: var(--ls-dot);
  height: var(--ls-dot);
  border-radius: 50%;
  background: var(--c-black);
  z-index: 1;
}
.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(--ls-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"]))::after {
  background: var(--c-white);                           /* DEC-045 | - | [설계결정] white centre + black ring */
  border: calc(var(--ls-dot) * 0.22) solid var(--c-black);
}
.line-strip__stop:is(.is-current, [aria-current]:not([aria-current="false"])) > .line-strip__name {
  background: var(--ls-fg);                             /* DEC-045, DEC-007 | - | [설계결정] reversed to the plate right edge */
  color: var(--ls-bg);
  font-weight: var(--font-weight-light);                /* DEC-019 | - | [설계결정] black on white on black plate */
  margin-inline: calc(-1 * var(--ls-gap)) calc(-1 * var(--ls-pad));
  padding-inline: var(--ls-gap) var(--ls-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(--ls-strip) minmax(0, 1fr);
  column-gap: var(--ls-gap);
  align-items: center;
  min-height: calc(var(--ls-strip) * 2.55);             /* DEC-045 | - | [설계결정] 2.55 × strip */
  position: relative;
  font-size: var(--ls-fs);
}
.line-strip__fold::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--ls-strip);
  background: linear-gradient(
    to bottom,
    var(--line, var(--c-black)) 0,
    var(--line, var(--c-black)) calc(50% - var(--ls-slice) * 1.5 - var(--ls-cut) * 2),
    var(--ls-bg)                calc(50% - var(--ls-slice) * 1.5 - var(--ls-cut) * 2),
    var(--ls-bg)                calc(50% - var(--ls-slice) * 1.5 - var(--ls-cut)),
    var(--line, var(--c-black)) calc(50% - var(--ls-slice) * 1.5 - var(--ls-cut)),
    var(--line, var(--c-black)) calc(50% - var(--ls-slice) * 0.5 - var(--ls-cut)),
    var(--ls-bg)                calc(50% - var(--ls-slice) * 0.5 - var(--ls-cut)),
    var(--ls-bg)                calc(50% - var(--ls-slice) * 0.5),
    var(--line, var(--c-black)) calc(50% - var(--ls-slice) * 0.5),
    var(--line, var(--c-black)) calc(50% + var(--ls-slice) * 0.5),
    var(--ls-bg)                calc(50% + var(--ls-slice) * 0.5),
    var(--ls-bg)                calc(50% + var(--ls-slice) * 0.5 + var(--ls-cut)),
    var(--line, var(--c-black)) calc(50% + var(--ls-slice) * 0.5 + var(--ls-cut)),
    var(--line, var(--c-black)) calc(50% + var(--ls-slice) * 1.5 + var(--ls-cut)),
    var(--ls-bg)                calc(50% + var(--ls-slice) * 1.5 + var(--ls-cut)),
    var(--ls-bg)                calc(50% + var(--ls-slice) * 1.5 + var(--ls-cut) * 2),
    var(--line, var(--c-black)) calc(50% + var(--ls-slice) * 1.5 + var(--ls-cut) * 2),
    var(--line, var(--c-black)) 100%
  );
}
.line-strip__fold:not(:last-child)::before { bottom: -1px; }
.line-strip__count {                                    /* DEC-045, TYPE-008 | - | [설계결정] 1rem Information tier, --c-grey */
  grid-column: 2;
  min-width: 0;
  font-size: var(--ls-fs);
  line-height: var(--ls-lh);
  color: var(--c-grey);
}

/* Black discs on dark vs light surfaces inside .line-strip — DEC-045, DEC-019, DEC-041 | - | [설계결정] */
.line-strip:not(.line-strip--light) .disc:is([data-line="5"],[data-line="B"],[data-line="LL"],[data-line="QJ"]) {
  box-shadow: 0 0 0 0.5px var(--c-white);               /* black disc on black plate needs a white ring */
}
.line-strip:not(.line-strip--light) .line-strip__stop:is(.is-current, [aria-current]:not([aria-current="false"])) .disc:is([data-line="5"],[data-line="B"],[data-line="LL"],[data-line="QJ"]) {
  box-shadow: none;                                     /* white reversed row needs no white ring */
}
.line-strip--light .disc:is([data-line="5"],[data-line="B"],[data-line="LL"],[data-line="QJ"]) {
  box-shadow: none;                                     /* white plate needs no white ring, even in dark mode */
}
.line-strip--light .line-strip__stop:is(.is-current, [aria-current]:not([aria-current="false"])) .disc:is([data-line="5"],[data-line="B"],[data-line="LL"],[data-line="QJ"]) {
  box-shadow: 0 0 0 0.5px var(--c-white);               /* black reversed row needs a white ring */
}

/* -------------------------------------------------------------------------
   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: 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-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: #FFFFFF;
    --print-grain-now: var(--print-grain-dark);
    --print-grain-tex: 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-blend: screen;
  }
}
:root[data-print][data-theme="dark"] {
  --c-white: #FFFFFF;
  --print-grain-now: var(--print-grain-dark);
  --print-grain-tex: 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-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: 2147483646;
  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: #FFFFFF; --print-filter: none; }  /* DEC-038 | - | [설계결정] whole layer off */
  :root[data-print] body::after { display: none; }
}
/* ==========================================================================
   EEE map UI on the NYCTA design system (nycta-gsm). Tokens above come from vendor/nycta/nycta.css §0–1
   (build.py pastes them in); this block only maps them onto the map. Rule IDs refer to the nycta-gsm ledger.
   - Type: one weight (TYPE-002), sentence case (DONT-005), flush left, no faux bold (SIGN-002).
     Type = --font-sign: Albert Sans NYCTA + NYCTA Hangul (DEC-032), or the local Helvetica preview + its Hangul twin.
   - Korean text (:lang(ko), the whole page) follows DEC-033; English copy is marked lang="en".
   - Exact rectangles (DEC-009); the only circles are discs and stations.
   - UI chrome = plates (nycta DEC-042, 2026-11-22): white field under a black 1⅝in band, black type, in both themes.
   ========================================================================== */
  :root{
    --font:var(--font-sign);                       /* DEC-017, DEC-032 (preview/helvetica.css overrides --font-sign) */
    --edge:20px;                                   /* [eee] distance of the UI from the screen edge */
    /* [eee] iPhone (2026-11-21 사용자 보고: 읽기 판 위 띠에서 노선이 위에서 잘려 보임): the page covers the whole screen (viewport-fit=cover),
       so the map runs on under the status bar; the UI keeps clear of it by the safe-area insets (0 elsewhere) */
    --sa-t:env(safe-area-inset-top, 0px);--sa-r:env(safe-area-inset-right, 0px);--sa-b:env(safe-area-inset-bottom, 0px);--sa-l:env(safe-area-inset-left, 0px);
    --ui-btn:40px;                                 /* [eee] tool / zoom button = square */
    --rp-band:calc(var(--doc-in) * 1.5);           /* DEC-040 | 1½in field above the rule (+ ⅛in rule = the 1⅝in band, GRID-013) */
    --rp-gap:calc(var(--doc-in) * .5);             /* DEC-031 | ½in from the rule to the first cap line */
    --rp-rule:max(1px, calc(var(--doc-in) * .125));/* DEC-031, SIGN-023 | ⅛in rule */
    --rp-top:calc(var(--rp-band) + var(--rp-rule) + var(--rp-gap)); /* DEC-031, DEC-040 | 1½ + ⅛ + ½in to the first cap line */
    --rp-side:calc(var(--doc-in) * .5);            /* GRID-003 | ½in side margin */
    --ft:calc(var(--doc-in) * 12);                 /* GRID-002 | 1 ft module = 12in (≈ 100px) */
    /* [eee 설계결정] Hangul rises above the cap line and drops below the baseline, so Grid 1 (pitch 1⅞in, lh .95)
       makes Korean lines touch. Korean copy: lh 1.4, and block gap = Grid 2 gap 1⅜in instead of ½in. */
    --lh-ko:1.4;
    --gap-ko:calc(var(--doc-in) * 1.375);          /* GRID-006 gap */
    color-scheme:light;
  }
  /* ◐ dark = white↔black swap; disc glyph colours stay (DEC-019) */
  /* English version (the 한/En button sets <html lang="en">; DEC-033 rules switch off with :lang(ko)): Latin lines keep
     Grid 1, so the Hangul line height falls back to it. [eee] The block gap stays 1⅜in in both languages: at ½in the
     popup's transfer row runs into the title's underline. */
  :root:lang(en){--lh-ko:var(--lh-g1)}
  :root[data-theme=dark]{--fg:var(--c-white);--bg:var(--c-black);--font-weight:var(--font-weight-dark);color-scheme:dark}

  *,*::before,*::after{box-sizing:border-box;margin:0;padding:0;border-radius:0}   /* DEC-009 */
  html,body{height:100%;overflow:hidden;background:var(--bg);color:var(--fg);font-family:var(--font);font-weight:var(--font-weight);
    font-size:100%;line-height:var(--lh-g1);font-kerning:normal;font-synthesis:none;text-transform:none;-webkit-font-smoothing:antialiased}
  button{all:unset;cursor:var(--cur-ui,pointer);box-sizing:border-box;font:inherit;color:inherit}
  /* DEC-033 Korean text: never break inside a word, Hangul word gap, first-glyph pull. lang="en" keeps the Latin values (DEC-018/025) */
  *{--lsb-pull:var(--lsb-comp)}
  :lang(ko){word-break:keep-all;line-break:strict;word-spacing:var(--ws-ko);--lsb-pull:var(--lsb-comp-ko)}
  :lang(en){word-spacing:var(--ws)}
  :focus:not(:focus-visible){outline:none}                                   /* DEC-008 */
  :focus-visible{outline:1px solid currentColor;outline-offset:2px}          /* DEC-008 minimal */
  .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

  /* ---- map ---- */
  #map{position:fixed;inset:0;width:100%;height:100%;cursor:var(--cur-map,grab);touch-action:none;user-select:none}
  #map.dragging{cursor:var(--cur-pan,grabbing)}
  /* [eee] trains live on their own layer above the map (2026-11-19): they never stop, and inside #map they made the
     DEC-038 ink-edge filter run every frame. What #map draws above the trains (stations, names) is repeated here,
     clipped to the trains (#trainclip), so the order on screen stays lines → trains → stations. */
  #mapfx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}
  .label{font-size:var(--label-size,13px);font-weight:var(--font-weight);fill:var(--fg);pointer-events:none}
  .hide-labels .label:not(.lm){display:none}
  .lm{visibility:hidden}                         /* the name-width ruler (labelWidth) */
  /* DEC-036: butt ends (the run-on carries the strand past the end station), page-colour casing cuts crossings */
  .line-path,.line-case{fill:none;stroke-linecap:butt;stroke-linejoin:round;transition:opacity .2s}
  .line-case{stroke:var(--bg)}
  .station{cursor:var(--cur-station,grab)}
  .station:focus{outline:none}
  .station:focus-visible .dot{outline:1px solid var(--fg);outline-offset:4px}
  .station .hit{fill:transparent}
  .dot{fill:var(--c-black)}                                      /* DEC-036 station = plain black circle, no letter; no dark-mode ring (it always sits on a line) */
  .xdot{fill:var(--bg);stroke:var(--fg)}  /* [eee] layout-made interchange, kept until the transfer decision */
  .train{fill:var(--bg)}
  :root[data-print] .train{filter:var(--print-filter)}   /* [eee] each train is inked on its own (a small box), not the whole #mapfx layer: that re-rastered the screen every frame */
  .dim{opacity:.18}
  /* [eee] next stop under construction (2026-11-20): dashed strand past the newest station, an open dashed station */
  .next-path{stroke-linecap:butt}
  .station .gdot{fill:var(--bg);stroke:var(--fg);stroke-width:2;stroke-dasharray:3 2.4}
  .station.ghost{cursor:var(--cur-ui,pointer)}
  .station .dot{transition:transform .15s;transform-box:fill-box;transform-origin:center}
  .station:hover .dot,.station.active .dot{transform:scale(var(--dot-hover,1.7))}
  .station.snap .dot{transform:scale(2.2)}
  .station.snap .xdot{transform:scale(1.4)}
  .dragging-station,.dragging-station .station{cursor:var(--cur-hold,grabbing)}
  #panel a{cursor:var(--cur-ui,pointer)}
  #gridlayer{display:none;pointer-events:none} svg.show-grid #gridlayer{display:inline}
  #gridpat .gl{fill:none;stroke:var(--fg);stroke-opacity:.09;stroke-width:1}
  #gridpat .gd{fill:var(--fg);fill-opacity:.28}
  ::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
  @property --here{syntax:'<length>';inherits:true;initial-value:16px}   /* [eee] reading plate: see #reader */
  /* [eee] ◐ (2026-11-19): during the circle the page is a still picture of the old theme. So that it doesn't look frozen,
     the trains layer is its own live layer above the circle (only its new state, nothing to cross-fade).
     (Chrome sends every pointer event to <html> while the transition runs; pointer-events:none on ::view-transition
     doesn't change that, so the 0.7s stays non-interactive.) */
  #mapfx{view-transition-name:eee-fx}
  ::view-transition-group(eee-fx),::view-transition-new(eee-fx){animation:none}
  ::view-transition-old(eee-fx){display:none}

  /* ---- disc (line badge): DISC-001/004 — glyph cap = 0.408 D; yellow takes black type, every other colour white (DEC-004) ---- */
  .disc{--d:28px;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--d);height:var(--d);border-radius:50%;
    background:var(--line,var(--c-black));color:var(--on,var(--c-white));font-size:calc(var(--d) * var(--disc-glyph) / var(--cap-em));
    line-height:1;text-align:center;white-space:nowrap;vertical-align:top;position:relative}
  /* glyph = baked outline (DEC-035): circle = background, glyph = ::after in the same box painted currentColor through
     --disc-mask (from the nycta block, picked by data-line), so circle and glyph never drift apart at any zoom.
     The text stays for screen readers, transparent; labels without an outline fall back to it. */
  .disc>span{display:block;color:var(--disc-text,inherit)}
  .disc::after{content:"";position:absolute;inset:0;background:currentColor;pointer-events:none;
    -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}
  /* inline disc beside 1rem copy (GRID-008, DEC-034): D = cap × 1 11/16 ÷ 1 3/8, no minimum size (DEC-021 20px floor retired).
     Centred on the parent cap height from geometry only; overhang (mb) never changes line spacing; text out of flow so the
     baseline is the margin edge. Same maths as nycta.css .disc--inline. */
  .disc--inline{--d:calc(1rem * var(--cap-em) * 1.6875 / 1.375);--disc-mb:.3;margin-block:calc(var(--d) * -1 * var(--disc-mb));
    vertical-align:calc(var(--d) * (1.375 / 1.6875 / 2 - .5 + var(--disc-mb)))}
  .disc--inline>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}

  /* ---- arrow: ARROW-005 path (symbol #nyarrow), ARROW-001 directions only ---- */
  .arrow{--d:calc(1em * var(--cap-em) * 1.6875 / 1.375);width:var(--d);height:var(--d);flex:0 0 auto;fill:currentColor;overflow:visible;
    vertical-align:calc(-1 * (var(--d) - 1em * var(--cap-em)) / 2)}   /* DEC-014 inline size, centred on the cap height */
  .arrow[data-dir=left]{transform:rotate(180deg)}

  /* ---- plate (nycta .plate / .popup, DEC-042, 2026-11-22 사용자 요청: 전체적으로 검은 머리에 흰 바탕): every UI box is a white field
     under a black band (1⅝in = 1½in + ⅛in, GRID-013/DEC-040), black type at the light weight. The band keeps the reverse plate's
     geometry (--rp-band + --rp-rule), so every height and margin below stays as it was; only the colours turned round.
     Light mode: 0.5px black ring so the white field keeps its edge on the white page (DEC-041) ---- */
  .rplate{--fg:var(--c-black);--bg:var(--c-white);--font-weight:var(--font-weight-light);color:var(--fg);font-weight:var(--font-weight);
    background:linear-gradient(var(--fg),var(--fg)) 0 0 / 100% calc(var(--rp-band) + var(--rp-rule)) no-repeat, var(--bg)}
  :is(.rplate:not(.reading),.rghost,#panel.reading #rhead,#panel.reading #rbox){box-shadow:0 0 0 .5px var(--c-black)}
  /* dark mode (nycta DEC-041): only the page inverts. The plates keep the light sign (white field, black band and type) and swap the
     ring for a 0.5px white one so the black band does not melt into the black page. The reading plate draws two plates of its own
     (#rhead, #rbox), so the ring goes on those, not on the #panel that holds them */
  :root[data-theme=dark] .rghost{--fg:var(--c-black);--bg:var(--c-white)}
  :root[data-theme=dark] :is(.rplate:not(.reading),.rghost,#panel.reading #rhead,#panel.reading #rbox){box-shadow:0 0 0 .5px var(--c-white)}
  :root[data-print] .rplate{filter:var(--print-filter)}                   /* nycta DEC-038 ink edge on eee's plates (nycta names them .plate/.popup) */
  /* [eee] the map's ink edge is its own filter, #eee-ink (2026-11-19, phones): the same displacement as nycta's #nycta-ink,
     but (1) its region is the screen in px, not a % of the box: WebKit sized nycta's by the map content, which zoomed in
     outgrew its filter limit and the whole map vanished; (2) its noise is a tile drawn once (inkNoise()), not feTurbulence
     every time: about 3× cheaper in WebKit. On in dark mode too (nycta DEC-038 since 9815439); off where nycta's layer is off
     (high contrast, forced colours, print). */
  :root[data-print] #map{filter:url(#eee-ink)}
  @media (prefers-contrast:more),(forced-colors:active),print{:root[data-print] #map{filter:none}}

  /* [eee] logo, legend and popup are standard module plates (GRID-012, SIGN-012): fitPlates() picks the shortest of
     1/2/4/6/8 ft that leaves ≥ 1in beside the copy (DEC-030 room), 1 ft high (whole feet if the copy needs more).
     Copy hangs from the top-left margin (GRID-003/004); the extra room stays empty at the bottom right. DESIGN.plate */

  /* logo: directional plate, Grid 2 (GRID-006, TYPE-006): two lines of 4¼in caps, pitch 5⅝in, hung from the top-left margin.
     [eee] the reverse-plate band (1½ + ⅛in = 1⅝in, DEC-040) sits above the 12in field, like .plate: ½ + 4¼ + 1⅜ + 4¼ + 1in (descender guide, GRID-011) = 11⅜in */
  #logo{position:fixed;top:calc(var(--edge) + var(--sa-t));left:calc(var(--edge) + var(--sa-l));z-index:5;
    --l-cap:4.25;--l-lh:var(--lh-g2);font-size:calc(var(--doc-in) * var(--l-cap) / var(--cap-em));line-height:var(--l-lh);
    padding:var(--rp-top) var(--rp-side) calc(var(--doc-in) * var(--l-cap) * .235) var(--rp-side)}
  #logo p{--l-trim:calc((var(--trim-k) - var(--l-lh) / 2) * 1em);margin:var(--l-trim) 0 var(--l-trim) calc(-1 * var(--lsb-pull));white-space:nowrap}   /* DEC-025 */
  @supports (text-box: trim-both cap alphabetic){#logo p{--l-trim:0px;text-box:trim-both cap alphabetic}}

  /* legend: [disc] [series], hierarchy by order (no weekday since 2026-11-21, 사용자 요청) */
  /* [eee] informational plate (TYPE-007): 1⅜in caps, discs inline (DEC-034); no rules between rows. Bottom ½in below the descender guide, like DEC-031.
     [eee 설계결정 2026-11-21] six rows (G added) at Grid 1's 1⅞in pitch came to 12.7in, so the plate grew to 2 ft. The legend's pitch is
     1.7in instead (gap ½ → .325in): ½ (below the band, DEC-040) + 1⅜ + 5 × 1.7 + .82 (descender + ½) = 11.2in, one 1 ft module (user approved) */
  /* [eee] bigger legend (2026-11-23 사용자 요청: 동업자 피드백 "UI 구조를 파악하기 어렵다", 범례 모듈이 더 커져야 함): like the desktop
     popup, the whole sign scales by --l-scale (type, pitch, margins, band, rule, inline discs, 1 ft module), so it stays the
     same Grid 1 information plate, just larger. fitPlate() measures --ft inside the legend, so the plate is still a standard length. */
  #legend{position:fixed;left:calc(var(--edge) + var(--sa-l));bottom:calc(var(--edge) + var(--sa-b));z-index:5;display:block;
    --l-scale:1.5;--l-in:calc(var(--doc-in) * var(--l-scale));font-size:calc(1rem * var(--l-scale));
    --rp-band:calc(var(--l-in) * 1.5);--rp-gap:calc(var(--l-in) * .5);--rp-rule:max(1px, calc(var(--l-in) * .125));--rp-top:calc(var(--rp-band) + var(--rp-rule) + var(--rp-gap));
    --rp-side:calc(var(--l-in) * .5);--ft:calc(var(--l-in) * 12);
    --l-lh:calc(1.7 / 1.375 * var(--cap-em));line-height:var(--l-lh);
    --l-trim:calc((var(--trim-k) - var(--l-lh) / 2) * 1em);
    padding:calc(var(--rp-top) + var(--l-trim)) var(--rp-side) calc(var(--l-in) * (.5 + .235 * 1.375) + var(--l-trim))}
  #legend .disc--inline{--d:calc(1rem * var(--l-scale) * var(--cap-em) * 1.6875 / 1.375)}   /* DEC-034 at the legend's size */
  @supports (text-box: trim-both cap alphabetic){#legend{--l-trim:0px}   /* trim on the rows: a button trims its own lines */
    #legend button:first-child{text-box:trim-start cap alphabetic} #legend button:last-child{text-box:trim-end cap alphabetic}}
  #legend button{display:block;position:relative;white-space:nowrap;transition:opacity .2s;margin-inline-start:calc(-1 * var(--lsb-pull))}
  /* (position: every row its own layer, so a dimmed row (opacity → stacking context) does not jump above its neighbours:
     the discs and Korean glyphs overflow the rows, and in that overlap the hover flipped between two rows every frame) */
  #legend .bs{margin-inline-end:calc(var(--l-in) * .5)}                                  /* GRID-009 disc → text ½in */
  #legend .bs .disc+.disc{margin-inline-start:calc(2px * var(--l-scale))}

  /* tools & zoom: stacks of square buttons, ⅛in rules between, pressed / hover = reversed (DEC-007 active state) */
  /* [test] tools box (map tilt): shown everywhere, the public site too (2026-11-22 사용자 요청: 아직 공개 전이라 테스트판과 합침) */
  /* [test] the test box folds to one tool-sized button at the top right (#tunebtn, '보기 설정'): B1 on phones, then on every
     screen (2026-11-23 진단 보고서 2단계: 실험용 도구는 일반 독자에게 개발용 설정처럼 보임). A click opens it as a column,
     touching the map folds it again (foldTune) */
  #snaptune{position:fixed;top:calc(var(--edge) + var(--sa-t));right:calc(var(--edge) + var(--sa-r));z-index:9;display:flex;flex-direction:column;align-items:flex-end;padding:var(--rp-top) 0 0;font-size:max(12px,.75rem)}
  #snaptune label{display:flex;align-items:center;gap:8px}
  #tunebtn{display:flex;width:var(--ui-btn);height:var(--ui-btn);align-items:center;justify-content:center}
  #tunebtn:hover,#snaptune.open #tunebtn{background:var(--fg);color:var(--bg)}
  #tunebody{display:none;flex-direction:column;align-items:flex-start;gap:10px;padding:10px 12px}
  #snaptune.open #tunebody{display:flex}
  #snaptune[hidden]{display:none}
  #snaptune select{font:inherit;color:inherit;background:transparent;border:0;border-bottom:var(--rp-rule) solid currentColor;padding:0 2px}
  #snaptune option{color:#000}
  #snaptune input[type=checkbox]{accent-color:currentColor;margin:0}
  #openingbtn{all:unset;cursor:pointer;border-bottom:var(--rp-rule) solid currentColor}
  #openingbtn:focus-visible{outline:2px solid currentColor;outline-offset:2px}
  #tools,#zoom{position:fixed;right:calc(var(--edge) + var(--sa-r));z-index:9;display:flex;flex-direction:column;padding-top:var(--rp-top)}
  #tools{bottom:calc(var(--edge) + var(--sa-b) + 3 * var(--ui-btn) + var(--rp-top) + 16px)}
  #zoom{bottom:calc(var(--edge) + var(--sa-b))}
  #tools button,#zoom button{width:var(--ui-btn);height:var(--ui-btn);display:flex;align-items:center;justify-content:center;font-size:1.125rem;line-height:1}
  #zoom #zfit,#tools #langbtn{font-size:max(12px, .75rem)}
  #tools button+button,#zoom button+button{border-top:var(--rp-rule) solid currentColor}
  #tools button:hover,#zoom button:hover,#tools button[aria-pressed=true],#tools button[aria-expanded=true],#tools button.on{background:var(--fg);color:var(--bg)}

  /* ---- station popup: DEC-031 information popup (Grid 1, lead disc, close as text link, no animation) ---- */
  /* [eee] desktop popup is a bigger plate (2026-11-19 사용자 요청: 글자가 작다): the whole sign scales by --p-scale (type, margins,
     rule, disc, 1 ft module), so it stays a Grid 1 information plate, just larger. Phones keep 1 (DESIGN-free, CSS only). */
  #panel{--p-scale:1.5;--p-in:calc(var(--doc-in) * var(--p-scale));--p-fs:calc(1rem * var(--p-scale));
    --rp-band:calc(var(--p-in) * 1.5);--rp-gap:calc(var(--p-in) * .5);--rp-rule:max(1px, calc(var(--p-in) * .125));--rp-top:calc(var(--rp-band) + var(--rp-rule) + var(--rp-gap));
    --rp-side:calc(var(--p-in) * .5);--ft:calc(var(--p-in) * 12);position:fixed;top:0;left:0;z-index:10;opacity:0;pointer-events:none;
    width:max-content;max-width:min(calc(var(--doc-in) * 48), calc(100vw - 24px));          /* ≤ 4 ft at page scale */
    padding:var(--rp-top) var(--rp-side) calc(var(--p-in) * (.5 + .235 * 1.375));           /* bottom ½in below the descender guide */
    font-size:var(--p-fs);line-height:var(--lh-g1)}                                                /* [eee] Grid 1 pitch in Korean too, like the legend (2026-11-19) */
  #panel.open{opacity:1;pointer-events:auto}
  #panel .body{display:flex;align-items:flex-start;gap:calc(var(--p-in) * .5)}              /* GRID-009 disc → text ½in */
  #pb .disc{--d:calc(var(--p-fs) * (var(--cap-em) + var(--lh-g1)))}                               /* DEC-031 lead disc spans lines 1–2 (cap + one pitch) */
  #panel .text{flex:1 1 auto;min-width:0;max-width:calc(var(--doc-in) * 40)}               /* longest line; fitPopup() shrinks to it.
     [eee] the wrap width stays 40in at page scale while the plate grows (2026-11-19 사용자 요청: 커진 만큼 폭만 좁게) */
  #panel .text>*{--p-trim:calc((var(--trim-k) - var(--lh-g1) / 2) * 1em);margin:var(--p-trim) 0 var(--p-trim) calc(-1 * var(--lsb-pull))}   /* DEC-025, DEC-033 */
  #panel .text>*+*{margin-block-start:calc(var(--gap-ko) + var(--p-trim))}                  /* GRID-007 → [eee] Korean gap */
  @supports (text-box: trim-both cap alphabetic){#panel .text>*{--p-trim:0px;text-box:trim-both cap alphabetic}}
  /* [eee] one block of text (2026-11-19): 역이름ⓡ (the transfer station's name, 2026-11-19) at the start, the summary (→ 닫기 removed 2026-11-23) */
  #panel .disc--inline{--d:calc(var(--p-fs) * var(--cap-em) * 1.6875 / 1.375)}           /* DEC-034 at the popup's size */
  #pxfer .xbtn{white-space:nowrap}                                                         /* no extra space: disc → summary → arrow (2026-11-19) */
  #panel a,#panel button{color:inherit;text-decoration:underline;text-decoration-thickness:var(--rp-rule);text-underline-offset:.18em}  /* DEC-006 */
  #panel #psum{text-decoration:none}                                                       /* [eee] the summary is the Instagram link, no underline (2026-11-19) */
  .arrow[data-dir=down-left]{transform:rotate(135deg)}
  .arrow[data-dir=up-right]{transform:rotate(-45deg)}    /* ARROW-006 bear right: the Instagram mark */
  #psum .ig{white-space:nowrap}                          /* [eee] 'Instagram↗' after the summary, no space (2026-11-23 진단 보고서 2단계, 준하님: 글자로 붙여서) */   /* [eee] ↙ 돌아가기: not one of the manual's directions (ARROW-001/006), user's pick, same as posts/post.css */
  /* ---- [eee] line-list drawer (docs/line-list-plan.md 3–4단계, 2026-11-24): ☰ slides in a tall black plate (4 ft at 1.5× scale on desktop,
     almost full screen beside the tool column on phones) from behind the right tool column; opens at #lines so Back closes it.
     Inside: nycta vertical line strips (.line-strip, DEC-045) scaled by --module: var(--ft), one per line in legend order. ---- */
  #stlist{--q-scale:1.5;--q-in:calc(var(--doc-in) * var(--q-scale));font-size:calc(1rem * var(--q-scale));line-height:var(--lh-g1);
    --fg:var(--c-white);--bg:var(--c-black);--font-weight:var(--font-weight-dark);color:var(--fg);font-weight:var(--font-weight);color-scheme:dark;
    --rp-band:calc(var(--q-in) * 1.5);--rp-gap:calc(var(--q-in) * .5);--rp-rule:max(1px, calc(var(--q-in) * .125));--rp-top:calc(var(--rp-band) + var(--rp-rule) + var(--rp-gap));
    --rp-side:calc(var(--q-in) * .5);--ft:calc(var(--q-in) * 12);--module:var(--ft);
    background:linear-gradient(var(--fg),var(--fg)) 0 var(--rp-band) / 100% var(--rp-rule) no-repeat, var(--bg);
    box-shadow:none;
    position:fixed;z-index:8;top:calc(var(--edge) + var(--sa-t));bottom:calc(var(--edge) + var(--sa-b));
    right:calc(var(--edge) + var(--sa-r) + var(--ui-btn) + var(--q-in));
    width:min(calc(var(--ft) * 4), calc(100vw - 2 * var(--edge) - var(--sa-l) - var(--sa-r) - var(--ui-btn) - var(--q-in)));
    display:flex;flex-direction:column;visibility:hidden;pointer-events:none;will-change:transform;
    transform:translateX(calc(100% + var(--edge) + var(--sa-r) + var(--ui-btn) + var(--q-in) + 4px));
    transition:transform .22s cubic-bezier(.2,0,0,1), visibility 0s linear .22s}
  :root[data-theme=dark] #stlist{box-shadow:0 0 0 .5px var(--c-white)}
  #stlist.open{visibility:visible;pointer-events:auto;transform:translateX(0);transition:transform .22s cubic-bezier(.2,0,0,1), visibility 0s}
  #stlist.instant{transition:none}
  @media (prefers-reduced-motion:reduce){#stlist,#stlist.open{transition:none}}
  #stlist:focus{outline:none}
  #stlist [hidden]{display:none}   /* (button{all:unset} would undo the UA's [hidden]) */
  #stlhead{flex:0 0 auto;display:flex;align-items:baseline;gap:calc(var(--q-in) * .5);
    padding:calc(var(--rp-top) + (var(--trim-k) - var(--lh-g1) / 2) * 1em) var(--q-in) 0 var(--rp-side)}   /* first cap line ½in under the rule (DEC-025 trim) */
  #stlq{all:unset;box-sizing:border-box;flex:1 1 auto;min-width:0;font:inherit;color:inherit;line-height:var(--lh-g1);cursor:text;
    border-bottom:var(--rp-rule) solid currentColor;-webkit-appearance:none;appearance:none}
  #stlq::placeholder{color:currentColor;opacity:.45}
  #stlq::-webkit-search-cancel-button{-webkit-appearance:none}
  #stlq:focus-visible{outline:none;box-shadow:0 var(--rp-rule) currentColor}   /* focused: the rule doubles */
  #stlhead .pclose{white-space:nowrap}
  #stlclose{text-decoration:underline;text-decoration-thickness:var(--rp-rule);text-underline-offset:.18em}   /* DEC-006, like the popup's 닫기 */
  #stlscroll{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
    padding:calc(var(--q-in) * 1.375) var(--q-in) calc(var(--q-in) * 1.25) var(--rp-side);
    scrollbar-width:thin;scrollbar-color:color-mix(in srgb, currentColor 35%, transparent) transparent}
  #stlnone{margin-inline-start:calc(-1 * var(--lsb-pull))}
  /* DEC-045 .line-strip inside the black drawer plate: the drawer already supplies the plate chrome, so strip off each section's own
     plate background/ring/padding and let its --ls-pad match #stlscroll's right padding so reversed current rows reach the right edge */
  #stlbody .line-strip{background:none;box-shadow:none;padding:0;width:auto;--ls-pad:var(--q-in)}
  :root[data-theme=dark] #stlbody .line-strip{box-shadow:none}
  @media (prefers-color-scheme:dark){:root:not([data-theme=light]) #stlbody .line-strip{box-shadow:none}}
  #stlbody .line-strip+.line-strip{margin-block-start:calc(var(--q-in) * 1.625)}
  #stlbody .line-strip__disc{--d:var(--ls-strip)}   /* overrides src/map.html's later .disc{--d:28px} */
  #stlist .disc--inline{--d:var(--ls-dot)}          /* DEC-034 at the drawer's scale */
  #stlbody .line-strip__title,#stlbody .line-strip__name,#stlbody .line-strip__count{margin-inline-start:calc(-1 * var(--lsb-pull))}
  #stlbody .line-strip__stop:is(.is-current,[aria-current]:not([aria-current=false]))>.line-strip__name{margin-inline-start:calc(-1 * var(--ls-gap))}
  #stlbody .line-strip__name:focus-visible{text-decoration:underline;text-decoration-thickness:var(--rp-rule);text-underline-offset:.18em}
  @media (hover:hover){#stlbody .line-strip__head:hover .line-strip__title,#stlbody .line-strip__name:hover{
    text-decoration:underline;text-decoration-thickness:var(--rp-rule);text-underline-offset:.18em}}
  #stlbody .line-strip__head:focus-visible{outline:1px solid currentColor;outline-offset:2px}
  #stlbody .line-strip__xfers{margin-inline-start:calc(var(--ls-in) * .35)}
  #stlbody .line-strip__xfers .disc+.disc{margin-inline-start:calc(var(--ls-in) * .16)}
  /* print texture: none on the list (2026-11-23 준하님 보고: 폰 Safari에서 ☰를 누르면 렉). The ink edge over the plate or its blocks stalled WebKit
     (390px: opening ~0.3s, every keystroke up to 0.5s; filtering re-lays the blocks and the filter re-rasters), and the list is a passing
     tool, not a sign. While it is open on a touch screen the map under the sheet drops its ink edge too (html.listing, like map-moving) */
  :root[data-print] :is(#stlist,#stlist *){filter:none}   /* the plate and its strips/discs (nycta §15 inks .line-strip and .disc) */
  @media (hover:none) and (pointer:coarse){:root[data-print].listing #map{filter:none}}
  @media (max-width:640px){
    /* phones: a sheet from the left edge to the tool column (which stays usable), top to bottom; the logo, legend and test box step aside */
    #stlist{--q-scale:1;left:calc(var(--edge) + var(--sa-l));bottom:calc(var(--edge) + var(--sa-b));width:auto}
    html.listing #logo,html.listing #legend,html.listing #snaptune{visibility:hidden}
  }

  /* ---- [eee] reading plate (2026-11-21 사용자 요청: 웹 연재(G) 팝업의 요약을 누르면 페이지를 넘기지 않고 팝업 판이 읽기 판으로 커진다) ----
     Layout from lab/post-d.html ("팝업처럼"): the same reverse plate (DEC-031: 1½in field (DEC-040), ⅛in rule, ½in to the first cap), grown into a
     wide plate in the middle of the screen; the map stays behind it (a few strands and the current station show beside it, the
     camera puts the station just left of the title). Inside: title (G disc + title, direction size), the copy, and the end line
     [← (G) 이전 글] [(G) 다음 글 →] [돌아가기 ↙] flowing like one paragraph (사용자 취향: no ellipsis, no per-item breaks, no underline).
     The plate's own inch comes from the copy: copy = information size (cap 1⅜in), so the band, margins and rule scale with it.
     Width hugs the copy: ½in left + ~34em + DEC-030's ≥ 1in room on the right. It scrolls inside; the band stays on top. */
  #reader{display:none}
  /* opening / closing: the blank plate that grows from / shrinks back into the popup (plateMorph); no ink filter on it (a filter would
     repaint every frame) */
  .rghost{position:fixed;z-index:11;pointer-events:none;transform-origin:0 0;will-change:transform;--fg:var(--c-black);--bg:var(--c-white);background:var(--bg)}   /* plain white field (the band would scale with it) */
  :root[data-print] .rghost{filter:none}
  .rghost--head{background:var(--fg)}
  #panel.hold{opacity:0}   /* (not visibility: the reader takes the focus while the ghost grows) */
  #panel.reading{--r-fs:calc(1rem * var(--p-scale));--p-fs:var(--r-fs);   /* the popup's size (2026-11-21 사용자 요청: 크기도 팝업 따라가자; was clamp 17–20px): 24px desktop, 16px phone */
    --p-in:calc(var(--r-fs) * var(--cap-em) / 1.375);
    --r-room:calc(var(--p-in) * 1.5);--r-w:min(calc(var(--rp-side) + 34em + var(--r-room)), calc(100vw - 2 * var(--r-lmin)));
    --r-lmin:max(72px, 8vw);font-size:var(--r-fs);
    left:max(var(--r-lmin), calc((100vw - var(--r-w)) / 2));top:calc(var(--edge) + var(--sa-t));width:var(--r-w);max-width:none;height:auto;
    max-height:calc(100dvh - 2 * var(--edge) - var(--sa-t) - var(--sa-b));display:flex;flex-direction:column;padding:0}
  #panel.reading .body{display:none}
  /* [eee] the scroll box starts at the plate's top edge and the band (1½in field + ⅛in rule, DEC-040) is laid over it, not above it
     (2026-11-21 사용자 보고: 제목 글자 윗부분이 잘림): the title hangs from the cap line, and its disc and the Hangul strokes that rise
     above the cap were cut where a scroll box starting at the cap line clips. Now they show in the ½in under the rule, and the copy
     scrolls up to the rule and under the band */
  /* [eee] two plates (2026-11-21 사용자 요청: 제목 박스와 본문 박스가 살짝 떨어진 다른 박스 두 개): the title plate (#rhead) on top, held
     still, no band or rule over it (위에 디바이더 없이); ½in of map between (GRID-003 margin at the copy's inch); the copy plate (#rscroll)
     below, the same width, scrolling inside. The copy plate keeps the reverse-plate band on top (DEC-031/040: 1½in field, ⅛in rule, ½in to
     the first cap; 사용자 요청: 본문에는 원래 모듈의 윗 디바이더), laid over the scroll box so the copy scrolls up under it */
  #panel.reading{background:none}
  #panel.reading #reader{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
  #panel.reading #rbox{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--bg)}
  #panel.reading #rbox::before{content:"";position:absolute;left:0;right:0;top:0;height:calc(var(--rp-band) + var(--rp-rule));z-index:1;pointer-events:none;
    background:var(--fg)}   /* the black band (1⅝in) the copy scrolls under */
  #panel.reading #rscroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;outline:none;
    padding:var(--rp-top) var(--r-room) calc(var(--p-in) * 2) var(--rp-side);scrollbar-width:thin;   /* margins inside the scroll box: nothing that hangs out (disc, first-glyph pull) is clipped */
   scrollbar-color:color-mix(in srgb, currentColor 35%, transparent) transparent}
  /* the reading plate is inked too (2026-11-22 사용자 요청: 종이 질감은 모든 요소에), but not as one filter over #panel: a filter over a
     scrolling box re-rasters the whole plate on every scroll (Chrome ~38fps). Instead each still part carries its own filter and the
     scrolled copy is filtered inside the scroller, so it is rastered once and scrolling only moves it. The copy plate's field moves to a
     filtered ::after so its edge is ragged like the other plates */
  :root[data-print] #panel.reading{filter:none}
  :root[data-print] #panel.reading :is(#rhead,#rbody>*,#rnav){filter:var(--print-filter)}   /* per block, not the whole #rbody: WebKit stalled ~180ms rastering one tall filtered box */
  :root[data-print] #panel.reading #rbox::before{filter:var(--print-filter)}
  :root[data-print] #panel.reading #rbox{background:none}
  :root[data-print] #panel.reading #rbox::after{content:"";position:absolute;inset:0;z-index:-1;background:var(--bg);filter:var(--print-filter)}
  html.reading #logo,html.reading #legend,html.reading #tools,html.reading #zoom,html.reading #snaptune{visibility:hidden}   /* the map's chrome steps aside */
  #reader h1,#reader h2,#reader h3,#reader strong,#reader em{font-weight:inherit;font-style:normal}   /* TYPE-002, DONT-001: one weight */
  /* title: direction size (TYPE-006, Grid 2 cap 4¼in) at the map popup's 1.5× sign scale, the plate it grew from (2026-11-21 사용자 요청:
     제목을 더 크게; was the copy's inch: 61 → 74px on desktop); phones up to 11vw (31 → 43px at 390px), so both take about the same
     share of the plate */
  /* [eee] title head (2026-11-21 사용자 요청: 매뉴얼 열차 표지 SIGN-016 "179 Street / Euclid Avenue"처럼 흰 바탕에 원판, 그 옆에 제목 두 줄).
     One 1 ft directional module at the title's own inch (--t-in = title cap / 4¼, GRID-006): a 12in square in the page colour flush with
     the plate's top and left edges, as on the manual sign (사용자 요청: 위·왼쪽 마진 없이), the disc at 11/12 of it in the middle (manual: cell
     10½in, disc ≈ 9½in, the same ratio); the title ½in right of the square, its cap line ½in below the top edge (GRID-003) */
  #rhead{font-size:min(calc(var(--doc-in) * 1.5 * 4.25 / var(--cap-em)), 11vw);--t-in:calc(1em * var(--cap-em) / 4.25);
    display:flex;align-items:flex-start;gap:calc(var(--t-in) * .5);min-height:calc(var(--t-in) * 12);
    flex:0 0 auto;margin:0 0 var(--rp-gap);
    /* [eee] the title plate stays the old reverse plate (2026-11-22 사용자 요청: 다른 판은 흰 바탕·검은 띠로 바꾸되 이 상자는 이전 버전으로):
       black field, white type at the dark weight, no band; the white cell with the disc as on the manual sign. Both themes */
    background:var(--fg);color:var(--bg);--font-weight:var(--font-weight-dark);font-weight:var(--font-weight)}
  #panel.reading #rhead{box-shadow:none}
  :root[data-theme=dark] #panel.reading #rhead{box-shadow:0 0 0 1px var(--c-white)}
  /* edge lines (2026-11-21 사용자 요청): the cell gets a ㄷ of ⅛in rule (SIGN-023) in the plate colour on its top, left and bottom, so it
     does not run into the page (the white line under the title was tried and dropped, 사용자 요청) */
  #rhead .rcell{flex:0 0 auto;width:calc(var(--t-in) * 12);height:calc(var(--t-in) * 12);background:var(--bg);display:grid;place-items:center;
    box-shadow:inset var(--rp-rule) 0 0 0 var(--fg),inset 0 var(--rp-rule) 0 0 var(--fg),inset 0 calc(-1 * var(--rp-rule)) 0 0 var(--fg)}
  #rhead .rcell .disc{--d:calc(var(--t-in) * 10.5)}   /* 사용자 요청: 원판 조금 작게(11 → 10½in), 칸은 그대로 */
  #rtitle .disc[data-color=black]{box-shadow:0 0 0 1px var(--bg)}                        /* a black disc on the black title plate: white ring */
  #rtitle{flex:1 1 auto;min-width:0;font-size:1em;line-height:var(--lh-g2);text-wrap:balance;
    --t-trim:calc((var(--trim-k) - var(--lh-g2) / 2) * 1em);margin:calc(var(--t-in) * .5 + var(--t-trim)) 0 0 calc(-1 * var(--lsb-pull))}
  @supports (text-box: trim-both cap alphabetic){#rtitle{--t-trim:0px;text-box:trim-start cap alphabetic}}
  /* --here = the font size of the line a disc or arrow sits in, as a length (registered, so 1em is fixed where it is set, not inside
     the disc, whose own font size is its glyph) */
  #rtitle,#rbody,#rbody h2,#rbody h3,#rbody blockquote,#rnav{--here:1em}
  #reader .disc--inline{--d:calc(var(--here) * var(--cap-em) * 1.6875 / 1.375)}               /* DEC-034 at each line's own size */
  /* copy: the popup's size (--r-fs), lines ≈ 34em. Spacing and colour as in the map popup (2026-11-21 사용자 요청: 자간·행간·색을
     팝업과 똑같이): Grid 1 pitch (GRID-007, --lh-g1), the plate's type colour (black on the white field), the same
     letter and word spacing (kerning, --ws-ko, em-based). Blocks: baseline → next cap line = 1⅜in, the GRID-006 gap the popup uses */
  #rbody{max-width:34em;line-height:var(--lh-g1)}
  #rbody>*{margin:0 0 calc(var(--p-in) * 1.375 - (var(--lh-g1) - var(--cap-em)) * 1em)}
  #rbody>:last-child{margin-bottom:0}
  #rbody h2{font-size:1.3em;line-height:1.3;margin:1.6em 0 .6em}
  #rbody h3{font-size:1.1em;line-height:1.4;margin:1.4em 0 .5em}
  #rbody blockquote{margin:1.3em 0;padding-inline-start:.9em;border-inline-start:4px solid var(--c-orange);font-size:1.3em;line-height:1.3}   /* 주황 왼쪽 줄 (D) */
  #rbody blockquote>*{margin:0 0 .6em}
  #rbody blockquote>:last-child{margin-bottom:0}
  #rbody ul,#rbody ol{padding-inline-start:1.2em}
  #rbody li+li{margin-top:.3em}
  #rbody hr{border:0;border-top:var(--rp-rule) solid currentColor;margin:2em 0}
  #rbody img{display:block;max-width:100%;height:auto}
  #rbody figcaption{line-height:var(--lh-g1);margin-top:.5em}
  #rbody code{font:inherit}
  #rbody a{color:inherit}   /* DEC-006 underline from #panel a */
  /* end line: one paragraph (posts/post.css .seqbar, the map popup's size), ⅛in rule across the plate above it */
  #rnav{--n-in:calc(var(--here) * var(--cap-em) / 1.375);font-size:max(1em, 1.5rem);line-height:var(--lh-g1);
    margin:2.4em calc(-1 * var(--r-room)) 0 calc(-1 * var(--rp-side));padding:calc(var(--p-in) * 1.375) var(--r-room) 0 var(--rp-side);   /* rule, then GRID-006 1⅜in to the cap */
   
    background:linear-gradient(currentColor, currentColor) 0 0 / 100% var(--rp-rule) no-repeat}
  @supports (text-box: trim-both cap alphabetic){#rnav{text-box:trim-both cap alphabetic}}
  #rnav a{color:inherit;text-decoration:none}
  /* [eee] no space anywhere in the end line but inside the titles (2026-11-21 사용자 요청): arrow, disc, title and the next item touch,
     like the map popup's 역이름ⓡ요약→닫기. The line still wraps at the titles' own spaces */
  #rnav .nw{white-space:nowrap}
  @media (max-width:640px){
    /* phones: the plate covers almost everything; the station shows in the strip above it */
    #panel.reading{--r-lmin:0px;left:calc(8px + var(--sa-l));width:calc(100vw - 16px - var(--sa-l) - var(--sa-r));top:calc(64px + var(--sa-t));
      max-height:calc(100dvh - 72px - var(--sa-t) - var(--sa-b))}
    #rnav{font-size:1em}
  }

  @media (max-width:640px){
    :root{--edge:12px}
    #logo{--l-cap:1.375;--l-lh:var(--lh-g1)}                        /* small screens: one tier down → Information (Grid 1), like .compact */
    #tools{bottom:calc(var(--edge) + var(--sa-b) + 3 * var(--ui-btn) + var(--rp-top) + 12px)}
    /* [eee] phones (2026-11-19 사용자 요청): the module plates (1 ft high, standard lengths) took a third of the screen.
       Logo, legend and popup hug their copy instead (fitPlate/fitPopup skip the module sizes), ½in below the descender
       guide like the legend. The popup copy wraps at 20in (desktop 40in; 28/24/20 compared, 2026-11-19). */
    #logo{padding-bottom:calc(var(--doc-in) * (.5 + .235 * 1.375))}
    #panel{--p-scale:1}
    #panel .text{max-width:calc(var(--p-in) * 20)}
    /* legend stays open with its names (2026-11-23 준하님 결정: 예전에는 원판만 세로로 접혀 있었음) */
    #legend{--l-scale:1}                                       /* phones: legend at page size */
  }
  /* [eee] touch screens: re-running the DEC-038 ink-edge filter over the whole map every frame stalls phones. With the
     trains on their own layer (#mapfx) the map is still at rest, so it keeps the ink edge then; while it moves (pan, zoom,
     drag, tidy-up, intro) inMotion() sets html.map-moving and the edge comes back 400ms after it stops, never while a
     finger is still down. */
  @media (hover:none) and (pointer:coarse){:root[data-print].map-moving #map{filter:none}}
  /* [eee] reading plate (2026-11-21 사용자 요청: 열리고 닫히는 애니메이션이 어느 모드에서든 같게): while the plate grows / shrinks and
     the camera glides (readerMotion()), the map's ink edge is off on every device, so the print layer can't slow the camera; the
     ghost plate itself is transform-only and unfiltered. The edge comes back when it stops */
  :root[data-print].reader-moving #map{filter:none}
