:root {
  --ink: #12160f;
  --ink-soft: #4a5240;
  --paper: #f2eee4;
  --paper-2: #fbf8f1;
  --line: #d7d0c0;
  --amber: #c8922a;
  --amber-2: #e0a93a;
  --chassis: #151a14;
  --chassis-2: #1f261c;
  --scope: #2f6b4f;
  --scope-2: #3d8a66;
  --rose: #a33a2c;
  --ok: #1f6b45;
  --shadow: 0 20px 50px rgba(18, 22, 15, 0.12);
  --radius: 16px;
  --header-h: 72px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: Oswald, "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1000px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
}
/* Početna: čista podloga — hero nosi vizual */
body.is-home {
  background: var(--paper);
}
/* Unutrašnje stranice: ham-radio foto na LIJEVOJ i DESNOJ strani.
   Sadržaj je uska papirnata kolona — bez sive wash preko cijelog viewporta. */
body.has-atmosphere {
  position: relative;
  min-height: 100vh;
  background-color: #1a1f16;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.atmosphere-col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc((100vw - min(var(--max), 100vw - 48px)) / 2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.atmosphere-col--left { left: 0; }
.atmosphere-col--right { right: 0; }
.atmosphere-col img {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.atmosphere-col--left::after,
.atmosphere-col--right::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.atmosphere-col--left::after {
  background: linear-gradient(90deg, rgba(10,12,8,.06), rgba(18,22,15,.18));
}
.atmosphere-col--right::after {
  background: linear-gradient(270deg, rgba(10,12,8,.06), rgba(18,22,15,.18));
}

body.has-atmosphere .sheet {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(var(--max), calc(100% - 48px));
  max-width: var(--max);
  margin: 20px auto 28px;
  background: rgba(251, 248, 241, 0.97);
  border-radius: 18px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .38);
}
body.has-atmosphere .sheet .content {
  flex: 1;
  max-width: none;
  width: 100%;
}

@media (max-width: 900px) {
  .atmosphere { display: none; }
  body.has-atmosphere {
    background-image: url("../bg/antenna-tower.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  body.has-atmosphere .sheet {
    width: calc(100% - 20px);
    margin: 12px auto 20px;
    background: rgba(251, 248, 241, 0.96);
  }
}


a { color: var(--scope); text-decoration: none; }
a:hover { color: var(--amber); }
button, input, select, textarea { font: inherit; }

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* —— Site header (public website, not app sidebar) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(21,26,20,.96), rgba(31,38,28,.94));
  border-bottom: 1px solid rgba(200,146,42,.28);
  color: #f4efe4;
}
.site-header-inner {
  max-width: calc(var(--max) + 56px);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}
.site-header .brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  flex-shrink: 0;
  margin: 0;
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand small {
  color: var(--amber-2);
  font-family: var(--mono);
  letter-spacing: .08em;
  font-size: 12px;
}
.brand-logo {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: #fff;
  border: 2px solid var(--amber);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  flex: 1;
  flex-wrap: wrap;
}
.nav-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
}
.site-nav a {
  color: #eadfcd;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--amber-2);
}
.site-nav .btn {
  border-bottom: 0;
  color: #1a1306;
}
.site-nav .btn:hover { color: #1a1306; filter: brightness(1.06); }
.nav-admin {
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.nav-who {
  font-size: 13px;
  color: #b8c0b0;
  padding: 0 8px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-logout { color: var(--amber-2) !important; }
.menu-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

.page-head {
  border-bottom: 1px solid var(--line);
  background: rgba(251,248,241,.72);
}
body.has-atmosphere .page-head {
  background: transparent;
  border-bottom-color: var(--line);
  box-shadow: none;
}

.page-head-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px 14px;
}
.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}

.content {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px 48px;
}
.content--flush {
  max-width: none;
  padding: 0 0 48px;
}
.content--flush > .alert-inset,
.content--flush > .audit-notice.alert-inset,
.content--flush > .panel,
.content--flush > .stats,
.content--flush > .club-intro,
.content--flush > .feature-story,
.content--flush > .partners,
.content--flush > .section-head,
.content--flush > .gallery-grid,
.content--flush > .gallery-preview {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
  width: 100%;
}
.content--flush > .section-head {
  margin-top: 8px;
  margin-bottom: 14px;
}
.content--flush > .feature-story {
  margin-bottom: 36px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.alert-ok { background: #e4f4ea; color: #14532d; }
.alert-err { background: #fde8e6; color: #7a1c16; }
body.has-atmosphere .alert {
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 22, 15, 0.08);
}

.audit-notice {
  margin: 0 0 14px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  background: rgba(18, 22, 15, 0.04);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
}
body.has-atmosphere .audit-notice {
  background: rgba(251, 248, 241, 0.92);
  box-shadow: var(--shadow);
}

.audit-pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  overflow: auto;
  max-height: 220px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  background: rgba(18, 22, 15, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  overflow: hidden;
  margin-bottom: 28px;
  color: #fff;
  display: grid;
  align-items: end;
  background: #111 center / cover no-repeat;
}
.hero-bleed {
  border-radius: 0;
  min-height: min(78vh, 700px);
  margin-bottom: 36px;
  box-shadow: none;
}
.hero:not(.hero-bleed) {
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,18,12,.18) 8%, rgba(15,18,12,.84) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 40px clamp(20px, 4vw, 48px);
  max-width: calc(var(--max) + 40px);
  margin: 0 auto;
  width: 100%;
}
.hero-brand {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.hero-brand img {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--amber); background: #fff;
}
.hero-brand img:last-child {
  width: 28px; height: 56px;
  border: 0; border-radius: 0; background: transparent;
}
.hero h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 68px);
  line-height: .95;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero .callsign {
  font-family: var(--mono);
  color: var(--amber-2);
  letter-spacing: .12em;
  margin: 8px 0 14px;
}
.hero p {
  margin: 0 0 22px;
  max-width: 38ch;
  font-size: 18px;
  color: #e8e2d4;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ghost { border-color: rgba(255,255,255,.35); color: #fff; }

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px; margin: 8px 0 14px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 24px;
}
.section-head p { margin: 4px 0 0; color: var(--ink-soft); }

.club-intro { margin-bottom: 36px; max-width: 46rem; }
.club-goals {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.club-goals li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.club-meta {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.feature-story {
  margin: 0 0 36px;
  padding: 0 0 8px;
  border-top: 2px solid var(--amber);
  max-width: 40rem;
}
.feature-story h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 22px;
}
.feature-story p { margin: 0 0 12px; color: var(--ink); line-height: 1.55; }

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 8px 0 40px;
}
.partner {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.partner strong {
  display: block;
  font-family: var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 18px;
}
.partner span { color: var(--ink-soft); font-size: 14px; line-height: 1.4; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ddd;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
  display: block;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid a:nth-child(1),
.gallery-grid a:nth-child(7) { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.gallery-preview a:nth-child(n+9) { display: none; }

.gallery-album { margin-bottom: 36px; }
.gallery-album-head { margin-bottom: 14px; }
.gallery-album-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gallery-album-meta {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.panel-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.gallery-admin-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
}
.gallery-admin-item a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd;
}
.gallery-admin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-admin-meta {
  padding: 8px;
  display: grid;
  gap: 8px;
}
.gallery-admin-meta > span {
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  padding: 16px 0 8px;
  border-top: 2px solid var(--amber);
}
.stat span { color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  margin-top: 4px;
  letter-spacing: .02em;
}

.panel {
  background: rgba(251,248,241,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 18px;
}
body.has-atmosphere .panel,
body.has-atmosphere .toolbar,
body.has-atmosphere .table-wrap,
body.has-atmosphere .pager {
  background: rgba(251, 248, 241, 0.96);
}
body.has-atmosphere .toolbar,
body.has-atmosphere .table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
body.has-atmosphere .table-wrap {
  padding: 0;
  overflow: auto;
}
body.has-atmosphere .pager {
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 14px;
}
/* Toolbar/tabela unutar panela — bez dvostrukog okvira */
body.has-atmosphere .panel .toolbar,
body.has-atmosphere .panel .table-wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}


.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar .grow { flex: 1; min-width: 220px; }

.input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}
.input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(47,107,79,.25);
  border-color: var(--scope);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer;
  background: var(--ink); color: #fff; font-weight: 650;
}
.btn:hover { filter: brightness(1.08); }
.btn-gold { background: linear-gradient(135deg, var(--amber-2), var(--amber)); color: #1a1306; }
.btn-teal { background: var(--scope); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--rose); }
.btn-sm { padding: 7px 10px; font-size: 13px; border-radius: 10px; }

.table-wrap { overflow: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data th {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: var(--display);
}
table.data tr:hover td { background: rgba(200,146,42,.08); }
table.data a.row-link { color: var(--ink); font-weight: 700; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge-ok { background: #dff6e8; color: var(--ok); }
.badge-off { background: #f3eee6; color: #7a6a52; }
.paid-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.paid-chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 8px;
  background: #f3eee6;
}
.paid-chip.is-paid { background: #dff6e8; color: #14532d; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.field label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 13px; }
.field.full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; color: var(--ink-soft); }

/* —— Public content —— */
.news-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
body.has-atmosphere .news-list {
  background: rgba(251, 248, 241, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 20px 8px;
}
.news-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
body.has-atmosphere .news-item:first-child { border-top: 0; }
body.has-atmosphere .news-item:last-child { border-bottom: 0; }

.news-item time {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.news-item h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: 20px;
}
.news-item p { margin: 0; line-height: 1.55; color: var(--ink); }

.prose {
  max-width: 42rem;
  margin-bottom: 32px;
}
body.has-atmosphere .prose {
  background: rgba(251, 248, 241, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  max-width: 44rem;
}
.page-lede {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 40rem;
}
body.has-atmosphere .page-lede {
  background: rgba(251, 248, 241, 0.92);
  border-radius: 12px;
  padding: 12px 14px;
  display: inline-block;
}

.prose h2 {
  margin: 28px 0 10px;
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 22px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; line-height: 1.6; }
.prose .lede { font-size: 17px; color: var(--ink-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pay-box {
  border-top: 2px solid var(--amber);
  padding-top: 14px;
}
body.has-atmosphere .pay-box {
  background: rgba(251, 248, 241, 0.95);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.pay-box h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 20px;
}
.pay-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
}
.pay-box dt { color: var(--ink-soft); font-size: 13px; }
.pay-box dd { margin: 0; font-weight: 650; font-family: var(--mono); font-size: 14px; }
.data-name {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 16px;
}
.data-addr {
  margin: 0 0 14px;
  line-height: 1.5;
}
.pay-box a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}
.pay-box a[href^="tel"]:hover {
  color: var(--amber);
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-email {
  display: inline-block;
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.site-footer {
  margin-top: auto;
  background: var(--chassis);
  color: #d9d2c2;
  border-top: 1px solid rgba(200,146,42,.28);
}
.site-footer-inner {
  max-width: calc(var(--max) + 56px);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.site-footer a { color: var(--amber-2); }
.footer-place {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #d9d2c2;
}
.callsign-inline {
  font-family: var(--mono);
  color: var(--amber-2);
  margin-left: 10px;
  letter-spacing: .08em;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  background-color: #12160f;
  background-image: url("../bg/ham-shack.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(15, 18, 12, 0.28);
}
@media (max-width: 900px) {
  .auth-body { background-attachment: scroll; }
  .auth-body::before { position: absolute; }
}
.auth-card {
  width: min(440px, calc(100% - 32px));
  background: rgba(251,248,241,.94);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  border: 1px solid rgba(200,146,42,.35);
  position: relative;
  z-index: 1;
}
.auth-card h1 {
  margin: 8px 0 18px;
  font-family: var(--display);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.auth-card p { color: var(--ink-soft); margin-top: 0; }
.auth-card .field { margin-bottom: 14px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 18px; }
.auth-home {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: var(--ink-soft);
}

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8,10,7,.92);
  display: grid; place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: transparent; border: 0; color: #fff;
  font-size: 36px; cursor: pointer;
}

@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid a:nth-child(1),
  .gallery-grid a:nth-child(7) { grid-row: auto; aspect-ratio: 4/3; }
  .partners { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(21,26,20,.98);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    border-bottom: 1px solid rgba(200,146,42,.28);
    gap: 8px;
  }
  .site-nav.is-open { display: flex; }
  .nav-group { flex-direction: column; align-items: stretch; }
  .nav-admin {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 10px;
  }
  .site-header-inner { position: relative; flex-wrap: wrap; }
  .site-nav a { border-bottom: 0; padding: 12px 10px; }
  .site-nav a.is-active { background: rgba(200,146,42,.16); border-radius: 10px; }
}
@media (max-width: 640px) {
  .content, .page-head-inner, .site-header-inner, .site-footer-inner { padding-left: 16px; padding-right: 16px; }
  .content--flush > .alert-inset,
  .content--flush > .audit-notice.alert-inset,
  .content--flush > .panel,
  .content--flush > .stats,
  .content--flush > .club-intro,
  .content--flush > .feature-story,
  .content--flush > .partners,
  .content--flush > .section-head,
  .content--flush > .gallery-grid,
  .content--flush > .gallery-preview {
    padding-left: 16px;
    padding-right: 16px;
  }
  .gallery-grid { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .toolbar, .form-actions, .pager, .gallery-grid, .hero { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .panel { box-shadow: none; border: 0; background: #fff; }
  body,
  body.has-atmosphere,
  body.is-home,
  .auth-body {
    background: #fff !important;
  }
  body.has-atmosphere .sheet {
    box-shadow: none;
    border: 0;
    background: #fff;
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
  .atmosphere {
    display: none !important;
  }
  body.has-atmosphere::before,
  .atmosphere-col::after,
  .auth-body::before {
    display: none !important;
  }
}
