/* Shared EEE (SSY/PPF) insight UX — inflation only, 4-input mobile grid */

.eee-insight-scope {
  font-family: var(--sans, "Source Sans 3", system-ui, sans-serif);
}

body.ssy-page .hero-theme-ssy--slim .ssy-hero-topline,
body.ssy-page .hero-theme-ssy--slim .hero-kicker,
body.ssy-page .hero-theme-ssy--slim .ssy-hero-guide-link,
body.ppf-page .hero-theme-ppf--slim .ppf-hero-topline,
body.ppf-page .hero-theme-ppf--slim .hero-kicker,
body.ppf-page .hero-theme-ppf--slim .ppf-hero-guide-link {
  display: none !important;
}

body.ssy-page .hero-theme-ssy--slim .hero-stage-inner.hero-page-layout,
body.ppf-page .hero-theme-ppf--slim .hero-stage-inner.hero-page-layout {
  padding: 6px 0 4px !important;
  border-bottom: none !important;
}

body.ssy-page .hero-theme-ssy--slim .hero-title-main,
body.ppf-page .hero-theme-ppf--slim .hero-title-main {
  font-family: var(--display, "Fraunces", Georgia, serif);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem) !important;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: normal;
}

body.ssy-page .hero-theme-ssy--slim .hero-subtitle-compact,
body.ppf-page .hero-theme-ppf--slim .hero-subtitle-compact {
  display: block !important;
  margin-top: 4px !important;
  max-width: 36rem;
  font-size: 0.875rem !important;
  line-height: 1.45;
  color: #64748b;
}

body.ssy-page .page,
body.ppf-page .page {
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: 40px !important;
}

body.ssy-page .page-breadcrumb,
body.ppf-page .page-breadcrumb {
  padding: 8px 0 10px !important;
}

body.ssy-page .calc-page-stack,
body.ppf-page .calc-page-stack {
  margin-bottom: 20px !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

body.ssy-page .calc-page-stack > .calc-shell,
body.ppf-page .calc-page-stack > .calc-shell {
  border-top: none !important;
  padding: 0 0 18px !important;
  background: transparent !important;
}

body.ssy-page .ssy-calc-primary,
body.ppf-page .ppf-calc-primary {
  margin: 0 !important;
  padding: 8px 0 4px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: 100%;
}

body.ssy-page .ssy-calc-primary .zone-core .zone-label,
body.ssy-page .ssy-calc-primary .zone-first-result .zone-label,
body.ppf-page .ppf-calc-primary .zone-core .zone-label,
body.ppf-page .ppf-calc-primary .zone-first-result .zone-label {
  display: none !important;
}

/* 4 inputs: 2×2 on phones/tablets — never a long 1-col stack */
body.ssy-page .ssy-calc-primary .ssy-core-grid,
body.ppf-page .ppf-calc-primary .ppf-core-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 12px !important;
}

body.ssy-page .ssy-calc-primary .field-compact,
body.ppf-page .ppf-calc-primary .field-compact {
  margin: 0;
  min-width: 0;
}

body.ssy-page .ssy-calc-primary .field-compact label,
body.ppf-page .ppf-calc-primary .field-compact label {
  margin-bottom: 5px !important;
  font-size: 0.625rem !important;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.25;
}

body.ssy-page .ssy-calc-primary .field-compact .field-hint,
body.ssy-page .ssy-preset-row,
body.ppf-page .ppf-calc-primary .field-compact .field-hint,
body.ppf-page .ppf-preset-row {
  display: none !important;
}

body.ssy-page .ssy-calc-primary .ssy-input-stepper,
body.ppf-page .ppf-calc-primary .ppf-input-stepper {
  border-radius: 12px;
  min-height: 42px;
}

body.ssy-page .ssy-calc-primary .ssy-input-stepper input[type="number"],
body.ppf-page .ppf-calc-primary .ppf-input-stepper input[type="number"] {
  padding: 8px 2px !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  min-width: 0;
}

body.ssy-page .ssy-calc-primary .ssy-input-stepper .ssy-step-btn,
body.ppf-page .ppf-calc-primary .ppf-input-stepper .ppf-step-btn {
  flex: 0 0 34px;
  min-height: 40px;
  font-size: 1rem;
}

body.ssy-page .ssy-calc-primary .zone-first-result,
body.ppf-page .ppf-calc-primary .zone-first-result {
  margin-top: 10px !important;
  padding-top: 10px !important;
}

body.ssy-page .ssy-insight,
body.ppf-page .ppf-insight {
  margin: 8px 0 0 !important;
  padding: 10px 0 8px !important;
  border: none;
  background: transparent;
  width: 100%;
}

body.ssy-page .ssy-insight-head,
body.ppf-page .ppf-insight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

body.ssy-page .ssy-insight-title,
body.ppf-page .ppf-insight-title {
  margin: 0;
  font-family: var(--display, "Fraunces", Georgia, serif);
  font-size: 1.05rem;
  font-weight: 650;
  color: #10231d;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.ssy-page .ssy-insight-sub,
body.ppf-page .ppf-insight-sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

body.ssy-page .ssy-assume-pill,
body.ppf-page .ppf-assume-pill {
  appearance: none;
  border: 1px solid #d6e4de;
  background: #fff;
  color: #0f7558;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px 5px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}

body.ssy-page .ssy-assume-pill[aria-expanded="true"],
body.ppf-page .ppf-assume-pill[aria-expanded="true"] {
  background: #e8f7f1;
  border-color: #1d9e75;
  box-shadow: inset 0 0 0 1px rgba(29, 158, 117, 0.2);
}

body.ssy-page .ssy-assume-pill-edit,
body.ppf-page .ppf-assume-pill-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(29, 158, 117, 0.1);
  font-size: 0.7rem;
}

body.ssy-page .ssy-assume-sheet,
body.ppf-page .ppf-assume-sheet {
  margin: 0 0 8px;
  padding: 6px;
  border-radius: 10px;
  background: transparent;
  border: none;
}

body.ssy-page .ssy-assume-sheet[hidden],
body.ppf-page .ppf-assume-sheet[hidden] {
  display: none !important;
}

body.ssy-page .ssy-assume-sheet-head,
body.ppf-page .ppf-assume-sheet-head {
  display: none !important;
}

body.ssy-page .ssy-assume-sheet-grid,
body.ppf-page .ppf-assume-sheet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.ssy-page .ssy-assume-field,
body.ppf-page .ppf-assume-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e2ebe7;
  border-radius: 10px;
  background: #fff;
}

body.ssy-page .ssy-assume-pop-label,
body.ppf-page .ppf-assume-pop-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
}

body.ssy-page .ssy-chip-row,
body.ppf-page .ppf-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid #d7e3de;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fbfa;
}

body.ssy-page .ssy-chip,
body.ppf-page .ppf-chip {
  appearance: none;
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 3px 2px;
  border: 0;
  border-right: 1px solid #e7efeb;
  border-radius: 0;
  background: transparent;
  color: #52645e;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

body.ssy-page .ssy-chip:last-child,
body.ppf-page .ppf-chip:last-child {
  border-right: 0;
}

body.ssy-page .ssy-chip.is-active,
body.ppf-page .ppf-chip.is-active {
  background: #e8f7f1;
  color: #0f7558;
}

body.ssy-page .ssy-retain,
body.ppf-page .ppf-retain {
  margin: 0 0 8px;
}

body.ssy-page .ssy-retain-rail,
body.ppf-page .ppf-retain-rail {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.05);
}

body.ssy-page .ssy-retain-seg,
body.ppf-page .ppf-retain-seg {
  display: block;
  min-width: 0;
  height: 100%;
  transition: flex-grow 0.28s ease, opacity 0.2s ease;
}

body.ssy-page .ssy-retain-seg--kept,
body.ppf-page .ppf-retain-seg--kept {
  background: linear-gradient(90deg, #34d399, #1d9e75 55%, #0f7558);
  flex-grow: 78;
}

body.ssy-page .ssy-retain-seg--inf,
body.ppf-page .ppf-retain-seg--inf {
  background: linear-gradient(90deg, #fda4af, #e11d48);
  flex-grow: 22;
}

body.ssy-page .ssy-journey,
body.ppf-page .ppf-journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body.ssy-page .ssy-journey-card,
body.ppf-page .ppf-journey-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

body.ssy-page .ssy-journey-card[data-step="today"],
body.ppf-page .ppf-journey-card[data-step="today"] {
  border-color: rgba(29, 158, 117, 0.2);
  box-shadow: 0 4px 14px rgba(15, 117, 88, 0.06);
}

body.ssy-page .ssy-journey-card-head,
body.ppf-page .ppf-journey-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

body.ssy-page .ssy-journey-label,
body.ppf-page .ppf-journey-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 650;
  color: #334155;
}

body.ssy-page .ssy-journey-trend,
body.ppf-page .ppf-journey-trend {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.75rem;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

body.ssy-page .ssy-journey-card--up .ssy-journey-trend,
body.ppf-page .ppf-journey-card--up .ppf-journey-trend {
  background: rgba(29, 158, 117, 0.12);
  color: #0f766e;
}

body.ssy-page .ssy-journey-card.is-loss .ssy-journey-trend,
body.ppf-page .ppf-journey-card.is-loss .ppf-journey-trend {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

body.ssy-page .ssy-impact-badge,
body.ppf-page .ppf-impact-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.08);
  color: #92400e;
  font-size: 0.6875rem;
  font-weight: 700;
}

body.ssy-page .ssy-journey-card--up .ssy-impact-badge,
body.ppf-page .ppf-journey-card--up .ppf-impact-badge {
  background: rgba(29, 158, 117, 0.1);
  color: #0f7558;
}

body.ssy-page .ssy-journey-amount,
body.ppf-page .ppf-journey-amount {
  font-size: clamp(1.12rem, 3vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

body.ssy-page .ssy-journey-note,
body.ppf-page .ppf-journey-note {
  font-size: 0.66rem;
  color: #94a3b8;
  line-height: 1.35;
}

body.ssy-page .ssy-journey-bridge,
body.ppf-page .ppf-journey-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
}

body.ssy-page .ssy-verdict,
body.ppf-page .ppf-verdict {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
}

body.ssy-page .ssy-verdict-mark,
body.ppf-page .ppf-verdict-mark { font-size: 0.8rem; font-weight: 700; }
body.ssy-page .ssy-verdict-title,
body.ppf-page .ppf-verdict-title { font-size: 0.78rem; font-weight: 700; }
body.ssy-page .ssy-verdict-sep,
body.ppf-page .ppf-verdict-sep { opacity: 0.45; font-weight: 700; }
body.ssy-page .ssy-verdict-meta,
body.ppf-page .ppf-verdict-meta { font-size: 0.72rem; font-weight: 500; }
body.ssy-page .ssy-verdict-meta strong,
body.ppf-page .ppf-verdict-meta strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.ssy-page .ssy-verdict[data-tone="gain"],
body.ppf-page .ppf-verdict[data-tone="gain"] {
  background: rgba(29, 158, 117, 0.1);
  border-color: rgba(29, 158, 117, 0.18);
  color: #0f7558;
}

body.ssy-page .ssy-verdict[data-tone="loss"],
body.ppf-page .ppf-verdict[data-tone="loss"] {
  background: rgba(185, 28, 28, 0.07);
  border-color: rgba(185, 28, 28, 0.14);
  color: #9f1239;
}

body.ssy-page .ssy-verdict[data-tone="flat"],
body.ssy-page .ssy-verdict[data-tone="off"],
body.ppf-page .ppf-verdict[data-tone="flat"],
body.ppf-page .ppf-verdict[data-tone="off"] {
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.14);
  color: #475569;
}

body.ssy-page #ssy-chart-zone,
body.ssy-page .ssy-exit,
body.ssy-page .ssy-decision-cta,
body.ppf-page #ppf-chart-zone,
body.ppf-page .ppf-exit,
body.ppf-page .ppf-decision-cta {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}

body.ssy-page #ssy-chart-zone,
body.ppf-page #ppf-chart-zone {
  margin-top: 12px !important;
  padding-top: 12px !important;
}

body.ssy-page .ssy-exit,
body.ppf-page .ppf-exit {
  margin: 14px 0 4px !important;
  padding: 12px 0 4px !important;
  box-sizing: border-box;
}

body.ssy-page .calc-page-stack,
body.ssy-page .content-bridge,
body.ssy-page .below-fold-panel,
body.ssy-page .ssy-guide,
body.ssy-page .ssy-faq-section,
body.ppf-page .calc-page-stack,
body.ppf-page .content-bridge,
body.ppf-page .below-fold-panel,
body.ppf-page .ppf-guide,
body.ppf-page .ppf-faq-section {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

body.ssy-page .ssy-guide,
body.ppf-page .ppf-guide {
  margin-top: 20px !important;
}

body.ssy-page .ssy-guide-lead,
body.ppf-page .ppf-guide-lead {
  max-width: none !important;
}

body.ssy-page .content-bridge,
body.ssy-page .below-fold-panel,
body.ssy-page .ssy-faq-section,
body.ppf-page .content-bridge,
body.ppf-page .below-fold-panel,
body.ppf-page .ppf-faq-section {
  margin-top: 18px !important;
}

@media (min-width: 860px) {
  body.ssy-page .page,
  body.ppf-page .page {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.ssy-page .ssy-calc-primary .ssy-core-grid,
  body.ppf-page .ppf-calc-primary .ppf-core-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px 14px !important;
  }

  body.ssy-page .ssy-journey--impact,
  body.ppf-page .ppf-journey--impact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  body.ssy-page .ssy-journey-bridge,
  body.ppf-page .ppf-journey-bridge {
    height: auto;
    align-self: center;
  }

  body.ssy-page .ssy-journey-bridge span,
  body.ppf-page .ppf-journey-bridge span {
    display: inline-flex;
    transform: rotate(-90deg);
  }
}

@media (max-width: 720px) {
  body.ssy-page .page,
  body.ppf-page .page {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: 28px !important;
  }

  body.ssy-page .hero-theme-ssy--slim .hero-title-main,
  body.ppf-page .hero-theme-ppf--slim .hero-title-main {
    font-size: 1.2rem !important;
  }

  body.ssy-page .ssy-calc-primary .ssy-core-grid,
  body.ppf-page .ppf-calc-primary .ppf-core-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.ssy-page .ssy-calc-primary .ssy-input-stepper .ssy-step-btn,
  body.ppf-page .ppf-calc-primary .ppf-input-stepper .ppf-step-btn {
    flex: 0 0 32px;
    min-height: 40px;
  }

  body.ssy-page .ssy-calc-primary .ssy-input-stepper input[type="number"],
  body.ppf-page .ppf-calc-primary .ppf-input-stepper input[type="number"] {
    font-size: 0.9rem !important;
  }

  body.ssy-page .ssy-insight-head,
  body.ppf-page .ppf-insight-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.ssy-page .ssy-assume-pill,
  body.ppf-page .ppf-assume-pill {
    align-self: flex-start;
    min-height: 36px;
  }

  body.ssy-page .ssy-chip,
  body.ppf-page .ppf-chip {
    min-height: 32px;
  }
}

/* Ultra-narrow only: stack to one column so steppers stay tappable */
@media (max-width: 360px) {
  body.ssy-page .ssy-calc-primary .ssy-core-grid,
  body.ppf-page .ppf-calc-primary .ppf-core-grid {
    grid-template-columns: 1fr !important;
  }
}
