/* ==========================================================================
   SITE RESKIN: the two calculators and the buying guide (15 Oct 2026).
   Loaded only in the new-look preview (request.reskinCss = "guides" on
   tools/oil-calculator.cfm, tools/runout-calculator.cfm and
   guides/buying-guide.cfm), on top of assets/css/reskin.css.
   Layouts: includes/inc_rs_oil_calculator.cfm, inc_rs_runout_calculator.cfm,
   inc_rs_buying_guide.cfm. Every rule sits under the page wrappers
   .rs-tool (calculators) or .rs-guide (buying guide).
   One dark green for everything you click or read; no coloured edge bars;
   icons are the dark green on the wash circle.
   ========================================================================== */

/* ---------- Shared: shorter calm wash hero (15 Oct review: a utility page, no photo; no quote box) ---------- */
.rs-tool .rs-hero,
.rs-guide .rs-hero { padding-bottom: 32px; }
.rs-hero-meta { font-size: 13.5px; margin: 10px 0 0; }
.rs-hero-meta i { margin-right: 4px; }

/* ---------- Shared: side column cards ---------- */
.rs-tool .rs-aside > * + *,
.rs-guide .rs-aside > * + * { margin-top: 12px; }
.rs-page .rs-aside-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    margin: 0 0 10px;
}
.rs-aside-title .rs-icon { width: 36px; height: 36px; font-size: 16px; }
.rs-dots { list-style: none; padding: 0; margin: 0; font-size: 14.5px; line-height: 1.55; }
.rs-dots li { position: relative; padding: 7px 0 7px 18px; }
.rs-dots li + li { border-top: 1px solid var(--rs-hair); }
.rs-dots li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rs-green);
}
.rs-toollinks { list-style: none; padding: 0; margin: 0; }
.rs-toollinks li + li { border-top: 1px solid var(--rs-hair); }
.rs-toollinks a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.rs-toollinks a:hover { text-decoration: underline; }
.rs-toollinks .rs-icon { width: 32px; height: 32px; font-size: 15px; }
.rs-toollinks .rs-toollinks-sub { display: block; font-size: 13px; color: var(--rs-label); margin: -4px 0 8px 42px; }
.rs-aside .btn-ft-outline { border-radius: var(--rs-radius-sm); font-weight: 700; }

/* ---------- Calculators: the form card ---------- */
.rs-tool-card { padding: 20px; }
.rs-tool-card .form-label { margin-bottom: 8px; }
.rs-tool-card .rs-field { margin-bottom: 18px; }
.rs-tool .rs-choice .btn {
    background: #fff;
    border: 1px solid var(--rs-field);
    color: var(--rs-ink);
    border-radius: var(--rs-radius-sm);
    padding: 12px 6px;
    font-weight: 600;
    font-size: 14px;
}
.rs-tool .rs-choice .btn i { color: var(--rs-green); }
.rs-tool .rs-choice .btn:hover { background: #fff; border-color: var(--rs-green); color: var(--rs-ink); }
.rs-tool .rs-choice .btn-check:checked + .btn {
    background: var(--rs-green);
    border-color: var(--rs-green);
    color: #fff;
}
.rs-tool .rs-choice .btn-check:checked + .btn i { color: #fff; }
.rs-tool .rs-choice .btn-check:focus-visible + .btn { box-shadow: 0 0 0 3px rgba(25,79,53,0.2); }
.rs-tool .form-check-label { color: var(--rs-ink); font-size: 15px; }
/* The hot water tick box: dark green focus ring, not Bootstrap's blue */
.rs-tool .rs-tool-card .form-check-input:focus { border-color: var(--rs-green); box-shadow: 0 0 0 3px rgba(25,79,53,0.15); }
.rs-tool .form-text { color: var(--rs-label); font-size: 13.5px; }

/* The main button: full width, the one dark green */
.rs-btn--wide { width: 100%; white-space: normal; text-align: center; }
.rs-btn--lg { font-size: 16px; padding: 14px 20px; }

/* Tank level slider (run-out) */
.rs-tool .form-range { accent-color: var(--rs-green); }
.rs-tool .form-range::-webkit-slider-thumb { background-color: var(--rs-green); }
.rs-tool .form-range::-moz-range-thumb { background-color: var(--rs-green); }
.rs-tool .form-range::-webkit-slider-thumb:active { background-color: #9FBF92; }
.rs-tool .form-range::-moz-range-thumb:active { background-color: #9FBF92; }
.rs-tool .form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 4px rgba(25,79,53,0.25); }
.rs-tool .form-range:focus::-moz-range-thumb { box-shadow: 0 0 0 1px #fff, 0 0 0 4px rgba(25,79,53,0.25); }
.rs-tool .form-range::-webkit-slider-runnable-track { background-color: var(--rs-wash); }
.rs-tool .form-range::-moz-range-track { background-color: var(--rs-wash); }
.rs-level {
    display: inline-block;
    min-width: 56px;
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--rs-green);
    color: #fff;
    text-align: center;
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}
.rs-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--rs-label); margin-top: 2px; }

/* ---------- Calculators: the result card ---------- */
.rs-result {
    background: #fff;
    border: 1px solid var(--rs-hair);
    border-radius: var(--rs-radius);
    overflow: hidden;
    scroll-margin-top: 84px;
}
.rs-result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--rs-wash);
    border-bottom: 1px solid var(--rs-hair);
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--rs-ink);
}
.rs-result-head .rs-icon { background: #fff; width: 36px; height: 36px; font-size: 16px; }
.rs-result-body { padding: 20px; }
.rs-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--rs-hair);
    border-radius: var(--rs-radius-sm);
    margin-bottom: 14px;
    text-align: center;
}
.rs-stat { padding: 14px 6px; min-width: 0; }
.rs-stat:not(:last-child) { border-right: 1px solid var(--rs-hair); }
.rs-stat strong {
    display: block;
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.4px;
    color: var(--rs-ink);
    overflow-wrap: anywhere;
}
.rs-stat span { display: block; font-size: 13px; line-height: 1.35; color: var(--rs-label); margin-top: 4px; }
.rs-note {
    background: var(--rs-wash);
    border-radius: var(--rs-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--rs-ink);
    margin-bottom: 14px;
}
.rs-note i { color: var(--rs-green); margin-right: 4px; }
.rs-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rs-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-tile {
    background: var(--rs-page);
    border: 1px solid var(--rs-hair);
    border-radius: var(--rs-radius-sm);
    padding: 10px 6px;
    text-align: center;
    min-width: 0;
}
.rs-tile small { display: block; font-size: 13px; line-height: 1.35; color: var(--rs-label); margin-bottom: 2px; }
.rs-tile strong { color: var(--rs-ink); font-size: 15px; overflow-wrap: anywhere; }
.rs-result-cta { border-top: 1px solid var(--rs-hair); padding-top: 16px; margin-top: 4px; }
.rs-result-cta p { color: var(--rs-ink); }

/* Run-out: the date, the warnings and the month bars */
.rs-bigdate {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--rs-ink);
    overflow-wrap: anywhere;
}
.rs-alert {
    border-radius: var(--rs-radius-sm);
    padding: 12px 14px;
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 14px;
    border: 1px solid var(--rs-hair);
}
.rs-alert i { margin-right: 4px; }
.rs-alert--warn { background: #FDF3F1; border-color: #F0C8C0; color: #5E1A10; }
.rs-alert--warn i { color: #B42318; }
.rs-alert--ok { background: var(--rs-wash); border-color: var(--rs-hair); color: var(--rs-ink); }
.rs-alert--ok i { color: var(--rs-green); }
.rs-page .rs-month-title { font-size: 16px; margin: 4px 0 10px; }
/* The script draws the bars with var(--ft-green): point it at the dark green
   here only, and give the month label room for "Oct (now)". */
.rs-tool #monthlyBreakdown { --ft-green: #194F35; color: var(--rs-ink); }
/* The script writes font-size:0.8rem (12.8px) on each row: lift it to 13px, and the
   month names to the page's label green instead of Bootstrap's grey .text-muted. */
.rs-tool #monthlyBreakdown > div { font-size: 13px !important; }
.rs-tool #monthlyBreakdown > div > span:first-child { width: 5.2em !important; white-space: nowrap; }
.rs-tool #monthlyBreakdown .text-muted { color: var(--rs-label) !important; }

/* ---------- Buying guide ---------- */
.rs-toc { margin-bottom: 8px; }
/* eyebrows inside the article keep their small size (the article's p rule is bigger) */
.rs-guide .rs-copy .rs-eyebrow { font-size: 11px; line-height: 1.5; }
.rs-guide .rs-copy .rs-toc .rs-eyebrow { margin: 0 0 6px; }
.rs-toc ol { margin: 0; padding-left: 1.4em; line-height: 2; }
.rs-guide .rs-copy .rs-toc li { font-size: 14.5px; break-inside: avoid; }
.rs-toc li::marker { color: var(--rs-num); font-weight: 700; }
.rs-toc a { text-decoration: none; }
.rs-toc a:hover { text-decoration: underline; }
.rs-guide-sec { padding: 28px 0 8px; scroll-margin-top: 84px; }
.rs-guide-sec + .rs-guide-sec { border-top: 1px solid var(--rs-hair); }
.rs-guide-sec h2 { scroll-margin-top: 84px; }
.rs-guide .rs-copy p,
.rs-guide .rs-copy li { font-size: 15.5px; }
.rs-guide .rs-copy p { margin: 0 0 14px; }
.rs-guide .rs-copy strong { color: var(--rs-ink); }
.rs-list { list-style: none; padding: 0; margin: 0 0 16px; }
.rs-list li { position: relative; padding: 6px 0 6px 20px; line-height: 1.65; }
.rs-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 16px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rs-green);
}
.rs-page .rs-sub { font-size: 17px; margin: 18px 0 6px; }

/* Tables: white, hairlines, wash header. The fuel types table stacks on phones. */
.rs-table-wrap { position: relative; overflow-x: auto; margin: 0 0 16px; }
.rs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--rs-hair);
    border-radius: var(--rs-radius-sm);
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--rs-body);
}
.rs-table th {
    background: var(--rs-wash);
    color: var(--rs-ink);
    font-weight: 700;
    font-size: 13px;
    text-align: left;
    padding: 10px 12px;
}
.rs-table td { padding: 10px 12px; border-top: 1px solid var(--rs-hair); vertical-align: top; }
.rs-table th:not(:last-child),
.rs-table td:not(:last-child) { border-right: 1px solid var(--rs-hair); }
.rs-table thead tr:first-child th:first-child { border-top-left-radius: var(--rs-radius-sm); }
.rs-table thead tr:first-child th:last-child { border-top-right-radius: var(--rs-radius-sm); }
@media (max-width: 767.98px) {
    .rs-table--stack,
    .rs-table--stack tbody,
    .rs-table--stack tr,
    .rs-table--stack td { display: block; width: 100%; }
    .rs-table--stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .rs-table--stack tr { padding: 12px 14px; }
    .rs-table--stack tr + tr { border-top: 1px solid var(--rs-hair); }
    .rs-table--stack td {
        border: 0 !important;
        padding: 2px 0;
        display: grid;
        grid-template-columns: 7.2em minmax(0, 1fr);
        gap: 8px;
    }
    .rs-table--stack td::before {
        content: attr(data-label);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
        color: var(--rs-label);
        padding-top: 1px;
    }
    .rs-table--stack td:first-child { display: block; font-size: 16px; padding-bottom: 4px; }
    .rs-table--stack td:first-child::before { display: none; }
}

/* When to buy: three season cards, the icons in the one dark green */
.rs-seasons { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 4px 0 16px; }
.rs-seasons > .rs-card { margin: 0; }
.rs-season .rs-icon { margin-bottom: 10px; }
.rs-season h3 { margin-bottom: 6px; }
.rs-guide .rs-copy .rs-season p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.rs-guide .rs-copy .rs-season .rs-eyebrow { margin: 0 0 4px; font-size: 11px; line-height: 1.5; }
.rs-season--best { background: var(--rs-wash); border-color: var(--rs-wash); }
.rs-season--best .rs-icon { background: #fff; }

/* Ten ways to save: numbered 01-10 by CSS, no new words */
.rs-tips { list-style: none; counter-reset: rs-tip; padding: 0; margin: 0 0 12px; }
.rs-tips li {
    counter-increment: rs-tip;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rs-hair);
    line-height: 1.65;
}
.rs-tips li:last-child { border-bottom: none; }
.rs-tips li::before {
    content: counter(rs-tip, decimal-leading-zero);
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 20px;
    line-height: 1.35;
    color: var(--rs-num);
}

/* How to order: three numbered cards */
.rs-order-steps { margin: 4px 0 16px; }
.rs-order-steps > .rs-card { margin: 0; }
.rs-order-steps .rs-num { display: block; margin-bottom: 6px; }
.rs-guide .rs-copy .rs-order-steps p { font-size: 14.5px; line-height: 1.6; margin: 0; }

/* A note on the wash, with its icon */
.rs-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--rs-wash);
    border-radius: var(--rs-radius-sm);
    padding: 14px 16px;
    margin: 4px 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rs-ink);
}
.rs-callout .rs-icon { background: #fff; width: 36px; height: 36px; font-size: 16px; }
.rs-callout a { font-weight: 700; }

/* Questions: the accordion's chevron in the one dark green (Bootstrap's is
   near-black closed and navy open), the same lines as rs-page-faq.css */
.rs-guide .rs-faq { margin-bottom: 8px; }
.rs-guide .rs-faq.accordion {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23194F35' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23194F35' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --bs-accordion-btn-icon-width: 1rem;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(25, 79, 53, 0.15);
}
.rs-guide .rs-faq .accordion-header { margin: 0; }
.rs-guide .rs-faq .accordion-button { gap: 12px; overflow-wrap: anywhere; }

/* Closing call to action: left-aligned on the wash like the /about supplier band: heading and
   line on the left, the one dark green button on the right on wide screens, under them on a phone */
.rs-guide-cta {
    background: var(--rs-wash);
    border-radius: var(--rs-radius);
    padding: 22px;
    margin: 28px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.rs-page .rs-guide-cta h3 { color: var(--rs-ink); font-size: 21px; margin: 0 0 4px; }
.rs-guide .rs-copy .rs-guide-cta p { color: var(--rs-body); font-size: 15px; line-height: 1.6; margin: 0; }
.rs-guide-cta .rs-btn { align-self: flex-start; white-space: normal; text-align: left; }

/* ---------- Bigger screens ---------- */
@media (min-width: 768px) {
    .rs-toc ol { columns: 2; column-gap: 28px; }
    .rs-seasons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rs-guide-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 30px; }
    .rs-guide-cta .rs-btn { align-self: center; white-space: nowrap; }
    .rs-stat strong { font-size: 30px; }
    .rs-bigdate { font-size: 34px; }
}
@media (min-width: 992px) {
    /* A short photo hero and a short gap under it, so the form shows on Rhys's
       1280x620 laptop: header ~129 + hero 260 + gap 32 puts the card top at about
       420px (was about 530px). The title fits one line at 42px and the lead two
       lines (its width cap is raised; it still sits in the left 7 columns, on the
       darker side of the photo). */
    .rs-tool .rs-hero { padding: 28px 0 36px; }
    .rs-tool .rs-hero .breadcrumb { margin-bottom: 14px; }
    .rs-tool .rs-hero h1 { font-size: 42px; letter-spacing: -1.2px; margin-bottom: 12px; }
    .rs-tool .rs-hero .rs-lead { font-size: 16px; max-width: 42em; }
    .rs-tool > .rs-section { padding-top: 32px; }
    .rs-guide .rs-hero { padding: 40px 0 48px; }
    .rs-tool-card { padding: 28px 30px; }
    .rs-result-head { padding: 16px 28px; }
    .rs-result-body { padding: 24px 28px; }
    .rs-guide-sec { padding: 36px 0 12px; }
    .rs-guide .rs-copy p,
    .rs-guide .rs-copy li { font-size: 16.5px; }
    .rs-guide-sec h2 { font-size: 32px; }
}
/* The guide's side column follows the reader down the long article (15 Oct review: no gap beside
   it). On a short screen its lower cards are below the fold until the end of the article, but the
   quote box at the top is always in view. */
@media (min-width: 992px) {
    .rs-guide .rs-aside { position: sticky; top: 108px; }
}
/* On the two calculators the quote box and cards beside the form follow the reader a little way,
   so no gap is left beside a longer form or result (only where they fit under the menu). */
@media (min-width: 992px) and (min-height: 740px) {
    .rs-tool .rs-aside { position: sticky; top: 108px; }
}
