.corr-strip { position: relative; height: 14px; --rail: 4px; }
.corr-strip.down-line { margin-top: 132px; }
.corr-strip.up-line { margin-bottom: 132px; }
:root { --inset: 76px; }
.corr-strip { margin-left: var(--inset); margin-right: var(--inset); }
.corr-strip { overflow: visible; }
.corr-seg { position: absolute; top: var(--rail); height: 5px; background: var(--border); }
.corr-seg.early  { background: var(--early); }
.corr-seg.ontime { background: var(--ontime); }
.corr-seg.minor  { background: var(--late-minor); }
.corr-seg.late   { background: var(--late); }
.corr-seg.severe { background: var(--severe); }
.corr-seg.from-baseline { opacity: .45; }
.corr-seg.quiet, .corr-seg.none {
    background: repeating-linear-gradient(90deg, var(--border) 0 4px, transparent 4px 8px);
}
.corr-seg.apart,
.corr-seg.never {
    height: 1px; top: calc(var(--rail) + 2px); background: var(--border);
}
.corr-seg.unsure {
    height: 3px; top: calc(var(--rail) + 1px);
    background: repeating-linear-gradient(90deg, var(--border) 0 2px, transparent 2px 6px);
}
.corr-seg .tip { position: absolute; inset: 0; display: block; }
.corr-pt { position: absolute; top: calc(var(--rail) + 2px); transform: translate(-50%, -50%); z-index: 2; }
.corr-pt i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.corr-pt.is-stop i {
    width: 10px; height: 10px; background: var(--panel);
    border: 2px solid var(--ink); box-shadow: 0 0 0 2px var(--panel);
}
.corr-train {
    position: absolute; z-index: 3;
    display: flex; align-items: center;
    gap: 0;
    color: var(--ink-dim); --band: var(--ink-dim);
}
.corr-code {
    font: 700 11.2px/1 var(--mono); letter-spacing: .02em;
    background: var(--band); color: var(--bg);
    padding: 2px 3px 2px 4px; border-radius: 2px 0 0 2px;
}
.corr-face {
    display: flex; align-items: center; text-decoration: none; color: inherit;
}
.corr-strip.up-line .corr-face { flex-direction: row-reverse; }
.corr-face:hover .corr-code, .corr-face:focus-visible .corr-code,
.corr-face:hover .corr-nib, .corr-face:focus-visible .corr-nib { filter: brightness(1.15); }
.corr-card {
    display: none; position: absolute; left: 50%;
    top: calc(100% + 10px + var(--tier-off, 0px));
    transform: translateX(-50%);
    z-index: 70; width: max-content; max-width: 300px;
    padding: 4px 8px; border: 1px solid var(--border-firm); border-radius: 5px;
    background: var(--panel-2); color: var(--ink);
    font-size: 11px; font-weight: 400; line-height: 1.25;
    letter-spacing: 0; text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.corr-card > * { display: block; white-space: nowrap; }
.corr-card .ln1 { font-weight: 600; }
.corr-card b { font-weight: 700; }
.corr-strip.up-line .corr-card {
    top: auto; bottom: calc(100% + 10px + var(--tier-off, 0px));
}
.corr-card.card-start { left: 0; transform: none; }
.corr-card.card-end { left: auto; right: 0; transform: none; }
.corr-train:hover .corr-card, .corr-train:focus-within .corr-card { display: block; }
.corr-train:hover::after {
    content: ""; position: absolute; left: 0; right: 0;
    height: calc(12px + var(--tier-off, 0px));
}
.corr-strip.down-line .corr-train:hover::after { top: 100%; }
.corr-strip.up-line .corr-train:hover::after { bottom: 100%; }
.corr-pin {
    display: block; margin: 5px 0 0; padding: 2px 6px;
    font: inherit; font-size: 10.5px; line-height: 1.4;
    color: var(--ink); background: var(--panel); cursor: pointer;
    border: 1px solid var(--border-firm); border-radius: 3px;
}
.corr-pin:hover, .corr-pin:focus-visible { border-color: var(--ink-dim); }
.corr-train.is-pinned .corr-face {
    filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink))
            drop-shadow(0 1.5px 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink));
}
.corr-train.is-stale .corr-code {
    background: transparent;
    color: var(--band);
    box-shadow: inset 0 0 0 1.5px var(--band);
}
.corr-train.is-stale .corr-nib { opacity: .55; }
.corr-key i.key-tag.is-stale-key {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--band);
}
.corr-train.is-pinned { z-index: 100; }
.corr-stn:hover, .corr-stn:focus-within { z-index: 200; }
.corr-train:hover, .corr-train:focus-within { z-index: 200; }
.corr-pt:hover, .corr-pt:focus-within { z-index: 200; }
.corr-seg:hover, .corr-seg:focus-within { z-index: 200; }
.corr-stn { z-index: 1; }
.corr-seg { z-index: 1; }
.corr-var {
    order: -1; margin: 0 3px;
    font-size: 10.2px; font-weight: 700; line-height: 1;
    color: var(--band); white-space: nowrap;
}
.corr-nib {
    display: block; width: 0; height: 0;
    border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent;
}
.corr-strip.down-line .corr-train {
    bottom: calc(100% - var(--rail) + 4px); transform: translateX(-100%);
}
.corr-strip.down-line .corr-nib { border-left: 7px solid currentColor; margin-left: -.5px; }
.corr-strip.up-line .corr-train {
    top: calc(var(--rail) + 9px); flex-direction: row-reverse;
}
.corr-strip.up-line .corr-nib { border-right: 7px solid currentColor; }
.corr-strip.up-line .corr-code {
    padding: 2px 4px 2px 3px; border-radius: 0 2px 2px 0;
}
.corr-train.early      { color: var(--early);      --band: var(--early); }
.corr-train.ontime     { color: var(--ontime);     --band: var(--ontime); }
.corr-train.late-minor { color: var(--late-minor); --band: var(--late-minor); }
.corr-train.minor      { color: var(--late-minor); --band: var(--late-minor); }
.corr-train.late       { color: var(--late);       --band: var(--late); }
.corr-train.severe     { color: var(--severe);     --band: var(--severe); }
.corr-strip.down-line .corr-train.tier-2 { bottom: calc(100% - var(--rail) + 22px);  --tier-off: 18px; }
.corr-strip.down-line .corr-train.tier-3 { bottom: calc(100% - var(--rail) + 40px);  --tier-off: 36px; }
.corr-strip.down-line .corr-train.tier-4 { bottom: calc(100% - var(--rail) + 58px);  --tier-off: 54px; }
.corr-strip.down-line .corr-train.tier-5 { bottom: calc(100% - var(--rail) + 76px);  --tier-off: 72px; }
.corr-strip.down-line .corr-train.tier-6 { bottom: calc(100% - var(--rail) + 94px);  --tier-off: 90px; }
.corr-strip.down-line .corr-train.tier-7 { bottom: calc(100% - var(--rail) + 112px); --tier-off: 108px; }
.corr-strip.up-line .corr-train.tier-2 { top: calc(var(--rail) + 27px);  --tier-off: 18px; }
.corr-strip.up-line .corr-train.tier-3 { top: calc(var(--rail) + 45px);  --tier-off: 36px; }
.corr-strip.up-line .corr-train.tier-4 { top: calc(var(--rail) + 63px);  --tier-off: 54px; }
.corr-strip.up-line .corr-train.tier-5 { top: calc(var(--rail) + 81px);  --tier-off: 72px; }
.corr-strip.up-line .corr-train.tier-6 { top: calc(var(--rail) + 99px);  --tier-off: 90px; }
.corr-strip.up-line .corr-train.tier-7 { top: calc(var(--rail) + 117px); --tier-off: 108px; }
.corr-mid { position: relative; height: 20px; margin: 14px var(--inset); }
.corr-stn {
    position: absolute; top: 4px; transform: translateX(-50%);
    font: 500 12px/1 var(--mono); color: var(--ink-faint); white-space: nowrap;
}
.corr-way {
    margin: 2px 0; text-align: center;
    font-size: 15px; line-height: 1; color: var(--ink-dim);
}
.corr-status {
    margin: 0 0 16px; padding: 11px 14px;
    background: var(--panel); border: 1px solid var(--border);
    border-left: 4px solid var(--band); border-radius: 0;
}
.corr-status b { display: block; font-size: 14px; color: var(--ink); }
.corr-status span {
    display: block; margin-top: 3px;
    font-size: 11.5px; color: var(--ink-dim);
}
.corr-status.ontime     { --band: var(--ontime); }
.corr-status.late-minor { --band: var(--late-minor); }
.corr-status.late       { --band: var(--late); }
.corr-status.severe     { --band: var(--severe); }
.corr-status.nil        { --band: var(--ink-faint); }
.corr-why {
    display: block;
    font-size: 11.5px; font-weight: 600; line-height: 1.35;
    margin: 0 0 4px;
    white-space: normal;
}
.corr-why.is-late      { color: var(--late); }
.corr-why.is-cancelled { color: var(--severe); }
.corr-inner { min-width: 1180px; }
.corr-road {
    margin: 2px 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.corr-key {
    display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px;
    margin: 4px 0 0; padding: 0 16px;
}
.corr-key span { display: inline-flex; align-items: center; gap: 6px; }
.corr-key i { width: 22px; height: 5px; display: block; position: static; }
.corr-key-of { color: var(--ink); font-weight: 600; }
.corr-count {
    margin-left: auto; font-weight: 400; font-size: 12px;
    text-transform: none; letter-spacing: 0; color: var(--ink-dim);
}
.corr-key i.key-tag {
    margin-right: 5px;
    width: 14px; height: 11px; display: block; position: relative;
    background: var(--band, var(--ink-dim)); border-radius: 2px 0 0 2px;
}
.corr-key i.key-tag::after {
    content: ""; position: absolute; left: 100%; top: 0; width: 0; height: 0;
    border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent;
    border-left: 5px solid var(--band, var(--ink-dim));
}
.corr-key i.key-tag.early      { --band: var(--early); }
.corr-key i.key-tag.ontime,
.corr-key i.key-tag.nil { --band: var(--ontime); }
.corr-key i.key-tag.late-minor { --band: var(--late-minor); }
.corr-key i.key-tag.late       { --band: var(--late); }
.corr-key i.key-tag.severe     { --band: var(--severe); }

