/* ==========================================================================
   HP8LR — Liga Panameña de Radioaficionados, Zona HP8
   Sitio estático. Hoja de estilos única.
   Paleta inspirada en el emblema de la Liga: azul profundo, oro y blanco.
   ========================================================================== */

:root {
  --bg-0: #03071a;
  --bg-1: #061030;
  --bg-2: #0a1c50;
  --panel: rgba(12, 27, 72, 0.6);
  --panel-solid: #0a1740;
  --line: rgba(247, 201, 72, 0.18);
  --line-soft: rgba(160, 186, 255, 0.14);
  --gold: #f7c948;
  --gold-soft: #ffe39a;
  --gold-deep: #d9a520;
  --blue: #2f6bff;
  --blue-soft: #7fa8ff;
  --text: #e9efff;
  --muted: #a9b6d8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -20%, #14337f 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(47, 107, 255, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #020612 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(127, 168, 255, 0.22) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-soft); text-underline-offset: 0.22em; }
a:hover { color: #fff; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }

ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.35em; }

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

::selection { background: var(--gold); color: #04102e; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--gold);
  color: #06102d;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip:focus { top: 0; color: #06102d; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(4, 10, 32, 0.92), rgba(4, 10, 32, 0.72));
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
  min-width: 0;
}
.brand:hover { color: var(--text); }

.brand-badge {
  width: 52px;
  height: 52px;
  flex: none;
  filter: drop-shadow(0 4px 14px rgba(47, 107, 255, 0.45));
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}

.brand-word strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.brand-word small {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-soft); }
.nav-toggle .bars { display: grid; gap: 3px; }
.nav-toggle .bars span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li + li { margin: 0; }

.nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] {
  color: #06102d;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 18px -8px rgba(247, 201, 72, 0.8);
}
.nav a.is-external::after {
  content: "PDF";
  margin-left: 0.4rem;
  padding: 0.05rem 0.3rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  vertical-align: 0.15em;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 0.75;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  isolation: isolate;
}

.hero-rings {
  position: absolute;
  top: -40%;
  left: 50%;
  width: min(1200px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  bottom: -46%;
  left: 50%;
  width: min(1600px, 170vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(closest-side, rgba(84, 150, 255, 0.55), rgba(21, 74, 200, 0.18) 55%, transparent 72%);
  filter: blur(10px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 { margin-bottom: 0.5rem; }
.hero h1 .accent {
  display: block;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.hero .lead {
  max-width: 34ch;
  margin-bottom: 1.6rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: #06102d;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 16px 34px -18px rgba(247, 201, 72, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  color: #06102d;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -18px rgba(247, 201, 72, 0.95);
}
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-soft);
  box-shadow: none;
}
.btn--ghost:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-emblem {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-emblem img {
  width: clamp(190px, 22vw, 280px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 30px rgba(64, 120, 255, 0.25));
}
.hero-emblem figcaption {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------- facts */

.quickfacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.quickfacts li {
  margin: 0;
  padding: 1.15rem 1.3rem;
  background: rgba(6, 16, 48, 0.92);
}
.quickfacts dt,
.quickfacts .fact-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.quickfacts .fact-value {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
}

/* ------------------------------------------------------------- sections */

.section { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(1.75rem, 4vw, 3rem) 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); }
.section-head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.45rem 1.4rem;
  background: linear-gradient(160deg, rgba(18, 38, 96, 0.72), rgba(7, 18, 52, 0.72));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% -30%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(247, 201, 72, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(247, 201, 72, 0.5);
  color: var(--text);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 0.45rem;
  color: var(--gold);
  background: rgba(247, 201, 72, 0.09);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0; font-size: 1.12rem; }
.card p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.card .card-more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------ page head */

.page-head {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -60% 40% auto auto;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.page-head h1 { margin-bottom: 0.4rem; }
.page-head .lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- prose */

.prose { max-width: 74ch; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.05em; }
.prose > :first-child { margin-top: 0; }
.prose .kicker { margin-bottom: 0.35rem; }
.prose .kicker + h2 { margin-top: 0; }
.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.2em;
  color: #fff;
}
.prose h3 { margin-top: 1.8em; color: var(--gold-soft); }
.prose strong { color: #fff; }
.prose a { color: var(--gold-soft); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.25em;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-style: italic;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 2.4em 0;
}
.prose .signature {
  margin-top: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
}

.panel {
  padding: clamp(1.35rem, 3vw, 2.5rem);
  background: linear-gradient(165deg, rgba(16, 34, 88, 0.66), rgba(6, 15, 44, 0.8));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 1.25rem; }

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  color: #dbe4ff;
}

.note {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(247, 201, 72, 0.06);
  color: var(--muted);
  font-size: 0.93rem;
}
.note strong { color: var(--gold-soft); }

/* --------------------------------------------------------------- figures */

.figure {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 34, 88, 0.7), rgba(6, 15, 44, 0.85));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.figure figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
.figure figcaption strong { color: var(--gold-soft); }

.figure--original img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.figure--wide img { aspect-ratio: 16 / 9; }
.figure--contain img { aspect-ratio: auto; object-fit: contain; background: #fff; }

.figure-float {
  float: right;
  width: min(46%, 380px);
  margin: 0.25rem 0 1.25rem 1.75rem;
}
.figure-float--left { float: left; margin: 0.25rem 1.75rem 1.25rem 0; }

@media (max-width: 720px) {
  .figure-float,
  .figure-float--left {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }
}

/* --------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 45%), 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li { margin: 0; }

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #061030;
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3, 7, 26, 0.55));
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.gallery a:hover img { transform: scale(1.045); filter: brightness(1.08); }
.gallery a:hover::after { opacity: 0.35; }

.gallery--2 { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

.gallery--portrait { grid-template-columns: repeat(auto-fill, minmax(min(165px, 44%), 1fr)); }
.gallery--portrait a { aspect-ratio: 3 / 4; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(247, 201, 72, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-list li { margin: 0; }

/* ---------------------------------------------------------------- table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(16, 34, 88, 0.55), rgba(6, 15, 44, 0.75));
  box-shadow: var(--shadow);
}

table.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}
table.board caption {
  padding: 1rem 1.2rem;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
table.board th {
  padding: 0.75rem 1.2rem;
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.board td {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.board tbody tr:last-child td { border-bottom: 0; }
table.board tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
table.board td .callsign {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  letter-spacing: 0.03em;
  color: var(--gold-soft);
}
table.board td a { text-decoration: none; }
table.board td a:hover { text-decoration: underline; }

.table-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }

/* ---------------------------------------------------------------- lists */

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.link-list li {
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem;
  text-decoration: none;
  color: var(--text);
}
.link-list a:hover { color: var(--gold-soft); }
.link-list .meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- toc */

.with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1.1rem 1.2rem;
  background: rgba(8, 20, 58, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}
.toc h2 {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.toc ol {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}
.toc li + li { margin-top: 0.3rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--gold-soft); }

@media (max-width: 900px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}

/* ---------------------------------------------------------- activity grid */

.activity-card {
  padding: 0;
  overflow: hidden;
}
.activity-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #061030;
}
.activity-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.activity-card:hover .thumb img { transform: scale(1.05); }
.activity-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 10, 32, 0.9));
}
.activity-card .body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.3rem 1.35rem;
}
.activity-card h3 { margin: 0; }
.activity-card .meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.activity-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------------- prev / next */

.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.pager a {
  display: block;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.pager a:hover { border-color: var(--gold); color: #fff; }
.pager .dir {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.pager .title { display: block; margin-top: 0.25rem; font-weight: 600; }
.pager .next { text-align: right; }

/* --------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 2rem;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(4, 10, 32, 0.2), rgba(3, 7, 26, 0.85));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 2rem;
}

.site-footer h2 {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.site-footer p { color: var(--muted); font-size: 0.9rem; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: #fff;
  text-decoration: none;
}
.footer-brand img { width: 46px; height: 46px; }
.footer-brand strong { display: block; letter-spacing: 0.06em; }
.footer-brand small { font-size: 0.72rem; color: var(--muted); }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.footer-links li + li { margin-top: 0.4rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); }

.footer-note {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #8494bd;
}

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 1.25rem;
  background: rgba(2, 5, 16, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox[open] { display: grid; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 90px -30px #000;
}
.lightbox-caption {
  margin: 0.9rem auto 0;
  max-width: 70ch;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--gold); color: #06102d; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; }

/* -------------------------------------------------------------- reveal */

.reveal { transform: translateY(14px); }
.reveal.is-visible {
  transform: none;
  transition: transform 0.6s ease;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
  .nav a { padding: 0.45rem 0.5rem; font-size: 0.82rem; }
  .brand-word small { font-size: 0.62rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 0.75rem 1.25rem 1.25rem;
    background: #040a20;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 30px 40px -20px #000;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav a {
    display: block;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; }
  .hero-emblem img { width: min(210px, 55vw); }

  .quickfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 1.75rem, var(--wrap)); }
  .brand-badge { width: 44px; height: 44px; }
  .brand-word strong { font-size: 1.15rem; }
  .brand-word small { max-width: 44vw; }
  .quickfacts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(min(140px, 44%), 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-head--row { display: block; }
  .lightbox-prev { left: 0.35rem; }
  .lightbox-next { right: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #111; }
  body::before,
  .site-header,
  .site-footer,
  .hero-rings,
  .hero-glow,
  .pager,
  .actions { display: none !important; }
  .panel,
  .prose,
  .figure { background: #fff; border-color: #ccc; box-shadow: none; }
  a { color: #111; }
  .page-head { border-color: #ccc; }
}
