/* ==========================================================================
   SORTBENCH TONIC TRAILIES - FLEET OPERATIONS & LOGISTICS CSS
   Design System: Industrial European Mobility / High-Tech Depot Aesthetic
   ========================================================================== */

/* --- Custom Variables & Theme Tokens --- */
:root {
  --bg-primary: #111416;
  --bg-surface: #181d21;
  --bg-surface-elevated: #22282e;
  --bg-surface-hover: #2a3239;
  
  --border-subtle: #293238;
  --border-strong: #3d4a52;
  --border-focus: #18d5e8;

  --text-main: #f2f4ef;
  --text-muted: #aeb8ba;
  --text-dim: #6f8794;

  --accent-cyan: #18d5e8;
  --accent-cyan-rgb: 24, 213, 232;
  --accent-lime: #b7e83e;
  --accent-lime-rgb: 183, 232, 62;
  --accent-violet: #7771a8;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --font-mono: ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --container-max: 1280px;
  --header-height: 72px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 16px rgba(24, 213, 232, 0.25);
  --glow-lime: 0 0 16px rgba(183, 232, 62, 0.25);
}

/* --- CSS Reset & Normalization --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.sep {
  color: var(--text-dim);
  margin: 0 0.5rem;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-intro {
  margin-bottom: 3rem;
  max-width: 760px;
}

.section-heading {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.5rem;
  }
}

/* --- Common UI Components (Buttons & Badges) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: #0b1c20;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #38e3f4;
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--bg-surface-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--text-main);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
}

.btn-block {
  width: 100%;
}

.operational-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
  background-color: rgba(24, 213, 232, 0.08);
  border: 1px solid rgba(24, 213, 232, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-lime);
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid var(--accent-lime);
  animation: pulsePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulsePing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.text-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--accent-lime);
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.text-link-btn:hover {
  color: var(--accent-lime);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(17, 20, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.brand-symbol {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  word-break: break-all;
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 0.8rem;
  }
}

.desktop-nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item.is-current {
  color: var(--accent-cyan);
}

.nav-item.is-current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
}

.nav-item.nav-btn {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.9rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.nav-item.nav-btn:hover {
  border-color: var(--accent-cyan);
  background-color: rgba(24, 213, 232, 0.1);
}

.nav-item.nav-btn.is-current {
  background-color: var(--accent-cyan);
  color: #0b1c20;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

@media (min-width: 992px) {
  .desktop-nav {
    display: block;
  }
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Flyout Panel */
.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 200;
}

.mobile-panel[hidden] {
  display: none;
}

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.mobile-panel-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.mobile-close-btn {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
}

.mobile-close-btn:hover {
  color: var(--text-main);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-item {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(41, 50, 56, 0.4);
}

.mobile-nav-item:hover,
.mobile-nav-item.is-current {
  color: var(--accent-cyan);
  padding-left: 0.5rem;
}

.mobile-nav-item.highlight-link {
  color: var(--accent-lime);
}

.mobile-panel-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-dot.online {
  background-color: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero-section {
  padding: 4rem 0 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(24, 213, 232, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(183, 232, 62, 0.04) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-operational-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .hero-operational-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-cell {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Network SVG Graphic Card */
.abstract-network-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.network-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
}

.status-pill.status-active {
  background-color: rgba(183, 232, 62, 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(183, 232, 62, 0.4);
}

.network-canvas-wrap {
  position: relative;
  background-color: #111416;
  padding: 1rem;
}

.network-svg {
  width: 100%;
  height: auto;
}

.network-card-footer {
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-color.cyan { background-color: var(--accent-cyan); }
.legend-color.lime { background-color: var(--accent-lime); }
.legend-color.violet { background-color: var(--accent-violet); }

.caption-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   DATA GRID CARDS (FIVE PILLARS)
   ========================================================================== */
.data-grid-five {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .data-grid-five {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .data-grid-five {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Center last card on 3-col grid */
  .data-grid-five > :nth-child(4) {
    grid-column: 1 / 2;
  }
  .data-grid-five > :nth-child(5) {
    grid-column: 2 / 3;
  }
}

.data-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.data-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.data-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-surface-elevated);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.data-card:hover .card-img {
  transform: scale(1.05);
}

.card-status-flag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.card-status-flag.active {
  background-color: rgba(24, 213, 232, 0.85);
  color: #0b1c20;
}
.card-status-flag.workshop {
  background-color: rgba(183, 232, 62, 0.85);
  color: #0e1c05;
}
.card-status-flag.energy {
  background-color: rgba(245, 158, 11, 0.85);
  color: #241402;
}
.card-status-flag.logistics {
  background-color: rgba(119, 113, 168, 0.9);
  color: #ffffff;
}
.card-status-flag.planning {
  background-color: rgba(24, 213, 232, 0.85);
  color: #0b1c20;
}

.data-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.meta-tag {
  color: var(--accent-cyan);
  font-weight: 700;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-specs {
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.25rem 0;
}

.spec-row:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
}

.spec-label {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.7rem;
}

.spec-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background-color: rgba(111, 135, 148, 0.15);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(111, 135, 148, 0.25);
}

.card-cta-wrap {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-card {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-card:hover {
  color: var(--accent-lime);
  transform: translateX(3px);
}

/* ==========================================================================
   INTERACTIVE FLEET READINESS PANEL (INDEX)
   ========================================================================== */
.interactive-panel-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .interactive-panel-box {
    padding: 3rem;
  }
}

.panel-header-bar {
  margin-bottom: 2rem;
  max-width: 680px;
}

.panel-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.panel-lead {
  color: var(--text-muted);
  font-size: 1rem;
}

.readiness-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.readiness-tab {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.readiness-tab:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.readiness-tab.is-active {
  background-color: var(--accent-cyan);
  color: #0b1c20;
  border-color: var(--accent-cyan);
}

.readiness-display {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .readiness-display {
    padding: 2.25rem;
  }
}

/* ==========================================================================
   ACCORDION (FAQ)
   ========================================================================== */
.faq-container {
  max-width: 860px;
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-item:hover {
  border-color: var(--border-strong);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 1.75rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.accordion-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-cyan);
  line-height: 1;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  color: var(--accent-lime);
}

.accordion-panel {
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(17, 20, 22, 0.4);
}

.accordion-panel[hidden] {
  display: none;
}

.accordion-body {
  padding: 1.5rem 1.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   CALL TO ACTION BANNER
   ========================================================================== */
.section-cta {
  background-color: #0b1c20;
  background-image: radial-gradient(circle at right center, rgba(24, 213, 232, 0.1) 0%, transparent 70%);
}

.cta-banner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 0;
}

@media (min-width: 992px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-content {
  max-width: 720px;
}

.cta-heading {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   SUBPAGE TEMPLATES & PROSE LAYOUTS
   ========================================================================== */
.subpage-hero {
  padding: 3rem 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.breadcrumb-nav a:hover {
  color: var(--accent-cyan);
}

.subpage-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .subpage-title {
    font-size: 2.85rem;
  }
}

.subpage-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.65;
}

.content-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 992px) {
  .content-layout-grid {
    grid-template-columns: 1fr 340px;
    gap: 3.5rem;
  }
}

/* Prose Styling */
.prose-main h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.prose-main h2:first-child {
  margin-top: 0;
}

.prose-main h3 {
  font-size: 1.35rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose-main p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.operational-list {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.operational-list li {
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.operational-list li strong {
  color: var(--text-main);
}

.operational-list li::before {
  content: "\25B8";
  position: absolute;
  left: -1.25rem;
  color: var(--accent-cyan);
}

.technical-callout {
  background-color: var(--bg-surface);
  border-left: 3px solid var(--accent-lime);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--accent-lime);
  font-family: var(--font-mono);
}

.technical-callout p {
  margin-bottom: 0;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table thead th {
  background-color: var(--bg-surface-elevated);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table tbody th {
  font-weight: 600;
  color: var(--text-main);
  background-color: rgba(24, 29, 33, 0.4);
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background-color: var(--bg-surface);
}

/* Sidebar Widgets */
.prose-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .prose-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

.sidebar-data-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.secondary-box {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.box-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.box-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.box-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.box-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.b-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-lime);
  line-height: 1;
}

.b-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.box-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.box-divider {
  border: none;
  height: 1px;
  background-color: var(--border-subtle);
  margin: 1.25rem 0;
}

.box-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.box-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.box-checklist li::before {
  content: none;
}

.stat-pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.stat-pair:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  max-width: 180px;
}

.related-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.related-links-list a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.related-links-list a:hover {
  color: var(--accent-lime);
  transform: translateX(4px);
}

/* ==========================================================================
   INTERACTIVE TOOLS: MAINTENANCE CHECKLIST
   ========================================================================== */
.interactive-checklist-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin: 2.5rem 0;
}

@media (min-width: 768px) {
  .interactive-checklist-box {
    padding: 2.25rem;
  }
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.checklist-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.checklist-title {
  font-size: 1.4rem;
  margin: 0.25rem 0;
}

.checklist-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.check-item:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-surface-hover);
}

.check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-custom {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.check-input:checked + .check-custom {
  background-color: var(--accent-lime);
  border-color: var(--accent-lime);
}

.check-input:checked + .check-custom::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #0e1c05;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.check-label-wrap {
  display: flex;
  flex-direction: column;
}

.check-name {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.check-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.check-input:checked ~ .check-label-wrap .check-name {
  text-decoration: line-through;
  color: var(--text-dim);
}

.checklist-status-bar {
  background-color: var(--bg-surface-elevated);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .checklist-status-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.progress-track {
  width: 100%;
  max-width: 280px;
  height: 8px;
  background-color: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent-lime);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

/* ==========================================================================
   INTERACTIVE TOOLS: CHARGING WORKFLOW & SCALE SELECTOR
   ========================================================================== */
.workflow-interactive-box,
.fleet-selector-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin: 2.5rem 0;
}

@media (min-width: 768px) {
  .workflow-interactive-box,
  .fleet-selector-box {
    padding: 2.25rem;
  }
}

.workflow-header,
.selector-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.workflow-title,
.selector-title {
  font-size: 1.4rem;
  margin: 0.25rem 0;
}

.workflow-sub,
.selector-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.workflow-nav-steps,
.scale-buttons-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .workflow-nav-steps {
    grid-template-columns: repeat(5, 1fr);
  }
  .scale-buttons-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

.wf-step-btn,
.scale-tier-btn {
  padding: 0.75rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wf-step-btn:hover,
.scale-tier-btn:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.wf-step-btn.is-active,
.scale-tier-btn.is-active {
  background-color: rgba(24, 213, 232, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.scale-tier-btn strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.scale-tier-btn span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.scale-tier-btn.is-active strong {
  color: var(--accent-cyan);
}

.workflow-display-card,
.scale-display-card {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.workflow-controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================================================
   CONTACT PAGE & FORM
   ========================================================================== */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-split-grid {
    grid-template-columns: 1.25fr 0.9fr;
    gap: 3.5rem;
  }
}

.form-card,
.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .form-card,
  .info-card {
    padding: 2.5rem;
  }
}

.form-heading,
.info-entity-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-desc,
.info-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(24, 213, 232, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.field-error {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-red);
}

/* Custom Checkbox in Contact */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.form-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  margin-top: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface-elevated);
}

.form-checkbox:checked + .checkbox-custom {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.form-checkbox:checked + .checkbox-custom::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #0b1c20;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: none !important;
}

.form-actions {
  margin-top: 1rem;
}

/* Form Success State */
.form-success-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon {
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
}

.success-title {
  font-size: 1.5rem;
  color: var(--accent-lime);
  margin-bottom: 0.75rem;
}

.success-text {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Static Map & Info Card Column */
.info-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-lime);
  margin-bottom: 0.5rem;
}

.info-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.info-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.info-icon {
  color: var(--accent-cyan);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.info-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.info-meta strong {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.info-meta span,
.info-meta a {
  color: var(--text-muted);
}

.info-email-link:hover {
  color: var(--accent-cyan);
}

.info-rule {
  border: none;
  height: 1px;
  background-color: var(--border-subtle);
  margin: 2rem 0;
}

.static-map-block {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.map-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
}

.map-ping {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-lime);
}

.static-map-visual {
  width: 100%;
  background-color: #1b2023;
}

.map-svg {
  width: 100%;
  height: auto;
}

.map-footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--border-subtle);
}

.map-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   LEGAL PAGES (PRIVACY, TERMS, COOKIES)
   ========================================================================== */
.legal-content-layout {
  max-width: 860px;
}

.legal-body h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-body h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.legal-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.legal-body li {
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-body li::before {
  content: "\2022";
  color: var(--accent-cyan);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.legal-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background-color: var(--bg-surface-elevated);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: #0d1012;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 1.5rem;
}

.legal-entity-details {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 420px;
}

.legal-entity-details strong {
  color: var(--text-muted);
}

.footer-link-inline {
  color: var(--accent-cyan);
}

.footer-link-inline:hover {
  text-decoration: underline;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-pref-btn {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: left;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-pref-btn:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  background-color: #090b0c;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.compliance-note {
  font-family: var(--font-mono);
}

/* ==========================================================================
   COOKIE BANNER & PREFERENCES MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background-color: rgba(24, 29, 33, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-strong);
  padding: 1.25rem 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text-block {
  max-width: 700px;
}

.cookie-title {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.cookie-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Modal Backdrop */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 600;
  background-color: rgba(10, 12, 14, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cookie-modal-backdrop[hidden] {
  display: none;
}

.cookie-modal {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-modal-title {
  font-size: 1.15rem;
}

.modal-close-btn {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.cookie-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preference-group {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.preference-group:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.pref-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pref-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.pref-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-modal-footer {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
  body {
    background: white;
    color: black;
  }
  .site-header,
  .site-footer,
  .cookie-banner,
  .cookie-modal-backdrop,
  .mobile-panel {
    display: none !important;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  .data-card,
  .sidebar-data-box,
  .interactive-checklist-box {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}