:root {
  --paper: #f4f0e7; --surface: #fffdf8; --ink: #20231f; --muted: #6c7068;
  --line: #c8c1b3; --owned: #1f5d48; --ordered: #a85d19; --wanted: #365f87;
  --historical: #777b75; --selected: #d4a72c; --shadow: 0 12px 32px rgb(39 35 25 / 9%);
  --owned-tint: #edf5f1; --ordered-tint: #fbf1e8; --wanted-tint: #edf3f8; --historical-tint: #e9ebe7;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.08; margin: 0 0 .65rem; }
h1 { font-size: clamp(2.5rem, 6vw, 5.8rem); white-space: nowrap; }
h2, .entity-page-heading h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.site-header, main, footer { width: min(1440px, calc(100% - 32px)); margin-inline: auto; }
.site-header { padding: 72px 0 42px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .6rem; }
.lede { font-family: Georgia, serif; font-size: 1.2rem; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 20px 0 0; margin: 0; }
.legend[hidden] { display: none; }
.legend li { display: flex; align-items: center; gap: 7px; font-size: .83rem; font-weight: 700; }
.legend-mark { width: 20px; height: 15px; border: 4px solid currentColor; border-radius: 4px; background: var(--status-tint); }
.status-owned { --status: var(--owned); color: var(--owned); }
.status-ordered { --status: var(--ordered); color: var(--ordered); }
.status-wanted { --status: var(--wanted); color: var(--wanted); }
.status-historical_only { --status: var(--historical); color: var(--historical); }
.status-owned { --status-tint: var(--owned-tint); }
.status-ordered { --status-tint: var(--ordered-tint); }
.status-wanted { --status-tint: var(--wanted-tint); }
.status-historical_only { --status-tint: var(--historical-tint); }
.site-nav { position: fixed; inset: 0 0 auto; z-index: 10; width: 100%; display: flex; align-items: stretch; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgb(255 253 248 / 92%); box-shadow: 0 5px 18px rgb(39 35 25 / 5%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-nav > a { flex: 0 0 auto; padding: 14px 20px 11px; border-bottom: 4px solid transparent; color: var(--muted); font-weight: 800; text-decoration: none; }
.site-nav > a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--wanted); }
.site-nav .site-brand { padding: 8px 28px 7px max(20px, calc((100vw - 1440px) / 2)); border-bottom: 0; color: var(--ink); text-align: left; }
.site-brand strong, .site-brand small { display: block; }
.site-brand strong { font: 700 1.05rem/1.05 Georgia, serif; }
.site-brand small { margin-top: 3px; color: var(--muted); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
main > section { padding: 78px 0 48px; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 24px; }
.section-heading p:last-child { color: var(--muted); }
.tree-viewport { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--selected); border-radius: 10px; box-shadow: var(--shadow); }
.tree-canvas { position: relative; min-width: 100%; }
.tree-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree-edge { fill: none; stroke: var(--line); stroke-width: 2; }
.alco-family-grid { display: grid; gap: 0; min-width: 820px; }
.alco-family { display: grid; grid-template-columns: var(--alco-label-width, 220px) minmax(0, 1fr); column-gap: 32px; min-height: 126px; padding: 28px 28px 26px 20px; }
.alco-family header { align-self: center; }
.alco-family h3 { margin: 0; font: 700 .82rem/1.1 system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.alco-family header p { margin: 4px 0 0; color: var(--muted); font-size: .62rem; font-weight: 700; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.alco-family-sequence { position: relative; display: flex; align-items: center; gap: 36px; overflow: visible; }
.tree-node.alco-family-node { position: relative; inset: auto; flex: 0 0 96px; width: 96px; }
.manufacturer-family-grid .tree-node.alco-family-node { flex-basis: var(--manufacturer-node-width, 96px); width: var(--manufacturer-node-width, 96px); }
.tree-node.alco-family-node strong { white-space: nowrap; }
.tree-node.alco-family-node:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: calc(50% - 1px); width: 40px; border-top: 2px solid var(--line); }
.alco-family-pairs { display: flex; align-items: flex-start; gap: 36px; }
.alco-family-pair { position: relative; display: grid; gap: 28px; }
.alco-family-pair::before { content: ""; position: absolute; left: 50%; top: 58px; height: 36px; border-left: 2px solid var(--line); }
.alco-family-pair:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 48px); top: 29px; width: 40px; border-top: 2px solid var(--line); }
.alco-family-pair .alco-family-node::after { display: none; }
.alco-template-page { min-height: 55vh; display: grid; align-content: center; }
.tree-lane-label { position: absolute; left: 20px; width: 130px; color: var(--muted); font: 700 .72rem/1.2 system-ui; text-transform: uppercase; letter-spacing: .07em; }
.tree-lane-label strong, .tree-lane-label small { display: block; }
.tree-lane-label strong { color: var(--ink); font-size: .78rem; }
.tree-lane-label small { margin-top: 3px; white-space: pre-line; font-size: .58rem; line-height: 1.25; letter-spacing: .045em; }
.tree-section-label { position: absolute; top: 18px; padding-bottom: 4px; border-bottom: 2px solid var(--selected); color: var(--ink); font: 700 .8rem/1 system-ui; letter-spacing: .08em; text-transform: uppercase; }
.tree-stage-label { position: absolute; top: 45px; color: var(--muted); font: 700 .62rem/1 system-ui; letter-spacing: .08em; text-transform: uppercase; }
.tree-node { position: absolute; width: 88px; min-height: 60px; padding: 7px; border: 4px solid var(--status); border-radius: 7px; background: var(--status-tint); color: var(--ink); cursor: pointer; box-shadow: 0 3px 10px rgb(0 0 0 / 7%); text-align: center; text-decoration: none; }
.tree-node.low-production { background: #f1f2f1; border-color: #d0d3d0; color: #656963; box-shadow: none; cursor: default; }
.tree-node.low-production small { color: #656963; }
.tree-node.low-production:is(.status-owned, .status-ordered, .status-wanted) { border-left-color: var(--status); }
.tree-node strong, .tree-node small { display: block; }
.tree-node small { color: var(--muted); font-family: Georgia, serif; font-size: .76rem; }
.tree-note { position: sticky; left: 0; width: fit-content; margin: 0; padding: 12px 18px 15px; color: var(--muted); font-size: .82rem; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--selected); outline-offset: 3px; }
.detail-card { background: var(--surface); border-left: 5px solid var(--selected); padding: 28px; box-shadow: var(--shadow); }
.entity-section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.entity-section h2, .entity-section h3 { font-size: 1.35rem; }
.status-badge { display: inline-block; border: 1px solid var(--status); border-radius: 999px; padding: 3px 9px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.locomotive-hero { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 26px; }
.locomotive-hero > .section-heading { margin: 0; }
.service-timeline-prototype { position: relative; margin: 18px 0 22px; padding: 8px 38px 5px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-timeline-prototype.timeline-between-header-card { width: 100%; margin: 0; padding: 12px 42px 9px 12px; background: transparent; box-shadow: none; }
.service-timeline-prototype svg { display: block; width: 100%; height: auto; max-height: 132px; overflow: visible; }
.service-timeline-grid { stroke: #d8d2c7; stroke-width: .7; stroke-dasharray: 1 3; }
.service-timeline-year { fill: var(--muted); font: 700 9px system-ui, sans-serif; letter-spacing: .04em; }
.service-timeline-specific-frame { fill: none; stroke: #555850; stroke-width: 1; }
.service-timeline-tools { position: absolute; top: 7px; right: 7px; }
.service-timeline-info { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font: 700 13px Georgia, serif; cursor: pointer; }
.service-timeline-legend { position: absolute; z-index: 3; top: 30px; right: 0; width: max-content; max-width: min(290px, 75vw); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.service-timeline-legend[hidden] { display: none; }
.service-timeline-legend > div { display: grid; grid-template-columns: 30px auto; gap: 8px; align-items: center; font-size: .72rem; font-weight: 700; }
.service-timeline-legend > div + div { margin-top: 6px; }
.service-timeline-legend > div > span:first-child { height: 12px; border: 1px solid #484941; border-radius: 1px; }
.service-timeline-legend .service-timeline-specific-key { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.service-timeline-legend .service-timeline-specific-key > span:first-child { height: 14px; border: 1px solid #555850; background: transparent; }
.service-timeline-legend-note { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0 30px; }
.detail-image { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.detail-image-link { display: block; color: inherit; }
.detail-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #eee9de; }
.detail-image figcaption { display: grid; gap: 3px; padding: 10px 12px 12px; }
.detail-image figcaption small { color: var(--muted); }
.image-source-link, .image-fallback a { width: fit-content; color: var(--wanted); font-size: .78rem; font-weight: 700; text-underline-offset: 3px; }
.image-fallback { min-height: 150px; padding: 22px; display: grid; align-content: center; justify-items: start; gap: 5px; color: var(--muted); }
.image-fallback[hidden] { display: none; }
.image-fallback strong { color: var(--ink); font-family: Georgia, serif; font-size: 1.05rem; }
.image-fallback span { font-size: .82rem; }
.image-kind { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; row-gap: 12px; margin: 26px 0; }
.fact-row { display: grid; grid-template-columns: minmax(105px, .42fr) minmax(0, 1fr); gap: 14px; align-items: baseline; min-width: 0; }
dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; } dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 1.2rem; }
.historical-timeline { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.historical-timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.historical-timeline time { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.historical-timeline span { font-family: Georgia, serif; font-size: 1.05rem; }
.muted { color: var(--muted); }
.relationships { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.relationship-group { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.relationship-group h2, .relationship-group h3 { flex-basis: 100%; font-size: 1rem; }
.text-button { border: 1px solid var(--line); border-radius: 4px; background: transparent; padding: 7px 10px; color: var(--ink); cursor: pointer; text-decoration: none; }
.roster-link { color: var(--wanted); font-weight: 800; text-underline-offset: 3px; }
.roster-thumbnail { display: block; width: 96px; aspect-ratio: 16 / 9; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 4px; object-fit: contain; background: var(--paper); }
.external-table-link { color: var(--wanted); text-underline-offset: 3px; }
.external-table-link::after { content: " ↗"; font-size: .72em; }
.empty-state { min-height: 34vh; display: grid; align-content: center; }
.empty-state > a { color: var(--wanted); font-weight: 800; text-underline-offset: 3px; }
.key-major { color: #276247; background: #eaf2eb; }.key-regional { color: #2f5e84; background: #e7eef5; }.key-local { color: #8b552d; background: #f3e8d8; }
.bnsf-genealogy > .section-heading { max-width: none; }
.genealogy-viewport { overflow: auto; border: 1px solid var(--line); border-left: 5px solid var(--selected); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.genealogy-canvas { position: relative; min-width: 1390px; background: var(--surface); }
.genealogy-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.railroad-edge { fill: none; stroke: #8a7250; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.railroad-node { position: absolute; z-index: 1; width: 260px; min-height: 66px; translate: 0 -50%; display: grid; align-content: center; gap: 3px; padding: 10px 12px; border: 2px solid #a47a57; border-left: 7px solid #8b552d; border-radius: 6px; background: #f3e8d8; color: var(--ink); box-shadow: 0 4px 12px rgb(51 45 34 / 9%); text-decoration: none; }
.railroad-node:hover { translate: 0 calc(-50% - 3px); box-shadow: 0 8px 18px rgb(51 45 34 / 15%); }
.railroad-node span { color: var(--muted); font-size: .58rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.railroad-node strong { font: 700 .86rem/1.12 Georgia, serif; }
.railroad-node small { color: var(--muted); font-size: .65rem; }
.railroad-node-major { border-color: #587566; border-left: 7px solid #276247; background: #eaf2eb; }
.railroad-node-major strong { font-size: .98rem; }
.railroad-node-bnsf { width: 280px; min-height: 92px; }
.railroad-node-bnsf strong { font-size: 1.06rem; }
.railroad-node-regional { border-color: #879bad; border-left: 7px solid #2f5e84; background: #e7eef5; }
.railroad-node-local { border-color: #a47a57; border-left: 7px solid #8b552d; background: #f3e8d8; }
.railroad-legend-mark { width: 20px; height: 15px; border: 2px solid currentColor; border-radius: 3px; }
.railroad-legend-mark.key-major { border-left: 6px solid #276247; }
.railroad-legend-mark.key-regional { border-left: 6px solid #2f5e84; }
.railroad-legend-mark.key-local { border-left: 6px solid #8b552d; }
.railroad-detail-prototype { min-height: calc(100vh - 75px); }
.railroad-hero { max-width: none; }
.entity-page-heading h1 { white-space: normal; }
.railroad-hero h1 { white-space: normal; }
.railroad-meta { color: var(--muted); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.railroad-meta b { padding: 0 .5em; color: var(--selected); }
.railroad-lede { max-width: 760px; margin-top: 28px; font: 1.25rem/1.6 Georgia, serif; }
.railroad-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.railroad-detail-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.railroad-detail-grid dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.railroad-detail-grid > article:first-child > dl { grid-template-columns: max-content minmax(0, 1fr); }
.railroad-detail-grid dd { font-size: 1rem; }
.railroad-detail-grid a { color: var(--wanted); font-weight: 750; text-underline-offset: 3px; }
.railroad-predecessors a, .railroad-successor a { display: block; width: fit-content; }
.railroad-predecessors a + a { margin-top: 4px; }
.railroad-schemes { grid-column: 1 / -1; }
.railroad-detail-grid:has(.railroad-snapshot-grid) > article { grid-column: 1 / -1; }
.railroad-detail-grid:has(.railroad-snapshot-grid) > article:first-child { max-width: none; }
.railroad-statistics > h2 { margin-bottom: 8px; }
.railroad-snapshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 26px 0 30px; }
.railroad-snapshot-heading { display: grid; gap: 2px; padding: 20px; border: 1px solid var(--line); border-top: 5px solid var(--selected); border-radius: 6px 6px 0 0; background: #f4f0e7; }
.railroad-snapshot-heading strong { font: 700 2.3rem/1 Georgia, serif; }
.railroad-snapshot-heading span { font-weight: 800; }
.railroad-snapshot-heading small, .railroad-metric small { color: var(--muted); line-height: 1.45; }
.railroad-metric { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 17px 20px; border: 1px solid var(--line); border-top: 0; }
.railroad-metric:nth-last-child(-n + 2) { border-radius: 0 0 6px 6px; }
.railroad-metric-label { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.railroad-metric-value { margin: 0; font: 700 1.35rem/1.15 Georgia, serif; }
.railroad-metric-financial { background: #f8f5ee; }
.railroad-statistics h3 { margin-top: 25px; font-size: 1rem; }
.railroad-metric-propulsion { background: #f8f5ee; }
.railroad-propulsion-bar { display: flex; height: 17px; margin-top: 9px; overflow: hidden; border-radius: 3px; }
.railroad-propulsion-steam { flex: 1; background: #4c5150; }
.railroad-propulsion-diesel-segment { width: 10px; background: #b64d35; }
.railroad-propulsion-diesel .railroad-propulsion-steam { display: none; }
.railroad-propulsion-diesel .railroad-propulsion-diesel-segment { width: 100%; }
.railroad-propulsion-detail { font-weight: 700; }
.railroad-statistics-note { font-size: .8rem; margin: 5px 0; }
.railroad-schemes ul { columns: 2; padding-left: 1.2rem; }
.railroad-paint-history { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.railroad-paint-photo { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.railroad-paint-photo > a:first-child { display: block; }
.railroad-paint-photo img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #eee9df; }
.railroad-paint-photo figcaption { display: grid; gap: 3px; padding: 10px 12px 12px; }
.railroad-paint-photo figcaption small { color: var(--muted); }
.railroad-paint-fallback { display: grid; min-height: 240px; place-items: center; padding: 24px; border: 1px solid var(--line); background: #f4f0e7; }
.railroad-paint-fallback[hidden] { display: none; }
.railroad-paint-body h3 { margin: 8px 0; font: 700 1.65rem/1.2 Georgia, serif; }
.railroad-paint-body > p:not(.eyebrow) { line-height: 1.6; }
.railroad-paint-locomotive { color: var(--muted); font-weight: 800; }
.atsf-paint-schemes > p:not(.eyebrow) { max-width: 760px; line-height: 1.6; }
#paint-schemes { scroll-margin-top: 88px; }
.atsf-undated-heading { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.atsf-paint-image { display: grid; aspect-ratio: 16 / 10; place-items: center; background: #eeeae1; }
.atsf-paint-image > span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.atsf-paint-image a, .atsf-paint-image img { display: block; width: 100%; height: 100%; }
.atsf-paint-image img { object-fit: contain; }
.atsf-paint-history-multi { grid-template-columns: 1fr; }
.atsf-paint-media { display: grid; min-width: 0; gap: 16px; }
.atsf-paint-media-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atsf-paint-figure { min-width: 0; }
.atsf-paint-frame { display: grid; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; background: #eeeae1; }
.atsf-paint-frame > a { display: grid; width: 100%; height: 100%; place-items: center; }
.atsf-paint-frame > a[hidden] { display: none; }
.atsf-paint-frame img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.atsf-paint-figure figcaption { gap: 5px; line-height: 1.4; }
.atsf-paint-figure figcaption strong { font-family: Georgia, serif; font-size: 1rem; }
.atsf-original-source { display: grid; gap: 2px; margin-top: 4px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--muted); }
.atsf-original-source a { width: fit-content; }
.atsf-paint-code, .atsf-paint-prototype { margin: 4px 0; color: var(--muted); font-size: .82rem; font-weight: 750; }
.home-intro { min-height: calc(100vh - 100px); display: grid; align-content: start; justify-items: start; }
.home-intro h1 { max-width: 940px; font-size: clamp(3.4rem, 8vw, 7.6rem); white-space: normal; }
.home-lede { max-width: 700px; color: var(--muted); font: 1.25rem/1.6 Georgia, serif; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.home-actions a { color: var(--wanted); font-weight: 800; text-underline-offset: 4px; }
.home-actions .primary-link { color: var(--ink); }
.source-list { margin: 0; padding-left: 1.25rem; }
.source-list li + li { margin-top: .45rem; }
.source-list a { color: var(--wanted); text-underline-offset: 3px; }
.roster-grid { display: grid; gap: 32px; }
table { width: 100%; border-collapse: collapse; border-left: 5px solid var(--selected); background: var(--surface); box-shadow: var(--shadow); }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
footer { padding: 30px 0 60px; color: var(--muted); font-size: .85rem; }
footer .legend { padding-top: 0; margin-bottom: 18px; }
footer p { margin: 0; }
.load-error { padding: 16px; background: #fff1ef; border-left: 4px solid #a3392f; }
@media (max-width: 850px) {
  .site-header { padding-top: 40px; }
  .locomotive-hero { grid-template-columns: 1fr; gap: 18px; }
  .detail-gallery, .fact-grid { grid-template-columns: 1fr; }
  .historical-timeline li { grid-template-columns: 1fr; gap: 4px; }
  .relationships { grid-template-columns: 1fr; }
  .railroad-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .railroad-detail-grid { margin-top: 34px; }
  .railroad-schemes { grid-column: auto; }
  .railroad-schemes ul { columns: 1; }
  .railroad-paint-history { grid-template-columns: 1fr; gap: 14px; }
  .railroad-snapshot-grid { gap: 0 10px; }
  .railroad-snapshot-heading, .railroad-metric { padding: 12px; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  td { display: grid; grid-template-columns: 125px 1fr; border: 0; padding: 4px 0; }
  td::before { content: attr(data-label); color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
}
@media (max-width: 620px) { h1 { white-space: normal; } }
@media (max-width: 620px) { .railroad-statistics { overflow-x: auto; } .railroad-snapshot-grid { min-width: 620px; } }
@media (max-width: 700px) { .atsf-paint-media-multi { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .site-brand small { display: none; } .site-nav .site-brand { padding-left: 18px; } }
@media (max-width: 800px) { .lede { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
