  .cost-calculator {
    --paper: #fbfaf5;
    --paper-deep: #f0eee5;
    --paper-line: #d4d0c5;
    --ink: #23352e;
    --muted: #55635b;
    --deepgreen: #1f4639;
    --deepgreen-dark: #15382e;
    --deepgreen-soft: #315b4b;
    --brick: #9b4a3d;
    --brick-dark: #78382f;
    --sand: #ece9df;
    --gold: #d2b86e;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Verdana, Geneva, sans-serif;
    --content-width: 1180px;
    color-scheme: light;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.58;
    font-synthesis: none;
  }

  .cost-calculator,
  .cost-calculator * {
  box-sizing: border-box;
  }

  .cost-calculator [hidden] {
    display: none !important;
  }

  .cost-calculator {
    min-height: 100vh;
    overflow-wrap: anywhere;
  }

  .cost-calculator a {
  color: var(--deepgreen-dark);
  }

.cost-calculator a:hover {
  color: var(--brick-dark);
}

.cost-calculator button,
.cost-calculator input {
  font: inherit;
}

.cost-calculator button,
.cost-calculator a {
  -webkit-tap-highlight-color: transparent;
}

.cost-calculator button {
  cursor: pointer;
}

.cost-calculator :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.cost-calculator .skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--deepgreen-dark);
  background: var(--paper);
  font-weight: 700;
  transform: translateY(-180%);
}

.cost-calculator .skip-link:focus {
  transform: translateY(0);
}

.cost-calculator .site-shell {
  width: calc(100% - 2rem);
  max-width: var(--content-width);
  margin: 0 auto;
}

.cost-calculator .utility-header,
.cost-calculator .utility-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--paper-line);
  padding: 1.15rem 0;
}

.cost-calculator .brand {
  color: var(--deepgreen-dark);
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.cost-calculator .header-label,
.cost-calculator .utility-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-calculator main {
  padding-bottom: 3.5rem;
}

.cost-calculator .intro {
  max-width: 790px;
  padding: clamp(3.2rem, 9vw, 7rem) 0 2.5rem;
}

.cost-calculator .eyebrow,
.cost-calculator .detail-label,
.cost-calculator .panel-kicker {
  margin: 0 0 0.65rem;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cost-calculator h1,
.cost-calculator h2,
.cost-calculator h3,
.cost-calculator p,
.cost-calculator figure,
.cost-calculator dl {
  margin-top: 0;
}

.cost-calculator h1,
.cost-calculator h2,
.cost-calculator h3 {
  color: var(--deepgreen-dark);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.cost-calculator h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 10vw, 5.4rem);
  line-height: 0.98;
}

.cost-calculator h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
}

.cost-calculator h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.1;
}

.cost-calculator p {
  max-width: 68ch;
}

.cost-calculator .lede {
  max-width: 58ch;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.cost-calculator .privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--deepgreen);
  font-size: 0.93rem;
  font-weight: 700;
}

.cost-calculator .privacy-mark {
  flex: 0 0 auto;
  color: var(--brick);
  font-size: 1.2rem;
  line-height: 1.3;
}

.cost-calculator .work-grid {
  display: grid;
  align-items: start;
  gap: 1.25rem;
}

.cost-calculator .panel {
  border: 1px solid var(--paper-line);
  background: rgba(255, 254, 249, 0.9);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.cost-calculator .panel-kicker {
  color: var(--deepgreen-soft);
}

.cost-calculator .panel h2 {
  margin-bottom: 0.55rem;
}

  .cost-calculator .panel-intro {
    max-width: 54ch;
    margin-bottom: 1.8rem;
    color: var(--muted);
  }

  .cost-calculator #calculator-form {
    display: none;
  }

  .cost-calculator.js-enabled #calculator-form {
    display: block;
  }

  .cost-calculator .noscript-note {
    margin: 1.1rem 0 0;
    border-left: 4px solid var(--brick);
    background: #f7e9e4;
    padding: 0.75rem 0.9rem;
    color: var(--brick-dark);
    font-weight: 700;
  }

  .cost-calculator .field-grid {
  display: grid;
  gap: 1rem;
}

.cost-calculator .field {
  min-width: 0;
}

.cost-calculator label,
.cost-calculator legend {
  color: var(--deepgreen-dark);
  font-weight: 700;
}

.cost-calculator label {
  display: block;
  margin-bottom: 0.38rem;
}

.cost-calculator .required,
.cost-calculator .optional,
.cost-calculator .unit,
.cost-calculator .legend-currency {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cost-calculator .required {
  margin-left: 0.3rem;
  color: var(--brick-dark);
}

.cost-calculator .unit {
  margin-left: 0.25rem;
}

.cost-calculator .legend-currency {
  display: inline-block;
  margin-left: 0.3rem;
  color: var(--brick-dark);
}

.cost-calculator input[type="text"],
.cost-calculator input[type="number"] {
  width: 100%;
  min-height: 52px;
  border: 2px solid #8a978f;
  border-radius: 0;
  background: #fffef9;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
}

.cost-calculator input[type="text"] {
  text-transform: uppercase;
}

.cost-calculator input::placeholder {
  color: #7c8780;
  opacity: 1;
}

.cost-calculator input:disabled {
  cursor: not-allowed;
  background: var(--paper-deep);
  color: var(--muted);
}

.cost-calculator .field-help,
.cost-calculator .fieldset-help {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.cost-calculator .choice-fieldset,
.cost-calculator .cost-fieldset,
.cost-calculator .surgery-fieldset {
  min-width: 0;
  margin: 1.75rem 0 0;
  border: 0;
  border-top: 1px solid var(--paper-line);
  padding: 1.45rem 0 0;
}

.cost-calculator legend {
  max-width: 100%;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.cost-calculator .fieldset-help {
  margin: 0.25rem 0 1rem;
}

.cost-calculator .choice-row,
.cost-calculator .toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 52px;
  margin: 0;
  border-top: 1px solid var(--paper-line);
  padding: 0.85rem 0;
  cursor: pointer;
}

.cost-calculator .choice-row input,
.cost-calculator .toggle-row input {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.1rem 0 0;
  accent-color: var(--deepgreen);
}

.cost-calculator .choice-row span,
.cost-calculator .toggle-row span {
  display: grid;
  gap: 0.1rem;
}

.cost-calculator .choice-row strong {
  color: var(--ink);
}

.cost-calculator .choice-row small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
}

.cost-calculator .cost-list {
  display: grid;
  gap: 1rem;
}

.cost-calculator .example-note {
  margin: 1rem 0 0;
  border-left: 3px solid var(--gold);
  background: var(--paper-deep);
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cost-calculator .example-note strong {
  color: var(--deepgreen-dark);
}

.cost-calculator .surgery-fields {
  margin-top: 0.25rem;
}

.cost-calculator .surgery-fields .fieldset-help {
  margin-top: 0.8rem;
}

.cost-calculator .inflation-box {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--paper-line);
  padding-top: 1.45rem;
}

.cost-calculator .inflation-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cost-calculator .inflation-copy .detail-label {
  margin-bottom: 0.35rem;
}

.cost-calculator .inflation-copy h3 {
  margin-bottom: 0.25rem;
}

.cost-calculator .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.cost-calculator .button {
  min-height: 52px;
  border: 2px solid var(--deepgreen-dark);
  border-radius: 0;
  padding: 0.7rem 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.cost-calculator .button-primary {
  background: var(--deepgreen-dark);
  color: var(--paper);
}

.cost-calculator .button-primary:hover {
  background: var(--deepgreen);
  color: var(--paper);
}

.cost-calculator .button-secondary {
  background: transparent;
  color: var(--deepgreen-dark);
}

.cost-calculator .button-secondary:hover {
  background: var(--paper-deep);
}

.cost-calculator .form-error {
  margin: 1.1rem 0 0;
  border-left: 4px solid var(--brick);
  background: #f7e9e4;
  padding: 0.75rem 0.9rem;
  color: var(--brick-dark);
  font-weight: 700;
}

.cost-calculator .results-panel {
  border-color: var(--deepgreen-dark);
  background: var(--deepgreen-dark);
  color: var(--paper);
}

.cost-calculator .results-panel h2,
.cost-calculator .results-panel h3,
.cost-calculator .results-panel label,
.cost-calculator .results-panel .detail-label {
  color: var(--paper);
}

.cost-calculator .results-panel .panel-kicker {
  color: var(--gold);
}

.cost-calculator .results-panel .panel-intro,
.cost-calculator .results-panel figcaption,
.cost-calculator .results-panel .table-note {
  color: rgba(251, 250, 245, 0.78);
}

.cost-calculator .results-meta {
  margin: 0 0 1.25rem;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 700;
}

.cost-calculator .summary-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.cost-calculator .summary-card {
  border: 1px solid rgba(251, 250, 245, 0.32);
  padding: 0.85rem 0.9rem;
}

.cost-calculator .summary-card dt {
  color: rgba(251, 250, 245, 0.78);
  font-size: 0.84rem;
}

.cost-calculator .summary-card dd {
  margin: 0.2rem 0 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  line-height: 1.08;
}

.cost-calculator .summary-total {
  border-color: var(--gold);
}

.cost-calculator .summary-total dd {
  color: var(--gold);
}

.cost-calculator .summary-surgery {
  border-color: rgba(211, 133, 115, 0.76);
}

.cost-calculator .chart-figure {
  margin-bottom: 2rem;
}

.cost-calculator .chart-heading-row,
.cost-calculator .table-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.cost-calculator .chart-heading-row h3,
.cost-calculator .table-heading-row h3 {
  margin-bottom: 0;
}

.cost-calculator .chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  color: rgba(251, 250, 245, 0.82);
  font-size: 0.76rem;
}

.cost-calculator .chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cost-calculator .legend-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
}

.cost-calculator .recurring-swatch {
  background: var(--gold);
}

.cost-calculator .surgery-swatch {
  background: #d38573;
}

.cost-calculator .cost-chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 1rem 0 0.65rem;
  overflow: visible;
}

.cost-calculator .chart-grid-line {
  stroke: rgba(251, 250, 245, 0.2);
  stroke-width: 1;
}

.cost-calculator .chart-axis-label,
.cost-calculator .chart-year-label,
.cost-calculator .chart-empty {
  fill: rgba(251, 250, 245, 0.78);
  font-family: var(--sans);
  font-size: 12px;
}

.cost-calculator .chart-year-label {
  fill: rgba(251, 250, 245, 0.9);
  font-size: 11px;
  text-anchor: middle;
}

.cost-calculator .chart-bar-recurring {
  fill: var(--gold);
}

.cost-calculator .chart-bar-surgery {
  fill: #d38573;
}

.cost-calculator .chart-empty {
  fill: var(--gold);
  font-size: 15px;
  text-anchor: middle;
}

.cost-calculator figcaption {
  font-size: 0.82rem;
  line-height: 1.45;
}

.cost-calculator .table-heading-row {
  align-items: baseline;
  margin-bottom: 0.8rem;
}

.cost-calculator .table-note {
  margin: 0;
  font-size: 0.76rem;
  text-align: right;
}

.cost-calculator .table-wrap,
.cost-calculator .benchmark-table-wrap {
  overflow-x: auto;
}

.cost-calculator table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cost-calculator caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cost-calculator th,
.cost-calculator td {
  padding: 0.7rem 0.5rem;
  text-align: right;
  vertical-align: top;
}

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

.cost-calculator thead {
  border-bottom: 2px solid rgba(251, 250, 245, 0.64);
}

.cost-calculator tbody tr {
  border-bottom: 1px solid rgba(251, 250, 245, 0.2);
}

.cost-calculator tbody th {
  color: var(--paper);
  font-weight: 700;
}

.cost-calculator tbody td {
  color: rgba(251, 250, 245, 0.9);
  white-space: nowrap;
}

.cost-calculator .benchmark-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
  border-top: 4px solid var(--brick);
  background: var(--paper-deep);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.cost-calculator .benchmark-copy h2 {
  max-width: 14ch;
}

.cost-calculator .benchmark-copy > p:not(.eyebrow):not(.source-links) {
  color: var(--muted);
}

.cost-calculator .source-links {
  margin-bottom: 1.4rem;
  font-weight: 700;
}

.cost-calculator .source-context {
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
}

.cost-calculator .source-context p {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.cost-calculator .source-context .detail-label {
  margin-bottom: 0.35rem;
  color: var(--brick-dark);
}

  .cost-calculator .source-context a {
    font-size: 0.88rem;
    font-weight: 700;
  }

  .cost-calculator .source-context strong {
    color: var(--deepgreen-dark);
  }

.cost-calculator .benchmark-table {
  min-width: 0;
  color: var(--ink);
}

.cost-calculator .benchmark-table thead {
  border-bottom-color: var(--paper-line);
}

.cost-calculator .benchmark-table tbody tr {
  border-bottom-color: var(--paper-line);
}

.cost-calculator .benchmark-table th,
.cost-calculator .benchmark-table td {
  color: var(--ink);
}

.cost-calculator .benchmark-table td {
  font-variant-numeric: tabular-nums;
}

.cost-calculator .method-panel {
  margin-top: 1.25rem;
  border-top: 1px solid var(--paper-line);
  padding: clamp(2rem, 5vw, 3rem) 0 0;
}

.cost-calculator .method-panel h2 {
  max-width: 14ch;
}

.cost-calculator .method-grid {
  display: grid;
  gap: 1rem;
}

.cost-calculator .method-grid p {
  margin: 0;
  border-top: 1px solid var(--paper-line);
  padding-top: 0.8rem;
  color: var(--muted);
}

.cost-calculator .method-grid strong {
  color: var(--deepgreen-dark);
}

  .cost-calculator .method-footnote {
    margin: 1.35rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
  }

  .cost-calculator .health-note {
    margin: 1.35rem 0 0;
    border-left: 3px solid var(--brick);
    padding-left: 0.9rem;
    color: var(--muted);
    font-size: 0.88rem;
  }

  .cost-calculator .health-note a {
    font-weight: 700;
  }

  .cost-calculator .utility-footer {
  border-top: 1px solid var(--paper-line);
  border-bottom: 0;
  padding: 1.15rem 0 2.25rem;
}

@media (min-width: 560px) {
  .cost-calculator .two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cost-calculator .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cost-calculator .inflation-box {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.42fr);
    align-items: end;
  }
}

@media (max-width: 640px) {
  .cost-calculator .utility-header,
.cost-calculator .utility-footer,
.cost-calculator .chart-heading-row,
.cost-calculator .table-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cost-calculator .table-note {
    text-align: left;
  }

  .cost-calculator .chart-legend {
    justify-content: flex-start;
  }

  .cost-calculator #yearly-table,
.cost-calculator #yearly-table tbody,
.cost-calculator #yearly-table tr,
.cost-calculator #yearly-table td {
    display: block;
  }

  .cost-calculator #yearly-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cost-calculator #yearly-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.85rem;
    padding: 0.9rem 0;
  }

  .cost-calculator #yearly-table td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.1rem 0;
    text-align: right;
    white-space: normal;
  }

  .cost-calculator #yearly-table td::before {
    color: rgba(251, 250, 245, 0.68);
    content: attr(data-label);
    font-size: 0.74rem;
    text-align: left;
  }

  .cost-calculator #yearly-table td:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(251, 250, 245, 0.2);
    padding-bottom: 0.45rem;
    text-align: left;
  }

  .cost-calculator #yearly-table td:first-child::before {
    color: var(--gold);
    font-weight: 700;
  }

  .cost-calculator .button-row .button {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .cost-calculator .site-shell {
    width: calc(100% - 4rem);
  }

  .cost-calculator .work-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .cost-calculator .results-panel {
    position: sticky;
    top: 1rem;
  }

  .cost-calculator .benchmark-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 2.5rem;
  }

  .cost-calculator .method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cost-calculator {
    scroll-behavior: auto;
  }
}
