.network-journey-page { background:#f8faff; }
.journey-topic { --journey-blue:#075fd1; --journey-ink:#122946; --journey-sub:#45617e; --journey-line:#dbe6f3; color:var(--journey-ink); }
.journey-topic [id] { scroll-margin-top:96px; }
.journey-intro { padding:17px 0 19px; }
.journey-intro-nav { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.journey-intro .breadcrumbs ol { margin:0; }
.journey-intro h1 { margin:8px 0 5px; font-size:clamp(30px,4.3vw,55px); font-weight:770; line-height:1.14; letter-spacing:-.035em; }
.journey-intro h1 span { color:#0767db; }
.journey-intro > .wrap > p { margin:0; color:var(--journey-sub); font-size:clamp(14px,1.6vw,16px); }
.journey-read-jump { flex:none; color:var(--journey-blue); font-size:13px; font-weight:650; }
.journey-read-jump:hover { text-decoration:underline; }
.journey-eyebrow { margin:0; color:var(--journey-blue); font-size:12px; font-weight:720; letter-spacing:.045em; }

.journey-console {
  display:grid; grid-template-columns:minmax(0,1fr) 296px; grid-template-rows:auto minmax(0,1fr) auto auto;
  grid-template-areas:"stage scenarios" "stage inspector" "controls inspector" "stops stops";
  border:1px solid #ccddef; border-radius:14px; background:#fff; box-shadow:0 14px 42px -28px #1f5ca669;
}
.journey-scenarios { grid-area:scenarios; padding:18px 15px 15px; border-bottom:1px solid var(--journey-line); }
.journey-scenarios h2 { margin:0 0 8px; font-size:15px; line-height:1.3; }
.journey-scenarios p { margin:8px 0 0; color:var(--journey-sub); font-size:13px; line-height:1.55; }
.journey-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px; padding:3px; border-radius:7px; background:#eff4fb; }
.journey-modes button, .journey-controls button {
  display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:3px 7px;
  border:1px solid transparent; border-radius:5px; background:transparent; color:#324e70;
  font-size:13px; font-weight:700; white-space:nowrap;
}
.journey-modes button:disabled { cursor:default; }
.journey-modes button[aria-pressed="true"] { color:#075bbd; background:#fff; border-color:#d2e3f7; box-shadow:0 1px 3px #0e428215; }
.journey-modes button:not(:disabled):hover, .journey-view-buttons button:hover { color:#075bbd; background:#fff; }

.journey-stage {
  grid-area:stage; position:relative; min-width:0; min-height:clamp(330px,29vw,402px);
  isolation:isolate; overflow:hidden; border-right:1px solid var(--journey-line); border-radius:13px 0 0 0;
  background:radial-gradient(ellipse at 52% 40%,#fcfdff 12%,#edf5ff 83%,#e9f1fc 100%);
}
.journey-canvas, .journey-labels { position:absolute; inset:0; width:100%; height:100%; }
.journey-canvas { touch-action:pan-y pinch-zoom; cursor:grab; }
.journey-canvas.is-dragging { cursor:grabbing; }
.journey-canvas:focus-visible { outline:3px solid #0866e9; outline-offset:-4px; }
.journey-labels { pointer-events:none; }
.journey-map-pin rect { fill:#fff; stroke:#97b7df; }
.journey-map-pin text { fill:#234b78; font:700 12px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; }
.journey-map-pin.is-off-route rect { fill:#f1f5fa; stroke:#b1bfd0; }
.journey-map-pin.is-selected rect { fill:#075fd1; stroke:#fff; stroke-width:1.5; }
.journey-map-pin.is-selected text { fill:#fff; }
.journey-pin-number, .journey-labels.has-compact-pins .journey-pin-name { display:none; }
.journey-labels.has-compact-pins .journey-pin-number { display:block; }
.journey-labels.has-compact-pins .journey-map-pin rect { x:-15px; width:30px; }
.journey-equipment-pin line { stroke:#1c65bb; stroke-width:1.1; }
.journey-equipment-pin rect { fill:#f7fbff; stroke:#a3c4eb; }
.journey-equipment-pin text { fill:#183f70; font:700 11px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif; }
.journey-viewport-key {
  position:absolute; inset:9px auto auto 10px; color:#3e5672; background:#f7fbffed;
  padding:5px 7px; border-radius:5px; font-size:11px; font-weight:650; pointer-events:none;
}
.journey-viewport-key > div { display:flex; flex-wrap:wrap; gap:4px 9px; }
.journey-viewport-key i { display:inline-block; width:13px; height:3px; margin-right:3px; border-radius:3px; background:#0a72eb; vertical-align:3px; }
.journey-route-key span:nth-child(2) i { background:#9fb5cc; }
.journey-viewport-key .journey-equipment-key, .journey-viewport-key .journey-home-key,
.journey-stage.is-detail .journey-route-key, .journey-stage.is-home-detail .journey-equipment-key { display:none; }
.journey-stage.is-detail:not(.is-home-detail) .journey-equipment-key, .journey-stage.is-home-detail .journey-home-key { display:flex; }
.journey-home-key span:first-child i { background:repeating-linear-gradient(90deg,#3188c5 0 3px,transparent 3px 5px); }
.journey-home-key span:nth-child(2) i { background:#2873c9; }
.journey-home-key span:nth-child(3) i { background:#b87613; }
.journey-static { position:absolute; inset:0; display:grid; justify-items:center; align-content:center; padding:12px; }
.journey-static p { margin:7px 0 0; color:var(--journey-sub); text-align:center; font-size:12px; }
.journey-map { width:min(100%,710px); max-height:83%; }
.journey-map-label { fill:#284665; font-size:15px; font-weight:700; }
.journey-map-line { fill:none; stroke:#a1b6cf; stroke-width:3; stroke-linejoin:round; }
.journey-map-bypass { stroke-dasharray:5 6; }
.journey-map-line.is-in-route { stroke:#1376e7; stroke-width:4; }
.journey-map [data-static-stop].is-selected rect { fill:#e4f0ff; stroke:#1267d6; stroke-width:2; }

.journey-controls { grid-area:controls; display:flex; align-items:center; gap:9px; padding:5px 12px; border-top:1px solid var(--journey-line); border-right:1px solid var(--journey-line); }
.journey-controls .journey-play { min-width:90px; background:var(--journey-blue); color:#fff; }
.journey-controls .journey-play:hover { background:#074ba3; }
.journey-view-buttons { display:flex; gap:1px; flex:none; padding:1px 3px; border-radius:6px; background:#f1f5fb; }
.journey-view-buttons button { min-width:37px; }
.journey-view-buttons button[data-overview] { padding-inline:9px; }
.journey-view-buttons button[data-zoom] { font-size:18px; }
.journey-trip { margin-left:auto; color:#365e88; font-size:12px; font-weight:650; }
.journey-stops {
  grid-area:stops; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; padding:4px 9px;
  border-top:1px solid var(--journey-line); border-radius:0 0 13px 13px; background:#f6f9fe;
}
.journey-stops a {
  display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:4px 3px;
  border:1px solid transparent; border-radius:5px; color:#294d73; line-height:1.22; font-size:clamp(11px,1.15vw,14px);
}
.journey-stops a b { font:750 11px ui-monospace,monospace; color:#4b6c94; }
.journey-stops a:hover { background:#ebf3fd; }
.journey-stops a.is-off-route:not(.is-selected) { color:#536982; }
.journey-stops a.is-off-route:not(.is-selected) b { color:#63788f; }
.journey-stops a.is-selected { border-color:#b6d5f9; background:#e8f2ff; color:#0757b6; }
.journey-stops a.is-selected b { color:#0757b6; }
.journey-inspector { grid-area:inspector; min-width:0; padding:16px 15px 17px; }
.journey-inspector h3 { margin:5px 0 7px; font-size:21px; line-height:1.3; }
.journey-inspector p:not(.journey-eyebrow) { margin:0; color:#395675; font-size:14px; line-height:1.67; }
.journey-inspector > div:nth-child(2) { display:grid; justify-items:start; gap:9px; margin-top:13px; font-size:13px; }
.journey-inspector strong { padding:5px 8px; border-radius:4px; background:#edf5ff; color:#245483; font-size:12px; }
.journey-inspector a { color:#075dbd; text-decoration:underline; text-underline-offset:3px; }
.journey-caption { margin:7px 0 0; color:var(--journey-sub); font-size:12px; }

.journey-article { display:grid; grid-template-columns:165px minmax(0,748px); gap:clamp(22px,4.5vw,64px); justify-content:center; margin-block:35px 60px; padding-top:24px; border-top:1px solid var(--journey-line); }
.journey-contents { position:sticky; top:99px; align-self:start; padding:1px 0 0 13px; border-left:2px solid #d6e7fc; }
.journey-contents strong { display:block; margin-bottom:7px; color:#153758; }
.journey-contents nav { display:grid; gap:3px; }
.journey-contents a { display:block; padding:3px 0; color:#416182; font-size:13px; }
.journey-contents a:hover { color:var(--journey-blue); text-decoration:underline; }
.journey-reading h2 { margin:0 0 9px; font-size:clamp(24px,3vw,34px); line-height:1.25; letter-spacing:-.025em; }
.journey-reading h3 { margin:3px 0 7px; font-size:clamp(19px,2.5vw,25px); line-height:1.33; }
.journey-reading p:not(.journey-eyebrow) { margin:0 0 8px; color:#385371; }
.journey-reading p.journey-lead { margin-bottom:18px; }
.journey-dns { padding:15px 18px; border-left:3px solid #99c7ff; border-radius:0 7px 7px 0; background:#edf6ff; }
.journey-dns-flow, .journey-origin-chain { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:10px; color:#244e7d; font-size:13px; }
.journey-dns-flow strong, .journey-origin-chain strong { padding:3px 7px; border:1px solid #cce0f8; border-radius:4px; background:#fff; }
.journey-chapter { display:grid; grid-template-columns:33px minmax(0,1fr); gap:11px; padding:17px 0 10px; border-bottom:1px solid #dbe8f6; }
.journey-chapter-index { margin-top:1px; color:#0968d8; font:750 17px/1.4 ui-monospace,monospace; }
.journey-dns-flow { align-items:start; column-gap:14px; }
.journey-dns-flow strong { margin-right:4px; }
.journey-reading .journey-dns-flow p { margin:0; }
.journey-origin-chain { margin:8px 0 4px; }
.journey-faq, .journey-references { margin-top:24px; }
.journey-faq h2, .journey-references h2 { font-size:23px; }
.journey-references ul { padding-left:20px; }
.journey-references li { margin:4px 0; }
.journey-references li a { color:#075bb9; text-decoration:underline; text-underline-offset:2px; }
.journey-references p.journey-byline { margin-top:14px; font-size:13px; }

@media (max-width:980px) {
  .journey-console { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; grid-template-areas:"scenarios" "stage" "controls" "stops" "inspector"; }
  .journey-scenarios { display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:9px; align-items:center; padding:8px 11px; }
  .journey-scenarios h2, .journey-scenarios p { margin:0; }
  .journey-stage { min-height:clamp(294px,44vw,400px); border-radius:0; border-right:0; }
  .journey-controls { border-right:0; }
  .journey-stops { border-radius:0; }
  .journey-inspector { border-top:1px solid var(--journey-line); }
  .journey-inspector > div:nth-child(2) { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-top:7px; }
}
@media (max-width:720px) {
  .journey-intro { padding:11px 0 13px; }
  .journey-intro h1 { font-size:clamp(26px,7vw,38px); margin-top:6px; }
  .journey-read-jump { font-size:12px; }
  .journey-scenarios { display:block; padding:8px; }
  .journey-scenarios h2 { margin:0 0 4px 2px; font-size:13px; }
  .journey-scenarios p { margin:5px 2px 0; font-size:12px; }
  .journey-modes button { min-height:42px; font-size:12px; }
  .journey-stage { min-height:clamp(216px,57vw,340px); }
  .journey-viewport-key { inset:5px auto auto 6px; font-size:10px; }
  .journey-map-label { font-size:19px; }
  .journey-controls { flex-wrap:wrap; gap:5px; padding:5px 8px; }
  .journey-controls button { min-height:42px; font-size:12px; }
  .journey-controls .journey-play { min-width:72px; }
  .journey-view-buttons button { min-width:34px; }
  .journey-trip { margin-left:auto; font-size:11px; }
  .journey-stops { grid-template-columns:repeat(4,minmax(0,1fr)); padding:4px; gap:2px; }
  .journey-stops a { flex-wrap:wrap; gap:2px; min-height:44px; padding:4px 2px; }
  .journey-stops a b { font-size:10px; }
  .journey-inspector { padding:10px 11px 12px; }
  .journey-inspector h3 { margin:3px 0 5px; font-size:18px; }
  .journey-inspector > div:nth-child(2) { justify-content:flex-start; column-gap:12px; }
  .journey-article { display:block; margin-block:23px 45px; padding-top:17px; }
  .journey-contents { display:none; }
  .journey-dns { padding:12px; }
  .journey-chapter { grid-template-columns:27px minmax(0,1fr); gap:8px; }
}
@media (max-width:420px) {
  .journey-trip { flex:1 0 100%; margin-left:2px; }
  .journey-stops a { flex-direction:column; }
}
@media (max-width:360px) {
  .journey-inspector > div:nth-child(2) { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) {
  .journey-topic *, .journey-topic *::before, .journey-topic *::after { scroll-behavior:auto; transition:none; }
}
