/* Sportmaps 2026
   A blend of two directions:
   - from the first proposal: the full-bleed map hero, Archivo display type,
     black map frames and the control circle on hover;
   - from the user's own draft: bold uppercase navigation, grey rounded cards,
     black table headers, black buttons, N/A/R badges and the black info box.
   Purple (course overprint) is kept for the hover circle and keyboard focus. */

@font-face {
  font-family: "Archivo"; src: url("../fonts/archivo.woff") format("woff");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo"; src: url("../fonts/archivo-italic.woff") format("woff");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}

:root {
  --paper: #ffffff;
  --grey-bg: #f5f5f4;
  --grey-line: #e2e2df;
  --ink: #000000;
  --ink-2: #3f433d;
  --ink-3: #6b7067;
  --green: #248f3b;
  --green-d: #1b6a2b;
  --green-l: #e4f2e5;
  --amber: #b97a00;
  --overprint: #a8128a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --r-sm: 6px;

  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-md: 1.2rem;
  --t-lg: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
  --t-xl: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  --t-xxl: clamp(2.3rem, 1.5rem + 3.4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: var(--t-base); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--overprint); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
h1, h2 { font-stretch: 116%; font-variation-settings: "wdth" 116; font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: var(--t-sm); color: var(--ink-3); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 46px; padding: .7em 1.3em;
  border: 0; border-radius: var(--r-sm); font: inherit; font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green-d); color: #fff; }
.btn-ghost { background: var(--grey-bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--grey-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 38px; padding: .5em .95em; font-size: .78rem; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--green-d); text-decoration: none; }
.text-link:hover { color: var(--ink); text-decoration: underline; }
.text-link .i { transition: transform .15s; }
.text-link:hover .i { transform: translateX(3px); }

/* ---------- header (from the user's draft) */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--grey-line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-list, .lang-list, .social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-list { gap: 22px; }
.nav-list a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .86rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-color: var(--green); color: var(--ink); }
.nav-list a[aria-current="page"] { border-color: var(--ink); }
.nav-extra { display: flex; align-items: center; gap: 14px; }
.lang-list { gap: 3px; }
.lang-list a { display: block; padding: 4px 7px; border-radius: 5px; font-size: .75rem; font-weight: 700; color: #8b8f87; text-decoration: none; }
.lang-list a:hover { color: var(--ink); }
.lang-list a[aria-current="true"] { background: var(--ink); color: #fff; }
.social { gap: 6px; }
.soc { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.soc .i { width: 15px; height: 15px; }
.soc-fb { background: #1877f2; } .soc-ig { background: #e1306c; }
.soc:hover { color: #fff; filter: brightness(.88); }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .header-in { min-height: 62px; }
  .brand img { height: 40px; }
  .menu-btn { display: grid; place-items: center; width: 46px; height: 46px; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; } .menu-icon::after { top: 7px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--grey-line); box-shadow: 0 12px 24px -16px rgba(0,0,0,.35); }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 15px var(--gutter); border-bottom: 1px solid var(--grey-line); font-size: .95rem; }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--grey-line); box-shadow: inset 4px 0 0 var(--green); }
  .nav-extra { justify-content: space-between; padding: 14px var(--gutter) 18px; }
  .lang-list a { padding: 8px 12px; font-size: .85rem; }
  .soc { width: 36px; height: 36px; }
}

/* ---------- hero (from the first proposal) */
.hero { position: relative; isolation: isolate; min-height: min(84vh, 800px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 2px solid var(--ink); }
.hero-map { position: absolute; inset: 0; margin: 0; z-index: -1; background: #f1b94a; }
.hero-map img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero-in { padding-block: clamp(32px, 6vw, 72px); }
.hero-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); max-width: 620px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 10px 10px 0 var(--ink); }
.hero-card h1 { font-size: var(--t-xxl); margin-bottom: .35em; }
.hero-lede { font-size: var(--t-md); color: var(--ink-2); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.hero-caption { margin: 1.5em 0 0; padding-top: .8em; border-top: 1px solid var(--grey-line); font-size: var(--t-sm); color: var(--ink-3); }
@media (max-width: 720px) {
  .hero { display: block; min-height: 0; border-bottom: 0; }
  .hero-map { position: relative; height: 50vh; min-height: 280px; border-bottom: 2px solid var(--ink); }
  .hero-in { padding: 0; }
  .hero-card { border: 0; border-radius: 0; box-shadow: none; max-width: none; padding: 28px var(--gutter) 32px; }
  .hero-card .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- news: black box with green accents (user's draft) */
.news { margin-top: clamp(36px, 5vw, 56px); }
.news-in { display: flex; gap: 22px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px clamp(20px, 3vw, 34px); }
.news-mark { width: 54px; height: 54px; flex: none; color: var(--green); }
.news-tag { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6fd17f; }
.news h2 { font-size: var(--t-lg); color: #fff; margin-bottom: .25em; }
.news p:last-child { margin: 0; color: #d9dcd6; }
@media (max-width: 560px) { .news-in { flex-direction: column; align-items: flex-start; gap: 12px; } .news-mark { width: 40px; height: 40px; } }

/* ---------- section heads */
.section-head { margin-bottom: 30px; max-width: 64ch; }
.section-head h2 { font-size: var(--t-xl); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: none; }
.sub-h { font-size: var(--t-lg); margin-bottom: 18px; }

/* ---------- services: grey photo cards (user's draft) */
.services { padding-block: clamp(56px, 8vw, 96px); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.svc { background: var(--grey-bg); border: 1px solid var(--grey-line); border-radius: var(--radius); overflow: hidden; }
.svc-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--grey-line); }
.svc-body { padding: 20px 22px 24px; }
.svc h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; color: var(--green-d); margin-bottom: .55em; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a:hover { color: var(--ink); text-decoration: underline; }
.svc p { color: var(--ink-2); font-size: .97rem; }
.svc-groups { display: grid; gap: 12px; margin-top: 14px; }
.svc-group { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.svc-group h4 { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding-top: 3px; }
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding: 3px 0 3px 16px; font-size: .95rem; color: var(--ink-2); }
.dots li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.svc-link { margin: 1em 0 0; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- recent maps */
.recent { background: var(--grey-bg); padding-block: clamp(56px, 8vw, 96px); border-block: 1px solid var(--grey-line); }
.mini-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mini-map { display: block; color: var(--ink); text-decoration: none; }
.mini-thumb { position: relative; display: block; }
.mini-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.mini-thumb .badge { position: absolute; left: 10px; top: 10px; }
.mini-body { display: block; padding-top: 10px; }
.mini-body strong { display: block; font-stretch: 108%; font-variation-settings: "wdth" 108; }
.mini-body small { color: var(--ink-3); font-size: var(--t-sm); }
.mini-map:hover strong { color: var(--green-d); text-decoration: underline; }
@media (max-width: 900px) { .mini-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .section-head-row .btn { order: 2; } }

/* ---------- about */
.about { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.about h2 { font-size: var(--t-xl); margin-bottom: .5em; }
.about-photo { width: 100%; border: 2px solid var(--ink); border-radius: var(--radius); }
.about-name { font-size: var(--t-md); line-height: 1.4; }
.facts { display: flex; gap: 40px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--grey-line); }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { color: var(--ink-3); font-size: var(--t-sm); }
.facts dd { margin: 0; font-size: var(--t-lg); font-weight: 800; font-stretch: 116%; font-variation-settings: "wdth" 116; color: var(--green-d); }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 180px; } }

.cta { background: var(--green); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(44px, 6vw, 72px); flex-wrap: wrap; }
.cta h2 { font-size: var(--t-xl); margin-bottom: .35em; }
.cta p { color: #eaf6ea; margin: 0; }

/* ---------- page heads */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 30px); }
.page-head h1 { font-size: var(--t-xxl); margin-bottom: .3em; }
.lead { font-size: var(--t-md); color: var(--ink-2); line-height: 1.5; }

/* ---------- N / A / R badges (user's draft) */
.badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; font-size: .72rem; font-weight: 800; color: #fff; font-style: normal; }
.badge-N { background: var(--green-d); } .badge-A { background: var(--amber); } .badge-R { background: #4d514b; }

/* ---------- map gallery */
.gallery { padding-bottom: clamp(56px, 8vw, 104px); }
.toolbar { display: grid; gap: 14px; padding: 16px; background: var(--grey-bg); border: 1px solid var(--grey-line); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: var(--t-sm); font-weight: 700; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--grey-line); display: inline-flex; align-items: center; gap: 6px; }
.chip span { font-weight: 500; color: var(--ink-3); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: #c4c8c0; }
.toolbar-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 420px; }
.search .i { position: absolute; left: 13px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; min-height: 44px; padding: 0 14px 0 40px; font: inherit; font-size: 1rem; border: 1px solid var(--grey-line); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.search input:focus { border-color: var(--ink); }
.view-toggle { display: inline-flex; background: #fff; border: 1px solid var(--grey-line); border-radius: var(--r-sm); padding: 3px; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.result-count { margin: 18px 0 14px; font-size: var(--t-sm); color: var(--ink-3); }
.type-note { margin-top: 28px; font-size: var(--t-sm); color: var(--ink-3); }

.map-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 20px; }
.map-card[hidden] { display: none; }
.list-head { display: none; }
.card-btn { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; cursor: pointer; }
.card-btn.is-static { cursor: default; }
.card-btn:focus-visible { outline: 3px solid var(--overprint); outline-offset: 4px; border-radius: 8px; }
.thumb { display: block; position: relative; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 8px; background: var(--grey-bg); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-btn:not(.is-static):hover .thumb img { transform: scale(1.06); }
.card-btn:not(.is-static) .thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; translate: -50% -50%;
  border: 4px solid var(--overprint); border-radius: 50%; opacity: 0; scale: .6; transition: opacity .2s, scale .2s;
}
.card-btn:not(.is-static):hover .thumb::after, .card-btn:focus-visible .thumb::after { opacity: 1; scale: 1; }
.map-card .badge { position: absolute; left: 10px; top: 10px; z-index: 1; }
.no-img { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: var(--t-sm); background: repeating-radial-gradient(circle at 30% 60%, transparent 0 14px, rgba(184,104,44,.32) 14px 15.5px), var(--grey-bg); }
.card-body { display: block; padding-top: 12px; }
.card-title { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.2; font-stretch: 108%; font-variation-settings: "wdth" 108; }
.card-act { display: block; color: var(--ink-2); font-size: var(--t-sm); margin-top: 3px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 7px; font-size: var(--t-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card-meta span:empty { display: none; }
.m-scale { color: var(--ink); font-weight: 700; }
.card-btn:not(.is-static):hover .card-title { color: var(--green-d); text-decoration: underline; }
.empty { padding: 48px 0; color: var(--ink-2); }

/* list view: the same cards laid out as a table with a black header (user's draft) */
@media (min-width: 761px) {
  .map-grid.is-list { display: block; border: 1px solid var(--grey-line); border-radius: var(--radius); overflow: hidden; }
  .map-grid.is-list .list-head, .map-grid.is-list .card-btn {
    display: grid; grid-template-columns: 64px minmax(160px, 1.3fr) minmax(180px, 1.6fr) 90px 90px 52px 92px; gap: 14px; align-items: center; padding: 8px 14px;
  }
  .map-grid.is-list .list-head { background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding-block: 11px; }
  .map-grid.is-list .map-card { border-top: 1px solid var(--grey-line); }
  .map-grid.is-list .map-card:nth-of-type(even) .card-btn { background: var(--grey-bg); }
  .map-grid.is-list .card-body, .map-grid.is-list .card-meta { display: contents; }
  .map-grid.is-list .thumb { width: 64px; height: 46px; aspect-ratio: auto; border-width: 1px; border-radius: 4px; order: 1; }
  .map-grid.is-list .thumb::after { display: none; }
  .map-grid.is-list .card-btn:hover .thumb img { transform: none; }
  .map-grid.is-list .no-img { font-size: 0; }
  .map-grid.is-list .card-title { order: 2; font-size: .98rem; }
  .map-grid.is-list .card-act { order: 3; margin: 0; }
  .map-grid.is-list .m-scale { order: 4; }
  .map-grid.is-list .m-area { order: 5; }
  .map-grid.is-list .card-meta span:empty { display: block; }
  .map-grid.is-list .map-card .badge { position: static; order: 6; }
  .map-grid.is-list .m-date { order: 7; }
  .map-grid.is-list .m-scale, .map-grid.is-list .m-area, .map-grid.is-list .m-date { font-size: var(--t-sm); }
  .map-grid.is-list .card-btn:not(.is-static):hover { background: var(--green-l); }
}
@media (max-width: 760px) {
  .view-toggle { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .search { max-width: none; }
  .map-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
}

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); }
.lightbox::backdrop { background: rgba(0,0,0,.82); }
.lb-frame { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100dvh - 36px); }
.lb-img { background: #000; display: grid; place-items: center; min-height: 0; flex: 1 1 auto; overflow: auto; }
.lb-img img { width: 100%; height: auto; max-height: 72dvh; object-fit: contain; }
.lb-info { position: relative; padding: 20px 24px 24px; }
.lb-info h2 { font-size: var(--t-lg); padding-right: 110px; }
.lb-act { color: var(--ink-2); margin: 6px 0 14px; }
.lb-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.lb-meta div { display: flex; flex-direction: column; }
.lb-meta dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.lb-meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-nav { position: absolute; right: 20px; top: 18px; display: flex; gap: 8px; }
.lb-nav button, .lb-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; border: 0; background: var(--ink); color: #fff; }
.lb-nav button:hover, .lb-close:hover { background: var(--green-d); }
.lb-nav svg, .lb-close svg { width: 20px; height: 20px; }
.lb-close { position: absolute; right: 12px; top: 12px; z-index: 2; background: #fff; color: var(--ink); }
@media (max-width: 600px) {
  .lightbox { max-width: 100vw; max-height: 100dvh; margin: auto 0 0; }
  .lb-frame { border-radius: var(--radius) var(--radius) 0 0; max-height: 100dvh; }
  .lb-img { overflow-x: auto; justify-items: start; }
  .lb-img img { width: 200%; max-width: none; max-height: none; }
  .lb-info { padding: 18px var(--gutter) 28px; }
}

/* ---------- circuits: rounded card, grey head, black-header table (user's draft) */
.circuits { display: grid; gap: 28px; padding-bottom: 28px; }
.circuit { border: 1px solid var(--grey-line); border-radius: var(--radius); overflow: hidden; }
.circuit-head { background: var(--grey-bg); padding: 22px 24px; border-bottom: 1px solid var(--grey-line); }
.circuit-head h2 { font-size: var(--t-lg); margin-bottom: 12px; }
.circuit-meta { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 0; }
.circuit-meta div { display: flex; flex-direction: column; }
.circuit-meta dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.circuit-meta dd { margin: 0; font-weight: 700; }
.circuit-meta a { display: inline-flex; gap: .3em; align-items: center; }
.circuit-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 24px; padding: 24px; align-items: start; }
.circuit.is-portrait .circuit-body { grid-template-columns: minmax(0, .65fr) minmax(0, 1.6fr); }
.circuit-sheet { display: block; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.circuit-sheet:hover { outline: 3px solid var(--green); outline-offset: 2px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--grey-line); border-radius: 8px; }
.courses { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.courses th, .courses td { white-space: nowrap; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--grey-line); vertical-align: middle; }
.courses thead th { background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: 0; }
.courses tbody tr:nth-child(even) > * { background: var(--grey-bg); }
.courses tbody tr:last-child > * { border-bottom: 0; }
.courses tbody th { font-weight: 800; }
.courses td.start { white-space: normal; min-width: 150px; }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 0; }
.dl-cell { text-align: right !important; }
.courses .btn-small { background: var(--ink); color: #fff; min-height: 32px; padding: .4em .8em; }
.courses .btn-small:hover { background: var(--green-d); }
.courses .dl-long { display: none; }
.partners { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.partners img { height: 52px; width: auto; }
@media (max-width: 1000px) { .circuit-body, .circuit.is-portrait .circuit-body { grid-template-columns: 1fr; } .circuit.is-portrait .circuit-sheet { max-width: 380px; } }
@media (max-width: 720px) {
  .circuit-head, .circuit-body { padding: 18px 16px; }
  .table-scroll { border: 0; border-radius: 0; }
  .courses thead { display: none; }
  .courses, .courses tbody, .courses tr, .courses th, .courses td { display: block; }
  .courses tr { border: 1px solid var(--grey-line); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; background: var(--grey-bg); }
  .courses tbody tr:nth-child(even) > * { background: none; }
  .courses th, .courses td { padding: 0; border: 0; white-space: normal; background: none; }
  .courses tbody th { grid-column: 1 / -1; font-size: 1.1rem; }
  .courses td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
  .courses .dl-cell { grid-column: 1 / -1; text-align: left !important; }
  .courses .dl-cell .btn { width: 100%; justify-content: center; min-height: 42px; }
  .courses .dl-long { display: inline; } .courses .dl-short { display: none; }
}
.app-wrap { padding-bottom: clamp(56px, 8vw, 96px); }
.app-box { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; background: var(--grey-bg); border: 1px solid var(--grey-line); border-radius: var(--radius); padding: 26px; }
.app-box > img { border-radius: var(--r-sm); }
.app-box h2 { font-size: var(--t-lg); margin-bottom: .5em; }
.app-links { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-bottom: 0; }
@media (max-width: 640px) { .app-box { grid-template-columns: 1fr; padding: 20px; } .app-box > img { width: 160px; } }

/* ---------- resources (user's draft: grey rows and link pills) */
.res { padding-bottom: clamp(40px, 6vw, 72px); }
.dl-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.dl { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 14px 16px; background: var(--grey-bg); border: 1px solid var(--grey-line); border-radius: 8px; }
.dl strong { display: block; }
.dl div span { color: var(--ink-3); font-size: var(--t-sm); }
.dl-tags { display: flex; gap: 6px; }
.dl-tags span { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--grey-line); color: var(--ink-2); white-space: nowrap; }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr auto; } .dl-tags { grid-row: 2; } }
.link-group { margin-bottom: 26px; }
.link-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green-d); margin-bottom: 10px; }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.link-grid a { display: block; height: 100%; padding: 10px 14px; background: var(--grey-bg); border: 1px solid var(--grey-line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.link-grid a span { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.link-grid a small { color: var(--ink-3); }
.link-grid a:hover { background: #fff; border-color: var(--green); }
@media (max-width: 900px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .link-grid { grid-template-columns: 1fr; } }

/* ---------- contact: form + black info box (user's draft) */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 104px); align-items: start; }
.mail-form { display: grid; gap: 14px; }
.mail-form h2 { font-size: var(--t-lg); }
.mail-form .small { margin: -4px 0 4px; }
.mail-form label { display: grid; gap: 6px; }
.mail-form label > span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.mail-form .opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.mail-form input, .mail-form select, .mail-form textarea { font: inherit; font-size: 1rem; width: 100%; padding: 11px 13px; border: 1px solid var(--grey-line); border-radius: var(--r-sm); background: var(--grey-bg); color: var(--ink); }
.mail-form textarea { resize: vertical; min-height: 120px; }
.mail-form input:focus, .mail-form select:focus, .mail-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; background: #fff; }
.mail-form .btn { justify-self: start; }
.contact-info { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 26px; }
.contact-info h2 { font-size: var(--t-lg); color: #fff; margin-bottom: 18px; }
.contact-info dl { margin: 0 0 24px; display: grid; gap: 16px; }
.contact-info dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6fd17f; }
.contact-info dd { margin: 2px 0 0; font-size: 1.05rem; word-break: break-word; }
.contact-info a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.contact-info a:hover { color: #6fd17f; }
.person { display: flex; gap: 16px; align-items: center; padding-top: 20px; border-top: 1px solid #2c302a; }
.person img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.person p { margin: 0; color: #cfd3cb; font-size: .95rem; }
.person strong { color: #fff; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .mail-form .btn { justify-self: stretch; justify-content: center; } }

/* ---------- footer */
.site-footer { background: var(--ink); color: #d6dad2; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 52px 34px; }
.footer-brand img { width: 160px; margin-bottom: 12px; }
.footer-brand p { color: #a9afa4; margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { text-transform: uppercase; font-size: .85rem; font-weight: 700; letter-spacing: .03em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #8fd49b; text-decoration: underline; }
.footer-base { border-top: 1px solid #2b2f29; padding-block: 18px 28px; font-size: var(--t-sm); color: #8b9186; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } }
.cebc-mark { color: var(--green-d); font-weight: 800; margin-left: 2px; }
.circuit-note { margin: 12px 0 0; font-size: var(--t-sm); color: var(--ink-3); }
.circuit-note sup { color: var(--green-d); font-weight: 800; }
/* more courses: let headers wrap and give the table more room */
.courses thead th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
.courses th, .courses td { padding-inline: 9px; }
.circuit.is-portrait .circuit-body { grid-template-columns: 240px minmax(0, 1fr); }
@media (max-width: 1180px) { .circuit.is-portrait .circuit-body { grid-template-columns: 1fr; } }
.news .news-more { margin: 10px 0 0; }
.news-more a { display: inline-flex; align-items: center; gap: .4em; color: #6fd17f; font-weight: 700; text-decoration: none; }
.news-more a:hover { color: #fff; text-decoration: underline; }
.about { grid-template-columns: 280px 1fr; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 260px; } }
.card-club { display: block; margin-top: 3px; font-size: .8rem; font-weight: 700; color: var(--green-d); line-height: 1.3; }
@media (min-width: 761px) { .map-grid.is-list .card-club { display: none; } }
