/* Line pages — signage design (2026-10 redesign, pilot: Purple Line).
   Loads after station.css and reuses its tokens and components (.st-site, .st-band, .st-jump,
   .st-board, .st-strip, .st-facts, details/FAQ, .st-tools, .st-foot, .st-ad).
   Rules: .claude/skills/bengalurumetro-design/SKILL.md */

:root {
  /* provisional until sampled from the official BMRCL map (same caveat as station.css) */
  --l-pink: #c2185b; --l-blue: #1f5fbf; --l-red: #c62828; --l-orange: #b54d00;
}
.l-pink { --line: var(--l-pink); --line-ink: #fff; }
.l-blue { --line: var(--l-blue); --line-ink: #fff; }
.l-red  { --line: var(--l-red);  --line-ink: #fff; }
.l-orange { --line: var(--l-orange); --line-ink: #fff; }

/* band: route + status under the H1 */
.ln .st-band h1 { margin-top: 8px; }
.ln-route { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 8px; font-size: .9375rem; font-weight: 600; }
.ln-route .num { opacity: .92; font-weight: 500; }
.ln-status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 2px solid currentColor; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ln-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* sticky jump bar sits under the sticky header only (switcher scrolls away) */
.ln .st-jump { top: 57px; }

/* stop strip: numbered, with landmark notes */
.ln-strip li { grid-template-columns: 28px minmax(0, 1fr) auto; }
.ln-strip li a, .ln-strip li .nm { padding-block: 9px; }
.ln-strip .no { font-size: .75rem; color: var(--ink-3); font-weight: 600; margin-right: 6px; }
.ln-strip small { margin-top: 1px; line-height: 1.35; }
.ln-strip .term .dot { border-radius: 3px; width: 18px; height: 18px; margin-left: 5px; background: var(--line); }
.ln-strip li.ug::before { background: repeating-linear-gradient(var(--line) 0 8px, color-mix(in srgb, var(--line) 45%, var(--bg)) 8px 12px); }
.ln-strip .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ln-tag { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 8px; padding: 2px 6px; white-space: nowrap; background: var(--panel); color: var(--ink-2); }
.ln-badge { display: inline-flex; align-items: center; font-size: .6875rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; background: var(--c); color: var(--ci, #fff); text-decoration: none !important; }
.ln-badge.soon { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--c); }
.ln-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--ink-3); margin: 6px 0 10px; }
.ln-key span { display: inline-flex; align-items: center; gap: 6px; }
.ln-key i { display: inline-block; width: 4px; height: 16px; background: var(--line); }
.ln-key i.ug { background: repeating-linear-gradient(var(--line) 0 5px, color-mix(in srgb, var(--line) 45%, var(--bg)) 5px 8px); }

/* data tables: tabular numbers, rules only */
.ln-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ln-table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 8px 10px 8px 0; border-bottom: 2px solid var(--ink); }
.ln-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ln-table td:first-child { font-weight: 600; }
.ln-table .r { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ln-table th.r { padding-right: 0; }
.ln-scroll { overflow-x: auto; }
.ln-note { font-size: .875rem; color: var(--ink-3); margin-top: 8px !important; max-width: 65ch; }
.ln-lead { color: var(--ink-2); margin-bottom: 10px !important; max-width: 65ch; }

/* interchanges */
.ln-ix li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: .9375rem; }
.ln-ix li > b:first-child { display: block; color: var(--ink); margin-bottom: 4px; }

/* map */
.ln-map img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; }

/* prose */
.ln-prose p, .ln-prose li { color: var(--ink-2); max-width: 65ch; }
.ln-prose p { margin-top: 10px; }
.ln-prose ul li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.ln-prose ul li b { color: var(--ink); }

/* generic body content (pages converted from the legacy template keep their prose/lists/tables) */
.ln-body .ln-sec > p, .ln-body .ln-sec > div > p { color: var(--ink-2); margin-top: 10px; max-width: 65ch; }
.ln-body .ln-sec ul:not(.st-strip):not(.ln-ix) { list-style: disc; padding-left: 1.25rem; margin-top: 8px; }
.ln-body .ln-sec ol:not(.st-strip) { list-style: decimal; padding-left: 1.25rem; margin-top: 8px; }
.ln-body .ln-sec ul:not(.st-strip) li, .ln-body .ln-sec ol:not(.st-strip) li { color: var(--ink-2); padding: 3px 0; max-width: 65ch; }
.ln-body .ln-sec li strong, .ln-body .ln-sec p strong { color: var(--ink); }
.ln-body .ln-sec > div:not(.ln-scroll):not(.st-ad):not(.ln-key) { margin-top: 12px; }
.ln-body > div:not(.st-board):not(.st-ad):not(.ln-scroll):not(.ln-stats) { margin-top: 20px; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--line); border-radius: 8px; }
.ln-body > div:not(.st-board):not(.st-ad) > .st-h2:first-child { margin-top: 0; }
.ln-body > div:not(.st-board):not(.st-ad) ul { list-style: disc; padding-left: 1.25rem; }
.ln-body > div:not(.st-board):not(.st-ad) li { color: var(--ink-2); padding: 3px 0; }
.ln-body .ln-scroll { margin-top: 10px; }
.ln-body .st-tools { margin-top: 4px; }
.ln-body .st-faq p { max-width: 65ch; }
.ln-body img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; }
.ln-body .hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ln-body .hero-badges span { font-size: .8125rem; font-weight: 500; background: var(--panel); border-radius: 8px; padding: 3px 8px; color: var(--ink-2); }

/* lines hub (neutral band, flat) */
.l-ink { --line: #f1efec; --line-ink: #16141a; }
.l-ink .st-band { border-bottom: 6px solid transparent; border-image: linear-gradient(90deg, var(--l-purple) 0 16.66%, var(--l-green) 0 33.33%, var(--l-yellow) 0 50%, var(--l-pink) 0 66.66%, var(--l-blue) 0 83.33%, var(--l-red) 0) 1; }
.ln-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; flex-shrink: 0; }
.ln-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 20px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
@media (min-width: 600px) { .ln-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ln-stats > div { background: var(--card); padding: 12px 14px; }
.ln-stats > div > div:first-child { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.ln-stats > div > div:last-child { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: 2px; }
.ln-sec > div:has(> h3 .ln-dot) { margin-top: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.ln-sec > div:has(> h3 .ln-dot) > h3 { margin-top: 0; display: flex; align-items: center; }
.ln-sec > div:has(> h3 .ln-dot) .ln-table td { padding-block: 7px; }
.ln-sec > div:has(> h3 .ln-dot) .ln-table td:first-child { font-weight: 500; color: var(--ink-3); width: 40%; }

/* flat light board on line pages + hub (owner 10-29: no black) */
.ln { --board: #ffffff; --board-ink: #16141a; --board-dim: #6f6a76; --board-rule: #dcd8d2; }
.ln .st-board { border: 1px solid var(--rule); border-top: 4px solid var(--line); font-family: var(--font-ui); }
.ln .st-board-row b { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.ln.l-yellow .st-board { border-top-color: var(--l-yellow); }

/* craft pass: no decorative stripe on the hub band */
.l-ink .st-band { border-bottom: 1px solid var(--rule); border-image: none; }
.ln-status { justify-self: start; }
.ln-dash { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* craft pass B: one badge language in the stop strip — solid badge = live interchange only;
   future interchanges are muted text with a hollow grey ring; underground is shown by the dashed rail */
.ln-soon { font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.ln-strip .fx .dot { border-color: #b9b3ab; }
.ln-strip li > a small:empty { display: none; }
.ln-table th.r { white-space: normal; vertical-align: bottom; }
.ln-table .r { padding-left: 12px; }
