/* Regulatory Reach, rework 2: globe pinned on the left, one scrolling column on the right. Charcoal ground,
   lime for where you sell, mocha for where goods are made. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }

:root {
  --ground: #1a1c23; --plate: #0d1117; --slate: #252830; --line: rgba(255, 255, 255, 0.1); --line-2: rgba(255, 255, 255, 0.18);
  --lime: #ccff00; --mocha: #eaddcf; --t1: #eaddcf; --t2: #b3a99e; --t3: #9a9288; --amber: #f5a524; --coral: #ff6f61; --trade: #9197d2;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1); --header: 76px;
}
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--t1); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-padding-top: 116px; }
body { margin: 0; min-height: 100vh; background: var(--ground); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
/* skip link: first in the tab order, shown only when focused */
.skip { position: fixed; left: 12px; top: -120px; z-index: 100; background: #fff; color: #111; padding: 12px 18px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; outline: 3px solid var(--lime); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 6px; vertical-align: middle; }

/* the site's navigation, as the live build renders it: fixed, transparent at the top, charcoal and blurred once
   scrolled past 50 px (py-6 to py-4). Playfair logo, Inter 12 px uppercase links at 1440 (11 px below 1280). */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; border-bottom: 1px solid transparent; background: transparent; padding: 24px 0; transition: all 300ms; }
.nav.scrolled { background: rgba(26, 28, 35, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgba(72, 75, 106, 0.3); padding: 16px 0; }
.nav-in { max-width: 1620px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.nojs .nav { background: rgba(26, 28, 35, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgba(72, 75, 106, 0.3); padding: 16px 0; }
.nav-logo { font-family: var(--serif); font-size: 20px; line-height: 28px; letter-spacing: -0.025em; font-weight: 700; color: var(--mocha); text-decoration: none; flex-shrink: 0; transition: color 150ms; }
.nav-logo:hover { color: var(--lime); }
.nav-logo span { color: var(--lime); }
.nav-desk { display: flex; align-items: center; gap: 24px; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link { white-space: nowrap; font-family: var(--sans); font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(234, 221, 207, 0.8); text-decoration: none; transition: color 150ms; }
.nav-link:hover { color: var(--lime); }
.nav-link[aria-current='page'] { color: var(--lime); }
.nav-sep { height: 16px; width: 1px; background: rgba(72, 75, 106, 0.5); }
.nav-icons { display: flex; align-items: center; gap: 20px; }
.nav-icon { color: #a8a29e; display: inline-flex; transition: color 300ms; }
.nav-icon:hover { color: #ccff00; }
.nav-mobile { display: none; }
@media (max-width: 1279px) { .nav-link { font-size: 11px; } .nav-links { gap: 16px; } }
/* "Regulatory Reach" is longer than the "Practice" it replaced: between 1024 and 1366 the gaps tighten (never the type below 11 px) so the nav stays on one line */
@media (min-width: 1024px) and (max-width: 1366px) { .nav-in { gap: 20px; padding: 0 24px; } .nav-desk { gap: 14px; } .nav-links { gap: 12px; } .nav-link { letter-spacing: 0.08em; } .nav-icons { gap: 12px; } }
@media (min-width: 1024px) and (max-width: 1099px) { .nav-in { gap: 12px; padding: 0 16px; } .nav-desk { gap: 8px; } .nav-links { gap: 8px; } .nav-link { letter-spacing: 0.02em; } .nav-icons { gap: 8px; } .nav-logo { font-size: 18px; } }
@media (min-width: 1100px) and (max-width: 1179px) { .nav-in { gap: 14px; padding: 0 20px; } .nav-desk { gap: 10px; } .nav-links { gap: 9px; } .nav-link { letter-spacing: 0.04em; } .nav-icons { gap: 9px; } }
@media (max-width: 1023px) {
  .nav-desk { display: none; }
  .nav-in { padding: 0 24px; }
  .nav-mobile { display: block; color: var(--mocha); }
  .nav-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile .i-close { display: none; }
  .nav-mobile[open] .i-close { display: block; }
  .nav-mobile[open] .i-open { display: none; }
  .mnav { position: absolute; top: 100%; left: 0; width: 100%; background: #1a1c23; border-bottom: 1px solid rgba(72, 75, 106, 0.3); padding: 24px; display: flex; flex-direction: column; }
  .mnav > * + * { margin-top: 16px; }
  .mnav-link { font-family: var(--sans); font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mocha); text-decoration: none; }
  .mnav-link:hover, .mnav-link[aria-current='page'] { color: var(--lime); }
  .mnav-sep { height: 1px; background: rgba(72, 75, 106, 0.3); }
  .mnav-icons { display: flex; gap: 24px; }
}
/* the one screen: globe left (pinned), one column right (scrolls with the page) */
.rr { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.stage { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #1d2029 0%, var(--ground) 62%); }
.col { border-left: 1px solid var(--line); padding: calc(var(--header) + 14px) 40px 20px 36px; min-width: 0; }

/* page head in the site's grammar */
.head { margin-bottom: 8px; }
.kicker { margin: 0 0 4px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--lime); white-space: nowrap; }
.kicker .rule { width: 28px; height: 1px; background: var(--lime); flex: none; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.05; margin: 0 0 2px; color: #fff; letter-spacing: -0.015em; }
h1 em { font-style: italic; color: var(--lime); }
.subtitle { margin: 0 0 8px; font-size: 14px; line-height: 1.3; color: var(--t3); letter-spacing: 0.01em; }
.explainer { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.55; color: var(--t2); }

/* the sentence: "I sell into [the EU] from [Pakistan]". The two words are buttons; each carries the colour it has on the globe (lime sold, mocha made). */
.sentence { margin: 14px 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.34em; font-family: var(--serif); font-size: clamp(28px, 2.55vw, 40px); line-height: 1.5; color: var(--t2); }
.s-t { white-space: nowrap; }
.s-br { display: none; }
.slot-wrap { position: relative; display: inline-block; }
.slot { --ul: var(--mocha); appearance: none; background: none; border: 0; margin: 0; padding: 0 2px 8px; font: inherit; line-height: inherit; color: #fff; cursor: pointer; display: inline-flex; align-items: baseline; gap: 0.22em; position: relative; min-height: 44px; border-radius: 6px; }
.slot.sell { --ul: var(--lime); }
.slot .wd { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; height: 1.4em; line-height: 1.4; }
.slot .w { display: inline-block; white-space: nowrap; }
.slot .chev { align-self: center; flex: none; width: 0.34em; height: 0.23em; min-width: 11px; min-height: 7px; color: var(--ul); transition: transform 180ms var(--ease); margin-top: -0.1em; }
.slot[aria-expanded='true'] .chev { transform: rotate(180deg); }
.slot .ul { position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 2px; background: var(--ul); transform-origin: left center; transition: height 120ms; }
.slot:hover .ul, .slot[aria-expanded='true'] .ul { height: 5px; }
.slot.sweep .ul { animation: sweep 380ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slot:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
/* the picker: a panel under the word, every option with a live fact on the right; the origin list carries a bar for each country's value */
.pick-panel { --tone: var(--lime); position: absolute; z-index: 60; top: calc(100% + 4px); left: -10px; min-width: 330px; max-width: calc(100vw - 24px); background: #10141b; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 8px 8px; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.62); font-family: var(--sans); animation: panel-in 150ms var(--ease); }
.pick-panel.c { --tone: var(--mocha); min-width: 420px; }
/* transform only: the panel and its text are fully opaque from the first frame, so contrast never dips during the entrance */
@keyframes panel-in { from { transform: translateY(-4px); } to { transform: none; } }
.pick-h { margin: 0 10px 2px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #fff; }
.pick-s { margin: 0 10px 8px; font-size: 12px; line-height: 1.4; color: var(--t3); }
.pick-h:last-of-type { margin-bottom: 8px; }
.pick { outline: none; max-height: min(440px, 62vh); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 5px 12px; border-radius: 8px; cursor: pointer; overflow: hidden; color: var(--t1); }
.opt .o-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0); background: rgba(234, 221, 207, 0.1); border-radius: 8px 0 0 8px; transition: width 220ms var(--ease); }
.opt .o-main { position: relative; font-family: var(--serif); font-size: 20px; line-height: 1.2; color: #fff; display: inline-flex; flex-direction: column; }
.opt .o-main small { font-family: var(--sans); font-size: 11.5px; color: var(--t3); letter-spacing: 0.01em; }
.opt .o-fact { position: relative; font-size: 13px; line-height: 1.3; color: var(--t2); font-variant-numeric: tabular-nums; text-align: right; }
.opt.active { background: rgba(255, 255, 255, 0.075); box-shadow: inset 3px 0 0 var(--tone); }
.opt .o-name { position: relative; align-self: flex-start; }
.opt[aria-selected='true'] .o-name::after { content: ''; position: absolute; left: calc(100% + 9px); top: 0.52em; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.pick:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.pick-scrim { display: none; }

/* the answer */
.answer { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.lead { margin: 0 0 4px; max-width: 60ch; font-size: 18px; line-height: 1.42; color: #fff; }
.ca-note { margin: 0 0 6px; font-size: 12.5px; color: var(--t3); }
.trade { margin: 8px 0 4px; max-width: 64ch; font-size: 14.5px; line-height: 1.5; color: var(--t1); }
.trade strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: #fff; letter-spacing: -0.01em; margin-right: 3px; }
.trade.pending strong { font-size: 20px; color: var(--t2); }
.trade-note { margin: 0 0 4px; max-width: 64ch; font-size: 11.5px; color: var(--t3); line-height: 1.4; }
.fine { margin: 6px 0 4px; font-size: 11.5px; line-height: 1.5; color: var(--t3); }
.group { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--t2); }
.group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.laws { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.laws li { border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.02); transition: border-color 120ms; }
.laws li:hover { border-color: var(--line-2); }
.laws li.open { border-color: var(--lime); }
.law { display: block; text-decoration: none; padding: 9px 36px 9px 14px; border-radius: 8px; position: relative; }
.law-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1px 14px; margin-bottom: 2px; }
.law-name { display: block; flex: 1 1 auto; min-width: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.25; color: #fff; }
.law-line { display: block; font-size: 13.5px; line-height: 1.42; color: var(--t1); }
.law-origin { display: block; font-size: 12.5px; line-height: 1.4; color: var(--t2); margin-top: 5px; border-left: 2px solid rgba(234, 221, 207, 0.45); padding-left: 9px; }
.law:hover { background: var(--slate); }
.law::after { content: ''; position: absolute; right: 16px; top: 22px; width: 8px; height: 8px; border-right: 1.5px solid var(--t3); border-bottom: 1.5px solid var(--t3); transform: translateY(-60%) rotate(45deg); transition: transform 160ms; }
li.open > .law { background: rgba(204, 255, 0, 0.05); border-radius: 8px 8px 0 0; }
li.open > .law .law-line, li.open > .law .law-origin { display: none; }
li.open > .law::after { transform: translateY(-30%) rotate(-135deg); }
/* the dated corner replaces a status word; its mark and its words both say what it is, so colour is never the only signal */
.corner { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; color: var(--t2); }
.corner::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.corner.now { color: #fff; }
.corner.future { color: var(--amber); }
.corner.future::before { background: transparent; border: 2px solid currentColor; width: 8px; height: 8px; }
.corner.paused { color: var(--coral); }
.corner.paused::before { border-radius: 1px; }
.corner.notyet { color: var(--t3); }
.corner.notyet::before { background: transparent; border: 2px dashed currentColor; width: 10px; height: 10px; }
.corner.withdrawing { color: var(--t3); }
.corner.withdrawing::before { background: transparent; border: 2px solid currentColor; opacity: .55; }
.empty { border: 1px dashed var(--line-2); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: var(--t2); line-height: 1.5; }
/* "Also asked about": a collapsed line; opened, each law suppliers often assume applies says why it does not */
.also { margin-top: 18px; border-top: 1px solid var(--line); }
.also > summary, .sources > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--t1); }
.also > summary::-webkit-details-marker, .sources > summary::-webkit-details-marker, .mn-more > summary::-webkit-details-marker, .srcs > summary::-webkit-details-marker, .alldates > summary::-webkit-details-marker { display: none; }
.also > summary::after, .sources > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 6px; border-right: 1.5px solid var(--t3); border-bottom: 1.5px solid var(--t3); transform: rotate(45deg); transition: transform 160ms; }
.also[open] > summary::after, .sources[open] > summary::after { transform: rotate(-135deg); }
.also > summary:hover, .sources > summary:hover { color: #fff; }
.also-list { margin-bottom: 6px; }
.also-list li { border-style: dashed; background: transparent; }
.also-item { padding: 9px 14px 4px; }
.also-item .law-name { margin-bottom: 2px; }
.also-item .law.more { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border-radius: 0; font-size: 13px; color: var(--t1); text-decoration: underline; text-underline-offset: 3px; }
.also-item .law.more::after { display: none; }
.also-list li.open > .law, .also-list li.open .also-item .law.more { background: none; }

/* the law detail, opened in place under its row */
.detail { border-top: 1px solid var(--line); padding: 14px 16px 20px; background: var(--plate); border-radius: 0 0 8px 8px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.asof { font-size: 12.5px; color: var(--t3); margin: 0; line-height: 1.5; }
.detail-head .asof { flex: 1; min-width: 0; padding-top: 7px; }
.detail-head .asof:focus-visible { outline-offset: 4px; }
.close { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--t2); font-size: 13px; cursor: pointer; flex: none; }
.close:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.detail .close.end { margin-top: 16px; }
.sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.sec h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.sec h3 small { display: block; font-weight: 400; color: var(--t3); font-size: 11.5px; margin-top: 1px; }
.sec p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--t2); }
.sec p b, .sec dt { color: var(--t1); font-weight: 500; }
.sec .title { font-style: italic; color: var(--t3); font-size: 12.5px; }
.sec dl { margin: 0 0 8px; display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: 13px; }
.sec dt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sec dd { margin: 0; color: var(--t2); }
.sec dt.past, .sec dd.past { color: var(--t3); }
.sec dt.next, .sec dd.next { color: #fff; }
.sec dt.next { font-weight: 600; }
.sec .mark { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #111; background: #fff; border-radius: 3px; padding: 0 5px; margin-right: 4px; vertical-align: 1px; }
.alldates { margin: 4px 0 8px; }
.alldates summary { cursor: pointer; font-size: 12.5px; color: var(--t2); padding: 6px 0; min-height: 32px; }
.alldates dl { margin-top: 6px; }
.sec .note { font-size: 12px; color: var(--t3); }
.sec ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--t2); }
.sec ul li { margin-bottom: 3px; }
.sec a { color: var(--t2); }
/* our analysis (the In short block and the supplier section) is set apart from the law's own text */
.sec.ours { border-top: 0; border-left: 2px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); border-radius: 0 8px 8px 0; padding: 10px 14px 4px; }
.sec.short { margin-top: 0; }
.three { margin: 0 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--t3); }
.srcs > summary { list-style: none; cursor: pointer; min-height: 36px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: #fff; }
.srcs > summary::after { content: ''; width: 7px; height: 7px; margin-left: 10px; border-right: 1.5px solid var(--t3); border-bottom: 1.5px solid var(--t3); transform: rotate(45deg); transition: transform 160ms; }
.srcs[open] > summary::after { transform: rotate(-135deg); }

/* below the list: sources */
.sources { margin-top: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trade-notes { margin: 4px 0 0; }
.trade-notes p { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--t3); }
.trade-notes p b { color: var(--t2); font-weight: 500; }
.src-h { font-family: var(--serif); font-weight: 400; font-size: 17px; color: #fff; margin: 0 0 6px; }
.src-h small { font-family: var(--sans); font-size: 12px; color: var(--t3); margin-left: 10px; }
.cite { margin: 10px 0 14px; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--t3); word-break: break-word; }

/* the sentence, kept in view on a phone: a slim strip under the nav once the sentence has scrolled away (hidden on a wide screen) */
.routebar-wrap { display: none; }
.routebar-wrap { position: sticky; top: 61px; height: 0; z-index: 40; }
.routebar { position: absolute; left: -36px; right: -40px; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px 0 36px; background: var(--plate); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 150ms, transform 150ms, visibility 0s linear 150ms; }
.routebar.show { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.rb-text { min-width: 0; font-family: var(--serif); font-size: 17px; line-height: 1.2; padding-bottom: 3px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-text .made, .rb-text .sell { color: #fff; border-bottom: 2px solid var(--mocha); }
.rb-text .sell { border-bottom-color: var(--lime); }
.rb-change { flex: none; height: 44px; min-width: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--t1); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rb-change:hover { color: #fff; }

/* the globe */
.globe { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.globe canvas { display: block; width: 100%; height: 100%; }
.globe[data-drag] { cursor: grabbing; }
.still { position: absolute; left: 50%; top: calc(50% - var(--foot, 56px) / 2); transform: translate(-50%, -50%); width: min(100%, calc(100vh - var(--header) - var(--foot, 56px))); height: auto; aspect-ratio: 1; opacity: 1; transition: opacity 400ms; pointer-events: none; }
.globe[data-ready] ~ .still { opacity: 0; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.labels span { position: absolute; transform: translate(-50%, -50%); font-size: 11.5px; letter-spacing: 0.02em; color: #eaddcf; white-space: nowrap; padding: 0 4px; border-radius: 3px; background: rgba(13, 17, 23, 0.58); text-shadow: 0 0 2px #0d1117, 0 0 3px #0d1117, 0 0 4px #0d1117, 0 0 6px #0d1117, 0 0 9px #0d1117, 0 1px 2px #0d1117; }
.labels span[data-role='sell'] { color: #ccff00; }
.labels span.on { color: #fff; font-weight: 600; font-size: 12.5px; }
.labels span.ca { color: #ccff00; font-size: 10.5px; }
.tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 18px)); background: rgba(13, 17, 23, 0.94); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 10px; font-size: 12.5px; line-height: 1.35; color: #fff; white-space: nowrap; display: none; }
.tip small { display: block; color: var(--t3); font-size: 11px; }
.tip.show { display: block; }
.hint { position: absolute; z-index: 2; left: 24px; top: calc(var(--header) + 16px); margin: 0; font-size: 12px; color: var(--t3); pointer-events: none; transition: opacity 700ms ease, visibility 0s linear 700ms; }
.hint.gone { opacity: 0; visibility: hidden; }
.hint .coarse-only { display: none; }
.hint span span { margin: 0 4px; }
@media (pointer: coarse) { .hint .fine-only { display: none; } .hint .coarse-only { display: inline; } }
.stage-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 24px 14px; background: linear-gradient(to top, var(--ground) 78%, transparent); }
/* one short line at the foot of the globe: the hatch swatch, the first sentence of the footnote, and the full note behind a toggle */
.mapnote { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; font-size: 12px; line-height: 1.45; color: var(--t3); }
.mapnote .hatch { flex: none; width: 16px; height: 10px; border-radius: 2px; border: 1px dashed rgba(214, 219, 228, 0.7); background: repeating-linear-gradient(45deg, rgba(214, 219, 228, 0.55) 0 1px, transparent 1px 3px), #2d333d; }
.mn-more > summary { list-style: none; cursor: pointer; color: var(--t2); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.mn-more > summary:hover { color: #fff; }
.mn-more[open] .mn-full { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); margin: 0; padding: 12px 14px; background: #10141b; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12px; line-height: 1.55; color: var(--t2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.labels span[data-role='disputed'] { color: #d6dbe4; font-style: italic; font-size: 10.5px; white-space: normal; width: max-content; max-width: 112px; text-align: center; line-height: 1.2; }
.tip.wrap { white-space: normal; width: max-content; max-width: 250px; text-align: center; }
.zoom { position: absolute; right: 20px; top: calc(var(--header) + 16px); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.zbtn { width: 38px; height: 38px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(13, 17, 23, 0.85); color: var(--t1); font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.zbtn[hidden] { display: none; }
.zbtn:hover { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.zbtn.reset { width: auto; padding: 0 10px; font-size: 12px; font-family: var(--sans); height: 32px; }

/* footer, the shared Connect footer in this prototype's own CSS */
.foot { border-top: 1px solid var(--line); background: #15171d; padding: 56px 40px 32px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 40px; max-width: 1360px; margin: 0 auto; }
.foot-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lime); margin: 0 0 10px; }
.foot-h { font-family: var(--serif); font-weight: 400; font-size: 26px; color: #fff; margin: 0 0 14px; }
.foot-links { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; line-height: 2; color: var(--t2); }
.foot-links.two { columns: 2; column-gap: 24px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current='page'] { color: var(--lime); }
.foot-cta { display: inline-block; border: 1px solid var(--lime); color: var(--lime); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 14px; border-radius: 3px; text-decoration: none; }
.foot-cta:hover { background: var(--lime); color: #111; }
.foot-cards { display: flex; flex-direction: column; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: rgba(255, 255, 255, 0.02); }
.card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; font-size: 12px; }
.card dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); align-self: center; }
.card dd { margin: 0; text-align: right; color: var(--t1); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pill { background: var(--lime); color: #111; padding: 2px 6px; border-radius: 2px; font-weight: 600; }
.foot-dl { display: block; border: 1px solid var(--line-2); border-radius: 4px; text-align: center; padding: 9px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--t1); }
.foot-dl:hover { border-color: var(--lime); color: var(--lime); }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card.small p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--t2); }
.notices { max-width: 1360px; margin: 40px auto 0; border-top: 1px solid var(--line); padding-top: 20px; }
.notices p { font-family: var(--mono); font-size: 10px; line-height: 1.7; letter-spacing: 0.04em; color: var(--t3); margin: 0 0 10px; text-align: center; max-width: 920px; margin-left: auto; margin-right: auto; }
.notices b { color: var(--t2); font-weight: 500; }
.notices .copy { margin-top: 18px; }

/* no-JS: the full records in flow under EU, UK and US headings, the globe still, a plain sentence in place of the control */
.law-details { display: none; }
.nojs .law-details { display: block; max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; }
.nojs .law-details article { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.law-details .mk-h { font-family: var(--serif); font-weight: 400; font-size: 30px; color: #fff; margin: 48px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.law-details .mk-h:first-child { margin-top: 0; }
.law-details .where { font-size: 12px; letter-spacing: 0.04em; color: var(--t3); margin: 6px 0 4px; }
.law-details .rec-h { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 0 0 10px; color: #fff; }
.law-details .asof { margin: 4px 0 14px; }
.law-details .back { margin: 0 0 14px; font-size: 13px; }
.law-details .back:last-child { margin: 20px 0 0; }
.law-details .back a { color: var(--t1); }
.nojs .hint, .nojs .tip, .nojs .labels { display: none; }
.nojs-route { display: none; }
.nojs .nojs-route { display: block; margin: 14px 0 6px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 14px; line-height: 1.5; color: var(--t1); }

/* mobile: the same system stacked, one page scroll. The globe is a square; the sentence strip appears once the sentence has scrolled away. */
@media (max-width: 900px) {
  :root { --header: 76px; --gh: min(100vw, 480px); }
  .rr { display: block; }
  .stage { position: relative; top: auto; height: auto; min-height: 0; padding-top: var(--header); display: flex; flex-direction: column; align-items: stretch; }
  .stage .globe { position: relative; inset: auto; height: var(--gh); width: var(--gh); align-self: center; flex: none; }
  .col { border-left: 0; padding: 14px 16px 32px; }
  .routebar-wrap { display: block; }
  .routebar { left: -16px; right: -16px; padding: 0 8px 0 16px; }
  h1 { font-size: 34px; }
  .subtitle { font-size: 14px; margin-bottom: 6px; }
  .explainer { font-size: 13.5px; line-height: 1.5; }
  .head { margin-bottom: 6px; }
  .kicker { margin-bottom: 6px; letter-spacing: 0.2em; font-size: 10px; }
  .sentence { font-size: 28px; margin: 8px 0 4px; }
  .s-br { display: block; flex-basis: 100%; height: 0; }
  .answer { margin-top: 6px; padding-top: 12px; }
  .lead { font-size: 17px; }
  .trade strong { font-size: 23px; }
  .law { padding: 12px 40px 12px 14px; }
  .law::after { top: 26px; }
  .close { height: 44px; min-width: 44px; }
  .alldates summary { min-height: 44px; display: flex; align-items: center; }
  .srcs > summary { min-height: 44px; }
  .hint { top: calc(var(--header) + var(--gh) - 8px); left: 12px; right: calc((100vw - var(--gh)) / 2 + 56px); transform: translateY(-100%); }
  .stage-foot { position: static; padding: 0 12px 4px; background: none; }
  .mapnote { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 0 8px; font-size: 11.5px; line-height: 1.4; }
  .mapnote .hatch { margin-top: 3px; }
  .mn-more > summary { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; margin: -12px -6px -14px 0; }
  .mn-more[open] { grid-column: 1 / -1; grid-row: 2; }
  .mn-more[open] > summary { margin: 0; }
  .mn-more[open] .mn-full { position: static; box-shadow: none; margin: 0 0 6px; padding: 10px 12px; }
  .zoom { right: calc((100vw - var(--gh)) / 2 + 4px); top: calc(var(--header) + var(--gh) - 96px); display: grid; grid-template-columns: auto auto; gap: 0; align-items: end; justify-items: end; }
  .zbtn { position: relative; isolation: isolate; width: 44px; height: 44px; border: 0; background: transparent; font-size: 18px; }
  .zbtn::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(13, 17, 23, 0.85); z-index: -1; }
  .zbtn[data-zoom='in'] { grid-column: 2; grid-row: 1; }
  .zbtn[data-zoom='out'] { grid-column: 2; grid-row: 2; }
  .zbtn.reset { grid-column: 1; grid-row: 1; height: 44px; padding: 0 12px; font-size: 12px; }
  .labels span { font-size: 10.5px; }
  .labels span.on { font-size: 11.5px; }
  .still { width: calc(var(--gh) - 30px); top: calc(var(--header) + var(--gh) / 2); }
  .foot { padding: 40px 16px 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-cta, .foot-dl { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .foot-cta { display: inline-flex; padding-top: 0; padding-bottom: 0; }
  .card-row { grid-template-columns: 1fr 1fr; }
}
/* phone: the picker is a sheet from the foot of the screen, large targets, with the page dimmed behind it */
@media (max-width: 700px) {
  .pick-panel, .pick-panel.c { position: fixed; z-index: 90; left: 0; right: 0; top: auto; bottom: 0; min-width: 0; max-width: none; border-radius: 16px 16px 0 0; border-width: 1px 0 0; padding: 16px 12px calc(14px + env(safe-area-inset-bottom)); animation: sheet-in 200ms var(--ease); }
  @keyframes sheet-in { from { transform: translateY(24px); } to { transform: none; } }
  .pick { max-height: 56vh; }
  .opt { min-height: 48px; }
  .pick-scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(5, 7, 10, 0.6); }
  .sentence { font-size: 26px; }
}
@media (max-width: 360px) { .sentence { font-size: 24px; } }
@media (max-width: 900px) and (min-width: 600px) { .zoom { right: calc((100vw - var(--gh)) / 2 + 4px); } }
@media (prefers-reduced-motion: reduce) { .law, .still, .law::after, .routebar, .pick-panel, .slot .chev, .slot .ul, .opt .o-bar, .hint { transition: none; animation: none; } .slot.sweep .ul { animation: none; } }
#questions { scroll-margin-top: 80px; }
@media (max-width: 420px) { .kicker { letter-spacing: 0.12em; gap: 8px; white-space: normal; } .kicker .rule { width: 20px; } }
/* touch widths: the site links and the source links are 44 px tall targets (the nav drawer opens below 1024 px, the single column below 901 px) */
@media (max-width: 1023px) {
  .nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
  .mnav-link { display: flex; align-items: center; min-height: 44px; }
  .mnav > * + * { margin-top: 4px; }
  .mnav-sep { margin: 8px 0; }
  .mnav-icons { gap: 8px; }
  .mnav-icons .nav-icon { width: 44px; height: 44px; align-items: center; justify-content: center; }
}
@media (max-width: 900px) {
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .srcs li a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* a touch screen (phone or tablet, any orientation): a vertical swipe that starts on the globe scrolls the page; a sideways drag still turns it. Tap, pinch and the zoom buttons are unchanged. Mouse and trackpad keep touch-action none. */
@media (pointer: coarse) { .globe { touch-action: pan-y; } }
