/* Paud — site styles
   Original Paud layout and pixel headings, on the light navy / steel-blue palette. */

:root {
  --bg: #f4f6fb;
  --bg-raised: #eaeff7;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --border: #dfe6ef;
  --border-strong: #c9d3e1;
  --text: #0f1b3d;
  --text-2: #33476b;
  --muted: #5b6b85;

  --accent: #3b6fa0;
  --accent-light: #9dbcdc;
  --accent-deep: #1e3a5f;
  --accent-soft: rgb(59 111 160 / .1);
  --navy: #0f1b3d;
  --navy-deep: #050b1d;
  --green: #4cc46f;
  --green-deep: #2a8a48;
  --green-ink: #062612;

  --youtube: #e62117;
  --youtube-deep: #9c140e;
  --patreon: #f96854;
  --discord: #5865f2;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 16px 36px -20px rgb(15 27 61 / .45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-pixel: 'Jersey 10', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1180px;
  --header-h: 64px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  font-synthesis: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; border-radius: var(--radius);
  background: var(--navy); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.icon { flex: none; width: 1.15em; height: 1.15em; }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font: 400 1.15rem/1.1 var(--font-pixel);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Pixel lettering (logo) */
.pixel-text { height: auto; }
.pixel-text .px-face { fill: currentColor; }
.pixel-text .px-depth { fill: var(--accent); }

/* Soft blue glow + faint grid behind the top of a page */
.backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 110% at 8% -10%, rgb(59 111 160 / .22), transparent 62%),
    radial-gradient(60% 100% at 96% 0%, rgb(30 58 95 / .14), transparent 60%);
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(15 27 61 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 27 61 / .045) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: linear-gradient(#000 25%, transparent 85%);
  mask-image: linear-gradient(#000 25%, transparent 85%);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface);
  --btn-edge: var(--border-strong);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .72em 1.15em;
  border: 0;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 .95rem/1.1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--btn-edge), inset 0 0 0 1px rgb(15 27 61 / .06), inset 0 2px 0 rgb(255 255 255 / .2);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--btn-edge), inset 0 0 0 1px rgb(15 27 61 / .06), inset 0 2px 0 rgb(255 255 255 / .2); filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge), inset 0 0 0 1px rgb(15 27 61 / .06); }

.btn--primary { --btn-bg: var(--accent); --btn-edge: var(--accent-deep); --btn-fg: #fff; }
.btn--navy { --btn-bg: var(--navy); --btn-edge: var(--navy-deep); --btn-fg: #fff; }
.btn--light { --btn-bg: var(--surface); --btn-edge: var(--border-strong); --btn-fg: var(--text); box-shadow: 0 4px 0 var(--btn-edge), inset 0 0 0 1px var(--border-strong); }
.btn--light:hover { box-shadow: 0 5px 0 var(--btn-edge), inset 0 0 0 1px var(--border-strong); filter: none; background: #fbfcfe; }
.btn--light:active { box-shadow: 0 1px 0 var(--btn-edge), inset 0 0 0 1px var(--border-strong); }
.btn--light .icon--youtube { color: var(--youtube); }
.btn--light .icon--patreon { color: var(--patreon); }
.btn--light .icon--discord { color: var(--discord); }
.btn--outline { --btn-bg: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--outline:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); filter: none; }
.btn--outline:active { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--sm { padding: .5em .85em; font-size: .85rem; box-shadow: 0 3px 0 var(--btn-edge), inset 0 2px 0 rgb(255 255 255 / .16); }
.btn--sm:hover { box-shadow: 0 4px 0 var(--btn-edge), inset 0 2px 0 rgb(255 255 255 / .16); }
.btn--lg { padding: .9em 1.45em; font-size: 1rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn:has(.icon--youtube):hover { border-color: var(--youtube); background: var(--youtube); color: #fff; }
.icon-btn:has(.icon--patreon):hover { border-color: var(--patreon); background: var(--patreon); color: #240806; }

/* ---------- Badges & tags ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .5rem .2rem;
  border-radius: 4px;
  font: 400 .98rem/1 var(--font-pixel);
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgb(15 27 61 / .25);
}
.badge .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.badge--free { background: var(--green); color: var(--green-ink); }
.badge--locked { background: var(--navy); color: #fff; }
.badge--example { background: #fff; color: var(--navy); }
.badge--short { position: absolute; top: .5rem; right: .5rem; background: rgb(15 27 61 / .85); color: #fff; }

.tag {
  display: inline-block;
  padding: .18rem .55rem;
  border: 1px solid rgb(59 111 160 / .35);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: .75rem;
  line-height: 1.4;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgb(244 246 251 / .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.brand { display: inline-flex; color: var(--text); }
.brand .logo { width: auto; height: 24px; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--text-2);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-header__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 112px);
  border-bottom: 1px solid var(--border);
}
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  margin: .9rem 0 1.5rem;
  color: var(--text);
  font: 400 clamp(4.5rem, 11.5vw, 8.75rem)/.82 var(--font-pixel);
  letter-spacing: .01em;
  text-shadow: 0 .04em 0 var(--accent-light);
}
.hero__lead {
  max-width: 560px;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.hero__stats li {
  padding: .45rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / .75);
  color: var(--text-2);
  font-size: .9rem;
}
.hero__stats strong { margin-right: .15rem; color: var(--text); font: 400 1.4rem/1 var(--font-pixel); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { border-block: 1px solid var(--border); background: var(--bg-raised); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-title {
  margin: .3rem 0 .45rem;
  color: var(--text);
  font: 400 clamp(2.7rem, 5.4vw, 3.8rem)/1 var(--font-pixel);
  letter-spacing: .01em;
}
.section-lead { max-width: 54ch; margin: 0; color: var(--text-2); }
.section-lead a { color: var(--text); }
.section-head__actions { display: flex; gap: .75rem; }
.section-foot { display: flex; justify-content: center; margin-top: 2.75rem; }

.notice {
  margin: 0 0 1.5rem;
  padding: .8rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  font-size: .9rem;
}

/* ---------- Map filters ---------- */

.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.chips { display: flex; gap: .4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: 600 .88rem/1 var(--font);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip .icon { width: 14px; height: 14px; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip__count { font-size: .78rem; opacity: .7; }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: .75rem; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input {
  width: 220px;
  padding: .55rem .85rem .55rem 2.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 .92rem/1.2 var(--font);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(59 111 160 / .2); }

/* ---------- Map cards ---------- */

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}
.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--border);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.map-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 0 var(--accent-light), var(--shadow);
}
.map-card.is-locked:hover { border-color: var(--navy); box-shadow: 0 6px 0 #8c9ab3, var(--shadow); }
.map-card:has(.stretched:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.map-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.map-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.map-card:hover .map-card__media img { transform: scale(1.04); }
.is-locked .map-card__media img { filter: saturate(.8) brightness(.72); }
.map-card__badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .4rem; }
.map-card__lock { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.map-card__lock .icon {
  width: 52px; height: 52px;
  padding: 12px;
  border-radius: 10px;
  background: rgb(15 27 61 / .72);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35);
}
.map-card__body { flex: 1; padding: 1.05rem 1.15rem .4rem; }
.map-card__title { margin: 0 0 .4rem; font: 400 1.8rem/1.05 var(--font-pixel); }
.map-card__title a { color: var(--text); text-decoration: none; }
.map-card__title a:focus-visible { outline: none; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.map-card__summary {
  display: -webkit-box;
  margin: 0 0 .8rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.5;
}
.map-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; }
.map-card__meta time { margin-right: .25rem; }
.map-card__foot { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.15rem 1.15rem; }
.map-card__cta { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 600; font-size: .9rem; }
.map-card__cta .icon { transition: translate .15s; }
.map-card:hover .map-card__cta .icon { translate: 3px 0; }
.map-card__buy { position: relative; z-index: 2; }

.placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .6rem;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: .9rem;
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 28px 28px;
}
.placeholder .icon { width: 40px; height: 40px; }

.empty-state {
  display: grid;
  justify-items: center;
  gap: .4rem;
  padding: 3.5rem 1.5rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.empty-state__logo { width: 120px; margin-bottom: .75rem; color: var(--text); }
.empty-state h3 { margin: 0; font: 400 2.1rem/1.1 var(--font-pixel); }
.empty-state p { margin: 0 0 1rem; color: var(--text-2); }
.empty-filter { margin: 1.5rem 0 0; text-align: center; color: var(--text-2); }

/* ---------- Videos ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem 1.5rem;
}
.video-card { display: flex; flex-direction: column; gap: .65rem; color: var(--text); text-decoration: none; }
.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--navy);
  box-shadow: 0 4px 0 var(--border);
  transition: border-color .15s;
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(15 27 61 / .25);
  opacity: 0;
  transition: opacity .15s;
}
.video-card__play .icon { width: 56px; height: 40px; padding: 8px 14px; border-radius: 10px; background: var(--youtube); color: #fff; }
.video-card:hover .video-card__thumb { border-color: var(--youtube); }
.video-card:hover .video-card__play, .video-card:focus-visible .video-card__play { opacity: 1; }
.video-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 600;
  line-height: 1.35;
}
.video-card__meta { color: var(--muted); font-size: .84rem; }

.channel-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.channel-card__icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--youtube);
  color: #fff;
  box-shadow: 0 4px 0 var(--youtube-deep);
}
.channel-card__icon .icon { width: 34px; height: 34px; }
.channel-card__text { flex: 1 1 260px; }
.channel-card__text h3 { margin: 0 0 .2rem; font: 400 1.85rem/1.1 var(--font-pixel); }
.channel-card__text p { margin: 0; color: var(--text-2); }

/* ---------- Copyright page ---------- */

.page { position: relative; overflow: hidden; }
.page__inner { position: relative; padding-block: clamp(48px, 7vw, 80px) clamp(64px, 8vw, 96px); }
.page-header { margin-bottom: 2rem; }
.page-title { margin: .3rem 0 .5rem; color: var(--text); font: 400 clamp(3rem, 7vw, 4.7rem)/.98 var(--font-pixel); }

.copyright-card {
  max-width: 860px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--border);
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.7;
}
.copyright-card p { margin: 0 0 1rem; }
.copyright-card__headline { color: var(--text); font: 800 1.05rem/1.4 var(--font); letter-spacing: .05em; }
.copyright-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.4rem 0;
}
.copyright-card__facts div { padding: .75rem .9rem; border-radius: var(--radius); background: var(--surface-2); }
.copyright-card__facts dt { color: var(--muted); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.copyright-card__facts dd { margin: .2rem 0 0; color: var(--text); font-weight: 600; line-height: 1.35; }
.copyright-card p.copyright-card__note { margin: 0; color: var(--muted); font-size: .86rem; }

/* ---------- 404 ---------- */

.notfound { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); text-align: center; }
.notfound__inner { display: grid; justify-items: center; }
.notfound__blocks { width: clamp(250px, 44vw, 560px); }
.notfound__blocks .block-text { width: 100%; height: auto; filter: drop-shadow(0 3px 2px rgb(15 27 61 / .28)); }
.notfound__shadow {
  width: 46%;
  height: 16px;
  margin-top: 1.6rem;
  background: radial-gradient(closest-side, rgb(15 27 61 / .2), transparent);
}
.notfound .eyebrow { margin-top: 2rem; }
.notfound__title { margin: .5rem 0 .9rem; color: var(--text); font: 400 clamp(2.8rem, 6.6vw, 4.6rem)/1 var(--font-pixel); }
.notfound__text { max-width: 34rem; margin: 0 0 2rem; color: var(--text-2); font-size: 1.08rem; line-height: 1.6; }
.notfound__text code {
  padding: .12rem .45rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text);
  font: 400 .9em/1.4 var(--font-mono);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer { padding: 3rem 0 2rem; background: var(--navy); color: #e8edf3; }
.site-footer .brand { color: #fff; }
.site-footer .logo .px-depth { fill: var(--accent-light); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.site-footer__brand p { margin: .8rem 0 0; color: #b8c4d8; font-size: .92rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; max-width: 520px; }
.site-footer__links a { color: #d5deeb; font-size: .95rem; text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .12);
  color: #9fb0c8;
  font-size: .8rem;
}
.site-footer__legal p { margin: 0; }

/* ---------- Map page ---------- */

.map-page { padding-top: 2rem; padding-bottom: 4.5rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.5rem;
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover { color: var(--text); }
.back-link .icon { width: 18px; height: 18px; }
.map-header { margin-bottom: 1.75rem; }
.map-header__badges { display: flex; gap: .5rem; margin-bottom: .9rem; }
.map-title { margin: 0 0 .7rem; color: var(--text); font: 400 clamp(3rem, 7vw, 4.7rem)/.98 var(--font-pixel); }
.map-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--muted); font-size: .94rem; }
.map-meta .dot { opacity: .6; }
.map-meta__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-left: .35rem; }

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}
.map-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.gallery__main {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: 0 4px 0 var(--border);
  cursor: zoom-in;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main--empty { cursor: default; }
.gallery__zoom {
  position: absolute;
  right: .75rem; bottom: .75rem;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgb(15 27 61 / .72);
  color: #fff;
  opacity: 0;
  transition: opacity .15s;
}
.gallery__main:hover .gallery__zoom, .gallery__main:focus-visible .gallery__zoom { opacity: 1; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .6rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.gallery__thumbs a {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  opacity: .7;
  transition: opacity .15s, border-color .15s;
}
.gallery__thumbs a:hover { opacity: 1; }
.gallery__thumbs a[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.map-about { margin-top: 2.5rem; }
.map-about h2 { margin: 0 0 1rem; font: 400 2.2rem/1.1 var(--font-pixel); }
.map-about p { max-width: 70ch; margin: 0 0 1rem; color: var(--text-2); line-height: 1.75; }

.action-card {
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--border);
}
.action-card--locked {
  border-color: rgb(15 27 61 / .3);
  background: linear-gradient(180deg, rgb(59 111 160 / .08), transparent 45%), var(--surface);
  box-shadow: 0 6px 0 #c3cddc;
}
.action-card__icon {
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 0 var(--navy-deep);
}
.action-card__icon--free { background: var(--green); color: var(--green-ink); box-shadow: 0 4px 0 var(--green-deep); }
.action-card__icon .icon { width: 25px; height: 25px; stroke-width: 2.3; }
.action-card h2 { margin: 1rem 0 .4rem; font: 400 2.05rem/1.1 var(--font-pixel); }
.action-card p { margin: 0 0 1.3rem; color: var(--text-2); line-height: 1.55; }
.action-card p.action-card__price { margin: -.4rem 0 1.2rem; color: var(--text); font: 400 2.7rem/1 var(--font-pixel); }
.action-card p.action-card__fine { margin: 1rem 0 0; color: var(--muted); font-size: .84rem; }
.action-card__fine a { color: var(--text-2); }

.view-more {
  display: flex;
  justify-content: center;
  margin: 3rem 0 2.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border);
}

.map-copyright {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-2);
  font-size: .92rem;
}
.map-copyright__line { margin: 0; }
.map-copyright__line strong { color: var(--text); font-weight: 800; letter-spacing: .04em; }
.map-copyright__details summary { margin-top: .7rem; color: var(--accent); font-weight: 600; cursor: pointer; }
.map-copyright__details .copyright-card { max-width: none; margin-top: 1rem; background: var(--bg); box-shadow: none; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgb(10 18 41 / .95);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(0 0 0 / .5); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; border-radius: 6px; object-fit: contain; }
.lightbox button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / .12);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / .22); }
.lightbox button .icon { width: 24px; height: 24px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__count { position: fixed; bottom: 1rem; left: 50%; translate: -50% 0; margin: 0; color: #c9d5e6; font-family: var(--font-pixel); font-size: 1.2rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .map-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .map-side { position: static; }
  .map-main { display: contents; }
  .map-about { order: 1; margin-top: .25rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 104px; }
  .site-header__inner { flex-wrap: wrap; gap: .35rem 1rem; min-height: 0; padding-block: .7rem .55rem; }
  .site-nav { order: 3; width: 100%; gap: 1.3rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
  .site-nav::-webkit-scrollbar { display: none; }
  .section-head { align-items: stretch; }
  .map-tools { width: 100%; }
  .search { flex: 1 1 200px; }
  .search input { width: 100%; }
  .copyright-card__facts { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .9rem; }
  .video-card__title { font-size: .9rem; }
  .video-card__meta { font-size: .78rem; }
}

@media (max-width: 420px) {
  .site-header .btn--navy span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .hero__actions .btn { flex: 1 1 100%; }
  .chips { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
