/* OwnerDelta — rent vs sell. Design tokens for reuse across tools. */

:root {
  /* Color — brand-overview.md */
  --ink: #0f1b2d;
  --inkSoft: #1a2740;
  --text: #0f1b2d;
  --muted: #5c6b7a;
  --border: #e2ddd4;
  --borderStrong: #c8c0b5;
  --bg: #faf8f4;
  --bgElevated: #ffffff;
  --bgWash: #f5f2ec;
  --primary: #1f8a8a;
  --primaryHover: #187272;
  --primarySoft: #e6f4f4;
  --primaryMid: #9dcece;
  --answer: #1f8a8a;
  --accentSell: #3a5f7a;
  --accentSellSoft: #e8eef3;
  --accentSellMid: #9bb0c0;
  --success: #1b6b3a;
  --successBg: #e8f4ec;
  --successMid: #8fc9a4;
  --danger: #a61e2c;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04),
    0 10px 28px rgba(15, 27, 45, 0.06);
  --shadowSoft: 0 1px 2px rgba(15, 27, 45, 0.03);

  /* Type */
  --fontDisplay: "Fraunces", "Georgia", serif;
  --fontSans: "Inter", "Segoe UI", sans-serif;
  --textXs: 0.8rem;
  --textSm: 0.88rem;
  --textMd: 1rem;
  --textLg: 1.15rem;
  --textXl: clamp(1.55rem, 2.6vw, 1.95rem);
  --textBrand: clamp(1.2rem, 2vw, 1.4rem);

  /* Space & shape */
  --space1: 4px;
  --space2: 8px;
  --space3: 12px;
  --space4: 16px;
  --space5: 24px;
  --space6: 32px;
  --space7: 48px;
  --radius: 12px;
  --radiusSm: 8px;
  --radiusLg: 18px;
  --stickyW: min(360px, 100%);
  --contentMax: 1160px;
  --headerH: 64px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--fontSans);
  font-feature-settings: "tnum" 1;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 50% at 0% -5%, rgba(31, 138, 138, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 163, 61, 0.06), transparent 50%),
    linear-gradient(180deg, #f3efe8 0%, var(--bg) 260px);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}

/* ——— Site shell ——— */

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(250, 248, 244, 0.9);
  border-bottom: 1px solid var(--border);
}

.siteHeaderInner {
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space4);
  min-height: var(--headerH);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brandText {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brandName {
  font-family: var(--fontDisplay);
  font-size: var(--textBrand);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.brandTagline {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(46ch, 55vw);
}

.siteNav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.siteNavLink {
  font-size: var(--textSm);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radiusSm);
}

.siteNavLink:hover {
  color: var(--ink);
  background: rgba(31, 138, 138, 0.08);
}

.siteNavLink.isActive {
  color: var(--primary);
  background: var(--primarySoft);
}

.toolHeader {
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 28px 20px 8px;
}

.toolEyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.toolHeader h1 {
  margin: 0 0 8px;
  font-family: var(--fontDisplay);
  font-size: var(--textXl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subtitle {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.98rem;
}

.siteFooter {
  margin-top: var(--space7);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, var(--bgWash) 100%);
}

.siteFooterInner {
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 36px 20px 28px;
}

.footerBrand {
  margin-bottom: var(--space5);
}

.footerBrand .brandName {
  font-size: 1.25rem;
}

.footerTagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--textSm);
}

.footerCols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space5);
  margin-bottom: var(--space5);
}

@media (max-width: 720px) {
  .footerCols {
    grid-template-columns: 1fr;
    gap: var(--space4);
  }

  .brandTagline {
    display: none;
  }
}

.footerHeading {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--inkSoft);
}

.footerText {
  margin: 0;
  font-size: var(--textSm);
  color: var(--muted);
  max-width: 36ch;
}

.footerLink {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--textSm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.footerLink:hover {
  text-decoration: underline;
}

.footerFine {
  margin: 0;
  padding-top: var(--space4);
  border-top: 1px solid var(--border);
  font-size: var(--textXs);
  color: var(--muted);
}

/* ——— App layout ——— */

.appLayout {
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 12px 20px 48px;
  display: grid;
  grid-template-columns: 1fr var(--stickyW);
  gap: 24px;
  align-items: start;
}

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

  .appSticky {
    position: static;
    order: -1;
    max-width: 100%;
  }
}

.appMain {
  min-width: 0;
}

.appSticky {
  position: sticky;
  top: calc(var(--headerH) + 12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fintechCard {
  background: var(--bgElevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadowSoft);
}

.fintechCardTitle {
  margin: 0 0 16px;
  font-family: var(--fontDisplay);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--inkSoft);
}

.field {
  margin-bottom: 16px;
}

.fieldHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.fieldHeader label {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: #2a3644;
}

.fieldHint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.currencyWrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  background: #fff;
  overflow: hidden;
}

.currencyWrap:focus-within {
  outline: 2px solid rgba(31, 138, 138, 0.28);
  border-color: rgba(31, 138, 138, 0.5);
}

.currencyPrefix {
  padding: 10px 0 10px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.currencyWrap input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

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

.percentRow input {
  flex: 1;
  min-width: 0;
}

.percentRow.tight input {
  max-width: 120px;
}

.suffix {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sliderRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sliderRow input[type="range"] {
  flex: 1;
  min-width: 140px;
  height: 6px;
  accent-color: var(--primary);
}

.mt8 {
  margin-top: 8px;
}

.selectInline {
  width: 100%;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.advancedDetails {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bgElevated);
  box-shadow: var(--shadowSoft);
  overflow: hidden;
}

.advancedSummary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 18px;
  list-style: none;
  color: var(--inkSoft);
  background: linear-gradient(180deg, var(--bgWash) 0%, #fff 100%);
}

.advancedSummary::-webkit-details-marker {
  display: none;
}

.advancedSummary::after {
  content: "▸";
  float: right;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.advancedDetails[open] .advancedSummary::after {
  transform: rotate(90deg);
}

.advancedInner {
  padding: 4px 18px 16px;
  border-top: 1px solid var(--border);
}

.advancedIntro {
  margin: 12px 0 8px;
  font-size: 0.88rem;
}

.advancedSub {
  margin: 20px 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.formActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 4px;
}

.scenarioActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
}

.scenarioHint {
  flex-basis: 100%;
  margin: 0;
  min-height: 1.2em;
}

.scenarioPrivacy {
  margin: 8px 0 0;
}

.btnSecondary,
.btnGhost {
  border-radius: var(--radiusSm);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
}

.btnSecondary {
  background: var(--primarySoft);
  color: var(--primary);
  border-color: var(--primaryMid);
}

.btnSecondary:hover {
  background: #d5ebe8;
  border-color: #7fc4bc;
}

.btnGhost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btnGhost:hover {
  background: var(--bgWash);
  color: #3d4d5c;
}

.isHidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.8rem;
  margin: 0 0 12px;
}

.checkboxRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkboxRow input {
  width: auto;
  margin-top: 4px;
}

label.inline {
  font-weight: normal;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #2a3644;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

input:focus {
  outline: 2px solid rgba(31, 138, 138, 0.28);
  border-color: rgba(31, 138, 138, 0.55);
}

input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bgWash);
}

.resultsScroll {
  margin-top: 8px;
}

.resultsCard {
  padding-bottom: 16px;
}

/* ——— Answer-first verdict + drivers ——— */

.verdictCard {
  background: var(--bgElevated);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 22px 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  background-image: linear-gradient(
    165deg,
    #ffffff 0%,
    #ffffff 50%,
    rgba(230, 244, 244, 0.65) 100%
  );
}

.layerLabel {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
}

.verdictHeading {
  margin: 0 0 8px;
  font-family: var(--fontDisplay);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.verdictSentence {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--inkSoft);
  line-height: 1.4;
  max-width: 52ch;
}

.verdictMetrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 4px;
}

.verdictMetric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.driversBlock {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.driversHeading {
  margin: 0 0 4px;
  font-family: var(--fontDisplay);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--inkSoft);
}

.driversMuted {
  margin-bottom: 10px;
}

.whyList {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--text);
  font-size: 0.92rem;
}

.whyList:empty {
  display: none;
}

.whyList li {
  margin-bottom: 8px;
  padding-left: 4px;
  line-height: 1.45;
}

.whyList li:last-child {
  margin-bottom: 0;
}

.verdictChartBlock {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.chartLead {
  margin-top: 0;
}

.detailDisclosure {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bgElevated);
  box-shadow: var(--shadowSoft);
  overflow: hidden;
}

.detailSummary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 18px;
  list-style: none;
  color: var(--inkSoft);
  background: linear-gradient(180deg, var(--bgWash) 0%, #fff 100%);
}

.detailSummary::-webkit-details-marker {
  display: none;
}

.detailSummary::after {
  content: "▸";
  float: right;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.detailDisclosure[open] .detailSummary::after {
  transform: rotate(90deg);
}

.detailDisclosureInner {
  padding: 4px 12px 8px;
  border-top: 1px solid var(--border);
  background: var(--bgWash);
}

.detailDisclosureInner .fintechCard {
  box-shadow: none;
}

.chartLead {
  margin-top: -4px;
}

.stickyCard {
  background: var(--bgElevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadowSoft);
}

.stickyCard--verdict {
  box-shadow: var(--shadow);
  border-color: var(--primaryMid);
}

.stickyTitle {
  margin: 0 0 4px;
  font-family: var(--fontDisplay);
  font-size: 1.05rem;
  font-weight: 600;
}

.stickyMuted {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.stickyMetric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.stickyLabel {
  font-size: 0.82rem;
  color: var(--muted);
}

.stickyValue {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--inkSoft);
}

.stickyWinner {
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: var(--radiusSm);
  background: var(--bgWash);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.stickyWinner:empty {
  display: none;
}

.stickyWinner strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.stickyWinner--rent {
  background: var(--successBg);
  border-color: var(--successMid);
  color: #14532d;
}

.stickyWinner--sell {
  background: var(--accentSellSoft);
  border-color: var(--accentSellMid);
  color: #0f3d5c;
}

.stickyChartWrap {
  margin-top: 4px;
}

.stickyFoot {
  margin: 10px 0 0;
}

.stickyMiniRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.stickyMiniRow:last-child {
  border-bottom: none;
}

.stickyMiniRow strong {
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 12px 0 0;
  color: var(--danger);
  min-height: 1.2em;
  font-size: 0.9rem;
}

.tableWrap {
  overflow-x: auto;
  margin-top: 8px;
  border-radius: var(--radiusSm);
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.tableWrap.hasOverflow {
  box-shadow: inset -12px 0 12px -12px rgba(15, 27, 45, 0.18);
}

.tableScrollHint {
  display: none;
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .tableWrap.hasOverflow + .tableScrollHint,
  .tableWrap.hasOverflow .tableScrollHint {
    display: block;
  }

  .outputTable th:first-child,
  .outputTable td:first-child,
  .summaryTable th:first-child,
  .summaryTable td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 4px 0 8px -4px rgba(15, 27, 45, 0.15);
  }

  .outputTable th:first-child,
  .summaryTable th:first-child {
    background: #e4f2f2;
  }

  .scenarioBlock {
    background: var(--inkSoft) !important;
  }

  .outputTable th:nth-child(2),
  .outputTable td:nth-child(2) {
    min-width: min(200px, 48vw);
    max-width: 240px;
    width: auto;
  }
}

.dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dataTable th,
.dataTable td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: right;
}

.dataTable th:first-child,
.dataTable td:first-child {
  text-align: left;
}

.outputTable th:nth-child(n + 3),
.outputTable td:nth-child(n + 3) {
  text-align: right;
}

.outputTable th:nth-child(2),
.outputTable td:nth-child(2) {
  text-align: left;
  min-width: min(420px, 55vw);
  max-width: 560px;
  width: 46%;
}

.tableUnitsRow th {
  background: #e4f2f2 !important;
  font-size: 12px;
  font-weight: 600;
  color: #145858;
  border-bottom: 1px solid var(--primaryMid);
}

.tableUnitsCorner {
  border-right: 1px solid #b8dcd7;
}

.tableUnitsNote {
  text-align: center !important;
  letter-spacing: 0.02em;
}

.summaryUnitsCorner {
  background: #e4f2f2 !important;
  border-bottom: 1px solid var(--primaryMid);
}

.impactLabelWrap {
  display: inline-flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.impactText {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.infoIcon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: bold;
  font-style: normal;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 18px;
  cursor: help;
  position: relative;
}

.detailRow .infoIcon {
  font-style: normal;
}

.infoIcon:hover,
.infoIcon:focus-visible,
.infoIcon.isOpen {
  background: #e2e8f0;
  border-color: #64748b;
  outline: 2px solid rgba(31, 138, 138, 0.35);
}

.infoIcon::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translate(-10px, -50%);
  width: max-content;
  max-width: min(340px, 75vw);
  padding: 10px 12px;
  background: var(--ink);
  color: #f1f5f9;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  line-height: 1.45;
  white-space: pre-wrap;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(12, 18, 34, 0.2);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

.infoIcon:hover::after,
.infoIcon:focus-visible::after,
.infoIcon.isOpen::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 720px) {
  .infoIcon::after {
    right: auto;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    max-width: min(280px, 85vw);
  }
}

.errorHint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.errorHint:empty {
  display: none;
}

.sensitivityStub {
  margin: 16px 0 0;
  border: 1px dashed var(--borderStrong);
  border-radius: var(--radius);
  background: var(--bgWash);
  overflow: hidden;
}

.sensitivitySummary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 16px;
  list-style: none;
  color: var(--inkSoft);
}

.sensitivitySummary::-webkit-details-marker {
  display: none;
}

.sensitivitySummary::after {
  content: "▸";
  float: right;
  color: var(--muted);
}

.sensitivityStub[open] .sensitivitySummary::after {
  display: inline-block;
  transform: rotate(90deg);
}

.sensitivityInner {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.sensitivityPreview {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  opacity: 0.55;
  pointer-events: none;
}

.sensitivityRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}

.sensitivityBadge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  vertical-align: middle;
}

.dataTable th {
  background: #e4f2f2;
  font-weight: bold;
  color: #145858;
}

.outputTable th {
  border-bottom: 2px solid var(--primaryMid);
}

.outputTable td {
  vertical-align: middle;
}

.scenarioBlock {
  background: var(--inkSoft);
  color: #fff;
  font-weight: bold;
  vertical-align: middle;
  text-align: center;
  min-width: 100px;
  max-width: 120px;
}

.detailRow td {
  color: #64748b;
  font-style: italic;
  font-size: 13px;
}

.impactMain {
  text-align: left;
}

.impactDetail {
  text-align: left;
  padding-left: 1.5rem !important;
}

.impactTotal {
  text-align: left;
  font-weight: bold;
}

.impactTotal .impactText {
  font-weight: bold;
}

.boldImpact {
  font-weight: bold;
}

.boldImpact .impactText {
  font-weight: bold;
}

.numTotal {
  font-weight: bold;
}

.outputTableTitle {
  margin: 24px 0 8px;
  font-size: 16px;
  font-family: var(--fontDisplay);
  font-weight: 600;
  color: var(--text);
}

.outputTableTitle:first-of-type {
  margin-top: 0;
}

.outputToolbar {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

.toggleLabel {
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.footnote {
  margin: 0 0 12px;
}

.summaryCaption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding: 0 0 8px;
  font-weight: 600;
}

.summaryTable th {
  background: #e4f2f2;
  color: #145858;
}

.summaryTable .summaryLabel {
  text-align: left;
  font-weight: bold;
  background: var(--bgWash);
}

.summaryTableSpacer {
  margin-top: 20px;
}

.chartToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.chartToolbarLabel {
  font-weight: bold;
  font-size: 14px;
}

.chartRadio {
  font-size: 14px;
  cursor: pointer;
}

.chartWrap {
  width: 100%;
  overflow-x: auto;
}

.chartWrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
}

/* ——— Trust / methodology prose ——— */

.trustSection {
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 8px 20px 0;
}

.trustInner {
  background: var(--bgElevated);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 28px 24px;
  box-shadow: var(--shadowSoft);
}

.trustHeading {
  margin: 0 0 8px;
  font-family: var(--fontDisplay);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.trustLead {
  margin: 0 0 20px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.trustGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space5);
}

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

.trustList {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--text);
  font-size: var(--textSm);
}

.trustList li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.modelMeta {
  margin: 10px 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.proseMain {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.proseCard {
  background: var(--bgElevated);
  border: 1px solid var(--border);
  border-radius: var(--radiusLg);
  padding: 28px 28px 32px;
  box-shadow: var(--shadowSoft);
}

.proseCard h2 {
  margin: 28px 0 10px;
  font-family: var(--fontDisplay);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.proseCard h2:first-child {
  margin-top: 0;
}

.proseCard h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--inkSoft);
}

.proseCard p,
.proseCard li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.proseCard ul,
.proseCard ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.proseCard li {
  margin-bottom: 6px;
}

.formula {
  font-family: var(--fontSans);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--bgWash);
  border: 1px solid var(--border);
  border-radius: var(--radiusSm);
  padding: 12px 14px;
  overflow-x: auto;
}

.changelog ul {
  margin: 0;
}

.proseBack {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.proseBack a {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.proseBack a:hover {
  text-decoration: underline;
}

/* ——— Home & site pages ——— */

.homeHero {
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 48px 20px 36px;
}

.homeBrand {
  margin: 0 0 12px;
  font-family: var(--fontDisplay);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
}

.homeTagline {
  margin: 0 0 12px;
  font-family: var(--fontDisplay);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 500;
  color: var(--inkSoft);
  max-width: 22ch;
  line-height: 1.25;
}

.homePositioning {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.homeLead {
  margin: 0 0 24px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1rem;
}

.homeCta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btnPrimary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radiusSm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--primaryHover);
}

.btnPrimary:hover {
  background: var(--primaryHover);
}

.homeCtaSecondary {
  text-decoration: none;
}

.homeSection {
  max-width: var(--contentMax);
  margin: 0 auto;
  padding: 8px 20px 40px;
}

.homeSectionTitle {
  margin: 0 0 8px;
  font-family: var(--fontDisplay);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.homeSectionLead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 48ch;
}

.toolList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.toolListItem {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bgElevated);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadowSoft);
}

a.toolListItem:hover {
  border-color: var(--primaryMid);
}

.toolListItem.isSoon {
  opacity: 0.72;
}

.toolListName {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}

.toolListDesc {
  font-size: 0.88rem;
  color: var(--muted);
}

.pillarList {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.pillarList li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.pillarTitle {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.pillarMeta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.pillarMeta a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.pillarMeta a:hover {
  text-decoration: underline;
}

.printAssumptions {
  display: none;
}

@media print {
  body {
    background: #fff !important;
    background-image: none !important;
    color: #000;
  }

  .siteHeader,
  .siteFooter,
  .trustSection,
  .appSticky,
  .formActions,
  .scenarioActions,
  .scenarioPrivacy,
  .advancedDetails,
  #calcForm,
  .toolEyebrow,
  .detailDisclosure,
  .verdictChartBlock,
  .siteNav {
    display: none !important;
  }

  .toolHeader {
    padding-bottom: 0;
  }

  .toolHeader .subtitle {
    max-width: none;
  }

  .appLayout {
    display: block;
    padding: 0;
    max-width: none;
  }

  .verdictCard {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .printAssumptions {
    display: block !important;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #ccc;
  }

  .printAssumptions h3 {
    margin: 0 0 8px;
    font-size: 1rem;
  }

  .printAssumptions ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
  }

  .printAssumptions li {
    margin-bottom: 4px;
  }

  .driversBlock {
    break-inside: avoid;
  }
}
