/* A single sensor moves from the centre to the chosen side. */
:where([data-section="route"]) .rnav{position:absolute;left:50%;top:calc(30% + clamp(32px,4vh,56px));z-index:3;display:flex;align-items:center;gap:15px;width:230px;min-height:78px;padding:17px 21px;box-sizing:border-box;transform:translate(-50%,-50%);border:1px solid rgba(63,214,143,.55);border-radius:10px;background:rgba(16,40,32,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#a9f3cd;pointer-events:none;opacity:0;transition:opacity .25s ease}
:where([data-section="route"]) .rnav__sensor{position:relative;display:block;flex:0 0 30px;width:30px;height:30px}
:where([data-section="route"]) .rnav__sensor i{position:absolute;inset:0;border:1px solid rgba(63,214,143,.25);border-radius:50%}
:where([data-section="route"]) .rnav__sensor i:nth-child(2){inset:5px;border-color:rgba(63,214,143,.45)}
:where([data-section="route"]) .rnav__sensor i:nth-child(3){inset:10px;border-color:#3fd68f}
:where([data-section="route"]) .rnav__sensor b{position:absolute;inset:13px;border-radius:50%;background:#b4ffdc;box-shadow:0 0 12px #3fd68f}
:where([data-section="route"]) .rnav__instruction{display:flex;align-items:center;gap:10px;white-space:nowrap}
:where([data-section="route"]) .rnav__instruction svg{width:25px;height:25px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:where([data-section="route"]) .rnav__instruction strong{font:600 17px/1.2 "Instrument Sans",sans-serif;letter-spacing:-.02em}
:where([data-section="route"]) .rnav__accessible{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){
  :where([data-section="route"]) .rnav{top:29%;width:208px;min-height:68px;padding:14px 16px;gap:10px}
  :where([data-section="route"]) .rnav__instruction strong{font-size:16px}
}
@media(prefers-reduced-motion:reduce){:where([data-section="route"]) .rnav{transition:none}}
html:not(.js) :where([data-section="route"]) .rnav{display:none}

/* The module explanation follows Buying's cumulative caption treatment. */
:where([data-section="route"]) .rcaps{position:absolute;left:50%;top:calc(30% - clamp(118px,16vh,178px));transform:translateX(-50%);z-index:3;pointer-events:none;text-align:center;max-width:min(1040px,86vw);opacity:0;transition:opacity .6s ease;display:grid;gap:clamp(5px,1vh,9px)}
:where([data-section="route"]) .rcaps p{margin:0;font-size:clamp(1.05rem,1.6vw,1.5rem);font-weight:500;letter-spacing:-.015em;color:var(--muted2);transition:color .55s ease,opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1);opacity:0;transform:translateY(9px);max-width:none}
:where([data-section="route"]) .rcaps p.is-past{opacity:.5;transform:none}
:where([data-section="route"]) .rcaps p.is-on{color:var(--text);opacity:1;transform:none}
@media(max-width:700px){
  :where([data-section="route"]) .rcaps{top:clamp(104px,11vh,126px)}
  :where([data-section="route"]) .rcaps p{font-size:.86rem}
}
@media(max-height:520px) and (min-width:701px){
  :where([data-section="route"]) .rcaps{top:14px}
  :where([data-section="route"]) .rcaps p{font-size:.9rem}
}
html:not(.js) :where([data-section="route"]) .rcaps{display:none}

/* Route savings: the four figures the road markers point at, spelled out in one place with a total.
   It takes the top-left under the module title once the comparison view has pulled back. */
:where([data-section="route"]) .rsum{position:absolute;left:clamp(16px,3vw,30px);top:clamp(196px,24vh,236px);width:clamp(320px,27vw,430px);z-index:4;overflow:hidden;pointer-events:none;opacity:0;transform:translateY(-14px);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.7,.2,1);font-family:'Instrument Sans',sans-serif;color:#e5ebee;border-radius:12px;background:rgba(17,21,28,.97);border:1px solid rgba(63,214,143,.42);box-shadow:0 22px 60px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.05)}
:where([data-section="route"]) .rsum::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:var(--accent)}
:where([data-section="route"]) .rsum.is-on{opacity:1;transform:none}
:where([data-section="route"]) .rsum__head{display:flex;align-items:center;gap:8px;margin:0;padding:17px 20px 0;font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#9fb3ab}
:where([data-section="route"]) .rsum__head i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px var(--accent)}
:where([data-section="route"]) .rsum__total{display:flex;align-items:flex-end;gap:28px;padding:9px 20px 14px;border-bottom:1px solid rgba(255,255,255,.1);opacity:.5;transition:opacity .45s ease}
:where([data-section="route"]) .rsum.is-total .rsum__total{opacity:1}
:where([data-section="route"]) .rsum__total b{display:block;font-size:clamp(1.8rem,2.4vw,2.4rem);font-weight:600;line-height:1;letter-spacing:-.035em;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
:where([data-section="route"]) .rsum__total div+div b{color:#a6e9c8}
:where([data-section="route"]) .rsum__total small{display:block;margin-top:5px;font-size:.72rem;line-height:1.2;color:#9fb3ab}
:where([data-section="route"]) .rsum__rows{list-style:none;margin:0;padding:5px 0 3px}
:where([data-section="route"]) .rsum__rows li{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:12px;padding:9px 20px;opacity:.26;transition:opacity .4s ease}
:where([data-section="route"]) .rsum__rows li+li{border-top:1px solid rgba(255,255,255,.07)}
:where([data-section="route"]) .rsum__rows li.is-on{opacity:1}
:where([data-section="route"]) .rsum__n{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#8debb8;color:#10161c;font-size:.8rem;font-weight:700;line-height:1}
:where([data-section="route"]) .rsum__label{display:flex;flex-direction:column;min-width:0;font-size:.92rem;font-weight:600;line-height:1.2;letter-spacing:-.01em;color:#eef2f0}
:where([data-section="route"]) .rsum__label small{margin-top:2px;font-size:.72rem;font-weight:400;line-height:1.25;color:#93a3a9}
:where([data-section="route"]) .rsum__rows b{font-size:1.2rem;font-weight:600;letter-spacing:-.02em;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
:where([data-section="route"]) .rsum__note{display:block;padding:8px 20px 13px;border-top:1px solid rgba(255,255,255,.1);font-size:.66rem;line-height:1.3;color:#8a9aa0}
@media(max-width:1440px) and (min-width:701px){
  :where([data-section="route"]) .rsum__label small{font-size:.68rem}
}
@media(max-width:1050px){
  :where([data-section="route"]) .rsum{width:min(340px,33vw)}
  :where([data-section="route"]) .rsum__rows li{padding:8px 16px}
  :where([data-section="route"]) .rsum__head,:where([data-section="route"]) .rsum__total,:where([data-section="route"]) .rsum__note{padding-left:16px;padding-right:16px}
}
@media(max-width:700px){
  :where([data-section="route"]) .rsum{left:12px;right:12px;top:204px;width:auto}
  :where([data-section="route"]) .rsum__head{padding:11px 14px 0;font-size:.6rem}
  :where([data-section="route"]) .rsum__total{gap:18px;padding:4px 14px 9px}
  :where([data-section="route"]) .rsum__total b{font-size:1.35rem}
  :where([data-section="route"]) .rsum__total small{margin-top:3px;font-size:.62rem}
  :where([data-section="route"]) .rsum__rows{display:grid;grid-template-columns:1fr 1fr;padding:0}
  :where([data-section="route"]) .rsum__rows li{grid-template-columns:20px 1fr;column-gap:8px;row-gap:2px;padding:8px 14px}
  :where([data-section="route"]) .rsum__rows li+li{border-top:0}
  :where([data-section="route"]) .rsum__rows li:nth-child(n+3){border-top:1px solid rgba(255,255,255,.07)}
  :where([data-section="route"]) .rsum__rows li:nth-child(even){border-left:1px solid rgba(255,255,255,.07)}
  :where([data-section="route"]) .rsum__n{grid-column:1;grid-row:1;width:20px;height:20px;font-size:.66rem}
  :where([data-section="route"]) .rsum__rows b{grid-column:2;grid-row:1;font-size:1.05rem}
  :where([data-section="route"]) .rsum__label{grid-column:1/-1;grid-row:2;font-size:.68rem;font-weight:500;color:#aebbb6}
  :where([data-section="route"]) .rsum__label small,:where([data-section="route"]) .rsum__note{display:none}
}
@media(max-height:600px) and (min-width:701px){
  :where([data-section="route"]) .rsum{top:118px;width:min(340px,30vw)}
  :where([data-section="route"]) .rsum__rows li{padding:6px 18px}
  :where([data-section="route"]) .rsum__label small,:where([data-section="route"]) .rsum__note{display:none}
}
@media(prefers-reduced-motion:reduce){:where([data-section="route"]) .rsum,:where([data-section="route"]) .rsum__rows li,:where([data-section="route"]) .rsum__total{transition:none}}
html:not(.js) :where([data-section="route"]) .rsum{display:none}
