:root {
  color-scheme: light;
  --paper: #fafafa;
  --surface: #fff;
  --ink: #18181b;
  --muted: #52525b;
  --rule: #e4e4e7;
  --accent: #047857;
  --sea: #ecfdf5;
  --text: "Segoe UI", system-ui, sans-serif;
  --control-radius: 10px;
  --gutter: clamp(16px, 5vw, 76px);
}
html.dark {
  color-scheme: dark;
  --paper: #09090b;
  --surface: #18181b;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --rule: #3f3f46;
  --accent: #6ee7b7;
  --sea: #132923;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--text); }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.main, .footer { width: min(100%, 1440px); margin-inline: auto; padding-inline: var(--gutter); }
.divider { display: none; }
.links { display: flex; flex: 1; min-width: 0; gap: 0 14px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.link { display: inline-flex; align-items: center; min-height: 40px; padding-block: 4px; color: var(--muted); font-size: .82rem; text-underline-offset: 5px; }
.link:hover, .link.active { color: var(--accent); text-decoration: underline; }
.main { flex: 1; padding-block: clamp(20px, 4vw, 54px) clamp(48px, 8vw, 105px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(18px, 4vw, 62px);
}
.hero-copy { align-self: center; }
.reference { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: 22px; padding: clamp(13px, 2vw, 26px); min-width: 0; }
.reference h2 { margin: 0 0 6px; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; letter-spacing: -.04em; }
.reference .reference-intro { font-size: .86rem; margin-bottom: 12px; }
.hero-copy { min-width: 0; padding-block: 16px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .83rem; font-weight: 650; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--text); }
h1 { margin-bottom: 18px; font-size: clamp(2.55rem, 5.45vw, 5.45rem); line-height: .99; font-weight: 750; letter-spacing: -.065em; overflow-wrap: anywhere; }
.hero h1 { max-width: 13ch; text-wrap: balance; }
.lede { max-width: 42ch; color: var(--muted); font-size: clamp(.97rem, 1.25vw, 1.1rem); }
.actions { margin-top: 24px; }
.button { border-radius: var(--control-radius); display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--accent); background: var(--accent); color: var(--paper); font-weight: 650; font-size: .86rem; }
.button:hover { background: var(--surface); color: var(--accent); }
.section { margin-top: clamp(45px, 7vw, 90px); }
.section-title h2 { margin: 0 0 14px; font-weight: 700; font-size: clamp(1.65rem, 3vw, 2.6rem); letter-spacing: -.055em; line-height: 1.02; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px 16px; min-width: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); padding: 21px clamp(12px, 2.5vw, 32px); }
.card:hover { background: var(--sea); border-color: var(--accent); }
.card h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.12; }
.card p { grid-column: 1 / -1; margin: 0; color: var(--muted); max-width: 47ch; }
.card-bottom { grid-column: 1 / -1; margin-top: 6px; color: var(--accent); font-weight: 650; font-size: .85rem; }
.reference-intro, .intro { color: var(--muted); max-width: 55ch; }
.reference-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.reference-tab { flex: 1 1 auto; border-radius: var(--control-radius); border: 1px solid var(--rule); background: transparent; text-align: center; min-height: 44px; padding: 6px 10px; font-size: .82rem; }
.reference-tab:hover { background: var(--sea); }
.reference-tab.active { border-color: var(--accent); box-shadow: inset 0 -2px var(--accent); color: var(--accent); background: var(--sea); font-weight: 700; }
.reference-map-card { border-radius: 14px; background: var(--sea); border: 1px solid var(--rule); min-width: 0; padding: 8px; }
.reference-map { display: block; width: 100%; height: auto; }
.reference-map .country, .reference-map .marker { cursor: pointer; }
.reference-map .country:hover, .reference-map .marker:hover { stroke: var(--ink); stroke-width: 1.4; }
.reference-status { min-height: 1.55em; margin: 4px 0; color: var(--ink); font-size: .88rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink); font-size: .79rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 10px; height: 10px; border: 1px solid #71717a; }
.reference-note { margin: 16px 0 0; border-left: 2px solid var(--accent); padding-left: 12px; color: var(--muted); font-size: .87rem; }
.footer-wrap { border-top: 1px solid var(--rule); color: var(--muted); font-size: .84rem; }
.footer { padding-block: 18px; }
.content { max-width: 900px; }
.release { border-top: 1px solid var(--rule); padding-block: 24px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 16px; }
.release h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 400; }
.badge { color: var(--accent); font-size: .83rem; font-weight: 650; }
.release-body { color: var(--muted); }
.release-body p { margin-block: 5px 18px; }
.release-body h3 { margin-bottom: 5px; color: var(--ink); }
.release-body ul { margin: 0; padding-left: 20px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.3rem, 9.5vw, 3.75rem); max-width: 16ch; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .links { gap: 0 10px; }
  .link { min-height: 44px; }
}

.mobile-menu-links { display: grid; gap: 2px; }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 550;
}
.mobile-menu-links svg { flex: none; color: var(--muted); }
.mobile-menu-links a:hover { background: var(--paper); }
.mobile-menu-links [aria-current] { background: var(--sea); color: var(--accent); }
@media (max-width: 767px) {
  .has-mobile-dock {
    --ec-sheet-bottom: calc(var(--mobile-dock-height, 78px) + 24px + env(safe-area-inset-bottom, 0px));
    scroll-padding-top: 68px;
    scroll-padding-bottom: calc(var(--ec-sheet-bottom) + 12px);
  }
  .has-mobile-dock .header .links, .has-mobile-dock .header .utility { display: none; }
  .has-mobile-dock .page { padding-bottom: var(--ec-sheet-bottom); }
}

/* Main-site previews and the standalone euro reference. */
.hunts-preview { display:block; min-width:0; padding:20px; border:1px solid var(--rule); border-radius:18px; background:var(--surface); }
.hunts-preview:hover { border-color:var(--accent); }
.hunts-preview-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hunts-preview-heading h2 { margin:0; font-size:1.4rem; letter-spacing:-.035em; }
.hunts-preview-heading > span { color:var(--accent); font-size:1.5rem; }
.hunts-preview > p { margin-block:8px 16px; color:var(--muted); font-size:.9rem; }
.hunts-preview-frame { overflow:hidden; border:1px solid var(--rule); border-radius:10px; margin-bottom:14px; }
.hunts-preview-frame img { display:block; width:100%; height:auto; }
.hunts-preview-frame .hunts-preview-dark { display:none; }
.dark .hunts-preview-light { display:none; }
.dark .hunts-preview-frame .hunts-preview-dark { display:block; }
.reference-page { max-width:1040px; }
.reference-page h1 { font-size:clamp(1.8rem,4vw,3rem); margin-bottom:12px; }

/* Match Collection's desktop navigation in both themes. */
.header .links { align-items: center; gap: 2px; }
.header .links .link { min-height: 32px; border-radius: 6px; padding: 6px 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: #71717a; text-decoration: none; transition: background-color .15s, color .15s; }
.header .links .link:hover { background: #f4f4f5; color: #18181b; text-decoration: none; }
.header .links .link:is(.active,[aria-current="page"]) { background: oklch(95% .052 163.051); color: oklch(43.2% .095 166.913); font-weight: 600; text-decoration: none; }
.dark .header .links .link { color: #a1a1aa; }
.dark .header .links .link:hover { background: #27272a; color: #f4f4f5; }
.dark .header .links .link:is(.active,[aria-current="page"]) { background: oklch(37.8% .077 168.94 / 30%); color: oklch(84.5% .143 164.978); }
