#hub-and-spoke, #acces-via-hub, #liaisons-sortantes { scroll-margin-top: 100px; }
.ow-hub-note, .ow-hub-security {
  padding: 16px clamp(16px, 2.5vw, 28px);
  border-inline-start: 3px solid #287da3;
  background: #eff6fa;
  color: #173c57;
}
.ow-hub-note { margin-block: 24px; }
.ow-hub-note p, .ow-hub-security > p { margin: 0; max-width: 80ch; line-height: 1.65; }
.ow-hub-note a, .ow-hub-text a, .ow-hub-security a, #parcours .ow-hub-shortcut {
  color: #115779; font-weight: 650; text-decoration: underline; text-underline-offset: .18em;
}
.ow-hub-note a:focus-visible, .ow-hub-text :focus-visible, .ow-hub-security a:focus-visible,
#parcours .ow-hub-shortcut:focus-visible { outline: 3px solid #14779e; outline-offset: 3px; }
.ow-hub-section {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center; gap: clamp(28px, 4vw, 64px);
}
.ow-hub-text > p, .ow-hub-security > p { color: #35556c; font-size: 1rem; line-height: 1.7; }
.ow-hub-text .ow-hub-kicker, .ow-hub-security .ow-hub-kicker {
  color: #145f7e; margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ow-hub-text h2, .ow-hub-security h2 { color: #103653; margin: 0 0 16px; text-wrap: balance; }
.ow-hub-text > p + p, .ow-hub-security > p + p { margin-top: 12px; }
.ow-hub-text details { margin: 16px 0 9px; border-block: 1px solid #c2d6e3; }
.ow-hub-text summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 650; color: #164b6b; }
.ow-hub-text details p { margin: 0 0 14px; color: #35556c; }
.ow-hub-text > a, .ow-hub-security > a { display: inline-block; padding: 9px 0; }
.ow-hub-security { margin: 0 0 32px; }
.ow-hub-figure {
  box-sizing: border-box; min-width: 0; margin: 0; padding: clamp(14px, 2.2vw, 28px);
  border: 1px solid #c3d8e5; border-radius: 14px; background: #f6fafc; color: #163d59;
}
.ow-hub-figure figcaption { margin: 0 0 14px; font-weight: 700; font-size: 1.15rem; }
.ow-hub-picker {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6px;
  min-inline-size: 0; margin: 0; padding: 0; border: 0;
}
.ow-hub-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); border: 0; white-space: nowrap;
}
.ow-hub-radio + label {
  display: flex; align-items: center; justify-content: center; gap: .35em; min-height: 44px;
  padding: 0 .35em; border: 1px solid #b7cddc; border-radius: 7px; background: #fff;
  color: #304f67; font: inherit; font-size: .89rem; font-weight: 650; cursor: pointer;
}
.ow-hub-radio + label:hover { border-color: #5185a0; }
.ow-hub-radio:checked + label { background: #153f60; color: #fff; border-color: #153f60; }
.ow-hub-radio:focus-visible + label { outline: 3px solid #117397; outline-offset: 2px; }
.ow-hub-map {
  --left-site: 12%; --right-site: 88%; --hub-level: 30%; --bottom-site: 83%;
  position: relative; grid-column: 1 / -1; isolation: isolate; height: 11.6rem; margin: 8px 0;
}
/* Each spoke has a single leg to the hub. A selected journey lights up two of them. */
:is(#ow-pair-ab, #ow-pair-ac):checked ~ .ow-hub-map [data-site="a"],
:is(#ow-pair-ab, #ow-pair-bc):checked ~ .ow-hub-map [data-site="b"],
:is(#ow-pair-ac, #ow-pair-bc):checked ~ .ow-hub-map [data-site="c"] {
  --leg-color: #14759c; --leg-style: solid; --site-bg: #e9f5fa; --arrow-display: block;
}
.ow-hub-leg { position: absolute; top: var(--hub-level); border-top: 2px var(--leg-style, dashed) var(--leg-color, #a6bac8); }
.ow-hub-leg[data-site="a"] { left: var(--left-site); right: 50%; }
.ow-hub-leg[data-site="b"] { left: 50%; right: calc(100% - var(--right-site)); }
.ow-hub-leg[data-site="c"] {
  left: 50%; height: calc(var(--bottom-site) - var(--hub-level)); border-top: 0;
  border-left: 2px var(--leg-style, dashed) var(--leg-color, #a6bac8);
}
.ow-hub-leg::after {
  content: "↔"; display: var(--arrow-display, none); position: absolute; top: -1px; left: 42%;
  transform: translate(-50%, -50%); color: var(--leg-color); background: #f6fafc;
  font: 700 1rem/1 Arial, sans-serif;
}
.ow-hub-leg[data-site="b"]::after { left: 58%; }
.ow-hub-leg[data-site="c"]::after { content: "↕"; left: -1px; top: 60%; }
.ow-hub-site, .ow-hub-central {
  box-sizing: border-box; position: absolute; z-index: 2; top: var(--hub-level);
  transform: translate(-50%, -50%); text-align: center; line-height: 1.25;
}
.ow-hub-site {
  width: clamp(68px, 23%, 106px); padding: 10px 3px; border: 1px solid var(--leg-color, #a6bac8); border-radius: 7px;
  hyphens: auto; overflow-wrap: anywhere;
  background: var(--site-bg, #fff); color: #153f60; font-size: .88rem; font-weight: 650;
}
.ow-hub-site[data-site="a"] { left: var(--left-site); }
.ow-hub-site[data-site="b"] { left: var(--right-site); }
.ow-hub-site[data-site="c"] { left: 50%; top: var(--bottom-site); }
.ow-hub-central { left: 50%; width: 35%; max-width: 166px; padding: 12px 5px; border-radius: 9px; background: #123e61; }
.ow-hub-node, .ow-hub-regies { display: block; text-wrap: balance; hyphens: auto; overflow-wrap: anywhere; }
.ow-hub-node { color: #fff; font-size: .98rem; }
.ow-hub-regies { margin-top: 4px; color: #e5f4fc; font-size: .76rem; }
.ow-hub-readout {
  grid-column: 1 / -1; margin: 0; padding: 12px 0 0; border-top: 1px solid #c8dae5; text-align: center;
}
.ow-hub-chain { display: inline-flex; align-items: baseline; justify-content: center; gap: .48em; color: #163d59; font-size: .9rem; line-height: 1.4; }
.ow-hub-chain b { font-weight: 600; }
.ow-hub-chain i { color: #186e91; font-style: normal; }
.ow-hub-journey, .ow-hub-packet { display: none; }
#ow-pair-ab:checked ~ .ow-hub-readout [data-pair="ab"],
#ow-pair-ac:checked ~ .ow-hub-readout [data-pair="ac"],
#ow-pair-bc:checked ~ .ow-hub-readout [data-pair="bc"] { display: block; }
/* One round trip per selection, on the same two legs as the static route. */
@media (prefers-reduced-motion: no-preference) {
  .ow-hub-packet {
    --from-x: var(--left-site); --to-x: 50%; --to-y: var(--bottom-site);
    position: absolute; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: #00638b;
    box-shadow: 0 0 0 3px #daf1fc; transform: translate(-50%, -50%);
  }
  .ow-hub-packet[data-pair="ab"] { --to-x: var(--right-site); --to-y: var(--hub-level); }
  .ow-hub-packet[data-pair="bc"] { --from-x: var(--right-site); }
  :root:not(.motion-paused) #ow-pair-ab:checked ~ .ow-hub-map [data-pair="ab"],
  :root:not(.motion-paused) #ow-pair-ac:checked ~ .ow-hub-map [data-pair="ac"],
  :root:not(.motion-paused) #ow-pair-bc:checked ~ .ow-hub-map [data-pair="bc"] { display: block; animation: ow-hub-trip 4.4s linear both; }
  @keyframes ow-hub-trip {
    0%, 100% { left: var(--from-x); top: var(--hub-level); }
    23%, 27%, 73%, 77% { left: 50%; top: var(--hub-level); }
    48%, 52% { left: var(--to-x); top: var(--to-y); }
  }
}
@media (forced-colors: active) {
  .ow-hub-central { border: 1px solid CanvasText; }
  .ow-hub-radio:checked + label { outline: 2px solid Highlight; outline-offset: -3px; }
  .ow-hub-radio:focus-visible + label { outline: 3px solid Highlight; outline-offset: 2px; }
}
@media (max-width: 860px) {
  .ow-hub-section { grid-template-columns: 1fr; gap: 18px; }
  .ow-hub-figure { width: 100%; max-width: 620px; }
}
