/* Shared website presentation. Planner data and rendering remain unchanged. */
@media screen {
  body { background: radial-gradient(circle at 90% 8%, #def5fc 0, transparent 34rem), linear-gradient(180deg, #f4fcff, #edf9fc); }
  .topbar h1, .topbar .brand-title, .intro-copy h2, .results-heading h2, .plan-banner h3, .empty-state h2, .booking-checks h2, .install-dialog h2 { font-family: inherit; font-weight: 800; }
  .topbar h1, .topbar .brand-title { letter-spacing: -.045em; }
  .intro-strip { display: block; min-height: 290px; background: #0586af; border-radius: 26px; }
  .intro-copy { max-width: 68%; padding: 38px 42px; }
  .intro-copy::after { display: none; }
  .intro-copy .section-kicker { color: #e5f8ff; }
  .intro-copy h2 { max-width: 740px; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.12; text-wrap: balance; }
  .intro-copy p:last-child { max-width: 610px; color: white; font-size: 1.05rem; line-height: 1.5; }
  .aegean-photo { position: absolute; inset: 0; margin: 0; opacity: 1; }
  .aegean-photo::before { background: linear-gradient(90deg, rgba(0,91,135,.64) 0%, rgba(0,108,147,.2) 51%, transparent 75%); }
  .aegean-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: right bottom; }
  .workspace { gap: 22px; margin-top: 22px; }
  .planner-panel, .results-panel { border-color: #d6eef6; background: #fff; box-shadow: 0 8px 30px rgba(8,124,164,.06); }
  .planner-panel { padding: 24px; }
  .results-panel { padding: 26px; }
  .planner-step-title { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; font-size: 1.05rem; font-weight: 800; line-height: 1.4; }
  .control-group legend.planner-step-title, .field-label.planner-step-title { display: flex; font-size: 1.05rem; }
  .step-number { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #075985; background: #dff4fb; font-size: 1.1rem; font-weight: 850; }
  .segmented { border-color: #c6e7f2; background: #f5fbfe; }
  .segmented input:checked + span { background: linear-gradient(130deg, #087ca4, #075985); }
  .trip-length-input-wrap { display: grid; grid-template-columns: 44px minmax(70px,1fr) 44px auto; align-items: center; gap: 8px; }
  .trip-length-number { padding: 0 8px; text-align: center; font-weight: 800; }
  .trip-length-step { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #075985; border: 0; border-radius: 50%; background: #dff4fb; }
  .trip-length-step svg { width: 21px; height: 21px; }
  .trip-length-unit { color: var(--muted); font-size: .82rem; }
  .primary-button, .save-trip-button { border-radius: 14px; background: linear-gradient(120deg, #087ca4, #075985); box-shadow: 0 6px 16px rgba(7,89,133,.14); }
  .island-chip { background: #eaf8ff; border-color: #c8ebf7; }
  .results-heading h2 { line-height: 1.18; }
  .route-tab { background: #f8fcfe; border-color: #d1eaf4; }
  .route-tab[aria-selected="true"] { background: #edf9ff; }
  .tab-topline { flex-wrap: wrap; }
  .recommended-label { margin-left: 0; }
  .plan-overview { overflow: visible; border: 0; background: transparent; }
  .map-heading { background: linear-gradient(120deg, #087ca4, #075985); }
  .plan-banner { align-items: center; border-radius: 18px 18px 0 0; background: linear-gradient(120deg, #087ca4, #075985); }
  .plan-banner h3 { font-size: 1.45rem; line-height: 1.2; }
  .score-ring { width: 66px; height: 66px; border: 3px solid #c9eefa; color: #075985; background: #fff; font-size: 1.5rem; box-shadow: 0 4px 10px rgba(7,89,133,.12); }
  .plan-stats { border: 1px solid #cce9f4; border-top: 0; border-radius: 0 0 16px 16px; background: #fafdff; }
  .plan-stat strong { color: #075985; font-size: 1.15rem; }
  .pacing-note { margin: 14px 0 0; }
  .pacing-note.warning { color: #102f3c; background: #fff0ec; }
  .pacing-note.warning svg { color: #ef7d62; }
  .legs { padding: 0; }
  .legs h4 { margin: 24px 0 14px; font-size: 1.55rem; letter-spacing: -.035em; }
  .leg, .leg:first-of-type { position: relative; isolation: isolate; overflow: hidden; grid-template-columns: 48px minmax(0,1fr) auto; gap: 13px; margin-top: 12px; padding: 18px; border: 1px solid #cbe9f4; border-radius: 18px; background: linear-gradient(130deg, white 62%, #f1fbff); box-shadow: 0 4px 14px rgba(8,124,164,.035); }
  .leg::after { content: ""; position: absolute; z-index: -1; pointer-events: none; right: 10px; bottom: 10px; width: 150px; height: 45px; background: url('/leg-waves.svg') center / contain no-repeat; opacity: .23; }
  .mode-icon { width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; }
  .leg-title { font-size: 1rem; line-height: 1.4; }
  .leg-detail { margin-top: 6px; font-size: .86rem; line-height: 1.55; overflow-wrap: anywhere; }
  .leg-modes { font-size: .86rem; }
  .leg-step-route { font-size: .95rem; }
  .leg-step-info { font-size: .84rem; }
  .leg-time { font-size: .9rem; }
  .leg-badge { padding: 5px 9px; border-radius: 999px; font-size: .67rem; }
  .flight-snapshot { background: #f8fcfe; border-color: #cce9f4; }
  .save-trip-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; margin-top: 20px; padding: 12px 20px; color: white; font-size: 1.1rem; font-weight: 800; text-decoration: none; }
  .save-trip-button svg { flex: none; width: 22px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .save-trip-button:hover { background: #075985; }
  .booking-checks { border-color: #cce9f4; background: #f8fdff; }
  .booking-checks > p { color: var(--muted); }
  .site-footer { position: relative; isolation: isolate; margin-top: 30px; border-radius: 26px; background: linear-gradient(125deg, #075985, #087ca4 62%, #075985); }
  .site-footer::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: 0; right: 0; width: min(330px, 32%); height: 100px; background: url('/footer-waves.svg') top right / 100% auto no-repeat; }
  .site-footer .footer-primary { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(140px,.6fr) minmax(0,1fr); gap: 28px; align-items: start; padding: 52px 32px 22px; }
  .site-footer .footer-brand-lockup { align-items: flex-start; gap: 12px; }
  .site-footer .footer-brand-mark { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; background: transparent; border: 2px solid white; }
  .site-footer .footer-wave { width: 66px; left: -9px; }
  .site-footer .footer-wave-one { top: 29px; }
  .site-footer .footer-wave-two { top: 37px; }
  .site-footer .footer-brand-name { margin: 0 0 6px; font-family: inherit; font-size: clamp(1.18rem,1.8vw,1.55rem); font-weight: 800; letter-spacing: -.04em; }
  .site-footer .footer-tagline { color: #dff4fb; font-size: .84rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .site-footer .footer-site-link { display: inline-block; margin-top: 6px; color: #b9e5f5; font-size: .76rem; text-decoration: none; }
  .site-footer .footer-heading { margin: 0 0 2px; color: white; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
  .site-footer .footer-nav, .site-footer .footer-social { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
  .site-footer .footer-nav span, .site-footer .footer-nav span:last-child { color: #dff4fb; font-size: .85rem; font-weight: 500; }
  .site-footer a { color: inherit; text-decoration: none; }
  .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .site-footer .footer-email { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; color: #dff4fb; font-size: .85rem; overflow-wrap: anywhere; }
  .footer-email svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .site-footer .footer-social-label { margin-top: 0; font-size: .82rem; font-weight: 500; }
  .site-footer .social-button { width: 36px; height: 36px; border-radius: 10px; }
  .site-footer .footer-bottom { display: block; margin: 0 32px; padding: 14px 0 18px; font-size: .74rem; line-height: 1.5; }
  .site-footer .footer-disclaimer { max-width: none; margin-top: 5px; color: #c8e8f4; }
}

@media print {
  .save-trip-button { display: none !important; }
}

@media screen and (max-width: 1050px) {
  .intro-copy { max-width: 73%; padding: 34px; }
  .planner-panel, .results-panel { padding: 22px; }
  .site-footer .footer-primary { gap: 22px; padding: 48px 26px 20px; grid-template-columns: minmax(0,1fr) minmax(135px,.6fr) minmax(0,1fr); }
  .site-footer .footer-brand-lockup { flex-direction: row; }
  .site-footer .footer-bottom { margin: 0 26px; }
  .leg, .leg:first-of-type { grid-template-columns: 44px minmax(0,1fr); padding: 16px; }
  .mode-icon { width: 44px; height: 44px; }
  .leg-time { grid-column: 2; padding-top: 0; }
}

@media screen and (max-width: 820px) {
  .intro-strip { min-height: 300px; }
  .intro-copy { max-width: 85%; padding: 30px; }
  .intro-copy h2 { font-size: 2.2rem; }
  .aegean-photo::before { background: linear-gradient(90deg, rgba(0,91,135,.8), rgba(0,108,147,.5) 58%, rgba(0,108,147,.12)); }
  .site-footer .footer-primary { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .site-footer .footer-brand-lockup { grid-column: 1 / -1; flex-direction: row; }
}

@media screen and (max-width: 580px) {
  .app-shell { padding: 0 12px 22px; }
  .topbar { gap: 8px; min-height: 78px; }
  .brand-lockup { min-width: 0; gap: 8px; }
  .brand-mark { flex: none; width: 38px; height: 42px; }
  .brand-lockup > div:last-child { min-width: 0; }
  .topbar h1 { font-size: clamp(1rem,4.35vw,1.32rem); white-space: nowrap; }
  .topbar .eyebrow { font-size: clamp(.4rem,1.68vw,.58rem); letter-spacing: .03em; }
  .header-actions { gap: 5px; }
  .install-button, .private-badge { width: 42px; min-height: 44px; padding: 9px; }
  .intro-strip { min-height: 0; border-radius: 22px; }
  .intro-copy { max-width: none; padding: 25px 22px 150px; }
  .intro-copy h2 { font-size: clamp(1.7rem,7vw,2.2rem); line-height: 1.13; text-wrap: initial; }
  .intro-copy p:last-child { font-size: .93rem; line-height: 1.5; }
  .aegean-photo { opacity: 1; }
  .aegean-photo img { object-fit: contain; object-position: center bottom; }
  .aegean-photo::before { background: linear-gradient(180deg, rgba(0,91,135,.65), rgba(0,108,147,.3) 52%, transparent 79%); }
  .workspace { gap: 16px; margin-top: 16px; }
  .planner-panel, .results-panel { padding: 18px; border-radius: 22px; }
  .two-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  .two-fields .field-label { font-size: .84rem; }
  .two-fields select { padding-left: 10px; padding-right: 24px; font-size: .82rem; }
  .results-heading h2 { font-size: 1.65rem; }
  .route-tabs { gap: 8px; }
  .route-tab { flex-basis: 76%; padding: 13px; }
  .plan-banner { gap: 10px; padding: 16px; }
  .plan-banner h3 { font-size: 1.15rem; }
  .plan-banner p { font-size: .8rem; line-height: 1.5; }
  .score-ring { width: 54px; height: 54px; font-size: 1.2rem; }
  .plan-stat { padding: 12px 8px; }
  .plan-stat strong { font-size: 1.05rem; }
  .legs { padding: 0; }
  .legs h4 { font-size: 1.4rem; }
  .pacing-note { margin-left: 0; margin-right: 0; }
  .leg, .leg:first-of-type { gap: 10px; grid-template-columns: 38px minmax(0,1fr); padding: 14px 12px; border-radius: 16px; }
  .mode-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .leg-title { font-size: .93rem; }
  .leg-detail { font-size: .82rem; }
  .leg-modes { font-size: .82rem; }
  .leg-step-route { font-size: .9rem; }
  .leg-step-info { font-size: .8rem; }
  .leg-badge { padding: 4px 7px; }
  .booking-checks { padding: 20px; }
  .check-links { flex-wrap: wrap; gap: 10px; }
  .site-footer { border-radius: 22px; }
  .site-footer::before { width: 180px; height: 60px; opacity: .85; }
  .site-footer .footer-primary { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; padding: 60px 20px 18px; }
  .site-footer .footer-brand-lockup { grid-column: auto; gap: 12px; }
  .site-footer .footer-brand-mark { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
  .site-footer .footer-brand-name { font-size: 1.17rem; }
  .site-footer .footer-tagline { font-size: .76rem; }
  .site-footer .footer-heading { font-size: 1.02rem; }
  .site-footer .footer-nav { display: grid; grid-template-columns: repeat(3,max-content); column-gap: 10px; row-gap: 4px; }
  .site-footer .footer-nav .footer-heading { grid-column: 1 / -1; margin-bottom: 0; }
  .site-footer .footer-nav span, .site-footer .footer-nav span:last-child { font-size: .78rem; }
  .site-footer .footer-nav a { display: inline-flex; align-items: center; min-height: 34px; }
  .site-footer .footer-nav span + span { display: flex; align-items: center; gap: 10px; }
  .site-footer .footer-nav span + span::before { content: ""; flex: none; width: 1px; height: 13px; background: rgba(255,255,255,.25); }
  .site-footer .footer-social { width: auto; }
  .site-footer .footer-email { font-size: .81rem; }
  .site-footer .footer-bottom { margin: 0 20px; padding: 12px 0 16px; }
}

/* The original full-width ellipse arcs scale together at every logo size.
   Embed the same vector as favicon.svg so the logo is crisp on first paint. */
@media screen {
  .topbar .brand-mark, .contact-brand-mark, .site-footer .footer-brand-mark {
    background-color: #075985;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2054%2054%22%3E%3Cdefs%3E%3CclipPath%20id%3D%22logo-clip%22%3E%3Crect%20width%3D%2254%22%20height%3D%2254%22%20rx%3D%2217%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cg%20clip-path%3D%22url%28%23logo-clip%29%22%3E%3Crect%20width%3D%2254%22%20height%3D%2254%22%20rx%3D%2217%22%20fill%3D%22%23075985%22%2F%3E%3Ccircle%20cx%3D%2238%22%20cy%3D%2216%22%20r%3D%226%22%20fill%3D%22%23f6c453%22%2F%3E%3Cpath%20d%3D%22M-6.5%2041A34.5%208.5%200%200%201%2062.5%2041%22%20transform%3D%22rotate%28-4%2028%2041%29%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M-6.5%2050A34.5%208.5%200%200%201%2062.5%2050%22%20transform%3D%22rotate%285%2028%2050%29%22%20fill%3D%22none%22%20stroke%3D%22%23b1d6e4%22%20stroke-width%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 1;
  }
  .topbar .brand-mark > .sun, .topbar .brand-mark > .wave,
  .contact-brand-mark > .sun, .contact-brand-mark > .wave,
  .site-footer .footer-brand-mark > .footer-sun,
  .site-footer .footer-brand-mark > .footer-wave { display: none; }
}

/* Save directly beside the trip choices on desktop and phone browsers. */
.save-trip-button[hidden] { display: none !important; }
button.save-trip-button { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.save-trip-button:disabled { cursor: default; opacity: .75; }
.save-trip-button:focus-visible { outline: 3px solid #f6c453; outline-offset: 3px; }
.planner-save-status { margin: 8px 0 0; color: #416777; font-size: .85rem; line-height: 1.45; }
.planner-save-status:empty { display: none; }
@media print { .planner-save-status { display: none !important; } }

/* A second save action after the flight snapshot on phone browsers only. */
button.phone-save-button { display: none; }
@media screen and (max-width: 580px) {
  button.phone-save-button:not([hidden]) { display: flex; }
}

@media screen and (max-width: 580px) {
  .topbar .private-badge { padding: 8px; }
  .topbar .private-badge svg { width: 25px; height: 25px; }
}

/* Give the phone header mark and slogan more presence across member pages. */
@media screen and (max-width: 580px) {
  .topbar .brand-lockup .brand-mark { flex: 0 0 46px; width: 46px; height: 50px; border-radius: 15px; }
  .topbar .brand-lockup .eyebrow { font-size: clamp(.5rem,2vw,.68rem); line-height: 1.25; letter-spacing: .03em; }
}

.phone-save-transition { display: none; }
@media screen {
  html[data-phone-save-pending] .app-shell { visibility: hidden; }
  html[data-phone-save-pending] .phone-save-transition { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: #f3fbfe; color: #102f3c; text-align: center; }
  .phone-save-transition-copy strong { font-size: 1.3rem; font-weight: 700; }
  .phone-save-transition-copy p { margin: 10px 0 0; color: #5c7480; font-size: .95rem; }
}

/* Phone browser only: edge-to-edge illustrated saving transition. */
@media screen and (max-width:580px) {
 html[data-phone-save-pending] .phone-save-transition { padding:0; background:white; }
 .phone-save-transition-content { width:100%; }
 .phone-save-scene { position:relative; width:100%; overflow:hidden; aspect-ratio:3; }
 .phone-save-island { display:block; width:100%; height:auto; }
 .phone-save-ferry-track { position:absolute; left:2.3%; right:2.3%; top:86%; height:1px; }
 .phone-save-ferry { position:absolute; bottom:0; left:0; width:31%; height:auto; }
 .phone-save-transition-copy { padding:24px 16px 30px; }
 .phone-save-transition-copy strong { font-size:1.5rem; }
}
@media screen and (min-width:581px) { .phone-save-scene {display:none;} }


.phone-google-transition {display:none;}
@media screen and (max-width:580px) {
 .phone-google-transition {position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:white;color:#102f3c;text-align:center;}
}

@media screen and (max-width:580px) {
 html[data-phone-google-pending] body {overflow:hidden;background:white;}
 html[data-phone-google-pending] .account-access-shell {visibility:hidden;}
 html[data-phone-google-pending] .phone-google-transition {visibility:visible;}
 .phone-google-transition {bottom:auto;height:100vh;height:100lvh;min-height:100dvh;}
 html[data-phone-save-pending] .phone-save-transition {min-height:100lvh;}
}

@media screen and (max-width:580px) {
 .phone-google-transition .phone-save-ferry {transform-origin:50% 100%;animation:ferry-to-island 2.4s cubic-bezier(.2,.65,.3,1) forwards, ferry-bob 3.2s ease-in-out 2.4s infinite;}
 .phone-save-transition .phone-save-ferry {left:18%;transform-origin:50% 100%;animation:ferry-from-island 3s cubic-bezier(.2,.65,.3,1) forwards, ferry-bob 3.2s ease-in-out infinite;}
 @keyframes ferry-to-island {from {left:0;} to {left:18%;}}
 @keyframes ferry-from-island {from {left:18%;} to {left:19%;}} @keyframes ferry-bob {0%,100% {transform:translateY(0) rotate(0);} 30% {transform:translateY(-1.5px) rotate(-.5deg);} 70% {transform:translateY(1px) rotate(.4deg);}}
}

/* Match the phone header brand copy to the footer; retain icon dimensions. */
@media screen and (max-width: 580px) {
  .topbar .brand-lockup h1, .topbar .brand-lockup .brand-title { font-size: 1.17rem; }
  .topbar .brand-lockup { flex: 1 1 0; }
  .topbar .brand-lockup > :last-child { min-width: 0; }
  .topbar .brand-lockup .eyebrow { font-size: clamp(.6rem, 2.1vw, .72rem); white-space: nowrap; text-wrap: initial; }
}

/* Test preview: modern leg-by-leg timeline. Route data and print styles are unchanged. */
@media screen {
  .legs { counter-reset: journey-leg; padding: 0 4px 12px 56px; }
  .legs > h4, .legs > .ferry-season-note { margin-left: -56px; }
  .legs > h4 { margin-top: 26px; margin-bottom: 10px; font-size: 1.7rem; }
  .legs > .ferry-season-note { margin-bottom: 24px; }
  .legs .leg, .legs .leg:first-of-type {
    counter-increment: journey-leg;
    position: relative; isolation: auto; overflow: visible;
    display: grid; grid-template-columns: 54px minmax(0,1fr) auto;
    align-items: start; gap: 16px; margin: 0 0 18px;
    padding: 20px 18px; border: 1px solid #cbe9f4;
    border-left: 5px solid #087ca4; border-radius: 7px;
    background: #fff; box-shadow: 0 7px 22px rgba(8,124,164,.045);
  }
  .legs .leg::before {
    content: counter(journey-leg); position: absolute; left: -55px; top: 20px;
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 1px solid #a7dff5; border-radius: 50%;
    background: #f3fbff; color: #075985; font-size: .95rem; font-weight: 700;
  }
  .legs .leg::after {
    content: ""; position: absolute; z-index: auto; pointer-events: none;
    left: -38px; top: 55px; bottom: -39px; right: auto;
    width: 0; height: auto; border-left: 2px dotted #087ca4;
    background: none; opacity: 1;
  }
  .legs .leg:last-child::after { display: none; }
  .legs .mode-icon { width: 50px; height: 50px; border-radius: 50%; font-size: 1.45rem; }
  .legs .leg-title { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.025em; }
  .legs .leg-time {
    grid-column: 3; grid-row: 1; align-self: start;
    min-width: 88px; padding: 8px 12px; border-radius: 5px;
    color: #075985; background: #eaf7fd; text-align: center;
    font-size: .95rem; line-height: 1.35; white-space: nowrap;
  }
  .legs .leg-detail { font-size: .88rem; line-height: 1.6; margin-top: 10px; }
  .legs .leg-badges { gap: 7px; margin-top: 12px; }
  .legs .leg-badge { font-size: .65rem; line-height: 1.35; padding: 5px 11px; border-radius: 999px; }
  .legs .leg-steps:has(> .leg-step:only-child) { margin: 5px 0 0; padding: 0; list-style: none; }
  .legs .leg-step:only-child { display: block; padding: 0; margin: 0; border: 0; }
  .legs .leg-step:only-child::before, .legs .leg-step:only-child::after,
  .legs .leg-step:only-child .leg-step-icon { display: none; }
  .legs .leg-step:only-child .leg-step-route { font-size: 1rem; line-height: 1.45; font-weight: 400; }
  .legs .leg-step:only-child .leg-step-info { display: block; margin-top: 3px; font-size: .86rem; line-height: 1.5; }
}
@media screen and (max-width: 650px) {
  .legs { padding-left: 43px; padding-right: 0; }
  .legs > h4, .legs > .ferry-season-note { margin-left: -43px; }
  .legs > h4 { font-size: 1.45rem; }
  .legs .leg, .legs .leg:first-of-type { grid-template-columns: 38px minmax(0,1fr); padding: 16px 12px; gap: 11px; }
  .legs .leg::before { left: -44px; top: 17px; width: 28px; height: 28px; font-size: .83rem; }
  .legs .leg::after { left: -30px; top: 46px; bottom: -36px; }
  .legs .mode-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .legs .leg-title { font-size: 1rem; }
  .legs .leg-detail { font-size: .82rem; }
  .legs .leg-time { grid-column: 2; grid-row: 2; justify-self: start; min-width: 0; padding: 6px 10px; font-size: .85rem; }
  .legs .leg-badge { padding: 4px 8px; font-size: .6rem; }
}

/* Phone browser: lift banner artwork slightly to align with the heading. */
@media screen and (max-width:580px) {
 .map-heading .map-brand-wave { bottom:12px; }
}

/* Restore the approved smaller phone banner artwork. */
@media screen and (max-width:580px) {
 .map-heading .map-brand-wave { width:81.2px; height:58.4px; }
}
