/* Star Garrison site styles. Map, photo grid and lightbox rules carried over from style.css. */
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.legend-item:hover, .legend-item.active {
  background: rgba(255,255,255,0.04);
  border-color: var(--border2);
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-label { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; }

.county-search-wrap { position: relative; }
.county-search {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  outline: none;
  transition: border-color var(--transition);
}
.county-search::placeholder { color: var(--text-muted); }
.county-search:focus { border-color: var(--gold-dim); }
.county-search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 180px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.county-search-results.open { display: block; }
.search-result-item {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.search-result-badge {
  font-size: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  flex-shrink: 0;
}

#sgMap { width: 100%; height: 100%; background: #080003; }

.map-tooltip {
  position: absolute;
  background: rgba(10,0,5,0.97);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text);
  pointer-events: none;
  z-index: 500;
  display: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
.map-tooltip.visible { display: block; }
.map-tooltip strong { color: var(--gold); font-family: var(--font-head); font-size: 0.75rem; }

.map-sidebar {
  background: var(--card);
  border-left: 1px solid var(--border2);
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
.map-sidebar-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  gap: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.map-sidebar-default .map-sidebar-icon { font-size: 2.2rem; }
.map-sidebar-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--red);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transition: all var(--transition);
  margin-top: 4px;
}
.map-sidebar-request-btn:hover {
  background: var(--red-bright);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 0 18px rgba(139,0,0,0.5);
}
.map-squad-detail { display: flex; flex-direction: column; gap: 14px; }
.map-detail-header { display: flex; align-items: center; gap: 14px; }
.map-detail-badge {
  width: 52px; height: 52px;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.map-detail-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.map-detail-name {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.map-detail-city { font-size: 0.78rem; color: var(--text-muted); }
.map-detail-divider { height: 1px; background: var(--border); }
.map-detail-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }
.map-detail-county-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.map-detail-county-name {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 600;
}
.map-detail-forum {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: all var(--transition);
}
.map-detail-forum:hover {
  background: rgba(201,162,39,0.08);
  border-color: var(--gold);
  color: var(--gold2);
}

/* Leaflet overrides */
.leaflet-popup-content-wrapper {
  background: #0e0008 !important;
  border: 1px solid var(--gold-dim) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7) !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
}
.leaflet-popup-tip { background: #0e0008 !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-size: 0.85rem !important; }
.leaflet-control-zoom a {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--border2) !important;
}
.leaflet-control-zoom a:hover { background: var(--card2) !important; color: var(--gold) !important; }
.leaflet-control-attribution {
  background: rgba(8,0,4,0.85) !important;
  color: var(--text-muted) !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a { color: var(--text-muted) !important; }

/* ── Map Event Link ──────────────────────────────── */
.map-detail-event {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(139,0,0,0.12);
  border: 1px solid rgba(139,0,0,0.4);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e08080;
  transition: all var(--transition);
  margin-top: 4px;
}
.map-detail-event:hover {
  background: rgba(139,0,0,0.25);
  border-color: var(--red-bright);
  color: #ffaaaa;
}

/* ── Masonry Grid ───────────────────────────────────── */
.archives-grid {
  columns: 5;
  column-gap: 4px;
  padding: 0 4px;
}

.arc-item {
  break-inside: avoid;
  position: relative;
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.arc-item.arc-visible {
  opacity: 1;
  transform: scale(1);
}

.arc-img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: saturate(0.85) brightness(0.9);
}

.arc-item:hover .arc-img {
  transform: scale(1.04);
  filter: saturate(1.1) brightness(1.05);
}

/* Blue radial glow overlay */
.arc-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 160, 255, 0.18) 0%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.arc-item:hover .arc-overlay {
  opacity: 1;
}

/* Scanlines on hover */
.arc-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 200, 255, 0.06) 2px,
    rgba(0, 200, 255, 0.06) 3px
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.arc-item:hover .arc-scanlines {
  opacity: 1;
}

/* Corner targeting reticles */
.arc-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(0, 200, 255, 0.9);
  border-style: solid;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.arc-item:hover .arc-corner { opacity: 1; }

.arc-tl { top: 5px; left: 5px; border-width: 2px 0 0 2px; transform: translate(-4px, -4px); }
.arc-tr { top: 5px; right: 5px; border-width: 2px 2px 0 0; transform: translate(4px, -4px); }
.arc-bl { bottom: 5px; left: 5px; border-width: 0 0 2px 2px; transform: translate(-4px, 4px); }
.arc-br { bottom: 5px; right: 5px; border-width: 0 2px 2px 0; transform: translate(4px, 4px); }

.arc-item:hover .arc-tl { transform: translate(0, 0); }
.arc-item:hover .arc-tr { transform: translate(0, 0); }
.arc-item:hover .arc-bl { transform: translate(0, 0); }
.arc-item:hover .arc-br { transform: translate(0, 0); }

/* ============================================================
   HOLO LIGHTBOX
   ============================================================ */

.holo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.holo-lightbox.holo-active {
  opacity: 1;
  pointer-events: all;
}

.holo-lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 15, 0.92);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.holo-lb-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 92vh;
}

.holo-lb-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  font-family: 'Orbitron', monospace, sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.holo-lb-stamp {
  color: rgba(0, 200, 255, 0.8);
}

.holo-lb-classified {
  color: rgba(255, 80, 80, 0.85);
  animation: holo-blink 1.8s step-end infinite;
}

@keyframes holo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.holo-lb-counter {
  color: rgba(0, 200, 255, 0.6);
  min-width: 80px;
  text-align: right;
}

.holo-lb-stage {
  display: flex;
  align-items: center;
  gap: 16px;
}

.holo-lb-img-wrap {
  position: relative;
  line-height: 0;
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.25), 0 0 80px rgba(0, 100, 255, 0.1);
}

.holo-lb-img {
  display: block;
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  transition: opacity 0.12s ease;
}

.holo-img-fade {
  opacity: 0 !important;
}

.holo-lb-img-wrap .holo-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(0, 220, 255, 0.9);
  border-style: solid;
  pointer-events: none;
}

.holo-lb-img-wrap .holo-tl { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.holo-lb-img-wrap .holo-tr { top: -1px; right: -1px; border-width: 3px 3px 0 0; }
.holo-lb-img-wrap .holo-bl { bottom: -1px; left: -1px; border-width: 0 0 3px 3px; }
.holo-lb-img-wrap .holo-br { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }

.holo-lb-img-wrap .holo-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 200, 255, 0.04) 3px,
    rgba(0, 200, 255, 0.04) 4px
  );
  pointer-events: none;
}

.holo-lb-nav {
  background: rgba(0, 40, 80, 0.6);
  border: 1px solid rgba(0, 180, 255, 0.4);
  color: rgba(0, 220, 255, 0.9);
  font-size: 22px;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.holo-lb-nav:hover {
  background: rgba(0, 100, 180, 0.5);
  border-color: rgba(0, 220, 255, 0.8);
}

.holo-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(20, 0, 0, 0.7);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: rgba(255, 100, 100, 0.9);
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}

.holo-lb-close:hover {
  background: rgba(80, 0, 0, 0.7);
  border-color: rgba(255, 80, 80, 0.8);
}

/* Responsive grid */
@media (max-width: 1200px) {
  .archives-grid { columns: 4; }
}
@media (max-width: 900px) {
  .archives-grid { columns: 3; }
}
@media (max-width: 600px) {
  .archives-grid { columns: 2; }
  .holo-lb-nav { width: 36px; height: 36px; font-size: 16px; }
  .holo-lb-img { max-width: 88vw; max-height: 72vh; }
  .holo-lb-header { font-size: 9px; gap: 10px; }
}

/* ══ 2026-11 redesign: tokens, base and layout. Rules above this line are the map,
   photo grid and lightbox styles carried over from style.css. ══ */
@font-face {
  font-family: "SF Distant Galaxy";
  src: url("../assets/fonts/SFDistantGalaxy.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Imperial palette, shared with the app */
  --void: #07070a;
  --hull: #0e0e12;
  --plate: #16161c;
  --hair: rgba(240,240,244,0.09);
  --hair-strong: rgba(240,240,244,0.25);
  --ink: #f0f0f4;
  --mist: #c9c9d6;
  --steel: #a2a2b8;
  --imperial: #cc0000;
  --imperial-lit: #e01414;
  --link-red: #ff8a8a;
  --rank: #c9a84c;
  --rank-lit: #e3c66f;
  --font-display: "SF Distant Galaxy", "Barlow Condensed", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;

  /* Names the carried-over rules use */
  --bg: var(--void); --bg2: var(--hull); --bg3: var(--void);
  --card: var(--plate); --card2: #1e1e28;
  --border: var(--hair); --border2: rgba(240,240,244,0.16);
  --red: #8b0000; --red2: #a80000; --red-bright: var(--imperial);
  --gold: var(--rank); --gold2: var(--rank-lit); --gold-dim: rgba(201,168,76,0.45);
  --text: var(--ink); --text-dim: var(--mist); --text-muted: var(--steel); --white: #ffffff;
  --radius: 4px; --radius-lg: 6px;
  --font-head: var(--font-cond);
  --font-body: Barlow, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--rank-lit); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1248px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Buttons and links */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 11px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.btn-lg { font-size: 17px; padding: 14px 28px; }
.btn-red { background: var(--imperial); color: #fff; }
.btn-red:hover { background: var(--imperial-lit); color: #fff; }
.btn-line { border-color: rgba(240,240,244,0.35); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-gold { background: var(--rank); color: #0b0b0e; }
.btn-gold:hover { background: var(--rank-lit); }
.link-red, .link-gold { font-weight: 600; padding: 10px 0; text-underline-offset: 3px; }
.link-red { color: var(--link-red); }
.link-gold { color: var(--rank-lit); }
.link-red:hover, .link-gold:hover { color: #fff; }
.link-button { background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(7,7,10,0.94); border-bottom: 1px solid var(--hair); }
.nav-inner { max-width: 1248px; margin: 0 auto; padding: 12px max(24px, env(safe-area-inset-right, 0px)) 12px max(24px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-crest { width: 44px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: var(--font-display); font-size: 17px; line-height: 1; color: var(--rank); }
.brand-sub { font-size: 13px; line-height: 1; color: var(--steel); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--mist); text-decoration: none; padding: 12px 0; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a.nav-forum { color: var(--rank); }
.nav-hamburger { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--hair-strong); border-radius: 4px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; }

/* Hero */
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; color: #fff; text-wrap: balance; }
.hero-lede { max-width: 620px; font-size: 20px; line-height: 1.5; color: var(--mist); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { flex: 0 1 300px; display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--rank); padding: 0 0 6px 20px; font-family: var(--font-cond); font-size: 22px; font-weight: 500; line-height: 1.25; }
.hero-photo { height: clamp(230px, 32vw, 460px); overflow: hidden; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.hero-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 90%; }

/* Three doors */
.doors { border-bottom: 1px solid var(--hair); }
.doors-row { display: flex; flex-wrap: wrap; }
.door { flex: 1 1 300px; min-width: 0; padding: 44px 32px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; gap: 10px; }
.door:first-child { padding-left: 0; border-left: 0; }
.door:last-child { padding-right: 0; }
.door h2 { font-family: var(--font-cond); font-weight: 700; font-size: 30px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.door p { color: var(--steel); }
.door-links { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* Bands */
.band { padding: 80px 0; border-bottom: 1px solid var(--hair); }
.band-alt { background: var(--hull); }
.band-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.band-head-split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.band-head-split > div:first-child { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.band-title { font-family: var(--font-cond); font-weight: 700; font-size: clamp(36px, 4.6vw, 52px); line-height: 1.02; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
.band-sub { color: var(--steel); max-width: 620px; }

/* Squad finder */
.county-search-wrap { flex: 0 1 320px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.county-search-wrap label { font-size: 14px; font-weight: 500; color: var(--mist); }
.county-search { height: 48px; padding: 0 14px; background: var(--plate); border: 1px solid var(--hair-strong); border-radius: 4px; font-size: 16px; }
.county-search:focus { border-color: var(--rank); }
.search-result-item { padding: 12px 14px; font-size: 15px; }
.search-result-badge { font-size: 12px; padding: 2px 7px; }
.finder { display: flex; flex-wrap: wrap; gap: 32px; }
.finder-map { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.map-main { position: relative; height: clamp(360px, 48vw, 560px); border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; }
#sgMap { background: #101014; }
.finder-list { flex: 1 1 340px; min-width: 0; }
.squad-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--hair); }
.squad-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 10px 11px 0; background: none; border: 0; border-top: 1px solid var(--hair); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background var(--transition); }
.squad-row:hover { background: rgba(240,240,244,0.04); }
.squad-row.active { background: rgba(204,0,0,0.16); box-shadow: inset 3px 0 0 var(--imperial); padding-left: 12px; }
.squad-row-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.squad-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.squad-row-name { font-weight: 600; }
.squad-row-city { font-size: 14px; color: var(--steel); }
.squad-row-swatch { width: 12px; height: 12px; border-radius: 2px; background: var(--squad-color); flex-shrink: 0; }
.map-sidebar { background: var(--hull); border: 1px solid var(--hair); border-radius: 6px; padding: 20px; overflow: visible; }
.map-sidebar-default { height: auto; align-items: flex-start; text-align: left; color: var(--steel); font-size: 16px; }
.map-squad-detail { gap: 12px; }
.map-detail-logo { box-shadow: none; }
.map-detail-name { font-size: 24px; letter-spacing: 0.02em; line-height: 1.1; }
.map-detail-city { font-size: 15px; }
.map-detail-desc { font-size: 16px; line-height: 1.55; }
.map-detail-county-label { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; margin-bottom: 2px; }
.map-detail-county-name { font-size: 17px; }
.map-detail-forum, .map-detail-event { align-self: flex-start; font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 10px 16px; margin-top: 0; }
.map-detail-event { background: var(--imperial); border-color: var(--imperial); color: #fff; }
.map-detail-event:hover { background: var(--imperial-lit); border-color: var(--imperial-lit); color: #fff; }
.map-tooltip { font-size: 14px; background: rgba(14,14,18,0.97); }
.map-tooltip strong { font-size: 16px; letter-spacing: 0.02em; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--plate) !important; }
.leaflet-control-attribution { background: rgba(7,7,10,0.85) !important; }

/* Join */
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.steps li { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--imperial); padding-top: 16px; }
.step-n { font-family: var(--font-cond); font-weight: 600; font-size: 20px; color: var(--rank-lit); }
.steps h3 { font-size: 20px; font-weight: 600; line-height: 1.25; }
.steps p { font-size: 16px; color: var(--steel); }
.steps p a { color: var(--rank-lit); }
.detachments { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.detachments h3 { font-size: 17px; font-weight: 600; color: var(--mist); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.chips a { border: 1px solid rgba(240,240,244,0.2); border-radius: 4px; padding: 10px 14px; text-decoration: none; color: var(--mist); transition: border-color var(--transition), color var(--transition); }
.chips a:hover { border-color: var(--rank); color: #fff; }
.join-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Photos */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 17vw, 230px); gap: 12px; }
.mosaic button { padding: 0; border: 0; background: var(--plate); border-radius: 4px; overflow: hidden; cursor: pointer; }
.mosaic-big { grid-column: span 2; grid-row: span 2; }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.mosaic button:hover img { transform: scale(1.03); }
.archives-grid { margin-top: 32px; }

/* Footer */
.footer { background: var(--hull); padding: 56px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-brand { flex: 1 1 320px; min-width: 0; display: flex; gap: 18px; align-items: flex-start; font-size: 15px; color: var(--steel); }
.footer-brand img { width: 72px; height: 76px; object-fit: contain; flex-shrink: 0; }
.footer-brand > div { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-size: 20px; }
.footer-brand a { color: var(--mist); }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.footer-col h4 { font-size: 15px; font-weight: 600; padding-bottom: 6px; }
.footer-col a { color: var(--steel); text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.6; color: #8f8fa6; max-width: 900px; }

/* Narrow screens */
@media (max-width: 980px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--hull); border-bottom: 1px solid var(--hair); padding: 8px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .nav-links .nav-cta { margin-top: 16px; padding: 14px 20px; }
}
@media (max-width: 700px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav-inner { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero-top { padding-top: 40px; padding-bottom: 32px; gap: 28px; }
  .hero-lede { font-size: 17px; }
  .hero-ctas { flex-direction: column; }
  .hero-facts { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; border-left: 0; padding: 0; font-size: 18px; color: var(--mist); }
  .door { flex-basis: 100%; padding: 28px 0; border-left: 0; border-top: 1px solid var(--hair); }
  .door:first-child { border-top: 0; }
  .band { padding: 56px 0; }
  .county-search-wrap { flex: 1 1 100%; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 34vw; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
