/* =========================================================
   LEAD BUNKER — Industrial / Armory catalog redesign
   Typography: Oswald (display, condensed) + IBM Plex Sans (body)
   Palette: matte black, gunmetal, bone white, copper/rust accent
   ========================================================= */

/* Ensure the hidden attribute always wins. Without !important, any author
   rule that sets an explicit `display:` (e.g. `.admin-gate { display: grid }`)
   ties on specificity with the browser default `[hidden] { display: none }`
   and beats it on source order — leaving the element stubbornly visible. */
[hidden] { display: none !important; }

:root {
  /* Surfaces */
  --ink: #0a0a0b;
  --steel: #121418;
  --steel-2: #181b20;
  --steel-3: #1f2229;
  --line: #2a2d33;
  --line-soft: rgba(255, 255, 255, 0.06);

  /* Text */
  --bone: #ebe7e0;
  --bone-2: #c7c4be;
  --muted: #8a8d93;
  --faint: #5e6168;

  /* Accent — burnt copper / rust, reads as tactical without cliché */
  --copper: #c56a3a;
  --copper-hot: #e07a45;
  --copper-deep: #8f4925;
  --copper-glow: rgba(197, 106, 58, 0.16);

  /* Signals */
  --sig-in: #6f9a57;
  --sig-in-bg: rgba(111, 154, 87, 0.14);
  --sig-low: #d19b3a;
  --sig-low-bg: rgba(209, 155, 58, 0.14);
  --sig-out: #a63e34;
  --sig-out-bg: rgba(166, 62, 52, 0.16);

  /* Spec sheet details */
  --radius: 2px;
  --radius-md: 4px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 60px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--ink);
  /* Subtle film grain + a faint vignette to give the dark feel depth */
  background-image:
    radial-gradient(ellipse at top, rgba(197,106,58,0.06), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(20, 25, 35, 0.8), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { color: var(--bone-2); line-height: 1.7; margin: 0 0 12px; }

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 600;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
  line-height: 1.05;
  color: var(--bone);
}
h1 { font-weight: 700; letter-spacing: -0.01em; }

.mono, .sku, .spec-label {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.alt-section { background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ============ Eyebrow — spec-sheet label ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0;
  color: var(--copper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: none;
  border: none;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
  display: inline-block;
}

/* ============ Header / nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}
.brand small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--ink);
  border: 1px solid var(--copper);
  color: var(--copper);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  position: relative;
}
/* Corner tick marks on the brand mark for tactical feel */
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border: 1px solid var(--copper);
}
.brand-mark::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.brand-mark::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Real logo replacement for the brand mark */
.brand-logo {
  height: 56px;
  width: auto;
  max-width: 80px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav a {
  color: var(--bone-2);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--copper); }
.nav-cta {
  padding: 10px 16px !important;
  color: var(--bone) !important;
  background: var(--copper-deep);
  border: 1px solid var(--copper);
  transition: background 0.18s ease;
}
.nav-cta:hover { background: var(--copper); color: var(--ink) !important; }

/* Cart button in nav */
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
  transition: all 0.18s ease;
}
.cart-button:hover { border-color: var(--copper); color: var(--copper); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--copper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  border-radius: 10px;
  transform: scale(0);
  transition: transform 0.2s ease;
}
.cart-count.has-items { transform: scale(1); }

/* ============ Buttons ============ */
.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.18s ease;
  position: relative;
}
.btn-primary {
  background: var(--copper);
  color: var(--ink);
  border: 1px solid var(--copper);
}
.btn-primary:hover { background: var(--copper-hot); border-color: var(--copper-hot); }
.btn-secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--copper); color: var(--copper); }
.btn-ghost {
  background: transparent;
  color: var(--bone-2);
  border: 0;
  padding: 10px 0;
}
.btn-ghost:hover { color: var(--copper); }

/* Chevron affordance after primary CTA */
.btn-primary::after {
  content: "→";
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 0.18s ease;
}
.btn-primary:hover::after { transform: translateX(3px); }

/* ============ HERO ============ */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;            /* keeps z-index contained */
}

/* Background video — autoplay loop behind the hero text */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.82;                 /* stronger presence while keeping readable */
  pointer-events: none;
}
/* Lighter gradient — enough dimming for text contrast on mid-tones, not
   so dark that the video looks like it's hiding behind fabric. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.28) 0%, rgba(10,10,11,0.66) 100%),
    radial-gradient(ellipse at 75% 40%, rgba(197,106,58,0.12), transparent 55%);
}
/* Grid pattern lives on top of the overlay as a subtle detail */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--line-soft) 100%),
    linear-gradient(0deg, transparent 0, transparent calc(100% - 1px), var(--line-soft) 100%);
  background-size: 64px 64px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 40%, black 30%, transparent 80%);
}
.hero-grid {
  position: relative;
  z-index: 3;                    /* sits above video + overlay + grid */
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: start;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero h1 {
  /* v12: smaller per user feedback. Was clamp(2.8rem, 6vw, 5.2rem). */
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  max-width: 18ch;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--copper); }
.hero-copy {
  max-width: 56ch;
  font-size: 1.04rem;
  color: var(--bone-2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.trust-row div {
  padding: 22px 18px 4px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.trust-row div:last-child { border-right: 0; }
.trust-row div:not(:first-child) { padding-left: 22px; }
.trust-row strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.trust-row span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero side card — spec-sheet style */
.hero-card {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 0;
  position: relative;
}
.hero-card::before, .hero-card::after,
.hero-card > ::before, .hero-card > ::after {
  pointer-events: none;
}
/* Corner tick decorations */
.hero-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}
.hero-card::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 16px; height: 16px;
  border-bottom: 2px solid var(--copper);
  border-right: 2px solid var(--copper);
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--steel-2);
  gap: 12px;
}
.hero-card-top > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hero-card-top > div:first-child > span:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-card-hours {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.86rem;
  color: var(--bone);
  letter-spacing: 0.01em;
  text-transform: none;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--sig-in-bg);
  color: var(--sig-in);
  border: 1px solid rgba(111, 154, 87, 0.3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--sig-in);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--sig-in);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
/* Closed state — red, used when shop is closed (always Mondays + after hours) */
.status-pill.is-closed {
  background: var(--sig-out-bg);
  color: var(--sig-out);
  border-color: rgba(166, 62, 52, 0.4);
}
.status-pill.is-closed::before {
  background: var(--sig-out);
  box-shadow: 0 0 8px var(--sig-out);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
}
.stat-grid article {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-grid article:nth-child(2n) { border-right: 0; }
.stat-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.stat-grid strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  color: var(--bone);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-grid span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ Section headings ============ */
.section-heading { margin-bottom: 48px; max-width: 760px; }
.section-heading h1, .section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.04;
}
.section-heading p {
  font-size: 1rem;
  color: var(--bone-2);
  max-width: 62ch;
}
.split-heading {
  max-width: none;
  display: flex;
  gap: 48px;
  justify-content: space-between;
  align-items: flex-end;
}
.split-heading > div:first-child { flex: 1.2; }
.split-heading > p { flex: 1; max-width: 46ch; margin-bottom: 8px; }

/* ============ Services grid ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--steel);
}
.info-card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease;
}
.info-card:nth-child(3n) { border-right: 0; }
.info-card:nth-last-child(-n+3) { border-bottom: 0; }
.info-card:hover { background: var(--steel-2); }
.info-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin-bottom: 10px;
}
.info-card h3::before {
  content: "—";
  color: var(--copper);
  margin-right: 8px;
}
.info-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

/* ============ Pricing / memberships ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.price-card {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card .tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: block;
}
.price-card h3 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--bone);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.price-card h3 span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  font-family: 'IBM Plex Sans', sans-serif;
}
.price-card p { font-size: 0.92rem; margin-bottom: 22px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}
.price-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-2);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-card li::before {
  content: "✓";
  color: var(--copper);
  font-weight: 700;
}
.price-card .btn { margin-top: auto; width: 100%; }
.price-card.featured {
  background: linear-gradient(180deg, rgba(197,106,58,0.08), var(--steel));
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper), 0 20px 60px rgba(197,106,58,0.12);
}
.featured-badge {
  position: absolute;
  top: -10px; left: 28px;
  background: var(--copper);
  color: var(--ink);
  padding: 5px 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============ INVENTORY — the main redesign focus ============ */
.toolbar {
  margin-bottom: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-search {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.toolbar-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-wrap .search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  border-radius: 2px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
}
.search-wrap input:focus { border-color: var(--copper); }
.search-wrap input::placeholder { color: var(--faint); }
.stock-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.stock-filter-wrap select {
  width: auto;
  padding: 10px 32px 10px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  border-radius: 2px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}
.stock-filter-wrap select:focus { border-color: var(--copper); outline: none; }

.chip-row { display: flex; gap: 0; flex-wrap: wrap; }
.chip {
  padding: 10px 18px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-right-width: 0;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.18s ease;
}
.chip:last-child { border-right-width: 1px; }
.chip:hover { color: var(--bone); background: var(--steel-2); }
.chip.active {
  background: var(--copper);
  color: var(--ink);
  border-color: var(--copper);
}
.chip.active + .chip { border-left-color: var(--copper); }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.inventory-empty {
  padding: 48px 32px;
  text-align: center;
  background: var(--steel);
  border: 1px solid var(--line);
}
.inventory-empty strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.inventory-empty p { margin: 0; font-size: 0.92rem; }

/* Product card — spec-sheet / catalog style */
.product-card {
  background: var(--steel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: #0e1114;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image.placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #0e1114 0%, #14181e 100%);
}
.product-image.placeholder svg { width: 56%; height: auto; opacity: 0.28; }

/* Loading shimmer */
.product-image.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Category strip above image */
.product-category-strip {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--line);
  z-index: 2;
}
.product-stock-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-stock-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
}
.product-stock-badge.in-stock {
  background: var(--sig-in-bg);
  color: var(--sig-in);
  border: 1px solid rgba(111, 154, 87, 0.4);
}
.product-stock-badge.in-stock::before { background: var(--sig-in); box-shadow: 0 0 6px var(--sig-in); }
.product-stock-badge.low-stock {
  background: var(--sig-low-bg);
  color: var(--sig-low);
  border: 1px solid rgba(209, 155, 58, 0.4);
}
.product-stock-badge.low-stock::before { background: var(--sig-low); }
.product-stock-badge.out-stock {
  background: var(--sig-out-bg);
  color: var(--sig-out);
  border: 1px solid rgba(166, 62, 52, 0.4);
}
.product-stock-badge.out-stock::before { background: var(--sig-out); }

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-sku {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.product-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--bone);
  line-height: 1.15;
}
.product-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.product-spec-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 0;
  margin: 4px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.01em;
  line-height: 1;
}
.product-price-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 4px;
}
.product-qty {
  text-align: right;
}
.product-qty-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: var(--bone-2);
}
.product-card .btn {
  margin-top: auto;
  width: 100%;
  font-size: 0.82rem;
  padding: 12px 16px;
}

/* Sold out variant */
.product-card.out .product-image img { opacity: 0.38; filter: grayscale(1); }

/* ============ Training / contact ============ */
.training-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.training-grid h2, .contact-grid h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.mini-list { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.mini-list div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: baseline;
}
.mini-list strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.02rem;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mini-list span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.calendar-card {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 28px 28px 28px;
  position: relative;
}
.calendar-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}
.calendar-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.schedule-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.schedule-item strong {
  display: block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--bone);
  font-weight: 500;
}
.schedule-item span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--copper);
  text-transform: uppercase;
}
.calendar-card .btn { margin-top: 20px; width: 100%; }

/* ============ Forms ============ */
.contact-form, .stack-form {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 32px 30px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  outline: none;
  transition: border-color 0.18s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--copper); }
textarea { resize: vertical; min-height: 110px; }
.contact-form > * + *, .stack-form > * + * { margin-top: 16px; }

.contact-points {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-points div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: baseline;
}
.contact-points strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
}
.contact-points span {
  color: var(--bone-2);
  font-size: 0.98rem;
}

/* Weekly hours block in the contact section */
.contact-hours-block {
  align-items: start !important;   /* override the baseline alignment of siblings */
}
.contact-hours-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  vertical-align: 2px;
}
.contact-hours-status.is-open   { color: var(--sig-in); }
.contact-hours-status.is-closed { color: var(--sig-out); }
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.hours-table td {
  padding: 6px 0;
  color: var(--bone-2);
  border-bottom: 1px dashed var(--line);
}
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:first-child {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 120px;
}
.hours-table td:last-child  { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table td.is-closed  { color: var(--sig-out); }
.hours-table tr.is-today td {
  color: var(--bone);
  font-weight: 600;
  background: var(--copper-glow);
}
.hours-table tr.is-today td:first-child { color: var(--copper); }

/* ============ Footer ============ */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-wrap strong {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bone);
  display: block;
  margin-bottom: 4px;
}
.footer-wrap p {
  font-size: 0.88rem;
  max-width: 56ch;
  margin: 0;
}

/* ============ Dashboard ============ */
.dashboard-body { min-height: 100vh; }
.dashboard-header { position: static; }
.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.dashboard-card {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 0;
}
.dashboard-card > .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--steel-2);
}
.panel-header h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.panel-header p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.dashboard-card .stack-form {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 24px 26px;
}

.image-lookup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.lookup-btn {
  padding: 12px 16px;
  background: var(--steel-3);
  color: var(--bone);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.lookup-btn:hover { border-color: var(--copper); color: var(--copper); }
.lookup-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.table-wrap { overflow-x: auto; padding: 0 26px 26px; }
table {
  width: 100%;
  border-collapse: collapse;
}
thead tr { border-bottom: 1px solid var(--line); }
th, td {
  text-align: left;
  padding: 14px 10px;
  color: var(--bone-2);
  font-size: 0.92rem;
}
th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding-top: 18px;
  padding-bottom: 14px;
}
td { border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
.item-cell { display: flex; align-items: center; gap: 12px; }
.item-thumb {
  width: 44px; height: 44px;
  background: var(--ink);
  border: 1px solid var(--line);
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.item-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.item-thumb.empty {
  color: var(--faint);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
}

.stock-badge, .member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stock-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.stock-badge.in-stock { background: var(--sig-in-bg); color: var(--sig-in); border: 1px solid rgba(111,154,87,0.35); }
.stock-badge.in-stock::before { background: var(--sig-in); }
.stock-badge.low-stock { background: var(--sig-low-bg); color: var(--sig-low); border: 1px solid rgba(209,155,58,0.35); }
.stock-badge.low-stock::before { background: var(--sig-low); }
.stock-badge.out-stock { background: var(--sig-out-bg); color: var(--sig-out); border: 1px solid rgba(166,62,52,0.35); }
.stock-badge.out-stock::before { background: var(--sig-out); }

.member-badge.active { background: var(--sig-in-bg); color: var(--sig-in); border: 1px solid rgba(111,154,87,0.35); }
.member-badge.pending { background: var(--sig-low-bg); color: var(--sig-low); border: 1px solid rgba(209,155,58,0.35); }
.member-badge.expired { background: var(--sig-out-bg); color: var(--sig-out); border: 1px solid rgba(166,62,52,0.35); }

.action-link {
  background: none;
  border: 0;
  color: var(--sig-out);
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.action-link:hover { color: var(--copper); }

/* ============ Admin login gate ============ */
.admin-gate {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 48px 20px 80px;
}
.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--steel);
  border: 1px solid var(--line);
  position: relative;
  padding: 36px 34px 30px;
}
.admin-login-card::before,
.admin-login-card::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
}
.admin-login-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}
.admin-login-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--copper);
  border-right: 2px solid var(--copper);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.login-brand img {
  height: 54px;
  width: auto;
  flex-shrink: 0;
}
.login-brand strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.login-brand small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.login-header { margin-bottom: 20px; }
.login-header h2 {
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 4px 0 6px;
}
.login-header p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--bone);
  font-size: 0.95rem;
}
.login-form .input-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.login-form input {
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  border-radius: 2px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.login-form input:focus { border-color: var(--copper); }
.login-form .btn { margin-top: 6px; width: 100%; }
.login-error {
  padding: 12px 14px;
  background: var(--sig-out-bg);
  border: 1px solid rgba(166, 62, 52, 0.35);
  color: var(--bone-2);
  font-size: 0.88rem;
}
.login-error strong {
  display: block;
  color: var(--sig-out);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.login-hint {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.login-hint-title {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--faint);
}
.login-hint code {
  background: var(--steel-2);
  border: 1px solid var(--line);
  padding: 3px 10px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--copper);
  font-size: 0.88rem;
  margin: 0 2px;
}
.admin-logout {
  padding: 8px 14px !important;
  color: var(--bone-2) !important;
  background: transparent;
  border: 1px solid var(--line);
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}
.admin-logout:hover {
  border-color: var(--sig-out);
  color: var(--sig-out) !important;
}

/* ---------- Login ↔ admin transition ---------- */
/* Shared transition curves for the three elements involved in the handoff */
.admin-gate,
#adminMain,
.admin-logout {
  transition:
    opacity 0.35s ease-out,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

/* "Entering" = initial off-screen state right before transition IN */
.admin-gate.is-entering      { opacity: 0; transform: translateY(-12px); }
#adminMain.is-entering       { opacity: 0; transform: translateY(18px);  }
.admin-logout.is-entering    { opacity: 0; transform: translateY(-4px);  }

/* "Leaving" = transitioning OUT, also blocks clicks during fade */
.admin-gate.is-leaving       { opacity: 0; transform: translateY(-12px); pointer-events: none; }
#adminMain.is-leaving        { opacity: 0; transform: translateY( 18px); pointer-events: none; }
.admin-logout.is-leaving     { opacity: 0; transform: translateY(-4px);  pointer-events: none; }

/* Tiny disabled-state on the submit button during the auth delay */
.login-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

/* Respect user preference — no auth-animation theatre for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .admin-gate, #adminMain, .admin-logout {
    transition: none !important;
  }
  .admin-gate.is-entering, .admin-gate.is-leaving,
  #adminMain.is-entering, #adminMain.is-leaving,
  .admin-logout.is-entering, .admin-logout.is-leaving {
    opacity: 1;
    transform: none;
  }
}

/* ============ Product action row (Add to cart + ask link) ============ */
.product-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.product-actions .btn {
  width: 100%;
  font-size: 0.82rem;
  padding: 12px 16px;
}
.ask-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.15s ease;
}
.ask-link:hover { color: var(--copper); }

.ffl-tag {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 2px;
  background: rgba(166, 62, 52, 0.16);
  color: var(--sig-out);
  border: 1px solid rgba(166, 62, 52, 0.4);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ============ Cart drawer ============ */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(440px, 100vw);
  background: var(--steel);
  border-left: 1px solid var(--copper);
  display: flex;
  flex-direction: column;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -30px 0 60px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--steel-2);
}
.cart-header h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.cart-header .eyebrow { margin-bottom: 6px; }
.cart-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-2);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  transition: all 0.18s ease;
}
.cart-close:hover { color: var(--copper); border-color: var(--copper); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}
.cart-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
}
.cart-empty p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bone);
  margin-bottom: 6px;
}
.cart-empty span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-line {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 76px;
  aspect-ratio: 1/1;
  background: var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-thumb-ph { color: var(--faint); }
.cart-thumb-ph svg { width: 60%; height: auto; opacity: 0.4; }

.cart-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-line-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cart-line-head strong {
  font-family: 'Oswald', sans-serif;
  font-size: 0.98rem;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.cart-remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 4px;
  transition: color 0.15s ease;
}
.cart-remove:hover { color: var(--sig-out); }
.cart-line-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-line-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.cart-qty-ctrls { display: flex; align-items: center; gap: 0; }
.cart-qty-btn {
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
  font-size: 0.9rem;
  display: grid; place-items: center;
  transition: all 0.15s ease;
}
.cart-qty-btn:hover { border-color: var(--copper); color: var(--copper); }
.cart-qty-val {
  min-width: 32px;
  padding: 0 10px;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  color: var(--bone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 28px;
  line-height: 26px;
}
.cart-line-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bone);
}

.cart-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--steel-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-ffl-notice {
  padding: 12px 14px;
  background: var(--sig-out-bg);
  border: 1px solid rgba(166, 62, 52, 0.35);
  color: var(--bone-2);
  font-size: 0.82rem;
  line-height: 1.5;
}
.cart-ffl-notice strong {
  display: block;
  color: var(--sig-out);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.cart-subtotal span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-subtotal strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--bone);
  font-weight: 700;
}
.cart-checkout { width: 100%; }
.cart-checkout:disabled { opacity: 0.45; cursor: not-allowed; }
.cart-continue {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.cart-continue:hover { color: var(--copper); }

/* ============ Modal (firearm warning + checkout) ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--steel);
  border: 1px solid var(--line);
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
  /* Cap the modal so it never exceeds the viewport. Combined with the
     scrollable .modal-body below, this means tall forms (like the
     reservation form on a 13" laptop) scroll internally while the
     header and action buttons stay pinned. */
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.modal-backdrop.open .modal { transform: translateY(0); }
/* Corner ticks so the modal feels intentional and on-brand */
.modal::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}
.modal::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 16px; height: 16px;
  border-bottom: 2px solid var(--copper);
  border-right: 2px solid var(--copper);
}

.modal-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;             /* keep pinned even when body scrolls */
}
.modal-header .eyebrow { margin-bottom: 6px; }
.modal-header h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--bone);
}
.modal-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--sig-out-bg);
  border: 1px solid rgba(166, 62, 52, 0.4);
  color: var(--sig-out);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.modal-body {
  padding: 20px 26px;
  /* Body takes whatever space is left after header + actions, and scrolls
     if the form is taller than that. Critical for tall forms on small
     laptop screens. */
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;              /* required for flex child to actually shrink */
}
.modal-body p {
  font-size: 0.95rem;
  color: var(--bone-2);
  margin-bottom: 14px;
}
.modal-body p:last-child { margin-bottom: 0; }
.modal-body strong { color: var(--bone); }
.modal-sub {
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.modal-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
}
.modal-checklist li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--bone-2);
  font-size: 0.92rem;
  position: relative;
}
.modal-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 12px;
  color: var(--copper);
  font-weight: 700;
}
.modal-ffl-banner {
  padding: 14px 16px;
  background: var(--sig-out-bg);
  border: 1px solid rgba(166, 62, 52, 0.35);
  color: var(--bone-2);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 14px;
}
.modal-ffl-banner strong {
  color: var(--sig-out);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 4px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--steel-2);
  flex-wrap: wrap;
  flex-shrink: 0;             /* always visible at bottom of modal */
}
.modal-actions .btn { flex: 0 1 auto; min-width: 140px; }
.modal-alt {
  padding: 12px 26px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.modal-alt strong { color: var(--copper); }

/* ============ Reservation modal (form + sending + done) ============ */
.modal-checkout { max-width: 560px; }

.checkout-view { /* base wrapper — visibility handled by `hidden` attr */ }

.checkout-summary {
  border: 1px solid var(--line);
  background: var(--steel-2);
  margin-bottom: 16px;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.checkout-summary-row:last-child { border-bottom: 0; }
.checkout-summary-row span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-summary-row strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  color: var(--bone);
}
.checkout-summary-row:last-child strong {
  font-size: 1.4rem;
  color: var(--copper);
}

/* "How this works" explainer block */
.reservation-explainer {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--steel-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--copper);
}
.reservation-explainer > strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.reservation-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reservation-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  color: var(--bone-2);
  line-height: 1.45;
}
.reservation-points li::before {
  content: "✓";
  position: absolute;
  left: 4px; top: 0;
  color: var(--copper);
  font-weight: 700;
}
/* When the firearm bullet is shown, give it a touch more attention */
#reservationFflPoint {
  color: var(--bone);
}
#reservationFflPoint::before {
  content: "⚠";
  color: var(--sig-out);
}

/* The form fields themselves */
.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reservation-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.reservation-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.reservation-form .input-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.reservation-form .input-label em {
  font-style: normal;
  color: var(--copper);
  margin-left: 2px;
}
.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  border-radius: 2px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus { border-color: var(--copper); }
.reservation-form input::placeholder,
.reservation-form textarea::placeholder { color: var(--faint); }
.reservation-form textarea { resize: vertical; min-height: 60px; }

/* Validation error banner inside the form */
.reservation-form-error {
  padding: 12px 14px;
  background: var(--sig-out-bg);
  border: 1px solid rgba(166, 62, 52, 0.35);
  color: var(--bone-2);
  font-size: 0.88rem;
}
.reservation-form-error strong {
  display: block;
  color: var(--sig-out);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

/* Reused sending/handoff progress styles */
.checkout-handoff {
  text-align: center;
  padding: 8px 0 4px;
}
.checkout-handoff strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin: 14px 0 6px;
}
.checkout-handoff p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.checkout-spinner {
  width: 36px; height: 36px;
  margin: 0 auto;
  border: 2px solid var(--line);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spinFwd 0.8s linear infinite;
}
@keyframes spinFwd { to { transform: rotate(360deg); } }
.checkout-handoff-steps {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkout-handoff-steps li {
  position: relative;
  padding-left: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s ease;
}
.checkout-handoff-steps li::before {
  content: "○";
  position: absolute;
  left: 6px; top: 0;
  color: var(--faint);
  transition: color 0.3s ease;
}
.checkout-handoff-steps li.is-done {
  color: var(--bone);
}
.checkout-handoff-steps li.is-done::before {
  content: "●";
  color: var(--copper);
}
.checkout-handoff-steps li.is-active {
  color: var(--bone);
}
.checkout-handoff-steps li.is-active::before {
  content: "●";
  color: var(--copper);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Confirmation view */
.reservation-done {
  text-align: center;
  padding: 8px 4px;
}
.reservation-done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 16px;
  background: rgba(111, 154, 87, 0.16);
  color: var(--sig-in);
  border: 1px solid rgba(111, 154, 87, 0.4);
  font-size: 1.6rem;
  font-weight: 700;
}
.reservation-done > strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin-bottom: 8px;
}
.reservation-done-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px !important;
}
.reservation-done-id span {
  color: var(--copper);
  letter-spacing: 0.14em;
  margin-left: 4px;
}
.reservation-done p {
  color: var(--bone-2);
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.reservation-done strong { color: var(--bone); }
.reservation-done-summary {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--steel-2);
  border: 1px solid var(--line);
  text-align: left;
}
.reservation-done-summary > strong {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.reservation-done-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reservation-done-summary li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  color: var(--bone);
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.reservation-done-summary li:last-child { border-bottom: 0; }
.reservation-done-summary li .qty {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--copper);
}

/* Cart drawer fineprint line */
.cart-fineprint {
  margin: 6px 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============ Admin tabs ============ */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  flex-wrap: wrap;
}
.admin-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 14px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.admin-tab:hover { color: var(--bone-2); }
.admin-tab.is-active {
  color: var(--copper);
  border-bottom-color: var(--copper);
}
.admin-tab-badge {
  background: var(--copper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.admin-tab-panel { display: none; }
.admin-tab-panel.is-active { display: block; }

/* ============ Image input stack (paste URL / upload / find on Wikipedia) ============ */
.image-input-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.image-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.image-upload-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.image-upload-status.success { color: var(--sig-in); }
.image-upload-status.error   { color: var(--sig-out); }
.image-upload-status.loading { color: var(--copper); }

/* ============ Row actions cell (Edit / Delete) ============
   The td itself stays as a regular table-cell so it shares the row's
   border-bottom with all the other cells in the row. The flex layout
   lives in an inner div instead — this prevents the broken/offset
   horizontal divider line we saw before, where flex on the td was
   breaking the row's vertical baseline. */
.row-actions-cell {
  white-space: nowrap;
  vertical-align: middle;
}
.row-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.action-link-danger { color: var(--sig-out) !important; }
.action-link-danger:hover { color: var(--bone) !important; }

/* ============ Modal validation error ============ */
.modal-form-error {
  padding: 10px 14px;
  background: var(--sig-out-bg);
  border: 1px solid rgba(166, 62, 52, 0.35);
  color: var(--bone-2);
  font-size: 0.86rem;
  margin-top: 8px;
}
.modal-form-error strong {
  display: block;
  color: var(--sig-out);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

/* ============ Reservations panel ============ */
.reservations-empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  background: var(--steel-2);
}
.reservations-empty p {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.reservations-empty span {
  color: var(--muted);
  font-size: 0.9rem;
}

.reservations-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reservation-card {
  background: var(--steel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reservation-card.has-firearm {
  border-left-color: var(--sig-out);
}

.reservation-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.reservation-card-head > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reservation-ref {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.92rem;
  color: var(--copper);
  letter-spacing: 0.08em;
}
.reservation-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.reservation-status {
  display: inline-block;
  padding: 2px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--muted);
}
.reservation-status.status-new {
  color: var(--copper);
  border-color: rgba(197, 106, 58, 0.5);
}
.reservation-status.status-confirmed {
  color: var(--bone);
  border-color: var(--bone-2);
}
.reservation-status.status-ready {
  color: var(--sig-in);
  border-color: rgba(111, 154, 87, 0.5);
}
.reservation-status.status-picked_up {
  color: var(--muted);
  text-decoration: line-through;
}
.reservation-status.status-cancelled,
.reservation-status.status-expired {
  color: var(--sig-out);
  opacity: 0.7;
}

.reservation-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.reservation-customer,
.reservation-pickup,
.reservation-notes {
  font-size: 0.9rem;
  color: var(--bone-2);
}
.reservation-customer strong {
  display: block;
  color: var(--bone);
  font-size: 1rem;
  margin-bottom: 4px;
}
.reservation-customer a {
  display: block;
  color: var(--copper);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  margin-top: 2px;
}
.reservation-customer a:hover { text-decoration: underline; }
.reservation-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.reservation-pickup-time {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}
.reservation-notes {
  grid-column: 1 / -1;
  padding: 10px 12px;
  background: var(--ink);
  border-left: 2px solid var(--copper);
}

.reservation-items {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reservation-items li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
  color: var(--bone-2);
}
.reservation-item-qty {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--copper);
}
.reservation-item-name { color: var(--bone); }
.reservation-item-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--bone-2);
}

.reservation-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.reservation-total {
  font-size: 0.9rem;
  color: var(--muted);
}
.reservation-total strong {
  color: var(--copper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  margin-left: 4px;
}
.reservation-status-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.reservation-status-edit select {
  padding: 5px 8px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.86rem;
}
.reservation-status-edit select:focus {
  outline: none;
  border-color: var(--copper);
}

/* The actions row: status select + Print + Delete buttons grouped together */
.reservation-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reservation-action-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-2);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.reservation-action-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
}
.reservation-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.reservation-action-danger {
  border-color: rgba(166, 62, 52, 0.4);
  color: var(--sig-out);
}
.reservation-action-danger:hover {
  background: var(--sig-out-bg);
  border-color: var(--sig-out);
  color: var(--sig-out);
}

/* ============ Confirm modal (danger style) ============ */
.modal-confirm {
  max-width: 480px;
}
.modal-warning {
  color: var(--sig-out);
  font-size: 0.92rem;
  margin: 12px 0;
  padding: 10px 12px;
  background: var(--sig-out-bg);
  border-left: 3px solid var(--sig-out);
}
.modal-hint {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
  margin-top: 12px;
}
.btn-danger {
  background: var(--sig-out);
  color: var(--bone);
  border: 1px solid var(--sig-out);
}
.btn-danger:hover {
  background: #8d3328;
  border-color: #8d3328;
  color: var(--bone);
}
.btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============ Admin toast notifications ============ */
.admin-toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: 380px;
  width: calc(100vw - 48px);
  pointer-events: none;
}
.admin-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--steel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
  transform: translateX(440px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.admin-toast.is-shown {
  transform: translateX(0);
  opacity: 1;
}
.admin-toast.is-leaving {
  transform: translateX(440px);
  opacity: 0;
}
.admin-toast.has-firearm {
  border-left-color: var(--sig-out);
}
.admin-toast-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--copper-glow);
  color: var(--copper);
  border: 1px solid rgba(197, 106, 58, 0.4);
  font-size: 1rem;
  font-weight: 700;
}
.admin-toast.has-firearm .admin-toast-icon {
  background: var(--sig-out-bg);
  color: var(--sig-out);
  border-color: rgba(166, 62, 52, 0.4);
}
.admin-toast-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;   /* lets text truncate */
}
.admin-toast-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.admin-toast-detail {
  font-size: 0.86rem;
  color: var(--bone-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-toast-detail strong { color: var(--bone); }
.admin-toast-ref {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--copper);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.admin-toast-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.admin-toast-view {
  appearance: none;
  background: transparent;
  border: 1px solid var(--copper);
  color: var(--copper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.admin-toast-view:hover {
  background: var(--copper);
  color: var(--ink);
}
.admin-toast-dismiss {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.admin-toast-dismiss:hover { color: var(--bone); }

@media (prefers-reduced-motion: reduce) {
  .admin-toast { transition: opacity 0.15s ease; transform: none; }
  .admin-toast.is-shown { transform: none; }
  .admin-toast.is-leaving { transform: none; opacity: 0; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 540px; }
  .service-grid, .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .info-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .info-card:nth-child(2n) { border-right: 0; }
  .info-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .info-card:nth-last-child(-n+2) { border-bottom: 0; }
  .training-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 720px) {
  /* Hide the section links on mobile, but keep the cart button + Admin CTA */
  .nav a:not(.nav-cta) { display: none; }
  .nav { gap: 12px; }

  .hero { padding-top: 48px; }
  .service-grid, .pricing-grid, .inventory-grid,
  .trust-row, .stat-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .service-grid { border: 1px solid var(--line); }
  .info-card { border-right: 0 !important; }
  .info-card:last-child { border-bottom: 0; }
  .section { padding: 72px 0; }
  .hero h1 { max-width: none; }
  .trust-row div { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .trust-row div:last-child { border-bottom: 0; }
  .trust-row div:not(:first-child) { padding-left: 0; }
  .mini-list div, .contact-points div { grid-template-columns: 1fr; gap: 4px; }
  .image-lookup-row { grid-template-columns: 1fr; }

  /* Toolbar — search and stock filter each take a full row on mobile */
  .toolbar-search { flex-direction: column; align-items: stretch; }
  .stock-filter-wrap { width: 100%; }
  .stock-filter-wrap select { flex: 1; }
  .chip { flex: 1; text-align: center; min-width: 0; }

  /* Cart drawer goes full-width on narrow screens */
  .cart-drawer { width: 100vw; border-left: 0; }
  .cart-header { padding: 18px 20px 14px; }
  .cart-body { padding: 16px 20px; }
  .cart-footer { padding: 16px 20px 20px; }

  /* Modals — tighten padding */
  .modal-header, .modal-body, .modal-actions { padding-left: 20px; padding-right: 20px; }
  .modal-actions { flex-direction: column-reverse; gap: 8px; }
  .modal-actions .btn { width: 100%; min-width: 0; }
  .modal-alt { padding-left: 20px; padding-right: 20px; }

  /* Reservation form — stack the two-column rows */
  .reservation-form-row { grid-template-columns: 1fr; }

  /* Admin tabs — let them wrap and shrink */
  .admin-tab { padding: 12px 14px; font-size: 0.85rem; }

  /* Reservation cards — single column on phones */
  .reservation-card-body { grid-template-columns: 1fr; }
  .reservation-card-foot { flex-direction: column; align-items: stretch; }

  /* Toasts — full-width on phones */
  .admin-toast-stack {
    bottom: 12px; right: 12px; left: 12px;
    max-width: none;
    width: auto;
  }
}

/* =========================================================
   v11/v12 — Resources Bar, Featured Row, Reviews, Showcase
   admin tab, Info modals, reservation customer ID pills.

   Everything below is additive — no existing rules above are
   touched. Sectioned by major UI area.
   ========================================================= */


/* ============ Resources Bar (homepage, below hero) ============ */
.resources-bar {
  padding: 28px 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.2)),
    var(--steel);
  border-bottom: 1px solid var(--line);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

/* Each tile shares this base layout */
.resource-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  background: var(--steel-2);
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  appearance: none;
  text-decoration: none;
}
.resource-tile:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: var(--steel-3);
}
.resource-tile:active { transform: translateY(1px); }

/* Variant: pure button (no flyout) covers a whole tile */
.resource-tile.is-button,
.resource-tile.is-link {
  appearance: none;
  background: var(--steel-2);
  border: 1px solid var(--line);
}

/* The interactive button inside a flyout tile fills the tile */
.resource-tile-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
}

.resource-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--copper);
  color: var(--copper);
  background: var(--copper-glow);
  margin-bottom: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.resource-tile:hover .resource-icon {
  background: var(--copper);
  color: var(--ink);
}
.resource-label { line-height: 1.1; }
.resource-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.resource-caret {
  position: absolute;
  bottom: 6px; right: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.resource-tile.is-open .resource-caret { color: var(--copper); }

/* ----- Flyout panel ----- */
.resource-flyout {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 260px;
  max-width: 320px;
  background: var(--steel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  padding: 6px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.resource-tile.is-open .resource-flyout,
.resource-tile.has-flyout:hover .resource-flyout {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}

.resource-flyout a {
  display: block;
  padding: 10px 12px;
  color: var(--bone-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  font-family: 'IBM Plex Sans', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.resource-flyout a:hover {
  background: var(--steel-2);
  border-left-color: var(--copper);
  color: var(--bone);
}
.resource-flyout a strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 2px;
}
.resource-flyout a:hover strong { color: var(--copper); }
.resource-flyout a span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}


/* ============ Featured Row — Showcase + News ============ */
.featured-row {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ----- Showcase card ----- */
.showcase-card {
  background: var(--steel-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(197,106,58,0.06), transparent 40%);
}

.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}
.showcase-head .eyebrow { margin: 0; }
.showcase-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.showcase-clickable {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  position: relative;
  transition: background 0.15s ease;
}
.showcase-clickable:hover { background: rgba(255,255,255,0.02); }

.showcase-image-wrap {
  position: relative;
  background: var(--ink);
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  min-height: 240px;
  overflow: hidden;
}
.showcase-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-zoom {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(10,10,11,0.7);
  border: 1px solid var(--copper);
  color: var(--copper);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.showcase-clickable:hover .showcase-zoom { opacity: 1; }

.showcase-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.showcase-body h3 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.showcase-price {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  color: var(--copper);
  margin: 0;
  letter-spacing: 0.04em;
}
.showcase-body p {
  margin: 0;
  color: var(--bone-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.showcase-cta {
  margin-top: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--copper);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-empty.showcase-card {
  /* Same outer styling as the active card, just simpler interior */
  min-height: 260px;
}
.showcase-empty .showcase-empty-body {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.showcase-empty .showcase-empty-body p {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--bone-2);
  margin: 0;
}
.showcase-empty .showcase-empty-body span {
  font-size: 0.85rem;
  color: var(--muted);
}


/* ----- News card ----- */
.news-card {
  background: var(--steel-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.news-head .eyebrow { margin: 0; }
.news-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--copper);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-list .news-loading,
.news-list .news-empty {
  padding: 24px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}
.news-item {
  border-bottom: 1px solid var(--line-soft);
}
.news-item:last-child { border-bottom: 0; }
.news-item a {
  display: block;
  padding: 12px 18px;
  color: var(--bone);
  transition: background 0.12s ease;
  border-left: 2px solid transparent;
}
.news-item a:hover {
  background: rgba(255,255,255,0.025);
  border-left-color: var(--copper);
}
.news-item-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--bone);
}
.news-item a:hover .news-item-title { color: var(--copper); }
.news-item-summary {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--bone-2);
  line-height: 1.4;
  /* Clamp to 2 lines so very long summaries don't blow up the row */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-date {
  margin-top: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.news-disclaimer {
  margin: 0;
  padding: 10px 18px;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  background: rgba(0,0,0,0.15);
}
.news-disclaimer a { color: var(--copper); }


/* ============ Reviews mini-section ============ */
.reviews-section {
  padding: 64px 0;
  background: linear-gradient(180deg, rgba(197,106,58,0.04), transparent 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
.reviews-stars {
  margin-top: 12px;
  font-size: 1.6rem;
  color: var(--copper);
  letter-spacing: 0.1em;
}
.reviews-stars small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 4px;
}
.reviews-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 360px;
  margin-left: auto;
}
.reviews-actions .btn { text-align: center; }
.reviews-fineprint {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}


/* ============ Reservation form — new ID-collection fields ============ */
.reservation-id-fineprint {
  margin: -2px 0 4px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  padding-left: 0;
}


/* ============ Showcase modal (the enlarged view) ============ */
.modal-showcase { max-width: 720px; }
.showcase-modal-image {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  margin: 0 0 16px;
  display: grid;
  place-items: center;
  min-height: 280px;
  max-height: 460px;
  overflow: hidden;
}
.showcase-modal-image img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}
.showcase-modal-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  color: var(--copper);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}


/* ============ Info modals (Range, About) ============ */
.modal-info { max-width: 560px; }


/* ============ Showcase admin tab ============ */
.showcase-current {
  border: 1px solid var(--line);
  background: var(--steel-2);
  margin-bottom: 28px;
}
.showcase-current-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--line);
}
.showcase-current-head .eyebrow { margin: 0; }
.showcase-current-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.showcase-current-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  padding: 18px;
}
.showcase-current-image {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--line);
  min-height: 160px;
  display: grid; place-items: center;
  overflow: hidden;
}
.showcase-current-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.showcase-current-noimage {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.showcase-current-text h3 { margin: 0 0 8px; font-size: 1.3rem; }
.showcase-current-price {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--copper);
  font-size: 1rem;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}
.showcase-current-text p { margin: 0 0 12px; color: var(--bone-2); }
.showcase-current-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.showcase-empty-block {
  padding: 18px 20px;
  background: var(--steel-2);
  border: 1px dashed var(--line);
  margin-bottom: 24px;
  text-align: center;
}
.showcase-empty-block p { margin: 0 0 4px; }
.showcase-empty-block span {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-2);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.showcase-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.showcase-form-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  background: var(--steel-3);
  padding: 10px 12px;
  border-left: 2px solid var(--copper);
}
.showcase-form-hint strong { color: var(--bone); }
.showcase-form-hint em { color: var(--copper); font-style: normal; }


/* ============ Reservation customer ID pills (admin) ============ */
.reservation-customer-address {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--bone-2);
  line-height: 1.45;
}
.reservation-customer-address .reservation-label {
  display: inline-block;
  margin-right: 6px;
}
.reservation-customer-ids {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.reservation-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--steel-3);
  border: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--bone-2);
}
.reservation-id-pill .reservation-label {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
  margin: 0;
}
.reservation-id-pill .mono { color: var(--bone); font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
.reservation-id-pill.is-cpl { border-color: var(--copper); }
.reservation-id-pill.is-cpl .mono { color: var(--copper); }


/* ============ Responsive — v11 additions ============ */
@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .showcase-clickable {
    grid-template-columns: 200px 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reviews-actions {
    margin-left: 0;
    max-width: none;
  }
  .showcase-current-body {
    grid-template-columns: 160px 1fr;
  }
}
@media (max-width: 720px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .resource-tile { padding: 14px 8px; }
  .resource-flyout {
    /* On narrow screens, anchor flyouts to the right edge of the
       containing area to avoid clipping past the viewport */
    position: fixed;
    left: 12px; right: 12px;
    top: auto;
    bottom: 12px;
    max-width: none;
    transform: none;
  }
  .resource-tile.is-open .resource-flyout,
  .resource-tile.has-flyout:hover .resource-flyout {
    transform: none;
  }

  .showcase-clickable {
    grid-template-columns: 1fr;
  }
  .showcase-image-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 200px;
  }
  .showcase-current-body {
    grid-template-columns: 1fr;
  }

  .reservation-customer-ids {
    /* Allow wrapping nicely on very narrow screens */
    gap: 6px;
  }
}


/* =========================================================
   v12 — Top-nav consolidation, hero restructure, mobile menu
   ========================================================= */

/* ============ Nav: tighter spacing for the new dense layout ============ */
/* Override only properties that need adjusting; leave .nav a's font
   and color from the original block. */
.nav {
  gap: 18px;
  flex-wrap: wrap;
}
.nav a,
.nav-dropdown-btn,
.nav-modal-btn {
  /* Match existing .nav a typography for the new buttons */
  color: var(--bone-2);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  transition: color 0.18s ease;
}
.nav-dropdown-btn,
.nav-modal-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-btn:hover,
.nav-modal-btn:hover {
  color: var(--copper);
}
.nav-caret {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}
.nav-dropdown.is-open .nav-caret {
  color: var(--copper);
  transform: rotate(180deg);
}

/* ============ Nav dropdown panels (desktop) ============ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 260px;
  max-width: 320px;
  background: var(--steel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  padding: 6px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
/* A small invisible "bridge" so the user's mouse can travel from the
   nav button down to the panel without the panel closing */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  height: 14px;
  width: 100%;
  pointer-events: none;
}
.nav-dropdown.is-open .nav-dropdown-panel,
.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}
.nav-dropdown:hover::after { pointer-events: auto; }

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--bone-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  font-family: 'IBM Plex Sans', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.nav-dropdown-panel a:hover {
  background: var(--steel-2);
  border-left-color: var(--copper);
  color: var(--bone);
}
.nav-dropdown-panel a strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 2px;
}
.nav-dropdown-panel a:hover strong { color: var(--copper); }
.nav-dropdown-panel a span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ============ Mobile hamburger ============
   Hidden on desktop, visible at narrow breakpoints. The drawer
   itself (.nav.is-open) is styled in the responsive block below. */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { border-color: var(--copper); }
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--bone);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ============ Hero — left column, status pill row ============ */
.hero-grid {
  /* v12: a touch more space for the right column since it now
     stacks two cards (showcase + news) instead of one. */
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
}
.hero-left {
  /* No grid/flex needed — just block flow. The status row above
     the eyebrow is its own flex line. */
  min-width: 0;
}
.hero-status-row {
  /* v16: was a bare flex row that competed with the moving video for
     readability. Now wrapped in a subtle semi-transparent panel with
     backdrop blur — same treatment as .hero-card-floating on the
     showcase / news cards. width: fit-content keeps the panel only
     as wide as its contents so it doesn't stretch across the column. */
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 8px 14px;
  flex-wrap: wrap;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.hero-status-detail {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  /* v16: bumped from var(--muted) to var(--bone-2) so the hours text
     reads against any frame of the hero video, even bright ones. */
  color: var(--bone-2);
  letter-spacing: 0.04em;
}

/* ============ Hero — right column (showcase + news stack) ============ */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  /* Important: this column shouldn't stretch the row's vertical
     extent — let the left column drive the height naturally. */
  align-self: start;
}

/* hero-card-floating: applied to the showcase and news cards when
   they're rendered inside the hero. Adds the slight transparency
   the user asked for, plus a subtle blur so the background video
   doesn't compete with the text. */
.hero-card-floating {
  /* steel-2 is #181b20 → rgb(24,27,32). 0.86 alpha keeps the cards
     readable while letting a hint of the hero video bleed through. */
  background: rgba(24, 27, 32, 0.86);
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
/* Tighter density inside the hero so the showcase doesn't push the
   trust-row off-screen. The two-column showcase layout (image + body)
   collapses to a stacked view here so each card stays compact. */
.hero-right .showcase-card {
  min-height: 0;
}
.hero-right .showcase-clickable {
  grid-template-columns: 140px 1fr;
}
.hero-right .showcase-image-wrap {
  min-height: 140px;
}
.hero-right .showcase-body {
  padding: 14px 16px;
  gap: 6px;
}
.hero-right .showcase-body h3 {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.hero-right .showcase-body p {
  font-size: 0.86rem;
  /* Two-line clamp keeps the card the same height regardless of
     description length */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-right .showcase-cta {
  font-size: 0.7rem;
}
.hero-right .news-card {
  min-height: 0;
}
.hero-right .news-list {
  /* Cap the news list height so it doesn't push the rest of the page
     down forever. After ~3 items, it scrolls inside the card. */
  max-height: 280px;
  overflow-y: auto;
}
.hero-right .news-item-summary { -webkit-line-clamp: 2; }


/* ============ Showcase admin: linked-inventory indicator ============ */
.showcase-current-link {
  margin: 6px 0 0;
  padding: 8px 12px;
  background: var(--copper-glow);
  border-left: 2px solid var(--copper);
  font-size: 0.84rem;
  color: var(--bone-2);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.showcase-current-link-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.showcase-current-link strong {
  color: var(--bone);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
}


/* ============ Hero showcase modal: 3-button action row ============ */
/* When the showcase is linked to inventory, the modal has 3 buttons
   (Close, Contact, Reserve) instead of 2. The flex-wrap on
   .modal-actions handles narrow screens automatically. */


/* ============ Responsive — v12 ============ */

/* Mobile-menu breakpoint: with the new dense top nav we need to drop
   into a hamburger earlier than the v11 720px point. 980px gives
   most laptops a horizontal nav and tablets/phones the drawer. */
@media (max-width: 980px) {
  /* Hide individual nav items, show the hamburger */
  .nav-toggle { display: inline-flex; }

  /* Cart and Admin always stay visible in the header bar */
  .nav .cart-button,
  .nav .nav-cta {
    /* They live inside .nav so we need to override the drawer
       hiding rule below. */
    order: 0;
  }

  /* The drawer: when collapsed, hide most items; when open, show
     them stacked. The cart button + admin CTA stay outside the
     drawer (they sit pinned to the right next to the hamburger). */
  .nav {
    /* Re-position the .nav so the cart + admin stay inline with the
       hamburger, but the dropdown items hide. We do this by hiding
       all children except .cart-button and .nav-cta when the drawer
       isn't open. */
    flex-wrap: nowrap;
    gap: 10px;
  }
  .nav > a:not(.nav-cta),
  .nav > .nav-dropdown,
  .nav > .nav-modal-btn {
    display: none;
  }
  .nav.is-open > a:not(.nav-cta),
  .nav.is-open > .nav-dropdown,
  .nav.is-open > .nav-modal-btn {
    display: flex;
  }
  /* When the drawer is open, the .nav becomes a full-width vertical
     panel anchored under the header bar. */
  .nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    background: rgba(10, 10, 11, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    z-index: 25;
  }
  .nav.is-open > a,
  .nav.is-open > .nav-dropdown,
  .nav.is-open > .nav-modal-btn {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.is-open > a:hover,
  .nav.is-open > .nav-modal-btn:hover {
    background: var(--steel-2);
  }
  /* In the drawer, dropdowns become accordion-style: panel inlines
     directly under the button, no absolute positioning. */
  .nav.is-open .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .nav.is-open .nav-dropdown-btn {
    padding: 12px 14px;
    width: 100%;
    justify-content: space-between;
  }
  .nav.is-open .nav-dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    /* But still hidden by default until the dropdown is "is-open" */
    display: none;
    width: 100%;
    max-width: none;
    margin-top: 4px;
    box-shadow: none;
    background: var(--steel-2);
    border-color: var(--line-soft);
  }
  .nav.is-open .nav-dropdown.is-open .nav-dropdown-panel {
    display: block;
  }
  .nav.is-open::after { display: none; }

  /* The cart button + admin CTA sit OUTSIDE the drawer flow, because
     they're meant to be always-visible. We use absolute positioning
     to lift them out of the drawer when it opens. */
  .nav.is-open .cart-button,
  .nav.is-open .nav-cta {
    position: absolute;
    top: -56px;     /* approximate height of the nav row above */
  }
  .nav.is-open .cart-button { right: 100px; }
  .nav.is-open .nav-cta { right: 64px; }

  /* Hero collapses to a single column at this breakpoint */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-right .showcase-clickable {
    grid-template-columns: 160px 1fr;
  }
  .hero-right .news-list { max-height: none; }
}

/* Smaller phones: even tighter */
@media (max-width: 720px) {
  /* Status row wraps cleanly */
  .hero-status-row {
    gap: 10px;
  }
  /* Showcase card collapses to single column inside hero on phones */
  .hero-right .showcase-clickable {
    grid-template-columns: 1fr;
  }
  .hero-right .showcase-image-wrap {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 160px;
  }

  /* Drawer cart/admin button positioning needs adjustment for the
     more cramped header on phones */
  .nav.is-open .cart-button { right: 92px; }
  .nav.is-open .nav-cta { right: 56px; }
}

/* On wide screens, stop the drawer/hamburger code from interfering */
@media (min-width: 981px) {
  .nav-toggle { display: none !important; }
}

/* =========================================================
   v13 — Multi-page, search, reviews, ID uploads, page hero
   ========================================================= */

/* Active nav state (v13 multi-page) */
.nav a.is-active { color: var(--copper); }

/* Page hero — used on inventory.html, range.html, training.html, about.html */
.page-hero {
  padding: 90px 0 50px;
  background: linear-gradient(180deg, rgba(10,10,11,0.4) 0%, transparent 100%), var(--charcoal);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--line-soft) 100%),
    linear-gradient(0deg, transparent 0, transparent calc(100% - 1px), var(--line-soft) 100%);
  background-size: 64px 64px;
  opacity: 0.2;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 20% 50%, black 30%, transparent 80%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 10px 0 14px;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--bone-2);
  max-width: 62ch;
  line-height: 1.6;
}

/* Inventory toolbar (search + filter chips on its own page) */
.inventory-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.inventory-search {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 0 14px;
}
.inventory-search:focus-within { border-color: var(--copper); }
.inventory-search svg {
  color: var(--muted);
  flex-shrink: 0;
}
.inventory-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--bone);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 10px;
  outline: none;
}
.inventory-search input::placeholder { color: var(--muted); }
.inventory-search-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 4px;
}
.inventory-search-clear:hover { color: var(--bone); }
.inventory-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Reviews on homepage */
.split-heading {
  display: flex;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.reviews-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 22px 22px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}
.review-stars {
  color: var(--copper);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.review-body {
  color: var(--bone-2);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 0.82rem;
}
.review-meta strong { color: var(--bone); font-family: 'Oswald', sans-serif; letter-spacing: 0.04em; }
.review-meta span { color: var(--muted); }
.review-loading {
  color: var(--muted);
  text-align: center;
  padding: 30px;
  font-style: italic;
}

/* Range / training rules + grids */
.range-grid,
.cpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.rules-list li {
  padding: 14px 18px;
  background: var(--steel);
  border-left: 3px solid var(--copper);
  color: var(--bone-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.rules-list li strong { color: var(--bone); }
.alt-section-note {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.alt-section-note a { color: var(--copper); }

/* CPL resource cards (on training.html) */
.cpl-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--steel);
  border: 1px solid var(--line);
  color: var(--bone-2);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cpl-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}
.cpl-icon {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 4px;
}
.cpl-card h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--bone);
  margin: 0;
}
.cpl-card p {
  font-size: 0.88rem;
  color: var(--bone-2);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.cpl-link {
  color: var(--copper);
  font-size: 0.82rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.training-cta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Memberships — single plan card */
.membership-single {
  display: flex;
  justify-content: center;
}
.membership-featured {
  max-width: 460px;
  width: 100%;
  padding: 32px 28px;
  background: var(--steel);
  border: 1px solid var(--copper);
  position: relative;
  text-align: center;
}
.membership-featured::before,
.membership-featured::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
}
.membership-featured::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}
.membership-featured::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--copper);
  border-right: 2px solid var(--copper);
}
.membership-featured .member-tier {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 4px;
}
.membership-featured h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  color: var(--bone);
  font-weight: 700;
  margin: 4px 0 20px;
}
.membership-featured h3 small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.membership-featured ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
  display: grid;
  gap: 10px;
}
.membership-featured ul li {
  padding-left: 24px;
  position: relative;
  color: var(--bone-2);
  font-size: 0.95rem;
  line-height: 1.4;
}
.membership-featured ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
}
.membership-fineprint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.membership-fineprint a { color: var(--copper); }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-top: 14px;
}
.about-stats > div {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-stats > div:nth-child(2n) { border-right: 0; }
.about-stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.about-stats strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--bone);
  margin-bottom: 4px;
}
.about-stats span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.placeholder-note {
  margin-top: 22px;
  padding: 12px 16px;
  background: rgba(197,106,58,0.08);
  border-left: 3px solid var(--copper);
  font-size: 0.85rem;
  color: var(--bone-2);
}
.placeholder-note strong { color: var(--copper); }
.placeholder-note code {
  background: var(--steel-2);
  padding: 1px 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
}

/* DL/CPL upload section in reservation modal */
.reservation-id-uploads {
  margin: 14px 0;
  padding: 14px 16px;
  background: rgba(166, 62, 52, 0.07);
  border-left: 3px solid var(--sig-out);
}
.reservation-id-uploads-intro {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--bone-2);
  line-height: 1.5;
}
.reservation-id-uploads-intro strong { color: var(--bone); }
.reservation-id-upload-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* v18: silencer row sits below the main three with a thin top separator
   so it reads as a distinct group (since it's optional and only matters
   for suppressor reservations). */
.reservation-silencer-row {
  grid-template-columns: 1fr;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.id-upload-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.id-upload-cell-wide {
  /* Used inside .reservation-silencer-row to span the full width */
  width: 100%;
}
.id-upload-cell .input-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.id-upload-cell .input-label em {
  font-style: normal;
  color: var(--copper);
}
.id-upload-cell .lookup-btn {
  padding: 10px 14px;
  background: var(--steel);
  border: 1px solid var(--line);
  color: var(--bone-2);
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.88rem;
  text-align: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.id-upload-cell .lookup-btn:hover {
  border-color: var(--copper);
  color: var(--bone);
}
.id-upload-status {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1em;
}
.id-upload-status.is-uploading { color: var(--copper); }
.id-upload-status.is-success { color: var(--sig-in); }
.id-upload-status.is-error { color: var(--sig-out); }
/* v18: small help line under the silencer form upload button */
.id-upload-help {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.4;
}
.id-upload-help a {
  color: var(--copper);
}
.id-upload-help a:hover {
  text-decoration: underline;
}
/* On narrow screens, stack the three upload cells vertically */
@media (max-width: 720px) {
  .reservation-id-upload-row {
    grid-template-columns: 1fr;
  }
}

.reservation-id-fineprint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 8px 0 14px;
  line-height: 1.4;
}

/* DL/CPL image view button in admin reservation cards */
.reservation-id-pill.is-image {
  background: rgba(197,106,58,0.12);
  color: var(--copper);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.reservation-id-pill.is-image:hover {
  background: rgba(197,106,58,0.22);
}

/* Admin reviews list */
.reviews-admin-list {
  margin-top: 20px;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .reservation-id-upload-row { grid-template-columns: 1fr; }
  .split-heading { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   v14 — Brand block restructure, Home nav link, search icon + overlay
   ========================================================= */

/* New brand block: separate clickable areas for logo+name (Home) and
   address (Maps). The old <a class="brand"> styles still cascade for
   layout, but we override the parts that need to change. */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  /* No longer a link itself — it's a container now */
  text-decoration: none;
}
.brand-home {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.brand-home:hover { opacity: 0.85; }
.brand-home strong {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
}
.brand-address {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.brand-address:hover {
  color: var(--copper);
  border-left-color: var(--copper);
}
.brand-address span { display: block; }
/* The first line of the address (street) bumped a notch brighter so the
   eye locks on the address quicker than the muted city line below. */
.brand-address span:first-child { color: var(--bone-2); }
.brand-address:hover span:first-child { color: var(--copper); }

/* Admin panel uses a non-clickable variant of the address-style block */
.brand-address-admin {
  cursor: default;
  pointer-events: none;
}
.brand-address-admin:hover {
  color: var(--muted);
  border-left-color: var(--line);
}
.brand-address-admin:hover span:first-child { color: var(--bone-2); }

/* Search icon button in nav. Same style as cart-button. */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone-2);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-icon-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* Search overlay — full-screen-ish modal with input + live results */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  overflow-y: auto;
}
.search-overlay[hidden] { display: none; }
.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  background: var(--steel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.search-overlay-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.search-overlay-bar svg { color: var(--muted); flex-shrink: 0; }
.search-overlay-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--bone);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.1rem;
  padding: 6px 0;
}
.search-overlay-bar input::placeholder { color: var(--muted); }
.search-overlay-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  flex-shrink: 0;
}
.search-overlay-close:hover { color: var(--bone); }
.search-overlay-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
}
.search-overlay-hint {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}
.search-result-group-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px 4px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--bone-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}
.search-result:hover,
.search-result.is-active {
  background: var(--steel-2);
  border-left-color: var(--copper);
}
.search-result strong {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
  color: var(--bone);
  display: block;
}
.search-result-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1px;
}
.search-result-body {
  flex: 1;
  min-width: 0;
}
.search-result-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--copper);
  flex-shrink: 0;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .brand-address {
    /* On phones, the address takes a lot of room; show it as a thin
       single line under the logo instead */
    flex-direction: row;
    gap: 6px;
    padding-left: 10px;
    font-size: 0.66rem;
  }
  .brand-address span:last-child::before {
    content: "·";
    margin-right: 6px;
    color: var(--muted);
  }
  .search-overlay {
    padding: 16px 12px;
  }
}

/* =========================================================
   v15 — Training "What to bring" prep section + inventory info bar
   ========================================================= */

/* Two-column block layout for "What to bring" + "Michigan CPL eligibility" */
.prep-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
.prep-block {
  background: var(--steel);
  border: 1px solid var(--line);
  padding: 26px 24px;
  position: relative;
}
.prep-block::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--copper);
  border-left: 2px solid var(--copper);
}
.prep-block h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bone);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.prep-block .modal-checklist {
  margin: 0;
}
.prep-block .modal-checklist li {
  font-size: 0.92rem;
  line-height: 1.5;
}
.prep-block p {
  color: var(--bone-2);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

/* FFL transfer info bar on inventory page */
.info-bar {
  background: var(--steel-2);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.info-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
/* v17.4: 3-column variant for inventory page (Outside FFL, Silencer, Don't Lie) */
.info-bar-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-bar-item {
  position: relative;
  padding-left: 14px;
  border-left: 3px solid var(--copper);
}
/* The Don't Lie item gets a red accent so it reads as a warning, not just info */
.info-bar-item-warn {
  border-left-color: var(--sig-out);
}
.info-bar-item-warn .eyebrow {
  color: var(--sig-out);
}
.info-bar-item .eyebrow {
  display: block;
  margin-bottom: 4px;
}
.info-bar-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--bone-2);
}
.info-bar-item strong { color: var(--bone); }
.info-bar-item a { color: var(--copper); }
.info-bar-item a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .prep-grid,
  .info-bar-grid,
  .info-bar-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* Mid-width: 3-column info-bar wraps to 1 column from 3 columns
   when there's not enough room, before mobile breakpoint. */
@media (max-width: 1000px) {
  .info-bar-grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================================
   v17 — New component styles
   ========================================================= */

/* Federal age banner (inventory page) — gas-station-sign vibe.
   Sits between page-hero and info-bar. */
.age-banner {
  background: var(--steel);
  border-top: 2px solid var(--copper);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.age-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.age-banner-icon {
  font-size: 1.6rem;
  color: var(--copper);
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}
.age-banner-body {
  flex: 1;
}
.age-banner-body > strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 8px;
}
.age-banner-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.age-banner-rows > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 3px solid var(--copper);
}
.age-banner-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.age-banner-date {
  font-size: 0.92rem;
  color: var(--bone-2);
  line-height: 1.4;
}
.age-banner-date strong {
  color: var(--bone);
  font-family: 'IBM Plex Mono', monospace;
}

/* Two-box membership layout (was single-box .membership-single in v13) */
.membership-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

/* Clickable info-card variant — whole card is a link */
.info-card-clickable {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.info-card-clickable:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
  background: var(--steel-2);
}
.info-card-clickable h3 {
  margin-top: 0;
}
.info-card-clickable .info-card-link {
  /* Inline (not anchor); already inside an anchor */
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--copper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.info-card-clickable:hover .info-card-link {
  text-decoration: underline;
}

/* Lane gallery on range page */
.lane-gallery {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.lane-gallery-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 18px;
}
.lane-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.lane-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--steel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lane-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lane-tile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-style: dashed;
}
.lane-gallery-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}
.lane-gallery-note code {
  background: var(--steel-2);
  padding: 1px 6px;
  font-size: 0.8em;
  color: var(--bone-2);
}

/* Affiliates / associates section — homepage bottom */
.affiliates-section {
  padding: 48px 0;
  background: var(--steel);
  border-top: 1px solid var(--line);
}
.affiliates-header {
  text-align: center;
  margin-bottom: 28px;
}
.affiliates-header h2 {
  margin: 6px 0 0;
}
.affiliates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.affiliate-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--steel-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--bone-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.affiliate-tile:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}
.affiliate-logo {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone);
  overflow: hidden;
}
.affiliate-logo img {
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
}
.affiliate-logo-placeholder {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.1;
}
.affiliate-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.affiliates-note {
  text-align: center;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}
.affiliates-note code {
  background: var(--steel-2);
  padding: 1px 6px;
  font-size: 0.85em;
  color: var(--bone-2);
  font-style: normal;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .age-banner-rows,
  .membership-pair,
  .lane-gallery-grid,
  .affiliates-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lane-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .affiliates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .age-banner-inner {
    flex-direction: column;
    gap: 10px;
  }
}

/* =========================================================
   v17.3 — Team photos, range substance callout, straw-purchase warning
   ========================================================= */

/* Team photo: when an <img> is the child of .team-photo, it fills
   the square container. With .team-photo-placeholder added (by the
   onerror fallback), the dashed-border placeholder treatment applies. */
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Range rules visual callout — sits above the rules list */
.rules-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: var(--steel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
}
.rules-callout-warn {
  /* Strong "no" callout — slightly redder accent + warning treatment */
  border-left-color: var(--sig-out);
  background: linear-gradient(90deg, rgba(166, 62, 52, 0.08), var(--steel) 40%);
}
.rules-callout-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.rules-callout-body {
  flex: 1;
}
.rules-callout-body strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 6px;
}
.rules-callout-body p {
  margin: 0;
  color: var(--bone-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Straw-purchase warning on inventory page — federal-style notice
   with prominent "DON'T LIE" mark on the left. */
.straw-warning {
  background: var(--steel-2);
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--sig-out);
  padding: 22px 0;
}
.straw-warning-inner {
  display: flex;
  align-items: stretch;
  gap: 24px;
}
.straw-warning-mark {
  flex-shrink: 0;
  width: 110px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: var(--bone);
  /* Subtle warning accent — red rule on the right edge */
  box-shadow: inset -4px 0 0 var(--sig-out);
}
.straw-warning-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.straw-warning-mark-fallback {
  background: var(--sig-out);
  box-shadow: none;
}
.straw-warning-text-mark {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--bone);
  text-align: center;
  text-transform: uppercase;
}
.straw-warning-body {
  flex: 1;
  padding: 4px 0;
}
.straw-warning-body strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 8px;
}
.straw-warning-body p {
  margin: 0;
  color: var(--bone-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.straw-warning-body strong em,
.straw-warning-body p strong {
  color: var(--sig-out);
  font-style: normal;
}

@media (max-width: 720px) {
  .rules-callout {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }
  .straw-warning-inner {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
  }
  .straw-warning-mark {
    width: 130px;
    min-height: 130px;
  }
}

/* =========================================================
   v17.4 — Rentals showcase on range page
   ========================================================= */

.rental-showcase {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.rental-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.rental-image {
  aspect-ratio: 4 / 3;
  background: var(--steel);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rental-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rental-image-placeholder {
  border-style: dashed;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rental-copy p {
  margin: 0 0 12px;
  color: var(--bone-2);
  line-height: 1.55;
}
.rental-copy p:last-child { margin-bottom: 0; }
.rental-copy strong { color: var(--bone); }
.rental-copy .rental-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 720px) {
  .rental-showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================================
   v18.1 — Suppressor intake form download CTA (suppressor page)
   ========================================================= */
.form-download-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 26px;
  margin: 0 0 36px;
  background: var(--steel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
}
.form-download-cta-body {
  flex: 1;
  min-width: 0;
}
.form-download-cta-body .eyebrow {
  display: block;
  margin-bottom: 4px;
}
.form-download-cta-body h3 {
  margin: 0 0 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--bone);
}
.form-download-cta-body p {
  margin: 0;
  color: var(--bone-2);
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-download-cta .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .form-download-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }
  .form-download-cta .btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   v21 — Nav link + hover dropdown
   For nav items where the trigger is a real link to a page
   AND hovering reveals a panel of in-page section shortcuts.
   (As opposed to .nav-dropdown which uses a <button> trigger
   because Follow Us has no destination page.)
   ========================================================= */
.nav-link-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-link-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link-dropdown-trigger .nav-caret {
  font-size: 0.7rem;
}
.nav-link-dropdown:hover .nav-link-dropdown-trigger .nav-caret,
.nav-link-dropdown:focus-within .nav-link-dropdown-trigger .nav-caret {
  color: var(--copper);
  transform: rotate(180deg);
}

/* Panel styling — matches the existing .nav-dropdown-panel look */
.nav-link-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 280px;
  max-width: 360px;
  background: var(--steel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  padding: 6px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
/* Invisible "bridge" between trigger and panel so the mouse can
   move down without the panel closing mid-traverse */
.nav-link-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  height: 14px;
  width: 100%;
  pointer-events: none;
}
.nav-link-dropdown:hover .nav-link-dropdown-panel,
.nav-link-dropdown:focus-within .nav-link-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}
.nav-link-dropdown:hover::after { pointer-events: auto; }

.nav-link-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--bone-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.4;
  transition: background 0.15s ease, border-left-color 0.15s ease, color 0.15s ease;
}
.nav-link-dropdown-panel a + a { margin-top: 2px; }
.nav-link-dropdown-panel a:hover {
  background: var(--steel-2);
  border-left-color: var(--copper);
  color: var(--copper);
}
.nav-link-dropdown-panel a strong {
  display: block;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 2px;
}
.nav-link-dropdown-panel a span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.nav-link-dropdown-panel a:hover strong {
  color: var(--copper);
}

/* Mobile (hamburger drawer): show submenu items inline as siblings of
   the main link. No hover on touch, so always-visible is the right call. */
@media (max-width: 900px) {
  .nav.is-open .nav-link-dropdown {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    width: 100%;
  }
  .nav.is-open .nav-link-dropdown-trigger {
    padding: 12px 14px;
    width: 100%;
    justify-content: space-between;
  }
  .nav.is-open .nav-link-dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px 0 8px 12px;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 2px solid var(--line-soft);
    margin-left: 14px;
  }
  .nav.is-open .nav-link-dropdown::after { display: none; }
  .nav.is-open .nav-link-dropdown-panel a {
    padding: 8px 12px;
  }
}

/* =========================================================
   v21 — Scroll offset for anchored section targets
   The site header is sticky at the top (~70px tall). Without
   scroll-margin-top, jumping to an anchor lands the target's
   top edge underneath the header. 90px = header height + a
   little breathing room.
   ========================================================= */
section[id],
[id="form"],
[id="what-to-bring"],
[id="memberships"],
[id="accounts"],
[id="cpl-resources"],
[id="schedule"],
[id="wait-and-pickup"] {
  scroll-margin-top: 90px;
}

/* =========================================================
   v22 — Fingerprinting Kiosk showcase block (suppressor page)
   Two-column: photo on the left, info callout on the right.
   If the photo isn't uploaded yet, the <img> onerror handler
   adds .no-image to the wrapper and the callout takes full width.
   ========================================================= */
.kiosk-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}
.kiosk-showcase.no-image {
  grid-template-columns: 1fr;
}
.kiosk-showcase-image {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  background: var(--steel);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  /* min-height guarantees the column matches the callout vertically
     even if the photo is short/wide */
  min-height: 220px;
}
.kiosk-showcase-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cap so an ultra-tall photo doesn't blow out the layout */
  max-height: 420px;
}
.kiosk-showcase .rules-callout {
  margin: 0;
  /* Force the callout to stretch to match the image column height */
  height: 100%;
}

@media (max-width: 720px) {
  .kiosk-showcase {
    grid-template-columns: 1fr;
  }
  .kiosk-showcase-image {
    min-height: 200px;
  }
  .kiosk-showcase-image img {
    max-height: 280px;
  }
}

/* =========================================================
   v23 — CLASSES & EVENTS
   Public cards on training.html #classes. Built on .cpl-card
   (Forms/renewals/prints boxes) so they read as a matching set,
   with extras for badge, cost, and call/email action buttons.
   ========================================================= */
.class-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Cards rendered as <div> (no wrapping anchor) still need the
   cursor + hover treatment when they carry a data-class-href. */
.class-card-clickable { cursor: pointer; }
.class-card-clickable:hover { border-color: var(--copper); }
.class-card-clickable:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

/* Small eyebrow label above the title */
.class-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--line);
  padding: 3px 8px;
  margin-bottom: 8px;
}

/* Price line */
.class-cost {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  color: var(--bone);
  letter-spacing: 0.02em;
  margin: 2px 0 8px;
}
.class-cost small {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}

/* Call / email action buttons at the bottom of a card */
.class-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}
.class-action {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--steel-2);
  color: var(--bone-2);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.class-action span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.76rem;
}
.class-action:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: var(--steel);
}
.class-action:hover span { color: var(--copper); }
.class-action-call { border-left: 2px solid var(--copper); }
.class-action-email { border-left: 2px solid var(--line); }

@media (max-width: 560px) {
  .class-actions { flex-direction: column; }
  .class-action { width: 100%; }
}

/* =========================================================
   v23 — Admin: Classes tab form extras
   ========================================================= */
.class-btn-options {
  border: 1px solid var(--line);
  padding: 14px 16px 16px;
  margin: 4px 0 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.class-btn-options legend {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px;
}
.class-btn-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--bone-2);
  cursor: pointer;
}
.checkbox-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #C9572C;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-line-standalone {
  align-self: end;
  padding-bottom: 10px;
}
.class-btn-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.table-sub {
  font-size: 0.76rem;
  color: var(--muted);
}
.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 22px 10px;
  font-style: italic;
}
.btn-small {
  padding: 5px 10px;
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .class-btn-options { grid-template-columns: 1fr; }
}

/* =========================================================
   v24 — MONTHLY COMPETITION
   ========================================================= */

/* ---------- Competition page: hero + prize ---------- */
.competition-hero { padding-bottom: 0; }

.comp-prize {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--copper-glow), transparent 70%), var(--steel-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
}
.comp-prize-icon { font-size: 2.4rem; line-height: 1; flex-shrink: 0; }
.comp-prize-body .eyebrow { display: block; margin-bottom: 4px; }
.comp-prize-body p {
  margin: 0;
  color: var(--bone);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* ---------- Leaderboard ---------- */
.leaderboard-wrap { margin-top: 6px; }
.leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.leader-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--steel);
  transition: background 0.15s ease;
}
.leader-row:last-child { border-bottom: 1px solid var(--line); }
.leader-row:hover { background: var(--steel-2); }

.leader-rank {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--faint);
  text-align: center;
}
.leader-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bone);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.leader-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.leader-score {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--copper);
  letter-spacing: 0.02em;
}

/* Podium accents for the top three */
.leader-row.is-gold {
  border-left: 4px solid #d9b44a;
  background: linear-gradient(90deg, rgba(217,180,74,0.10), transparent 60%), var(--steel);
}
.leader-row.is-gold .leader-rank { color: #d9b44a; }
.leader-row.is-silver {
  border-left: 4px solid #b8bcc4;
  background: linear-gradient(90deg, rgba(184,188,196,0.08), transparent 60%), var(--steel);
}
.leader-row.is-silver .leader-rank { color: #b8bcc4; }
.leader-row.is-bronze {
  border-left: 4px solid #c08457;
  background: linear-gradient(90deg, rgba(192,132,87,0.09), transparent 60%), var(--steel);
}
.leader-row.is-bronze .leader-rank { color: #c08457; }

@media (max-width: 560px) {
  .leader-row {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 13px 14px;
  }
  .leader-rank, .leader-score { font-size: 1.2rem; }
  .leader-name { font-size: 0.95rem; }
}

/* ---------- Homepage top-3 ribbon ---------- */
.comp-ribbon {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--steel-3);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.comp-ribbon-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--copper);
  color: #16100c;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.comp-ribbon-viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.comp-ribbon-track {
  display: flex;
  width: max-content;
  animation: comp-ribbon-scroll 24s linear infinite;
}
.comp-ribbon:hover .comp-ribbon-track {
  animation-play-state: paused;
}
.comp-ribbon-seq {
  display: flex;
  align-items: center;
  padding: 0 12px;
  white-space: nowrap;
}
.comp-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  color: var(--bone-2);
  font-size: 0.86rem;
}
.comp-ribbon-medal { font-size: 1rem; }
.comp-ribbon-rank {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}
.comp-ribbon-name { font-weight: 600; color: var(--bone); }
.comp-ribbon-score {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--copper-hot);
  letter-spacing: 0.03em;
}
.comp-ribbon-sep { color: var(--faint); }

@keyframes comp-ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .comp-ribbon-track { animation: none; }
  /* When motion is reduced, center the single visible copy */
  .comp-ribbon-seq[aria-hidden="true"] { display: none; }
  .comp-ribbon-viewport { justify-content: center; }
}
@media (max-width: 560px) {
  .comp-ribbon-label { padding: 8px 12px; font-size: 0.72rem; }
  .comp-ribbon-item { padding: 8px 16px; font-size: 0.8rem; }
}

/* ---------- Admin: competition settings + scores ---------- */
.comp-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  margin-bottom: 4px;
}
.comp-settings-status {
  font-size: 0.85rem;
  color: var(--muted);
}
.comp-settings-status.is-ok { color: var(--sig-in); }

/* =========================================================
   v27 — TEAM BIOS
   ========================================================= */

/* ---------- Public card grid (about.html) ---------- */
.team-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;   /* cards grow independently; siblings stay put */
}
.team-card {
  background: var(--steel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
  overflow: hidden;
}
.team-card.is-open { border-color: var(--copper); }

/* Photo — always visible, top of the card */
.team-card-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--steel-2);
  overflow: hidden;
}
.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card-photo.is-empty {
  position: relative;
}
.team-card-photo.is-empty::after {
  content: "Photo";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px dashed var(--line);
}

/* Name + position — always visible, below the photo */
.team-card-head {
  padding: 16px 18px 4px;
  text-align: center;
}
.team-card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin: 0;
}
.team-card-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 4px 0 0;
}

/* Dropdown toggle */
.team-card-toggle {
  margin: 12px 18px 18px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--steel-2);
  border: 1px solid var(--line);
  color: var(--bone-2);
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.team-card-toggle:hover {
  border-color: var(--copper);
  color: var(--copper);
}
.team-card-caret {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}
.team-card.is-open .team-card-caret { transform: rotate(180deg); }

/* Expanding panel (pushes THIS card taller only) */
.team-card-panel {
  padding: 4px 18px 20px;
  border-top: 1px solid var(--line);
  margin: 0 0 4px;
}

/* Bio field list (reused inside the panel) */
.team-bio-fields { margin: 0; }
.team-bio-field { margin-bottom: 14px; }
.team-bio-field:last-child { margin-bottom: 0; }
.team-bio-field dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 3px;
}
.team-bio-field dd {
  margin: 0;
  color: var(--bone-2);
  font-size: 0.92rem;
  line-height: 1.5;
}
.team-bio-quote {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--copper);
  background: var(--steel-2);
  color: var(--bone);
  font-style: italic;
  font-size: 0.94rem;
}

/* Cards with no bio content — no toggle, just photo + name */
.team-card-nobody { padding-bottom: 8px; }

@media (max-width: 860px) {
  .team-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-card-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* ---------- Admin: team photo upload ---------- */
.team-photo-upload {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  margin: 4px 0;
}
.team-photo-preview {
  flex-shrink: 0;
  width: 90px;
}
.team-photo-preview img {
  width: 90px;
  height: 112px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.team-photo-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-photo-controls .input-label {
  font-size: 0.82rem;
  color: var(--bone-2);
}
.team-photo-controls .input-label em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.76rem;
}
.team-photo-controls .lookup-btn {
  align-self: flex-start;
  padding: 9px 16px;
  background: var(--steel-2);
  border: 1px solid var(--line);
  color: var(--bone-2);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.team-photo-controls .lookup-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* =========================================================
   ID-upload retention notice (reservations panel)
   ========================================================= */
.retention-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  background: var(--steel-2);
}
.retention-notice.is-warn {
  border-left-color: #d9b44a;
  background: linear-gradient(90deg, rgba(217,180,74,0.08), transparent 70%), var(--steel-2);
}
.retention-notice-icon {
  font-size: 1.3rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.retention-notice-body {
  font-size: 0.9rem;
  color: var(--bone-2);
  line-height: 1.55;
}
.retention-notice-body strong { color: var(--bone); }
.retention-count {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}
.retention-flag {
  display: block;
  margin-top: 6px;
  color: #e0c268;
  font-size: 0.85rem;
  font-weight: 500;
}
