/* JM Suite routes: minimal structural CSS. Colours/type only through USDS tokens (var(--…)); polish lives in the child theme. */
.jm-route-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px);gap:var(--space-6);align-items:center}
.jm-route-hero{display:flex;flex-direction:column;gap:var(--space-4)}
.jm-route-eyebrow{margin:0;font-family:var(--font-display);font-size:var(--type-eyebrow-size);font-weight:var(--type-eyebrow-weight);letter-spacing:.12em;text-transform:uppercase;color:var(--orange-text)}
.jm-route-h1{margin:0}
.jm-route-line,.jm-route-card-title,.jm-route-other-name{display:flex;align-items:center;gap:var(--space-2)}
.jm-route-line-track{display:inline-flex;align-items:center;flex:1 1 auto;min-width:40px;max-width:160px}
.jm-route-line-track i{display:block;flex:none;width:8px;height:8px;border-radius:var(--radius-pill);border:2px solid var(--orange)}
.jm-route-line-track i:nth-child(2){flex:1 1 auto;width:auto;height:2px;border:0;border-radius:0;background:var(--orange)}
.jm-route-line-track i:nth-child(3){background:var(--orange)}
.jm-route-summary{border-left:4px solid var(--orange);padding:var(--space-4) var(--space-5);background:var(--surface-alt)}
.jm-route-summary p,.jm-route-answer p{margin:0}
.jm-route-cities{font-weight:600}
.jm-route-ctas{display:flex;flex-wrap:wrap;gap:var(--space-3)}
.jm-route-cta{display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);padding:0 var(--space-5);border-radius:var(--radius-sm);font-weight:700;text-decoration:none;border:2px solid var(--navy);color:var(--navy)}
.jm-route-cta-quote{background:var(--orange);border-color:var(--orange);color:var(--on-orange)}
.jm-route-answer{border-left:4px solid var(--orange);padding:var(--space-4) var(--space-5);margin:var(--space-4) 0 var(--space-5);background:var(--surface-alt)}
.jm-route-facts{display:grid;grid-template-columns:minmax(10em,30%) 1fr;gap:var(--space-3) var(--space-5);margin:0 0 var(--space-4)}
.jm-route-fact{display:contents}
.jm-route-facts dt{font-weight:700;margin:0}.jm-route-facts dd{margin:0}
.jm-route-fact-more{color:var(--ink-muted)}
.jm-route-facts-note{color:var(--ink-muted);font-size:var(--type-body-sm-size)}
.jm-route-includes{padding:var(--space-5);background:var(--navy-soft);border-radius:var(--radius-md)}
.jm-route-includes ul{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-3)}
.jm-route-includes li{margin:0;padding-left:var(--space-5);position:relative}
.jm-route-includes li::before{content:"";position:absolute;left:0;top:.55em;width:10px;height:10px;border-radius:var(--radius-pill);background:var(--orange)}
.jm-route-unique-copy{max-width:var(--measure)}
.jm-route-docs{padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-alt)}
.jm-route-photo{margin:var(--space-5) 0 0}.jm-route-photo img{display:block;width:100%;height:auto}
.jm-route-factors ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--space-4)}
.jm-route-factor{margin:0;display:flex;gap:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-md)}
.jm-route-factor-n{font-family:var(--font-mono);color:var(--orange-text);flex:none}
.jm-route-faq details{border-bottom:1px solid var(--line);padding:var(--space-3) 0}
.jm-route-faq summary{cursor:pointer;font-weight:700}.jm-route-faq-a{margin-top:var(--space-2)}
.jm-route-other ul,.jm-routes-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--space-4)}
.jm-route-other li{margin:0}
.jm-route-other a{display:flex;flex-direction:column;gap:var(--space-2);height:100%;padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-md);text-decoration:none;color:var(--ink)}
.jm-route-other-meta{color:var(--ink-muted);font-size:var(--type-body-sm-size)}
.jm-route-other-cta{color:var(--navy);font-weight:700;margin-top:auto}
.jm-routes-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-3);max-width:560px;margin:var(--space-4) 0}
.jm-routes-counter{display:grid;padding:var(--space-3);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-md)}
.jm-routes-counter-n{font-family:var(--font-display);font-weight:800;font-size:var(--type-h2-size);line-height:var(--type-h2-lh);color:var(--orange-text)}
.jm-routes-counter-l{font-size:var(--type-body-sm-size);color:var(--ink-muted)}
.jm-lane-map{margin:0;display:flex;flex-direction:column;gap:var(--space-2)}
.jm-lane-map-box{position:relative;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-alt);overflow:hidden}
.jm-lane-map-svg{display:block;width:100%;height:auto}
.jm-lane-grid line{stroke:var(--surface-sunken);stroke-width:1}
.jm-lane{stroke-width:3;stroke-linecap:round}
.jm-lane-live{stroke:var(--navy);opacity:.45}
.jm-lane-planned{stroke:var(--line-strong);stroke-dasharray:10 8;opacity:.6}
.jm-lane.is-active{stroke-width:7;opacity:1}
.jm-lane.is-dim{opacity:.2}
.jm-lane-node circle{stroke-width:3}
.jm-lane-node-live circle{fill:var(--navy);stroke:var(--navy)}
.jm-lane-node-planned circle{fill:var(--surface);stroke:var(--line-strong)}
.jm-lane-node.is-active circle{fill:var(--orange);stroke:var(--band)}
.jm-lane-label{font-family:var(--font-body);font-size:22px;font-weight:600;fill:var(--ink);paint-order:stroke;stroke:var(--surface-alt);stroke-width:6px}
.jm-lane-node.is-active .jm-lane-label{font-weight:700;fill:var(--band)}
.jm-lane-nodes a:focus-visible circle{stroke:var(--focus);stroke-width:5}
.jm-lane-hub circle{fill:var(--orange);stroke:var(--band);stroke-width:5}
.jm-lane-hub-label{font-family:var(--font-display);font-weight:800;font-size:26px;fill:var(--band);paint-order:stroke;stroke:var(--surface);stroke-width:6px}
.jm-lane-link{stroke:var(--orange);stroke-width:5;stroke-linecap:round}
.jm-lane-hub-2 circle{stroke-width:4}
.jm-lane-key-hub::before{width:12px;height:12px;background:var(--orange);box-shadow:0 0 0 2px var(--band)}
.jm-route-fact-home{display:block;margin-top:var(--space-1)}
.jm-lane-map-info{position:absolute;left:var(--space-3);top:var(--space-3);display:grid;gap:2px;padding:var(--space-2) var(--space-3);background:var(--surface);border-radius:var(--radius-md);box-shadow:var(--shadow-panel);font-size:var(--type-body-sm-size)}
.jm-lane-map-info strong{color:var(--navy)}.jm-lane-map-info span{color:var(--ink-muted)}
.jm-lane-map-legend{display:flex;flex-wrap:wrap;gap:var(--space-4);font-size:var(--type-caption-size);color:var(--ink-muted)}
.jm-lane-key{display:inline-flex;align-items:center;gap:6px}
.jm-lane-key::before{content:"";display:inline-block;width:10px;height:10px;border-radius:var(--radius-pill)}
.jm-lane-key-active::before{width:18px;height:3px;border-radius:0;background:linear-gradient(90deg,var(--red),var(--orange),var(--signal))}
.jm-lane-key-live::before{background:var(--navy)}
.jm-lane-key-planned::before{border:2px solid var(--line-strong)}
.jm-routes-tools{display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:center;justify-content:space-between;margin:0 0 var(--space-5)}
.jm-routes-filters{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.jm-routes-filter{min-height:var(--tap);padding:0 var(--space-4);margin:0;background:var(--surface);color:var(--navy);border:1px solid var(--line-strong);border-radius:var(--radius-sm);font:inherit;font-weight:600;cursor:pointer;text-transform:none;letter-spacing:0}
.jm-routes-filter[aria-pressed="true"]{background:var(--navy);color:var(--on-navy);border-color:var(--navy)}
.jm-routes-filter-n{font-family:var(--font-mono);opacity:.8}
.jm-routes-search{display:flex;align-items:center;gap:var(--space-2);flex:0 1 320px;margin:0}
.jm-routes-search span{font-weight:600;white-space:nowrap}
.jm-routes-search input{flex:1;min-width:0;min-height:var(--tap);margin:0}
.jm-route-card{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-5);background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--orange);border-radius:var(--radius-md)}
.jm-route-card-planned{border-top-color:var(--line-strong)}
.jm-route-card[hidden]{display:none}
.jm-route-card-top{display:flex;justify-content:space-between;align-items:center;gap:var(--space-2)}
.jm-route-badge{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 8px;border-radius:var(--radius-sm);background:var(--navy-soft);color:var(--navy)}
.jm-route-badge-planned{background:var(--surface-sunken);color:var(--ink-muted)}
.jm-route-iso{font-family:var(--font-mono);font-size:var(--type-caption-size);color:var(--ink-muted)}
.jm-route-card-title{margin:0}
.jm-route-card-excerpt{margin:0;color:var(--ink-muted);font-size:var(--type-body-sm-size)}
/* Buttons never wrap their label: when both don't fit (long IT/DE/FR labels), the quote button takes its own full row. */
.jm-route-card-actions{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:auto}
.jm-route-card-actions a{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;min-height:var(--tap);padding:0 var(--space-3);border-radius:var(--radius-sm);font-weight:700;text-decoration:none;white-space:nowrap;text-align:center}
.jm-route-card-more{border:2px solid var(--line-strong);color:var(--navy)}
.jm-route-card-quote{background:var(--navy);color:var(--on-navy)}
.jm-routes-empty{padding:var(--space-5);background:var(--surface-alt);border-radius:var(--radius-md)}
.jm-routes-not-listed{display:flex;flex-wrap:wrap;gap:var(--space-4);align-items:center;justify-content:space-between;margin-top:var(--space-6);padding:var(--space-5);background:var(--orange-soft);border-radius:var(--radius-md)}
.jm-routes-not-listed p{margin:0}
.jm-route-breadcrumb{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-2);font-size:var(--type-body-sm-size);color:var(--ink-muted)}
.jm-route-breadcrumb a{color:var(--navy)}
.jm-route-cta{gap:var(--space-2)}.jm-route-cta-icon{flex:none}
.jm-route-services{display:flex;flex-direction:column;gap:var(--space-3)}
.jm-route-service{display:grid;gap:var(--space-1);padding:var(--space-4);border:1px solid var(--line);border-radius:var(--radius-md);text-decoration:none;color:var(--ink);scroll-margin-top:calc(var(--header-sticky,64px) + var(--space-4))}
.jm-route-service-title{font-weight:700;color:var(--navy)}
.jm-route-service-text{font-size:var(--type-body-sm-size);color:var(--ink-muted)}
.jm-lane-list{display:none;list-style:none;margin:0;padding:0;flex-wrap:wrap;gap:var(--space-2)}
.jm-lane-map .jm-lane-list li{margin:0;padding:0}
.jm-lane-list>li>a,.jm-lane-list>li>span{display:inline-flex;align-items:center;gap:6px;min-height:var(--tap);padding:0 var(--space-3);border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--navy);text-decoration:none;font-weight:600}
.jm-lane-list-dot{width:10px;height:10px;border-radius:var(--radius-pill);background:var(--navy);flex:none}
.jm-lane-list-planned .jm-lane-list-dot{background:var(--surface);border:2px solid var(--line-strong)}
.jm-lane-list .is-active .jm-lane-list-dot{background:var(--orange)}
@media (max-width:849px){.jm-route-hero-grid{grid-template-columns:1fr}}
@media (max-width:549px){.jm-lane-list{display:flex}.jm-lane-map-info{display:none}.jm-lane-label{display:none}.jm-lane-node.is-active .jm-lane-label{display:inline;font-size:44px}.jm-lane-hub-label{font-size:44px}.jm-lane-label-near{text-anchor:end;transform:translateX(-32px)}.jm-lane-hub-2 .jm-lane-hub-label{font-size:40px;text-anchor:end;transform:translate(-30px,56px)}.jm-lane-hub-2.is-crowded .jm-lane-hub-label{text-anchor:middle;transform:translate(0,56px)}.jm-route-facts{grid-template-columns:1fr}.jm-route-facts dd{margin-bottom:var(--space-2)}.jm-routes-counters{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-2)}}
@media (prefers-reduced-motion:reduce){.jm-route-cta,.jm-routes-filter{transition:none}}
