/* FELIX ROI calculators, built by js/roi-calculator.js on /operational-intelligence/roi-calculator.

   One tab per calculator, in the style of the site's page tabs. A calculator has the assumptions on the
   left and a light teal results panel on the right that stays in view while the assumptions scroll; one
   column when the article is narrow. The colours are the site's: text #464547, greys #767676 / #828282,
   lines #E4E4E4, the teal #76CDD8 / #39C2D7 of its links, tabs and buttons, and the green #2E8540 used for
   values on the Operational Intelligence page.
   The rules are prefixed with .main-article where they have to beat the article's own h2/h3/p/li styles. */

/* The page header banner. common.css gives .main-header none, and every page sets its own in its page CSS;
   this one is the banner of the parent Operational Intelligence page (operationalIntelligence.css).
   :where() keeps it at zero specificity, so a page that has its own banner and also shows a calculator
   keeps that banner whatever the order of the stylesheets. */
:where(.main-header) {
    background: url('/media/205744/perfomancelabbanner.jpg') 50% 50% / cover no-repeat;
}

.roi-calcs {
    --roi-text: #464547;
    --roi-muted: #767676;
    --roi-faint: #828282;
    --roi-line: #E4E4E4;
    --roi-teal: #76CDD8;
    --roi-teal-dark: #39C2D7;
    --roi-tint: #F3FAFB;
    --roi-tint-line: #D6EEF2;
    --roi-green: #2E8540;
    container: roi / inline-size;
    margin: 12px 0 40px;
    color: var(--roi-text);
}

.main-article .roi-calcs p {
    margin: 0;
    line-height: 1.45;
    text-align: left;
}

/* ---------- tabs: the site's page tabs (uppercase, teal underline on the open one) ---------- */

.roi-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    box-shadow: inset 0 -1px 0 rgba(140, 140, 140, .3);
}

.roi-tabs__tab {
    margin: 0;
    padding: 12px 0 11px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--roi-text);
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

    .roi-tabs__tab:hover {
        color: var(--roi-teal-dark);
    }

    .roi-tabs__tab[aria-selected="true"] {
        border-bottom-color: var(--roi-teal);
        color: var(--roi-teal-dark);
        cursor: default;
    }

    .roi-tabs__tab:focus {
        outline: none;
    }

    .roi-tabs__tab:focus-visible {
        outline: 2px solid var(--roi-teal);
        outline-offset: 2px;
    }

/* ---------- layout ---------- */

.roi-calc {
    scroll-margin-top: 24px;
}

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

.roi-calc__layout {
    display: grid;
    gap: 32px;
}

@container roi (min-width: 700px) {
    .roi-calc__layout {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
        gap: 40px;
        align-items: start;
    }

    .roi-calc__summary {
        position: sticky;
        top: 20px;
    }
}

/* ---------- assumptions ---------- */

.main-article .roi-calc .roi-calc__title {
    margin: 0;
    font-family: 'Museo_Sans_900', sans-serif;
    font-size: 20px;
    line-height: 1.3;
    color: var(--roi-text);
}

.main-article .roi-calc .roi-calc__lead {
    margin-top: 4px;
    font-size: 15px;
    color: var(--roi-muted);
}

.roi-calc__fields {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

/* label and number field in a row, the slider under them */
.roi-calc__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
}

.roi-calc__label {
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 15px;
    line-height: 1.3;
}

.roi-calc__field--plain .roi-calc__label {
    text-wrap: balance;
}

.roi-calc__optional {
    margin-left: 4px;
    font-family: "source_sans_proregular", sans-serif;
    font-size: 13px;
    color: var(--roi-faint);
}

/* the number field; money fields get a "$" in front of the number */
.roi-calc__number {
    position: relative;
    display: block;
    width: 108px;
}

.roi-calc__number-input {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #D5D9DE;
    border-radius: 8px;
    background: #fff;
    color: var(--roi-text);
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 16px;
    text-align: right;
    transition: border-color .15s ease, box-shadow .15s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}

    .roi-calc__number-input:hover {
        border-color: #B8C0C8;
    }

    .roi-calc__number-input:focus {
        border-color: var(--roi-teal);
        outline: none;
        box-shadow: 0 0 0 3px rgba(118, 205, 216, .25);
    }

    .roi-calc__number-input::placeholder {
        color: #B0B6BC;
    }

/* a number outside the field's limits: an amber field and the allowed range under it */
.roi-calc__number-input--warn,
.roi-calc__number-input--warn:hover,
.roi-calc__number-input--warn:focus {
    border-color: #E0A43A;
    box-shadow: 0 0 0 3px rgba(224, 164, 58, .2);
}

.main-article .roi-calc .roi-calc__limit {
    grid-column: 1 / -1;
    margin-top: -2px;
    font-size: 13px;
    color: #A8651A;
}

    .main-article .roi-calc .roi-calc__limit:empty {
        display: none;
    }

/* after the field is left: the value is fine, so a grey note that fades out before the script clears it */
.main-article .roi-calc .roi-calc__limit--info {
    color: var(--roi-faint);
    animation: roi-calc-fade-out 3.5s ease forwards;
}

@keyframes roi-calc-fade-out {
    0%, 75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.roi-calc__number--money::before {
    content: "$";
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 16px;
    color: #9AA1A9;
    pointer-events: none;
}

.roi-calc__number--money .roi-calc__number-input {
    padding-left: 24px;
}

.roi-calc__number-input::-webkit-outer-spin-button,
.roi-calc__number-input::-webkit-inner-spin-button,
.roi-calc__share::-webkit-outer-spin-button,
.roi-calc__share::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* FELIX costs: a note box like the site's .highlighted-paragraph (light, with a teal left edge drawn as
   an inset shadow so it follows the rounded corners); the RCA price is text in it, not a field */
.roi-calc__cost {
    padding: 16px 18px 14px 20px;
    border-radius: 10px;
    background: #F7F9FA;
    box-shadow: inset 3px 0 0 var(--roi-teal);
}

.main-article .roi-calc .roi-calc__cost-price {
    font-size: 15px;
    color: var(--roi-text);
}

    .roi-calc__cost-price strong {
        margin-right: 4px;
        font-family: 'Museo_Sans_900', sans-serif;
        font-size: 24px;
        font-weight: normal;
        line-height: 1;
    }

.main-article .roi-calc .roi-calc__cost-calc {
    margin-top: 8px;
    font-size: 14px;
    color: var(--roi-text);
}

.main-article .roi-calc .roi-calc__cost-note {
    margin-top: 4px;
    font-size: 13px;
    color: var(--roi-faint);
}

/* --roi-fill is set by the script, so the track left of the thumb is drawn in teal */
.roi-calc__range {
    --roi-fill: 50%;
    grid-column: 1 / -1;
    width: 100%;
    height: 18px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

    .roi-calc__range:focus {
        outline: none;
    }

    .roi-calc__range::-webkit-slider-runnable-track {
        height: 5px;
        border-radius: 3px;
        background: linear-gradient(90deg, var(--roi-teal) 0, var(--roi-teal) var(--roi-fill), #E8EBEE var(--roi-fill), #E8EBEE 100%);
    }

    .roi-calc__range::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
        margin-top: -6.5px;
        border: 2px solid var(--roi-teal);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 4px rgba(70, 69, 71, .2);
        -webkit-appearance: none;
        appearance: none;
    }

    .roi-calc__range::-moz-range-track {
        height: 5px;
        border-radius: 3px;
        background: #E8EBEE;
    }

    .roi-calc__range::-moz-range-progress {
        height: 5px;
        border-radius: 3px;
        background: var(--roi-teal);
    }

    .roi-calc__range::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border: 2px solid var(--roi-teal);
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 4px rgba(70, 69, 71, .2);
    }

    .roi-calc__range:hover::-webkit-slider-thumb {
        border-color: var(--roi-teal-dark);
    }

    .roi-calc__range:hover::-moz-range-thumb {
        border-color: var(--roi-teal-dark);
    }

/* ---------- blocks: FELIX costs, effort reduction ---------- */

.roi-calc__block {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--roi-line);
}

.main-article .roi-calc .roi-calc__subtitle {
    margin: 0 0 14px;
    font-family: 'Museo_Sans_900', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: var(--roi-text);
}

.main-article .roi-calc .roi-calc__hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--roi-faint);
}

.roi-calc__reduction {
    display: flex;
    align-items: center;
    gap: 16px;
}

.roi-calc__reduction-value {
    flex: none;
    font-family: 'Museo_Sans_900', sans-serif;
    font-size: 36px;
    line-height: 1;
    color: var(--roi-teal-dark);
}

.roi-calc__reduction-text {
    font-size: 14px;
    line-height: 1.4;
    color: var(--roi-muted);
}

    .roi-calc__reduction-text strong {
        font-family: "sourcesanspro-semibold", sans-serif;
        font-weight: normal;
        color: var(--roi-text);
    }

/* the ramp chart (an SVG drawn by the script at the chart's width) */
.roi-calc__chart {
    min-height: 150px;
    margin-top: 18px;
}

.roi-calc__chart-svg {
    display: block;
    overflow: visible;
}

.roi-calc__chart-area {
    fill: rgba(118, 205, 216, .16);
}

.roi-calc__chart-base {
    stroke: var(--roi-line);
    stroke-width: 1;
}

.roi-calc__chart-avg {
    stroke: #9AA1A9;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.roi-calc__chart-line {
    fill: none;
    stroke: var(--roi-teal-dark);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.roi-calc__chart-dot {
    fill: #fff;
    stroke: var(--roi-teal-dark);
    stroke-width: 2;
}

/* the white halo keeps the dashed average line from running through a value */
.roi-calc__chart-value {
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 12px;
    fill: var(--roi-text);
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 4px;
    stroke-linejoin: round;
}

.roi-calc__chart-month,
.roi-calc__chart-avg-label {
    font-family: "source_sans_proregular", sans-serif;
    font-size: 11px;
    fill: var(--roi-faint);
}

/* ---------- the task mix, under "Adjust the task mix" ---------- */

.roi-calc__mix {
    margin-top: 14px;
}

/* in the style of the site's "Learn more" links */
.roi-calc__mix-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--roi-teal-dark);
    cursor: pointer;
    list-style: none;
}

    .roi-calc__mix-toggle::-webkit-details-marker {
        display: none;
    }

    .roi-calc__mix-toggle::after {
        content: "";
        width: 13px;
        height: 13px;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
        transition: transform .2s ease;
    }

    .roi-calc__mix-toggle:hover {
        text-decoration: underline;
    }

    .roi-calc__mix-toggle:focus-visible {
        outline: 2px solid var(--roi-teal);
        outline-offset: 2px;
    }

.roi-calc__mix[open] > .roi-calc__mix-toggle::after {
    transform: rotate(180deg);
}

.roi-calc__mix-body {
    margin-top: 12px;
}

    .main-article .roi-calc .roi-calc__mix-body .roi-calc__hint {
        margin: 0 0 12px;
    }

.roi-calc__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.3;
}

    .roi-calc__table th,
    .roi-calc__table td {
        padding: 8px 12px 8px 0;
        border: 0;
        border-bottom: 1px solid #EEF0F2;
        background: none;
        text-align: left;
        vertical-align: middle;
        font-weight: normal;
    }

    .roi-calc__table th:last-child,
    .roi-calc__table td:last-child {
        padding-right: 0;
    }

    .roi-calc__table thead th {
        padding-top: 0;
        padding-bottom: 6px;
        border-bottom-color: var(--roi-line);
        font-family: "sourcesanspro-semibold", sans-serif;
        font-size: 11px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--roi-faint);
    }

    .roi-calc__table .roi-calc__col-reduction,
    .roi-calc__table .roi-calc__col-share {
        text-align: right;
        white-space: nowrap;
    }

.roi-calc__col-reduction {
    width: 1%;
}

.roi-calc__col-share {
    width: 1%;
}

/* the FELIX reduction of an activity */
.roi-calc__pill {
    display: inline-block;
    min-width: 46px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #E3F4F7;
    color: #1F8FA0;
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
}

.roi-calc__share-box {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--roi-faint);
}

.roi-calc__share {
    width: 58px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #D5D9DE;
    border-radius: 6px;
    background: #fff;
    color: var(--roi-text);
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 15px;
    text-align: right;
    transition: border-color .15s ease, box-shadow .15s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}

    .roi-calc__share:hover {
        border-color: #B8C0C8;
    }

    .roi-calc__share:focus {
        border-color: var(--roi-teal);
        outline: none;
        box-shadow: 0 0 0 3px rgba(118, 205, 216, .25);
    }

.roi-calc__mix-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 20px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--roi-muted);
}

    .roi-calc__mix-foot strong {
        font-family: "sourcesanspro-semibold", sans-serif;
        font-weight: normal;
        color: var(--roi-text);
    }

.roi-calc__reset {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--roi-teal-dark);
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 14px;
    cursor: pointer;
}

    .roi-calc__reset:hover {
        text-decoration: underline;
    }

    .roi-calc__reset:disabled {
        visibility: hidden;
    }

    .roi-calc__reset:focus-visible {
        outline: 2px solid var(--roi-teal);
        outline-offset: 2px;
    }

/* ---------- results panel ---------- */

.roi-calc__summary {
    padding: 24px 24px 20px;
    border: 1px solid var(--roi-tint-line);
    border-radius: 14px;
    background: var(--roi-tint);
}

.main-article .roi-calc .roi-calc__eyebrow {
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--roi-faint);
}

.main-article .roi-calc .roi-calc__hero-label {
    margin-top: 14px;
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 15px;
}

.main-article .roi-calc .roi-calc__hero {
    margin-top: 2px;
    font-family: 'Museo_Sans_900', sans-serif;
    font-size: 40px;
    line-height: 1.1;
    color: var(--roi-text);
    overflow-wrap: anywhere;
}

.main-article .roi-calc .roi-calc__hero--positive {
    color: var(--roi-green);
}

.main-article .roi-calc .roi-calc__hero--negative {
    color: #C0392B;
}

.main-article .roi-calc .roi-calc__hero-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--roi-muted);
}

.roi-calc__rows {
    margin: 20px 0 0;
    border-top: 1px solid var(--roi-tint-line);
}

/* a row: the label and the value, and an explanation under both */
.roi-calc__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--roi-tint-line);
}

    .roi-calc__row[hidden] {
        display: none;
    }

    .roi-calc__row dt {
        font-size: 14px;
        line-height: 1.3;
        font-weight: normal;
        color: var(--roi-text);
    }

    .roi-calc__row dd {
        margin: 0;
        font-family: 'Museo_Sans_900', sans-serif;
        font-size: 16px;
        line-height: 1.3;
        text-align: right;
        white-space: nowrap;
    }

    .roi-calc__row .roi-calc__row-sub {
        grid-column: 1 / -1;
        margin-top: 2px;
        font-family: "source_sans_proregular", sans-serif;
        font-size: 12px;
        color: var(--roi-faint);
        text-align: left;
        white-space: normal;
    }

        .roi-calc__row .roi-calc__row-sub:empty {
            display: none;
        }

.roi-calc__row dd.roi-calc__muted {
    font-family: "source_sans_proregular", sans-serif;
    color: #A0A7AD;
}

/* annual effort: released (teal) on the left, remaining (grey) on the right */
.roi-calc__effort {
    margin-top: 18px;
}

.roi-calc__effort-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

    .roi-calc__effort-head strong {
        font-family: 'Museo_Sans_900', sans-serif;
        font-weight: normal;
    }

.roi-calc__bar {
    position: relative;
    height: 10px;
    margin-top: 8px;
    border-radius: 5px;
    background: #D3DADF;
    overflow: hidden;
}

.roi-calc__bar-released {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    border-radius: 5px 0 0 5px;
    background: var(--roi-teal);
    transition: width .2s ease;
}

.roi-calc__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--roi-muted);
}

    .roi-calc__legend-released::before,
    .roi-calc__legend-remaining::before {
        content: "";
        display: inline-block;
        width: 9px;
        height: 9px;
        margin-right: 6px;
        border-radius: 50%;
        background: var(--roi-teal);
    }

    .roi-calc__legend-remaining::before {
        background: #D3DADF;
    }

/* copy: the site's teal button */
.roi-calc__copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    margin-top: 22px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--roi-teal);
    color: #fff;
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .15s ease;
}

    .roi-calc__copy::before {
        content: "";
        flex: none;
        width: 16px;
        height: 16px;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='13' height='13' rx='2'/%3E%3Cpath d='M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='13' height='13' rx='2'/%3E%3Cpath d='M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .roi-calc__copy:hover {
        background: var(--roi-teal-dark);
    }

    .roi-calc__copy--done,
    .roi-calc__copy--done:hover {
        background: var(--roi-green);
    }

    .roi-calc__copy:focus-visible {
        outline: 2px solid var(--roi-teal-dark);
        outline-offset: 3px;
    }

.main-article .roi-calc .roi-calc__status {
    margin-top: 10px;
    font-size: 13px;
    color: var(--roi-green);
}

    .main-article .roi-calc .roi-calc__status:empty {
        display: none;
    }

.main-article .roi-calc .roi-calc__copy-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--roi-faint);
    text-align: center;
}

/* ---------- disclaimers under the calculator ---------- */

.roi-calc__notes {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--roi-line);
}

    .main-article .roi-calc .roi-calc__notes p {
        font-size: 12px;
        line-height: 1.5;
        color: var(--roi-faint);
    }

        .main-article .roi-calc .roi-calc__notes p + p {
            margin-top: 6px;
        }

/* ---------- "i" hints ---------- */

/* block, with the label inline in it, so the "i" follows the last word when a long label wraps;
   balanced lines keep the "i" from ending up alone on the second line */
.roi-calc__label-row {
    display: block;
    min-width: 0;
    text-wrap: balance;
}

.roi-calc__subtitle-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

    .main-article .roi-calc .roi-calc__subtitle-row .roi-calc__subtitle {
        margin: 0;
    }

/* a small round "i"; the ::after makes the tap target bigger than the circle */
.roi-tip {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0 0 0 7px;
    padding: 0;
    border: 1px solid #B8C0C8;
    border-radius: 50%;
    background: #fff;
    color: #828282;
    font-family: "sourcesanspro-semibold", sans-serif;
    font-size: 11px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    vertical-align: 1px;
    cursor: help;
    transition: border-color .15s ease, color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

    .roi-tip::after {
        content: "";
        position: absolute;
        inset: -8px;
    }

    .roi-tip:hover,
    .roi-tip:focus-visible {
        border-color: #39C2D7;
        color: #39C2D7;
    }

    .roi-tip:focus {
        outline: none;
    }

    .roi-tip:focus-visible {
        box-shadow: 0 0 0 3px rgba(118, 205, 216, .35);
    }

/* the tooltip itself sits on <body> (position: fixed), so its colours are literal, not the --roi-* ones */
.roi-tooltip {
    position: fixed;
    z-index: 1000;
    max-width: min(280px, calc(100vw - 16px));
    padding: 10px 12px;
    border-radius: 8px;
    background: #464547;
    color: #fff;
    font-family: "source_sans_proregular", sans-serif;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    pointer-events: none;
}

    .roi-tooltip[hidden] {
        display: none;
    }

.roi-tooltip__arrow {
    position: absolute;
    top: 100%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: #464547;
    transform: translateY(-5px) rotate(45deg);
}

.roi-tooltip--below .roi-tooltip__arrow {
    top: auto;
    bottom: 100%;
    transform: translateY(5px) rotate(45deg);
}

/* The off-screen field the copy fallback uses in browsers without the Clipboard API */
.roi-calc__clipboard {
    position: fixed;
    top: 0;
    left: -9999px;
    opacity: 0;
}

/* ---------- narrow ---------- */

@container roi (max-width: 420px) {
    .roi-tabs {
        gap: 20px;
    }

    .roi-tabs__tab {
        font-size: 13px;
    }

    .roi-calc__number {
        width: 96px;
    }

    .roi-calc__summary {
        padding: 20px 16px 16px;
    }

    .main-article .roi-calc .roi-calc__hero {
        font-size: 34px;
    }

    .roi-calc__reduction-value {
        font-size: 30px;
    }
}
