/* Holiday lettings investment calculator: approved prototype transferred for responsive review. */
.investment-calculator-redesign {
  --investment-page-navy: #102942;
}

.investment-calculator-redesign main {
  overflow: clip;
}

.investment-calculator-redesign .investment-calculator {
  --navy: #102942;
  --navy-soft: #173b5b;
  --body: #445569;
  --muted: #657483;
  --mist: #eef3f6;
  --mist-deep: #e5ecef;
  --warm: #b98a45;
  --warm-dark: #806037;
  --warm-soft: #e6d6bc;
  --line: #dce3e8;
  --line-dark: #c6d1d8;
  --white: #fff;
  --error: #9e302f;
  --positive: #28624e;
  --negative: #913d3a;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shell: 92.5rem;
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --sticky-results-top: 0px;
  --sticky-results-height: 14rem;
  min-width: 0;
  color: var(--body);
  background: var(--white);
  font: 1rem/1.65 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

.investment-calculator-redesign .investment-calculator,
.investment-calculator-redesign .investment-calculator *,
.investment-calculator-redesign .investment-calculator *::before,
.investment-calculator-redesign .investment-calculator *::after {
  box-sizing: border-box;
}

.investment-calculator-redesign .investment-calculator ::selection {
  color: var(--navy);
  background: var(--warm-soft);
}

.investment-calculator-redesign .investment-calculator a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.investment-calculator-redesign .investment-calculator a:focus-visible,
.investment-calculator-redesign .investment-calculator button:focus-visible,
.investment-calculator-redesign .investment-calculator input:focus-visible {
  outline: 3px solid #9a6b2f;
  outline-offset: 3px;
}

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

.investment-calculator-redesign .investment-calculator button {
  cursor: pointer;
}

.investment-calculator-redesign .investment-calculator img {
  display: block;
  max-width: 100%;
}

.investment-calculator-redesign .investment-calculator .shell {
  width: min(var(--shell), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.investment-calculator-redesign .investment-calculator .tool-opening { border-bottom: 1px solid var(--line); background: #f5f8f9; }
    .investment-calculator-redesign .investment-calculator .tool-opening__inner { min-height: 0; padding: clamp(2.4rem, 4vw, 3.6rem) 0 clamp(2.5rem, 4.5vw, 3.8rem); }
    .investment-calculator-redesign .investment-calculator .tool-opening__meta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
    .investment-calculator-redesign .investment-calculator .tool-opening__eyebrow, .investment-calculator-redesign .investment-calculator .tool-opening__status { color: var(--navy-soft); font-size: .72rem; font-weight: 750; letter-spacing: .1em; line-height: 1.3; }
    .investment-calculator-redesign .investment-calculator .tool-opening__eyebrow { display: inline-flex; align-items: center; gap: .75rem; }
    .investment-calculator-redesign .investment-calculator .tool-opening__eyebrow::before { width: 2.4rem; height: 1px; background: var(--warm); content: ""; }
    .investment-calculator-redesign .investment-calculator .tool-opening__status { display: inline-flex; align-items: center; gap: .5rem; letter-spacing: .055em; white-space: nowrap; }
    .investment-calculator-redesign .investment-calculator .tool-opening__status-mark { width: .42rem; aspect-ratio: 1; border: 1px solid var(--warm); border-radius: 50%; background: var(--white); }
    .investment-calculator-redesign .investment-calculator .tool-opening__copy { padding-top: clamp(1.25rem, 2vw, 1.7rem); }
    .investment-calculator-redesign .investment-calculator .tool-opening h1 { max-width: 22ch; margin: 0; color: var(--navy); font: 400 clamp(2.8rem, 4.25vw, 4.25rem)/1.02 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
    .investment-calculator-redesign .investment-calculator .tool-opening__copy p { max-width: 72ch; margin: 1.15rem 0 0; color: var(--navy-soft); font-size: 1.08rem; font-weight: 500; line-height: 1.55; }

    .investment-calculator-redesign .investment-calculator .investment-outcome { position: sticky; z-index: 10; top: var(--sticky-results-top); border-bottom: 1px solid var(--line-dark); background: var(--mist); }
    .investment-calculator-redesign .investment-calculator .investment-outcome__inner { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.55fr) minmax(20rem, .65fr); gap: clamp(2rem, 4vw, 4.5rem); padding: 1rem 0 1.1rem; align-items: start; }
    .investment-calculator-redesign .investment-calculator .investment-outcome__inner > * { min-width: 0; }
    .investment-calculator-redesign .investment-calculator .outcome-summary { border-top: 3px solid var(--navy); }
    .investment-calculator-redesign .investment-calculator .outcome-summary h2, .investment-calculator-redesign .investment-calculator .cash-flow h2 { margin: 0; color: var(--navy); font: 400 1.3rem/1.15 var(--serif); }
    .investment-calculator-redesign .investment-calculator .outcome-summary h2 { padding: .7rem 0 .65rem; }
    .investment-calculator-redesign .investment-calculator .outcome-story { border-top: 1px solid var(--line-dark); }
    .investment-calculator-redesign .investment-calculator .outcome-statement { margin: 0; padding: .48rem 0; font-size: .86rem; line-height: 1.38; overflow-wrap: anywhere; }
    .investment-calculator-redesign .investment-calculator .outcome-statement + .outcome-statement { border-top: 1px solid var(--line-dark); }
    .investment-calculator-redesign .investment-calculator .summary-value { color: var(--navy); font: 400 1.05rem/1.2 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .investment-calculator-redesign .investment-calculator .cash-flow { min-width: 0; padding: 0; border-top: 3px solid var(--warm); background: transparent; }
    .investment-calculator-redesign .investment-calculator .cash-flow h2 { padding: .7rem 0 .65rem; }
    .investment-calculator-redesign .investment-calculator .cash-flow dl { margin: 0; border-top: 1px solid var(--line-dark); }
    .investment-calculator-redesign .investment-calculator .cash-flow div { display: flex; gap: 1rem; justify-content: space-between; padding: .48rem 0; border-bottom: 1px solid var(--line-dark); font-size: .86rem; line-height: 1.38; }
    .investment-calculator-redesign .investment-calculator .cash-flow dt, .investment-calculator-redesign .investment-calculator .cash-flow dd { margin: 0; }
    .investment-calculator-redesign .investment-calculator .cash-flow dd { min-width: 0; color: var(--navy); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .investment-calculator-redesign .investment-calculator .cash-flow .financial-value--negative { color: var(--negative); }
    .investment-calculator-redesign .investment-calculator .cash-flow .financial-value--positive { color: var(--positive); }
    .investment-calculator-redesign .investment-calculator .cash-flow__total { border-bottom: 0 !important; font-size: .92rem !important; }

    .investment-calculator-redesign .investment-calculator .calculator-form { margin: 0; }
    .investment-calculator-redesign .investment-calculator .calculator-section, .investment-calculator-redesign .investment-calculator .calibrating, .investment-calculator-redesign .investment-calculator .calculator-form :is(input, button) { scroll-margin-top: calc(var(--sticky-results-height) + var(--sticky-results-top) + 1rem); }
    .investment-calculator-redesign .investment-calculator .calculator-section { border-bottom: 1px solid var(--line); background: var(--white); }
    .investment-calculator-redesign .investment-calculator .calculator-section:nth-of-type(even) { background: #fbfcfc; }
    .investment-calculator-redesign .investment-calculator .calculator-section__inner { display: grid; grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); padding: clamp(4.25rem, 7vw, 7rem) 0; align-items: start; }
    .investment-calculator-redesign .investment-calculator .section-heading { align-self: start; }
    .investment-calculator-redesign .investment-calculator .section-heading::before { display: block; width: 3.5rem; height: 2px; margin-bottom: 1.15rem; background: var(--warm); content: ""; }
    .investment-calculator-redesign .investment-calculator .section-heading h2 { margin: 0; color: var(--navy); font: 400 clamp(2.25rem, 3.6vw, 3.7rem)/1.04 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
    .investment-calculator-redesign .investment-calculator .section-heading p { margin: 1.2rem 0 0; }
    .investment-calculator-redesign .investment-calculator .workbench { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .85fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
    .investment-calculator-redesign .investment-calculator .control-group + .control-group, .investment-calculator-redesign .investment-calculator .result-group + .result-group { margin-top: 2.3rem; padding-top: 2.3rem; border-top: 1px solid var(--line); }
    .investment-calculator-redesign .investment-calculator .control-group h3, .investment-calculator-redesign .investment-calculator .result-group h3 { margin: 0 0 1.15rem; color: var(--navy); font-size: 1rem; font-weight: 750; letter-spacing: .01em; }
    .investment-calculator-redesign .investment-calculator .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem 1.5rem; }
    .investment-calculator-redesign .investment-calculator .field { min-width: 0; }
    .investment-calculator-redesign .investment-calculator .field > label { display: block; min-height: 2.6em; margin-bottom: .45rem; color: var(--navy); font-size: .83rem; font-weight: 750; line-height: 1.3; }
    .investment-calculator-redesign .investment-calculator .stepper { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem; border-block: 1px solid var(--line-dark); background: var(--white); }
    .investment-calculator-redesign .investment-calculator .stepper button { display: grid; min-height: 3rem; place-items: center; padding: 0; border: 0; color: var(--navy); background: transparent; }
    .investment-calculator-redesign .investment-calculator .stepper button:hover { background: var(--mist); }
    .investment-calculator-redesign .investment-calculator .stepper button svg { width: 1.05rem; height: 1.05rem; }
    .investment-calculator-redesign .investment-calculator .stepper input { width: 100%; min-width: 0; min-height: 3rem; padding: .55rem .35rem; border: 0; border-inline: 1px solid var(--line); color: var(--navy); background: transparent; font-size: 1rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
    .investment-calculator-redesign .investment-calculator .stepper input[readonly] { color: var(--muted); background: var(--mist); }
    .investment-calculator-redesign .investment-calculator .stepper:focus-within { box-shadow: 0 0 0 2px rgba(185,138,69,.22); }
    .investment-calculator-redesign .investment-calculator .field.is-invalid .stepper { border-color: var(--error); }
    .investment-calculator-redesign .investment-calculator .field-error { display: block; min-height: 1.15rem; margin-top: .3rem; color: var(--error); font-size: .76rem; }
    .investment-calculator-redesign .investment-calculator .derived-field { display: grid; min-height: 3.1rem; align-items: center; padding: .6rem .8rem; border-block: 1px solid var(--line-dark); color: var(--navy); background: var(--mist); font-weight: 700; font-variant-numeric: tabular-nums; }
    .investment-calculator-redesign .investment-calculator .result-surface { padding: 1.4rem 1.5rem 1.5rem; border-top: 3px solid var(--navy); background: var(--mist); }
    .investment-calculator-redesign .investment-calculator .result-surface--warm { border-color: var(--warm); background: #faf8f4; }
    .investment-calculator-redesign .investment-calculator .result-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); }
    .investment-calculator-redesign .investment-calculator .result-pair div { padding: 1rem; background: var(--white); }
    .investment-calculator-redesign .investment-calculator .result-pair span { display: block; font-size: .78rem; }
    .investment-calculator-redesign .investment-calculator .result-pair output { display: block; margin-top: .45rem; color: var(--navy); font: 400 1.65rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
    .investment-calculator-redesign .investment-calculator .breakdown { margin: 0; }
    .investment-calculator-redesign .investment-calculator .breakdown div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
    .investment-calculator-redesign .investment-calculator .breakdown div:last-child { border-bottom: 0; }
    .investment-calculator-redesign .investment-calculator .breakdown dt, .investment-calculator-redesign .investment-calculator .breakdown dd { margin: 0; }
    .investment-calculator-redesign .investment-calculator .breakdown dd { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
    .investment-calculator-redesign .investment-calculator .season-result { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
    .investment-calculator-redesign .investment-calculator .season-result p { margin: .35rem 0; }
    .investment-calculator-redesign .investment-calculator output { font-variant-numeric: tabular-nums; }

    .investment-calculator-redesign .investment-calculator .calibrating { border-bottom: 1px solid var(--line); background: var(--mist); }
    .investment-calculator-redesign .investment-calculator .calibrating__inner { display: grid; grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); padding: clamp(4.5rem, 8vw, 7.5rem) 0; align-items: start; }
    .investment-calculator-redesign .investment-calculator .calibrating__body { max-width: 72rem; }
    .investment-calculator-redesign .investment-calculator .calibration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4.5rem); }
    .investment-calculator-redesign .investment-calculator .calibration-topic { padding: 1.75rem 0 1.9rem; border-top: 1px solid var(--line-dark); }
    .investment-calculator-redesign .investment-calculator .calibration-topic h3 { margin: 0 0 .85rem; color: var(--navy); font: 400 1.65rem/1.15 var(--serif); }
    .investment-calculator-redesign .investment-calculator .calibration-topic p { max-width: 67ch; margin: 0; }
    .investment-calculator-redesign .investment-calculator .calibration-topic p + p, .investment-calculator-redesign .investment-calculator .calibration-topic ul + p { margin-top: 1rem; }
    .investment-calculator-redesign .investment-calculator .calibration-topic ul { margin: .9rem 0 0; padding-left: 1.2rem; }
    .investment-calculator-redesign .investment-calculator .calibration-topic li + li { margin-top: .35rem; }
    .investment-calculator-redesign .investment-calculator .calibration-topic--wide { grid-column: 1 / -1; }

    .investment-calculator-redesign .investment-calculator .related-reading { background: var(--white); }
    .investment-calculator-redesign .investment-calculator .related-reading__inner { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
    .investment-calculator-redesign .investment-calculator .related-reading h2 { margin: 0; color: var(--navy); font: 400 clamp(2rem, 3vw, 3rem)/1.08 var(--serif); }
    .investment-calculator-redesign .investment-calculator .related-reading__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.6rem; }
    .investment-calculator-redesign .investment-calculator .related-reading a { padding: 1.15rem 0; border-block: 1px solid var(--line); color: var(--navy); font: 400 1.25rem/1.3 var(--serif); text-decoration-color: var(--warm); }

    @media (max-width: 1080px) {
      .investment-calculator-redesign .investment-calculator .investment-outcome__inner { grid-template-columns: minmax(0, 1.4fr) minmax(16rem, .6fr); gap: 2.25rem; }
      .investment-calculator-redesign .investment-calculator .calculator-section__inner, .investment-calculator-redesign .investment-calculator .calibrating__inner { grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); gap: 2.5rem; }
      .investment-calculator-redesign .investment-calculator .workbench { grid-template-columns: 1fr; }
      .investment-calculator-redesign .investment-calculator .result-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
      .investment-calculator-redesign .investment-calculator .result-group + .result-group { margin: 0; padding: 0; border: 0; }
    }
    @media (max-width: 780px) {
      .investment-calculator-redesign .investment-calculator .tool-opening__inner { padding-block: 2.5rem 2.7rem; }
      .investment-calculator-redesign .investment-calculator .investment-outcome__inner { grid-template-columns: minmax(0, 1.35fr) minmax(13rem, .65fr); gap: 1.5rem; }
      .investment-calculator-redesign .investment-calculator .calculator-section__inner, .investment-calculator-redesign .investment-calculator .calibrating__inner { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 0; }
      .investment-calculator-redesign .investment-calculator .section-heading h2 { max-width: 16ch; }
      .investment-calculator-redesign .investment-calculator .field-grid { grid-template-columns: 1fr 1fr; }
      .investment-calculator-redesign .investment-calculator .calibration-grid { grid-template-columns: 1fr; }
      .investment-calculator-redesign .investment-calculator .calibration-topic--wide { grid-column: auto; }
      .investment-calculator-redesign .investment-calculator .related-reading__links { grid-template-columns: 1fr; gap: .8rem; }
    }

    @media (max-width: 600px) {
      .investment-calculator-redesign .investment-calculator { --gutter: 1.25rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__inner { padding-block: 1.8rem 1.9rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__meta { gap: .75rem; padding-bottom: .75rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__eyebrow, .investment-calculator-redesign .investment-calculator .tool-opening__status { font-size: .66rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__eyebrow { gap: .55rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__eyebrow::before { width: 1.5rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__status { gap: .4rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__copy { padding-top: 1rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening h1 { font-size: clamp(2.35rem, 10.5vw, 3rem); line-height: 1.03; }
      .investment-calculator-redesign .investment-calculator .tool-opening__copy p { margin-top: .8rem; font-size: .95rem; line-height: 1.45; }
      .investment-calculator-redesign .investment-calculator .investment-outcome__inner { grid-template-columns: minmax(0, 1.6fr) minmax(6.75rem, .9fr); gap: .6rem; padding: .55rem 0 .65rem; }
      .investment-calculator-redesign .investment-calculator .outcome-summary, .investment-calculator-redesign .investment-calculator .cash-flow { border-top-width: 2px; }
      .investment-calculator-redesign .investment-calculator .outcome-summary h2, .investment-calculator-redesign .investment-calculator .cash-flow h2 { padding: .42rem 0 .38rem; font-size: .92rem; }
      .investment-calculator-redesign .investment-calculator .outcome-statement { padding: .3rem 0; font-size: .74rem; line-height: 1.28; }
      .investment-calculator-redesign .investment-calculator .summary-value { font-size: .88rem; line-height: inherit; }
      .investment-calculator-redesign .investment-calculator .cash-flow div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(3.5rem, .8fr); gap: .25rem; padding: .28rem 0; font-size: .72rem; line-height: 1.2; }
      .investment-calculator-redesign .investment-calculator .cash-flow dd { font-size: .78rem; }
      .investment-calculator-redesign .investment-calculator .cash-flow__total { font-size: .76rem !important; }
      .investment-calculator-redesign .investment-calculator .field-grid, .investment-calculator-redesign .investment-calculator .result-column, .investment-calculator-redesign .investment-calculator .result-pair { grid-template-columns: 1fr; }
      .investment-calculator-redesign .investment-calculator .result-column { display: block; }
      .investment-calculator-redesign .investment-calculator .result-group + .result-group { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
      .investment-calculator-redesign .investment-calculator .field > label { min-height: 0; }
    }
    @media (min-width: 700px) and (max-width: 950px) and (max-height: 430px) and (orientation: landscape) {
      .investment-calculator-redesign .investment-calculator .tool-opening__inner { padding-block: 1.15rem 1.25rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__meta { padding-bottom: .45rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__eyebrow, .investment-calculator-redesign .investment-calculator .tool-opening__status { font-size: .62rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__copy { padding-top: .65rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening h1 { font-size: 2.3rem; }
      .investment-calculator-redesign .investment-calculator .tool-opening__copy p { margin-top: .5rem; max-width: 78ch; font-size: .82rem; line-height: 1.35; }
      .investment-calculator-redesign .investment-calculator .investment-outcome__inner { grid-template-columns: minmax(0, 1.7fr) minmax(12rem, .7fr); gap: 1rem; padding-block: .45rem .55rem; }
      .investment-calculator-redesign .investment-calculator .outcome-summary, .investment-calculator-redesign .investment-calculator .cash-flow { border-top-width: 2px; }
      .investment-calculator-redesign .investment-calculator .outcome-summary h2, .investment-calculator-redesign .investment-calculator .cash-flow h2 { padding-block: .35rem .3rem; font-size: .88rem; }
      .investment-calculator-redesign .investment-calculator .outcome-statement { padding-block: .22rem; font-size: .72rem; line-height: 1.22; }
      .investment-calculator-redesign .investment-calculator .summary-value { font-size: .84rem; line-height: inherit; }
      .investment-calculator-redesign .investment-calculator .cash-flow div { padding-block: .2rem; font-size: .72rem; line-height: 1.2; }
      .investment-calculator-redesign .investment-calculator .cash-flow__total { font-size: .76rem !important; }
      .investment-calculator-redesign .investment-calculator .calculator-section__inner, .investment-calculator-redesign .investment-calculator .calibrating__inner { padding-block: 2.8rem; }
      .investment-calculator-redesign .investment-calculator .calculator-section__inner, .investment-calculator-redesign .investment-calculator .calibrating__inner { gap: 2rem; }
    }

    @media (prefers-reduced-motion: reduce) {
      .investment-calculator-redesign .investment-calculator { scroll-behavior: auto !important; }
      .investment-calculator-redesign .investment-calculator *, .investment-calculator-redesign .investment-calculator *::before, .investment-calculator-redesign .investment-calculator *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    }
