/* ============================================================
   DataDam — design tokens
   Mirrors the live app's Material 3 dark theme (brand seed #198754,
   generated with material-color-utilities) so the public site and
   the product look like one thing. Dark is the only theme here —
   the app defaults to dark too.
   ============================================================ */
:root{
  color-scheme: dark;

  --surface: #0f1511;
  --surface-low: #0a0f0c;
  --surface-container: #1c211d;
  --surface-high: #262b27;
  --surface-highest: #313631;

  --outline: #8a938b;
  --outline-variant: #414942;
  --border: color-mix(in srgb, var(--outline-variant) 65%, transparent);
  --border-strong: color-mix(in srgb, var(--outline-variant) 100%, transparent);

  --text: #dfe4dd;
  --text-bright: #f3f8f1;
  --text-muted: #c0c9c0;
  --text-faint: #8a938b;

  --primary: #93d5aa;
  --on-primary: #00391f;
  --primary-container: #0a5131;
  --on-primary-container: #aef2c5;

  --warning: #f8bd26;
  --error: #ffb4ab;
  --success: #71dc92;
  --info: #95ccff;

  /* Per-module accent — identical hex values to the app's --dd-module-* tokens */
  --mod-core: #93d5aa;
  --mod-brewing: #b1c5ff;
  --mod-vaultguard: #ffb693;
  --mod-herdguard: #93d96d;
  --mod-coldchain: #5dd5fc;
  --mod-siteguard: #bec2ff;
  --mod-fleet: #ffaced;
  --mod-gamefarm: #e3c28c;
  --mod-hive: #f5bf48;
  --mod-citrus: #c3e88d;
  --mod-logbook: #d0bcff;

  --accent: var(--primary);

  --radius-card: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --wrap: 1200px;

  --font-display: "Roboto Flex", "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", "Google Sans Code", ui-monospace, Consolas, monospace;

  --shadow-1: 0 1px 2px rgba(0,0,0,.45), 0 1px 3px 1px rgba(0,0,0,.28);
  --shadow-2: 0 2px 6px 2px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.45);
  --shadow-3: 0 4px 14px 2px rgba(0,0,0,.32), 0 1px 3px rgba(0,0,0,.5);
}

/* Per-module accent — set on a module page's <body data-module="..."> */
[data-module="core"]{ --accent: var(--mod-core); }
[data-module="brewing"]{ --accent: var(--mod-brewing); }
[data-module="vaultguard"]{ --accent: var(--mod-vaultguard); }
[data-module="herdguard"]{ --accent: var(--mod-herdguard); }
[data-module="coldchain"]{ --accent: var(--mod-coldchain); }
[data-module="siteguard"]{ --accent: var(--mod-siteguard); }
[data-module="fleet"]{ --accent: var(--mod-fleet); }
[data-module="gamefarm"]{ --accent: var(--mod-gamefarm); }
[data-module="hive"]{ --accent: var(--mod-hive); }
[data-module="citrus"]{ --accent: var(--mod-citrus); }
[data-module="logbook"]{ --accent: var(--mod-logbook); }

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--text-bright);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3{ font-size: 1.2rem; }
h4{ font-size: 1.02rem; margin-bottom: 0.4em; }
p{ margin: 0 0 1em; color: var(--text-muted); }

a{ color: inherit; }

.skip-link{
  position:absolute; left:-999px; top:0;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus{ left: 12px; top: 12px; }

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

:focus-visible{ outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   Header
   ============================================================ */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand{ display:flex; align-items:center; gap: 12px; text-decoration:none; }
.brand-mark{ height: 30px; width:auto; display:block; }
.brand-emblem{ height: 36px; width:auto; display:block; border-radius: 8px; }
.brand-name{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name .brand-module{ font-family: var(--font-display); font-weight:600; font-size: 1.06rem; color: var(--text-bright); }
.brand-category{
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-faint);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px;
}
.brand-fallback{ font-family: var(--font-display); font-weight:700; font-size:1.15rem; color: var(--text-bright); }

.main-nav{ display:flex; align-items:center; gap: 22px; }
.main-nav a{
  text-decoration:none; color: var(--text-muted); font-size: 0.94rem;
  font-weight:500; letter-spacing: 0.01em;
}
.main-nav a:hover{ color: var(--text-bright); }
.nav-cta{
  background: var(--primary); color: var(--on-primary) !important;
  padding: 9px 18px; border-radius: var(--radius-pill); font-weight:600;
  display:inline-flex; align-items:center; gap:6px;
}
.nav-cta:hover{ background: color-mix(in srgb, var(--primary) 88%, white); }
.nav-cta-tag{
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--on-primary) 18%, transparent); color: var(--on-primary);
  padding: 2px 7px; border-radius: 999px; text-transform: uppercase;
}

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 38px; height: 34px; background:none; border:none; cursor:pointer;
}
.nav-toggle span{ display:block; height:2px; width:100%; background: var(--text); border-radius: 2px; }

@media (max-width: 920px){
  .nav-toggle{ display:flex; }
  .main-nav{
    position: absolute; top: 100%; left:0; right:0;
    flex-direction: column; align-items: stretch; gap:0;
    background: var(--surface-container);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open{ max-height: 560px; overflow-y:auto; }
  .main-nav a{ padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-cta{ margin: 14px 24px; justify-content:center; }
}

/* Nav dropdown (Modules) */
.nav-dropdown{ position: relative; }
.nav-dropdown-toggle{
  font-family: var(--font-body); background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.94rem; font-weight: 500; padding: 0;
  display:flex; align-items:center; gap: 5px;
}
.nav-dropdown-toggle::after{
  content:""; width:6px; height:6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.nav-dropdown-toggle:hover{ color: var(--text-bright); }
.nav-dropdown-menu{
  position:absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--surface-high); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 10px; min-width: 240px; display:grid; grid-template-columns: 1fr; gap: 2px;
  box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-dropdown-menu--wide{ grid-template-columns: 1fr 1fr; min-width: 440px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu{
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a{
  margin-left: 0 !important; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.9rem; white-space: nowrap; color: var(--text-muted);
  display:flex; align-items:center; gap:8px;
}
.nav-dropdown-menu a:hover{ background: var(--surface-highest); color: var(--text-bright); }
.nav-dot{ width:7px; height:7px; border-radius:50%; background: var(--dot, var(--primary)); flex-shrink:0; }

@media (max-width: 920px){
  .nav-dropdown-toggle{
    width: 100%; padding: 14px 24px; border-top: 1px solid var(--border);
    color: var(--text-muted); justify-content: space-between;
  }
  .nav-dropdown-toggle::after{ margin-right: 4px; }
  .nav-dropdown-menu{
    position: static; transform: none !important; opacity: 1; visibility: visible;
    box-shadow: none; border: none; border-radius: 0; background: var(--surface-low);
    padding: 0; min-width: 0; grid-template-columns: 1fr;
  }
  .nav-dropdown-menu a{ padding: 12px 24px 12px 36px; border-radius: 0; }
}

/* ============================================================
   Type helpers
   ============================================================ */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px; font-weight: 500;
}
.h-light{ color: var(--text-bright); }
.h-small{ font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.section-lead{ max-width: 60ch; font-size: 1.08rem; color: var(--text-muted); }

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.98rem; padding: 13px 24px; border-radius: var(--radius-pill);
  text-decoration: none; border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-primary{ background: var(--primary); color: var(--on-primary); }
.btn-primary:hover{ background: color-mix(in srgb, var(--primary) 88%, white); }
.btn-ghost{ border-color: var(--outline); color: var(--text-bright); }
.btn-ghost:hover{ background: var(--surface-high); border-color: var(--text-muted); }
.btn-ghost-light{ border-color: color-mix(in srgb, var(--text) 35%, transparent); color: var(--text-bright); }
.btn-ghost-light:hover{ background: var(--surface-high); }
.btn-sm{ padding: 8px 16px; font-size: 0.88rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero{ padding: 64px 0 40px; }
.hero-inner{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:center; }
.hero-inner.single{ grid-template-columns: 1fr; max-width: 74ch; }
.hero-lead{ font-size: 1.1rem; max-width: 50ch; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 8px; align-items:center; }
.hero-note{ margin-top: 14px; font-size: 0.86rem; color: var(--text-faint); }

/* Decorative live-readout mockup (not a screenshot) */
.readout-panel{
  width: 100%; max-width: 420px; margin-left:auto; background: var(--surface-container); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px;
  box-shadow: var(--shadow-3);
}
.readout-panel-header{
  display:flex; align-items:center; gap:8px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--text-faint);
}
.readout-dot{ width:8px; height:8px; border-radius:50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
.readout-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.readout{ display:flex; flex-direction:column; gap:4px; }
.readout-label{ font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.readout-value{ font-family: var(--font-mono); font-size: 1.5rem; font-weight:500; color: var(--text-bright); }
.readout-value small{ font-size: 0.85rem; font-weight:400; color: var(--text-muted); margin-left:2px; }
.readout-value.online{ color: var(--success); }
.readout-panel-footer{ margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); }

/* Module crest hero (module pages) */
.hero-crest{ display:flex; justify-content:center; }
.crest-frame{
  width: 100%; max-width: 300px; aspect-ratio: 1; background: var(--surface-container);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 32px; display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-3);
}
.crest-frame img{ width: 100%; height:auto; display:block; }
.crest-glyph{ width: 54%; height:54%; color: var(--accent); }
.crest-glyph svg{ width:100%; height:100%; }

@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; }
  .readout-panel, .hero-crest{ order:-1; margin: 0 auto; }
  .crest-frame{ max-width: 220px; }
}

/* ============================================================
   Sections
   ============================================================ */
.section{ padding: 84px 0; }
.section-dark{ background: var(--surface-low); }
.section-panel{ background: var(--surface-container); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-quiet{ background: var(--surface-low); padding: 64px 0; }
.section-contact{ background: var(--surface-container); }
.section h2{ max-width: 24ch; }

/* ============================================================
   Cards (module grid on the homepage)
   ============================================================ */
.card-grid{ margin-top: 44px; display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card{
  background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--radius-card);
  border-top: 3px solid var(--card-accent, var(--outline-variant));
  padding: 28px 24px; display:flex; flex-direction:column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover{ box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-icon{ color: var(--card-accent, var(--primary)); width: 38px; height:38px; margin-bottom: 16px; }
.card-icon svg{ width:100%; height:100%; }
.card-icon img{ width:100%; height:100%; object-fit: contain; }
.card-status{
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 10px;
}
.card h3{ margin-bottom: 8px; font-size: 1.1rem; }
.card p{ font-size: 0.94rem; }
.card ul{
  margin: 12px 0 0; padding: 0; list-style: none;
  font-size: 0.88rem; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 14px;
  display:flex; flex-direction:column; gap: 9px;
}
.card ul li{ padding-left: 16px; position:relative; }
.card ul li::before{ content:""; position:absolute; left:0; top: 8px; width:6px; height:6px; background: var(--card-accent, var(--primary)); border-radius:1px; }
.card-link{
  display:inline-flex; align-items:center; gap: 6px; margin-top: 16px;
  color: var(--card-accent, var(--primary)); text-decoration:none; font-size: 0.9rem; font-weight: 600;
}
.card-link:hover{ text-decoration: underline; }

@media (max-width: 1080px){ .card-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .card-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   Custom-build banner
   ============================================================ */
.custom-banner{
  margin-top: 40px; background: var(--surface-container); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card); padding: 36px 32px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 24px;
}
.custom-banner-copy{ max-width: 56ch; }
.custom-banner h3{ margin-bottom: 6px; }
.custom-banner p{ margin:0; font-size: 0.98rem; }

/* ============================================================
   Dam diagram (signature element)
   ============================================================ */
.dam-diagram{ margin: 48px 0 8px; color: var(--text-muted); }
.dam-svg{ width:100%; height:auto; display:block; }
.dam-wall{ fill: var(--surface-high); stroke: var(--outline-variant); stroke-width: 1.5; }
.dam-gate{ fill: var(--primary); opacity: 0.9; }
.dam-gate-slot{ stroke: var(--surface-low); stroke-width: 2; }
.dam-reservoir{ fill: var(--primary); opacity: 0.4; }
.dam-label{ font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; fill: var(--text-faint); }
.dam-label-small{ font-size: 11px; }
.flow-line{ fill:none; stroke: var(--outline); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 8; animation: flow 3.2s linear infinite; }
.flow-line-2{ animation-duration: 2.6s; }
@keyframes flow{ to{ stroke-dashoffset: -56; } }
@media (prefers-reduced-motion: reduce){ .flow-line{ animation: none; } }

.process-steps{
  margin-top: 56px; display:grid; grid-template-columns: repeat(4,1fr); gap: 28px;
  border-top: 1px solid var(--border); padding-top: 36px;
}
.process-num{ display:block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary); margin-bottom: 10px; }
.process-step h4{ color: var(--text-bright); }
.process-step p{ color: var(--text-muted); font-size: 0.94rem; margin:0; }

@media (max-width: 860px){ .process-steps{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .process-steps{ grid-template-columns: 1fr; } }

/* ============================================================
   Platform section
   ============================================================ */
.platform-inner{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items:center; }
.feature-list{ list-style:none; padding:0; margin: 20px 0 0; display:flex; flex-direction:column; gap:12px; }
.feature-list li{ padding-left: 22px; position:relative; color: var(--text-muted); }
.feature-list li::before{ content:""; position:absolute; left:0; top:9px; width:9px; height:2px; background: var(--primary); }
@media (max-width: 900px){ .platform-inner{ grid-template-columns: 1fr; } }

/* ============================================================
   Reliability
   ============================================================ */
.ownership-grid{ margin-top: 36px; display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ownership-item{ border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; background: var(--surface-container); }
.ownership-item h4{ color: var(--text-bright); font-size: 0.98rem; }
.ownership-item p{ font-size: 0.9rem; margin:0; }
@media (max-width: 860px){ .ownership-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   Expanding / chip list
   ============================================================ */
.chip-list{ list-style:none; margin: 28px 0 0; padding:0; display:flex; flex-wrap:wrap; gap: 10px; }
.chip-list li{
  font-family: var(--font-mono); font-size: 0.85rem;
  background: var(--surface-container); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px; color: var(--text-muted);
}

/* ============================================================
   Module pages — hero, feature grid
   ============================================================ */
.module-hero{ padding: 56px 0 8px; }
.module-hero .eyebrow{ margin-bottom: 14px; }
.module-hero .hero-lead{ max-width: 58ch; }
.module-crumb-wrap{ padding-top: 28px; }
.module-crumb{ display:inline-flex; align-items:center; gap: 8px; text-decoration:none; color: var(--text-faint); font-size: 0.85rem; margin-bottom: 22px; }
.module-crumb:hover{ color: var(--text-muted); }

.feature-grid{ margin-top: 36px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card{
  background: var(--surface-container); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px 24px; border-top: 3px solid var(--feature-accent, var(--accent));
}
.feature-card h3{ font-size: 1.04rem; color: var(--text-bright); margin-bottom: 8px; }
.feature-card p{ font-size: 0.92rem; margin:0; }
.feature-card.feature-roadmap{ background: transparent; border-style: dashed; border-top-style: dashed; }
.feature-card.feature-roadmap h3{ color: var(--text-muted); }
.feature-tag{
  display:inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; padding: 3px 10px;
  margin-bottom: 10px;
}

@media (max-width: 1100px){ .feature-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px){ .feature-grid{ grid-template-columns: 1fr; } }

/* Status pill shown in a module hero (e.g. "Pilot access", "Live") */
.status-pill{
  display:inline-flex; align-items:center; gap:7px; font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface-high); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.status-pill::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--accent); }

/* ============================================================
   Contact
   ============================================================ */
.section-contact{ text-align:left; }
.contact-inner{ max-width: 640px; }
.contact-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 24px; }

/* ============================================================
   Platform-access band (app.datadam.co.za CTA)
   ============================================================ */
.access-band{
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface-container)), var(--surface-container));
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 36px 32px; margin-top: 40px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 24px;
}
.access-band-copy{ max-width: 56ch; }
.access-band h3{ margin-bottom: 6px; }
.access-band p{ margin:0; font-size: 0.98rem; }
.access-band-actions{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.access-band-note{ font-size: 0.8rem; color: var(--text-faint); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{ background: var(--surface-low); color: var(--text-muted); padding: 48px 0 28px; border-top: 1px solid var(--border); }
.footer-inner{
  display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px;
  border-bottom: 1px solid var(--border); padding-bottom: 32px;
}
.footer-brand .brand-mark-footer{ height: 34px; margin-bottom: 12px; display:block; }
.footer-logo-plate{ display:inline-flex; align-items:center; background: var(--surface-container); border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 12px; border: 1px solid var(--border); }
.footer-brand .brand-fallback{ color: var(--text-bright); }
.footer-brand p{ font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); margin:0; }
.footer-nav{ display:flex; flex-direction:column; gap:10px; }
.footer-nav a{ text-decoration:none; color: var(--text-muted); font-size:0.94rem; }
.footer-nav a:hover{ color: var(--text-bright); }
.footer-contact{ display:flex; flex-direction:column; gap:10px; font-size:0.94rem; }
.footer-contact a{ text-decoration:none; color: var(--text-muted); }
.footer-contact a:hover{ color: var(--text-bright); }
.footer-contact span{ color: var(--text-faint); font-family: var(--font-mono); font-size:0.78rem; margin-top: 6px; }

/* Module-page footer: quiet "Powered by DataDam" strip instead of full brand block */
.site-footer.footer-quiet{ padding: 28px 0; }
.footer-powered-inner{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 16px;
}
.footer-powered{ display:flex; align-items:center; gap: 10px; text-decoration:none; }
.footer-powered .footer-logo-plate{ margin-bottom:0; padding: 6px 10px; }
.footer-powered .brand-mark-footer{ height: 20px; margin-bottom:0; }
.footer-powered span{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.footer-powered:hover span{ color: var(--text-bright); }
.footer-powered-contact{ display:flex; gap: 18px; flex-wrap:wrap; font-size: 0.88rem; }
.footer-powered-contact a{ text-decoration:none; color: var(--text-muted); }
.footer-powered-contact a:hover{ color: var(--text-bright); }

@media (max-width: 700px){ .footer-inner{ grid-template-columns: 1fr; } }
