/* Shared "alt design" system; see templates/_alt_styles.html for usage. */

/* ============================================================
   Design tokens
   ============================================================ */
.alt-page {
  --bg: #f5f3ec;
  --bg-warm: #efece2;
  --paper: #fbfaf5;
  --ink: #1a1916;
  --ink-soft: rgba(26, 25, 22, 0.62);
  --ink-faint: rgba(26, 25, 22, 0.38);
  --rule: rgba(26, 25, 22, 0.09);
  --rule-strong: rgba(26, 25, 22, 0.14);
  --accent: #2354ff;
  --accent-soft: rgba(35, 84, 255, 0.08);
  --coral: #ff5733;
  --coral-soft: rgba(255, 87, 51, 0.1);
  --peach: #ffb38a;
  --mint: #67e8b8;
  --lilac: #b8a4ff;
  --success: #15803d;
  --success-soft: rgba(21, 128, 61, 0.1);
  --warning: #b45309;
  --warning-soft: rgba(180, 83, 9, 0.1);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.1);
  --display: "Bricolage Grotesque", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
}

body:has(.alt-page) {
  background: #f5f3ec;
  overflow-x: hidden;
}

/* ============================================================
   Header re-skin
   ============================================================ */
body:has(.alt-page) .site-shell {
  max-width: 88rem;
  padding-top: 0;
}

body:has(.alt-page) .site-header {
  --site-shell-pad: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
  margin-left: calc(var(--site-shell-pad) * -1);
  margin-right: calc(var(--site-shell-pad) * -1);
  padding: 0.7rem var(--site-shell-pad);
  background: rgba(245, 243, 236, 0.78);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(26, 25, 22, 0);
  transition: border-color 0.25s ease, background 0.25s ease;
}

@media (min-width: 640px) {
  body:has(.alt-page) .site-header {
    --site-shell-pad: 1.5rem;
  }
}

@media (min-width: 88rem) {
  body:has(.alt-page) .site-header {
    /* Stretch full viewport width only when the shell is capped; below that
       the shell itself fills the viewport and 100vw can create scrollbar bleed. */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0.7rem max(1.5rem, calc(50vw - 50%));
  }
}

body:has(.alt-page) .site-header.is-scrolled {
  background: rgba(245, 243, 236, 0.92);
  border-bottom-color: rgba(26, 25, 22, 0.08);
}

body:has(.alt-page) .site-header .brand-link {
  gap: 0.7rem;
  min-height: 2.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.85rem;
  padding: 0.15rem;
  margin: -0.15rem;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body:has(.alt-page) .site-header .brand-link:hover {
  transform: translateY(-1px);
}

body:has(.alt-page) .site-header .brand-link:focus-visible {
  outline: 2px solid #2354ff;
  outline-offset: 3px;
}

body:has(.alt-page) .site-header .brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #1a1916 0%, #2354ff 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 18px -8px rgba(35, 84, 255, 0.45);
  transition: box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body:has(.alt-page) .site-header .brand-link:hover .brand-mark {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 12px 22px -8px rgba(35, 84, 255, 0.6);
}

body:has(.alt-page) .site-header .brand-mark-svg {
  width: 1.4rem;
  height: 1.4rem;
}

body:has(.alt-page) .site-header .brand-mark-svg circle {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: 25.5px 8px;
}

body:has(.alt-page) .site-header .brand-link:hover .brand-mark-svg circle {
  transform: scale(1.25);
}

body:has(.alt-page) .site-header .brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}

body:has(.alt-page) .site-header .brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  color: #1a1916;
  line-height: 1.1;
}

body:has(.alt-page) .site-header .brand-lockup-copy {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 25, 22, 0.5);
  margin-top: 0;
  line-height: 1.2;
}

body:has(.alt-page) .nav-link,
body:has(.alt-page) .nav-trigger {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(26, 25, 22, 0.7);
  border-radius: 0.7rem;
}

body:has(.alt-page) .nav-link:hover,
body:has(.alt-page) .nav-trigger:hover,
body:has(.alt-page) .nav-dropdown[open] .nav-trigger {
  background: rgba(26, 25, 22, 0.05);
  color: #1a1916;
}

body:has(.alt-page) .nav-caret {
  font-size: 0.7rem;
  opacity: 0.5;
}

body:has(.alt-page) .nav-panel {
  border-radius: 1.1rem;
  border: 1px solid rgba(26, 25, 22, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 0.45rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 60px -20px rgba(26, 25, 22, 0.22);
  width: 20rem;
  top: calc(100% + 0.5rem);
  max-height: calc(100dvh - 5.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body:has(.alt-page) .nav-panel-workspace {
  width: min(42rem, calc(100vw - 2rem));
}

body:has(.alt-page) .nav-panel-workspace .nav-panel-group {
  border: 1px solid rgba(26, 25, 22, 0.06);
  background: rgba(251, 250, 245, 0.72);
}

body:has(.alt-page) .nav-panel-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: rgba(26, 25, 22, 0.45);
  padding: 0.4rem 0.6rem 0.55rem;
  margin-bottom: 0.15rem;
}

body:has(.alt-page) .nav-panel-link {
  padding: 0.55rem 0.6rem;
  border-radius: 0.75rem;
  gap: 0.7rem;
}

body:has(.alt-page) .nav-panel-link:hover {
  background: rgba(35, 84, 255, 0.06);
  transform: none;
}

body:has(.alt-page) .nav-panel-link:hover .nav-panel-label {
  color: var(--accent, #2354ff);
}

body:has(.alt-page) .nav-panel-link .icon-badge {
  background: rgba(26, 25, 22, 0.06);
  color: #1a1916;
  height: 1.85rem;
  width: 1.85rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body:has(.alt-page) .nav-panel-link:hover .icon-badge {
  background: linear-gradient(135deg, #1a1916 0%, #2354ff 100%);
  color: #fbfaf5;
  transform: scale(1.04);
}

body:has(.alt-page) .nav-panel-label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

body:has(.alt-page) .nav-panel-copy {
  font-size: 0.74rem;
  color: rgba(26, 25, 22, 0.55);
  line-height: 1.45;
}

body:has(.alt-page) .site-header .motion-press {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 9999px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

body:has(.alt-page) .site-header a[href*="admin"]:not([class*="bg-accent"]) {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 25, 22, 0.1);
  color: #1a1916;
}

body:has(.alt-page) .site-header a[href*="admin"]:not([class*="bg-accent"]):hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(26, 25, 22, 0.18);
}

body:has(.alt-page) .site-header a.bg-accent {
  background: #1a1916 !important;
  color: #fbfaf5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -12px rgba(26, 25, 22, 0.5);
}

body:has(.alt-page) .site-header a.bg-accent:hover {
  background: #2354ff !important;
  transform: translateY(-1px);
}

body:has(.alt-page) .site-header form button[type="submit"],
body:has(.alt-page) .site-header a[href*="login"] {
  background: transparent;
  border: 1px solid rgba(26, 25, 22, 0.1);
  color: rgba(26, 25, 22, 0.7);
}

body:has(.alt-page) .site-header form button[type="submit"]:hover,
body:has(.alt-page) .site-header a[href*="login"]:hover {
  background: rgba(26, 25, 22, 0.05);
  color: #1a1916;
}

body:has(.alt-page) .mobile-menu-toggle {
  border-radius: 0.7rem;
  border-color: rgba(26, 25, 22, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: #1a1916;
}

/* When the mobile menu is open, swap the toggle to the dark fill so the
   white X bars stay visible against the dark surface. */
body:has(.alt-page) .mobile-menu-toggle[aria-expanded="true"] {
  background: #1a1916;
  border-color: #1a1916;
  color: #fbfaf5;
}

body:has(.alt-page) .mobile-menu-toggle[aria-expanded="true"] span {
  background: #fbfaf5 !important;
}

body:has(.alt-page) .site-page-frame > .alt-page {
  padding-top: 0.5rem;
}

/* Footer re-skin (subtle) */
body:has(.alt-page) .site-footer {
  border-top: 1px solid var(--rule, rgba(26, 25, 22, 0.09));
  margin-top: 4rem;
  padding-top: 2rem;
  color: rgba(26, 25, 22, 0.55);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

body:has(.alt-page) .site-footer a {
  color: rgba(26, 25, 22, 0.7);
  transition: color 0.2s ease;
}

body:has(.alt-page) .site-footer a:hover {
  color: #2354ff;
}

/* ============================================================
   Typography helpers
   ============================================================ */
.alt-page .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.alt-page .display-md {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.04;
}

.alt-page .mono {
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

.alt-page .accent-word {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.alt-page .coral-word {
  color: var(--coral);
  font-style: italic;
  font-weight: 500;
}

.alt-page .stroke-word {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  font-style: italic;
}

/* Eyebrow */
.alt-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-family: var(--mono);
  text-transform: uppercase;
}

.alt-page .eyebrow .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0;
}

.alt-page .eyebrow.is-coral .dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
}

.alt-page .eyebrow.is-success .dot {
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.alt-page .eyebrow.is-warning .dot {
  background: var(--warning);
  box-shadow: 0 0 0 4px var(--warning-soft);
}

.alt-page .eyebrow.is-danger .dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.alt-page .eyebrow.on-dark {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Page head (universal page-level title block)
   ============================================================ */
.alt-page .page-head {
  padding: 2.5rem 0 1.75rem;
  display: grid;
  gap: 1rem;
}

@media (max-width: 639px) {
  .alt-page .page-head {
    padding: 1.75rem 0 1.25rem;
  }
}

@media (min-width: 768px) {
  .alt-page .page-head {
    padding: 3.25rem 0 2.25rem;
  }
}

.alt-page .page-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
}

.alt-page .page-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44rem;
}

.alt-page .page-head-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .alt-page .page-head-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: end;
  }
}

/* ============================================================
   Section header (used inside content)
   ============================================================ */
.alt-page .section-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .alt-page .section-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: end;
    margin-bottom: 3rem;
  }
}

.alt-page .section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 1rem;
  color: var(--ink);
}

.alt-page .section-title .accent-word {
  color: var(--accent);
  font-style: italic;
}

.alt-page .section-lead {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
}

@media (min-width: 1024px) {
  .alt-page .section-lead {
    justify-self: end;
  }
}

/* ============================================================
   CTAs (buttons & links)
   ============================================================ */
.alt-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.25rem;
}

.alt-page .cta {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  white-space: nowrap;
}

.alt-page .cta-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 14px 30px -14px rgba(26, 25, 22, 0.5);
}

.alt-page .cta-primary:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 18px 36px -14px rgba(26, 25, 22, 0.6);
  color: var(--paper);
}

.alt-page .cta-primary:active { transform: scale(0.98); }

.alt-page .cta-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(35, 84, 255, 0.55);
}

.alt-page .cta-accent:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 18px 36px -14px rgba(35, 84, 255, 0.7);
}

.alt-page .cta-accent:active { transform: scale(0.98); }

.alt-page .cta-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(255, 87, 51, 0.55);
}

.alt-page .cta-coral:hover {
  transform: translateY(-1px);
  color: #fff;
}

.alt-page .cta-coral:active { transform: scale(0.98); }

.alt-page .cta-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

.alt-page .cta-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  background: #fff;
}

.alt-page .cta-secondary:active { transform: scale(0.98); }

.alt-page .cta-ghost {
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 0.4rem 0 0.5rem;
  border-radius: 0;
  background: transparent;
}

.alt-page .cta-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.alt-page .cta-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  gap: 0.4rem;
}

.alt-page .cta .arrow {
  transition: transform 0.2s ease;
}

.alt-page .cta:hover .arrow {
  transform: translateX(0.2rem);
}

.alt-page .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Inline link */
.alt-page .link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s ease;
}

.alt-page .link:hover {
  color: #1a1916;
}

/* ============================================================
   Panels / cards (generic surfaces)
   ============================================================ */
.alt-page .panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  padding: 1.5rem;
  /* min-width: 0 prevents grid/flex children with intrinsic widths
     (tables with min-width, mono text) from blowing the panel out
     past its container. Foundational fix for mobile overflow. */
  min-width: 0;
}

/* Same defensive fix on common containers that hold panels with tables.
   Without these, a table's min-width can leak through grid items
   (which default to min-width: auto) and overflow the page. */
.alt-page .acct-grid > *,
.alt-page .acct-grid-2 > *,
.alt-page .profile-grid > *,
.alt-page .career-card,
.alt-page .card-link {
  min-width: 0;
}

@media (max-width: 639px) {
  .alt-page .panel {
    padding: 1.25rem;
    border-radius: 1.1rem;
  }
}

@media (min-width: 768px) {
  .alt-page .panel {
    padding: 1.85rem;
  }
}

.alt-page .panel-lg {
  padding: 1.85rem;
}

@media (min-width: 768px) {
  .alt-page .panel-lg {
    padding: 2.5rem;
  }
}

.alt-page .panel-dark {
  background: linear-gradient(135deg, #1a1916 0%, #232120 100%);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.08);
}

.alt-page .panel-dark a:not(.cta) {
  color: var(--peach);
}

.alt-page .panel-tinted {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 60%, #ece8d8 100%);
}

.alt-page .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.alt-page .panel-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: inherit;
}

.alt-page .panel-copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.alt-page .panel-dark .panel-copy {
  color: rgba(255, 255, 255, 0.7);
}

/* Hover-lifting card */
.alt-page .card-link {
  display: block;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.alt-page .card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 84, 255, 0.35);
  box-shadow: 0 22px 48px -28px rgba(26, 25, 22, 0.18);
}

.alt-page .card-link .arrow,
.alt-page .card-link .card-arrow {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.alt-page .card-link:hover .arrow,
.alt-page .card-link:hover .card-arrow {
  transform: translateX(0.25rem);
  color: var(--accent);
}

.alt-page .card-link:active { transform: translateY(0); }

/* ============================================================
   Stat strip / KPI cells
   ============================================================ */
.alt-page .stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 1.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .alt-page .stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.alt-page .stat-strip.is-flat {
  border-radius: 0;
  background: transparent;
}

.alt-page .stat-cell {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

@media (max-width: 639px) {
  .alt-page .stat-cell {
    padding: 1.25rem 1rem;
  }
}

@media (min-width: 768px) {
  .alt-page .stat-cell {
    padding: 1.85rem 1.5rem;
  }
}

/* Decorative accent stripe along the top of each stat cell.
   Spans full cell width so it visually anchors the cell from the edge. */
.alt-page .stat-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--cell-accent, var(--ink)) 0%,
    var(--cell-accent, var(--ink)) 35%,
    transparent 100%);
  opacity: 0.5;
}

.alt-page .stat-cell .stat-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--cell-accent, var(--ink-faint));
  text-transform: uppercase;
  font-weight: 600;
}

@media (min-width: 768px) {
  .alt-page .stat-cell .stat-tag {
    top: 1.85rem;
    right: 1.5rem;
  }
}

.alt-page .stat-cell:nth-child(4n+1) { --cell-accent: var(--ink); }
.alt-page .stat-cell:nth-child(4n+2) { --cell-accent: var(--accent); }
.alt-page .stat-cell:nth-child(4n+3) { --cell-accent: var(--coral); }
.alt-page .stat-cell:nth-child(4n)   { --cell-accent: var(--success); }

.alt-page .stat-cell:last-child {
  border-right: 0;
}

@media (max-width: 767px) {
  .alt-page .stat-cell:nth-child(2n) {
    border-right: 0;
  }
  .alt-page .stat-cell:not(:nth-last-child(-n+2)) {
    border-bottom: 1px solid var(--rule);
  }
}

.alt-page .stat-value {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cell-accent, var(--ink));
  word-break: break-word;
}

.alt-page .stat-value sub {
  font-size: 0.48em;
  vertical-align: baseline;
  color: var(--ink-faint);
  font-weight: 400;
  margin-left: 0.15em;
}

.alt-page .stat-label {
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Compact KPI row (for inside cards) */
.alt-page .kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (min-width: 640px) {
  .alt-page .kpi-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .alt-page .kpi-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.alt-page .kpi {
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  padding: 0.7rem 0.8rem;
  background: var(--paper);
}

.alt-page .kpi-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.alt-page .kpi-value {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 0.2rem;
  word-break: break-word;
}

.alt-page .kpi-delta {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--success);
  margin-top: 0.1rem;
}

.alt-page .kpi-delta.is-down { color: var(--danger); }

/* ============================================================
   Pills / chips / badges
   ============================================================ */
.alt-page .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.2;
}

.alt-page .pill.is-accent {
  background: var(--accent-soft);
  border-color: rgba(35, 84, 255, 0.18);
  color: var(--accent);
}

.alt-page .pill.is-coral {
  background: var(--coral-soft);
  border-color: rgba(255, 87, 51, 0.18);
  color: var(--coral);
}

.alt-page .pill.is-success {
  background: var(--success-soft);
  border-color: rgba(21, 128, 61, 0.2);
  color: var(--success);
}

.alt-page .pill.is-warning {
  background: var(--warning-soft);
  border-color: rgba(180, 83, 9, 0.2);
  color: var(--warning);
}

.alt-page .pill.is-danger {
  background: var(--danger-soft);
  border-color: rgba(185, 28, 28, 0.2);
  color: var(--danger);
}

.alt-page .pill.is-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.alt-page .pill-mono {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.alt-page .pill .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   Form fields (light surface)
   ============================================================ */
.alt-page .field {
  display: grid;
  gap: 0.4rem;
}

.alt-page .field-label,
.alt-page .field > label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.alt-page .field input[type="text"],
.alt-page .field input[type="email"],
.alt-page .field input[type="password"],
.alt-page .field input[type="search"],
.alt-page .field input[type="tel"],
.alt-page .field input[type="url"],
.alt-page .field input[type="number"],
.alt-page .field input[type="date"],
.alt-page .field input[type="time"],
.alt-page .field input[type="datetime-local"],
.alt-page .field input[type="month"],
.alt-page .field input[type="file"],
.alt-page .field textarea,
.alt-page .field select,
.alt-page .alt-input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.alt-page .field textarea,
.alt-page textarea.alt-input {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.5;
}

.alt-page .field input::placeholder,
.alt-page .field textarea::placeholder,
.alt-page .alt-input::placeholder {
  color: var(--ink-faint);
}

.alt-page .field input:focus,
.alt-page .field textarea:focus,
.alt-page .field select:focus,
.alt-page .alt-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: #fff;
}

.alt-page .field-hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

.alt-page .field-error {
  font-size: 0.78rem;
  color: var(--danger);
  line-height: 1.5;
  font-family: var(--mono);
}

.alt-page .field-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.alt-page .field-check input[type="checkbox"],
.alt-page .field-check input[type="radio"] {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* Form fields on dark surface */
.alt-page .panel-dark .field input[type="text"],
.alt-page .panel-dark .field input[type="email"],
.alt-page .panel-dark .field input[type="password"],
.alt-page .panel-dark .field input[type="search"],
.alt-page .panel-dark .field input[type="tel"],
.alt-page .panel-dark .field textarea,
.alt-page .panel-dark .field select,
.alt-page .field-dark input,
.alt-page .field-dark textarea,
.alt-page .field-dark select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--paper);
}

.alt-page .panel-dark .field input::placeholder,
.alt-page .panel-dark .field textarea::placeholder,
.alt-page .field-dark input::placeholder,
.alt-page .field-dark textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.alt-page .panel-dark .field input:focus,
.alt-page .panel-dark .field textarea:focus,
.alt-page .field-dark input:focus,
.alt-page .field-dark textarea:focus {
  border-color: var(--peach);
  box-shadow: 0 0 0 4px rgba(255, 179, 138, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.alt-page .panel-dark .field-label,
.alt-page .panel-dark .field > label,
.alt-page .field-dark > label,
.alt-page .field-dark .field-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================
   Tables
   ============================================================ */
.alt-page .alt-table-wrap {
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--paper);
  min-width: 0;
  max-width: 100%;
}

.alt-page .alt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.alt-page .alt-table thead th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.alt-page .alt-table tbody td,
.alt-page .alt-table tbody th {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}

.alt-page .alt-table tbody tr {
  transition: background-color 0.15s ease;
}

.alt-page .alt-table tbody tr:last-child td,
.alt-page .alt-table tbody tr:last-child th {
  border-bottom: 0;
}

.alt-page .alt-table tbody tr:hover {
  background: rgba(35, 84, 255, 0.03);
}

.alt-page .alt-table .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.alt-page .alt-table .mono-cell {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.alt-page .alt-table-scroll {
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 639px) {
  .alt-page .alt-table {
    font-size: 0.85rem;
  }
  .alt-page .alt-table thead th,
  .alt-page .alt-table tbody td {
    padding: 0.7rem 0.75rem;
  }
}

/* ============================================================
   Definition list / facts grid
   ============================================================ */
.alt-page .facts {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--paper);
}

.alt-page .fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.alt-page .fact:last-child {
  border-bottom: 0;
}

.alt-page .fact-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.alt-page .fact-value {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

/* ============================================================
   Empty state
   ============================================================ */
.alt-page .empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--rule-strong);
  border-radius: 1.25rem;
  background: var(--paper);
}

.alt-page .empty-state-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.alt-page .empty-state-copy {
  font-size: 0.95rem;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============================================================
   Auth shell (login / register / mfa)
   ============================================================ */
.alt-page .auth-shell {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .alt-page .auth-shell {
    padding: 3rem 0;
  }
}

.alt-page .auth-card {
  width: 100%;
  max-width: 30rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 30px 60px -30px rgba(26, 25, 22, 0.18);
}

@media (min-width: 768px) {
  .alt-page .auth-card {
    padding: 2.75rem;
  }
}

.alt-page .auth-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 1rem;
}

.alt-page .auth-lead {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.alt-page .auth-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.alt-page .auth-footer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.55;
}

/* ============================================================
   Section spacing
   ============================================================ */
.alt-page > section {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .alt-page > section {
    padding: 4.5rem 0;
  }
}

.alt-page > section.section-tight {
  padding: 1.75rem 0;
}

@media (min-width: 1024px) {
  .alt-page > section.section-tight {
    padding: 2.5rem 0;
  }
}

/* ============================================================
   Turnstile (force flexible width + scale down on narrow phones)
   ============================================================ */
.alt-page .turnstile-field { min-width: 0; }
.alt-page .turnstile-frame {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: stretch;
}
.alt-page .turnstile-frame .cf-turnstile,
.alt-page .turnstile-frame .cf-turnstile > div,
.alt-page .turnstile-frame iframe {
  flex: 1 1 auto;
  display: block;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100%;
}

/* Cloudflare's widget has a hard ~300px min-width inside the iframe.
   Scale the whole field down when the parent column would be narrower
   than that — happens on narrow phones AND on tablet widths where the
   contact 2-col layout makes the form column smaller than the widget. */
@media (max-width: 380px) {
  .alt-page .turnstile-frame {
    transform: scale(0.88);
    transform-origin: left center;
    width: calc(100% / 0.88);
  }
}

@media (max-width: 340px) {
  .alt-page .turnstile-frame {
    transform: scale(0.78);
    width: calc(100% / 0.78);
  }
}

/* Tablet range (768–1023): the contact form column is ~250–290px wide
   because the contact-grid is 2-col. The turnstile's ~300px minimum
   overflows. Scale down only inside .contact-shell at this range. */
@media (min-width: 768px) and (max-width: 1023px) {
  .alt-page .contact-shell .turnstile-frame {
    transform: scale(0.78);
    transform-origin: left center;
    width: calc(100% / 0.78);
  }
}

/* ============================================================
   Preview / info banner
   ============================================================ */
.alt-page .preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  background: var(--paper);
  border: 1px dashed var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.alt-page .preview-banner a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

/* Notice / alert blocks (form errors, etc.) */
.alt-page .notice {
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
}

.alt-page .notice.is-danger {
  background: var(--danger-soft);
  border-color: rgba(185, 28, 28, 0.25);
  color: var(--danger);
}

.alt-page .notice.is-success {
  background: var(--success-soft);
  border-color: rgba(21, 128, 61, 0.25);
  color: var(--success);
}

.alt-page .notice.is-warning {
  background: var(--warning-soft);
  border-color: rgba(180, 83, 9, 0.25);
  color: var(--warning);
}

.alt-page .notice.is-info {
  background: var(--accent-soft);
  border-color: rgba(35, 84, 255, 0.2);
  color: var(--accent);
}

/* ============================================================
   Divider with optional text
   ============================================================ */
.alt-page .alt-divider {
  height: 1px;
  background: var(--rule);
  margin: 1.5rem 0;
}

.alt-page .alt-divider-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.alt-page .alt-divider-text::before,
.alt-page .alt-divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ============================================================
   Utility text helpers
   ============================================================ */
.alt-page .text-soft { color: var(--ink-soft); }
.alt-page .text-faint { color: var(--ink-faint); }
.alt-page .text-ink { color: var(--ink); }
.alt-page .text-accent { color: var(--accent); }
.alt-page .text-coral { color: var(--coral); }
.alt-page .text-success { color: var(--success); }
.alt-page .text-danger { color: var(--danger); }
.alt-page .text-mono { font-family: var(--mono); }

/* ============================================================
   Reveal anchor for scroll-state header
   ============================================================ */
/* Header gets .is-scrolled when window.scrollY > 60 */

/* ============================================================
   Polish pass — focus states, microinteractions, decorative
   ============================================================ */

/* Consistent focus-visible ring on all interactive surfaces */
.alt-page a:focus-visible,
.alt-page button:focus-visible,
.alt-page .cta:focus-visible,
.alt-page .card-link:focus-visible,
.alt-page .link:focus-visible,
.alt-page a > .pill:focus-visible,
.alt-page .pill[role="button"]:focus-visible,
.alt-page a:has(> .pill):focus-visible,
.alt-page summary:focus-visible,
body:has(.alt-page) .nav-link:focus-visible,
body:has(.alt-page) .nav-trigger:focus-visible,
body:has(.alt-page) .nav-panel-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

/* Form fields use box-shadow ring (already styled) so suppress
   the generic outline on focus to avoid double rings. */
.alt-page .field input:focus-visible,
.alt-page .field textarea:focus-visible,
.alt-page .field select:focus-visible,
.alt-page .alt-input:focus-visible {
  outline: none;
}

/* Focus rings on dark surfaces — switch to peach for contrast */
.alt-page .panel-dark a:focus-visible,
.alt-page .panel-dark button:focus-visible,
.alt-page .panel-dark .cta:focus-visible,
.alt-page .contact-shell a:focus-visible,
.alt-page .contact-shell button:focus-visible,
.alt-page .contact-shell .cta:focus-visible {
  outline-color: var(--peach);
}

.alt-page .panel-dark .field input:focus-visible,
.alt-page .panel-dark .field textarea:focus-visible,
.alt-page .panel-dark .field select:focus-visible,
.alt-page .field-dark input:focus-visible,
.alt-page .field-dark textarea:focus-visible {
  outline: none;
}

/* Pill interactivity when wrapped in <a> or marked as button */
.alt-page a > .pill,
.alt-page .pill[role="button"] {
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease;
}

.alt-page a:hover > .pill,
.alt-page .pill[role="button"]:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.alt-page a:hover > .pill.is-accent,
.alt-page .pill[role="button"].is-accent:hover {
  border-color: rgba(35, 84, 255, 0.4);
  background: rgba(35, 84, 255, 0.12);
}

.alt-page a:hover > .pill.is-coral,
.alt-page .pill[role="button"].is-coral:hover {
  border-color: rgba(255, 87, 51, 0.4);
  background: rgba(255, 87, 51, 0.14);
}

.alt-page a:active > .pill,
.alt-page .pill[role="button"]:active {
  transform: scale(0.97);
}

/* Field label color bump on focus-within */
.alt-page .field:focus-within > label,
.alt-page .field:focus-within .field-label {
  color: var(--accent);
  transition: color 0.18s ease;
}

.alt-page .panel-dark .field:focus-within > label,
.alt-page .panel-dark .field:focus-within .field-label,
.alt-page .field-dark:focus-within > label,
.alt-page .field-dark:focus-within .field-label {
  color: var(--peach);
}

/* Selection color */
.alt-page ::selection,
body:has(.alt-page) ::selection {
  background: var(--accent-soft, rgba(35, 84, 255, 0.18));
  color: var(--ink, #1a1916);
}

/* Webkit scrollbar styling — warm-aesthetic match */
body:has(.alt-page)::-webkit-scrollbar,
.alt-page ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body:has(.alt-page)::-webkit-scrollbar-track,
.alt-page ::-webkit-scrollbar-track {
  background: transparent;
}

body:has(.alt-page)::-webkit-scrollbar-thumb,
.alt-page ::-webkit-scrollbar-thumb {
  background: rgba(26, 25, 22, 0.25);
  border-radius: 9999px;
}

body:has(.alt-page)::-webkit-scrollbar-thumb:hover,
.alt-page ::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 25, 22, 0.4);
}

/* Loading / skeleton shimmer */
.alt-page .is-loading,
.alt-page .skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(26, 25, 22, 0.06) 0%,
    rgba(26, 25, 22, 0.12) 50%,
    rgba(26, 25, 22, 0.06) 100%
  );
  background-size: 200% 100%;
  border-radius: 0.5rem;
  color: transparent;
  pointer-events: none;
  user-select: none;
}

.alt-page .skeleton-line {
  display: block;
  height: 0.85rem;
  border-radius: 0.4rem;
  margin: 0.3rem 0;
  background: linear-gradient(
    90deg,
    rgba(26, 25, 22, 0.06) 0%,
    rgba(26, 25, 22, 0.12) 50%,
    rgba(26, 25, 22, 0.06) 100%
  );
  background-size: 200% 100%;
}

/* Motion-gated animations: smooth scroll, shimmer, pulse, arrow */
@media (prefers-reduced-motion: no-preference) {
  body:has(.alt-page) {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
  }

  @keyframes alt-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .alt-page .is-loading,
  .alt-page .skeleton,
  .alt-page .skeleton-line {
    animation: alt-shimmer 1.4s ease-in-out infinite;
  }

  @keyframes alt-dot-pulse {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 0 4px var(--accent-soft);
    }
    50% {
      transform: scale(1.08);
      box-shadow: 0 0 0 6px var(--accent-soft);
    }
  }

  .alt-page .eyebrow .dot {
    animation: alt-dot-pulse 2.4s ease-in-out infinite;
  }

  .alt-page .eyebrow.is-coral .dot {
    animation: alt-dot-pulse-coral 2.4s ease-in-out infinite;
  }

  @keyframes alt-dot-pulse-coral {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 0 4px var(--coral-soft);
    }
    50% {
      transform: scale(1.08);
      box-shadow: 0 0 0 6px var(--coral-soft);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .alt-page *,
  .alt-page *::before,
  .alt-page *::after,
  body:has(.alt-page) *,
  body:has(.alt-page) *::before,
  body:has(.alt-page) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Decorative accents — opt-in via class
   ============================================================ */

/* Gradient bar above page-head title — opt in with .has-accent-bar */
.alt-page .page-head.has-accent-bar {
  position: relative;
}

.alt-page .page-head.has-accent-bar::before {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--coral) 100%);
  margin-bottom: 0.25rem;
}

.alt-page .page-head.has-accent-bar.is-coral::before {
  background: linear-gradient(90deg, var(--coral) 0%, var(--peach) 100%);
}

.alt-page .page-head.has-accent-bar.is-success::before {
  background: linear-gradient(90deg, var(--success) 0%, var(--mint) 100%);
}

.alt-page .page-head.has-accent-bar.is-ink::before {
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);
}

/* Soft blob behind empty-state title — opt in with .has-blob */
.alt-page .empty-state.has-blob {
  position: relative;
  overflow: hidden;
}

.alt-page .empty-state.has-blob::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    var(--accent-soft) 0%,
    rgba(35, 84, 255, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.alt-page .empty-state.has-blob.is-coral::before {
  background: radial-gradient(
    circle at 35% 35%,
    var(--coral-soft) 0%,
    rgba(255, 87, 51, 0) 70%
  );
}

.alt-page .empty-state.has-blob.is-success::before {
  background: radial-gradient(
    circle at 35% 35%,
    var(--success-soft) 0%,
    rgba(21, 128, 61, 0) 70%
  );
}

.alt-page .empty-state.has-blob > * {
  position: relative;
  z-index: 1;
}
