﻿
.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;
}
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-muted: #eef3ef;
  --ink: #17201b;
  --muted: #607068;
  --line: #d9e1dc;
  --accent: #12695f;
  --accent-dark: #0d4e48;
  --warm: #9a5b1f;
  --shadow: 0 18px 45px rgba(23, 32, 27, 0.08);
  --layout-wide: 1360px;
  --layout-standard: 1160px;
  --layout-reading: 880px;
  --layout-padding: clamp(18px, 5vw, 72px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

html,
body {
  overflow-x: hidden;
}

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.55;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

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

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

h3 {
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 244, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand__mark,
.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand__mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
}

.brand__logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: min(216px, 52vw);
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.brand__text {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}

main {
  min-height: calc(100vh - 180px);
}
.layout-wide,
.layout-standard,
.layout-reading {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.layout-wide {
  max-width: var(--layout-wide);
}

.layout-standard {
  max-width: var(--layout-standard);
}

.layout-reading {
  max-width: var(--layout-reading);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--layout-padding) clamp(42px, 6vw, 88px);
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  padding: 10px 16px;
  text-decoration: none;
}

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

.hero__panel {
  display: grid;
  gap: 14px;
}

.hero__panel div,
.feature-card,
.tool-card,
.category-card,
.content-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__panel div {
  padding: 22px;
}

.hero__panel span {
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero__panel strong {
  display: block;
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.hero__panel p,
.feature-card p,
.tool-card p,
.category-card p,
.content-block p,
.page-intro p {
  color: var(--muted);
}

.section,
.page {
  width: 100%;
  max-width: var(--layout-wide);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) var(--layout-padding);
}

.section__header,
.page-intro {
  margin-bottom: 28px;
}

.page-intro--compact {
  margin-bottom: 18px;
}

.page--narrow {
  max-width: var(--layout-reading);
}

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

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

.feature-card,
.tool-card,
.category-card,
.content-block {
  padding: 24px;
}

.feature-card a {
  font-weight: 750;
}

.tool-list {
  display: grid;
  gap: 32px;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.tool-list__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin-bottom: 2px;
}

.tool-list__header h2 {
  margin-bottom: 6px;
}

.tool-list__header p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.tool-list__controls {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tool-list__control {
  min-height: 40px;
  padding: 8px 12px;
}

.tool-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-category__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 74px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 20px 24px;
  text-align: left;
}

.tool-category__toggle:hover,
.tool-category__toggle:focus-visible {
  background: var(--surface-muted);
}

.tool-category__toggle:focus-visible {
  outline: 3px solid rgba(18, 105, 95, 0.2);
  outline-offset: -3px;
}

.tool-category__toggle .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.tool-category__title {
  display: block;
  color: #355f5b;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 720;
  letter-spacing: 0.01em;
  line-height: 1.16;
}

.tool-category__description {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.tool-category__meta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  flex: 0 0 auto;
  gap: 12px;
  max-width: max-content;
}

.tool-category__meta .status {
  white-space: nowrap;
}

.tool-category__status-inline {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  white-space: nowrap;
}.tool-category__indicator {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.tool-category__indicator::before,
.tool-category__indicator::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-dark);
  transform: translateY(-50%);
}

.tool-category__indicator::after {
  transform: translateY(-50%) rotate(90deg);
  transition: opacity 140ms ease;
}

.tool-category__toggle[aria-expanded="true"] .tool-category__indicator::after {
  opacity: 0;
}

.tool-category__content {
  display: grid;
  gap: 14px;
  padding: 0 24px 24px;
}

.tool-category__content[hidden] {
  display: none;
}
.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tool-card--featured {
  border-color: rgba(18, 105, 95, 0.35);
  background: linear-gradient(180deg, #ffffff, #f3f8f5);
}

.tool-card h2,
.category-card h2,
.content-block h2 {
  margin-bottom: 8px;
}

.status {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 10px;
}


.content-block h2:not(:first-child) {
  margin-top: 28px;
}


/* Production calculator layout pattern */
.calculator-guidance {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.65;
}

.calculator-guidance strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.calculator-embed-page {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.calculator-core {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin-bottom: 0;
}

.calculator-input-card,
.calculator-primary-result {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.calculator-input-card h2,
.calculator-primary-result h2 {
  margin-bottom: 20px;
}

.calculator-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 240px), 1fr));
  gap: 18px 20px;
  align-items: start;
  min-width: 0;
}

.calculator-input-grid label,
.calculator-input-grid .calculator-fieldset {
  min-width: 0;
}

.calculator-input-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.3;
}

.calculator-input-grid .calculator-fieldset,
.calculator-input-grid .calculator-actions,
.calculator-input-grid .calculator-message {
  grid-column: 1 / -1;
}

.calculator-input-grid input,
.calculator-input-grid select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 0 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.calculator-input-grid select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.calculator-input-grid input:focus,
.calculator-input-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
  background: #fff;
}

.calculator-input-grid .input-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.calculator-input-grid .input-with-suffix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
}

.calculator-input-grid .input-with-suffix input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-right: 8px;
}

.calculator-input-grid .input-with-suffix input:focus {
  box-shadow: none;
}

.calculator-input-grid .input-with-suffix span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
  background: var(--surface-muted);
}

.calculator-input-card .calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.calculator-input-card .calculator-actions .button {
  min-height: 46px;
  min-width: 132px;
  justify-content: center;
}

.calculator-input-card .calculator-actions .button:not(.button--primary) {
  background: #fff;
  border-color: var(--line-strong, #cfd9d4);
  color: var(--ink);
}

.calculator-primary-result[hidden],
.calculator-secondary-output[hidden] {
  display: none;
}

.calculator-primary-result.calculator-empty-state {
  align-self: stretch;
  background: var(--surface-muted);
  box-shadow: none;
}

.calculator-primary-result .result-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.calculator-primary-result .result-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-primary-result .result-grid > div {
  min-width: 0;
}

.calculator-secondary-output {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  overflow: hidden;
}

.calculator-secondary-output .chart-wrap,
.calculator-secondary-output .table-wrap {
  max-width: 100%;
  min-width: 0;
}

.calculator-secondary-output .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calculator-secondary-output canvas {
  max-width: 100%;
}

@media (max-width: 900px) {
  .calculator-input-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .calculator-primary-result .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .calculator-input-grid,
  .calculator-primary-result .result-grid,
  .calculator-primary-result .result-grid--compact {
    grid-template-columns: 1fr;
  }

  .calculator-input-card .calculator-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calculator-input-card .calculator-actions .button {
    width: 100%;
  }
}
.simple-calculator {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  max-width: 1100px;
  margin-bottom: 28px;
}

.simple-calculator__panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.simple-calculator__panel h2 {
  margin-bottom: 16px;
}

.calculator-empty-state {
  align-self: start;
  background: var(--surface-muted);
}

.calculator-empty-state p {
  color: var(--muted);
  margin-bottom: 0;
}


.calculator-fieldset {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 0;
  background: var(--surface-muted);
}

.calculator-fieldset legend {
  padding: 0;
}

.calculator-fieldset__heading {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.simple-calculator__form {
  display: grid;
  gap: 16px;
}

.simple-calculator__form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

.input-help {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.simple-calculator__form input,
.simple-calculator__form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.input-with-suffix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.input-with-suffix input {
  border: 0;
  border-radius: 0;
}

.input-with-suffix span {
  color: var(--muted);
  font-weight: 750;
  padding: 0 12px 0 4px;
}

.simple-calculator__form input:focus,
.simple-calculator__form select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(18, 105, 95, 0.16);
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calculator-message {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.calculator-message.is-stale {
  color: var(--warm);
  font-weight: 750;
}

.field-note,
.result-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.result-grid {
  display: grid;
  gap: 12px;
}

.result-grid + .result-grid {
  margin-top: 14px;
}

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

.result-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.result-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  margin-bottom: 6px;
}

.result-grid strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.result-grid--compact strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.result-note {
  margin: 16px 0 0;
}

.projection-block {
  max-width: 1100px;
  margin-bottom: 28px;
}

.chart-block {
  max-width: 1100px;
  margin-bottom: 28px;
}

.projection-block .section__header {
  margin-bottom: 16px;
}

.chart-block .section__header {
  margin-bottom: 16px;
}

.chart-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  height: 320px;
}


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

.detail-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.detail-summary-card h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  font-size: 1rem;
}

.detail-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.detail-summary-table th,
.detail-summary-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.detail-summary-table th {
  width: 58%;
  color: var(--muted);
  font-weight: 750;
  text-align: left;
}

.detail-summary-table td {
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.detail-summary-table tr:last-child th,
.detail-summary-table tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.projection-table {
  width: 100%;
  min-width: 700px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.projection-table__age {
  width: 8.3%;
}

.projection-table__money {
  width: 18.85%;
}

.projection-table__percent {
  width: 16.3%;
}

.projection-table__year {
  width: 14%;
}

.projection-table--comparison {
  min-width: 620px;
}

.projection-table--comparison .projection-table__money {
  width: 28.66%;
}

.projection-table--future-value {
  min-width: 700px;
}

.projection-table--future-value .projection-table__money {
  width: 21.5%;
}


.projection-table--amortization {
  min-width: 980px;
}

.projection-table th,
.projection-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

.projection-table td {
  white-space: nowrap;
}

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

.projection-table th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.projection-table--amt-exposure {
  min-width: 980px;
}

.projection-table--amt-exposure th,
.projection-table--amt-exposure td {
  padding: 10px 10px;
}

.projection-table--amt-exposure th {
  font-size: 0.76rem;
  line-height: 1.22;
  letter-spacing: 0;
  text-transform: none;
}

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

.projection-table tr.is-highlighted td {
  border-bottom-color: rgba(18, 105, 95, 0.24);
  background: #eef6f2;
  font-weight: 750;
}

.projection-table tr.is-highlighted td:first-child {
  border-left: 4px solid var(--accent);
}

.table-label {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calculator-page {
  width: 100%;
  max-width: var(--layout-standard);
  margin: 0 auto;
  padding: 28px var(--layout-padding) 42px;
}

.calculator-embed-page {
  max-width: var(--layout-standard);
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
}

.calculator-embed-page .simple-calculator,
.calculator-embed-page .projection-block,
.calculator-embed-page .chart-block,
.calculator-embed-page .content-block {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.calculator-embed-page .content-block p,
.calculator-embed-page .content-block li {
  max-width: none;
}

.calculator-embed-page .content-block > * {
  max-width: none;
}
.calculator-frame {
  display: block;
  width: 100%;
  height: 900px;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}




.article-category-page {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 34px var(--layout-padding) 56px;
}

.article-category-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.65fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.article-category-hero > div,
.article-category-support {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
}

.article-category-support {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.article-category-empty {
  margin-top: 18px;
  max-width: none;
}

@media (max-width: 1040px) {
  .article-category-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .article-category-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-category-hero > div,
  .article-category-header {
    padding: 18px;
  }
}

.article-category-header {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.article-category-header h1 {
  margin-bottom: 0;
}

.article-category-header .article-lede {
  margin-bottom: 0;
}

.article-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.article-category-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.article-category-list-intro h2 {
  margin-bottom: 6px;
}

.article-category-list-intro p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-category-sidebar {
  align-self: start;
}

.article-category-sidebar p {
  color: var(--muted);
}

.compact-article-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compact-article-row {
  display: block;
  padding: clamp(17px, 2.4vw, 23px);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

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

.compact-article-row:hover,
.compact-article-row:focus-visible {
  background: rgba(238, 243, 239, 0.42);
  outline: none;
}

.compact-article-row:focus-visible {
  box-shadow: inset 3px 0 0 var(--accent);
}

.compact-article-row__main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.compact-article-row__eyebrow {
  color: var(--warm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.compact-article-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.06rem, 1.45vw, 1.26rem);
  line-height: 1.25;
}

.compact-article-row p {
  margin: 0;
  color: var(--muted);
}

.compact-article-meta {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  font-size: 0.83rem;
  font-weight: 650;
}

@media (max-width: 1040px) {
  .article-category-layout {
    grid-template-columns: 1fr;
  }
}
.article-directory-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.article-directory-card:hover,
.article-directory-card:focus-visible {
  border-color: rgba(18, 105, 95, 0.36);
  outline: none;
}

.article-directory-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.article-directory-card__header .eyebrow {
  margin-bottom: 0;
}

.article-directory-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}


.article-directory-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.14rem, 1.6vw, 1.34rem);
  line-height: 1.22;
}

.article-directory-card p:not(.eyebrow) {
  margin-bottom: 0;
}

.article-card-meta {
  gap: 7px;
  margin-top: 1px;
}

.article-status-badge,
.article-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(30, 78, 72, 0.14);
  border-radius: 999px;
  background: rgba(238, 243, 239, 0.58);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 3px 8px;
}

.article-status-badge {
  border-color: rgba(96, 112, 104, 0.2);
  background: transparent;
  color: color-mix(in srgb, var(--muted) 78%, var(--surface));
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
}

.article-tag-chip--more {
  background: transparent;
  color: color-mix(in srgb, var(--accent-dark) 65%, var(--muted));
}
.article-page {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 34px var(--layout-padding) 56px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.article-shell,
.article-sidebar-card,
.article-toc,
.article-related-section,
.article-metadata,
.article-sources,
.calculator-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-shell {
  padding: clamp(22px, 4vw, 44px);
}

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.article-lede {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
}

.article-chip-row,
.article-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-chip,
.article-related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 6px 10px;
  text-decoration: none;
}

.article-chip--warm {
  color: var(--warm);
}

.article-hero-placeholder {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 260px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 105, 95, 0.16), rgba(154, 91, 31, 0.1)),
    repeating-linear-gradient(0deg, rgba(23, 32, 27, 0.06) 0 1px, transparent 1px 20px),
    #eef3ef;
  box-shadow: var(--shadow);
}

.article-hero-placeholder::before,
.article-hero-placeholder::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(18, 105, 95, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.article-hero-placeholder::before {
  inset: 52px 46% 76px 48px;
}

.article-hero-placeholder::after {
  inset: 76px 52px 52px 44%;
}

.article-hero-placeholder.has-image {
  background: var(--surface);
}

.article-hero-placeholder.has-image::before,
.article-hero-placeholder.has-image::after {
  content: none;
}

.article-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.article-hero-image[hidden] {
  display: none;
}

.article-toc,
.article-related-section,
.article-metadata,
.article-sources,
.article-sidebar-card {
  padding: 18px;
}

.article-toc,
.article-body,
.article-section,
.article-related-section {
  margin-top: 28px;
}


.article-body p {
  color: var(--ink);
}

.article-toc ol,
.article-sidebar-list {
  margin: 0;
  padding-left: 20px;
}

.article-metadata dl {
  display: grid;
  grid-template-columns: minmax(128px, auto) 1fr;
  gap: 8px 14px;
  margin: 0;
}

.article-metadata dt {
  color: var(--muted);
  font-weight: 750;
}

.article-metadata dd {
  margin: 0;
}

.article-sidebar {
  min-width: 0;
  display: grid;
  gap: 24px;
}

.article-sidebar-card {
  box-shadow: none;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-muted));
}

.article-sidebar-card h2,
.article-related-section h2,
.article-toc h2,
.article-metadata h2,
.article-sources h2 {
  margin-bottom: 10px;
}

.calculator-sidebar-callout {
  display: grid;
  gap: 12px;
}

.calculator-sidebar-callout h2 {
  margin-bottom: 0;
}

.calculator-sidebar-callout p {
  color: var(--muted);
  margin-bottom: 0;
}

.article-sidebar-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.calculator-callout {
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: none;
  background: var(--surface);
}

.calculator-callout h2 {
  margin-bottom: 6px;
}

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

.calculator-callout__toggle {
  justify-self: start;
}

.calculator-callout__embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calculator-callout__frame {
  display: block;
  width: 100%;
  height: min(720px, 80vh);
  min-height: 520px;
  border: 0;
}

@media (max-width: 1040px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar-card {
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .article-hero-placeholder,
  .article-hero-image {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .article-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-shell,
  .article-toc,
  .article-related-section,
  .article-metadata,
  .article-sources,
  .article-sidebar-card,
  .calculator-callout {
    padding: 18px;
  }

  .article-metadata dl {
    grid-template-columns: 1fr;
  }

  .calculator-callout__frame {
    min-height: 560px;
  }
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {

  .tool-category__toggle {
    align-items: flex-start;
  }

  .tool-category__meta {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }
  .tool-list__header {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-list__controls {
    justify-content: flex-start;
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    align-items: flex-start;
    flex-direction: column;
  }

  
/* Production calculator layout pattern */
.calculator-guidance {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.65;
}

.calculator-guidance strong {
  color: var(--accent-dark);
  font-weight: 850;
}

.calculator-embed-page {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.calculator-core {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin-bottom: 0;
}

.calculator-input-card,
.calculator-primary-result {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}

.calculator-input-card h2,
.calculator-primary-result h2 {
  margin-bottom: 20px;
}

.calculator-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 240px), 1fr));
  gap: 18px 20px;
  align-items: start;
  min-width: 0;
}

.calculator-input-grid label,
.calculator-input-grid .calculator-fieldset {
  min-width: 0;
}

.calculator-input-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.3;
}

.calculator-input-grid .calculator-fieldset,
.calculator-input-grid .calculator-actions,
.calculator-input-grid .calculator-message {
  grid-column: 1 / -1;
}

.calculator-input-grid input,
.calculator-input-grid select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  padding: 0 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.calculator-input-grid select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.calculator-input-grid input:focus,
.calculator-input-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
  background: #fff;
}

.calculator-input-grid .input-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line-strong, #cfd9d4);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.calculator-input-grid .input-with-suffix:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 121, 111, 0.12);
}

.calculator-input-grid .input-with-suffix input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-right: 8px;
}

.calculator-input-grid .input-with-suffix input:focus {
  box-shadow: none;
}

.calculator-input-grid .input-with-suffix span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
  background: var(--surface-muted);
}

.calculator-input-card .calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.calculator-input-card .calculator-actions .button {
  min-height: 46px;
  min-width: 132px;
  justify-content: center;
}

.calculator-input-card .calculator-actions .button:not(.button--primary) {
  background: #fff;
  border-color: var(--line-strong, #cfd9d4);
  color: var(--ink);
}

.calculator-primary-result[hidden],
.calculator-secondary-output[hidden] {
  display: none;
}

.calculator-primary-result.calculator-empty-state {
  align-self: stretch;
  background: var(--surface-muted);
  box-shadow: none;
}

.calculator-primary-result .result-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.calculator-primary-result .result-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-primary-result .result-grid > div {
  min-width: 0;
}

.calculator-secondary-output {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  overflow: hidden;
}

.calculator-secondary-output .chart-wrap,
.calculator-secondary-output .table-wrap {
  max-width: 100%;
  min-width: 0;
}

.calculator-secondary-output .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calculator-secondary-output canvas {
  max-width: 100%;
}

@media (max-width: 900px) {
  .calculator-input-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .calculator-primary-result .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .calculator-input-grid,
  .calculator-primary-result .result-grid,
  .calculator-primary-result .result-grid--compact {
    grid-template-columns: 1fr;
  }

  .calculator-input-card .calculator-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calculator-input-card .calculator-actions .button {
    width: 100%;
  }
}
.simple-calculator {
    grid-template-columns: 1fr;
  }

  
.site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {

  .tool-category__toggle {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-category__meta {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    justify-self: start;
    width: auto;
  }
  .tool-list__controls,
  .tool-list__control,
  .tool-category__toggle {
    width: 100%;
  }

  .tool-category__toggle {
    min-height: 68px;
    padding: 18px;
  }

  .tool-category__content {
    padding: 0 18px 18px;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }

  h2 {
    font-size: 1.35rem;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    max-width: calc(100% - 92px);
  }

  .brand__text {
    white-space: normal;
    line-height: 1.15;
  }

  .hero,
  .section,
  .page,
  .calculator-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .result-grid--compact {
    grid-template-columns: 1fr;
  }

  .detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .tool-card,
  .category-card,
  .simple-calculator__panel,
  .content-block,
  .hero__panel div {
    padding: 18px;
  }

  .actions,
  .button,
  .calculator-actions {
    width: 100%;
  }

  .button {
    min-height: 48px;
  }

  .status {
    align-self: flex-start;
  }

  .calculator-frame {
    border-radius: 0;
    margin-left: -16px;
    width: calc(100% + 32px);
  }

  .projection-table th,
  .projection-table td {
    padding: 10px 12px;
  }

  .chart-wrap {
    padding: 10px;
  }

  .chart-wrap canvas {
    height: 310px;
  }
}

@media (max-width: 380px) {
  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__logo {
    max-width: min(190px, 50vw);
    height: 38px;
  }

  .nav-toggle {
    padding-left: 10px;
    padding-right: 10px;
  }
}
























/* WISDOM framework hub */
.wisdom-page {
  width: 100%;
  padding: 34px var(--layout-padding) 64px;
}

.wisdom-hero,
.wisdom-framework,
.wisdom-area,
.wisdom-article-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wisdom-hero {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: 24px;
}

.wisdom-hero h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.wisdom-subtitle {
  color: var(--accent-dark);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  font-weight: 760;
}

.wisdom-hero p:not(.eyebrow) {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
}

.wisdom-framework {
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 28px;
}

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

.wisdom-grid article,
.wisdom-area {
  min-width: 0;
  padding: 20px;
}

.wisdom-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.wisdom-grid span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border: 1px solid rgba(18, 105, 95, 0.24);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 850;
}

.wisdom-grid h3,
.wisdom-area h3 {
  margin-bottom: 8px;
}

.wisdom-grid p,
.wisdom-area p {
  margin-bottom: 0;
  color: var(--muted);
}

.wisdom-section-list {
  display: grid;
  gap: 18px;
}

.wisdom-area {
  display: grid;
  gap: 10px;
}

.wisdom-area .article-related-list {
  margin-top: 4px;
}

.wisdom-article-hero {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0;
  padding: clamp(16px, 3vw, 24px);
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-muted));
}

.wisdom-article-hero span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
  text-align: center;
}

@media (max-width: 920px) {
  .wisdom-grid,
  .wisdom-area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wisdom-article-hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .wisdom-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wisdom-grid,
  .wisdom-area-list,
  .wisdom-article-hero {
    grid-template-columns: 1fr;
  }
}







