/* TSP Coach public site shell — design system (U0 A+B hybrid)
 * A = quiet professional surfaces/spacing · B = confident accent/CTAs
 * Legacy W3layouts (style.css) is quarantined under body.site-app below.
 */
:root {
  /* Brand / chrome */
  --site-nav-bg: #0f172a;
  --site-nav-bg-2: #1e2937;
  --site-nav-text: #e2e8f0;
  --site-nav-muted: #94a3b8;
  --site-nav-active: #38bdf8;
  --site-accent: #357cd9;
  --site-accent-hover: #2b6cb0;
  --site-accent-soft: rgba(53, 124, 217, 0.12);
  --site-surface: #f1f5f9;
  --site-surface-2: #e8eef5;
  --site-card: #ffffff;
  --site-border: #e2e8f0;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-success: #0d9488;
  --site-danger: #dc2626;
  --site-radius: 0.75rem;
  --site-radius-sm: 0.5rem;
  --site-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --site-shadow-lg: 0 4px 20px rgba(15, 23, 42, 0.1);
  --site-nav-h: 80px;
  --site-container: 1140px;
  --site-touch: 44px;
  --site-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale (0.25rem base) */
  --site-space-1: 0.25rem;
  --site-space-2: 0.5rem;
  --site-space-3: 0.75rem;
  --site-space-4: 1rem;
  --site-space-5: 1.5rem;
  --site-space-6: 2rem;
  --site-space-7: 2.5rem;
  --site-space-8: 3rem;

  /* Type scale */
  --site-fs-xs: 0.75rem;
  --site-fs-sm: 0.875rem;
  --site-fs-body: 1rem;
  --site-fs-lead: 1.0625rem;
  --site-fs-h6: 1rem;
  --site-fs-h5: 1.125rem;
  --site-fs-h4: 1.25rem;
  --site-fs-h3: 1.375rem;
  --site-fs-h2: 1.5rem;
  --site-fs-h1: clamp(1.5rem, 3.5vw, 2.125rem);
  --site-lh-tight: 1.25;
  --site-lh-body: 1.55;
  --site-fw-normal: 400;
  --site-fw-semibold: 600;
  --site-fw-bold: 700;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.site-app *,
  body.site-app *::before,
  body.site-app *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.site-app {
  margin: 0;
  min-height: 100%;
  background: var(--site-surface);
  color: var(--site-text);
  font-family: var(--site-font);
  font-size: var(--site-fs-body);
  line-height: var(--site-lh-body);
  font-weight: var(--site-fw-normal);
  padding-top: 0 !important;
  -webkit-font-smoothing: antialiased;
}

body.site-app.site-nav-fixed {
  padding-top: var(--site-nav-h) !important;
}

/* Type hierarchy (subtle; A+B confident heads without shouting) */
body.site-app h1,
body.site-app .h1 {
  font-size: var(--site-fs-h1);
  font-weight: var(--site-fw-bold);
  line-height: var(--site-lh-tight);
  letter-spacing: -0.02em;
  color: var(--site-text);
}

body.site-app h2,
body.site-app .h2 {
  font-size: var(--site-fs-h2);
  font-weight: var(--site-fw-bold);
  line-height: var(--site-lh-tight);
  color: var(--site-text);
}

body.site-app h3,
body.site-app .h3 {
  font-size: var(--site-fs-h3);
  font-weight: var(--site-fw-bold);
  line-height: var(--site-lh-tight);
}

body.site-app h4,
body.site-app .h4 {
  font-size: var(--site-fs-h4);
  font-weight: var(--site-fw-semibold);
}

body.site-app h5,
body.site-app .h5 {
  font-size: var(--site-fs-h5);
  font-weight: var(--site-fw-semibold);
}

body.site-app h6,
body.site-app .h6 {
  font-size: var(--site-fs-h6);
  font-weight: var(--site-fw-semibold);
}

body.site-app p {
  margin-bottom: var(--site-space-4);
}

body.site-app .lead,
body.site-app .site-lead {
  font-size: var(--site-fs-lead);
  line-height: var(--site-lh-body);
  color: var(--site-muted);
}

/* Touch-friendly controls (B: confident CTAs stay tappable).
 * min-height alone left Bootstrap inline-block content top-heavy — flex-center labels/icons. */
body.site-app .btn {
  min-height: var(--site-touch);
  font-weight: var(--site-fw-semibold);
  /* Override legacy style.css .btn-primary { font-size:14px } so primary/light match */
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  line-height: 1.25;
  vertical-align: middle;
}

body.site-app .btn-sm {
  min-height: 2.25rem;
  font-size: 0.875rem;
}

body.site-app .btn-lg {
  font-size: 1.125rem;
}

body.site-app .form-control,
body.site-app .form-select {
  min-height: var(--site-touch);
}

body.site-app a:focus-visible,
body.site-app .btn:focus-visible,
body.site-app .nav-link:focus-visible,
body.site-app .form-control:focus-visible {
  outline: 2px solid var(--site-nav-active);
  outline-offset: 2px;
}

/* ---------- Top navigation ---------- */
/*
 * Non-home / fixed bar: production-style strip (banner-small, top-left crop).
 * Matches legacy: background:url(banner-small.jpg) no-repeat 0 0; background-size:cover
 * Light scrim keeps nav text readable without blacking out the photo.
 * Home hero navbar is transparent over .site-banner (overrides below).
 */
.site-navbar {
  background-color: #302f34;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.36) 100%),
    url("../images/banner-small.jpg");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.2);
  min-height: var(--site-nav-h);
  z-index: 1030;
}

.site-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* One logo size site-wide (home + fixed inner pages) */
.site-navbar .navbar-brand img,
body.site-app .site-banner .navbar-brand img,
body.site-app.site-nav-fixed .site-navbar .navbar-brand img {
  height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35)) brightness(1.08);
}

.site-navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem !important;
  border-radius: 0.5rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.75);
  background: transparent;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: var(--site-nav-active) !important;
  background: transparent;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.75);
  opacity: 1;
}

.site-navbar .nav-link.active,
.site-navbar .nav-link[aria-current="page"] {
  color: var(--site-nav-active) !important;
  background: transparent;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.75);
}

.site-navbar .navbar-toggler {
  border-color: rgba(226, 232, 240, 0.35);
  min-width: 44px;
  min-height: 44px;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.35);
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.4rem 0.9rem !important;
  border-radius: 0.5rem;
  font-weight: 600;
}

.site-nav-cta-primary {
  background: var(--site-accent) !important;
  color: #fff !important;
  text-shadow: none;
}

.site-nav-cta-primary:hover {
  background: var(--site-accent-hover) !important;
  color: #fff !important;
}

.site-nav-cta-outline {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.75);
}

.site-nav-cta-outline:hover {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
}

.site-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.75);
}

/* Home hero banner — full photo, no dark gradient wash.
 * Anchor TOP of image (blue sky) under the menu — center/center was cropping
 * sky and putting white clouds in the nav band (prod uses 0 0 / top).
 */
.site-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #302F34;
  background-image: url("../images/banner.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  color: #fff;
  padding-top: calc(var(--site-nav-h) + 1.5rem);
  padding-bottom: 0;
  min-height: 300px;
}

.site-banner .site-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Transparent so full hero photo shows through; same logo size as fixed pages */
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

/* On scroll: same production strip as fixed inner navs */
.site-banner .site-navbar.site-navbar-scrolled,
.site-banner.is-scrolled .site-navbar {
  background-color: #302f34;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.36) 100%),
    url("../images/banner-small.jpg");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.2);
}

.site-hero {
  flex: 1 1 auto;
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.site-hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9), 0 2px 2px rgba(0, 0, 0, 0.75);
}

.site-hero-title {
  font-weight: 700;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9), 0 2px 2px rgba(0, 0, 0, 0.75);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.site-hero-sub {
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #fff;
  opacity: 1;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9), 0 2px 2px rgba(0, 0, 0, 0.75);
}

.site-hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9), 0 2px 2px rgba(0, 0, 0, 0.75);
}

.site-hero-proof-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9), 0 2px 2px rgba(0, 0, 0, 0.75);
}

.site-hero-proof-sep {
  opacity: 0.5;
}

.site-hero-proof-link {
  color: #7dd3fc !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
  margin-left: 0.25rem;
}

.site-hero-proof-link:hover {
  color: #fff !important;
}

.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.site-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.35rem;
  line-height: 1.25;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  vertical-align: middle;
}

/* Equal weight for primary + secondary hero CTAs (legacy only shrank .btn-primary) */
body.site-app .site-hero-actions .btn-primary,
body.site-app .site-hero-actions .btn-light,
body.site-app .site-hero-actions .btn-outline-light,
body.site-app .site-hero-actions .btn-outline-primary {
  font-size: 1.125rem;
}

/* Desktop on-page jump bar */
.site-scrollspy {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--site-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

body.site-app:not(.site-nav-fixed) .site-scrollspy {
  /* home nav is in banner; stick under viewport top after hero scroll */
  top: 0;
}

.site-scrollspy-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.15rem;
  padding: 0.45rem 0.5rem;
}

.site-scrollspy-inner a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--site-muted) !important;
  text-decoration: none !important;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.site-scrollspy-inner a:hover {
  color: var(--site-accent) !important;
  background: var(--site-accent-soft);
}

.site-scrollspy-inner a.site-scrollspy-cta {
  color: #fff !important;
  background: var(--site-accent);
  margin-left: 0.35rem;
}

.site-scrollspy-inner a.site-scrollspy-cta:hover {
  background: var(--site-accent-hover);
  color: #fff !important;
}

.site-swipe-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--site-muted);
  background: #f8fafc;
  border: 1px dashed var(--site-border);
  border-radius: var(--site-radius-sm);
  padding: 0.45rem 0.65rem;
}

.site-swipe-hint .bi {
  color: var(--site-accent);
  margin-right: 0.25rem;
}

.site-dual-table-wrap {
  position: relative;
  border-radius: var(--site-radius-sm);
}

@media (max-width: 991.98px) {
  .site-dual-table-wrap::after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2rem;
    border-radius: 0 var(--site-radius-sm) var(--site-radius-sm) 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
    z-index: 3;
  }
}

/* Section chrome — centered to match original TSP section titles */
.site-section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--site-space-2);
  font-size: var(--site-fs-h2);
  font-weight: var(--site-fw-bold);
  color: var(--site-text);
  margin: 0 auto var(--site-space-5);
  padding-bottom: var(--site-space-2);
  text-align: center;
  width: 100%;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--site-accent), transparent) 1;
  letter-spacing: -0.015em;
}

.site-section-head i {
  color: var(--site-accent);
}

.site-card {
  background: var(--site-card);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  padding: 1.25rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.site-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.site-announcement-card {
  background: linear-gradient(135deg, #357cd9 0%, #2563eb 100%);
  color: #fff;
  border-radius: var(--site-radius);
  border: none;
  box-shadow: var(--site-shadow);
}

.site-announcement-card a:not(.image_overlay-p-a) {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Blue announcement boxes on homepage (legacy inline #357cd9) — force readable links */
body.site-app .content [style*="background-color:#357cd9"],
body.site-app .content [style*="background-color: #357cd9"],
body.site-app .content [style*="background-color:#357CD9"],
body.site-app .current,
body.site-app .site-announcement-card {
  color: #fff !important;
}

body.site-app .content [style*="background-color:#357cd9"] a,
body.site-app .content [style*="background-color: #357cd9"] a,
body.site-app .content [style*="background-color:#357CD9"] a,
body.site-app .current a,
body.site-app .content [style*="background-color:#357cd9"] .text-dark,
body.site-app .content [style*="background-color: #357cd9"] .text-dark,
body.site-app .content [style*="background-color:#357cd9"] .text-primary,
body.site-app .content [style*="background-color: #357cd9"] .text-primary,
body.site-app .current .text-dark,
body.site-app .current .text-primary {
  color: #fff !important;
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

body.site-app .content [style*="background-color:#357cd9"] a:hover,
body.site-app .content [style*="background-color: #357cd9"] a:hover,
body.site-app .current a:hover {
  color: #fef08a !important;
  text-decoration-color: #fef08a;
}

/* Copyright / creative-commons image chip — compact pill, never full-card underline */
body.site-app .img-text-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  vertical-align: top;
}

body.site-app .img-text-container > img,
body.site-app .img-text-container > .bd-placeholder-img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.site-app .img-text-container .inner {
  position: absolute !important;
  bottom: 0.3rem !important;
  left: 0.3rem !important;
  right: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: min(11rem, calc(100% - 0.6rem)) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.12rem 0.45rem !important;
  background-color: rgba(15, 23, 42, 0.72) !important;
  color: #fff !important;
  border-radius: 999px !important;
  line-height: 1.15 !important;
  z-index: 4;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
}

body.site-app .img-text-container .inner p,
body.site-app .img-text-container .image-overlay-p {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.site-app .img-text-container .image-overlay-p a,
body.site-app .img-text-container .image_overlay-p-a,
body.site-app .site-announcement-card .image_overlay-p-a,
body.site-app .site-post-card .image_overlay-p-a,
body.site-app .content .image-overlay-p a,
body.site-app .content .image_overlay-p-a {
  color: #fff !important;
  font-weight: 500 !important;
  font-size: inherit !important;
  text-decoration: none !important;
  text-underline-offset: unset !important;
  text-shadow: none !important;
  border-bottom: 0 !important;
}

body.site-app .img-text-container .image_overlay-p-a:hover,
body.site-app .img-text-container .image-overlay-p a:hover,
body.site-app .site-announcement-card .image_overlay-p-a:hover {
  color: #e2e8f0 !important;
  text-decoration: none !important;
}

/* Buttons / forms */
body.site-app .btn-primary {
  background-color: var(--site-accent);
  border-color: var(--site-accent);
}

body.site-app .btn-primary:hover,
body.site-app .btn-primary:focus {
  background-color: var(--site-accent-hover);
  border-color: var(--site-accent-hover);
}

body.site-app .btn {
  border-radius: 0.5rem;
}

body.site-app .form-control:focus,
body.site-app .form-select:focus {
  border-color: #7cb3eb;
  box-shadow: 0 0 0 0.2rem rgba(53, 124, 217, 0.2);
}

/* Footer — legacy style.css uses position:fixed; keep that, pad body so text is readable */
.site-footer,
body.site-app .footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--site-nav-bg) 0%, var(--site-nav-bg-2) 100%);
  color: var(--site-nav-muted);
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  margin-top: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  max-height: 40vh;
  overflow-y: auto;
}

/* Reserve space so fixed legal bar does not cover last content */
body.site-app {
  padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

body.site-app.site-nav-fixed {
  padding-top: var(--site-nav-h) !important;
  padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 767.98px) {
  body.site-app,
  body.site-app.site-nav-fixed {
    /* mobile CTA (~4.5rem) + footer */
    padding-bottom: calc(12rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.site-app #toTop {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

.site-footer a,
body.site-app .footer a {
  color: var(--site-nav-active);
}

body.site-app #toTop {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--site-accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
}

body.site-app #toTop:hover {
  background: var(--site-accent-hover);
  color: #fff;
}

body.site-app #toTop i {
  display: block;
  line-height: 1;
  pointer-events: none;
}

/* reCAPTCHA v3 badge / domain-error UI — keep clear of toTop; hide error noise on non-prod */
body.site-app .grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.site-app .rc-anchor-error-message,
body.site-app .rc-anchor-error-msg-container,
body.site-app div.rc-anchor-error-message {
  display: none !important;
}

/* Skip link a11y */
.site-skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 2000;
  background: #fff;
  color: var(--site-text);
  padding: 0.5rem 1rem;
  border-radius: 0.35rem;
  font-weight: 600;
}

.site-skip-link:focus {
  left: 0.5rem;
}

/* Legacy .banner class — keep photo (style.css) + optional scrim via .site-banner */
body.site-app .banner:not(.site-banner) {
  background: url("../images/banner.jpg") no-repeat center top !important;
  background-color: #302F34 !important;
  background-size: cover !important;
  min-height: auto;
  padding-bottom: 0;
}

body.site-app .banner > .container {
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: #fff;
}

body.site-app .banner h1,
body.site-app .banner h2,
body.site-app .banner .site-hero-title,
body.site-app .banner .site-hero-sub,
body.site-app .site-banner .site-hero-title,
body.site-app .site-banner .site-hero-sub,
body.site-app .site-banner .site-hero-kicker,
body.site-app .site-banner .site-hero-proof {
  color: #fff;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9), 0 2px 2px rgba(0, 0, 0, 0.75);
}

/* Hero links only — do not paint Bootstrap modals (nested inside .site-banner on homepage) */
body.site-app .banner > .container a:not(.btn):not(.nav-link),
body.site-app .site-banner > .container a:not(.btn):not(.nav-link) {
  color: #fff;
}

/* ---------- Modals: restore style-guide blue on white (banner color must not inherit) ---------- */
body.site-app .modal,
body.site-app .modal-dialog {
  color: #053268;
}

body.site-app .modal-content {
  color: #053268 !important;
  background-color: #fff !important;
}

body.site-app .modal-header,
body.site-app .modal-body,
body.site-app .modal-footer {
  color: #053268;
}

body.site-app .modal-content .modal-title,
body.site-app .modal-content h4,
body.site-app .modal-content h5,
body.site-app .modal-content h6,
body.site-app .modal-content label,
body.site-app .modal-content .form-label,
body.site-app .modal-content .form-check-label,
body.site-app .modal-content .checkbox,
body.site-app .modal-content p,
body.site-app .modal-content .md-form {
  color: #357cd9 !important;
}

body.site-app .modal-content a:not(.btn) {
  color: #357cd9 !important;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.site-app .modal-content a:not(.btn):hover,
body.site-app .modal-content a:not(.btn):focus {
  color: #053268 !important;
}

body.site-app .modal-content .form-control,
body.site-app .modal-content .form-select,
body.site-app .modal-content input,
body.site-app .modal-content textarea {
  color: #0f172a !important;
  background-color: #fff !important;
}

body.site-app .modal-content .form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

body.site-app .modal-content .invalid-feedback,
body.site-app .modal-content .error {
  color: #b91c1c !important;
}

body.site-app .modal-content .message {
  color: #047857 !important;
}

body.site-app .modal-content .btn-close {
  filter: none;
  opacity: 0.7;
}

/* Subscribe / primary header bars that intentionally use dark bg keep light text */
body.site-app .modal-content .modal-header.bg-primary,
body.site-app .modal-content .modal-header.bg-primary .modal-title,
body.site-app .modal-content .modal-header.bg-primary h5,
body.site-app .modal-content .modal-header.text-white,
body.site-app .modal-content .modal-header.text-white * {
  color: #fff !important;
}

/* Content sections keep legacy structure; lift background slightly */
body.site-app .content,
body.site-app .service,
body.site-app .performance {
  background: var(--site-surface);
}

@media (max-width: 576px) {
  .site-navbar .nav-link,
  .site-nav-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-hero-actions .btn {
    width: 100%;
  }
}

/* Focus-visible for keyboard users */
body.site-app a:focus-visible,
body.site-app button:focus-visible,
body.site-app .btn:focus-visible {
  outline: 2px solid var(--site-nav-active);
  outline-offset: 2px;
}

/* ---------- Phase 2 homepage / conversion ---------- */
.site-page-section {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Empty announcement CTA: solid white chip, dark blue text (not white-on-white) */
body.site-app .site-empty-state .site-empty-cta,
body.site-app .site-announcement-card .site-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  color: #053268 !important;
  background: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 0.5rem;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

body.site-app .site-empty-state .site-empty-cta:hover,
body.site-app .site-announcement-card .site-empty-cta:hover {
  color: #fff !important;
  background: transparent !important;
  border-color: #fff !important;
}

/* Preserve original social sprite icons + invert-on-hover (style.css sprites are 34×70) */
.site-social-icons a.twitter,
.site-social-icons a.facebook,
.site-social-icons a.email {
  flex: 0 0 34px;
  width: 34px !important;
  height: 34px !important;
  margin: 0;
  display: block;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  background-size: 34px 70px !important;
}

.site-social-icons a.twitter:hover,
.site-social-icons a.twitter:focus-visible {
  background-image: url("../images/twitter.png") !important;
  background-position: 0 -35px !important;
}

.site-social-icons a.facebook:hover,
.site-social-icons a.facebook:focus-visible {
  background-image: url("../images/facebook.png") !important;
  background-position: 0 -35px !important;
}

.site-social-icons a.email:hover,
.site-social-icons a.email:focus-visible {
  background-image: url("../images/email.png") !important;
  background-position: 0 -35px !important;
}

.site-announce-meta {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
}

/* Featured / current post on blue: .lead is globally muted grey — force readable white */
body.site-app .site-announcement-card .lead,
body.site-app .site-announcement-card .site-lead,
body.site-app .site-announcement-card .site-announce-leader,
body.site-app .current.site-announcement-card .lead,
body.site-app .current .lead,
body.site-app .current .site-announce-leader {
  color: #ffffff !important;
  opacity: 1;
}

.site-announce-link {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  width: fit-content;
}

.site-announce-link:hover {
  color: #fef08a !important;
}

.site-announce-thumb {
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  display: inline-block;
  line-height: 0;
}

.site-announce-thumb img {
  width: 200px;
  height: 200px;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.site-perf-sub {
  color: var(--site-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.site-social-row .btn {
  min-height: 40px;
}

.site-login-links {
  display: grid;
  gap: 0.4rem;
  text-align: right;
}

.site-login-links a {
  display: block;
}

.site-modal-card .form-control-lg {
  min-height: 48px;
}

.site-plan-card {
  position: relative;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: 1.1rem 1rem;
  text-align: center;
  background: #f8fafc;
}

.site-plan-card-featured {
  border-color: var(--site-accent);
  background: linear-gradient(180deg, #eff6ff 0%, #fff 70%);
  box-shadow: var(--site-shadow);
}

.site-plan-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--site-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-plan-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: #053268;
  line-height: 1.1;
}

.site-plan-price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-muted);
}

.site-plan-name {
  font-weight: 700;
  color: var(--site-accent);
  margin: 0.25rem 0 0.35rem;
}

.site-processor-toggle {
  background: #f1f5f9;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
}

/* U4: PayPal / Square as button group */
body.site-app .site-processor-btns .btn {
  min-height: 2.75rem;
  font-weight: 600;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

body.site-app .site-processor-btns .btn-check:checked + .btn {
  background-color: var(--site-accent);
  border-color: var(--site-accent);
  color: #fff;
}

.site-pay-slot {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: 1rem 0.75rem;
  background: #fff;
  min-height: 0;
  position: relative;
  overflow: hidden; /* contain PayPal iframes so they do not cover Square fields */
  z-index: 0;
}

/* Equal pay slots — do not look “selected” until user acts */
.site-pay-slot--featured {
  border-color: var(--site-border);
  background: #fff;
}

.site-plan-price--sm {
  font-size: 1.45rem;
  margin-bottom: 0.15rem;
}

.site-plan-badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.site-pay-btn-slot {
  min-height: 120px;
  max-height: 160px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

/* PayPal block must not paint over Square form */
body.site-app #paypal-section {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-bottom: 0.5rem;
}

body.site-app #paypal-section iframe {
  max-width: 100% !important;
}

body.site-app #square-section {
  position: relative;
  z-index: 5;
  clear: both;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  background: #fff;
}

body.site-app #square-section .site-square-plans {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem !important;
}

body.site-app #square-section .site-square-fields {
  position: relative;
  z-index: 6;
  background: #fff;
  padding-top: 0.25rem;
}

.site-plan-select {
  max-width: 320px;
}

/* Plan “Best value” tag sits above the card so Monthly/Yearly bodies stay aligned */
body.site-app .site-plan-tag {
  min-height: 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

body.site-app .site-plan-tag--best {
  color: #15803d;
}

body.site-app .site-plan-tag--empty {
  visibility: hidden;
  user-select: none;
}

/* Square plan chooser (same shape as PayPal slots) */
body.site-app button.site-square-plan {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  flex: 0 0 auto;
  height: auto;
  min-height: 7.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.site-app button.site-square-plan:hover {
  border-color: rgba(53, 124, 217, 0.45);
}

body.site-app button.site-square-plan.active {
  border-color: var(--site-accent);
  background: linear-gradient(180deg, #eff6ff 0%, #fff 80%);
  box-shadow: 0 0 0 2px rgba(53, 124, 217, 0.2);
}

body.site-app .site-square-card-host {
  min-height: 50px;
}

body.site-app .site-plan-card-featured {
  /* Informational only — never imply pre-selected payment */
  border-color: var(--site-border);
  background: #f8fafc;
  box-shadow: none;
}

body.site-app .subscribe-cta {
  color: var(--site-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* Phase 3 / R4 member blog — page strip clears fixed photo nav */
body.site-app.site-nav-fixed .site-market-strip--page {
  margin-top: 0;
  position: relative;
  z-index: 1020;
}

.site-blog-page .site-blog-hero {
  margin-top: 0.25rem;
}

/* Kill legacy blog.css .h-md-250 max-height that clipped thumbs */
body.site-app .site-blog-page .h-md-250,
body.site-app .site-blog-page .h-250,
body.site-app .site-post-card.h-md-250,
body.site-app .site-post-card.h-250 {
  max-height: none !important;
  height: auto !important;
}

/* Standardized post list card: text left, fixed square media right (all breakpoints) */
.site-blog-page .site-post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem;
  gap: 0.65rem 0.85rem;
  align-items: center;
  background: var(--site-card);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  overflow: hidden;
  box-shadow: var(--site-shadow);
  padding: 0.9rem 0.9rem 0.9rem 1.05rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  min-height: 7.5rem;
  height: auto;
  max-height: none;
}

@media (min-width: 576px) {
  .site-blog-page .site-post-card {
    grid-template-columns: minmax(0, 1fr) 7.5rem;
    gap: 0.75rem 1rem;
    padding: 1rem 1rem 1rem 1.15rem;
    min-height: 8.25rem;
  }
}

.site-blog-page .site-post-card:hover {
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.site-blog-page .site-post-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.site-blog-page .site-post-cat {
  color: var(--site-accent) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.site-blog-page .site-post-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--site-text);
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

@media (min-width: 576px) {
  .site-blog-page .site-post-card-title {
    font-size: 1.08rem;
  }
}

.site-blog-page .site-post-card-date {
  font-size: 0.8rem;
  color: var(--site-muted);
  margin: 0;
}

.site-blog-page .site-post-leader {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.4;
  margin: 0.2rem 0 0.15rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.site-blog-page .site-post-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--site-accent);
  margin-top: 0.15rem;
  align-self: flex-start;
}

.site-blog-page .site-post-card-media {
  width: 6.75rem;
  height: 6.75rem;
  justify-self: end;
  align-self: center;
}

@media (min-width: 576px) {
  .site-blog-page .site-post-card-media {
    width: 7.5rem;
    height: 7.5rem;
  }
}

.site-blog-page .site-post-thumb {
  width: 100%;
  height: 100%;
  border: 1px solid var(--site-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  display: block;
  line-height: 0;
}

.site-blog-page .site-post-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.site-blog-page .site-blog-quotes {
  padding-top: 1.5rem;
}

.site-blog-page .current.site-announcement-card a.site-announce-link {
  position: relative;
  z-index: 1;
}

/* Phase 4 account / support */
.site-account-page .site-account-dl {
  margin: 0;
}

.site-account-page .site-account-dl > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--site-border);
}

.site-account-page .site-account-dl > div:last-child {
  border-bottom: 0;
}

.site-account-page .site-account-dl dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--site-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.site-account-page .site-account-dl dd {
  margin: 0;
  color: var(--site-text);
  font-weight: 600;
  word-break: break-word;
}

.site-account-page .site-account-actions .btn {
  min-height: 44px;
}

.site-account-page .site-account-card-title {
  color: var(--site-accent);
  font-weight: 700;
}

.site-account-page .site-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.site-account-page .site-status-badge--ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.site-account-page .site-status-badge--cancel {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.site-account-page .site-plan-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* Receipt invoice card + print */
.site-receipt-print {
  overflow-x: auto;
}

body.site-app .site-invoice-box,
body.site-app .invoice-box {
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  font-size: 0.8rem;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #fff;
}

body.site-app .site-invoice-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--site-text);
}

body.site-app .site-invoice-outer,
body.site-app .invoice-box table {
  width: 100%;
  max-width: 624px;
  line-height: 1.4;
  text-align: left;
  margin: 0 auto;
  border-collapse: collapse;
}

body.site-app .invoice-box table td {
  padding: 0.45rem;
  vertical-align: top;
}

body.site-app .invoice-box table tr.top td:nth-child(2),
body.site-app .site-invoice-date {
  text-align: right;
}

body.site-app .invoice-box table tr.information td:nth-child(2) {
  text-align: right;
}

body.site-app .site-invoice-logo {
  width: 100%;
  max-width: 100px;
  height: auto;
}

body.site-app .site-invoice-data {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

body.site-app .site-invoice-data th {
  background: var(--site-accent) !important;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 0.45rem;
  line-height: 1.25;
}

body.site-app .site-invoice-data td {
  text-align: center;
  padding: 0.45rem;
  border-bottom: 1px solid #e2e8f0;
}

body.site-app .site-invoice-data tr:nth-child(even) td {
  background: #f8fafc;
}

body.site-app .site-invoice-return {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
}

body.site-app .site-invoice-return th {
  background: var(--site-accent);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
}

body.site-app .site-invoice-return td {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
}

body.site-app .site-invoice-footnote {
  font-size: 0.7rem;
  color: #64748b;
}

body.site-app .site-invoice-legal {
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 576px) {
  .site-account-page .site-account-dl > div {
    grid-template-columns: 1fr;
  }
}

@media print {
  body.site-app .site-navbar,
  body.site-app .site-footer,
  body.site-app .footer,
  body.site-app .site-mobile-cta,
  body.site-app .site-receipt-toolbar,
  body.site-app .site-market-strip {
    display: none !important;
  }

  body.site-app {
    padding-bottom: 0 !important;
    background: #fff !important;
  }

  body.site-app .site-invoice-box,
  body.site-app .invoice-box {
    box-shadow: none;
    border: 0;
    width: 100%;
    max-width: none;
  }
}

/* ---------- Market context strip (Phase R1 Option E — one-line collapsible) ---------- */
.site-market-strip {
  --market-up: #4ade80;
  --market-down: #f87171;
  --market-flat: #94a3b8;
  width: 100%;
  z-index: 2;
}

.site-market-strip--compact.site-market-strip--banner {
  margin-top: auto;
  flex: 0 0 auto;
  width: 100%;
  background: rgba(15, 23, 42, 0.82);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0;
  color: #e2e8f0;
}

.site-market-strip--compact.site-market-strip--page {
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 0.45rem 0;
  color: #e2e8f0;
}

.site-market-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  min-height: 1.85rem;
}

.site-market-line-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.site-market-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
  line-height: 1.2;
}

.site-market-badge--actual {
  background: rgba(74, 222, 128, 0.16);
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.4);
}

.site-market-badge--estimated {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
}

.site-market-asof-sub {
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.72rem;
}

.site-market-heading {
  font-weight: 700;
  font-size: 0.8rem;
  color: #f8fafc;
  white-space: nowrap;
}

.site-market-asof {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.site-market-asof .bi {
  color: #7dd3fc;
  font-size: 0.85rem;
}

.site-market-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.1rem 0;
  scrollbar-width: thin;
}

.site-market-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding: 0.18rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* Clickable chips → fund-details.php */
a.site-market-chip {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.site-market-chip:visited {
  color: inherit;
}

a.site-market-chip:hover,
a.site-market-chip:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(148, 163, 184, 0.4);
  outline: none;
  box-shadow: 0 0 0 2px rgba(53, 124, 217, 0.35);
  text-decoration: none;
  color: inherit;
}

.site-market-fund-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.site-market-fund-link:hover,
.site-market-fund-link:focus-visible {
  color: #93c5fd;
  text-decoration: underline;
  outline: none;
}

.site-market-chip-key {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  white-space: nowrap;
}

.site-market-chip-proxy {
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.88;
  color: #94a3b8;
}

.site-market-chip-chg {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--market-flat);
}

.site-market-chip--up .site-market-chip-chg {
  color: var(--market-up);
}

.site-market-chip--down .site-market-chip-chg {
  color: var(--market-down);
}

.site-market-chip--up {
  border-color: rgba(74, 222, 128, 0.25);
}

.site-market-chip--down {
  border-color: rgba(248, 113, 113, 0.25);
}

.site-market-details-btn {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.site-market-details-btn:hover,
.site-market-details-btn:focus-visible {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.site-market-details-btn .bi {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.site-market-details-btn:not(.collapsed) .bi {
  transform: rotate(180deg);
}

.site-market-details {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-market-empty {
  font-size: 0.8rem;
  color: #94a3b8;
}

.site-market-empty--inline {
  flex: 1 1 auto;
  min-width: 0;
}

.site-market-disclaimer {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 72rem;
}

.site-market-disclaimer strong {
  color: #cbd5e1;
  font-weight: 700;
}

.site-market-details-inner {
  padding-bottom: 0.25rem;
}

.site-market-mode-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin: 0;
}

.site-market-gap-note {
  display: block;
  margin-top: 0.35rem;
  color: #fcd34d;
  font-size: 0.72rem;
}

.site-market-details-table-wrap {
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.45);
}

.site-market-details-table {
  color: #e2e8f0;
  font-size: 0.75rem;
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-color: #e2e8f0;
  --bs-table-border-color: rgba(148, 163, 184, 0.15);
}

.site-market-details-table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 700;
  border-bottom-color: rgba(148, 163, 184, 0.25);
  white-space: nowrap;
}

.site-market-details-table td,
.site-market-details-table th {
  padding: 0.4rem 0.55rem;
  vertical-align: top;
}

.site-market-td-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.1rem;
  line-height: 1.3;
}

.site-market-details-table .site-market-chip-chg {
  font-size: 0.8rem;
}

.site-market-row--up .site-market-chip-chg {
  color: var(--market-up);
}

.site-market-row--down .site-market-chip-chg {
  color: var(--market-down);
}

@media (max-width: 576px) {
  .site-market-line {
    gap: 0.3rem 0.45rem;
  }

  .site-market-heading {
    display: none;
  }

  .site-market-asof {
    font-size: 0.7rem;
    white-space: normal;
  }

  .site-market-details-btn {
    margin-left: 0;
  }
}

/* ---------- Phase R2 / R5 / U0 flow — calmer homepage sections ---------- */
/* Continuous surface after hero: fewer band flips so the page reads as one story */
body.site-app .site-page-section {
  padding: 2.5rem 0;
  background: transparent !important;
  border: 0 !important;
}

body.site-app #how-it-works.site-page-section,
body.site-app #allocation-history.site-page-section {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

body.site-app .site-page-section > .container {
  max-width: var(--site-container);
}

body.site-app .site-page-section .site-section-head {
  margin-bottom: 0.85rem;
}

/* Soft full-page canvas under main content (not per-section paint) */
body.site-app:not(.site-nav-fixed) #announcements,
body.site-app #announcements,
body.site-app #service,
body.site-app #pricing,
body.site-app #performance,
body.site-app #how-it-works,
body.site-app #allocation-history,
body.site-app #quotes,
body.site-app #contact-us {
  background: transparent !important;
}

/* Single subtle band only for dense performance block */
body.site-app #performance.site-page-section {
  background: rgba(241, 245, 249, 0.85) !important;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

body.site-app #announcements.site-page-section {
  padding-top: 1.75rem;
  border-top: 0 !important;
}

body.site-app .site-lead-card {
  margin-bottom: 1rem !important;
  box-shadow: none !important;
  border-color: var(--site-border) !important;
  background: #fff;
}

body.site-app .performance-grid {
  --bs-gutter-y: 0.85rem;
}

body.site-app .how-it-works-grid {
  --bs-gutter-y: 0.85rem;
}

/* Fewer nested “box in a box” effects */
body.site-app .site-card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  border-color: var(--site-border) !important;
}

body.site-app .site-card:hover {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07) !important;
}

body.site-app .site-card .site-dual-table,
body.site-app .site-card .perf-img.site-dual-table,
body.site-app .site-perf-card .site-dual-table {
  box-shadow: none !important;
  border: 1px solid var(--site-border) !important;
  border-radius: var(--site-radius-sm);
}

body.site-app .site-perf-primary-table {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(53, 124, 217, 0.2) !important;
}

body.site-app .site-bench-card {
  box-shadow: none !important;
}

body.site-app .site-kpi-card {
  box-shadow: none !important;
}

body.site-app .site-price-card {
  box-shadow: none !important;
}

body.site-app .site-price-card--featured {
  box-shadow: 0 2px 12px rgba(53, 124, 217, 0.1) !important;
}

body.site-app .site-hiw-card {
  box-shadow: none !important;
}

/* Performance stack: less padding stack on nested cards */
body.site-app #performance .site-card {
  padding: 1rem 1.1rem;
}

body.site-app #performance .site-perf-card {
  padding: 1rem 1.1rem 1.15rem;
}

body.site-app #performance .site-lead-card {
  max-width: none;
}

body.site-app .site-section-head {
  border-image: linear-gradient(90deg, transparent, rgba(53, 124, 217, 0.55), transparent) 1;
}

body.site-app .site-section-lede {
  color: var(--site-muted);
  max-width: 46rem;
  margin: 0 auto 1.25rem;
  font-size: 1rem;
  text-align: center;
  line-height: 1.55;
}

body.site-app .site-section-note {
  color: var(--site-muted);
  font-size: 0.85rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.5;
}

body.site-app .site-lead-card {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

body.site-app .site-copy,
body.site-app .site-card > p,
body.site-app .site-lead-card > p,
body.site-app .site-hiw-card p,
body.site-app .service-right p,
body.site-app .performance-info p,
body.site-app .allocation-history-info p {
  color: var(--site-text);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

body.site-app .site-hiw-card.text-center p {
  text-align: center;
}

body.site-app .site-card-title {
  font-weight: 700;
  color: var(--site-text);
  margin-bottom: 0.75rem;
  text-align: left;
}

body.site-app .site-hiw-card.text-center .site-card-title {
  text-align: center;
}

body.site-app .site-feature-img {
  width: 100%;
  height: auto;
  box-shadow: var(--site-shadow);
  border: 1px solid var(--site-border);
}

body.site-app .site-perf-sub {
  color: var(--site-accent);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0.25rem 0 0.75rem;
  text-align: center;
}

/* Kill legacy float/hover chrome inside modern cards (not dual tables) */
body.site-app .site-card.how-it-works-image,
body.site-app .site-card.performance-image {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  background: var(--site-card) !important;
  border: 1px solid var(--site-border) !important;
  box-shadow: var(--site-shadow) !important;
  text-align: left !important;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

body.site-app .site-card.how-it-works-image:hover,
body.site-app .site-card.performance-image:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1) !important;
  background: var(--site-card) !important;
}

body.site-app .site-hiw-card .dollar,
body.site-app .site-hiw-card .chart,
body.site-app .site-hiw-card .pp-logo,
body.site-app .site-hiw-card .faq,
body.site-app .site-hiw-card .cust,
body.site-app .site-hiw-card .strip {
  display: none !important;
}

/* HIW icons: “negative” / invert on card hover (like social sprites) */
body.site-app .site-hiw-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(53, 124, 217, 0.12);
  color: var(--site-accent);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  transition: background 0.15s ease, color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

/* FAQ / Customer Q&A (and any centered HIW cards): icon + title + CTA centered */
body.site-app .site-hiw-card--center,
body.site-app .site-hiw-card.text-center {
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.site-app .site-hiw-card--center .site-hiw-icon,
body.site-app .site-hiw-card.text-center .site-hiw-icon {
  margin-left: auto;
  margin-right: auto;
}

body.site-app .site-hiw-card--center .site-card-title,
body.site-app .site-hiw-card.text-center .site-card-title {
  text-align: center;
  width: 100%;
}

body.site-app .site-hiw-card--center p,
body.site-app .site-hiw-card.text-center p {
  text-align: center;
  max-width: 28rem;
}

body.site-app .site-hiw-card--center .btn,
body.site-app .site-hiw-card.text-center .btn {
  align-self: center;
}

/* Long-copy HIW cards: icon centered, body left for readability */
body.site-app .site-hiw-card:not(.text-center):not(.site-hiw-card--center) .site-hiw-icon {
  display: flex;
  margin-left: 0;
  margin-right: auto;
}

body.site-app .site-bench-delta {
  font-size: 1.05rem;
  color: var(--site-text);
  line-height: 1.45;
}

body.site-app .site-bench-delta-pp {
  display: inline-block;
  margin-left: 0.25rem;
  font-weight: 700;
  color: #15803d;
}

body.site-app .site-hiw-card:hover .site-hiw-icon,
body.site-app .site-hiw-card:focus-within .site-hiw-icon {
  background: var(--site-accent);
  color: #fff;
  filter: none;
  box-shadow: 0 2px 8px rgba(53, 124, 217, 0.35);
}

body.site-app .service-left,
body.site-app .service-right {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.site-app .service-right h2,
body.site-app .service-info h2 {
  color: var(--site-text);
}

body.site-app .site-perf-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--site-border);
  font-weight: 700;
  color: var(--site-text);
}

body.site-app .site-perf-caption em {
  font-weight: 500;
  color: var(--site-muted);
  font-style: normal;
  font-size: 0.9rem;
}

/* Always-visible footer actions under perf cards (not legacy hover overlay). */
body.site-app .site-perf-actions {
  margin-top: 0.85rem;
  text-align: center;
}

body.site-app .site-perf-actions .btn {
  min-height: 44px;
}

/*
 * Kill W3Layouts image-overlay hover on modern perf cards.
 * Legacy style.css: .desc-p { display:none; height:100% } +
 * .performance-image:hover div.desc-p { display:block }.
 * With position:static (below), height:100% made the actions row as tall as
 * the dual funds table on hover — full-page stretch under "Risk details".
 */
body.site-app .desc-p,
body.site-app .site-perf-actions.desc-p {
  display: block !important;
  position: static !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  opacity: 1 !important;
  transform: none !important;
  background: transparent !important;
  padding: var(--site-space-3) 0 0 !important;
  text-align: center !important;
}

body.site-app .performance-image:hover > .desc-p,
body.site-app .performance-image:hover .desc-p,
body.site-app .performance-image:hover .site-perf-actions {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  position: static !important;
}

/* Generic horizontal scroll only for single tables (quotes/archive) — NOT dual risk tables */
body.site-app .site-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.site-app .site-table-scroll table {
  margin-bottom: 0;
}

/*
 * Dual performance tables (riskTableLeft + riskTableRight):
 * tablizer PHP emits left table, closes an open wrapper, then overflow:auto right pane.
 * Keep Year + TSP Coach fixed left; only the right pane scrolls horizontally.
 */
body.site-app .site-dual-table,
.modal .site-dual-table {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  max-width: 100%;
  overflow: hidden;
  box-shadow: var(--site-shadow);
  border: 1px solid var(--site-border);
  border-radius: 0.5rem;
  background: #fff;
}

body.site-app .site-dual-table--flat,
.modal .site-dual-table--flat {
  box-shadow: none;
  border: none;
  border-radius: 0;
}

/* First child wraps left table (closed by tablizer after left); flat mode may be the table itself */
body.site-app .site-dual-table > div:first-child,
.modal .site-dual-table > div:first-child {
  flex: 0 0 auto;
  float: none !important;
  width: auto !important;
  max-width: none;
  overflow: visible;
}

body.site-app .site-dual-table .riskTableLeft,
.modal .site-dual-table .riskTableLeft,
body.site-app .site-dual-table--flat > .riskTableLeft,
.modal .site-dual-table--flat > .riskTableLeft {
  float: none !important;
  width: auto !important;
  max-width: none;
  margin: 0 !important;
  background: #fff;
  position: relative;
  z-index: 2;
  box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.12);
}

/* Right pane: remaining width, horizontal scroll only */
body.site-app .site-dual-table > div[style*="overflow"],
.modal .site-dual-table > div[style*="overflow"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  float: none !important;
}

body.site-app .site-dual-table .riskTableRight,
.modal .site-dual-table .riskTableRight {
  width: max-content !important;
  min-width: 100%;
  margin: 0 !important;
}

body.site-app .site-card .site-dual-table,
body.site-app .site-card .perf-img.site-dual-table {
  margin: 0;
  box-shadow: none;
  border: 1px solid var(--site-border);
}

body.site-app .perf-img.site-dual-table {
  position: relative;
  display: flex !important;
  max-width: 100%;
  box-shadow: none !important;
}

/* Pricing band */
body.site-app .site-pricing-section {
  position: relative;
}

body.site-app .site-price-card {
  position: relative;
  padding: 1.5rem 1.25rem;
  gap: 0.35rem;
}

body.site-app .site-price-card--featured {
  border-color: rgba(53, 124, 217, 0.45);
  box-shadow: 0 8px 28px rgba(53, 124, 217, 0.12);
}

body.site-app .site-price-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(53, 124, 217, 0.12);
  color: var(--site-accent);
  border: 1px solid rgba(53, 124, 217, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

body.site-app .site-price-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--site-muted);
}

body.site-app .site-price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--site-text);
  line-height: 1.1;
  margin: 0.35rem 0 0.15rem;
  letter-spacing: -0.02em;
}

body.site-app .site-price-period {
  color: var(--site-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Equal-height price CTAs (same class, same min-height, flex alignment) */
body.site-app .site-price-btn {
  min-height: 48px !important;
  height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem !important;
  line-height: 1.2 !important;
  font-weight: 600;
  margin-top: auto;
  box-sizing: border-box;
}

body.site-app .btn-outline-primary {
  --bs-btn-color: var(--site-accent);
  --bs-btn-border-color: var(--site-accent);
  --bs-btn-hover-bg: var(--site-accent);
  --bs-btn-hover-border-color: var(--site-accent);
  --bs-btn-hover-color: #fff;
  min-height: 44px;
}

body.site-app .row.g-4 {
  --bs-gutter-y: 1.25rem;
}

/* Sticky mobile CTA (footer hide-once left intact) */
body.site-app .site-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 55, 0.96) 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.2);
}

body.site-app .site-mobile-cta .btn {
  min-height: 44px;
  font-weight: 600;
}

body.site-app .site-mobile-cta .btn-outline-light {
  border-color: rgba(226, 232, 240, 0.45);
  color: #e2e8f0;
}

body.site-app .site-mobile-cta .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 767.98px) {
  /* Keep clear of fixed footer + optional sticky mobile CTA */
  body.site-app {
    padding-bottom: calc(12rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.site-app:has(.site-mobile-cta) {
    padding-bottom: calc(14.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.site-app #toTop {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  body.site-app:has(.site-mobile-cta) #toTop {
    bottom: calc(7.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Reduced motion: keep interactions calm */
@media (prefers-reduced-motion: reduce) {
  body.site-app *,
  body.site-app *::before,
  body.site-app *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Auth pages without legacy CSS still need basic form spacing */
body.site-app.site-nav-fixed .site-auth-page {
  padding-top: 0.5rem;
}

/* Legacy section wrappers — kill old colors/floats, keep vertical section padding */
body.site-app .service,
body.site-app .performance,
body.site-app .how-it-works,
body.site-app .allocation-history,
body.site-app .contact-us {
  background: transparent !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.site-app .how-it-works-grid,
body.site-app .performance-grid,
body.site-app .service-grid {
  margin: 0 !important;
}

body.site-app .performance-image .caption,
body.site-app .performance-image ul {
  display: none !important;
}

/* ---------- Phase R3 — performance KPIs + collapsible details ---------- */
body.site-app .site-kpi-row {
  --bs-gutter-y: 0.75rem;
}

body.site-app .site-kpi-card {
  padding: 1rem 0.75rem;
  border-top: 3px solid var(--site-accent);
}

body.site-app .site-kpi-value {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  color: var(--site-text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

body.site-app .site-kpi-value--lg {
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

body.site-app .site-kpi-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--site-text);
  margin-top: 0.25rem;
}

body.site-app .site-kpi-hint {
  font-size: 0.72rem;
  color: var(--site-muted);
  margin-top: 0.1rem;
}

body.site-app .site-kpi-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.55rem;
}

body.site-app .site-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.site-app .site-kpi-pill .bi {
  color: var(--site-accent);
}

body.site-app .site-perf-details-card {
  background: #fff;
}

body.site-app .site-details-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
}

body.site-app .site-details-toggle .bi {
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}

body.site-app .site-details-toggle:not(.collapsed) .bi {
  transform: rotate(180deg);
}

body.site-app .site-details-toggle .site-details-label-hide {
  display: none;
}

body.site-app .site-details-toggle:not(.collapsed) .site-details-label-show {
  display: none;
}

body.site-app .site-details-toggle:not(.collapsed) .site-details-label-hide {
  display: inline;
}

body.site-app #compareTableDetails {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--site-border);
}

/* Annualized context strip under KPIs */
body.site-app .site-bench-card {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--site-accent);
}

body.site-app .site-bench-title {
  font-size: 0.9rem;
  color: var(--site-text);
  line-height: 1.4;
}

body.site-app .site-bench-item {
  background: #f8fafc;
  border: 1px solid var(--site-border);
  border-radius: 0.5rem;
  padding: 0.55rem 0.4rem;
  height: 100%;
}

body.site-app .site-bench-item--coach {
  background: rgba(53, 124, 217, 0.08);
  border-color: rgba(53, 124, 217, 0.35);
}

body.site-app .site-bench-val {
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--site-text);
}

body.site-app .site-bench-item--coach .site-bench-val {
  color: var(--site-accent);
}

body.site-app .site-bench-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--site-muted);
  margin-top: 0.15rem;
}

body.site-app .site-perf-primary-table {
  border: 1px solid rgba(53, 124, 217, 0.25);
  box-shadow: 0 4px 18px rgba(53, 124, 217, 0.08);
}

body.site-app .site-kpi-card--life {
  border-top-color: #0d9488;
}

body.site-app .site-method-note {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--site-border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.8rem;
}

body.site-app .site-method-note strong {
  color: var(--site-text);
}

/* ---------- U0 — Legacy quarantine (style.css W3layouts under body.site-app) ----------
 * Keep style.css loaded for riskTable*, social sprites, a few table rules.
 * Neutralize layout fossils that fight Bootstrap 5 + site-card sections.
 */
body.site-app .clearfix {
  clear: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: none !important;
}

body.site-app .service,
body.site-app .performance,
body.site-app .how-it-works,
body.site-app .allocation-history,
body.site-app .contact-us,
body.site-app .content.site-page-section {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  background-image: none !important;
}

body.site-app .service-left,
body.site-app .service-right,
body.site-app .service-grid,
body.site-app .how-it-works-grid,
body.site-app .performance-grid,
body.site-app .col-md-4.how-it-works-grid,
body.site-app .col-md-6.service-left,
body.site-app .col-md-6.service-right {
  float: none !important;
}

/*
 * Legacy decorative bare .border (old hiw underlines), NOT Bootstrap utilities.
 * Must exclude .alert / form / modal / card — bare "border" on alerts collapsed them (register-backup jumble).
 */
body.site-app div.border:not([class*="border-"]):not(.site-card):not(.alert):not(.card):not(.form-control):not(.modal-content):not(.modal-header):not(.modal-body):not(.modal-footer):not(table):not(td):not(th):not(hr):empty,
body.site-app .hiw-info > .border:not([class*="border-"]),
body.site-app .how-it-works-info > .border:not([class*="border-"]),
body.site-app .performance-info > .border:not([class*="border-"]) {
  width: auto !important;
  max-width: 4rem !important;
  height: 3px !important;
  padding: 0 !important;
  margin: var(--site-space-2) 0 var(--site-space-4) !important;
  background: var(--site-accent) !important;
  border: 0 !important;
}

body.site-app .service-info p,
body.site-app .how-it-works-info p,
body.site-app .performance-info p,
body.site-app .allocation-history-info p {
  width: auto !important;
  max-width: 46rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.site-app .service-left img,
body.site-app .perf-img img:not(.site-dual-table img) {
  max-width: 100% !important;
  height: auto !important;
}

/* .desc-p legacy kill: see performance section above (display/height/hover). */
body.site-app .performance-image {
  margin-top: 0 !important;
  text-align: left !important;
}

/* Prefer site tokens over legacy #649fe7 / #504f50 body copy where it still wins */
body.site-app .service-right h2,
body.site-app .service-info h2,
body.site-app .how-it-works-info h2,
body.site-app .performance-info h2,
body.site-app .performance-info h3 {
  color: var(--site-text) !important;
}

body.site-app .container {
  max-width: var(--site-container);
}

/* A+B: quiet chrome (shadows set in flow section above); confident accent stays on .btn-primary */

/* Tablet breakpoint hook for later U1–U2 (foundation only) */
@media (min-width: 768px) and (max-width: 991.98px) {
  body.site-app .site-page-section {
    padding: var(--site-space-5) 0;
  }
}

/* Conversion / archive / contact polish */
body.site-app .site-cta-band {
  background: linear-gradient(135deg, rgba(53, 124, 217, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%);
  border: 1px solid rgba(53, 124, 217, 0.2);
  padding: 1.25rem 1.5rem;
}

body.site-app .site-conv-block .site-card-title {
  color: var(--site-text);
}

body.site-app .site-archive-panel {
  padding: 1.15rem 1rem;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

body.site-app .site-archive-nav {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.site-app .site-archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  gap: 0.45rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

body.site-app .site-archive-list > li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.site-app .site-archive-list > li.site-archive-current {
  grid-column: 1 / -1;
  min-width: 0;
}

body.site-app .site-archive-link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.35rem;
  min-height: var(--site-touch);
  line-height: 1.25;
  border-radius: var(--site-radius-sm);
  border: 1px solid var(--site-border);
  background: #fff;
  color: var(--site-accent) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.site-app .site-archive-link:hover {
  background: var(--site-accent-soft);
  border-color: rgba(53, 124, 217, 0.35);
  color: var(--site-accent-hover) !important;
}

body.site-app .site-archive-link--current {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: #fff !important;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.3;
}

body.site-app .site-archive-link--current:hover {
  background: var(--site-accent-hover);
  color: #fff !important;
}

body.site-app .site-contact-card .site-social-icons {
  justify-content: flex-start;
}

body.site-app .site-blog-page .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
}

body.site-app .site-blog-page .accordion-button:not(.collapsed) {
  color: var(--site-accent);
  background: var(--site-accent-soft);
  box-shadow: none;
}

body.site-app .site-blog-page .accordion-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--site-text);
}

/* ---------- U1 global shell: offcanvas nav + auth cards ---------- */
body.site-app .site-nav-offcanvas {
  --bs-offcanvas-width: min(20rem, 92vw);
  background: linear-gradient(180deg, var(--site-nav-bg) 0%, var(--site-nav-bg-2) 100%) !important;
}

body.site-app .site-nav-offcanvas .nav-link {
  color: #fff !important;
  padding: 0.65rem 0.75rem !important;
  border-radius: var(--site-radius-sm);
  min-height: var(--site-touch);
  display: flex;
  align-items: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.75);
  background: transparent;
}

body.site-app .site-nav-offcanvas .nav-link:hover,
body.site-app .site-nav-offcanvas .nav-link:focus {
  background: transparent;
  color: var(--site-nav-active) !important;
}

body.site-app .site-nav-offcanvas .site-nav-cta-primary {
  justify-content: center;
  text-align: center;
}

body.site-app .site-nav-offcanvas .border-secondary {
  border-color: rgba(148, 163, 184, 0.35) !important;
}

/* Desktop flex row for dual ul from site_nav_render_links */
body.site-app .site-navbar .d-lg-flex.flex-grow-1 {
  gap: 0.5rem;
}

body.site-app .site-navbar .d-lg-flex.flex-grow-1 > .navbar-nav.me-auto {
  flex: 1 1 auto;
}

/* Retire Bootstrap-missing btn-md feel */
body.site-app .btn-md {
  min-height: var(--site-touch);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
}

body.site-app .site-auth-page {
  min-height: calc(100vh - var(--site-nav-h) - 8rem);
  display: flex;
  align-items: center;
}

body.site-app .site-auth-page > .row {
  width: 100%;
}

body.site-app .site-auth-card {
  box-shadow: var(--site-shadow) !important;
}

body.site-app .site-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--site-accent-soft);
  color: var(--site-accent);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

body.site-app .site-404-code {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-accent);
  margin: 0;
}

body.site-app .site-auth-card .form-label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- U3 members & content surfaces ---------- */
body.site-app .site-blog-page .site-blog-hero .site-hero-kicker {
  margin-bottom: 0.35rem;
}

body.site-app .site-blog-page .site-blog-lede {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--site-muted);
  font-size: 1rem;
  line-height: 1.55;
}

body.site-app .site-blog-page .site-post-article {
  padding: 1.25rem 1.15rem;
}

/* Sharp pill for monthly allocation on light post cards (not glass hero kicker) */
body.site-app .site-blog-page .site-post-kicker,
body.site-app .site-post-article .site-post-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #357cd9 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.38rem 0.95rem;
  line-height: 1.2;
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  -webkit-font-smoothing: antialiased;
}


@media (min-width: 768px) {
  body.site-app .site-blog-page .site-post-article {
    padding: 1.75rem 2rem;
  }
}

body.site-app .site-blog-page .site-post-title {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 0.35rem;
}

body.site-app .site-blog-page .site-post-meta {
  text-align: center;
  color: var(--site-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Readable measure for post body */
body.site-app .site-blog-page .site-post-prose {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--site-text);
}

/* Featured post image (below article, above chart) */
body.site-app .site-blog-page .site-post-feature {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
}

body.site-app .site-blog-page .site-post-feature-frame {
  position: relative;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: #f8fafc;
  overflow: hidden;
  box-shadow: var(--site-shadow);
  line-height: 0;
}

body.site-app .site-blog-page .site-post-feature-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  background: #f8fafc;
}

body.site-app .site-blog-page .site-post-prose p {
  margin-bottom: 1rem;
}

body.site-app .site-blog-page .site-post-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--site-radius-sm);
}

body.site-app .site-blog-page .site-post-prose a {
  color: var(--site-accent);
  font-weight: 600;
  text-underline-offset: 0.12em;
}

/* Allocation % tiles */
body.site-app .site-allo-callout {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  text-align: center;
}

body.site-app .site-allo-callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--site-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

body.site-app .site-allo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 576px) {
  body.site-app .site-allo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.site-app .site-allo-tile {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  padding: 0.75rem 0.5rem;
  min-height: var(--site-touch);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

body.site-app .site-allo-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--site-muted);
}

body.site-app .site-allo-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--site-accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

/* Member gate card */
body.site-app .site-member-gate {
  max-width: 28rem;
  margin: 1.25rem auto 0.5rem;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(53, 124, 217, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%);
  border: 1px solid rgba(53, 124, 217, 0.22);
  border-radius: var(--site-radius);
}

body.site-app .site-member-gate .site-member-gate-icon {
  font-size: 1.75rem;
  color: var(--site-accent);
  display: block;
  margin-bottom: 0.5rem;
}

body.site-app .site-member-gate p {
  margin-bottom: 1rem;
  color: var(--site-text);
  line-height: 1.55;
  font-size: 0.98rem;
}

body.site-app .site-member-gate-note {
  font-size: 0.85rem;
  color: var(--site-muted);
  margin-top: 0.75rem;
  margin-bottom: 0 !important;
}

/* Chart card on single-post */
body.site-app .site-chart-card {
  padding: 1rem 0.75rem 1.25rem;
}

@media (min-width: 768px) {
  body.site-app .site-chart-card {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

body.site-app .site-chart-card .site-chart-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

body.site-app .site-chart-card .site-chart-gate {
  text-align: center;
  color: var(--site-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

body.site-app .site-chart-card .site-chart-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

body.site-app .site-chart-card .form-check-inline {
  margin-right: 0;
}

body.site-app .site-chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
  touch-action: pan-x pan-y;
}

body.site-app .site-blog-page .chart-container {
  position: relative;
  width: 100%;
  height: 360px;
  min-height: 260px;
  min-width: 0;
}

body.site-app .site-chart-scroll canvas {
  display: block;
  max-width: none;
  touch-action: pan-x pan-y;
}

@media (max-width: 767.98px) {
  /* Wide canvas so horizontal scroll engages; avoids squashed daily series */
  body.site-app .site-blog-page .chart-container {
    min-width: 640px;
    height: 300px;
  }

  body.site-app .site-chart-card .form-check-inline {
    display: block;
    margin-bottom: 0.35rem;
  }
}

/* Featured allocation badge */
body.site-app .site-announce-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}

/* FAQ/Q&A accordion skin */
body.site-app .site-blog-page .site-accordion-card {
  overflow: hidden;
}

body.site-app .site-blog-page .accordion-item {
  border-color: var(--site-border);
  background: transparent;
}

body.site-app .site-blog-page .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(53, 124, 217, 0.2);
  border-color: rgba(53, 124, 217, 0.35);
}

body.site-app .site-blog-page .accordion-button::after {
  filter: none;
}

/* Fund detail info cards (objective / strategy / risks) */
body.site-app .site-fund-info-card {
  padding: 1.15rem 1.1rem;
  border-top: 3px solid var(--site-accent);
}

body.site-app .site-fund-info-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--site-accent);
  margin: 0 0 0.5rem;
}

body.site-app .site-fund-info-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--site-text);
  margin: 0;
}

/* Cache bust note: bump ?v= on header link when this file changes */
