/* portal.css - portal.securelynx.it
 *
 * Forked from observeadaptprotect.com/includes/css/styles.css. The header and
 * footer are the OAP dark frame, lifted with OAP's own tokens so the console
 * reads as the same building. The CENTER of the page - OAP's white "paper"
 * surface (.page-white) - is replaced by SLATE (.page-slate), per brief: a
 * calmer mid-tone working surface for a data-dense console, light text on
 * slate, raised panels for cards and forms.
 *
 * Departures from OAP, all deliberate:
 *   - no analytics, no privacy modal, no hero-video CSS (none needed here)
 *   - the page-load fade is kept but muted; reduced-motion disables it
 *   - font is OAP's self-hosted Inter variable; no third-party origin, so it
 *     satisfies this property's stricter CSP
 */

/* ---- Self-hosted Inter (lifted from OAP; no webfont round-trip) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/Inter-Variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* OAP palette, lifted verbatim */
  --cyan: #00E6FF;
  --blue: #0066FF;
  --navy: #0A0F1C;
  --black: #05070D;
  --green: #39FF14;
  --red: #FF202D;
  --yellow: #FFEA00;
  --white: #F5F7FA;
  --silver: #B8C2CC;

  /* The dark frame (header + footer) uses OAP's own ground */
  --frame-bg: var(--black);
  --text-primary: var(--white);
  --text-secondary: rgba(245, 247, 250, 0.74);
  --text-muted: rgba(184, 194, 204, 0.52);

  /* ---- SLATE center (this is the departure from OAP's white paper) ---- */
  --slate:          #4b5566;  /* page working surface */
  --slate-dim:      #444d5c;  /* alternating / recessed */
  --panel:          #525d71;  /* raised card / form surface */
  --panel-raised:   #596676;  /* hover / emphasis */
  --panel-line:     rgba(255, 255, 255, 0.09);
  --panel-line-str: rgba(0, 230, 255, 0.22);
  --slate-text:     #ffffff;  /* primary text on slate */
  --slate-text-dim: #d9e6f6;  /* labels, secondary */

  --danger: #ff5f56;
  --ok:     #46c48a;
  --focus:  #9ce4ff;

  --transition-fast: 160ms ease;
  --transition-medium: 320ms ease;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --z-base: 1;
  --z-ui: 10;
  --z-overlay: 100;

  --header-offset: 66px;
  --maxw: 1440px;   /* matches .container, so content, nav and footer
                       share one edge. Was 1100, set for the old
                       single-column reading layout; the split needs
                       the width for the tables on the right. */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--frame-bg);
  color: var(--text-primary);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, a { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--black);
  padding: 10px 16px;
  font-weight: 700;
  z-index: calc(var(--z-overlay) + 5);
}
.skip-link:focus { left: 12px; top: 12px; }

.site-shell {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .container { padding: 0 22px; } }

.text-cyan  { color: var(--cyan); }
.text-green { color: var(--green); }
.wm-tm {
  font-size: 0.8em; line-height: 0; vertical-align: 0.2em;
  letter-spacing: 0; margin-left: 1px; font-weight: 600; opacity: 0.85;
}

/* =========================================================
   HEADER - OAP dark frame, lifted. Not fixed here (a console
   scrolls its own content), but the scrolled state is retained.
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: var(--z-overlay);
  background: rgba(5, 7, 13, 0.86);
  border-bottom: 1px solid rgba(0, 230, 255, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background var(--transition-medium), border-color var(--transition-medium);
}
.site-header.scrolled {
  background: rgba(5, 7, 13, 0.95);
  border-bottom-color: rgba(0, 230, 255, 0.20);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 11px;
}

.nav-logo { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.nav-logo img { width: 38px; height: 38px; object-fit: contain; }
.nav-wordmark { display: block; line-height: 1; }
.nav-wordmark strong { font-size: 1.35rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-wordmark span {
  display: block; margin-top: 5px;
  font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase;
}
/* Colour is scoped to the HEADER, not to .nav-wordmark generally.
   The header's wordmark sub-line is the single word "Portal" and is cyan.
   The footer's is the OAP lockup, three spans carrying .text-cyan,
   .text-green and none, which inherits --text-primary (white) from .footer.
   An unscoped `.nav-wordmark span { color }` is element-plus-class, so it
   outranks the single-class palette helpers and flattened all three to
   cyan. OAP is always cyan, green, white; the shape rules above stay
   unscoped so nothing moves. */
.site-header .nav-wordmark span { color: var(--cyan); }
.nav-wordmark p { margin: 0; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: center; opacity: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); opacity: 1; }

.nav-actions {
  display: flex; align-items: center; gap: 14px; flex: 0 0 auto;
}
.whoami-name {
  color: var(--text-secondary);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-actions .nav-phone {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--cyan);
  transition: color var(--transition-fast); white-space: nowrap;
}
.nav-actions .nav-phone:hover { color: var(--green); }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; padding: 0; background: none;
  border: 1px solid rgba(0, 230, 255, 0.22); border-radius: var(--radius-sm);
  cursor: pointer; flex-shrink: 0; transition: border-color var(--transition-fast);
}
.nav-hamburger:hover { border-color: rgba(0, 230, 255, 0.54); }
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px; background: var(--cyan); border-radius: 1px;
  transition: transform var(--transition-medium), opacity var(--transition-fast); transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer { display: none; }

/* =========================================================
   SLATE CENTER - the working surface (replaces OAP .page-white)
   ========================================================= */
.page-slate {
  position: relative;
  z-index: var(--z-base);
  flex: 1 0 auto;
  background: var(--slate);
  color: var(--slate-text);
  padding: 34px 0 60px;
}
.page-slate ::selection { background: rgba(0, 230, 255, 0.26); color: var(--white); }

/* content width wrapper used inside pages */
.wrap {
  width: min(100% - 44px, var(--maxw));
  margin: 0 auto;
}

/* Auth pages center a single card in the slate field */
.page-auth { display: grid; place-items: center; }
.page-auth .wrap { display: grid; place-items: center; min-height: 60vh; }

/* ---- headings on slate ---- */
.page-head { margin-bottom: 26px; }
.page-head h1 {
  font-size: 1.5rem; letter-spacing: -0.01em; color: var(--white);
}
.page-head .sub { color: var(--slate-text-dim); font-size: 0.92rem; margin-top: 4px; }
.eyebrow {
  color: var(--cyan); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px;
}

/* ---- panels / cards ---- */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.panel + .panel { margin-top: 20px; }

/* ---- two-column working layout: controls left, content right ----
   Left is deliberately the narrow column; the tables on the right are
   what actually need the width. Collapses to one column on tablet and
   below, so the phone view is the old stacked order. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.split > * { min-width: 0; }
@media (max-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > * + * { margin-top: 20px; }
}

/* =========================================================
   DASHBOARD TILES
   ========================================================= */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 22px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.tile:hover {
  border-color: var(--panel-line-str);
  background: var(--panel-raised);
  transform: translateY(-2px);
}
.tile-n {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}
.tile-label {
  color: var(--slate-text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tile-alert { border-color: rgba(255, 234, 0, 0.4); }
.tile-alert .tile-n { color: var(--yellow); }

/* =========================================================
   ONBOARDING BOARD

   Nine cards in two rows, five then four, each portrait at
   3:4 and the short row centred under the long one. NOT the
   dashboard .tiles grid: those are auto-fit and reflow to
   whatever fits, which would put four or two across on some
   screens and break the three-by-three the board is read as.
   Fixed at three, stepped down deliberately at each breakpoint.

   Deliberately NOT .tile itself. Dashboard tiles are all links
   with a hover lift, and all but one of these cards go nowhere.
   Same surface, no affordance it cannot honour.
   ========================================================= */
.board-count {
  margin: 0 0 14px;
  color: var(--slate-text-dim);
  font-size: 0.94rem;
}
.board-count strong { color: var(--slate-text); }

.board {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* TEN columns, not five, and every card spans two of them. That is what
     lets the second row of four sit centred under the first row of five:
     it starts one column in, which is exactly half a card plus half a gap.
     The arithmetic comes out even. With column width c and gap g, a card is
     2c + g, so five of them plus four gaps is 10c + 9g, the full width. The
     four-card row is 8c + 7g, leaving 2c + 2g over, and starting at column
     two puts c + g on each side.

     minmax(0, 1fr) rather than 1fr, because a plain fr column refuses to
     shrink below the min-content of what sits in it, and one card's select
     and button is enough to blow a column out and drag its neighbours with
     it. The zero floor keeps all ten columns equal whatever is inside. */
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 18px;
}
.board-row { grid-column: span 2; }
/* The sixth card opens the second row. Both ends are set, not just the
   start: setting grid-column-start alone leaves the end at auto from the
   shorthand above, which makes this card one column wide instead of two. */
.board-row:nth-child(6) { grid-column: 2 / span 2; }
.board-row {
  /* Portrait. The card sizes off its column width, so the three
     columns and the ratio together decide the height and nothing
     is hardcoded to a pixel. */
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 22px 20px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-top: 3px solid var(--panel-line);
  border-radius: var(--radius-lg);
}
/* The top edge carries the state, so the grid reads as a block of
   colour before a word of it is read. Top rather than left: on a
   card this shape a left rule is a hairline down a tall edge. */
.board-installed      { border-top-color: rgba(70, 196, 138, 0.75); }
.board-waiting        { border-top-color: rgba(255, 234, 0, 0.55); }
.board-not-applicable { border-top-color: var(--panel-line); }
.board-not-applicable .board-label,
.board-not-applicable .board-blurb { color: var(--text-muted); }

.board-main { min-width: 0; }
.board-label {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--slate-text);
}
.board-blurb {
  margin: 8px 0 0;
  color: var(--slate-text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
.board-meta {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* The control sits on the bottom edge whatever the card holds above
   it, so the Save buttons line up across a row instead of stepping
   with the length of each blurb. */
.board-state {
  margin-top: auto;
  width: 100%;
}
.board-set {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.board-set select,
.board-set input[type="date"] {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  font-size: 0.85rem;
}
.board-set .btn { padding: 8px 14px; font-size: 0.8rem; }

.board-foot {
  margin: 18px 0 0;
  color: var(--slate-text-dim);
  font-size: 0.88rem;
}

/* Two across once three would squeeze the blurb, one across on a
   phone. The ratio is dropped at the last step: a full-width 3:4
   card on a phone is most of a screen of mostly nothing, so those
   cards size to their own content instead. */
/* Five across needs the width to stay readable. Below that the offset row
   is dropped along with the ten-column trick, because a centred short row
   only reads as deliberate when the row above it is full. */
@media (max-width: 1200px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board-row,
  .board-row:nth-child(6) { grid-column: auto; }
}
@media (max-width: 900px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* One across on a phone, and the ratio goes with it: a full-width 3:4 card
   is most of a screen of mostly nothing, so those size to their content. */
@media (max-width: 600px) {
  .board { grid-template-columns: 1fr; }
  .board-row { aspect-ratio: auto; }
}

/* Label text for the per-row selects. Present for screen readers, and the
   only reason it is not a visible label is that the pill above it already
   says what the control is looking at. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   AUTH CARD
   ========================================================= */
.auth-card {
  width: min(100%, 390px);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
}
.auth-mark { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.auth-mark .brand-mark { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); }
.auth-mark .brand-sub {
  color: var(--cyan); font-weight: 800; font-size: 0.6rem;
  letter-spacing: 0.34em; text-transform: uppercase;
}
.auth-lede { color: var(--slate-text-dim); font-size: 0.9rem; margin: 0 0 24px; }
.auth-aux { margin-top: 18px; font-size: 0.85rem; color: var(--slate-text-dim); text-align: center; }
.auth-aux a { color: var(--cyan); }
.auth-aux a:hover { text-decoration: underline; }

/* =========================================================
   FORMS
   ========================================================= */
label {
  display: block; font-size: 0.76rem; color: var(--slate-text-dim);
  margin: 0 0 6px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.field { margin-bottom: 18px; }
input[type="email"], input[type="password"], input[type="text"],
input[type="datetime-local"], input[type="date"], input[type="number"],
select, textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--slate-dim);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-md);
  color: var(--slate-text);
  font-size: 1rem;
  font-family: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--cyan);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
/* The box above is ours, but the calendar glyph and the drop-down panel are
   the browser's, and both render for a light page by default. Without this
   the field is dark with a dark glyph sitting invisible on it. */
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }
::placeholder { color: rgba(169, 182, 198, 0.55); }

.btn {
  display: inline-block; width: 100%;
  padding: 12px 16px;
  background: var(--cyan);
  color: var(--black);
  border: 0; border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; text-align: center;
  transition: filter var(--transition-fast);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { filter: brightness(0.95); }
.btn-ghost {
  background: transparent; color: var(--cyan);
  border: 1px solid var(--panel-line-str); width: auto; padding: 9px 16px;
  font-size: 0.82rem; letter-spacing: 0.06em;
}
.btn-ghost:hover { filter: none; background: rgba(0, 230, 255, 0.06); }
.btn-danger { background: var(--danger); color: #2a0806; }
.btn-row { display: flex; gap: 12px; align-items: center; }

/* =========================================================
   MESSAGES
   ========================================================= */
.msg {
  border-radius: var(--radius-md); padding: 11px 13px;
  font-size: 0.9rem; margin-bottom: 18px; border: 1px solid transparent;
}
.msg-error { background: rgba(255, 95, 86, 0.12); border-color: rgba(255, 95, 86, 0.38); color: #ffc4bf; }
.msg-ok    { background: rgba(70, 196, 138, 0.12); border-color: rgba(70, 196, 138, 0.38); color: #b6ecd2; }

/* =========================================================
   TABLES (roster, campaigns, records)
   ========================================================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--panel-line); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--panel); }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--panel-line); }
table.data th {
  color: var(--slate-text-dim); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; background: var(--slate-dim);
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--panel-raised); }
/* Long values (addresses especially) were widening the roster past its pane
   and pushing the row actions out of reach. Clip instead of widen; the full
   value stays in the title attribute. Deliberately tight, because the width
   it gives up goes to the name column, which is what people scan by. */
.cell-clip {
  display: block;
  width: 15ch;          /* fixed, not max: two equal-length addresses render
                           at different widths in a proportional face, so a
                           max-width clipped one and not the other. */
  max-width: 15ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Names take the freed width and stay on one line. */
.cell-name { white-space: nowrap; }

/* =========================================================
   IN-PAGE MODAL
   Native <dialog>: the browser gives the backdrop, the focus trap and
   Escape-to-close, and it renders in the top layer so a dialog declared
   inside the narrow column is not clipped by it.
   ========================================================= */
dialog.modal {
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 26px;
  background: var(--panel);
  color: var(--slate-text);
  border: 1px solid var(--panel-line-str);
  border-radius: var(--radius-lg);
}
dialog.modal::backdrop { background: rgba(5, 7, 13, 0.72); }
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.modal-head .eyebrow { margin: 0; }
.modal-x { flex: 0 0 auto; }

/* Secondary action beside a year heading in the reports list. Sits inside the
   <summary>, so clicking it navigates rather than toggling the section. */
.year-record {
  margin-left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--panel-line);
}
.pill-ok { color: var(--ok); border-color: rgba(70, 196, 138, 0.4); }
.pill-warn { color: var(--yellow); border-color: rgba(255, 234, 0, 0.4); }
.pill-dim { color: var(--slate-text-dim); }

/* =========================================================
   FOOTER - OAP dark frame, lifted verbatim (split SL/OAP)
   ========================================================= */
.footer {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: 100%;
  padding: 56px 0 26px;
  border-top: 1px solid rgba(0, 230, 255, 0.12);
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 230, 255, 0.07), transparent 34%),
    var(--black);
  color: var(--text-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(140px, 1fr));
  gap: 44px;
  align-items: start;
}
.footer-logo { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 0; }
.footer-logo img { width: 44px; height: auto; object-fit: contain; }
.footer-logo .nav-wordmark {
  display: grid; grid-template-columns: repeat(3, auto);
  column-gap: 10px; row-gap: 6px; align-items: center; white-space: nowrap; line-height: 1;
}
.footer-logo > a { flex: 0 0 auto; }
.footer-logo .nav-wordmark > a { display: contents; }
.footer-logo .nav-wordmark strong {
  grid-column: 1 / -1; display: block;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.9rem;
}
.footer-logo .nav-wordmark span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; }
.footer-brand > .footer-logo:nth-of-type(2) { color: var(--text-secondary); font-size: 0.86rem; font-weight: 400; letter-spacing: 0; text-transform: none; }

.footer-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer-column h4 {
  margin-bottom: 8px; color: var(--cyan);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.footer-column a { color: var(--text-secondary); font-size: 0.84rem; transition: color var(--transition-fast); overflow-wrap: anywhere; }
.footer-column a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted); font-size: 0.78rem;
}
.footer-bottom .nav-phone { color: var(--cyan); }
.footer-bottom .sig { margin: 0; color: var(--text-muted); font-size: 0.78rem; }
.footer-bottom .sig a { color: inherit; transition: color var(--transition-fast), text-shadow var(--transition-fast); }
@media (hover: hover) and (pointer: fine) {
  .footer-bottom .sig-violev:hover, .footer-bottom .sig-violev:focus-visible {
    color: #A87BFF; text-shadow: 0 0 18px rgba(139, 92, 255, 0.45);
  }
  .footer-bottom .sig-lynx:hover, .footer-bottom .sig-lynx:focus-visible {
    color: var(--cyan); text-shadow: 0 0 18px rgba(0, 230, 255, 0.40);
  }
}

/* =========================================================
   RESPONSIVE - mobile drawer (lifted from OAP)
   ========================================================= */
@media (min-width: 769px) and (max-width: 1180px) {
  .nav-shell { flex-wrap: wrap; gap: 10px 18px; }
  .nav-shell .nav-links {
    order: 3; width: 100%; gap: 20px; padding: 6px 0 2px;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav-shell .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; font-size: 0.68rem; letter-spacing: 0.1em; }
  .nav-link::after { bottom: -5px; }
}

@media (max-width: 768px) {
  .nav-shell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 9px; padding-bottom: 7px; }
  .nav-logo { flex: 1 1 auto; order: 1; gap: 10px; min-width: 0; }
  .nav-logo img { width: 32px; height: 32px; }
  .nav-wordmark strong { font-size: 1rem; letter-spacing: 0.06em; }
  .nav-wordmark span { font-size: 0.5rem; letter-spacing: 0.28em; }
  .nav-hamburger { display: flex; flex-shrink: 0; order: 2; }
  .nav-actions { display: none; }

  .nav-shell .nav-links { display: none; }

  .nav-drawer {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 80vw); z-index: calc(var(--z-overlay) + 1);
    background: rgba(5, 7, 13, 0.97);
    border-left: 1px solid rgba(0, 230, 255, 0.14);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding-top: 72px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--transition-medium), visibility var(--transition-medium);
  }
  .nav-drawer.is-open { transform: translateX(0); visibility: visible; }
  .nav-drawer-close {
    position: absolute; top: 18px; right: 20px;
    background: none; border: 0; color: var(--text-secondary); font-size: 1.8rem; line-height: 1;
  }
  .nav-drawer .nav-group-label {
    padding: 18px 28px 8px; color: var(--text-muted);
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  }
  .nav-drawer .nav-link {
    display: block; width: 100%; padding: 15px 28px;
    font-size: 0.78rem; letter-spacing: 0.12em;
    border-bottom: 1px solid rgba(0, 230, 255, 0.07); white-space: normal;
  }
  .nav-drawer .nav-link::after { display: none; }
  body.nav-open::before {
    content: ""; position: fixed; inset: 0; z-index: var(--z-overlay);
    background: rgba(3, 8, 18, 0.62);
  }

  .footer { padding: 46px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   PRINT - the record on paper (records download as PDF, but a
   browser print of a record page should drop the dark frame)
   ========================================================= */
@media print {
  .site-header, .footer, .nav-drawer { display: none !important; }
  body { background: #fff; color: #000; }
  .page-slate { background: #fff; color: #000; padding-top: 0; }
  .panel, table.data { background: #fff; border-color: #ccc; }
}
