/* =============================================================
   Feuerwehr Stadt Luzern — Theme stylesheet
   Mockup for WordPress theme. All shared rules live here.
   ============================================================= */

:root {
  /* Palette */
  --ink: #0d1b2a;          /* navy/near-black chrome */
  --ink-2: #1b2735;        /* hover row */
  --ink-3: #2a3441;        /* borders on dark */
  --red: #e63946;          /* signature emergency red */
  --red-deep: #c1121f;     /* press / dark accents */
  --paper: #ffffff;
  --paper-2: #f6f6f7;      /* page background */
  --paper-3: #ececee;
  --rule: #e3e3e6;
  --text: #1a1a1a;
  --text-2: #4b5260;
  --text-3: #8a8f99;

  /* Type */
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif Pro", "Georgia", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: 24px;
  --header-h: 84px;
  --topbar-h: 36px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.35; }
h5 { font-size: 15px; line-height: 1.4; }
p  { margin: 0 0 1em; text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow.muted { color: var(--text-3); }

/* =========== Top utility bar =========== */
.topbar {
  position: relative;
  z-index: 50;
  background: #000;
  color: #fff;
  font-size: 13px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar .inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #b9bcc4;
}
.topbar .links a:hover { color: #fff; }
.topbar .langs { display: flex; gap: 10px; font-size: 12px; letter-spacing: 0.06em; color: #888c95; }
.topbar .langs .active { color: #fff; }

/* =========== Header =========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header.transparent {
  background: linear-gradient(to bottom, rgba(13,27,42,0.55), rgba(13,27,42,0));
  border-bottom: none;
  backdrop-filter: none;
}
.site-header .inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-header .brand .mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
.site-header .brand .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-header .brand .wordmark .top { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #b9bcc4; font-weight: 500; }
.site-header .brand .wordmark .bot { font-size: 18px; letter-spacing: -0.01em; }

/* Primary nav */
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #e8eaf0;
  border-radius: 4px;
  font-weight: 500;
  transition: color 120ms ease, background 120ms ease;
}
.nav > ul > li > a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav > ul > li.active > a { color: #fff; }
.nav > ul > li.active > a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--red);
  margin-top: 6px;
  border-radius: 2px;
}
.nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  color: var(--text);
  list-style: none;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.nav > ul > li:hover .submenu,
.nav > ul > li:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav .submenu li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 3px;
}
.nav .submenu li a:hover { background: var(--paper-2); color: var(--red); }

/* Notruf button */
.notruf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 120ms ease;
}
.notruf:hover { background: var(--red-deep); color: #fff; }
.notruf .num { font-size: 16px; letter-spacing: 0.04em; }
.notruf .pulse {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* =========== Hero =========== */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h) - var(--topbar-h));
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero .media,
.hero .media video,
.hero .media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,27,42,0.45) 0%, rgba(13,27,42,0.15) 30%, rgba(13,27,42,0.85) 100%);
}
.hero .content {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--red); }
.hero .lede {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin-top: 24px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero .scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero .scroll-cue .bar {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.4);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero .media {
  position: absolute; inset: 0;
}
.page-hero .media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5;
}
.page-hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.7), rgba(13,27,42,0.95));
}
.page-hero .inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 64px var(--gutter) 56px;
}
.page-hero .breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs .sep { margin: 0 8px; color: rgba(255,255,255,0.3); }
.page-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.page-hero .subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  max-width: 64ch;
  margin-top: 16px;
}

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 120ms ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-arrow::after {
  content: "→";
  margin-left: 4px;
  transition: transform 120ms ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* =========== Section scaffolding =========== */
.section {
  padding: 80px 0;
}
.section.tight { padding: 56px 0; }
.section.dark {
  background: var(--ink);
  color: #fff;
}
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.paper { background: var(--paper-2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.wide { max-width: var(--container-wide); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}
.section.dark .section-head { border-color: var(--ink-3); }
.section-head .title h2 { margin-top: 8px; }
.section-head .link {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.section-head .link:hover { color: var(--red); }

/* =========== Status bar (Heute in Bereitschaft) =========== */
.status-bar {
  background: var(--ink);
  color: #fff;
  border-top: 3px solid var(--red);
}
.status-bar .inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.status-bar .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.status-bar .items {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.status-bar .item {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-bar .item b { font-weight: 700; color: #fff; }
.status-bar .item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1be881; box-shadow: 0 0 10px rgba(27,232,129,0.6);
}
.status-bar .item .key {
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

/* =========== Deployments — three card styles ===========
   Toggled via [data-deploy-style="list" | "grid" | "timeline"] on the section.
================================================================ */
.deploy-list { list-style: none; margin: 0; padding: 0; }

/* LIST (default — newsroom rows) */
[data-deploy-style="list"] .deploy {
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: flex-start;
}
[data-deploy-style="list"] .deploy:last-child { border-bottom: 1px solid var(--rule); }
[data-deploy-style="list"] .deploy .when {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
[data-deploy-style="list"] .deploy .when .date { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
[data-deploy-style="list"] .deploy .body .place {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
  font-weight: 600;
}
[data-deploy-style="list"] .deploy .body h3 { font-size: 20px; margin-bottom: 6px; }
[data-deploy-style="list"] .deploy .body p { color: var(--text-2); margin: 0; font-size: 15px; }
[data-deploy-style="list"] .deploy .formation {
  font-size: 12px;
  color: var(--text-2);
  text-align: right;
  letter-spacing: 0.04em;
}
[data-deploy-style="list"] .deploy .formation .tag {
  display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* GRID */
[data-deploy-style="grid"] .deploy-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
[data-deploy-style="grid"] .deploy {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 120ms ease, transform 120ms ease;
}
[data-deploy-style="grid"] .deploy:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
[data-deploy-style="grid"] .deploy .when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
}
[data-deploy-style="grid"] .deploy .place {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
[data-deploy-style="grid"] .deploy .body h3 { font-size: 18px; }
[data-deploy-style="grid"] .deploy .body p { color: var(--text-2); font-size: 14px; margin: 8px 0 0; }
[data-deploy-style="grid"] .deploy .formation {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}

/* TIMELINE */
[data-deploy-style="timeline"] .deploy-list {
  position: relative;
  margin-left: 24px;
  padding-left: 32px;
  border-left: 2px solid var(--rule);
}
[data-deploy-style="timeline"] .deploy {
  position: relative;
  padding: 0 0 36px;
}
[data-deploy-style="timeline"] .deploy::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 8px;
  width: 14px; height: 14px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--red);
}
[data-deploy-style="timeline"] .deploy .when {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
[data-deploy-style="timeline"] .deploy .place {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  font-weight: 600;
}
[data-deploy-style="timeline"] .deploy h3 { font-size: 19px; }
[data-deploy-style="timeline"] .deploy p { color: var(--text-2); margin: 6px 0 8px; font-size: 15px; }
[data-deploy-style="timeline"] .deploy .formation {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

/* =========== Hotlinks =========== */
.hotlinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
}
.hotlink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 32px;
  background: var(--ink);
  color: #fff;
  border-right: 1px solid var(--ink-3);
  transition: background 200ms ease;
  position: relative;
  overflow: hidden;
}
.hotlink:last-child { border-right: none; }
.hotlink:hover { background: var(--ink-2); }
.hotlink .icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 24px;
  transition: border-color 200ms ease, color 200ms ease;
}
.hotlink:hover .icon { border-color: var(--red); color: #fff; background: var(--red); }
.hotlink .kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.hotlink h3 {
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.hotlink .arrow {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
}
.hotlink:hover .arrow { color: var(--red); }

/* =========== Stats grid =========== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 32px;
}
.stat-block .stat-num {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-block .stat-num .unit { font-size: 0.5em; color: var(--text-3); margin-left: 8px; font-weight: 500; }
.stat-block .stat-label {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-top: 8px;
}
.stat-block .stat-detail {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  list-style: none;
  padding: 0;
}
.stat-block .stat-detail li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text-2);
}
.stat-block .stat-detail li b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* =========== Companies stripe =========== */
.companies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.company-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 32px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  transition: border-color 120ms ease;
}
.company-card:hover { border-color: var(--ink); }
.company-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}
.company-card h3 { font-size: 22px; }
.company-card p { font-size: 14px; color: var(--text-2); margin: 0; }
.company-card .meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========== Page layout with sub-nav =========== */
.page-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 56px var(--gutter);
  max-width: var(--container-wide);
  margin: 0 auto;
}
.subnav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.subnav h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: all 120ms ease;
}
.subnav li a:hover { color: var(--ink); background: var(--paper-2); }
.subnav li.active a {
  color: var(--ink);
  border-color: var(--red);
  background: var(--paper-2);
  font-weight: 600;
}

.prose { max-width: 70ch; }
.prose h2 { margin-top: 56px; margin-bottom: 16px; font-size: 32px; }
.prose h3 { margin-top: 40px; margin-bottom: 12px; font-size: 22px; }
.prose p { font-size: 17px; line-height: 1.65; color: var(--text); }
.prose ul { padding-left: 20px; }
.prose ul li { margin-bottom: 8px; font-size: 17px; line-height: 1.65; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  border-left: 3px solid var(--red);
  background: var(--paper-2);
  font-size: 19px;
  color: var(--ink);
  font-style: normal;
}
.prose blockquote p { margin: 0; }

/* =========== Table (Einsätze) =========== */
.deploy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.deploy-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.deploy-table tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.deploy-table tbody tr:hover { background: var(--paper-2); }
.deploy-table .col-time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  width: 200px;
}
.deploy-table .col-time .place {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}
.deploy-table .col-event h4 { font-size: 15px; margin-bottom: 4px; }
.deploy-table .col-event p { font-size: 14px; color: var(--text-2); margin: 0; }
.deploy-table .col-formation {
  width: 180px;
  font-size: 12px;
  color: var(--text-2);
}
.deploy-table .tag {
  display: inline-block;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* Filters */
.filters {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.filters .group { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.filters select, .filters input[type="text"] {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 3px;
  font-family: inherit;
  color: var(--text);
}
.filters .check { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
.filters .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 40px;
}
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-weight: 500;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* =========== Vehicle gallery =========== */
.vehicle-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
}
.vehicle-tabs button {
  padding: 14px 20px;
  font-size: 14px;
  background: none;
  border: none;
  color: var(--text-2);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  margin-bottom: -1px;
}
.vehicle-tabs button:hover { color: var(--ink); }
.vehicle-tabs button.active {
  color: var(--ink);
  border-color: var(--red);
  font-weight: 600;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.vehicle {
  display: flex;
  flex-direction: column;
}
.vehicle .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: 3px;
  position: relative;
}
.vehicle .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.vehicle:hover .photo img { transform: scale(1.04); }
.vehicle .photo .code {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.vehicle .meta {
  padding: 16px 0;
}
.vehicle .meta .type {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}
.vehicle .meta h3 { font-size: 18px; margin-bottom: 6px; }
.vehicle .meta .specs {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-top: 8px;
}
.vehicle .meta .specs span b { color: var(--ink); font-weight: 600; }

/* =========== Photo gallery =========== */
.gallery-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.gallery-filters button {
  padding: 8px 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.gallery-filters button:hover { border-color: var(--ink); color: var(--ink); }
.gallery-filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.album {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--ink);
}
.album img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, opacity 300ms ease;
}
.album:hover img { transform: scale(1.06); opacity: 0.85; }
.album .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%);
}
.album .info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
  z-index: 2;
}
.album .date {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.album h3 {
  color: #fff;
  font-size: 19px;
}
.album .count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Mosaic — one feature album spanning */
.album-grid .album.featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* =========== News (single article) =========== */
.article-header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 24px 32px;
}
.article-header .meta {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}
.article-header .meta .cat { color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.article-header h1 { margin-bottom: 16px; }
.article-header .dek {
  font-size: 22px;
  color: var(--text-2);
  line-height: 1.45;
  max-width: 60ch;
  margin: 0 auto;
  text-wrap: balance;
}
.article-feature {
  max-width: var(--container);
  margin: 24px auto;
  padding: 0 var(--gutter);
}
.article-feature img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
}
.article-feature .caption {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
  font-style: normal;
}
.article-body {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 var(--gutter);
}

.share-row {
  display: flex;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 48px;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
}
.share-row .share-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 14px;
}
.share-row .share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.related {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}
.related-card { display: block; }
.related-card img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 3px;
}
.related-card .meta {
  font-size: 11px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 16px 0 6px;
  font-weight: 600;
}
.related-card h3 { font-size: 18px; }

/* =========== Form =========== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: var(--red); }
.field input,
.field textarea,
.field select {
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 120ms ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .help { font-size: 12px; color: var(--text-3); }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.checkbox-row input { margin-top: 4px; }

.info-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
}
.info-card h3 { margin-bottom: 16px; font-size: 20px; }
.info-card dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 16px;
  margin: 0;
  font-size: 14px;
}
.info-card dt { color: var(--text-3); font-weight: 500; }
.info-card dd { margin: 0; color: var(--text); font-weight: 500; }
.info-card .map {
  margin-top: 24px;
  aspect-ratio: 4/3;
  background: var(--ink);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.info-card .map img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.info-card .map .pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  width: 28px; height: 28px;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* =========== Org chart =========== */
.orgchart {
  margin: 32px 0;
}
.orgchart .row {
  display: grid;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}
.orgchart .row.r1 { grid-template-columns: 240px; }
.orgchart .row.r2 { grid-template-columns: repeat(4, 220px); }
.orgchart .row.r3 { grid-template-columns: repeat(3, 220px); }
.org-card {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 16px;
  border-radius: 3px;
  text-align: center;
}
.org-card.lead {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.org-card .role {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 4px;
}
.org-card.lead .role { color: rgba(255,255,255,0.7); }
.org-card .name { font-size: 14px; font-weight: 600; }
.org-card.lead .name { color: #fff; }

/* =========== Footer =========== */
.site-footer {
  background: var(--ink);
  color: #d1d5db;
  padding: 64px 0 0;
  font-size: 14px;
}
.site-footer .top {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.site-footer h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer .col ul { list-style: none; margin: 0; padding: 0; }
.site-footer .col li { margin: 8px 0; }
.site-footer .col a { color: #b9bcc4; transition: color 120ms ease; }
.site-footer .col a:hover { color: #fff; }
.site-footer .brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}
.site-footer .brand-row .mark { width: 40px; height: 40px; }
.site-footer .addr {
  line-height: 1.7;
  color: #b9bcc4;
}
.site-footer .socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.site-footer .socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
}
.site-footer .socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.site-footer .bottom {
  border-top: 1px solid var(--ink-3);
  padding: 20px var(--gutter);
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.site-footer .bottom .logos { display: flex; gap: 24px; align-items: center; }
.site-footer .bottom .logos img { height: 32px; opacity: 0.7; }

/* =========== Mobile (basic) =========== */
@media (max-width: 960px) {
  .nav > ul > li:not(:last-child) > a { display: none; }
  .nav > ul > li:last-child { display: block; }
  .stats-grid, .form-grid, .hotlinks, .companies, .related-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .page-grid { grid-template-columns: 1fr; gap: 32px; }
  [data-deploy-style="list"] .deploy { grid-template-columns: 1fr; gap: 8px; }
  [data-deploy-style="list"] .deploy .formation { text-align: left; }
  .orgchart .row.r2 { grid-template-columns: repeat(2, 1fr); }
  .orgchart .row.r3 { grid-template-columns: 1fr; }
}

/* Tweaks panel hook */
[data-tweaks-hidden="true"] .tweaks-panel { display: none; }
