@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --ink: #171a1f;
  --muted: #626b73;
  --line: #dfe4df;
  --green: #1d7f63;
  --amber: #b66a00;
  --red: #b64040;
  --blue: #285f9f;
  --teal: #0c766f;
  --shadow: 0 18px 60px rgba(28, 35, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  background: rgba(246, 247, 243, 0.88);
  border-bottom: 1px solid rgba(223, 228, 223, 0.82);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #17211e;
  color: #f8fff8;
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding: 42px 0 60px;
}

.seo-hero {
  padding: 48px 0 26px;
}

.secondary-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal);
  font-weight: 800;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-section {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.article-page,
.stock-page {
  max-width: 980px;
}

.summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin: 24px 0 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ticker-chip {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #17211e;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.score-box {
  display: grid;
  min-width: 150px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
  text-align: center;
}

.score-box strong {
  color: var(--green);
  font-size: 58px;
  line-height: 0.95;
}

.score-box span,
.score-box small {
  color: var(--muted);
  font-weight: 800;
}

.warning,
.disclaimer-box {
  border-left: 4px solid var(--amber);
  background: #fff8ec;
}

.warning {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 6px;
  color: #513a10;
  font-weight: 750;
}

.trust-panel {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e7ebe7;
  border-radius: 8px;
  background: #ffffff;
}

.trust-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-grid strong {
  overflow-wrap: anywhere;
}

.trust-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 0;
}

.trust-row > span {
  color: var(--muted);
  font-weight: 800;
}

.trust-row strong {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.trust-chip {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.trust-chip.is-available {
  background: #eef8f6;
  color: var(--teal);
}

.trust-chip.is-missing {
  background: #fff8ec;
  color: #6d4610;
}

.trust-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.insight-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.insight-list li {
  padding-left: 4px;
}

.score-narrative {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.score-narrative p {
  margin: 0;
  color: var(--muted);
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.driver-grid article,
.mini-metric-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7ebe7;
  border-radius: 8px;
  background: #fbfcfa;
}

.driver-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.driver-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-metric-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-metric-grid strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.quality-grid,
.check-grid,
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.quality-card,
.check-card,
.reference-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7ebe7;
  border-radius: 8px;
  background: #fbfcfa;
}

.quality-card span,
.check-card span,
.reference-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quality-card strong,
.check-card strong,
.reference-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.check-card.pass {
  border-color: rgba(29, 127, 99, 0.28);
}

.check-card.watch {
  border-color: rgba(182, 126, 32, 0.34);
}

.check-card.missing {
  border-color: rgba(182, 64, 64, 0.34);
}

.reference-card {
  color: inherit;
  text-decoration: none;
}

.reference-card:hover {
  border-color: var(--ink);
}

.section-read,
.missing-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.financial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.financial-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7ebe7;
  border-radius: 8px;
  background: #fbfcfa;
}

.financial-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.financial-grid strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.flag-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flag-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
}

.flag-card.low {
  border-left-color: var(--green);
}

.flag-card.medium {
  border-left-color: var(--amber);
}

.flag-card.high {
  border-left-color: var(--red);
}

.flag-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.valuation-note {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fbfcfa;
}

.valuation-note.medium {
  border-left-color: var(--amber);
}

.valuation-note.high {
  border-left-color: var(--red);
}

.valuation-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.stock-card a {
  display: block;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.stock-card strong,
.stock-card span {
  color: var(--teal);
  font-weight: 900;
}

.category-list,
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-list span,
.internal-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf7;
  color: #26312e;
  font-size: 13px;
  font-weight: 800;
}

.source-block .data-row {
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 28px;
  align-items: end;
  padding: 56px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.search-panel {
  max-width: 720px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.search-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 118, 111, 0.12);
}

.search-row button,
.quick-picks button,
.tab {
  cursor: pointer;
}

.search-row button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #17211e;
  color: #ffffff;
  font-weight: 800;
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-picks button {
  min-width: 52px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf7;
  color: #26312e;
  font-size: 13px;
  font-weight: 800;
}

.hero-card,
.report,
.stock-list,
.explainer,
.method {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 16px 0 0;
  font-size: 54px;
}

.hero-card p {
  color: var(--muted);
}

.hero-score {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 18px 0;
}

.hero-score span {
  color: var(--green);
  font-size: 58px;
  font-weight: 900;
  line-height: 0.9;
}

.hero-score small {
  color: var(--muted);
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0 40px;
}

.stock-list {
  align-self: start;
  padding: 18px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading.compact {
  margin: 22px 0 12px;
}

.section-heading.compact h2 {
  font-size: 22px;
}

.sidebar-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.industry-list {
  display: grid;
  gap: 8px;
}

.industry-button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.industry-button strong,
.industry-button span {
  display: block;
}

.industry-button span {
  color: var(--muted);
  font-size: 12px;
}

.industry-button.is-active {
  border-color: rgba(12, 118, 111, 0.44);
  background: #eef8f6;
}

.stock-button {
  width: 100%;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.stock-button.is-active {
  border-color: rgba(12, 118, 111, 0.4);
  background: #eef8f6;
}

.stock-button strong,
.stock-button span {
  display: block;
}

.stock-button span {
  color: var(--muted);
  font-size: 13px;
}

.report {
  min-width: 0;
  overflow: hidden;
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

#ticker-label {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

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

.price-block {
  min-width: 130px;
  text-align: right;
}

.price-block strong,
.price-block span,
.price-block small {
  display: block;
}

.price-block strong {
  font-size: 26px;
}

.price-block span {
  color: var(--green);
  font-weight: 800;
}

.price-block small {
  max-width: 170px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.chart-panel {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.chart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.range-pills {
  display: flex;
  gap: 6px;
}

.range-pills span {
  min-width: 38px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.range-pills .is-active {
  border-color: #17211e;
  background: #17211e;
  color: #ffffff;
}

.chart-canvas {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(#fbfcfa, #ffffff);
}

.chart-canvas svg {
  display: block;
  width: 100%;
  height: 260px;
}

.chart-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-chart {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: center;
  min-height: 260px;
}

.verdict-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: #f8faf7;
  border-bottom: 1px solid var(--line);
}

.score-ring {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--green) calc(var(--score) * 1%), #dfe7df 0);
}

.score-ring span,
.score-ring small {
  grid-column: 1;
  grid-row: 1;
}

.score-ring span {
  transform: translateY(-8px);
  font-size: 30px;
  font-weight: 900;
}

.score-ring small {
  transform: translateY(18px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 24px 24px;
}

.metric-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.metric-card strong {
  font-size: 14px;
}

.grade {
  min-width: 62px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.grade.good {
  background: var(--green);
}

.grade.mid {
  background: var(--amber);
}

.grade.bad {
  background: var(--red);
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebe7;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.metric-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 18px;
}

.tab {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.tab.is-active {
  border-color: #17211e;
  background: #17211e;
  color: #ffffff;
}

.tab-panel {
  padding: 0 24px 24px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.info-box.full {
  grid-column: 1 / -1;
}

.info-box ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 7px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #e7ebe7;
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row span {
  color: var(--muted);
}

.data-row strong {
  text-align: right;
}

.screener-controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.screener-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.screener-controls input,
.screener-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.screener-table-wrap {
  overflow-x: auto;
}

.screener-table {
  min-width: 1080px;
}

.screener-table th button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
}

.screener-table a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.screener-table small {
  display: block;
  color: var(--muted);
}

.screener-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef6f2;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.screener-pill.mid {
  background: #fff8e6;
  color: #866000;
}

.screener-pill.bad {
  background: #fff0ed;
  color: var(--red);
}

.formula-list {
  display: grid;
  gap: 8px;
}

.formula-list code {
  display: block;
  padding: 9px 10px;
  border: 1px solid #e7ebe7;
  border-radius: 6px;
  background: #ffffff;
  color: #26312e;
  font-size: 13px;
  white-space: normal;
}

.revenue-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.revenue-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #e7ebe7;
  border-radius: 8px;
  background: #ffffff;
}

.revenue-item strong {
  font-size: 14px;
}

.revenue-item span {
  color: var(--muted);
  font-size: 13px;
}

.peer-table {
  width: 100%;
  border-collapse: collapse;
}

.peer-table th,
.peer-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e7ebe7;
  text-align: left;
}

.peer-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.peer-table td:last-child,
.peer-table th:last-child {
  text-align: right;
}

.source-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.explainer {
  padding: 26px;
  margin-bottom: 24px;
}

.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.explainer-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.method {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: center;
  padding: 26px;
  margin-bottom: 32px;
}

.conversion-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17211e;
  color: #ffffff;
}

.conversion-strip .eyebrow,
.conversion-strip p {
  color: rgba(255, 255, 255, 0.74);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #17211e;
  font-weight: 900;
}

.affiliate-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.affiliate-strip a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.affiliate-strip strong,
.affiliate-strip span {
  display: block;
}

.affiliate-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  padding: 22px 32px 36px;
  color: var(--muted);
  text-align: center;
}

footer strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    padding: 14px 16px;
  }

  .nav {
    display: none;
  }

  main {
    width: min(100% - 20px, 760px);
  }

  .hero,
  .workspace,
  .method,
  .conversion-strip,
  .affiliate-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .score-grid,
  .explainer-grid,
  .panel-grid,
  .trust-grid,
  .financial-grid,
  .driver-grid,
  .mini-metric-grid,
  .quality-grid,
  .check-grid,
  .reference-grid,
  .screener-controls,
  .flag-list {
    grid-template-columns: 1fr;
  }

  .report-head,
  .chart-head,
  .verdict-strip {
    grid-template-columns: 1fr;
  }

  .report-head {
    flex-direction: column;
  }

  .price-block {
    text-align: left;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .revenue-item {
    grid-template-columns: 1fr;
  }

  .info-box.full {
    grid-column: auto;
  }

  .trust-row {
    display: block;
  }

  .trust-row strong {
    justify-content: flex-start;
    margin-top: 8px;
  }
}

.calculator-page-shell {
  max-width: 1180px;
}

.calc-hub-hero {
  display: grid;
  min-height: 360px;
  align-items: center;
  padding: 52px 0 34px;
}

.calc-hub-hero h1,
.calc-page-head h1 {
  max-width: 780px;
  margin: 0;
  color: #111816;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.calc-page-head {
  padding: 26px 0 20px;
}

.calc-page-head p,
.calc-hub-hero .hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 20px;
  border-radius: 8px;
  background: #0c5d66;
  color: #fff;
  font-weight: 850;
}

.calc-hub-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.calculator-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dce5df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(30, 36, 34, 0.08);
}

.calculator-card.compact {
  min-height: 190px;
}

.calculator-card span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f5f3;
  color: #0c5d66;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.calculator-card h2 {
  margin: 18px 0 8px;
  font-size: 24px;
  line-height: 1.12;
}

.calculator-card p {
  margin: 0;
  color: var(--muted);
}

.calculator-card a {
  margin-top: auto;
  color: #0c5d66;
  font-weight: 900;
}

.calc-disclaimer,
.seo-content-block {
  margin: 26px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.seo-content-block {
  display: grid;
  gap: 8px;
}

.seo-content-block h2 {
  margin: 18px 0 0;
}

.seo-content-block h2:first-child {
  margin-top: 0;
}

.seo-content-block p,
.calc-disclaimer p {
  margin: 0;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.breadcrumb a {
  color: #0c5d66;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 22px;
  align-items: start;
  margin: 12px 0 26px;
}

.calculator-inputs,
.calculator-results {
  padding: 24px;
  border: 1px solid #dce5df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 36, 34, 0.08);
}

.calculator-results {
  position: sticky;
  top: 92px;
}

.calc-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.calc-card-heading h2 {
  margin: 0;
}

.reset-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: #0c5d66;
  cursor: pointer;
  font-weight: 850;
}

.input-stack,
.calc-control {
  display: grid;
  gap: 18px;
}

.calc-control {
  gap: 10px;
}

.calc-control label {
  color: #26302d;
  font-weight: 850;
}

.manual-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cfd9d4;
  border-radius: 14px;
  background: #fbfcfa;
  color: var(--muted);
  font-weight: 850;
}

.manual-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.range-input {
  width: 100%;
  accent-color: #0c5d66;
}

.validation-message {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.result-label {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.result-number {
  display: block;
  margin: 4px 0 18px;
  color: #0c5d66;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8e5;
  border-radius: 14px;
  background: #fbfcfa;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 19px;
}

.split-visual {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.split-track {
  display: flex;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ee;
}

.split-track span {
  display: block;
  background: #0c5d66;
}

.split-track em {
  display: block;
  background: #5aa897;
}

.split-legend {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.split-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.split-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #0c5d66;
}

.split-legend span:nth-child(2) i {
  background: #5aa897;
}

.assumption-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d6e6e2;
  border-radius: 14px;
  background: #f3faf8;
}

.assumption-box p {
  margin: 5px 0 0;
  color: var(--muted);
}

.calc-table-section[hidden] {
  display: none;
}

.calculator-table th,
.calculator-table td {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .calc-hub-grid,
  .related-grid,
  .calculator-shell,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .calculator-results {
    position: static;
  }

  .calc-hub-hero h1,
  .calc-page-head h1 {
    font-size: 40px;
  }
}

:root {
  --bg: #f8faf7;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #5f6b63;
  --line: #dde5de;
  --teal: #0f766e;
  --green: #047857;
  --shadow: 0 18px 44px rgba(23, 33, 27, 0.08);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 3px;
}

.calculator-page-shell {
  width: min(1240px, calc(100% - 32px));
  padding: 38px 0 72px;
}

.calculator-page-shell .eyebrow {
  color: #0f766e;
  letter-spacing: 0.08em;
}

.topbar .nav a[aria-current="page"] {
  color: #0f766e;
  font-weight: 850;
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-menu-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d5ded8;
  border-radius: 12px;
  background: #ffffff;
  color: #17211b;
  cursor: pointer;
  font-weight: 800;
}

.mobile-menu-button[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(300px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #dce5df;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(23, 33, 27, 0.14);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2ee;
  color: #17211b;
  font-size: 14px;
  font-weight: 720;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu a[aria-current="page"],
.mobile-menu a:hover {
  background: #eef8f4;
  color: #0f766e;
}

.calc-hub-hero {
  min-height: 310px;
  padding: 44px 0 30px;
}

.calc-hub-hero h1,
.calc-page-head h1 {
  max-width: 760px;
  color: #17211b;
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 760;
  line-height: 1.04;
}

.calc-page-head {
  padding: 22px 0 18px;
}

.calc-page-head p,
.calc-hub-hero .hero-text {
  max-width: 680px;
  color: #3f4b44;
  font-size: 17px;
  line-height: 1.7;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chip-row span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #cfe8df;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.hero-note {
  max-width: 620px;
  margin: 16px 0 0;
  color: #5f6b63;
  font-size: 14px;
  line-height: 1.6;
}

.primary-cta,
.calculator-card-link {
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-cta {
  background: #0f766e;
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.18);
}

.primary-cta:hover,
.calculator-card-link:hover {
  transform: translateY(-1px);
}

.calc-hub-grid,
.related-grid {
  gap: 20px;
}

.calculator-card {
  min-height: 218px;
  padding: 24px;
  border-color: #dde5de;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(23, 33, 27, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.calculator-card:hover {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 18px 42px rgba(23, 33, 27, 0.1);
  transform: translateY(-2px);
}

.calculator-card span {
  background: #ecfdf5;
  color: #0f766e;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.calculator-card h2 {
  color: #17211b;
  font-size: 22px;
  font-weight: 720;
}

.calculator-card p,
.seo-content-block p,
.calc-disclaimer p,
.assumption-box p {
  color: #4d5a52;
  line-height: 1.65;
}

.calculator-card-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: #f3fbf8;
  color: #0f766e;
}

.calc-disclaimer,
.seo-content-block,
.calc-table-section,
.calculator-inputs,
.calculator-results {
  border-color: #dde5de;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(23, 33, 27, 0.06);
}

.seo-content-block {
  gap: 10px;
  padding: 28px;
}

.formula-box {
  display: grid;
  gap: 14px;
  margin: 4px 0 8px;
  padding: 18px;
  border: 1px solid #d5e8df;
  border-radius: 16px;
  background: #f6fbf8;
}

.formula-expression {
  margin: 0;
  color: #17211b;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.formula-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.formula-legend div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  min-width: 0;
}

.formula-legend dt {
  color: #0f766e;
  font-weight: 850;
}

.formula-legend dd {
  min-width: 0;
  margin: 0;
  color: #4d5a52;
}

.formula-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #dcebe4;
  font-size: 14px;
}

.seo-content-block h2,
.calc-disclaimer h2,
.section-heading h2 {
  color: #17211b;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 720;
  letter-spacing: 0;
}

.breadcrumb {
  align-items: center;
  color: #5f6b63;
  font-size: 14px;
}

.breadcrumb a {
  color: #0f766e;
  font-weight: 780;
}

.calculator-shell {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 28px;
  margin: 16px 0 30px;
}

.calculator-inputs,
.calculator-results {
  padding: 26px;
}

.calculator-results {
  top: 88px;
  border-color: rgba(15, 118, 110, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%);
}

.calc-card-heading {
  margin-bottom: 18px;
}

.calc-card-heading h2 {
  color: #17211b;
  font-size: 24px;
  font-weight: 720;
}

.reset-button {
  border-color: #cddbd2;
  border-radius: 12px;
  color: #0f766e;
}

.reset-button:hover {
  background: #eef8f4;
}

.input-stack {
  gap: 20px;
}

.input-group {
  display: grid;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5ece7;
}

.input-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.input-group h3 {
  margin: 0;
  color: #435047;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-control {
  gap: 9px;
}

.calc-control label {
  color: #17211b;
  font-size: 15px;
  font-weight: 700;
}

.manual-input {
  min-height: 54px;
  border-color: #d5ded8;
  border-radius: 14px;
  background: #ffffff;
  color: #5f6b63;
}

.manual-input:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.manual-input input {
  color: #17211b;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.range-input {
  min-height: 28px;
  accent-color: #0f766e;
}

.input-helper {
  margin: -2px 0 0;
  color: #718079;
  font-size: 12px;
  line-height: 1.4;
}

.validation-message {
  min-height: 16px;
  color: #b45309;
  font-size: 12px;
}

.result-label {
  color: #5f6b63;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.result-number {
  margin: 6px 0 20px;
  color: #17211b;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.metric-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.metric-grid article {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #e5ece7;
  border-radius: 0;
  background: transparent;
}

.metric-grid article:last-child {
  border-bottom: 0;
}

.metric-grid span {
  color: #5f6b63;
  font-size: 14px;
  font-weight: 650;
}

.metric-grid strong {
  margin-top: 0;
  color: #17211b;
  font-size: 20px;
  font-weight: 760;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.metric-grid article:nth-child(2) strong {
  color: #0f766e;
}

.split-track {
  height: 14px;
}

.split-track span {
  background: #0f766e;
}

.split-track em {
  background: #7cc6b2;
}

.loan-split .split-track em,
.loan-split .split-legend span:nth-child(2) i {
  background: #d99a2b;
}

.assumption-box {
  border-color: #cfe8df;
  background: #eef8f4;
}

.assumption-box strong {
  color: #17211b;
}

.calculator-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5ece7;
  border-radius: 16px;
}

.calculator-table {
  min-width: 680px;
  border-collapse: collapse;
}

.calculator-table th {
  background: #f4f8f5;
  color: #435047;
  font-size: 13px;
  font-weight: 760;
}

.calculator-table th,
.calculator-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8eee9;
  white-space: nowrap;
}

.calculator-table th:not(:first-child),
.calculator-table td.numeric-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.calculator-table tbody tr:last-child td {
  border-bottom: 0;
}

.calc-table-section[data-table-type="summary"] .calculator-table-wrap {
  overflow-x: visible;
}

.calc-table-section[data-table-type="summary"] .calculator-table {
  min-width: 0;
  width: 100%;
}

.calc-table-section[data-table-type="summary"] .calculator-table th,
.calc-table-section[data-table-type="summary"] .calculator-table td {
  white-space: normal;
}

.calculator-page-shell + footer,
body:has(.calculator-page-shell) footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  border-top: 1px solid #dde5de;
  color: #5f6b63;
  font-size: 13px;
  line-height: 1.6;
}

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

  .calculator-results {
    position: static;
  }
}

@media (max-width: 900px) {
  .mobile-nav {
    display: block;
  }
}

@media (max-width: 768px) {
  .calculator-page-shell {
    width: min(100% - 24px, 720px);
    padding-top: 24px;
  }

  .calc-hub-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .calc-hub-hero {
    min-height: 260px;
    padding: 28px 0 20px;
  }

  .calc-hub-hero h1,
  .calc-page-head h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .calculator-inputs,
  .calculator-results,
  .seo-content-block,
  .calc-disclaimer {
    padding: 20px;
    border-radius: 18px;
  }

  .metric-grid article {
    display: block;
  }

  .metric-grid strong {
    margin-top: 4px;
    text-align: left;
  }

  .result-number {
    font-size: clamp(2.35rem, 11vw, 2.75rem);
  }

  .formula-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .calculator-page-shell {
    width: min(100% - 18px, 390px);
  }

  .calc-hub-hero h1,
  .calc-page-head h1 {
    font-size: 31px;
  }

  .manual-input input {
    font-size: 17px;
  }

  .calculator-card h2 {
    font-size: 20px;
  }
}

/* Money Planning Calculators: sharper launch visual system */
:root {
  --bg: #f8f7f3;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --blue: #1d4ed8;
  --teal: #0f766e;
  --green: #0f766e;
  --amber: #d97706;
  --red: #dc2626;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.22);
  outline-offset: 3px;
}

.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e5e7eb;
}

.brand-mark {
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: none;
}

.brand strong,
.nav a,
.mobile-menu-button {
  color: #111827;
}

.brand small {
  color: #6b7280;
}

.topbar .nav a[aria-current="page"] {
  color: #111827;
  text-decoration: underline;
  text-decoration-color: #1d4ed8;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.mobile-menu-button {
  border-color: #e5e7eb;
  background: #ffffff;
}

.mobile-menu {
  border-color: #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.mobile-menu a {
  border-bottom-color: #f3f4f6;
}

.mobile-menu a[aria-current="page"],
.mobile-menu a:hover {
  background: #f3f4f6;
  color: #111827;
}

.calculator-page-shell .eyebrow,
.breadcrumb a {
  color: #1d4ed8;
}

.calc-hub-hero {
  min-height: 340px;
  margin-bottom: 10px;
  padding: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 251, 0.9)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.calc-hub-hero h1,
.calc-page-head h1 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.calc-hub-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.calc-page-head h1 {
  font-size: clamp(34px, 4.8vw, 58px);
}

.calc-page-head p,
.calc-hub-hero .hero-text,
.hero-note,
.calculator-card p,
.seo-content-block p,
.calc-disclaimer p,
.assumption-box p {
  color: #4b5563;
}

.hero-chip-row span,
.calculator-card span {
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #374151;
}

.primary-cta {
  background: #111827;
  color: #ffffff;
  box-shadow: none;
}

.primary-cta:hover {
  background: #0f172a;
}

.calculator-card {
  border-color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.calculator-card:hover {
  border-color: #9ca3af;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.calculator-card h2,
.calc-card-heading h2,
.seo-content-block h2,
.calc-disclaimer h2,
.section-heading h2 {
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.calculator-card-link {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  padding: 0;
  min-height: 32px;
}

.calculator-card-link::after {
  content: " ->";
}

.calc-disclaimer,
.seo-content-block,
.calc-table-section,
.calculator-inputs,
.calculator-results {
  border-color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.calculator-results {
  border-color: #d1d5db;
  background: #ffffff;
}

.result-label {
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.result-number {
  color: #0f172a;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-grid article {
  border-bottom-color: #e5e7eb;
}

.metric-grid span {
  color: #4b5563;
  font-weight: 700;
}

.metric-grid strong {
  color: #111827;
  font-weight: 800;
}

.metric-grid article:nth-child(2) strong {
  color: #0f766e;
}

.manual-input {
  border-color: #d1d5db;
  background: #ffffff;
  color: #6b7280;
}

.manual-input:focus-within {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.manual-input input,
.manual-input select,
.calc-control label {
  color: #111827;
}

.manual-input select {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.select-input {
  padding-right: 12px;
}

.input-helper {
  color: #6b7280;
}

.input-group {
  border-top-color: #e5e7eb;
}

.input-group h3 {
  color: #374151;
}

.range-input {
  accent-color: #334155;
}

.reset-button {
  border-color: #d1d5db;
  color: #111827;
  background: #ffffff;
}

.reset-button:hover {
  background: #f3f4f6;
}

.split-track {
  background: #e5e7eb;
}

.split-track span,
.split-legend i {
  background: #334155;
}

.split-track em,
.split-legend span:nth-child(2) i {
  background: #0f766e;
}

.loan-split .split-track span,
.loan-split .split-legend span:first-child i {
  background: #334155;
}

.loan-split .split-track em,
.loan-split .split-legend span:nth-child(2) i {
  background: #d97706;
}

.split-legend {
  color: #4b5563;
}

.assumption-box {
  border-color: #e5e7eb;
  background: #f9fafb;
}

.formula-box {
  border-color: #e5e7eb;
  background: #f9fafb;
}

.formula-expression {
  color: #111827;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 700;
}

.formula-legend dt {
  color: #1d4ed8;
}

.formula-legend dd,
.formula-note {
  color: #4b5563;
}

.calculator-table-wrap {
  border-color: #e5e7eb;
}

.calculator-table th {
  background: #f9fafb;
  color: #374151;
}

.calculator-table th,
.calculator-table td {
  border-bottom-color: #e5e7eb;
}

.calculator-table td {
  color: #111827;
}

.calc-disclaimer {
  max-width: 960px;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.calc-disclaimer p {
  max-width: 860px;
  margin: 0 auto;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.calc-disclaimer strong {
  color: #4b5563;
  font-weight: 800;
}

.calculator-page-shell + footer,
body:has(.calculator-page-shell) footer {
  border-top-color: #e5e7eb;
  color: #4b5563;
}

@media (max-width: 768px) {
  .calc-hub-hero {
    padding: 24px;
    border-radius: 16px;
  }

  .result-number {
    font-size: clamp(2.4rem, 11vw, 2.8rem);
  }
}
