   .foi-calc {
     --navy: #001b6b;
     --ink: #141a2e;
     --body-c: #464d63;
     --muted: #5e6780;
     --rule: #d8dce7;
     --rule-2: #edeff4;
     --paper: #fbfaf8;
     --accent: #0047bb;
   }
   .foi-calc * {
     box-sizing: border-box;
   }
   .foi-calc {
     margin: 0;
     font-family: 'Lexend', sans-serif;
     color: var(--body-c);
     background: var(--paper);
     font-size: 17px;
     line-height: 1.75;
     -webkit-font-smoothing: antialiased;
   }
   .foi-calc .wrap {
     max-width: 1000px;
     margin: 0 auto;
     padding: 0 32px;
   }
   .foi-calc .cap {
     font-size: 12px;
     font-weight: 600;
     letter-spacing: .08em;
     text-transform: uppercase;
   }
   .foi-calc header {
     background: var(--navy);
     color: #fff;
     border-bottom: 3px solid var(--accent);
     text-align: center;
   }
   .foi-calc header .wrap {
     padding: 60px 32px 52px;
     max-width: 820px;
   }
   .foi-calc h1 {
     font-size: clamp(30px,4vw,46px);
     margin: 0 0 18px;
     line-height: 1.15;
     font-weight: 600;
     letter-spacing: -.02em;
     text-wrap: balance;
   }
   .foi-calc .lede {
     margin: 0 auto;
     color: #c4cde8;
     font-size: 16.5px;
     max-width: 52ch;
   }
   .foi-calc .stage {
     padding-top: 52px;
     padding-bottom: 8px;
   }
   .foi-calc .wrap {
     max-width: 1000px;
   }
   .foi-calc .hero-n {
     text-align: center;
     padding-bottom: 34px;
     border-bottom: 1px solid var(--rule);
   }
   .foi-calc .hero-n .big {
     font-family: 'Lexend', sans-serif;
     font-size: clamp(40px,6vw,52px);
     font-weight: 800;
     line-height: 1;
     color: var(--navy);
     font-variant-numeric: tabular-nums;
     letter-spacing: -.02em;
   }
   .foi-calc .hero-n .big.neg {
     color: #a3352a;
   }
   .foi-calc .sign {
     letter-spacing: 0;
     margin-right: .07em;
   }
   .foi-calc .hero-n .cap {
     color: var(--muted);
     margin-top: 16px;
     display: inline-flex;
     align-items: center;
     gap: 8px;
   }
   .foi-calc .hero-n .info .pop {
     width: 290px;
   }
   .foi-calc .kpis {
     display: grid;
     grid-template-columns: repeat(3,1fr);
     border-bottom: 1px solid var(--rule);
   }
   .foi-calc .kpi {
     padding: 26px 8px 28px;
     text-align: center;
   }
   .foi-calc .kpi + .kpi {
     border-left: 1px solid var(--rule-2);
   }
   .foi-calc .kpi .n {
     font-family: 'Lexend', sans-serif;
     font-size: 38px;
     font-weight: 800;
     color: var(--ink);
     font-variant-numeric: tabular-nums;
     line-height: 1;
   }
   .foi-calc .kpi .l {
     font-size: 12.5px;
     color: var(--muted);
     margin-top: 8px;
     display: inline-flex;
     align-items: center;
     gap: 7px;
     justify-content: center;
   }
   .foi-calc .kpi .info .pop {
     width: 250px;
   }
   .foi-calc .kpi:first-child .info .pop {
     left: 0;
     transform: none;
   }
   .foi-calc .kpi:first-child .info .pop::after {
     left: 14px;
     transform: none;
   }
   .foi-calc .kpi:last-child .info .pop {
     left: auto;
     right: 0;
     transform: none;
   }
   .foi-calc .kpi:last-child .info .pop::after {
     left: auto;
     right: 14px;
     transform: none;
   }
   .foi-calc .chart {
     padding: 38px 0 30px;
     border-bottom: 1px solid var(--rule);
   }
   .foi-calc .chart-head {
     display: flex;
     align-items: center;
     justify-content: flex-start;
     gap: 26px;
     margin: 0 0 22px;
     flex-wrap: wrap;
   }
   .foi-calc .modes {
     display: inline-flex;
     border: 1px solid var(--rule);
     background: #fff;
   }
   .foi-calc .modes button {
     font: inherit;
     font-size: 12.5px;
     font-weight: 500;
     padding: 7px 15px;
     border: 0;
     background: transparent;
     color: var(--body-c);
     cursor: pointer;
   }
   .foi-calc .modes button + button {
     border-left: 1px solid var(--rule);
   }
   .foi-calc .modes button[aria-pressed=true] {
     background: var(--navy);
     color: #fff;
   }
   .foi-calc .modes button:focus-visible {
     outline: 2px solid var(--accent);
     outline-offset: 2px;
   }
   .foi-calc .legend i.dash {
     height: 0;
     border-top: 2px dashed var(--accent);
     background: none;
     width: 18px;
   }
   .foi-calc .legend i.line {
     height: 0;
     border-top: 2.5px solid var(--navy);
     background: none;
     width: 18px;
   }
   .foi-calc .legend i.line2 {
     height: 0;
     border-top: 2.5px solid #7189c6;
     background: none;
     width: 18px;
   }
   .foi-calc .chart-head .cap {
     color: var(--ink);
   }
   .foi-calc .legend {
     display: flex;
     gap: 20px;
     font-size: 12.5px;
     color: var(--muted);
   }
   .foi-calc .legend span {
     display: flex;
     align-items: center;
     gap: 8px;
   }
   .foi-calc .legend i {
     width: 14px;
     height: 11px;
     background: #c4cde8;
     display: block;
   }
   .foi-calc .legend i.c {
     background: var(--navy);
   }
   .foi-calc .chart-row {
     display: grid;
     grid-template-columns: minmax(0,1fr) 244px;
     gap: 32px;
     align-items: center;
   }
   .foi-calc svg.plot {
     width: 100%;
     height: auto;
     display: block;
     min-width: 0;
   }
   .foi-calc .saveline {
     padding: 22px 24px 24px;
     background: #fff;
     border: 1px solid var(--rule);
     border-top: 3px solid var(--navy);
   }
   .foi-calc .saveline .l {
     margin: 0;
     font-size: 11px;
     font-weight: 600;
     letter-spacing: .08em;
     text-transform: uppercase;
     color: var(--ink);
   }
   .foi-calc .saveline .n {
     margin: 10px 0 0;
     font-family: 'Lexend', sans-serif;
     font-size: 38px;
     font-weight: 800;
     line-height: 1.02;
     color: var(--navy);
     font-variant-numeric: tabular-nums;
     letter-spacing: -.01em;
   }
   .foi-calc .saveline .n.neg {
     color: #a3352a;
   }
   .foi-calc .saveline .s {
     margin: 12px 0 0;
     padding-top: 12px;
     border-top: 1px solid var(--rule-2);
     font-size: 12.5px;
     color: var(--body-c);
     line-height: 1.55;
   }
   .foi-calc .chart-note {
     font-size: 12.5px;
     color: var(--muted);
     margin: 14px 0 0;
   }
   .foi-calc .chart-note b {
     color: var(--ink);
     font-weight: 600;
     font-variant-numeric: tabular-nums;
   }
   .foi-calc .controls {
     padding: 32px 0 8px;
   }
   .foi-calc .controls .hdr {
     display: flex;
     align-items: baseline;
     justify-content: space-between;
     gap: 16px;
     border-bottom: 1px solid var(--ink);
     padding-bottom: 10px;
     margin: 0 0 30px;
   }
   .foi-calc .controls .hdr .cap {
     color: var(--ink);
   }
   .foi-calc .controls .hdr .n {
     font-size: 12.5px;
     color: var(--muted);
   }
   .foi-calc .f2 {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 8px 56px;
   }
   .foi-calc .field {
     min-width: 0;
   }
   .foi-calc .fh {
     display: flex;
     justify-content: space-between;
     align-items: baseline;
     gap: 12px;
     margin-bottom: 8px;
   }
   .foi-calc .fh label {
     color: var(--ink);
     font-size: 16px;
     font-weight: 500;
     display: inline-flex;
     align-items: center;
     gap: 8px;
   }
   .foi-calc .stepper {
     display: flex;
     align-items: stretch;
     gap: 14px;
     width: 118px;
     flex: none;
     padding: 4px 0 5px;
     border-bottom: 1px solid var(--ink);
   }
   .foi-calc .stepper:focus-within {
     border-bottom-color: var(--accent);
   }
   .foi-calc .stepper:focus-within input {
     color: var(--accent);
   }
   .foi-calc .stepper input {
     width: 100%;
     padding: 0;
     border: 0;
     font: inherit;
     font-size: 17px;
     font-variant-numeric: tabular-nums;
     color: var(--ink);
     text-align: right;
     background: transparent;
     -moz-appearance: textfield;
     appearance: textfield;
   }
   .foi-calc .stepper input::-webkit-outer-spin-button,
   .foi-calc .stepper input::-webkit-inner-spin-button {
     -webkit-appearance: none;
     margin: 0;
   }
   .foi-calc .stepper input:focus {
     outline: none;
   }
   .foi-calc .stepper .btns {
     display: flex;
     flex-direction: column;
     justify-content: center;
     gap: 3px;
     flex: none;
   }
   .foi-calc .stepper button {
     width: 16px;
     height: 11px;
     padding: 0;
     border: 0;
     background: transparent;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--muted);
   }
   .foi-calc .stepper button:hover {
     color: var(--navy);
   }
   .foi-calc .stepper button:focus-visible {
     outline: 1px solid var(--accent);
     outline-offset: 1px;
   }
   .foi-calc input[type=range] {
     width: 100%;
     accent-color: var(--navy);
     margin: 0;
     display: block;
     height: 18px;
   }
   .foi-calc input[type=range]:focus-visible {
     outline: 2px solid var(--accent);
     outline-offset: 3px;
   }
   .foi-calc .hint {
     font-size: 12.5px;
     color: var(--muted);
     margin: 6px 0 0;
     line-height: 1.5;
   }
   .foi-calc .info {
     position: relative;
     display: inline-flex;
     flex: none;
   }
   .foi-calc .info > button {
     width: 17px;
     height: 17px;
     padding: 0;
     border: 1px solid var(--rule);
     border-radius: 50%;
     background: #fff;
     color: var(--muted);
     font: inherit;
     font-size: 11px;
     font-weight: 600;
     line-height: 1;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
   }
   .foi-calc .info > button:hover,
   .foi-calc .info > button[aria-expanded=true] {
     background: var(--navy);
     border-color: var(--navy);
     color: #fff;
   }
   .foi-calc .info > button:focus-visible {
     outline: 2px solid var(--accent);
     outline-offset: 2px;
   }
   .foi-calc .info .pop {
     position: absolute;
     left: 50%;
     bottom: calc(100% + 9px);
     transform: translateX(-50%);
     width: 262px;
     background: var(--navy);
     color: #e4e9f7;
     font-size: 12.5px;
     line-height: 1.5;
     padding: 12px 14px;
     z-index: 20;
     opacity: 0;
     visibility: hidden;
     transition: opacity .12s ease;
     pointer-events: none;
   }
   .foi-calc .info .pop::after {
     content: "";
     position: absolute;
     left: 50%;
     top: 100%;
     transform: translateX(-50%);
     border: 6px solid transparent;
     border-top-color: var(--navy);
   }
   .foi-calc .info:hover .pop,
   .foi-calc .info > button[aria-expanded=true] + .pop {
     opacity: 1;
     visibility: visible;
   }
   .foi-calc .controls .field:last-child .info .pop {
     left: auto;
     right: -4px;
     transform: none;
   }
   .foi-calc .controls .field:last-child .info .pop::after {
     left: auto;
     right: 8px;
     transform: none;
   }
   @media (max-width: 860px) {
     .foi-calc .info .pop {
       width: min(262px,72vw);
     }
   }
   @media (prefers-reduced-motion: reduce) {
     .foi-calc .info .pop {
       transition: none;
     }
   }
   .foi-calc .capture {
     margin: 44px 0 0;
     background: #fff;
     border: 1px solid var(--rule);
     border-top: 3px solid var(--navy);
     padding: 32px 36px 34px;
     display: grid;
     grid-template-columns: minmax(0,1fr) minmax(0,330px);
     gap: 44px;
   }
   .foi-calc .capture h2 {
     font-family: 'Lexend', sans-serif;
     font-size: 26px;
     font-weight: 600;
     color: var(--ink);
     margin: 0 0 12px;
     line-height: 1.2;
   }
   .foi-calc .capture .why {
     margin: 0;
     font-size: 14.5px;
     max-width: 44ch;
   }
   .foi-calc .capture ul {
     margin: 18px 0 0;
     padding: 0;
     list-style: none;
     font-size: 14px;
   }
   .foi-calc .capture li {
     padding: 8px 0;
     border-top: 1px solid var(--rule-2);
     display: flex;
     gap: 11px;
     color: var(--body-c);
   }
   .foi-calc .capture li::before {
     content: "";
     width: 14px;
     height: 2px;
     background: var(--accent);
     flex: none;
     margin-top: 10px;
   }
   .foi-calc .cap-form .row {
     margin-bottom: 15px;
   }
   .foi-calc .cap-form label {
     display: block;
     font-size: 12.5px;
     color: var(--muted);
     margin: 0 0 6px;
   }
   .foi-calc .cap-form input {
     width: 100%;
     padding: 11px 12px;
     border: 1px solid var(--rule);
     border-radius: 0;
     font: inherit;
     font-size: 15px;
     color: var(--ink);
     background: var(--paper);
   }
   .foi-calc .cap-form input:focus {
     outline: none;
     border-color: var(--accent);
   }
   .foi-calc .cap-form input[aria-invalid=true] {
     border-color: #a3352a;
   }
   .foi-calc .cap-form .err {
     font-size: 12px;
     color: #a3352a;
     margin: 6px 0 0;
     display: none;
   }
   .foi-calc .cap-form input[aria-invalid=true] + .err {
     display: block;
   }
   .foi-calc .cap-form button {
     width: 100%;
     padding: 14px 18px;
     border: 0;
     background: var(--accent);
     color: #fff;
     font: inherit;
     font-size: 15px;
     font-weight: 600;
     cursor: pointer;
   }
   .foi-calc .cap-form button:hover {
     background: var(--navy);
   }
   .foi-calc .cap-form button:focus-visible {
     outline: 2px solid var(--ink);
     outline-offset: 2px;
   }
   .foi-calc .cap-form .consent {
     display: flex;
     gap: 10px;
     align-items: flex-start;
     margin: 4px 0 16px;
   }
   .foi-calc .cap-form .consent input[aria-invalid=true] {
     outline: 2px solid #a3352a;
     outline-offset: 2px;
   }
   .foi-calc .cap-form #f_consent_err {
     margin: -10px 0 14px;
   }
   .foi-calc .cap-form .consent:has(input[aria-invalid=true]) + .err {
     display: block;
   }
   .foi-calc .cap-form .consent input {
     width: 15px;
     height: 15px;
     accent-color: var(--navy);
     margin-top: 3px;
     flex: none;
   }
   .foi-calc .cap-form .consent label {
     font-size: 12.5px;
     color: var(--body-c);
     margin: 0;
     line-height: 1.5;
   }
   .foi-calc .done {
     font-size: 14.5px;
   }
   .foi-calc .done b {
     color: var(--ink);
   }
   .foi-calc .done .sum {
     margin: 16px 0 0;
     padding: 16px 0 0;
     border-top: 1px solid var(--rule-2);
     font-size: 13.5px;
     color: var(--muted);
   }
   .foi-calc .done .sum span {
     display: flex;
     justify-content: space-between;
     gap: 12px;
     padding: 4px 0;
   }
   .foi-calc .done .sum span b {
     color: var(--ink);
     font-variant-numeric: tabular-nums;
   }
   .foi-calc .done .open {
     display: inline-flex;
     margin: 18px 0 0;
     padding: 12px 20px;
     background: var(--accent);
     color: #fff;
     text-decoration: none;
     font-size: 14px;
     font-weight: 600;
   }
   .foi-calc .done .open:hover {
     background: var(--navy);
     color: #fff;
   }
   @media (max-width: 860px) {
     .foi-calc .capture {
       grid-template-columns: 1fr;
       gap: 26px;
       padding: 24px 22px 26px;
     }
   }
   .foi-calc .notes {
     border-top: 1px solid var(--ink);
     margin-top: 48px;
     padding: 30px 0 72px;
     font-size: 13px;
     color: var(--muted);
   }
   .foi-calc .notes h3 {
     color: var(--ink);
     margin: 0 0 16px;
   }
   .foi-calc .notes p {
     margin: 0 0 14px;
     max-width: none;
   }
   .foi-calc .notes a {
     color: var(--accent);
     text-decoration: underline;
     text-underline-offset: 2px;
   }
   .foi-calc .notes a:hover {
     color: var(--navy);
   }
   @media (prefers-reduced-motion: reduce) {
     .foi-calc svg.plot * {
       transition: none;
     }
   }
   @media (max-width: 860px) {
     .foi-calc .chart-row {
       grid-template-columns: 1fr;
       gap: 24px;
     }
     .foi-calc .kpis {
       grid-template-columns: 1fr;
     }
     .foi-calc .kpi + .kpi {
       border-left: 0;
       border-top: 1px solid var(--rule-2);
     }
     .foi-calc .f2 {
       grid-template-columns: 1fr;
       gap: 26px;
     }
   }
   /* Embedded in the FOI Agent page: hide the site chrome, this page"s own title
   band, the report capture form and the method notes, then let the host size
   the frame. */
   html[data-embed="1"] body {
     background: transparent;
   }
   html[data-embed="1"] site-nav,
   html[data-embed="1"] site-footer,
   html[data-embed="1"] .foi-calc > header,
   html[data-embed="1"] .foi-calc .capture,
   html[data-embed="1"] .foi-calc .notes {
     display: none;
   }
   html[data-embed="1"] .foi-calc .stage {
     padding-top: 8px;
   }
   /* <site-nav> is fixed, so the first band has to clear it. The extra space is
   the same navy as the nav, so the two read as one block. */
   .foi-calc > header {
     padding-top: var(--nav-height);
   }
   /* Same as above: the h1 took its white from the navy header band it sits in,
   and styles.css gives bare headings a dark colour and a tighter line height. */
   .foi-calc > header h1 {
     color: inherit;
   }
   .foi-calc h2 {
     letter-spacing: -.01em;
   }
   .foi-calc .notes h3 {
     line-height: 1.6;
   }
   /* The method-notes heading is a sans small-caps label, the same treatment
   assets/css/ehcp-roi-calculator.css gives its own .cap headings. */
   .foi-calc .notes h3 {
     font-family: 'Lexend', sans-serif;
   }
