/* ==========================================================================
   VERIDIAN SYSTEMATIC — SOVEREIGN EDITORIAL DESIGN SYSTEM
   Matched strictly to /Users/mac/Desktop/mblc-overhaul (Theme 03: Sovereign Editorial)
   Warm Parchment (#F5F2EB) · Baltic Pine (#112A24) · Brushed Brass (#B08D57)
   Strictly upright typography (Baskerville + Avenir Next + SF Mono), 2px corners,
   full Light / Dark polarity support, zero external dependencies.
   ========================================================================== */

:root {
  --sov-bg: #F5F2EB;
  --sov-surface: #FBF9F4;
  --sov-surface-alt: #EFEAE0;
  --sov-surface-tint: #F7F2E7;

  --sov-primary: #112A24;
  --sov-primary-hover: #1B3E36;
  --sov-primary-ink: #F5F2EB;

  --sov-accent: #B08D57;
  --sov-accent-strong: #8E6E3B;
  --sov-accent-soft: #F3ECDD;
  --sov-accent-ring: rgba(176, 141, 87, 0.24);

  --sov-ink: #1A1C19;
  --sov-muted: #5C5B54;
  --sov-subtle: #7B796F;
  --sov-rule: #DDD6C7;
  --sov-rule-strong: #C9BFA9;

  --sov-safe: #0F6B4E;
  --sov-safe-soft: #E9F5F0;
  --sov-danger: #9F2B2B;
  --sov-danger-soft: #FAEBEB;

  --sov-serif: "Baskerville", "Iowan Old Style", "Charter", "Georgia", serif;
  --sov-sans: "Avenir Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --sov-mono: "SF Mono", "Menlo", "Monaco", ui-monospace, monospace;

  --sov-radius: 2px;
  --sov-max-w: 1240px;
  --sov-gutter: clamp(18px, 3.6vw, 48px);
  --sov-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sov-shadow-sm: 0 4px 16px rgba(17, 42, 36, 0.06);
  --sov-shadow-md: 0 16px 38px rgba(17, 42, 36, 0.12);
}

[data-theme="dark"] {
  --sov-bg: #0D1412;
  --sov-surface: #131D1A;
  --sov-surface-alt: #192622;
  --sov-surface-tint: #1A2420;
  --sov-primary: #EDE5D4;
  --sov-primary-hover: #FFFFFF;
  --sov-primary-ink: #0D1412;
  --sov-accent: #CAA468;
  --sov-accent-strong: #DFBC82;
  --sov-accent-soft: rgba(202, 164, 104, 0.14);
  --sov-ink: #F2EFE8;
  --sov-muted: #A9B2AC;
  --sov-subtle: #828E87;
  --sov-rule: #253631;
  --sov-rule-strong: #374F48;
  --sov-safe: #34D399;
  --sov-safe-soft: rgba(52, 211, 153, 0.12);
  --sov-danger: #F87171;
  --sov-danger-soft: rgba(248, 113, 113, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--sov-bg);
  color: var(--sov-ink);
  font-family: var(--sov-sans);
  font-size: 14.5px;
  line-height: 1.60;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
em, i, cite, var { font-style: normal; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--sov-accent); outline-offset: 2px; }

.sov-container { width: 100%; max-width: var(--sov-max-w); margin-inline: auto; padding-inline: var(--sov-gutter); }

/* 1. UTILITY BAR & MASTHEAD */
.sov-utilbar {
  background: #112A24; color: #F5F2EB; font-family: var(--sov-mono); font-size: 10.5px;
  border-bottom: 1px solid rgba(176, 141, 87, 0.30);
}
[data-theme="dark"] .sov-utilbar { background: #080E0C; color: var(--sov-muted); border-bottom-color: var(--sov-rule); }
.sov-utilbar-inner {
  min-height: 36px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 6px; flex-wrap: wrap;
}
.sov-util-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; letter-spacing: 0.05em; }
.sov-live-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #D7C298; }
.sov-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; display: inline-block; }
.sov-clocks { display: inline-flex; gap: 12px; font-variant-numeric: tabular-nums; opacity: 0.90; }
.sov-util-controls { display: flex; align-items: center; gap: 8px; }
.sov-util-btn {
  background: rgba(255, 255, 255, 0.10); color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--sov-radius);
  padding: 3px 9px; font-family: var(--sov-mono); font-size: 10px; font-weight: 600;
  white-space: nowrap; transition: background 180ms, border-color 180ms;
}
.sov-util-btn:hover { background: rgba(255, 255, 255, 0.18); border-color: var(--sov-accent); }

.sov-masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sov-surface) 96%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--sov-rule);
}
.sov-masthead-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sov-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sov-crest {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--sov-primary);
  display: grid; place-items: center; font-family: var(--sov-serif); font-size: 16px; font-weight: 700;
  color: var(--sov-primary); position: relative; flex-shrink: 0;
}
.sov-crest::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--sov-accent); border-radius: 50%; }
.sov-brand-title { font-family: var(--sov-serif); font-size: 17px; font-weight: 700; letter-spacing: 0.08em; color: var(--sov-primary); line-height: 1.1; white-space: nowrap; }
.sov-brand-sub { font-family: var(--sov-mono); font-size: 9px; color: var(--sov-accent-strong); letter-spacing: 0.08em; display: block; margin-top: 2px; white-space: nowrap; text-transform: uppercase; }

.sov-nav { display: flex; align-items: center; gap: 24px; }
.sov-nav a {
  font-size: 13px; font-weight: 500; color: var(--sov-muted); padding-block: 6px;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color 180ms, border-color 180ms;
}
.sov-nav a:hover { color: var(--sov-primary); }
.sov-nav a.is-active { color: var(--sov-primary); font-weight: 700; border-bottom-color: var(--sov-accent); }

.sov-head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Buttons */
.sov-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--sov-radius); font-family: var(--sov-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; transition: all 180ms var(--sov-ease);
}
.sov-btn-primary { background: var(--sov-primary); color: var(--sov-primary-ink); border: 1px solid var(--sov-primary); }
.sov-btn-primary:hover { background: var(--sov-primary-hover); transform: translateY(-1px); }
.sov-btn-outline { background: transparent; color: var(--sov-primary); border: 1px solid var(--sov-rule-strong); }
.sov-btn-outline:hover { border-color: var(--sov-accent); background: var(--sov-accent-soft); }
.sov-btn-brass { background: var(--sov-accent); color: #112A24; border: 1px solid var(--sov-accent); }
.sov-btn-brass:hover { filter: brightness(1.06); transform: translateY(-1px); }
.sov-btn-sm { padding: 7px 12px; font-size: 10px; }

/* 1B. LUMINOUS ZERO-CUSTODY GUARANTEE BANNER (GLOWING SOVEREIGN SEAL) */
.sov-custody-glow {
  position: relative;
  background: linear-gradient(90deg, #0D241E 0%, #112A24 48%, #16362E 100%);
  color: #F5F2EB;
  border-top: 1px solid rgba(176, 141, 87, 0.55);
  border-bottom: 1.5px solid #B08D57;
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.22), 0 4px 20px rgba(176, 141, 87, 0.26), inset 0 0 18px rgba(52, 211, 153, 0.10);
  padding-block: 11px;
  z-index: 40;
}
[data-theme="dark"] .sov-custody-glow {
  background: linear-gradient(90deg, #0A1D18 0%, #123028 50%, #0C221C 100%);
  box-shadow: 0 0 34px rgba(52, 211, 153, 0.30), 0 0 18px rgba(202, 164, 104, 0.28), inset 0 0 20px rgba(52, 211, 153, 0.14);
}
.sov-custody-glow-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.sov-glow-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 2px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.72);
  color: #A7F3D0;
  font-family: var(--sov-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.48);
  white-space: nowrap;
}
.sov-glow-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #34D399;
  box-shadow: 0 0 10px #34D399, 0 0 18px #34D399;
  animation: sovPulse 2.2s ease-in-out infinite;
}
@keyframes sovPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #34D399, 0 0 16px rgba(52, 211, 153, 0.75); }
  50% { opacity: 0.74; transform: scale(1.18); box-shadow: 0 0 14px #34D399, 0 0 26px rgba(52, 211, 153, 0.95); }
}
.sov-custody-copy {
  font-size: 12.6px; line-height: 1.42; color: #F5F2EB; flex: 1; min-width: 260px;
}
.sov-custody-copy strong { color: #E5D3B3; }
.sov-custody-copy .glow-em { color: #A7F3D0; font-weight: 700; text-shadow: 0 0 12px rgba(52, 211, 153, 0.45); }

/* 2. EDITORIAL SECTIONS & TYPOGRAPHY */
.sov-section { padding-block: clamp(42px, 5vw, 66px); border-bottom: 1px solid var(--sov-rule); }
.sov-section-alt { background: var(--sov-surface); }
.sov-kicker {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--sov-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sov-accent-strong); margin-bottom: 12px;
}
.sov-kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--sov-accent); display: inline-block; }
.sov-h1 {
  font-family: var(--sov-serif); font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08;
  font-weight: 400; color: var(--sov-primary); letter-spacing: -0.01em; margin: 0;
}
.sov-h1 .sov-accent { font-weight: 700; color: var(--sov-accent-strong); }
.sov-h2 {
  font-family: var(--sov-serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.15;
  font-weight: 400; color: var(--sov-primary); margin: 0 0 10px 0;
}
.sov-lead { font-size: 15px; color: var(--sov-muted); line-height: 1.62; margin: 0; }

/* 3. HERO, DUAL DOORWAYS & CARDS */
.sov-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.72fr);
  gap: clamp(20px, 3.6vw, 44px); align-items: end;
  padding-bottom: 26px; border-bottom: 1px solid var(--sov-rule); margin-bottom: 26px;
}
.sov-hero-note { border-inline-start: 2px solid var(--sov-accent); padding-inline-start: 20px; }

.sov-doorways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sov-door {
  background: var(--sov-surface); border: 1px solid var(--sov-rule); border-radius: var(--sov-radius);
  padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; transition: transform 280ms var(--sov-ease), box-shadow 280ms var(--sov-ease), border-color 280ms;
}
.sov-door:hover { transform: translateY(-3px); border-color: var(--sov-accent); box-shadow: var(--sov-shadow-md); }
.sov-door.is-featured {
  background: #112A24; color: #F5F2EB; border-color: #112A24; box-shadow: var(--sov-shadow-md);
}
[data-theme="dark"] .sov-door.is-featured { background: #172A24; color: #F2EFE8; border-color: var(--sov-accent); }
.sov-door-num {
  position: absolute; inset-inline-end: 22px; top: 18px; font-family: var(--sov-serif);
  font-size: 28px; color: color-mix(in srgb, var(--sov-accent) 50%, transparent); line-height: 1;
}
.sov-door-tag { font-family: var(--sov-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--sov-accent); text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.sov-door h2 { font-family: var(--sov-serif); font-size: 24px; font-weight: 400; line-height: 1.2; margin: 0 0 10px; padding-inline-end: 28px; }
.sov-door p { font-size: 13.5px; line-height: 1.60; opacity: 0.88; margin: 0; }
.sov-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.sov-pill {
  font-family: var(--sov-mono); font-size: 10px; padding: 4px 10px; border-radius: var(--sov-radius);
  border: 1px solid color-mix(in srgb, var(--sov-accent) 48%, transparent);
  background: var(--sov-accent-soft); color: var(--sov-primary); font-weight: 700;
}
.sov-door.is-featured .sov-pill { background: rgba(245, 242, 235, 0.08); color: #F5F2EB; border-color: rgba(176, 141, 87, 0.45); }
.sov-door-cta {
  display: flex; align-items: center; justify-content: space-between; padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--sov-accent) 36%, transparent);
  font-family: var(--sov-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

.sov-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sov-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sov-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.sov-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }

.sov-card {
  background: var(--sov-surface); border: 1px solid var(--sov-rule); border-radius: var(--sov-radius);
  padding: 22px 24px; transition: border-color 180ms;
}
.sov-card.top-pine { border-top: 2.5px solid var(--sov-primary); }
.sov-card.top-brass { border-top: 2.5px solid var(--sov-accent); }
.sov-card.top-safe { border-top: 2.5px solid var(--sov-safe); }
.sov-card.top-danger { border-top: 2.5px solid var(--sov-danger); }
.sov-card.is-pine { background: #112A24; color: #F5F2EB; border-color: #112A24; }
.sov-card.is-pine .sov-muted-txt { color: #C9BFA9; }

.sov-tag {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--sov-mono);
  font-size: 9.8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--sov-radius);
}
.tag-safe { background: var(--sov-safe-soft); color: var(--sov-safe); border: 1px solid color-mix(in srgb, var(--sov-safe) 35%, transparent); }
.tag-brass { background: var(--sov-accent-soft); color: var(--sov-accent-strong); border: 1px solid color-mix(in srgb, var(--sov-accent) 45%, transparent); }
.tag-danger { background: var(--sov-danger-soft); color: var(--sov-danger); border: 1px solid color-mix(in srgb, var(--sov-danger) 40%, transparent); }
.tag-pine { background: var(--sov-surface-alt); color: var(--sov-primary); border: 1px solid var(--sov-rule-strong); }

.sov-kpi-val { font-family: var(--sov-mono); font-size: 23px; font-weight: 700; color: var(--sov-primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sov-kpi-lbl { font-family: var(--sov-mono); font-size: 9.8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sov-muted); margin-top: 5px; }
.sov-kpi-sub { font-size: 12px; color: var(--sov-accent-strong); font-weight: 600; margin-top: 4px; }

/* Interactive Controls & Range Sliders */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  border-radius: 1px; background: var(--sov-rule-strong); outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sov-primary); border: 2.5px solid var(--sov-accent); cursor: pointer;
}

.sov-chip-group { display: flex; flex-wrap: wrap; gap: 7px; }
.sov-chip {
  padding: 7px 12px; font-family: var(--sov-mono); font-size: 10.5px; font-weight: 700;
  border: 1px solid var(--sov-rule-strong); background: var(--sov-surface); color: var(--sov-muted);
  border-radius: var(--sov-radius); transition: all 160ms;
}
.sov-chip:hover { border-color: var(--sov-accent); color: var(--sov-primary); }
.sov-chip.is-active { background: var(--sov-primary); color: var(--sov-primary-ink); border-color: var(--sov-primary); }
.sov-chip.is-danger { background: var(--sov-danger); color: #FFFFFF; border-color: var(--sov-danger); }

/* Tables */
.sov-table { width: 100%; border-collapse: collapse; font-size: 12.8px; border: 1px solid var(--sov-rule); }
.sov-table th {
  text-align: left; font-family: var(--sov-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 11px;
  background: #112A24; color: #F5F2EB;
}
[data-theme="dark"] .sov-table th { background: #192622; color: #EDE5D4; }
.sov-table th.num, .sov-table td.num { text-align: right; font-family: var(--sov-mono); font-variant-numeric: tabular-nums; font-size: 12px; }
.sov-table td { padding: 10px 11px; border-bottom: 1px solid var(--sov-rule); background: var(--sov-surface); color: var(--sov-ink); }
.sov-table tr:nth-child(even) td { background: var(--sov-bg); }
.sov-table tr.hl td { background: var(--sov-accent-soft) !important; font-weight: 700; border-top: 1.5px solid var(--sov-accent); border-bottom: 1.5px solid var(--sov-accent); }

/* Modal Overlay */
.sov-modal-backdrop {
  position: fixed; inset: 0; z-index: 999; background: rgba(10, 22, 19, 0.78);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.sov-modal-backdrop.hidden { display: none; }
.sov-modal-card {
  background: var(--sov-surface); border: 1px solid var(--sov-accent); border-top: 4px solid var(--sov-primary);
  border-radius: var(--sov-radius); max-width: 600px; width: 100%; padding: 28px 30px; box-shadow: 0 28px 64px rgba(10, 22, 19, 0.36);
}

/* Interactive Component Extensions (Light & Dark Polarity Safe) */
.sov-stat-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--sov-rule); border-top: 2px solid var(--sov-primary);
  background: var(--sov-surface); border-radius: var(--sov-radius); overflow: hidden;
}
.sov-stat-cell { padding: 18px 20px; border-right: 1px solid var(--sov-rule); }
.sov-stat-cell:last-child { border-right: none; }

.sov-rail-card {
  background: var(--sov-surface); border: 1px solid var(--sov-rule); border-radius: var(--sov-radius);
  padding: 16px 18px; text-align: left; width: 100%; display: block;
  transition: border-color 180ms, background 180ms, transform 180ms;
}
.sov-rail-card:hover { border-color: var(--sov-accent); }
.sov-rail-card.is-selected {
  background: var(--sov-accent-soft); border-color: var(--sov-primary);
  box-shadow: inset 3px 0 0 var(--sov-primary);
}

.sov-strat-card {
  background: var(--sov-surface); border: 1px solid var(--sov-rule); border-radius: var(--sov-radius);
  padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 180ms, box-shadow 180ms; position: relative;
}
.sov-strat-card.is-selected {
  border-color: var(--sov-primary); box-shadow: inset 3px 0 0 var(--sov-primary), var(--sov-shadow-sm);
}
.sov-strat-card.is-dimmed { opacity: 0.62; }

.sov-lockup-card {
  background: var(--sov-surface); border: 1px solid var(--sov-rule); border-top: 3px solid var(--sov-accent);
  border-radius: var(--sov-radius); padding: 22px 24px; display: flex; flex-direction: column;
  justify-content: space-between; text-align: left; width: 100%;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.sov-lockup-card:hover { border-color: var(--sov-primary); transform: translateY(-2px); }
.sov-lockup-card.is-selected {
  background: #112A24; color: #F5F2EB; border-color: #112A24; border-top-color: var(--sov-accent);
  box-shadow: var(--sov-shadow-md);
}
[data-theme="dark"] .sov-lockup-card.is-selected { background: #182C26; border-color: var(--sov-accent); }
.sov-lockup-card.is-selected .sov-muted-copy { color: #D8D2C5; }
.sov-lockup-card.is-selected .sov-rule-box { border-color: rgba(176, 141, 87, 0.35); background: rgba(245, 242, 235, 0.06); }

.sov-muted-copy { color: var(--sov-muted); }
.sov-rule-box {
  background: var(--sov-bg); border: 1px solid var(--sov-rule); border-radius: var(--sov-radius);
  padding: 12px 14px;
}
.sov-alert {
  padding: 13px 16px; border-radius: var(--sov-radius); font-size: 13px; line-height: 1.55;
  border: 1px solid var(--sov-rule); border-left-width: 3px;
}
.sov-alert-safe { background: var(--sov-safe-soft); border-color: color-mix(in srgb, var(--sov-safe) 35%, transparent); border-left-color: var(--sov-safe); color: var(--sov-ink); }
.sov-alert-brass { background: var(--sov-accent-soft); border-color: color-mix(in srgb, var(--sov-accent) 45%, transparent); border-left-color: var(--sov-accent); color: var(--sov-ink); }
.sov-alert-danger { background: var(--sov-danger-soft); border-color: color-mix(in srgb, var(--sov-danger) 40%, transparent); border-left-color: var(--sov-danger); color: var(--sov-ink); }

.sov-meter-track { width: 100%; height: 10px; background: var(--sov-surface-alt); border: 1px solid var(--sov-rule); border-radius: 1px; overflow: hidden; display: flex; }
.sov-meter-seg { height: 100%; transition: width 220ms var(--sov-ease); }

.sov-svg-panel {
  background: var(--sov-surface); border: 1px solid var(--sov-rule); border-radius: var(--sov-radius);
  padding: 16px 18px;
}
.sov-input, .sov-select {
  width: 100%; padding: 10px 12px; background: var(--sov-bg); color: var(--sov-ink);
  border: 1px solid var(--sov-rule-strong); border-radius: var(--sov-radius); font-size: 13.5px;
}
.sov-input:focus, .sov-select:focus { outline: none; border-color: var(--sov-accent); }

.sov-check-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--sov-rule); border-radius: var(--sov-radius); background: var(--sov-surface);
  cursor: pointer; font-size: 13px; transition: border-color 160ms;
}
.sov-check-item:hover { border-color: var(--sov-accent); }
.sov-check-item input[type="checkbox"] { accent-color: var(--sov-primary); width: 15px; height: 15px; margin-top: 2px; flex-shrink: 0; }

/* Footer */
.sov-footer { background: #112A24; color: #F5F2EB; padding-block: 34px 28px; font-size: 12.5px; }
[data-theme="dark"] .sov-footer { background: #080E0C; border-top: 1px solid var(--sov-rule); }
.sov-foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid rgba(176, 141, 87, 0.28); margin-bottom: 16px; }
.sov-foot-disc { font-size: 11px; color: #C9BFA9; line-height: 1.55; }

@media (max-width: 1024px) {
  .sov-hero-grid, .sov-doorways, .sov-grid-2 { grid-template-columns: 1fr; }
  .sov-grid-5, .sov-grid-4, .sov-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .sov-stat-cell { border-bottom: 1px solid var(--sov-rule); }
  .sov-grid-3 { grid-template-columns: 1fr; }
  .sov-nav { gap: 12px; }
}
@media (max-width: 640px) {
  .sov-grid-5, .sov-grid-4, .sov-stat-strip { grid-template-columns: 1fr; }
  .sov-nav { display: none; }
}
