/* ==========================================================================
   TRELUMIMATMX - SPORTS BROADCAST ENGINEERING STYLESHEET
   Design System: Technical Broadcaster UI / High-Density Broadcast Operations
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surface & Base Tones */
  --bg-canvas: #0c151c;
  --bg-primary: #111e28;
  --bg-card: #182c3b;
  --bg-card-hover: #1e3648;
  --bg-subtle: #14232f;
  --bg-elevated: #203546;
  --bg-overlay: rgba(10, 18, 24, 0.85);

  /* Border & Structure */
  --border-subtle: #223746;
  --border-medium: #2e4a5e;
  --border-focus: #4e9d9a;
  --border-highlight: #416279;

  /* Typography Colors */
  --text-main: #f0f6f9;
  --text-muted: #b0c5d0;
  --text-dim: #7998a9;
  --text-inverse: #0d171f;

  /* Telemetry & Tally Accents */
  --tally-teal: #4e9d9a;
  --tally-mint: #91c9b9;
  --tally-red: #c95c5c;
  --tally-red-bright: #ff6b6b;
  --tally-amber: #d7a65b;
  --tally-blue: #3d7ea6;

  /* Typography Families */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Layout, Shadows, Radii */
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --glow-teal: 0 0 16px rgba(78, 157, 154, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.25s ease-in-out;
}

/* --------------------------------------------------------------------------
   2. Box Sizing & Reset Basics
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--bg-canvas);
  color: var(--text-muted);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: #c4ede1;
}

ul, ol {
  list-style: none;
}

/* Accessible Skip Navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--tally-teal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
}

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

/* --------------------------------------------------------------------------
   3. Header & Primary Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(17, 30, 40, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(78, 157, 154, 0.2);
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

/* Navigation Menu */
.nav-menu {
  display: none;
}

.nav-menu.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.25rem;
}

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

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-elevated);
}

.nav-link.is-active {
  color: var(--tally-mint);
  background-color: rgba(78, 157, 154, 0.12);
  border-left: 3px solid var(--tally-mint);
}

.nav-btn {
  background: rgba(78, 157, 154, 0.15);
  border: 1px solid var(--tally-teal);
  color: var(--tally-mint) !important;
  text-align: center;
}

.nav-btn:hover {
  background: var(--tally-teal);
  color: #fff !important;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  cursor: pointer;
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--tally-teal);
}

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

@media (min-width: 960px) {
  .mobile-toggle {
    display: none;
  }

  .nav-menu {
    display: block !important;
    position: static;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.45rem 0.75rem;
  }

  .nav-link.is-active {
    border-left: none;
    border-bottom: 2px solid var(--tally-mint);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }
}

/* --------------------------------------------------------------------------
   4. Buttons, Badges, and Eyebrows
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--tally-teal);
  color: #fff;
  border-color: var(--tally-teal);
  box-shadow: 0 2px 8px rgba(78, 157, 154, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #3b8380;
  border-color: #3b8380;
  color: #fff;
  box-shadow: var(--glow-teal);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: #274055;
  border-color: var(--tally-teal);
  color: #fff;
}

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

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--text-main);
  border-color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.05);
}

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

.btn-block {
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tally-teal);
  margin-bottom: 0.65rem;
}

.eyebrow-light {
  color: var(--tally-mint);
}

.badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.badge-teal {
  background-color: rgba(78, 157, 154, 0.18);
  color: var(--tally-mint);
  border: 1px solid rgba(78, 157, 154, 0.4);
}

.badge-subtle {
  background-color: rgba(221, 233, 238, 0.08);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   5. Hero Sections & Page Title Banners
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 3.5rem 0 4rem;
  background: radial-gradient(circle at 80% 20%, rgba(78, 157, 154, 0.09) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.hero-heading {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.hero-meta-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tally-mint);
}

/* Page Title Banner (Used across topic pages & legal pages) */
.page-title-banner {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, #13222d 0%, var(--bg-canvas) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-headline {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.page-subhead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 820px;
}

/* --------------------------------------------------------------------------
   6. Visual Presentation Frames & Cards
   -------------------------------------------------------------------------- */
.visual-card,
.inline-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.visual-card svg,
.inline-visual-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.glass-frame {
  border: 1px solid var(--border-highlight);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--glow-teal);
}

.visual-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.inline-visual-card {
  margin: 2.25rem 0;
  border-left: 3px solid var(--tally-teal);
}

/* --------------------------------------------------------------------------
   7. Sections & Section Headers
   -------------------------------------------------------------------------- */
.section {
  padding: 4rem 0;
}

.bg-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 2.75rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   8. Broadcast Signal Pipeline (01. Capture -> 05. Distribute)
   -------------------------------------------------------------------------- */
.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 840px) {
  .pipeline-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

.pipeline-node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  height: 100%;
}

.pipeline-node:hover {
  transform: translateY(-3px);
  border-color: var(--tally-teal);
}

.node-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: rgba(78, 157, 154, 0.12);
  color: var(--tally-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.node-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tally-teal);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.node-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.node-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.pipeline-connector {
  display: none;
  color: var(--border-medium);
  text-align: center;
}

@media (min-width: 840px) {
  .pipeline-grid {
    display: flex;
    justify-content: space-between;
  }

  .pipeline-node {
    flex: 1;
  }

  .pipeline-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    color: var(--tally-teal);
  }
}

/* --------------------------------------------------------------------------
   9. Topic Matrix Cards (Homepage Horizontal Cards)
   -------------------------------------------------------------------------- */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.topic-card-horizontal {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.topic-card-horizontal:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-visual-frame {
  background: #14212c;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.topic-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 320;
}

.card-content-panel {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tally-teal);
  margin-bottom: 0.4rem;
}

.card-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.card-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.card-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.card-footer-cta {
  margin-top: auto;
}

@media (min-width: 860px) {
  .topic-card-horizontal {
    grid-template-columns: 42% 58%;
  }

  .card-visual-frame {
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }

  .card-content-panel {
    padding: 2.25rem 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   10. Editorial Article Layouts & Technical Typography
   -------------------------------------------------------------------------- */
.article-layout {
  display: flex;
  justify-content: center;
}

.article-body {
  width: 100%;
  max-width: 860px;
}

.article-lead {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-top: 2.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.article-body ul {
  list-style: square;
  padding-left: 1.5rem;
  margin-bottom: 1.65rem;
}

.article-body li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.article-body li strong {
  color: var(--text-main);
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  color: var(--tally-mint);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--border-medium);
}

/* Comparison Panel */
.comparison-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2.5rem 0;
}

.panel-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.comparison-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tally-mint);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-card ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.comparison-card li {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

/* Practical Checklist Block */
.practical-block {
  background: var(--bg-subtle);
  border-left: 4px solid var(--tally-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem;
  margin: 2.5rem 0;
}

.practical-block h3 {
  margin-top: 0;
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.checklist {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tally-teal);
  font-weight: 800;
  font-family: var(--font-mono);
}

/* Two Column Summary (Good for / What to know) */
.two-col-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (min-width: 700px) {
  .two-col-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.summary-box .box-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tally-mint);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-box ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.summary-box li {
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

/* Related Guides Panel */
.related-guides-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 3rem 0;
}

.related-guides-panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.guide-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .guide-links {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-link-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.guide-link-card:hover {
  border-color: var(--tally-teal);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.guide-link-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.guide-link-card strong {
  font-size: 0.95rem;
  color: var(--tally-mint);
}

/* Article CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  margin: 3.5rem 0 1rem;
  text-align: center;
}

.article-cta-box h3 {
  margin-top: 0;
  color: var(--text-main);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.article-cta-box p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* --------------------------------------------------------------------------
   11. Data Tables & Specs
   -------------------------------------------------------------------------- */
.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

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

.specs-table th {
  background-color: var(--bg-elevated);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-medium);
  white-space: nowrap;
}

.specs-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  line-height: 1.5;
}

.specs-table tbody tr:last-child td {
  border-bottom: none;
}

.specs-table tbody tr:hover {
  background-color: rgba(78, 157, 154, 0.06);
}

.specs-table td strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   12. Legal Prose & Compliance Pages
   -------------------------------------------------------------------------- */
.legal-prose h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.legal-prose p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.company-address-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
}

.company-address-card p {
  margin-bottom: 0.4rem !important;
}

.body-link {
  color: var(--tally-mint);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   13. Contact Page & Forms
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info-panel,
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

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

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

.info-group {
  display: flex;
  flex-direction: column;
}

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

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

.info-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.15rem;
}

.info-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tally-mint);
}

.contact-graphic-box {
  background: #14212c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Form Styles */
.form-row-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.required {
  color: var(--tally-red-bright);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--tally-teal);
  box-shadow: 0 0 0 3px rgba(78, 157, 154, 0.2);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--tally-red);
}

.field-error {
  font-size: 0.8rem;
  color: var(--tally-red-bright);
  min-height: 1.2rem;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-feedback.success {
  background: rgba(78, 157, 154, 0.15);
  border: 1px solid var(--tally-teal);
  color: var(--tally-mint);
}

.form-feedback.error {
  background: rgba(201, 92, 92, 0.15);
  border: 1px solid var(--tally-red);
  color: #ff9e9e;
}

/* --------------------------------------------------------------------------
   14. Call To Action Footer Bridge
   -------------------------------------------------------------------------- */
.section-cta {
  background: linear-gradient(180deg, var(--bg-subtle) 0%, #152735 100%);
  border-top: 1px solid var(--border-subtle);
}

.text-light {
  color: #fff !important;
}

.text-light-muted {
  color: var(--text-muted) !important;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   15. Global Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0b1318;
  border-top: 2px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
}

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

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

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

.footer-summary {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 440px;
}

.footer-company-info {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-company-info p {
  margin-bottom: 0.25rem;
}

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

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

.footer-link {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover,
.footer-link.is-active {
  color: var(--tally-mint);
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.footer-link-btn:hover {
  color: var(--tally-mint);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #182631;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

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

.copyright {
  color: var(--text-dim);
}

.disclaimer {
  color: #557283;
}

/* --------------------------------------------------------------------------
   16. Cookie Consent Banner & Modal
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(17, 30, 40, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid var(--tally-teal);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  padding: 1.25rem 0;
}

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

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.cookie-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.cookie-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 780px;
}

.cookie-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  flex-shrink: 0;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 19, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.25rem;
}

.cookie-modal-overlay[hidden] {
  display: none !important;
}

.cookie-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

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

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

.pref-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pref-meta {
  display: flex;
  flex-direction: column;
}

.pref-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.pref-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* Custom Checkbox Pill */
.pref-toggle {
  position: relative;
  flex-shrink: 0;
}

.pref-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-pill {
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.toggle-pill::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--text-dim);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.pref-toggle input[type="checkbox"]:checked + .toggle-pill {
  background-color: var(--tally-teal);
  border-color: var(--tally-teal);
}

.pref-toggle input[type="checkbox"]:checked + .toggle-pill::after {
  transform: translateX(20px);
  background-color: #fff;
}

.toggle-active {
  width: auto;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tally-mint);
  background: rgba(78, 157, 154, 0.15);
  border: 1px solid var(--tally-teal);
  border-radius: var(--radius-sm);
  cursor: default;
}

.toggle-active::after {
  display: none;
}

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