:root {
  --page-max: 1520px;
  --content-max: 880px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --radius: 8px;
  --bg: #f4f7f9;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --border: #d6dee6;
  --text: #17212b;
  --muted: #5b6978;
  --primary: #245f91;
  --primary-soft: #e5f0f8;
  --green: #1f7a4d;
  --green-soft: #e5f4ec;
  --amber: #9a6500;
  --amber-soft: #fff4d8;
  --red: #b3261e;
  --red-soft: #fdecea;
  --gray-soft: #f7f8fa;
  --teal: #166f73;
  --teal-soft: #e2f4f2;
  --violet: #5b4f9a;
  --violet-soft: #eeecfa;
  --fund-g: #2f6f46;
  --fund-f: #396a93;
  --fund-c: #0f766e;
  --fund-s: #a16207;
  --fund-i: #6d5bd0;
  --fund-u: #697586;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #82b7e5;
  outline-offset: 2px;
}

.site-header {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.eyebrow,
.label {
  margin: 0 0 var(--space-1);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h2 {
  margin-bottom: var(--space-2);
}

nav,
.actions,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

nav a {
  color: #27313d;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
}

nav a.active,
nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

main {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: var(--space-5) clamp(16px, 4vw, 56px);
}

.site-footer {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px) var(--space-5);
}

.disclosure-panel {
  padding: var(--space-3);
  color: var(--muted);
  background: #eef4f8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.disclosure-panel h2 {
  color: var(--text);
  font-size: 1.05rem;
}

.hero {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: clamp(32px, 6vw, 72px);
  color: #ffffff;
  background: linear-gradient(135deg, #183247 0%, #245f91 100%);
  border-radius: var(--radius);
}

.hero h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.hero p {
  max-width: 780px;
  color: #e8f1f7;
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-3);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: var(--space-4);
  align-items: start;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-3);
}

.card,
.panel,
.empty,
.toolbar,
.notice,
.strategy-selector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.card,
.panel,
.empty,
.toolbar,
.notice {
  padding: var(--space-3);
}

.panel {
  margin-top: var(--space-4);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-start;
  justify-content: space-between;
}

.panel > p,
.prose {
  max-width: var(--content-max);
}

.wide {
  grid-column: 1 / -1;
}

.metric-card strong,
.card strong {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1.1;
}

.metric-card .detail,
.card .detail,
.detail {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.small-strong {
  display: inline;
  font-size: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.recommended,
.badge.validated {
  color: var(--green);
  background: var(--green-soft);
}

.badge.alternative,
.badge.caution {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge.info {
  color: var(--primary);
  background: var(--primary-soft);
}

.badge.muted {
  color: var(--muted);
  background: var(--gray-soft);
}

.button,
.feature-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.button.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.58);
}

.button.subtle {
  color: #27313d;
  background: #f9fbfc;
}

.button:hover,
.feature-list a:hover {
  transform: translateY(-1px);
}

.strategy-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-3);
  padding: var(--space-2);
}

.strategy-selector a {
  color: #27313d;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
}

.strategy-selector a.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.strategy-card {
  display: grid;
  gap: var(--space-2);
  border-top: 4px solid var(--primary);
}

.strategy-card.recommended {
  border-top-color: var(--green);
}

.strategy-card.alternative {
  border-top-color: var(--amber);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-weight: 700;
}

.table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-top: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}

.historical-performance-table {
  min-width: 960px;
}

.subscriber-historical-table {
  table-layout: fixed;
  min-width: 1900px;
}

.subscriber-historical-table th {
  overflow-wrap: normal;
  white-space: normal;
}

.subscriber-historical-table th:first-child,
.subscriber-historical-table td:first-child {
  width: 260px;
}

.subscriber-historical-table th:nth-child(2),
.subscriber-historical-table td:nth-child(2) {
  width: 360px;
}

.subscriber-historical-table th:nth-child(n + 3):nth-child(-n + 8),
.subscriber-historical-table td:nth-child(n + 3):nth-child(-n + 8) {
  width: 150px;
}

.subscriber-historical-table td:nth-child(n + 3):nth-child(-n + 8) {
  white-space: nowrap;
}

.subscriber-historical-table th:last-child,
.subscriber-historical-table td:last-child {
  width: 380px;
}

.subscriber-historical-table .status-pill {
  max-width: 100%;
  align-items: flex-start;
  line-height: 1.25;
  white-space: normal;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #e6e9ee;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: #344354;
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr.transition td {
  border-top: 2px solid var(--primary);
  background: #f1f7fb;
  font-weight: 700;
}

tr.hold td {
  color: var(--muted);
}

.table-wrap code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.notice {
  background: #f9fbfd;
}

.notice.caution {
  color: #573c00;
  background: var(--amber-soft);
  border-color: #f1cc73;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.metric-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.metric-list div {
  display: grid;
  gap: 4px;
}

.metric-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-list dd {
  margin: 0;
}

.chart-card {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-axis {
  stroke: #b7c2cc;
  stroke-width: 1;
}

.chart-line-primary {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
}

.chart-line-secondary {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
}

.chart-bar-positive {
  fill: var(--green);
}

.chart-bar-negative {
  fill: var(--red);
}

.chart-fill-drawdown {
  fill: var(--amber);
  opacity: 0.8;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: var(--muted);
  font-size: 0.9rem;
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--primary);
}

.legend-swatch.secondary {
  background: var(--green);
}

.bar-row {
  display: grid;
  grid-template-columns: 56px 1fr minmax(90px, auto);
  gap: var(--space-2);
  align-items: center;
}

.chart-list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #e6e9ee;
}

.bar-fill {
  height: 100%;
  max-width: 100%;
  border-radius: 6px;
  background: var(--primary);
}

details {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--gray-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.copy-text {
  width: 100%;
  min-height: 260px;
  margin-top: var(--space-3);
  padding: var(--space-3);
  color: var(--text);
  background: var(--gray-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: 0.92rem/1.5 Consolas, "Courier New", monospace;
  resize: vertical;
}

.copy-status {
  min-height: 1.4em;
  margin: var(--space-2) 0 0;
  color: var(--green);
  font-weight: 700;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding: var(--space-4) var(--space-3);
  }

  .hero {
    padding: var(--space-4);
  }
}

.public-body {
  background: #f6f8f9;
  overflow-x: hidden;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.public-header-inner {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 56px);
}

.public-brand {
  display: grid;
  color: var(--text);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.public-brand small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.public-nav {
  justify-content: flex-end;
  min-width: 0;
}

.public-main {
  width: 100%;
  padding: 0;
}

.public-main > *,
.product-main > * {
  min-width: 0;
}

.public-hero {
  position: relative;
  display: grid;
  min-height: clamp(620px, calc(100svh - 68px), 820px);
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(105deg, #14232b 0%, #172f39 48%, #204a55 100%),
    #14232b;
}

.public-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(20, 35, 43, 0.97) 0%, rgba(20, 35, 43, 0.88) 36%, rgba(20, 35, 43, 0.45) 58%, rgba(20, 35, 43, 0.08) 100%);
  pointer-events: none;
}

.hero-signal-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: 0.9;
  pointer-events: none;
}

/* The static SVG and cycle details are decorative; the copy keeps its overlay. */
.beacon-visual {
  position: absolute;
  right: clamp(16px, 4vw, 72px);
  bottom: 140px;
  width: min(740px, 58vw);
  height: auto;
}

/* On tablets the full-width copy crosses the lantern; keep its backdrop dark. */
@media (min-width: 761px) and (max-width: 1100px) {
  .public-hero::after {
    background: linear-gradient(90deg, rgba(20, 35, 43, 0.97) 0%, rgba(20, 35, 43, 0.88) 36%, rgba(20, 35, 43, 0.66) 100%);
  }
}

.market-path {
  position: absolute;
  right: clamp(20px, 5vw, 86px);
  bottom: clamp(88px, 13vh, 140px);
  width: min(780px, 58vw);
  height: 250px;
}

.market-path span {
  position: absolute;
  display: block;
  width: 12px;
  min-height: 0;
  height: 12px;
  background: rgba(137, 212, 189, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}

.market-path::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(137, 212, 189, 0.78), rgba(241, 204, 115, 0.68), rgba(185, 199, 255, 0.76));
  clip-path: polygon(0 58%, 18% 49%, 35% 56%, 55% 38%, 73% 46%, 100% 32%, 100% 35%, 73% 49%, 55% 41%, 35% 59%, 18% 52%, 0 61%);
  opacity: 0.86;
}

.market-path span:nth-child(1) {
  left: 0;
  top: 56%;
}

.market-path span:nth-child(2) {
  left: 18%;
  top: 47%;
  background: rgba(241, 204, 115, 0.74);
}

.market-path span:nth-child(3) {
  left: 35%;
  top: 54%;
}

.market-path span:nth-child(4) {
  left: 55%;
  top: 36%;
  background: rgba(185, 199, 255, 0.72);
}

.market-path span:nth-child(5) {
  right: 0;
  top: 30%;
}

.cycle-band {
  position: absolute;
  right: clamp(20px, 5vw, 86px);
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 10px;
  width: min(760px, 58vw);
}

.cycle-year {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  align-items: center;
  min-height: 72px;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.cycle-year:nth-child(2) {
  background: rgba(22, 111, 115, 0.28);
}

.cycle-year:nth-child(3) {
  background: rgba(47, 111, 70, 0.28);
}

.cycle-year:nth-child(4) {
  background: rgba(109, 91, 208, 0.28);
}

.cycle-year span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.public-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  width: min(780px, calc(100% - clamp(16px, 7vw, 96px)));
  margin-left: clamp(16px, 7vw, 96px);
  padding: 80px 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.26);
}

.public-hero-copy h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1;
}

.public-hero-copy p {
  max-width: 680px;
  margin-bottom: 0;
  color: #eef5f5;
  font-size: 1.16rem;
  overflow-wrap: break-word;
}

.public-hero-copy p strong {
  color: #ffffff;
}

.public-actions,
.beta-form,
.product-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.product-header-actions {
  justify-content: flex-end;
}

.header-signout-form {
  display: inline-flex;
  margin: 0;
}

.join-main {
  display: grid;
  gap: 0;
  padding-top: var(--space-4);
}

.join-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) clamp(16px, 4vw, 56px);
  color: #ffffff;
  background: #14232b;
  border-radius: var(--radius);
}

.join-overview > * {
  min-width: 0;
}

.join-overview h1 {
  margin-bottom: var(--space-2);
  font-size: 3rem;
  line-height: 1.05;
}

.join-overview p {
  max-width: 760px;
  color: #e6eef0;
}

.join-overview .label,
.join-overview .eyebrow {
  color: #a8c1ca;
}

.join-request-form {
  display: grid;
  align-items: stretch;
  padding: var(--space-3);
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.join-request-form .detail {
  color: var(--muted);
  margin-bottom: 0;
}

.plan-card {
  min-height: 250px;
}

.compact-disclosures {
  max-height: 280px;
  padding: var(--space-2);
  overflow: auto;
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.onboarding-steps li {
  min-height: 52px;
  padding: var(--space-2);
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
}

.feedback-form,
.support-case-form {
  width: min(720px, 100%);
}

.public-section {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: var(--space-5) clamp(16px, 4vw, 56px);
}

.public-section + .public-section {
  border-top: 1px solid var(--border);
}

.public-section-intro,
.split-section,
.disclosures-section {
  background: #ffffff;
}

.public-section-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.section-heading {
  display: grid;
  gap: var(--space-1);
  max-width: 840px;
  margin-bottom: var(--space-4);
}

.section-heading h2,
.public-section-intro h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.public-card-grid,
.public-strategy-grid,
.public-evidence-grid,
.public-status-grid {
  display: grid;
  gap: var(--space-3);
}

.public-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.public-card-grid.three,
.public-strategy-grid,
.public-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.public-card,
.public-strategy {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-3);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow-wrap: anywhere;
}

.public-strategy.steady {
  border-top: 4px solid var(--teal);
}

.public-strategy.growth {
  border-top: 4px solid var(--primary);
}

.public-strategy.resilient {
  border-top: 4px solid var(--violet);
}

.public-evidence-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.public-chart,
.ytd-chart-grid {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-3);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.public-chart-muted {
  background: #fbfaf5;
}

.public-chart-row,
.ytd-chart-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(120px, 1fr) minmax(86px, auto);
  gap: var(--space-2);
  align-items: center;
}

.public-chart-row span,
.ytd-chart-row span {
  font-weight: 700;
}

.public-chart-row strong,
.ytd-chart-row strong {
  text-align: right;
}

.public-table {
  margin-top: var(--space-3);
}

.public-five-year-chart {
  margin: var(--space-3) 0 0;
}

.beta-section {
  background: #eef4f8;
}

.beta-form {
  align-items: end;
}

.beta-form .form-row {
  min-width: min(100%, 260px);
}

.fund-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.fund-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--primary);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.16);
}

.fund-badge.fund-g,
.fund-segment.fund-g {
  background: var(--fund-g);
}

.fund-badge.fund-f,
.fund-segment.fund-f {
  background: var(--fund-f);
}

.fund-badge.fund-c,
.fund-segment.fund-c {
  background: var(--fund-c);
}

.fund-badge.fund-s,
.fund-segment.fund-s {
  background: var(--fund-s);
}

.fund-badge.fund-i,
.fund-segment.fund-i {
  background: var(--fund-i);
}

.fund-badge.fund-u,
.fund-segment.fund-u {
  background: var(--fund-u);
}

.fund-badge.active {
  outline: 3px solid var(--green-soft);
}

.product-body {
  background: #f5f7f8;
  overflow-x: hidden;
}

.product-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.product-header-inner {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 56px) 12px;
}

.product-header-actions {
  align-items: center;
  justify-content: flex-end;
}

.product-header h1 {
  margin-bottom: 2px;
  font-size: 1.8rem;
}

.product-descriptor {
  margin-bottom: 0;
  color: var(--muted);
}

.product-env {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: #573c00;
  background: var(--amber-soft);
  border: 1px solid #f1cc73;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-body .product-env {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.product-nav {
  width: min(var(--page-max), 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px) 14px;
}

.product-main {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}

.subscriber-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  color: #ffffff;
  background: #14232b;
  border-radius: var(--radius);
}

.subscriber-brief-copy,
.subscriber-brief-metrics {
  min-width: 0;
}

.subscriber-brief-copy {
  display: grid;
  gap: var(--space-2);
}

.subscriber-brief-copy h2 {
  margin-bottom: 0;
  font-size: 1.85rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.subscriber-brief-copy p {
  max-width: 760px;
  margin-bottom: 0;
  color: #e6eef0;
  line-height: 1.55;
}

.subscriber-brief .label {
  color: #a8c1ca;
}

.subscriber-brief-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-2);
}

.subscriber-brief-metrics div {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  min-height: 104px;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.subscriber-brief-metrics span {
  color: #bfd1d8;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subscriber-brief-metrics strong {
  font-size: 1.25rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.action-due-panel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  color: #573c00;
  background: var(--amber-soft);
  border: 1px solid #f1cc73;
  border-radius: var(--radius);
}

.action-due-panel h3,
.action-due-panel p {
  margin-bottom: 0;
}

.advanced-diagnostics {
  margin-top: 0;
  padding: var(--space-2);
  background: #f9fbfc;
}

.product-surface-heading,
.strategy-switcher,
.portal-form,
.form-row,
.status-banner-stack,
.disclosure-list {
  display: grid;
  gap: var(--space-2);
}

.status-banner-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.product-surface-heading {
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: end;
}

.product-surface-heading > *,
.status-banner > *,
.portal-card > *,
.portal-panel > * {
  min-width: 0;
}

.product-surface-heading h2 {
  overflow-wrap: anywhere;
}

.strategy-switcher {
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
}

.strategy-switcher > * {
  min-width: 0;
}

.strategy-switcher:has(#calendar-year) {
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 1fr) auto;
  align-items: end;
  gap: 6px 10px;
}

.strategy-switcher:has(#calendar-year) label[for="strategy-select"] {
  grid-area: 1 / 1;
}

.strategy-switcher:has(#calendar-year) #strategy-select {
  grid-area: 2 / 1;
}

.strategy-switcher:has(#calendar-year) label[for="calendar-year"] {
  grid-area: 1 / 2;
}

.strategy-switcher:has(#calendar-year) #calendar-year {
  grid-area: 2 / 2;
}

.strategy-switcher:has(#calendar-year) button {
  grid-area: 2 / 3;
}

@media (max-width: 980px) {
  .product-surface-heading:has(#calendar-year) {
    grid-template-columns: 1fr;
  }
}

.strategy-switcher label,
.form-row label,
fieldset legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

select,
input,
textarea {
  max-width: 100%;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

select,
textarea,
.form-row input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  width: 100%;
}

select,
input {
  min-height: 44px;
  padding: 8px 10px;
  font: inherit;
}

select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #82b7e5;
  outline-offset: 2px;
}

.status-banner {
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.82rem;
  line-height: 1.25;
}

.status-banner span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.status-banner strong {
  flex: 0 0 auto;
  font-size: 0.75rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.status-banner.info {
  color: var(--primary);
  background: var(--primary-soft);
}

.status-banner.caution {
  color: #573c00;
  background: var(--amber-soft);
  border-color: #f1cc73;
}

.status-banner.critical {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f2b7b2;
}

.status-banner.success {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b7dbc7;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: var(--space-3);
}

.next-action-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portal-card,
.portal-panel,
.portal-empty {
  min-width: 0;
  padding: var(--space-3);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow-wrap: anywhere;
}

.portal-card {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: var(--space-2);
  min-height: 152px;
}

.portal-card strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.portal-card .label,
.portal-card .detail {
  margin-bottom: 0;
}

.portal-card strong.account-email {
  font-size: 1.05rem;
  line-height: 1.3;
}

.portal-card.primary-signal {
  border-left: 5px solid var(--green);
}

.portal-card.primary-signal strong {
  font-size: 1.85rem;
  line-height: 1.2;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.account-section {
  margin-top: 0;
}

.account-email {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.home-context-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.signal-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.signal-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid #e8edf2;
}

.signal-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.signal-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.signal-list dt,
.signal-list dd,
.product-main details,
.product-main details > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-main details > summary {
  line-height: 1.5;
}

.preference-group {
  display: grid;
  gap: var(--space-2);
}

.preference-group .label {
  margin-top: var(--space-2);
  margin-bottom: 0;
}

.card-topline,
.inline-actions,
.meter-topline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
}

.inline-actions {
  justify-content: flex-start;
  margin-top: var(--space-3);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #c8dced;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-main .status-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.performance-row > *,
.meter-topline > *,
.product-main .panel-header > * {
  min-width: 0;
  max-width: 100%;
}

.status-pill.success,
.status-pill.ready {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b7dbc7;
}

.status-pill.caution,
.status-pill.stale,
.status-pill.unknown {
  color: #573c00;
  background: var(--amber-soft);
  border-color: #f1cc73;
}

.status-pill.critical,
.status-pill.blocked {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f2b7b2;
}

.status-pill.unavailable {
  color: #4d5761;
  background: #eef1f4;
  border-color: #d5dce4;
}

.strategy-surface-grid,
.calendar-surface-grid,
.methodology-grid,
.definition-grid {
  display: grid;
  gap: var(--space-3);
}

.strategy-surface-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.strategy-surface-card {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}

.strategy-surface-card h3,
.methodology-item h3,
.definition-item h3,
.performance-row h3,
.calendar-month h3 {
  margin-bottom: var(--space-1);
  font-size: 1.05rem;
}

.calendar-surface-grid {
  grid-template-columns: 1fr;
}

.calendar-panel {
  scroll-margin-top: 16px;
}

.calendar-summary,
.overlay-list {
  margin-top: var(--space-3);
}

.calendar-month-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.calendar-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2);
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.timeline-month {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-1);
  min-height: 92px;
  padding: var(--space-2);
  border-right: 1px solid #e1e6ec;
}

.timeline-month:last-child {
  border-right: 0;
}

.timeline-month-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.timeline-month-heading .timeline-marker {
  margin: 0;
}

.timeline-month span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-month small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.month-segment-bar {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 34px;
  overflow: hidden;
  background: #e8edf2;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
}

.fund-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 100%;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.fund-segment:last-child {
  border-right: 0;
}

.fund-segment b {
  display: inline-block;
  color: #ffffff;
  font: inherit;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.calendar-month {
  padding: var(--space-2) 0 0;
  border-top: 1px solid var(--border);
}

.calendar-transition {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px 24px;
  min-height: 42px;
  padding: 16px 12px;
  border-bottom: 1px solid #e9eef3;
}

.calendar-transition > * {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.calendar-transfer,
.calendar-transition-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.calendar-transition-status .timeline-marker {
  margin: 0;
}

.calendar-delay-note {
  grid-column: 1 / -1;
  max-width: 90ch;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #e1ebe7;
}

.calendar-holding-periods p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.calendar-holding-periods .timeline-marker {
  margin: 0;
}

.calendar-history-details {
  margin-top: var(--space-3);
}

.calendar-history-details > summary {
  padding: 12px 0;
  font-weight: 700;
}

.calendar-transition time {
  font-weight: 700;
}

@media (min-width: 761px) and (max-width: 980px) {
  .calendar-transition {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-transition-status {
    grid-column: 1 / -1;
  }
}

.performance-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.ytd-chart-grid {
  margin-top: var(--space-3);
}

.performance-chart-panel {
  align-content: start;
}

.line-chart {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.line-chart svg {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 300px;
  overflow: visible;
}

.line-chart-gridline {
  stroke: #dbe3ea;
  stroke-width: 1;
}

.line-chart-gridline.baseline {
  stroke: #64748b;
  stroke-width: 1.8;
}

.line-chart-axis {
  stroke: #8795a3;
  stroke-width: 1.25;
}

.line-chart-axis-label,
.line-chart-date-label {
  fill: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.line-chart-axis-label.baseline {
  fill: #1f2937;
  font-weight: 800;
}

.line-chart-date-label.end {
  text-anchor: end;
}

.line-series {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
}

.chart-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  color: #27313d;
  font-size: 0.88rem;
  font-weight: 700;
}

.chart-legend i {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 999px;
}

.five-year-summary-table {
  min-width: 720px;
}

.five-year-mobile-list {
  display: none;
}

.five-year-mobile-item {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.five-year-mobile-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.five-year-mobile-item h3 {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
}

.five-year-mobile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.five-year-mobile-metrics div {
  min-width: 0;
}

.five-year-mobile-metrics dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.five-year-mobile-metrics dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.performance-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  gap: var(--space-3);
  align-items: center;
  min-height: 112px;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.performance-row:first-child {
  border-top: 0;
}

.performance-meter strong {
  font-size: 1.35rem;
}

.bar-fill.positive {
  background: var(--green);
}

.bar-fill.negative {
  background: var(--red);
}

.bar-fill.neutral {
  background: #b9c2cc;
}

.bar-fill.info {
  background: var(--primary);
}

.plain-list {
  max-width: var(--content-max);
  margin: 0;
  padding-left: 20px;
}

.plain-list li + li {
  margin-top: 6px;
}

.historical-disclaimers {
  margin-top: var(--space-3);
}

.historical-mobile-list {
  display: none;
}

.historical-mobile-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
}

.historical-mobile-row h3 {
  margin-bottom: 0;
}

.methodology-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.methodology-stack {
  display: grid;
  gap: var(--space-3);
}

.methodology-stack .methodology-item {
  padding: var(--space-3) 0 0;
}

.learn-overview h2 {
  margin-bottom: var(--space-1);
}

.compact-steps {
  display: grid;
  gap: 6px;
  max-width: var(--content-max);
  margin: var(--space-2) 0 0;
  padding-left: 20px;
}

.methodology-item,
.definition-item {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

.definition-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.capture-self-test {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.portal-empty h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.local-setup-hint {
  margin-top: var(--space-2);
  padding: var(--space-2);
  color: #573c00;
  background: var(--amber-soft);
  border: 1px solid #f1cc73;
  border-radius: 6px;
  font-weight: 700;
}

.portal-form {
  max-width: 720px;
}

.portal-form fieldset {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.radio-row,
.check-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-height: 36px;
}

.radio-row input,
.check-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.button:disabled {
  color: #697586;
  background: #eef1f4;
  border-color: var(--border);
  cursor: not-allowed;
}

.support-text {
  min-height: 320px;
}

.support-panel {
  padding: var(--space-2) var(--space-3);
  background: #fbfcfd;
  border-style: dashed;
  box-shadow: none;
}

.support-panel .panel-header {
  align-items: center;
  margin-bottom: 0;
}

.support-summary h2 {
  margin-bottom: 2px;
  font-size: 1.05rem;
}

.support-summary .detail {
  margin-bottom: 0;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.allocation-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(17, 111, 115, 0.94), rgba(31, 77, 121, 0.9)),
    #12303b;
}

.allocation-hero .subscriber-brief-copy,
.allocation-hero .subscriber-brief-metrics {
  min-width: 0;
}

.allocation-hero .subscriber-brief-copy h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.2;
}

.allocation-hero .subscriber-brief-copy p {
  max-width: 760px;
}

.allocation-hero .subscriber-brief-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-action-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
}

.action-required-steps {
  max-width: 620px;
}

.home-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.home-status-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: var(--space-2);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.home-status-item span,
.home-status-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-status-item strong {
  overflow-wrap: anywhere;
}

.strategy-metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-benefits-grid,
.strategy-comparison-grid,
.flow-steps,
.resilient-diagram,
.survey-grid,
.toggle-grid {
  display: grid;
  gap: var(--space-2);
}

.public-benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.flow-steps {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-top: var(--space-3);
}

.flow-step,
.strategy-compare-card,
.signal-node,
.toggle-card,
.survey-question {
  min-width: 0;
  padding: var(--space-2);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.flow-step span,
.signal-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-1);
  color: #ffffff;
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.flow-step h3,
.strategy-compare-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.flow-step p,
.strategy-compare-card p,
.survey-question label {
  margin-bottom: 0;
  color: var(--muted);
}

.strategy-comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resilient-diagram {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  align-items: stretch;
}

.signal-node {
  display: grid;
  align-content: center;
  min-height: 112px;
  background: #f7fafb;
}

.signal-node.vote-node {
  border-color: var(--primary);
  background: #edf6f9;
}

.timeline-marker {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  color: #12303b;
  background: #dff4ed;
  border-radius: 999px;
  max-width: 100%;
  font-size: 0.75rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.fund-segment.is-current {
  box-shadow: inset 0 0 0 2px #dff4ed;
}

.timeline-month-heading .timeline-marker {
  color: #12303b;
  font-size: 0.75rem;
}

.calendar-transition.next-move {
  border-color: var(--green);
  background: #f5fbf8;
}

.toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: var(--space-2) 0;
}

.toggle-card {
  align-items: center;
  min-height: 48px;
}

.toggle-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.toggle-card.unavailable {
  display: grid;
  gap: 2px;
  color: var(--muted);
  background: #f7f8fa;
}

.toggle-card.unavailable strong {
  color: var(--text);
  font-size: 0.82rem;
}

.survey-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-3);
}

.survey-grid legend {
  margin-bottom: var(--space-2);
  font-weight: 800;
}

.survey-question {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.survey-question textarea {
  min-height: 96px;
}

.rating-row,
.portal-form fieldset.rating-row {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--space-2);
}

.support-capture-field input[readonly] {
  color: var(--muted);
  background: #f8fafb;
}

.disclosure-card {
  align-content: start;
}

.disclosure-card .label,
.disclosure-card .status-pill {
  text-transform: none;
}

.disclosure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.public-five-year-table {
  min-width: 980px;
}

.diagnostics-details {
  margin-top: var(--space-2);
}

.diagnostics-details .copy-text {
  min-height: 260px;
}

@media (max-width: 760px) {
  .public-header-inner,
  .public-section-intro,
  .public-evidence-grid,
  .subscriber-brief,
  .allocation-hero,
  .home-action-card,
  .home-status-strip,
  .home-context-grid,
  .flow-steps,
  .strategy-comparison-grid,
  .resilient-diagram,
  .survey-grid,
  .toggle-grid,
  .join-overview,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .public-header-inner {
    align-items: start;
    width: 100%;
    max-width: 100vw;
    padding-right: 16px;
    padding-left: 16px;
    overflow: hidden;
  }

  .public-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch;
    width: 100%;
  }

  .public-nav a {
    min-width: 0;
    padding: 7px 4px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .public-main,
  .public-section,
  .public-section-intro,
  .public-card-grid,
  .public-card-grid.three,
  .public-strategy-grid,
  .public-status-grid,
  .public-evidence-grid,
  .public-benefits-grid {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  .public-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .public-card,
  .public-strategy {
    width: 100%;
    max-width: 100%;
  }

  .public-hero {
    min-height: auto;
    width: 100%;
    max-width: 100vw;
  }

  .hero-signal-scene {
    opacity: 0.48;
  }

  .beacon-visual {
    right: 0;
    bottom: 64px;
    width: 96vw;
  }

  .market-path {
    right: 16px;
    bottom: 64px;
    width: 78vw;
    height: 132px;
  }

  .cycle-band {
    left: 16px;
    right: 16px;
    bottom: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
  }

  .public-hero-copy {
    margin-left: 0;
    padding: 72px 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .public-hero-copy h1 {
    font-size: 2.35rem;
    overflow-wrap: anywhere;
  }

  .public-hero-copy p,
  .public-section p,
  .public-section h2,
  .public-section h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .join-main {
    padding: var(--space-3) 16px;
  }

  .join-overview {
    padding: var(--space-3);
  }

  .join-overview h1 {
    font-size: 2.2rem;
  }

  .public-chart-row,
  .ytd-chart-row {
    grid-template-columns: 1fr;
  }

  .public-chart-row strong,
  .ytd-chart-row strong {
    text-align: left;
  }

  .product-header-inner,
  .product-surface-heading,
  .strategy-switcher,
  .status-banner {
    grid-template-columns: 1fr;
  }

  .product-header-inner {
    display: grid;
    align-items: start;
  }

  .strategy-switcher {
    align-items: stretch;
  }

  .product-header-actions {
    justify-content: flex-start;
  }

  .product-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow-x: visible;
    padding-bottom: 12px;
  }

  .product-nav a {
    padding: 6px 4px;
    font-size: 0.8rem;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .status-banner-stack {
    display: grid;
    grid-template-columns: 1fr;
  }

  .status-banner {
    width: 100%;
  }

  .portal-panel,
  .line-chart,
  .table-wrap {
    max-width: 100%;
  }

  .five-year-table-wrap {
    display: none;
  }

  .five-year-mobile-list {
    display: grid;
  }

  .subscriber-historical-table {
    width: 920px;
    min-width: 920px;
  }

  .historical-table-wrap {
    display: none;
  }

  .historical-mobile-list {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-3);
  }

  .support-actions {
    width: 100%;
  }

  .support-actions .button {
    justify-content: center;
    width: 100%;
  }

  .performance-row,
  .calendar-transition {
    grid-template-columns: 1fr;
  }

  .allocation-hero .subscriber-brief-metrics {
    grid-template-columns: 1fr;
  }

  .home-status-strip,
  .home-context-grid,
  .flow-steps,
  .strategy-comparison-grid,
  .resilient-diagram {
    gap: var(--space-2);
  }

  .signal-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .calendar-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .line-chart {
    padding: var(--space-2);
  }

  .line-chart > * {
    min-width: 0;
    max-width: 100%;
  }

  .line-chart svg {
    min-height: 240px;
  }

  .line-series {
    stroke-width: 3;
  }

  .chart-legend {
    gap: 8px;
  }

  .chart-legend span {
    width: 100%;
  }

  .status-pill {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .product-header-inner,
  .product-nav,
  main,
  .site-footer {
    width: 100%;
    margin-left: 0;
    margin-right: auto;
  }
}

/* Bounded UX corrections: task order, readable mobile plots, and navigation. */
:is(a, button, input, select, textarea, summary, .table-wrap[tabindex]):focus-visible {
  outline: 3px solid #245f91;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: white;
  color: #173e61;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.public-menu { display: none; margin: 0; padding: 0; border: 0; background: transparent; }
.public-section, .public-hero { scroll-margin-top: 100px; }
.public-hero-copy h1 { font-size: clamp(2.15rem, 3.8vw, 3.8rem); max-width: 20ch; line-height: 1.15; }
.public-hero-limits { font-size: 1rem; }
.allocation-hero .subscriber-brief-metrics { grid-template-columns: 1fr; }
.allocation-hero .next-ift-summary { align-content: center; }
.allocation-hero .next-ift-summary .detail { color: #e6eef0; margin: 4px 0 0; }
.allocation-hero .subscriber-brief-copy h2 { margin-bottom: 0; }
.allocation-hero .allocation-as-of { font-size: 0.95rem; }
.snapshot-note { margin: -8px 0 0; color: var(--muted); font-size: 0.95rem; }
.product-main > .button { justify-self: start; }
.calendar-timeline { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.calendar-month-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; }
.calendar-month { scroll-margin-top: 16px; }
.calendar-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calendar-panel .overlay-list { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.line-chart svg.line-chart-mobile { display: none; }
.chart-legend svg.line-legend-sample { width: 36px; height: 10px; min-height: 0; margin: 0; display: inline-block; flex: none; }
.line-legend-sample line { vector-effect: non-scaling-stroke; stroke-width: 3; }
@media (max-width: 600px) {
  .public-header { position: static; }
  .public-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; }
  .public-nav-desktop { display: none; }
  .public-menu { display: block; margin-left: auto; order: 3; }
  .public-menu-toggle { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
  .public-menu[open] { width: 100%; }
  .public-nav-mobile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding-top: 8px; }
  .public-nav-mobile a { min-height: 44px; display: flex; align-items: center; padding: 8px; }
  .public-section, .public-hero { scroll-margin-top: 12px; }
  .public-hero-copy { padding: 32px 16px; }
  .public-hero-copy h1 { font-size: 2.1rem; }
  .product-header-inner { padding: 10px 12px 6px; gap: 8px; }
  .product-header h1 { font-size: 1.35rem; }
  .product-header .eyebrow { margin-bottom: 2px; font-size: 0.65rem; }
  .product-descriptor { font-size: 0.85rem; }
  .product-header-actions { gap: 6px; flex-wrap: nowrap; }
  .product-header-actions .button { padding: 8px 10px; min-height: 44px; font-size: 0.8rem; }
  .product-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 0 10px 6px; }
  .product-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 0.78rem; padding: 6px 2px; }
  .product-main { gap: 14px; padding: 16px 12px; }
  .product-surface-heading { gap: 8px; margin: 0; }
  .product-surface-heading h2 { margin: 0; font-size: 1.35rem; }
  .product-surface-heading .label { margin-bottom: 2px; }
  .strategy-switcher { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .strategy-switcher label { grid-column: 1 / -1; font-size: 0.75rem; }
  .strategy-switcher select, .strategy-switcher button { min-height: 44px; }
  .strategy-switcher:has(#calendar-year) { grid-template-columns: minmax(0, 1fr) auto; }
  .strategy-switcher:has(#calendar-year) label[for="strategy-select"] { grid-area: 1 / 1 / auto / -1; }
  .strategy-switcher:has(#calendar-year) #strategy-select { grid-area: 2 / 1 / auto / -1; }
  .strategy-switcher:has(#calendar-year) label[for="calendar-year"] { grid-area: 3 / 1; }
  .strategy-switcher:has(#calendar-year) #calendar-year { grid-area: 4 / 1; }
  .strategy-switcher:has(#calendar-year) button { grid-area: 4 / 2; }
  .allocation-hero { padding: 16px; gap: 12px; grid-template-columns: 1fr; }
  .allocation-hero .subscriber-brief-copy { gap: 6px; }
  .allocation-hero .subscriber-brief-copy h2 { font-size: 2rem; }
  .allocation-hero .subscriber-brief-copy p { line-height: 1.4; }
  .allocation-hero .next-ift-summary { min-height: 0; padding: 12px; }
  .snapshot-note { margin: 0; }
  .status-banner { display: grid; align-items: start; padding: 8px 10px; gap: 4px; }
  .home-context-grid { grid-template-columns: 1fr; }
  .calendar-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .calendar-summary > div:nth-child(-n+2) { grid-column: 1 / -1; }
  .calendar-panel .overlay-list { grid-template-columns: 1fr; gap: 8px; }
  .line-chart svg.line-chart-desktop { display: none; }
  .line-chart svg.line-chart-mobile { display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 360 / 280; }
  .line-chart-mobile .line-chart-axis-label, .line-chart-mobile .line-chart-date-label { font-size: 15px; }
  .chart-legend { gap: 8px; font-size: 0.85rem; }
  .chart-legend span { align-items: center; }
}

/* Owner visual acceptance: independent text blocks grow with their content. */
.allocation-hero {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  gap: 28px;
  padding: 28px;
}

.allocation-hero .subscriber-brief-copy,
.allocation-hero .home-model-target,
.allocation-hero .home-action-block,
.allocation-hero .next-ift-summary {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  min-width: 0;
}

.allocation-hero .subscriber-brief-copy { gap: 24px; }
.allocation-hero .home-model-target { gap: 12px; }
.allocation-hero .home-action-block { gap: 16px; }

.allocation-hero .home-model-target > *,
.allocation-hero .home-action-block > *,
.allocation-hero .next-ift-summary > * {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.allocation-hero .home-model-target h2 {
  min-height: 1.25em;
  line-height: 1.25;
}

.allocation-hero .home-action-answer {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(230, 238, 240, 0.24);
}

.allocation-hero .home-action-answer > * { display: block; }
.allocation-hero .subscriber-brief-copy p { line-height: 1.6; }

.allocation-hero .next-ift-summary {
  gap: 12px;
  min-height: 12rem;
  padding: 20px;
}

.allocation-hero .next-ift-date { line-height: 1.5; }
.allocation-hero .next-ift-funds { line-height: 1.6; }
.allocation-hero .next-ift-summary .detail {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(230, 238, 240, 0.24);
  line-height: 1.6;
}

.home-context-grid { gap: 20px; }
.home-context-grid > .portal-card {
  gap: 14px;
  padding: 20px;
  align-content: start;
}

.home-context-grid > .portal-card > * { margin: 0; }
.home-context-grid > .portal-card > strong { line-height: 1.4; }
.home-context-grid .detail { line-height: 1.65; }
.home-context-grid .advanced-diagnostics { padding: 14px; }
.home-context-grid .advanced-diagnostics > summary { margin-bottom: 12px; }
.home-context-grid .signal-list { gap: 12px; }
.home-context-grid .signal-list > div {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding-top: 12px;
}
.home-context-grid .signal-list dt,
.home-context-grid .signal-list dd {
  line-height: 1.6;
  text-align: left;
}
.home-context-grid .advanced-diagnostics > .detail { margin: 12px 0 0; }

.calendar-introduction {
  display: grid;
  grid-auto-rows: max-content;
  gap: 24px;
  min-width: 0;
}
.calendar-introduction > * { margin: 0; min-width: 0; }
.calendar-introduction .panel-header { align-items: start; gap: 20px; }
.calendar-introduction .panel-header h2 { line-height: 1.4; }
.calendar-introduction .panel-header .detail { margin-bottom: 0; line-height: 1.6; }
.calendar-introduction .calendar-summary {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}
.calendar-introduction .calendar-summary > div {
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f7f9fb;
}
.calendar-introduction dt { line-height: 1.5; }
.calendar-introduction dd { line-height: 1.6; overflow-wrap: anywhere; }
.calendar-context-notes { display: grid; gap: 14px; min-width: 0; }
.calendar-context-notes > p { max-width: 105ch; margin: 0; line-height: 1.65; }
.calendar-cycle-context { font-weight: 700; }
.calendar-introduction .overlay-list {
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.calendar-introduction .overlay-list > div { gap: 10px; align-content: start; }
.calendar-introduction .calendar-signal-details > p,
.calendar-introduction .calendar-signal-details > ul { margin-top: 12px; line-height: 1.6; }
.calendar-history-details > summary { min-height: 52px; padding: 16px 0; }
.calendar-history-details .calendar-month + .calendar-month { margin-top: 16px; }

@media (max-width: 980px) {
  .allocation-hero { grid-template-columns: minmax(0, 1fr); }
  .allocation-hero .next-ift-summary { min-height: 0; }
}

@media (max-width: 600px) {
  .allocation-hero { gap: 24px; padding: 20px; }
  .allocation-hero .subscriber-brief-copy { gap: 20px; }
  .allocation-hero .next-ift-summary { padding: 16px; }
  .home-context-grid > .portal-card { padding: 18px; }
  .calendar-introduction { gap: 20px; }
  .calendar-introduction .calendar-summary,
  .calendar-introduction .overlay-list { grid-template-columns: minmax(0, 1fr); }
  .calendar-introduction .calendar-summary > div { padding: 14px; }
  .public-hero .cycle-band { display: none; }
}

/* Beta touch controls retain the existing visual system and native semantics. */
.button { min-height: 44px; }
@media (max-width: 1024px) {
  .public-nav a, .product-nav a { min-height: 44px; }
  .check-row, .radio-row { min-height: 44px; }
  main summary { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}
