/* The Great Britain map (set GBMAP; made from design/gbmap/ by design/gbmap/build/make_package.py, so change the study, not this file).
   Every rule is under .gbcard. The map's colours are the site's tokens, redefined for dark mode; the 1963 look is the same in both. */
.gbcard {
  --map-bg: var(--surface); --map-fg: var(--fg); --map-muted: var(--muted); --line: var(--rule); --acc: var(--fg); --card: var(--surface);
  --road: #C4BFB4; --road-fg: #8A857A; --sea: #E9F0F3; --land: #FBFAF7; --coast: #B9C7CE;
  --page-bg: var(--bg); --page-fg: var(--fg); --page-muted: var(--muted);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gbcard { --road: #3A3D44; --road-fg: #8C9099; --sea: #0B1418; --land: #15181C; --coast: #2E4350; } }
:root[data-theme="dark"] .gbcard { --road: #3A3D44; --road-fg: #8C9099; --sea: #0B1418; --land: #15181C; --coast: #2E4350; }
.gbcard { background: var(--map-bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; position: relative; margin-top: 14px; font-family: var(--font); color: var(--map-fg); }
/* the London | Great Britain switch at the top of /maps/ and of /maps/great-britain/: two links, styled as the View buttons */
/* a pale colour on the light land gets a thin keyline; on a dark page every route and key swatch is its lifted colour (--cd, from the study's contrast.py: 3:1 or better on the dark land and sea) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gbcard .geo .ln polyline, :root:not([data-theme="light"]) .gbcard .zloc polyline { stroke: var(--cd, var(--c)); }
  :root:not([data-theme="light"]) .gbcard .legend i { background: var(--cd, var(--c)); }
  :root:not([data-theme="light"]) .gbcard .geo .cas polyline.kl { stroke: var(--land); stroke-width: calc(3.2px * var(--dk, 1)); }
}
:root[data-theme="dark"] .gbcard .geo .ln polyline, :root[data-theme="dark"] .gbcard .zloc polyline { stroke: var(--cd, var(--c)); }
:root[data-theme="dark"] .gbcard .legend i { background: var(--cd, var(--c)); }
:root[data-theme="dark"] .gbcard .geo .cas polyline.kl { stroke: var(--land); stroke-width: calc(3.2px * var(--dk, 1)); }
.map-switch { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0 4px; }
.map-switch a { font: 600 .8rem var(--font); padding: 3px 14px; border-radius: 99px; border: 1.5px solid var(--fg); color: var(--fg); text-decoration: none; background: var(--surface); }
.map-switch a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.map-switch a:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.gbcard .seg { display: flex; gap: 4px; flex-wrap: wrap; }
.gbcard .seg button { font: 600 .8rem var(--font); padding: 3px 12px; border-radius: 99px; border: 1.5px solid var(--map-fg); background: var(--map-bg); color: var(--map-fg); cursor: pointer; }
.gbcard .seg button[aria-pressed="true"] { background: var(--map-fg); color: var(--map-bg); }
.gbcard .seg button:disabled { opacity: .55; cursor: not-allowed; border-style: dashed; }
.gbcard .seg button:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.gbcard { background: var(--map-bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; position: relative; margin-top: 14px; }
.gbcard .mapctl { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.gbcard .mapctl .lab { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; font-stretch: 75%; color: var(--map-muted); }
.gbcard .zwrap { position: relative; overflow: hidden; border-radius: 8px; background: var(--sea); width: 100%; aspect-ratio: 846 / 1330; max-height: calc(100svh - 170px); min-height: 300px; }
.gbcard .zwrap:has(svg.geo:focus-visible) { outline: 3px solid var(--map-fg); outline-offset: -3px; }
.gbcard[data-style="b63"] .zwrap { background: var(--map-bg); }
.gbcard svg.geo { position: absolute; will-change: transform; transform-origin: 0 0; display: block; max-width: none; font-family: var(--font); background: transparent; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gbcard svg.geo.zoomed { touch-action: none; cursor: grab; }
.gbcard svg.geo.dragging { cursor: grabbing; }
.gbcard .geo .land-o { fill: var(--land); stroke: var(--coast); stroke-width: calc(.8px * var(--k, 1)); stroke-linejoin: round; }
.gbcard .geo .coast { fill: var(--land); stroke: var(--coast); stroke-width: calc(.8px * var(--k, 1)); stroke-linejoin: round; }
.gbcard .geo .halo, .gbcard .geo .paper { display: none; }
.gbcard .geo .ln63, .gbcard .geo .lb63, .gbcard .geo .tb63 { display: none; }
.gbcard .geo .cas polyline { fill: none; stroke: var(--land); stroke-width: calc(3.2px * var(--dk, 1)); stroke-linejoin: round; stroke-linecap: round; }
.gbcard .geo .ln polyline { fill: none; stroke: var(--c); stroke-width: calc(1.6px * var(--dk, 1)); stroke-linejoin: round; stroke-linecap: round; }
.gbcard .geo .st circle { fill: var(--map-fg); stroke: var(--map-bg); stroke-width: calc(.7px * var(--dk, 1)); cursor: pointer; }
.gbcard .geo .st circle.ix { fill: var(--map-bg); stroke: var(--map-fg); stroke-width: calc(.9px * var(--dk, 1)); }
.gbcard .geo .st circle[data-t] { fill: var(--map-bg); stroke: var(--map-fg); stroke-width: calc(1.3px * var(--dk, 1)); }
.gbcard .geo.lo .st circle.s, .gbcard .geo.lo .st circle.ix:not(.hub) { display: none; }
.gbcard .geo .st circle:hover, .gbcard .geo .st circle.on { fill: var(--map-fg); stroke: var(--map-bg); }
.gbcard .geo .st circle.p { display: none; }
.gbcard .geo .lbz text { font-weight: 650; font-stretch: 80%; fill: var(--map-fg); paint-order: stroke; stroke: var(--land); stroke-linejoin: round; pointer-events: none; }
.gbcard .geo .note text { font-size: 6px; font-weight: 600; font-stretch: 80%; fill: var(--map-muted); paint-order: stroke; stroke: var(--land); stroke-width: 2px; stroke-linejoin: round; pointer-events: none; }
.gbcard .geo .mway polyline { fill: none; stroke: color-mix(in srgb, var(--road) 55%, var(--road-fg)); stroke-width: calc(1.7px * var(--k, 1)); stroke-linejoin: round; stroke-linecap: round; }
.gbcard .geo .mwl { display: none; }
.gbcard .geo.zoomed .mwl { display: inline; }
.gbcard .geo .mwl rect { fill: var(--road-fg); }
.gbcard .geo .mwl text { fill: var(--map-bg); font-size: 7px; font-weight: 700; font-stretch: 80%; }
.gbcard .geo.no-mway [data-layer="mway"], .gbcard .geo.no-thames [data-layer="thames"], .gbcard .geo.no-st [data-layer="st"], .gbcard .geo.no-lb [data-layer="lb"], .gbcard .geo.no-routes [data-layer="routes"], .gbcard .geo.no-electric [data-layer="electric"], .gbcard .geo.no-metro [data-layer="metro"] { display: none; }
.gbcard .geo .water .sea-est, .gbcard .geo .water .river { fill: var(--sea); stroke: none; }
.gbcard .geo .water .land-est { fill: var(--land); stroke: none; }
.gbcard .geo .water .coast-est { fill: none; stroke: var(--coast); stroke-width: calc(.8px * var(--k, 1)); stroke-linejoin: round; }
.gbcard[data-style="b63"] .geo .water { display: none; }
.gbcard .geo.zooming .lbz { visibility: hidden; }
.gbcard .geo .cas, .gbcard .geo .ln, .gbcard .geo .ln63, .gbcard .geo .st, .gbcard .geo .lb63, .gbcard .geo .note { transition: opacity .35s ease; }
.gbcard .geo:not(.ready) .cas, .gbcard .geo:not(.ready) .ln, .gbcard .geo:not(.ready) .ln63, .gbcard .geo:not(.ready) .st, .gbcard .geo:not(.ready) .lb63, .gbcard .geo:not(.ready) .note { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .geo .cas, .geo .ln, .geo .ln63, .geo .st, .geo .lb63, .geo .note { transition: none; } }
.gbcard .geo .cas polyline.kl { stroke: var(--map-muted); stroke-width: calc(3.5px * var(--dk, 1)); }
.gbcard .legend i.kl { box-shadow: 0 0 0 1px var(--map-muted); }
.gbcard .geo .ovl { pointer-events: none; }
.gbcard .geo .ovl polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: calc(3.4px * var(--k, 1)); }
.gbcard .geo .ovl polyline.u { stroke: var(--map-bg); stroke-width: calc(5px * var(--k, 1)); }
.gbcard[data-style="b63"] .geo .land-o, .gbcard[data-style="b63"] .geo .coast, .gbcard[data-style="b63"] .geo .cas, .gbcard[data-style="b63"] .geo .ln, .gbcard[data-style="b63"] .geo .st, .gbcard[data-style="b63"] .geo .lbz, .gbcard[data-style="b63"] .geo .note { display: none; }
.gbcard[data-style="b63"] .geo .halo { display: inline; fill: none; stroke: url(#hatch63); stroke-width: calc(34px * var(--k, 1)); stroke-linejoin: round; }
.gbcard[data-style="b63"] .geo .paper { display: inline; fill: var(--map-bg); stroke: none; }
.gbcard[data-style="b63"] .geo .ln63, .gbcard[data-style="b63"] .geo .lb63, .gbcard[data-style="b63"] .geo .tb63 { display: inline; }
.gbcard .geo .h { fill: var(--map-fg); opacity: .75; }
.gbcard .geo .ln63 path { fill: none; stroke: var(--map-fg); stroke-linecap: round; stroke-width: calc(var(--w) * .55px * var(--dk, 1)); }
.gbcard .geo .ln63 path.d1 { stroke-dasharray: calc(.06px * var(--dk, 1)) calc(1.4px * var(--dk, 1)); }
.gbcard .geo .ln63 path.d2 { stroke-dasharray: calc(2.2px * var(--dk, 1)) calc(1.3px * var(--dk, 1)); }
.gbcard .geo .lb63 rect { fill: var(--map-bg); stroke: var(--map-fg); stroke-width: .6; }
.gbcard .geo .lb63 .big rect { stroke-width: 1.1; }
.gbcard .geo .lb63 text { font-size: 6.4px; font-weight: 700; font-stretch: 70%; letter-spacing: .03em; fill: var(--map-fg); }
.gbcard .geo .lb63 .big text { font-size: 8.2px; }
.gbcard .geo .tb63 text { fill: var(--map-fg); font-stretch: 68%; }
.gbcard .geo .tb63 .t1 { font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.gbcard .geo .tb63 .k { font-size: 7.6px; font-weight: 600; }
.gbcard .geo .tb63 .k.sm { font-size: 6.6px; font-weight: 500; }
.gbcard .geo .tb63 .sc { fill: none; stroke: var(--map-fg); stroke-width: .7; }
.gbcard .geo .tb63 line { stroke: var(--map-fg); stroke-linecap: butt; }
.gbcard .geo.zoomed .tbscale { display: none; }
.gbcard[data-style="b63"] .geo .mway polyline { stroke: var(--map-muted); opacity: .55; stroke-width: calc(1.1px * var(--k, 1)); }
.gbcard[data-style="b63"] .zwrap:not(.zoomed) .zscale { display: none; }
.gbcard[data-style="b63"] .legend, .gbcard[data-style="b63"] .readout { display: none; }
.gbcard .zbtns { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.gbcard .zbtns button { min-width: 36px; height: 36px; padding: 0 8px; font: 700 1.15rem/1 var(--font); border-radius: 8px; border: 1.5px solid var(--map-fg); background: var(--map-bg); color: var(--map-fg); cursor: pointer; }
.gbcard .zbtns button.rs { font-size: .74rem; }
.gbcard .zbtns button:focus-visible { outline: 3px solid var(--map-fg); outline-offset: 2px; }
.gbcard .zbtns button[aria-disabled="true"] { opacity: .35; cursor: default; }   /* + at the closest zoom, - at the whole view */
.gbcard .zloc { position: absolute; left: 8px; bottom: 8px; width: 120px; background: var(--map-bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
.gbcard .zloc[hidden] { display: none; }
.gbcard .zloc svg { display: block; width: 100%; height: auto; cursor: pointer; touch-action: none; }
.gbcard[data-style="b63"] .zloc polyline { stroke: var(--map-fg); opacity: .5; }
.gbcard .zloc polyline { fill: none; stroke: var(--c); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; }
.gbcard .zloc path { fill: var(--land); stroke: var(--coast); stroke-width: 1; vector-effect: non-scaling-stroke; }
.gbcard .zloc rect { fill: color-mix(in srgb, var(--map-fg) 10%, transparent); stroke: var(--map-fg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.gbcard .zbox { position: absolute; border: 2px solid var(--map-fg); background: color-mix(in srgb, var(--map-fg) 12%, transparent); pointer-events: none; z-index: 2; }
.gbcard .zbtns button[data-z="fs"] { font-size: 1rem; }
.gbcard:fullscreen { overflow: auto; border-radius: 0; padding: 14px; }
.gbcard .zhint { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: var(--map-fg); color: var(--map-bg); padding: 7px 13px; border-radius: 8px; font-size: .88rem; font-weight: 600; pointer-events: none; }
.gbcard .zhint[hidden] { display: none; }
.gbcard .zscale { position: absolute; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--map-muted);
    background: color-mix(in srgb, var(--map-bg) 85%, transparent); padding: 2px 6px; border-radius: 4px; pointer-events: none; }
.gbcard .zscale i { display: block; height: 5px; border: 1.3px solid var(--map-fg); border-top: 0; }
.gbcard .readout { min-height: 1.4em; font-size: .86rem; color: var(--map-muted); margin: 6px 2px 0; }
.gbcard .readout b { color: var(--map-fg); }
.gbcard .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 8px 0 2px; padding: 0; font-size: .84rem; color: var(--map-fg); }
.gbcard .legend li { display: flex; align-items: center; gap: 6px; }
.gbcard .legend i { display: inline-block; width: 22px; height: 5px; border-radius: 3px; background: var(--c); }
.gbcard .mapnote { font-size: .8rem; color: var(--map-muted); margin: 8px 2px 0; }
.gbcard .seg a.pill { font: 600 .8rem var(--font); padding: 3px 12px; border-radius: 99px; border: 1.5px solid var(--map-fg); background: var(--map-bg); color: var(--map-fg); text-decoration: none; }
.gbcard .seg a.pill[aria-current="page"] { background: var(--map-fg); color: var(--map-bg); }

/* MTT2: map tips on the Great Britain map (set MTT2, Kyle, 10 November 2026). maptip.js puts an invisible copy behind each
   route and station dot, its stroke a fixed size on screen at any zoom (--dk, one screen pixel in map units, set by gbmap.js at each redraw); a tip or a
   click on one is taken as on the original. Hidden with the routes in the 1963 look, and with the stops when zoomed out. */
.gbcard .geo .hits polyline.hit { fill: none; stroke: transparent; stroke-width: calc(var(--dk, 2) * 14); stroke-linejoin: round; stroke-linecap: round; pointer-events: stroke; cursor: pointer; }
.gbcard .geo .st circle.hit, .gbcard .geo .st circle.hit:hover, .gbcard .geo .st circle.hit.on { fill: transparent; stroke: transparent; stroke-width: calc(var(--dk, 2) * 16); pointer-events: all; cursor: pointer; }
.gbcard[data-style="b63"] .geo .hits { display: none; }
.gbcard .geo.zooming .hits, .gbcard .geo.zooming .st circle.hit { pointer-events: none; }
