/* Echelon — component layer on top of Tailwind utilities. */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --vault: #0A0B0D;           --vault-rgb: 10 11 13;
  --obsidian: #14161A;        --obsidian-rgb: 20 22 26;
  --gunmetal: #1B1E24;        --gunmetal-rgb: 27 30 36;
  --hairline: #262B33;        --hairline-rgb: 38 43 51;
  --ivory: #E9E5DB;           --ivory-rgb: 233 229 219;
  --slate: #99A0AB;           --slate-rgb: 153 160 171;
  --dim: #6E7581;             --dim-rgb: 110 117 129;
  --champagne: #C9A45C;       --champagne-rgb: 201 164 92;
  --champagne-hi: #DDBC77;    --champagne-hi-rgb: 221 188 119;
  --verified: #4DA97D;        --verified-rgb: 77 169 125;
  --cognac: #C98F45;          --cognac-rgb: 201 143 69;
  --signal: #C05A44;          --signal-rgb: 192 90 68;
  --action: #2E6FD9;          --action-rgb: 46 111 217;
  --action-hi: #2159BC;       --action-hi-rgb: 33 89 188;
}

/* Light workspace theme — the app portals. Familiar to Central/Super Dispatch
   users: light-gray workspace, white cards, navy rail, blue actions; Echelon's
   champagne gold carries tier and verification identity. */
body.app-light {
  --vault: #F2F4F7;           --vault-rgb: 242 244 247;
  --obsidian: #FFFFFF;        --obsidian-rgb: 255 255 255;
  --gunmetal: #EEF1F4;        --gunmetal-rgb: 238 241 244;
  --hairline: #DFE3E9;        --hairline-rgb: 223 227 233;
  --ivory: #1E2733;           --ivory-rgb: 30 39 51;
  --slate: #5C6875;           --slate-rgb: 92 104 117;
  --dim: #8A94A0;             --dim-rgb: 138 148 160;
  --champagne: #A8823C;       --champagne-rgb: 168 130 60;
  --champagne-hi: #8C6B2F;    --champagne-hi-rgb: 140 107 47;
  --verified: #248A57;        --verified-rgb: 36 138 87;
  --cognac: #B26F1B;          --cognac-rgb: 178 111 27;
  --signal: #C94F3D;          --signal-rgb: 201 79 61;
  --action: #2563D9;          --action-rgb: 37 99 217;
  --action-hi: #1D50B4;       --action-hi-rgb: 29 80 180;
}

html { background: var(--vault); }
body { font-family: 'Archivo', system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
::selection { background: rgba(201, 164, 92, 0.28); }

/* ---------- Type roles ---------- */
.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-stretch: 115%;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow-accent { color: var(--champagne); }

.display-xl, .display-lg, .display-md {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 90;
  font-weight: 380;
  color: var(--ivory);
  letter-spacing: -0.015em;
}
.display-xl { font-size: clamp(1.95rem, 7.2vw, 4.2rem); line-height: 1.06; }
.display-lg { font-size: clamp(1.6rem, 5.2vw, 2.9rem); line-height: 1.12; }
.display-md { font-size: clamp(1.32rem, 3.6vw, 1.9rem); line-height: 1.2; }
.display-xl em, .display-lg em { font-style: italic; font-weight: 420; color: var(--champagne); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-danger, .btn-success {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.02em; padding: 10px 20px; border-radius: 3px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--champagne); color: #0A0B0D; border: 1px solid var(--champagne); }
.btn-primary:hover { background: var(--champagne-hi); border-color: var(--champagne-hi); }
.btn-ghost { background: transparent; color: var(--ivory); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--champagne); color: var(--champagne-hi); }
.btn-danger { background: transparent; color: var(--signal); border: 1px solid rgba(192, 90, 68, 0.5); }
.btn-danger:hover { background: rgba(192, 90, 68, 0.12); }
.btn-success { background: #27A567; color: #fff; border: 1px solid #27A567; }
.btn-success:hover { background: #1F8A55; border-color: #1F8A55; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .btn-danger:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 1.5px solid var(--champagne); outline-offset: 2px;
}
.btn-primary[disabled], .btn-ghost[disabled], .btn-success[disabled], .btn-danger[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ---------- Elegant figures (marketing surfaces) ----------
   Fraunces lining/tabular numerals — engraved, not techy. Use for tier bands,
   statistics, and offers on the dark marketing pages. The app portals keep
   mono figures: there, numbers are working data, not typography. */
.fig {
  font-family: 'Fraunces', Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 500; letter-spacing: 0.01em; font-optical-sizing: auto;
}

/* Severity labels (enforcement ledger) — small caps over a short rule.
   Replaces pills on marketing surfaces; quieter, engraved. */
.sev {
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate);
}
.sev::after { content: ''; display: block; width: 26px; height: 1px; margin-top: 9px; background: currentColor; opacity: 0.55; }
.sev-major { color: var(--cognac); }
.sev-disqualifying { color: var(--signal); }

/* ---------- Chips, pills, badges ---------- */
.chip-tier {
  display: inline-flex; align-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--champagne); border: 1px solid rgba(201, 164, 92, 0.55);
  padding: 2px 8px; border-radius: 2px; white-space: nowrap;
}
.chip-tier-3 { background: var(--champagne); color: #0A0B0D; border-color: var(--champagne); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--hairline);
  color: var(--slate); white-space: nowrap;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: currentColor; }
.pill-verified, .pill-active, .pill-delivered { color: var(--verified); border-color: rgba(77, 169, 125, 0.4); }
.pill-watch, .pill-pending { color: var(--cognac); border-color: rgba(201, 143, 69, 0.4); }
.pill-restricted, .pill-suspended, .pill-expelled { color: var(--signal); border-color: rgba(192, 90, 68, 0.4); }
.pill-open { color: var(--champagne); border-color: rgba(201, 164, 92, 0.4); }
.pill-assigned, .pill-transit, .pill-requested { color: var(--slate); border-color: var(--hairline); }

.badge-verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--slate); white-space: nowrap;
}
.badge-verified::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--verified); box-shadow: 0 0 0 3px rgba(77, 169, 125, 0.15); }

/* ---------- Redaction (signature element) ---------- */
.redact {
  font-family: 'IBM Plex Mono', monospace;
  color: transparent; position: relative; border-radius: 2px; user-select: none;
  background: repeating-linear-gradient(90deg, #23262c 0 9px, #1b1e23 9px 11px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  letter-spacing: 0.05em; font-size: 12px;
}
.redact-note {
  font-size: 11px; color: var(--dim); font-style: italic;
  display: inline-flex; align-items: center; gap: 5px;
}
.redact-note::before { content: '⬒'; font-style: normal; font-size: 10px; color: var(--champagne); }

/* ---------- Cards, rules, notices ---------- */
.card { background: var(--obsidian); border: 1px solid var(--hairline); border-radius: 4px; }
.card-pad { padding: 24px; }
.rule { position: relative; border: 0; border-top: 1px solid var(--hairline); margin: 0; }
.rule::before { content: ''; position: absolute; top: -1px; left: 0; width: 48px; border-top: 1px solid var(--champagne); }
.notice {
  border-left: 2px solid var(--champagne); background: rgba(201, 164, 92, 0.05);
  padding: 16px 20px; font-size: 14px; color: var(--slate); border-radius: 0 3px 3px 0;
}
.notice strong { color: var(--ivory); }
.notice-red { border-left-color: var(--signal); background: rgba(192, 90, 68, 0.06); }

/* ---------- Tables ---------- */
.table-board { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-board thead th {
  font-family: 'Archivo', sans-serif; font-stretch: 112%;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); text-align: left; padding: 10px 14px;
  background: var(--obsidian); border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.table-board tbody td {
  padding: 11px 14px; border-bottom: 1px solid rgba(38, 43, 51, 0.6);
  color: var(--ivory); vertical-align: middle;
}
.table-board tbody tr { transition: background 0.12s; }
.table-board tbody tr:hover { background: rgba(27, 30, 36, 0.7); }
.table-board tbody tr.row-selected { background: rgba(201, 164, 92, 0.06); }
.table-board .num { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; text-align: right; white-space: nowrap; }
.table-board .mono { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; white-space: nowrap; }
.table-board .sub { color: var(--slate); font-size: 12px; }

/* ---------- Forms ---------- */
.label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; background: var(--gunmetal); border: 1px solid var(--hairline);
  color: var(--ivory); font-size: 14px; padding: 9px 12px; border-radius: 3px;
  transition: border-color 0.15s;
}
.input::placeholder { color: var(--dim); }
.input:focus, .select:focus { border-color: var(--champagne); outline: none; }
.input-mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.06em; }
.field-lock { position: relative; opacity: 0.75; }
.field-lock .input { padding-right: 90px; }
.field-lock::after {
  content: 'VERIFIED'; position: absolute; right: 10px; top: 50%; transform: translateY(calc(-50% + 9px));
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.12em; color: var(--verified);
}

/* ---------- KPI ---------- */
.kpi .kpi-value { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 500; color: var(--ivory); line-height: 1.1; }
.kpi .kpi-value .unit { font-size: 14px; color: var(--slate); }
.kpi .kpi-label { margin-top: 6px; }

/* ---------- App rail (Super Dispatch-style icon rail, Echelon register) ---------- */
body.with-rail { padding-left: 78px; }
.app-rail {
  position: fixed; inset: 0 auto 0 0; width: 78px; z-index: 60;
  display: flex; flex-direction: column; align-items: center;
  background: #0D0E11; border-right: 1px solid var(--hairline);
  padding: 14px 0 12px;
}
.rail-logo { display: flex; align-items: center; justify-content: center; height: 40px; margin-bottom: 10px; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; width: 100%; flex: 1; overflow-y: auto; scrollbar-width: none; }
.rail-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px 8px; width: 100%; color: var(--dim);
  border-left: 2px solid transparent; transition: color 0.15s, background 0.15s;
}
.rail-item svg { width: 19px; height: 19px; }
.rail-item span { font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; line-height: 1.15; }
.rail-item:hover { color: var(--slate); background: rgba(27, 30, 36, 0.5); }
.rail-item.active { color: var(--champagne); border-left-color: var(--champagne); background: rgba(201, 164, 92, 0.06); }
.rail-item.locked { opacity: 0.38; cursor: not-allowed; }
.rail-foot { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rail-acct {
  width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--gunmetal); border: 1px solid var(--hairline);
  font-family: 'Archivo', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--slate);
  cursor: pointer;
}
.rail-pop {
  position: fixed; left: 86px; bottom: 14px; z-index: 70; width: 240px;
  background: var(--obsidian); border: 1px solid var(--hairline); border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.pop-item {
  display: block; padding: 8px 16px; font-size: 13px; color: var(--slate);
  transition: background 0.12s, color 0.12s;
}
.pop-item:hover { background: var(--gunmetal); color: var(--ivory); }

/* ---------- Board cards (load rows) ---------- */
.load-card { display: block; width: 100%; text-align: left; background: var(--obsidian); border: 1px solid var(--hairline); border-radius: 4px; transition: border-color 0.15s, background 0.15s; cursor: pointer; }
.load-card:hover { border-color: rgba(201, 164, 92, 0.45); background: #16181d; }
.route-line { position: relative; padding-left: 18px; }
.route-line::before { content: ''; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; border-radius: 999px; background: var(--champagne); }
.route-line::after { content: ''; position: absolute; left: 7px; top: 18px; bottom: 16px; border-left: 1px dotted var(--dim); }
.route-line .route-dest::before { content: ''; position: absolute; left: 4px; width: 7px; height: 7px; background: var(--verified); margin-top: 7px; }
.bookmark-btn { color: var(--dim); transition: color 0.15s; }
.bookmark-btn:hover { color: var(--champagne); }
.bookmark-btn.saved { color: var(--champagne); }

/* ---------- Detail modal / drawer ---------- */
.ech-modal {
  background: var(--vault); border: 1px solid var(--hairline); border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7); width: 100%; max-width: 1060px;
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.ech-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: 360px; max-width: 92vw;
  background: var(--obsidian); border-left: 1px solid var(--hairline);
  overflow-y: auto; visibility: hidden;
  transform: translateX(100%); transition: transform 0.22s ease-out, visibility 0.22s;
}
.ech-drawer.open { transform: none; visibility: visible; box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35); }

/* ---------- Stage tabs (My loads) ---------- */
.stage-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--hairline); overflow-x: auto; }
.stage-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 2px 11px;
  font-size: 13.5px; font-weight: 500; color: var(--slate);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 0.15s;
}
.stage-tab:hover { color: var(--ivory); }
.stage-tab.active { color: var(--ivory); border-bottom-color: var(--champagne); }
.stage-tab .n { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--dim); }
.stage-tab.active .n { color: var(--champagne); }

/* ---------- Chrome bits ---------- */
.nav-link { font-size: 13.5px; color: var(--slate); transition: color 0.15s; white-space: nowrap; }
.nav-link:hover { color: var(--ivory); }
.nav-link.active { color: var(--champagne); }
.app-nav-link {
  display: inline-flex; align-items: center; padding: 0 2px 10px;
  font-size: 13px; font-weight: 500; color: var(--slate);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s;
  white-space: nowrap;
}
.app-nav-link:hover { color: var(--ivory); }
.app-nav-link.active { color: var(--ivory); border-bottom-color: var(--champagne); }

/* ---------- Toast & modal ---------- */
.ech-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  background: var(--obsidian); border: 1px solid var(--hairline); border-left: 2px solid var(--champagne);
  color: var(--ivory); font-size: 13.5px; padding: 13px 18px; border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); max-width: 380px;
  animation: ech-toast-in 0.22s ease-out;
}
@keyframes ech-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ech-modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 24px;
}

/* ---------- Light-theme component overrides (app portals) ---------- */
/* Typography register: standard auto-transport software (Roboto, tabular
   figures), not terminal-tech. Monospace survives nowhere in the app. */
body.app-light { font-family: 'Roboto', 'Archivo', system-ui, sans-serif; min-height: 100vh; }
body.app-light .btn-success[disabled], body.app-light .btn-primary[disabled] {
  opacity: 1; background: #E5E9EE; border-color: #E5E9EE; color: #8B95A3;
}
body.app-light :is(.font-mono, .input-mono, .kpi-value, .num, .mono, .stage-tab .n, .board-tab .n, .redact-note) {
  font-family: 'Roboto', sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
body.app-light .chip-tier { font-family: 'Roboto', sans-serif; font-weight: 700; letter-spacing: 0.06em; font-size: 10.5px; }
body.app-light .eyebrow { font-family: 'Roboto', sans-serif; font-stretch: normal; letter-spacing: 0.08em; font-weight: 600; }
body.app-light .label { font-family: 'Roboto', sans-serif; letter-spacing: 0.06em; }
body.app-light .table-board thead th { font-family: 'Roboto', sans-serif; font-stretch: normal; letter-spacing: 0.08em; }
body.app-light .field-lock::after { font-family: 'Roboto', sans-serif; }
body.app-light .rail-item span { font-family: 'Roboto', sans-serif; letter-spacing: 0.05em; }
body.app-light .pill { font-family: 'Roboto', sans-serif; letter-spacing: 0.05em; }
body.app-light .btn-primary, body.app-light .btn-ghost, body.app-light .btn-success, body.app-light .btn-danger { font-family: 'Roboto', sans-serif; }
body.app-light ::selection { background: rgba(37, 99, 217, 0.18); }
body.app-light .btn-primary { background: var(--action); border-color: var(--action); color: #fff; border-radius: 6px; }
body.app-light .btn-primary:hover { background: var(--action-hi); border-color: var(--action-hi); }
body.app-light .btn-ghost { background: var(--obsidian); border-color: #C9D2DE; color: var(--ivory); border-radius: 6px; }
body.app-light .btn-ghost:hover { border-color: var(--action); color: var(--action); }
body.app-light .btn-danger, body.app-light .btn-success { border-radius: 6px; }
body.app-light .input:focus, body.app-light .select:focus { border-color: var(--action); }
body.app-light .chip-tier { background: rgba(168, 130, 60, 0.08); }
body.app-light .redact {
  background: repeating-linear-gradient(90deg, #D7DCE2 0 9px, #C9CFD7 9px 11px);
  box-shadow: inset 0 0 0 1px rgba(30, 39, 51, 0.05);
}
body.app-light .table-board tbody td { border-bottom-color: rgba(223, 227, 233, 0.85); }
body.app-light .table-board tbody tr:hover { background: #F6F8FA; }
body.app-light .table-board tbody tr.row-selected { background: rgba(37, 99, 217, 0.05); }
body.app-light .ech-toast { box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16); }
body.app-light .ech-modal-backdrop { background: rgba(23, 30, 40, 0.55); }
body.app-light .card { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
body.app-light .load-card:hover { background: #FFFFFF; border-color: #C3CCD8; box-shadow: 0 3px 10px rgba(16, 24, 40, 0.09); }
body.app-light .stage-tab.active { border-bottom-color: var(--action); }
body.app-light .stage-tab.active .n { color: var(--action); }
body.app-light .app-nav-link.active { border-bottom-color: var(--action); }

/* Rail stays dark navy in the light theme — the Super Dispatch signature */
body.app-light .app-rail { background: #1D2A3C; border-right-color: rgba(255, 255, 255, 0.07); }
body.app-light .app-rail .rail-item { color: #8FA0B5; }
body.app-light .app-rail .rail-item:hover { color: #D7DEE7; background: rgba(255, 255, 255, 0.05); }
body.app-light .app-rail .rail-item.active { color: #FFFFFF; border-left-color: #D9B45D; background: rgba(255, 255, 255, 0.07); }
body.app-light .app-rail .rail-acct { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: #C6CFDA; }

/* ---------- Marketing de-tech: warm glow instead of blueprint grid, and the
   big stat figures set in Archivo rather than terminal monospace ---------- */
.hero-grid {
  background-image: radial-gradient(ellipse 72% 58% at 62% 22%, rgba(201, 164, 92, 0.07), transparent 70%) !important;
  background-size: auto !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
body:not(.app-light) .font-mono.text-3xl {
  font-family: 'Archivo', sans-serif; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}

/* ---------- Motion discipline ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print sanity ---------- */
@media print { body { background: #fff; color: #000; } }

/* ---------- Full-screen mobile menu ----------
   The small dropdown panel is a utility; at this tier the menu should be a
   room you step into. Full viewport, right-aligned engraved capitals, one
   staggered reveal, and a single way out. */
.navsheet {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 90% 60% at 85% 8%, rgba(201,164,92,0.10), transparent 60%),
    linear-gradient(165deg, #1B1E24 0%, #121418 45%, #0A0B0D 100%);
  opacity: 0; visibility: hidden;
  transition: opacity 0.34s cubic-bezier(0.22,1,0.36,1), visibility 0.34s;
}
.navsheet.open { opacity: 1; visibility: visible; }
.navsheet-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; }
.navsheet-close {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); border-radius: 3px; color: var(--ivory);
  background: transparent; cursor: pointer; transition: border-color 0.25s, color 0.25s;
}
.navsheet-close:hover { border-color: var(--champagne); color: var(--champagne); }
.navsheet-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 26px 8px; overflow-y: auto; }
.navsheet-link {
  display: block; text-align: right;
  font-family: 'Archivo', sans-serif; font-weight: 500;
  font-size: clamp(17px, 5vw, 23px); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory); padding: 13px 0;
  opacity: 0; transform: translateY(12px);
  transition: color 0.25s, opacity 0.45s cubic-bezier(0.22,1,0.36,1), transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.navsheet-link:active, .navsheet-link:hover { color: var(--champagne); }
.navsheet-link.current { color: var(--champagne); }
.navsheet.open .navsheet-link { opacity: 1; transform: none; }
.navsheet-rule { height: 1px; background: var(--hairline); margin: 20px 0 18px; opacity: 0; transition: opacity 0.4s 0.2s; }
.navsheet.open .navsheet-rule { opacity: 1; }
.navsheet-sub {
  display: block; text-align: right;
  font-family: 'Archivo', sans-serif; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
  padding: 9px 0; opacity: 0; transform: translateY(10px);
  transition: color 0.25s, opacity 0.45s cubic-bezier(0.22,1,0.36,1), transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.navsheet.open .navsheet-sub { opacity: 1; transform: none; }
.navsheet-sub.accent { color: var(--champagne); }
.navsheet-foot { padding: 18px 26px 26px; text-align: right; font-size: 11.5px; color: var(--dim); opacity: 0; transition: opacity 0.4s 0.28s; }
.navsheet.open .navsheet-foot { opacity: 1; }
body.nav-open { overflow: hidden; }
/* The support launcher is fixed and would sit over the menu's contact line. */
body.nav-open #desk-fab, body.nav-open #desk-panel { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .navsheet, .navsheet-link, .navsheet-sub, .navsheet-rule, .navsheet-foot { transition: none; }
  .navsheet-link, .navsheet-sub { opacity: 1; transform: none; }
}
