/* ============================================================
   STH — Schéissclub Hesper — static site stylesheet
   Design tokens pulled from club logo: red / blue / green / gold
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --ink: #14110f;
  --muted: #6b6661;
  --rule: rgba(20, 17, 15, 0.1);
  --red: #c30f13;
  --red-deep: #9a0c0f;
  --blue: #0290c3;
  --blue-deep: #04688c;
  --green: #04821c;
  --gold: #9b8d57;
  --gold-soft: #c9b97a;
  --footer-line: #2a2522;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
[id] { scroll-margin-top: 130px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
p { line-height: 1.5; }
::selection { background: var(--red); color: var(--paper); }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 48px;
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 16px;
  max-width: 1680px; margin: 0 auto; box-sizing: border-box;
}
.topbar-outer { background: var(--ink); }
.topbar > span:first-child { white-space: nowrap; flex-shrink: 0; }
.topbar .dot-green { color: var(--green); }
.topbar .dot-red { color: var(--red); }
.topbar-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.topbar-link:hover { color: var(--gold-soft); }
.topbar .brandline { color: var(--gold-soft); }
.topbar .langs { display: flex; gap: 14px; flex-shrink: 0; }
.topbar .langs span { opacity: 0.5; }
.topbar .langs span.active { opacity: 1; color: var(--paper); }
.topbar .center { text-align: center; flex: 1; min-width: 0; }

/* ---------- Navbar ---------- */
.navbar {
  padding: 20px 48px;
  max-width: 1680px; margin: 0 auto; box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 24px;
}
.navbar .brand { display: flex; align-items: center; gap: 14px; }
.navbar .brand img { height: 56px; width: auto; }
.navbar .brand .wordmark { font-weight: 900; font-size: 24px; letter-spacing: 0.04em; line-height: 1; }
.navbar .brand .wordmark.wordmark-long { font-size: 16px; letter-spacing: 0.01em; max-width: 220px; line-height: 1.2; }
.navbar .brand .subline { color: var(--muted); margin-top: 6px; font-size: 10px; }
.navbar nav.primary-nav { display: flex; gap: 32px; }
.navbar nav.primary-nav a {
  font-size: 14px; font-weight: 600; color: var(--ink);
  position: relative; padding: 4px 0; white-space: nowrap;
}
.navbar nav.primary-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
}
.navbar .actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 10px 16px; font-weight: 600; border: none; white-space: nowrap;
}
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-primary { background: var(--red); color: var(--paper); }
.btn-gold { background: var(--gold); color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--paper); z-index: 30;
  padding: 24px 32px; flex-direction: column; gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .close-btn { background: none; border: none; font-size: 28px; line-height: 1; color: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  font-size: 28px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--rule); letter-spacing: -0.01em;
}
.mobile-menu nav a.active { color: var(--red); }
.mobile-menu .actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.mobile-menu .actions .btn { width: 100%; text-align: center; padding: 16px; }

/* ---------- Stands bar ---------- */
.stands-bar {
  margin: 0 auto; max-width: 1680px; box-sizing: border-box; padding: 18px 48px; position: relative;
}
.stands-clip { overflow: hidden; white-space: nowrap; }
.stands-track { display: inline-flex; gap: 40px; animation: marquee 120s linear infinite; }
.stands-bar:hover .stands-track { animation-play-state: paused; }
.stands-item {
  background: none; border: none; display: inline-flex; align-items: center; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.stands-item:hover, .stands-item.active { border-bottom-color: var(--ink); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .stands-track { animation: none; } }

.stand-popover {
  display: none; position: fixed; z-index: 60; background: var(--paper); border: 1.5px solid var(--ink);
  padding: 24px 28px; max-width: 340px; box-shadow: 0 12px 32px rgba(20,17,15,0.18);
}
.stand-popover.open { display: block; }
.stand-popover-close {
  position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 18px;
  line-height: 1; color: var(--muted); cursor: pointer;
}
.stand-popover-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 10px;
}
.stand-popover-body { font-size: 14px; line-height: 1.6; color: var(--muted); }
.stand-popover-body .sd-block { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--rule); }
.stand-popover-body .sd-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.stand-popover-body b { color: var(--ink); }
.stand-popover-body p { margin: 6px 0 0; }
.stand-popover-body .sd-italic { font-style: italic; color: var(--muted); }
.stand-popover { max-width: 380px; }

/* ---------- Hero (home) ---------- */
.hero-figure { margin: 32px auto 0; max-width: 1680px; box-sizing: border-box; padding: 0 48px; }
.hero-photo { width: 100%; aspect-ratio: 21 / 9; position: relative; background-color: var(--paper-2); overflow: hidden; }
.hero-photo-layer {
  position: absolute; inset: 0; background-size: cover; background-position: center 60%;
  opacity: 0; transition: opacity 1s ease-in-out;
}
.hero-photo-layer.active { opacity: 1; }
.hero-chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: 6px 10px; font-weight: 600;
  text-decoration: none; display: inline-block; cursor: pointer;
}
.hero-chip.chip-red { background: var(--red); color: var(--paper); }
.hero-chip.chip-green { background: var(--green); color: var(--paper); }
.hero-chip.chip-muted { color: var(--muted); }
.hero-chips-tl { position: absolute; top: 24px; left: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chips-tr { position: absolute; top: 24px; right: 24px; }
.hero-chips-br { position: absolute; bottom: 24px; right: 24px; }
.hero-info { position: absolute; bottom: 24px; left: 24px; background: var(--paper); padding: 20px 24px; max-width: 360px; }
.hero-info .eyebrow { color: var(--red); margin-bottom: 8px; display: block; }
.hero-info .body { font-size: 17px; line-height: 1.35; font-weight: 500; }
.hero-stats { position: absolute; bottom: 24px; right: 24px; background: var(--ink); color: var(--paper); padding: 20px 24px; display: flex; gap: 32px; }
.hero-stats .stat b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hero-stats .stat b.c-red { color: var(--red); }
.hero-stats .stat b.c-blue { color: var(--blue); }
.hero-stats .stat b.c-gold { color: var(--gold-soft); }
.hero-stats .stat span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #aaa39a; margin-top: 6px; display: block; }

/* ---------- Sections ---------- */
.section { padding: 96px 48px; border-top: 1px solid var(--rule); max-width: 1680px; margin: 0 auto; box-sizing: border-box; }
.section.alt { background: var(--paper); border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.eyebrow { color: var(--red); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; display: block; }
h2.section-title { font-size: 72px; line-height: 0.92; margin: 20px 0 0; font-weight: 800; letter-spacing: -0.04em; }
.section-link { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* Page banner for subpages */
.page-banner { padding: 64px 48px 0; }
.page-banner h1.section-title { font-size: 64px; }
.page-banner .lede { font-size: 19px; color: var(--muted); max-width: 640px; margin-top: 24px; line-height: 1.55; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.about-lede { font-size: 21px; line-height: 1.5; margin: 0; }
.about-lede strong.c-red { color: var(--red); }
.about-lede strong.c-blue { color: var(--blue); }
.about-lede strong.c-green { color: var(--green); }
.pill-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.pill {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
  border: 1.5px solid var(--ink); font-size: 14px; font-weight: 600;
}
.pill.c-red { border-color: var(--red); } .pill.c-red .arrow { color: var(--red); }
.pill.c-blue { border-color: var(--blue); } .pill.c-blue .arrow { color: var(--blue); }
.pill.c-green { border-color: var(--green); } .pill.c-green .arrow { color: var(--green); }
.pill .arrow { font-weight: 700; }

.stat-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stat { border-top: 3px solid var(--ink); padding-top: 14px; }
.stat.c-red { border-color: var(--red); } .stat.c-red b { color: var(--red); }
.stat.c-blue { border-color: var(--blue); } .stat.c-blue b { color: var(--blue); }
.stat.c-green { border-color: var(--green); } .stat.c-green b { color: var(--green); }
.stat.c-gold { border-color: var(--gold); } .stat.c-gold b { color: var(--gold); }
.stat b { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; display: block; }
.stat span { color: var(--muted); margin-top: 10px; display: block; }

.tag-list { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }
.tag-list .label { color: var(--muted); margin-bottom: 18px; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.04em; font-weight: 600;
  text-transform: uppercase; color: var(--paper); padding: 8px 14px;
}
.tag.c-red { background: var(--red); }
.tag.c-blue { background: var(--blue); }
.tag.c-green { background: var(--green); }
.tag.c-gold { background: var(--gold); }

.disciplines-strip {
  padding: 48px 48px; border-top: 1px solid var(--rule); display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.disciplines-strip .tags { flex: 1; justify-content: flex-end; }

.about-extra { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about-extra .label { margin-bottom: 10px; display: block; }
.about-extra p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Hours table ---------- */
.hours-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--rule); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 18px 16px; text-align: center; }
.hours-table thead th {
  font-family: 'IBM Plex Mono', monospace; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); font-weight: 800; border-bottom: 1.5px solid var(--ink); padding-bottom: 14px;
}
.hours-table thead th:first-child { text-align: left; padding-left: 20px; }
.hours-table tbody td {
  font-size: 17px; color: var(--muted); border-bottom: 1px solid var(--rule); line-height: 1.4;
}
.hours-table tbody tr:last-child td { border-bottom: none; }
.hours-table tbody td:first-child {
  text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); position: relative; padding-left: 34px;
}
.hours-table tbody td:first-child::before {
  content: ''; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
}
.hours-table tr.row-red td:first-child::before { background: var(--red); }
.hours-table tr.row-blue td:first-child::before { background: var(--blue); }
.hours-table tr.row-green td:first-child::before { background: var(--green); }
.hours-table td.hours-closed { color: var(--rule); }
.hours-special-cell { padding: 0 !important; }
.hours-special-link {
  display: block; padding: 18px 16px 18px 20px; text-align: left; color: var(--gold); font-weight: 700;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.hours-special-link:hover { text-decoration: underline; }
.hours-note { margin-top: 20px; color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.gallery-item {
  aspect-ratio: 4 / 3; background-size: cover; background-position: center;
  position: relative; border: none; padding: 0; cursor: pointer; display: block; width: 100%;
}
.gallery-item .gallery-label {
  position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: var(--paper);
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px; font-weight: 600;
}
.gallery-item .gallery-plus {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; background: var(--paper);
  color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(20, 17, 15, 0.94); z-index: 100;
  align-items: center; justify-content: center; padding: 64px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative; width: 100%; max-width: 1100px; aspect-ratio: 4 / 3;
  background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #111;
}
.lightbox-inner .gallery-label {
  position: absolute; left: 20px; bottom: 20px; background: var(--ink); color: var(--paper);
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; font-weight: 600;
}
.lightbox-close {
  position: absolute; top: -52px; right: 0; background: none; border: 1.5px solid var(--paper); color: var(--paper);
  width: 40px; height: 40px; font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: var(--paper); color: var(--ink);
  border: none; width: 44px; height: 44px; font-size: 18px; font-weight: 700; cursor: pointer;
}
.lightbox-nav.prev { left: -22px; }
.lightbox-nav.next { right: -22px; }

/* ---------- Events ---------- */
.events-tabs { display: flex; gap: 32px; align-items: baseline; flex-wrap: wrap; }
.events-tabs button {
  background: none; border: none; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.events-tabs button.active { color: var(--ink); border-color: var(--red); }
.events-tabs button .count { margin-left: 4px; }
.events-tabs button.active .count { color: var(--red); }

.events-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
.event-feature { background: var(--paper); display: flex; flex-direction: column; }
.event-feature .media {
  aspect-ratio: 16 / 9; position: relative;
  background: repeating-linear-gradient(135deg, #ececec 0 8px, #e2e2e2 8px 16px);
}
.event-feature .media .tag-chip {
  position: absolute; top: 0; left: 0; background: var(--red); color: var(--paper); padding: 10px 18px;
}
.event-feature .media .date-block {
  position: absolute; right: 24px; bottom: 24px; background: var(--paper); padding: 18px 24px; text-align: center; min-width: 130px;
}
.event-feature .media .date-block .day-name { color: var(--muted); }
.event-feature .media .date-block .day-num { font-size: 64px; font-weight: 800; line-height: 0.9; color: var(--red); margin-top: 4px; letter-spacing: -0.04em; }
.event-feature .media .date-block .month-year { color: var(--ink); margin-top: 4px; }
.event-feature .body { padding: 32px 36px 36px; }
.event-feature h3 { font-size: 38px; line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.event-feature p { font-size: 16px; color: var(--muted); margin: 18px 0 24px; max-width: 540px; }
.event-feature .actions-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.event-feature .actions-row .meta { color: var(--muted); margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.event-list { background: var(--paper); }
.event-list a, .event-list .event-row {
  padding: 28px 32px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 110px 1fr 24px;
  gap: 20px; align-items: start;
}
.event-list a:first-child, .event-list .event-row:first-child { border-top: none; }
.event-row .date-num { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.event-row .tag-label { margin-top: 6px; font-weight: 700; display: block; }
.event-row .tag-label.c-green { color: var(--green); }
.event-row .tag-label.c-blue { color: var(--blue); }
.event-row .tag-label.c-red { color: var(--red); }
.event-row .tag-label.c-gold { color: var(--gold); }
.event-row .title { font-size: 18px; font-weight: 600; line-height: 1.25; }
.event-row .meta { color: var(--muted); margin-top: 8px; display: block; }
.event-row .arrow { font-size: 20px; font-weight: 700; align-self: center; }
.event-row .arrow.c-green { color: var(--green); }
.event-row .arrow.c-blue { color: var(--blue); }
.event-row .arrow.c-red { color: var(--red); }
.event-row .arrow.c-gold { color: var(--gold); }

.events-footer-strip {
  margin-top: 36px; padding-top: 18px; border-top: 1.5px solid var(--ink);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px;
}

.news-list a { display: grid; grid-template-columns: 160px 1fr 100px; gap: 24px; padding: 24px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.news-list a:first-child { border-top: 1px solid var(--ink); }
.news-list .date { color: var(--red); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.news-list h3 { font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0; }
.news-list .excerpt { color: var(--muted); font-size: 14px; margin-top: 6px; }
.news-list .go { text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.placeholder-note { font-size: 18px; font-style: italic; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-row .label { margin-bottom: 8px; display: block; }
.contact-info-row .lines { font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact-info-row .lines a { color: var(--ink); }

.mini-map { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--rule); }
.mini-map iframe { width: 100%; height: 100%; border: 0; pointer-events: none; display: block; filter: grayscale(15%); }
.mini-map-cta {
  position: absolute; left: 10px; bottom: 10px; background: var(--paper); color: var(--ink);
  padding: 6px 10px; font-size: 10px; font-weight: 700;
}
.mini-map-sm { aspect-ratio: 4 / 3; }
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.form-input {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--rule); background: var(--paper); padding: 13px 14px; outline: none;
}
.form-input:focus { border-color: var(--red); }
textarea.form-input { resize: vertical; font-family: inherit; }
.form-submit { align-self: flex-start; margin-top: 4px; }
.form-success { display: none; color: var(--green); font-size: 12px; }
.form-success.show { display: block; }
.form-error { display: none; color: var(--red); font-size: 12px; }
.form-error.show { display: block; }
.cf-turnstile { margin-bottom: 16px; }
.contact-form.submitted .form-group,
.contact-form.submitted .form-submit { display: none; }

/* ---------- Documents ---------- */
.doc-count { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.doc-featured {
  grid-column: span 2; grid-row: span 2; background: var(--paper); color: var(--ink); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  border: 1px solid var(--rule);
}
.doc-featured .corner { display: none; }
.doc-featured .content { position: relative; }
.doc-featured .eyebrow-gold { color: var(--gold); font-weight: 700; }
.doc-featured h3 { font-size: 52px; line-height: 0.95; margin: 32px 0 0; font-weight: 800; letter-spacing: -0.03em; }
.doc-featured p { font-size: 14px; line-height: 1.5; margin-top: 24px; max-width: 340px; color: var(--muted); }
.doc-featured .footer-row { display: flex; justify-content: space-between; align-items: end; position: relative; }
.doc-featured .footer-row .meta { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.doc-featured .footer-row .open-btn { background: var(--gold); color: var(--paper); padding: 10px 14px; font-weight: 700; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.doc-disabled { cursor: default; opacity: 0.55; }
.doc-disabled .open-btn { background: var(--muted) !important; }

.doc-tile {
  background: var(--paper); padding: 20px; border: 1px solid var(--rule); display: flex; flex-direction: column;
  justify-content: space-between; position: relative; color: var(--ink);
}
.doc-tile .stripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.doc-featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.doc-tile .stripe.c-red { background: var(--red); } .doc-tile .tag.c-red { color: var(--red); }
.doc-tile .stripe.c-blue { background: var(--blue); } .doc-tile .tag.c-blue { color: var(--blue); }
.doc-tile .stripe.c-green { background: var(--green); } .doc-tile .tag.c-green { color: var(--green); }
.doc-tile .stripe.c-gold { background: var(--gold); } .doc-tile .tag.c-gold { color: var(--gold); }
.doc-tile .stripe.c-ink { background: var(--ink); } .doc-tile .tag.c-ink { color: var(--ink); }
.doc-tile .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-top: 6px; }
.doc-tile .title { font-size: 17px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.doc-tile .row { display: flex; justify-content: space-between; align-items: center; }
.doc-tile .meta { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.doc-request {
  background: var(--paper-2); padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1.5px dashed var(--muted);
}
.doc-request .label { color: var(--muted); }
.doc-request .title { font-size: 16px; font-weight: 700; line-height: 1.2; }
.doc-request .cta { margin-top: 10px; color: var(--muted); display: block; }

/* ---------- Footer ---------- */
body { background: var(--paper); }
.site-footer { background: var(--ink); color: var(--paper); padding: 48px 48px 24px; }
.footer-grid { display: grid; grid-template-columns: 5fr 2fr 2fr 2fr; gap: 40px; align-items: start; max-width: 1680px; margin: 0 auto; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 18px; }
.footer-brand img { height: 88px; width: auto; }
.footer-brand .wordmark { font-size: 44px; font-weight: 900; letter-spacing: 0.02em; line-height: 0.95; }
.footer-brand .wordmark.wordmark-long { font-size: 26px; letter-spacing: 0.005em; line-height: 1.15; max-width: 420px; }
.footer-brand .subline { color: var(--gold-soft); margin-top: 8px; font-size: 11px; }
.footer-brand .estline { color: #aaa39a; margin-top: 4px; font-size: 10px; }
.footer-brand p { font-size: 15px; line-height: 1.45; margin-top: 18px; max-width: 360px; color: #cfc9be; }
.badges { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge { border: 1.5px solid; padding: 6px 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.06em; font-weight: 700; }
a.badge { display: inline-block; text-decoration: none; }
a.badge:hover { text-decoration: underline; }
.badge.c-red { border-color: var(--red); color: var(--red); }
.badge.c-blue { border-color: var(--blue); color: var(--blue); }
.badge.c-green { border-color: var(--green); color: var(--green); }
.badge.c-gold { border-color: var(--gold); color: var(--gold); }
.footer-col .label { margin-bottom: 16px; display: block; }
.footer-col .label.c-red { color: var(--red); }
.footer-col .label.c-blue { color: var(--blue); }
.footer-col .label.c-green { color: var(--green); }
.footer-col .label.c-gold { color: var(--gold-soft); }
.footer-col div.lines { font-size: 14px; line-height: 1.85; color: #e6dfd2; }
.footer-col div.lines div { margin: 0; }
.footer-bottom {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--footer-line);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px;
  max-width: 1680px; margin-left: auto; margin-right: auto;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #aaa39a;
}
.footer-bottom .legal-links { display: flex; gap: 24px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  h2.section-title, .page-banner h1.section-title { font-size: 56px; }
  .about-grid, .events-layout, .two-col-stack { grid-template-columns: 1fr !important; gap: 32px !important; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .doc-featured { grid-column: span 2; grid-row: span 2; min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 1150px) {
  .navbar nav.primary-nav, .navbar .actions { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .tag-list { padding-left: 24px !important; padding-right: 24px !important; }
  .topbar .center, .topbar .brandline { display: none; }
  .section, .hero-figure, .page-banner, .stands-bar { padding-left: 24px; padding-right: 24px; margin-left: 0; margin-right: 0; }
  .doc-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .doc-featured { grid-column: 1; min-height: 320px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .hero-stats { position: static; margin-top: 12px; display: inline-flex; }
  .hero-info { position: static; margin-top: 12px; max-width: none; }
  .hero-chips-tl, .hero-chips-tr { position: static; margin-bottom: 12px; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-photo-layer { background-position: center center !important; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 24px; }
  .lightbox-nav.prev { left: 4px; }
  .lightbox-nav.next { right: 4px; }
  .lightbox-close { top: -44px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h2.section-title, .page-banner h1.section-title { font-size: 40px; }
  .event-feature h3 { font-size: 28px; }
  .doc-featured h3 { font-size: 36px; }
  .news-list a { grid-template-columns: 1fr; gap: 6px; }
  .news-list .go { text-align: left; }
}
