/* ═══════════════════════════════════════════════════════════════
   CABINETCALC — BASE  v2.1
   ───────────────────────────────────────────────────────────────
   Shared utilities consumed by both marketing and app pages.
   No page-specific layout. No context-specific chrome.

   Dependencies: tokens.css  (must link first)
   Load order:   tokens.css → base.css → (marketing.css | app.css)

   Contains:
     Reset · Body · Brand lockup
     Type scale · Links · Focus / A11y
     Button system (all 7 variants + sizes)
     Badges · Metric cards
     Dimension display · Table-spec
     404 error page (DS-reconciled)
     Scrollbar · Netlify Identity suppression
     Animations · Print base
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-ui), sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  transition: background .2s, color .2s;
}

button  { font-family: inherit; cursor: pointer; }
input,
select  { font-family: inherit; }

h1,h2,h3,h4,h5,h6 { line-height: 1.2; }
img { display: block; max-width: 100%; }


/* ─────────────────────────────────────────────────────────────
   BRAND LOCKUP
   Used by both marketing header and app header component.
───────────────────────────────────────────────────────────────── */
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link:hover .brand-name { opacity: .82; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.brand-name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1;
}

.brand-badge {
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  border: 1.5px solid var(--border2);
  border-radius: 4px;
  padding: 1px 5px;
  display: inline-block;
  font-family: var(--f-ui);
  width: fit-content;
  white-space: nowrap;
}

@media(max-width:480px) {
  .brand-badge { display: none; }
}


/* ─────────────────────────────────────────────────────────────
   TYPE SCALE  — DS v2.1 locked
   DM Serif Display for display · DM Sans for UI
───────────────────────────────────────────────────────────────── */
.t-hero { font-family: var(--f-display); font-size: clamp(2.8rem,6vw,4.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--text); }
.t-hero .t-accent { color: var(--accent); }
.t-h1 { font-family: var(--f-display); font-size: clamp(1.9rem,4vw,2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -.018em; color: var(--text); }
.t-h2 { font-family: var(--f-display); font-size: clamp(1.2rem,3vw,1.95rem); font-weight: 700; line-height: 1.2;  letter-spacing: -.012em; color: var(--text); }
.t-h3 { font-family: var(--f-ui); font-size: 1.2rem;   font-weight: 700; line-height: 1.3; letter-spacing: -.008em; color: var(--text); }
.t-h4 { font-family: var(--f-ui); font-size: 1rem;     font-weight: 700; line-height: 1.4; letter-spacing: -.004em; color: var(--text); }
.t-h5 { font-family: var(--f-ui); font-size: .875rem;  font-weight: 700; line-height: 1.4; color: var(--text2); }
.t-h6 { font-family: var(--f-ui); font-size: .72rem;   font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); line-height: 1.4; }
.t-body-lg  { font-family: var(--f-ui); font-size: 1.0625rem; font-weight: 400; line-height: 1.75; color: var(--text2); }
.t-body     { font-family: var(--f-ui); font-size: .9375rem;  font-weight: 400; line-height: 1.7;  color: var(--text2); }
.t-body-sm  { font-family: var(--f-ui); font-size: .8125rem;  font-weight: 400; line-height: 1.65; color: var(--text2); }
.t-label    { font-family: var(--f-ui); font-size: .75rem;    font-weight: 600; letter-spacing: .04em; color: var(--text2); }
.t-label-caps { font-family: var(--f-ui); font-size: .63rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.t-caption  { font-family: var(--f-ui); font-size: .7rem; font-weight: 400; color: var(--text3); line-height: 1.5; }


/* ─────────────────────────────────────────────────────────────
   LINKS  — DS v2.1 locked
───────────────────────────────────────────────────────────────── */
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.link:hover  { border-bottom-color: var(--accent); }
.link:active { color: var(--accent2); border-bottom-color: var(--accent2); }

.link-subtle {
  color: var(--text2);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  transition: color .15s, border-color .15s;
}
.link-subtle:hover  { color: var(--accent); border-bottom-color: var(--accent); }
.link-subtle:active { color: var(--accent2); }

.link-danger {
  color: var(--danger);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.link-danger:hover { border-bottom-color: var(--danger); }

.link-nav {
  color: var(--text2);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: color .15s;
}
.link-nav:hover    { color: var(--text); }
.link-nav.active   { color: var(--accent); }


/* ─────────────────────────────────────────────────────────────
   FOCUS & ACCESSIBILITY
───────────────────────────────────────────────────────────────── */
/* Weight-role buttons and links share the brass focus ring */
.btn:focus-visible,
.link:focus-visible,
.link-subtle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Semantic buttons get domain-matched focus rings */
.btn-cut:focus-visible      { outline: 2px solid var(--cut);      outline-offset: 3px; border-radius: 10px; }
.btn-material:focus-visible { outline: 2px solid var(--material); outline-offset: 3px; border-radius: 10px; }
.btn-amber:focus-visible    { outline: 2px solid var(--amber);    outline-offset: 3px; border-radius: 10px; }
.btn-danger:focus-visible   { outline: 2px solid var(--danger);   outline-offset: 3px; border-radius: 10px; }


/* ─────────────────────────────────────────────────────────────
   BUTTON SYSTEM  — DS v2.1 locked
   Weight roles:    primary · secondary · tertiary · danger
   Semantic roles:  cut · material · amber
   Sizes:           lg · md · sm · xs
   Modifiers:       icon · full
───────────────────────────────────────────────────────────────── */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-ui), sans-serif;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s,
              opacity .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
}

/* Sizes */
.btn-lg { padding: 14px 28px; font-size: .92rem; }
.btn-md { padding: 11px 20px; font-size: .9375rem; }
.btn-sm { padding: 8px 14px;  font-size: .76rem; border-radius: 8px; }
.btn-xs { padding: 5px 10px;  font-size: .72rem; border-radius: 6px; }

/* Modifiers */
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: 50%; aspect-ratio: 1; }

/* ── Primary (Brass fill) ── */
.btn-primary { background: var(--accent); color: var(--text-inv); }
.btn-primary:visited { color: var(--text-inv); }
.btn-primary:hover   { background: var(--accent2); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.btn-primary:active  { background: var(--accent2); transform: scale(.97); box-shadow: none; }
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] { background: var(--accent-bg2); color: var(--accent); opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ── Secondary (card bg + border) ── */
.btn-secondary { background: var(--card); color: var(--text); border: 1.5px solid var(--border2); }
.btn-secondary:visited { color: var(--text); }
.btn-secondary:hover  { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.btn-secondary:active { transform: scale(.97); background: var(--accent-bg2); }
.btn-secondary:disabled,
.btn-secondary[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ── Tertiary (ghost) ── */
.btn-tertiary { background: transparent; color: var(--text2); border: none; }
.btn-tertiary:hover  { color: var(--accent); background: var(--accent-bg); }
.btn-tertiary:active { transform: scale(.97); color: var(--accent2); }
.btn-tertiary:disabled,
.btn-tertiary[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ── Danger ── */
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1.5px solid var(--danger-border); }
.btn-danger:hover  { background: var(--danger-bg2); border-color: var(--danger); box-shadow: 0 4px 16px rgba(220,38,38,.22); }
.btn-danger:active { transform: scale(.97); box-shadow: none; }
.btn-danger:disabled,
.btn-danger[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ── Cut (green — cut list workflow) ── */
.btn-cut { background: var(--cut-bg); color: var(--cut-soft); border: 1.5px solid var(--cut-border); }
.btn-cut:hover  { background: var(--cut-bg2); border-color: var(--cut); box-shadow: 0 4px 14px rgba(34,197,94,.18); }
.btn-cut:active { transform: scale(.97); box-shadow: none; }
.btn-cut:disabled,
.btn-cut[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ── Material (blue — materials workflow) ── */
.btn-material { background: var(--material-bg); color: var(--material-soft); border: 1.5px solid var(--material-border); }
.btn-material:hover  { background: var(--material-bg2); border-color: var(--material); box-shadow: 0 4px 14px rgba(59,130,246,.18); }
.btn-material:active { transform: scale(.97); box-shadow: none; }
.btn-material:disabled,
.btn-material[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ── Amber (warning / advisory) ── */
.btn-amber { background: var(--amber-bg); color: var(--amber-soft); border: 1.5px solid var(--amber-border); }
.btn-amber:hover  { background: var(--amber-bg2); border-color: var(--amber); box-shadow: 0 4px 14px rgba(245,158,11,.18); }
.btn-amber:active { transform: scale(.97); box-shadow: none; }
.btn-amber:disabled,
.btn-amber[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* App-scale md button — responds to --vf-* in app pages */
.btn-md-app {
  padding: var(--vf-pad-btn-md, 11px 20px);
  font-size: var(--vf-base, .9375rem);
  transition: padding .25s, font-size .25s;
}


/* ─────────────────────────────────────────────────────────────
   BADGES  — semantic domain pills for tables and status columns
───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-cut      { background: var(--cut-bg);      border: 1px solid var(--cut-border);      color: var(--cut); }
.badge-material { background: var(--material-bg); border: 1px solid var(--material-border); color: var(--material); }
.badge-amber    { background: var(--amber-bg);    border: 1px solid var(--amber-border);    color: var(--amber); }
.badge-danger   { background: var(--danger-bg);   border: 1px solid var(--danger-border);   color: var(--danger); }
.badge-neutral  { background: var(--bg3);         border: 1px solid var(--border2);         color: var(--text2); }
.badge-accent   { background: var(--accent-bg);   border: 1px solid var(--accent-bg2);      color: var(--accent); }


/* ─────────────────────────────────────────────────────────────
   METRIC / STAT CARDS
   Used on dashboard (app) and index.html marketing section.
───────────────────────────────────────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.metric-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card2);
}
.metric-card.cut      { border-color: var(--cut-border);      background: var(--cut-bg); }
.metric-card.material { border-color: var(--material-border); background: var(--material-bg); }
.metric-card.amber    { border-color: var(--amber-border);    background: var(--amber-bg); }
.metric-card.danger   { border-color: var(--danger-border);   background: var(--danger-bg); }

.metric-value {
  font-family: var(--f-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.metric-card.cut      .metric-value { color: var(--cut-soft); }
.metric-card.material .metric-value { color: var(--material-soft); }
.metric-card.amber    .metric-value { color: var(--amber-soft); }
.metric-card.danger   .metric-value { color: var(--danger-soft); }

.metric-label {
  margin-top: 6px;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text3);
}
.metric-card.cut      .metric-label { color: var(--cut-soft);      opacity: .75; }
.metric-card.material .metric-label { color: var(--material-soft); opacity: .75; }
.metric-card.amber    .metric-label { color: var(--amber-soft);    opacity: .75; }
.metric-card.danger   .metric-label { color: var(--danger-soft);   opacity: .75; }

@media(max-width:640px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* ─────────────────────────────────────────────────────────────
   DIMENSION DISPLAY  (app + cut list — responds to --vf-*)
───────────────────────────────────────────────────────────────── */
.dim    { font-family: var(--f-mono); font-size: var(--vf-dim, .9rem);    font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.dim-lg { font-family: var(--f-mono); font-size: var(--vf-dim-lg, 1.15rem); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.dim-xl { font-family: var(--f-mono); font-size: var(--vf-dim-xl, 1.5rem);  font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dim-accent { color: var(--accent); }
.dim-muted  { color: var(--text3); }
.dim-unit   { font-size: .75em; color: var(--text3); margin-left: .1em; font-weight: 400; }
.dim-frac   { font-size: .8em; vertical-align: .05em; }

.dim-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: var(--vf-border-field, 1.5px) solid var(--border2);
  border-radius: 8px;
  padding: var(--vf-pad-field, 8px 12px);
  font-family: var(--f-mono);
  font-size: var(--vf-dim, .9rem);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-height: var(--vf-touch, 44px);
}
.dim-field.focused { border-color: var(--accent); background: var(--accent-bg); }
.dim-field-label {
  font-family: var(--f-ui);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
}

/* Inline dimension segments — used in cut list tables */
.dim-seg { display: inline-block; white-space: nowrap; }
.dim-lab { opacity: .9; font-weight: 700; letter-spacing: .02em; }
.dim-sep { display: inline-block; padding: 0 .35em; opacity: .9; }

/* Inline part marker — engine-calculated output in cut rows */
.cut-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--f-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--accent);
}


/* ─────────────────────────────────────────────────────────────
   TABLE — shared data table spec
───────────────────────────────────────────────────────────────── */
.table-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
}
.table-spec thead tr { background: var(--bg2); }
.table-spec th {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1.5px solid var(--border2);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text3);
}
.table-spec td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  vertical-align: middle;
}
.table-spec tbody tr:last-child td { border-bottom: none; }
.table-spec tbody tr:hover td { background: var(--bg2); }


/* ─────────────────────────────────────────────────────────────
   SHARED PAGE UTILITIES
───────────────────────────────────────────────────────────────── */

/* Background grid (auth pages, 404) */
.bg-grid::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

/* Center-column auth layout (signin, signup) */
.auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Shared card shell */
.base-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--sh);
}

/* Section divider */
.or-row  { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.or-line { flex: 1; height: 1px; background: var(--border); }
.or-text { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }

/* Fade-up entrance */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(7px); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .4; transform: scale(.75); }
}


/* ─────────────────────────────────────────────────────────────
   MODAL — shared legal/dialog overlay
   Used by: index.html · pricing.html  (legal modals)
───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-lg);
  position: relative;
}
.modal-header, .modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: .15s;
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  flex: 1;
  font-size: .82rem;
  color: var(--text2);
  line-height: 1.7;
}
.modal-body h3         { font-size: .88rem; font-weight: 700; color: var(--text); margin: 20px 0 6px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body p          { margin-bottom: 10px; }
.modal-body ul         { padding-left: 18px; margin-bottom: 10px; }
.modal-body ul li      { margin-bottom: 4px; }
.modal-footer          { padding: 16px 26px; border-top: 1px solid var(--border); flex-shrink: 0; text-align: right; }
.modal-footer-note     { font-size: .72rem; color: var(--text3); }

@media(max-width:600px) {
  .modal-box { max-height: 92vh; border-radius: 12px; }
  .modal-body { padding: 18px 20px; }
  .modal-header, .modal-hdr { padding: 18px 20px 14px; }
}


/* ─────────────────────────────────────────────────────────────
   SITE FOOTER — shared across marketing pages
───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 28px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy  { font-size: .75rem; font-weight: 600; color: var(--text2); }
.footer-links { display: flex; gap: 20px; }
.footer-link  { font-size: .72rem; color: var(--text3); text-decoration: none; transition: color .15s; }
.footer-link:hover { color: var(--accent); }

/* Back to top */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--text3);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  transition: color .15s, border-color .15s;
}
.back-to-top:hover { color: var(--accent); border-color: var(--accent); }
.ds-footer-util { display: flex; justify-content: center; padding: 40px 0 24px; }


/* ─────────────────────────────────────────────────────────────
   STATUS CARD — auth pages / invite confirmation
───────────────────────────────────────────────────────────────── */
.status-card {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh);
}
.status-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.status-icon svg  { stroke: var(--accent); }
.status-text      { flex: 1; }
.status-title     { font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: 1px; }
.status-sub       { font-size: .72rem; color: var(--text3); }
.status-link {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
  flex-shrink: 0;
}
.status-link:hover { border-bottom-color: var(--accent); }

/* Footer note (auth pages) */
.footer-note {
  margin-top: 28px;
  font-size: .72rem;
  color: var(--text3);
  text-align: center;
  line-height: 1.6;
}
.footer-note a {
  color: var(--text3);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  transition: color .15s, border-color .15s;
}
.footer-note a:hover { color: var(--accent); border-bottom-color: var(--accent); }


/* ─────────────────────────────────────────────────────────────
   404 ERROR PAGE  — reconciled to DS v2.1 tokens
   Replaces the Georgia/hardcoded-brown legacy stylesheet.
   Page shell: <body class="bg-grid"> + <div class="page-404">
───────────────────────────────────────────────────────────────── */
body.page-404-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-x: hidden;
}

.page-404 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeUp .5s ease both;
}

.page-404-wordmark {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 48px;
  letter-spacing: -.01em;
  align-self: flex-start;
}

.error-card {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--sh-lg);
  margin-bottom: 12px;
}

.field-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.field-label {
  font-family: var(--f-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
}

.field-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--danger-bg);
  border: 1.5px solid var(--danger-border);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--f-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.field-value .error-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
  animation: pulse 1.8s ease-in-out infinite;
}

.error-title {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -.015em;
}

.error-desc {
  font-family: var(--f-ui);
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 420px;
}

.path-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 28px;
}

.path-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  flex-shrink: 0;
}

.path-value {
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--text3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-badge {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--danger);
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media(max-width:480px) {
  .btn-row { grid-template-columns: 1fr; }
  .error-card { padding: 24px 20px; }
  .error-title { font-size: 1.45rem; }
  .page-404-wordmark { margin-bottom: 32px; }
}


/* ─────────────────────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--border2); border-radius: 3px; }


/* ─────────────────────────────────────────────────────────────
   NETLIFY IDENTITY WIDGET SUPPRESSION
   Prevents the widget from injecting body padding/offset.
───────────────────────────────────────────────────────────────── */
[data-netlify-identity-menu],
.netlify-identity-widget,
#netlify-identity-widget {
  position: fixed !important;
  top: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body { padding-top: 0 !important; }


/* ─────────────────────────────────────────────────────────────
   PRINT BASE
───────────────────────────────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
