.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(20px,2.6vw,38px) 0 clamp(16px,1.7vw,26px); }
.chart-heading h1 { font-size: clamp(2.65rem,4.7vw,4.55rem); }
.chart-heading p { color: var(--muted); margin-top: .38rem; }
.index-jump { flex: none; display: inline-flex; align-items: center; gap: .55rem; padding-block: .7rem; text-decoration: none; font-size: .88rem; font-weight: 700; }
.index-jump:hover { text-decoration: underline; }
.chart-board { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: start; margin: 0; padding: 0; border: 0; min-inline-size: 0; border-top: 3px solid var(--navy); }
.chart-map { min-width: 0; background: var(--navy); }
.plot { position: relative; height: clamp(475px,42.5vw,620px); color: white; }
.course { width: 100%; height: 100%; display: block; }
.flow-label { position: absolute; top: 4.7%; left: 4.5%; display: flex; align-items: center; gap: .55rem; color: #e3f5ff; font: 700 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.flow-label span { display: grid; place-content: center; width: 22px; height: 22px; background: #0d324b; color: white; font-size: 1rem; }
.plot-stop {
  --tag: #143a50;
  --tag-text: #fff;
  --pin: #e5f7ff;
  position: absolute; left: var(--x); top: var(--y); transform: translateY(-50%);
  display: flex; align-items: center; min-height: 44px; padding-left: clamp(15px,2vw,30px); cursor: pointer;
}
.plot-stop::before { content: ""; position: absolute; left: 0; width: clamp(15px,2vw,30px); height: 2px; background: var(--pin); }
.plot-stop i { position: absolute; left: 0; transform: translateX(-50%); width: 15px; height: 15px; border: 3px solid #103650; outline: 2px solid var(--pin); border-radius: 100%; background: var(--pin); }
.stop-tag { display: inline-flex; align-items: center; gap: .39em; padding: .25em .45em; color: var(--tag-text); background: var(--tag); font: 700 clamp(.99rem,1.6vw,1.6rem)/1.1 var(--display); text-transform: uppercase; }
.stop-tag b { font: 600 .57em/1 var(--mono); padding-right: .55em; border-right: 1px solid currentColor; }
.plot-stop:hover .stop-tag { text-decoration: underline; }
#port-weirton:checked ~ .chart-map label[for="port-weirton"],
#port-wheeling:checked ~ .chart-map label[for="port-wheeling"],
#port-parkersburg:checked ~ .chart-map label[for="port-parkersburg"],
#port-huntington:checked ~ .chart-map label[for="port-huntington"] { --tag: var(--signal); --tag-text: var(--deep); --pin: var(--signal); }
.chart-key { display: flex; align-items: center; gap: .55rem 1.05rem; padding: .75rem 1rem; color: #eefaff; background: var(--deep); font: .7rem/1.4 var(--mono); }
.chart-key span { display: flex; align-items: center; gap: .45rem; }
.key-port { width: 9px; height: 9px; border-radius: 100%; outline: 1px solid #e3f6ff; border: 2px solid var(--deep); background: white; }
.key-port.selected { outline-color: var(--signal); background: var(--signal); }
.chart-key small { margin-left: auto; font: inherit; color: #c3d9e6; }
.station-strip { display: none; }
.station-notes { display: none; }
#port-weirton:checked ~ .port-report #result-weirton,
#port-wheeling:checked ~ .port-report #result-wheeling,
#port-parkersburg:checked ~ .port-report #result-parkersburg,
#port-huntington:checked ~ .port-report #result-huntington { display: block; }
#port-weirton:focus-visible ~ .chart-map label[for="port-weirton"],
#port-weirton:focus-visible ~ .station-strip label[for="port-weirton"],
#port-wheeling:focus-visible ~ .chart-map label[for="port-wheeling"],
#port-wheeling:focus-visible ~ .station-strip label[for="port-wheeling"],
#port-parkersburg:focus-visible ~ .chart-map label[for="port-parkersburg"],
#port-parkersburg:focus-visible ~ .station-strip label[for="port-parkersburg"],
#port-huntington:focus-visible ~ .chart-map label[for="port-huntington"],
#port-huntington:focus-visible ~ .station-strip label[for="port-huntington"] { outline: 3px solid #e49b16; outline-offset: 3px; }
.port-report { padding: clamp(19px,2vw,35px) 0 1.5rem clamp(24px,3.9vw,64px); }
.port-register { display: flex; align-items: center; gap: .55rem; color: var(--blue); font: 700 .73rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
.port-register > span:last-child { margin-left: auto; font-weight: 500; color: var(--muted); }
.signal { width: 10px; height: 10px; background: var(--signal); border: 2px solid var(--deep); border-radius: 100%; }
.port-heading h2 { font: 700 clamp(2.7rem,4.6vw,4.4rem)/1 var(--display); letter-spacing: -.025em; margin: .6rem 0 .35rem; text-transform: uppercase; }
.port-heading p { display: flex; align-items: center; gap: .38rem; color: var(--muted); font-size: .88rem; }
.port-heading { padding-bottom: clamp(12px,1.4vw,22px); }
.operator { border-top: 1px solid var(--line); padding: clamp(12px,1.3vw,23px) 0; }
.operator-kind { display: flex; align-items: center; gap: .45rem; color: var(--blue); font: 700 .68rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.operator-kind .icon { width: 16px; height: 16px; }
.operator h3 { margin-top: .52rem; font-size: clamp(1.2rem,1.65vw,1.65rem); letter-spacing: -.035em; }
.operator p { margin: .34rem 0 .15rem; max-width: 50ch; font-size: .96rem; line-height: 1.48; }
.operator-link { display: inline-block; padding: .35rem 0; font-size: .88rem; font-weight: 700; }
.guide-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 1.55rem; padding: .72rem 1.05rem; min-height: 44px; color: white; background: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 650; }
.guide-button:hover { background: var(--blue); color: white; }
.road-strip { display: flex; align-items: center; gap: clamp(20px,4vw,66px); padding: .6rem 1.15rem; background: var(--light); border-bottom: 2px solid var(--navy); }
.road-strip h2 { display: flex; align-items: center; gap: .6rem; font-size: .96rem; white-space: nowrap; }
.road-strip div { display: flex; flex-wrap: wrap; gap: 0 1.55rem; }
.road-strip a { display: inline-flex; gap: .25rem; align-items: center; min-height: 36px; font-size: .85rem; }
.directory-lower { display: grid; grid-template-columns: minmax(0,2fr) minmax(215px,1fr); gap: clamp(36px,6vw,92px); padding-top: clamp(34px,4vw,64px); }
.table-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding-bottom: .8rem; border-bottom: 2px solid var(--navy); }
.table-heading h2 { font-size: clamp(1.55rem,2.4vw,2.2rem); }
.table-heading > span { color: var(--muted); font: .71rem var(--mono); }
.directory-lower ul { list-style: none; padding: 0; }
.city-list { columns: 2; column-gap: clamp(18px,3vw,44px); }
.directory-lower li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.directory-lower li a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; color: var(--navy); font-size: .96rem; font-weight: 650; }
.directory-lower li a:hover { color: var(--blue); text-decoration: underline; }
.directory-lower li span { color: var(--blue); }
@media (max-width: 850px) {
  .chart-board { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .port-report { padding-left: 21px; }
  .chart-key { flex-wrap: wrap; padding: .6rem; font-size: .62rem; gap: .55rem; }
}
@media (max-width: 720px) {
  .chart-heading { align-items: flex-start; flex-wrap: wrap; gap: .2rem .5rem; padding: 19px 0 12px; }
  .chart-heading h1 { font-size: clamp(2rem,7vw,3rem); }
  .chart-heading p { font-size: .9rem; margin-top: .28rem; }
  .index-jump { display: inline-flex; min-height: 36px; padding: .1rem 0; font-size: .8rem; }
  .chart-board { grid-template-columns: 1fr; }
  .station-strip { display: block; grid-row: 1; }
  .strip-caption { display: flex; justify-content: space-between; padding: .6rem 0 .45rem; color: var(--muted); font: 650 .62rem var(--mono); letter-spacing: .065em; text-transform: uppercase; }
  .strip-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .strip-stop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; cursor: pointer; background: var(--light); color: var(--navy); font: 700 clamp(.78rem,3.3vw,1rem)/1.1 var(--display); text-transform: uppercase; }
  .strip-stop + .strip-stop { border-left: 1px solid #c3d9e4; }
  .strip-stop span { font: 600 .58rem/1 var(--mono); }
  #port-weirton:checked ~ .station-strip label[for="port-weirton"],
#port-wheeling:checked ~ .station-strip label[for="port-wheeling"],
#port-parkersburg:checked ~ .station-strip label[for="port-parkersburg"],
#port-huntington:checked ~ .station-strip label[for="port-huntington"] { color: white; background: var(--navy); box-shadow: inset 0 -3px var(--signal); }
  .port-report { grid-row: 2; padding: 1.15rem 0; }
  .port-register { font-size: .64rem; }
  .port-heading h2 { font-size: 2.6rem; margin: .35rem 0 .15rem; }
  .port-heading p { font-size: .8rem; }
  .port-heading { padding-bottom: .6rem; }
  .operator { padding: .64rem 0 .38rem; }
  .operator-kind { font-size: .61rem; }
  .operator h3 { font-size: 1.13rem; margin-top: .3rem; }
  .operator p { font-size: .88rem; margin: .2rem 0 0; }
  .operator-link { display: inline-flex; align-items: center; min-height: 44px; gap: .3rem; }
  .chart-map { grid-row: 3; }
  .plot { height: auto; aspect-ratio: 600 / 620; }
  .chart-key { min-height: 36px; font-size: .62rem; }
  .stop-tag { font-size: clamp(.83rem,3.65vw,1.25rem); }
  .plot-stop { padding-left: 12px; }
  .plot-stop::before { width: 12px; }
  .plot-stop i { width: 12px; height: 12px; }
  .road-strip { align-items: flex-start; flex-direction: column; gap: 0; padding: .75rem .85rem; }
  .road-strip div { gap: 0 1rem; }
  .road-strip a { min-height: 44px; }
  .directory-lower { grid-template-columns: 1fr; gap: 2rem; }
}
@media (forced-colors: active) {
  .plot-stop i, .signal { border: 3px solid ButtonText; }
  .plot-stop .stop-tag, .strip-stop { border: 1px solid ButtonText; }
  #port-weirton:checked ~ .chart-map label[for="port-weirton"],
#port-wheeling:checked ~ .chart-map label[for="port-wheeling"],
#port-parkersburg:checked ~ .chart-map label[for="port-parkersburg"],
#port-huntington:checked ~ .chart-map label[for="port-huntington"], #port-weirton:checked ~ .station-strip label[for="port-weirton"],
#port-wheeling:checked ~ .station-strip label[for="port-wheeling"],
#port-parkersburg:checked ~ .station-strip label[for="port-parkersburg"],
#port-huntington:checked ~ .station-strip label[for="port-huntington"] { outline: 3px double Highlight; }
}
