/* ==========================================================================
   PRICE HISTORY PAGES (15 Oct 2026; SEO plan rank 10; site reskin, PREVIEW ONLY).
   /heating-oil-prices/history (heating-oil-price-history.cfm) and
   /heating-oil-prices/<month>-<year> (heating-oil-price-month.cfm).
   Loaded through request.reskinCss = "price-history" and only when request.reskin is
   true, so it can never reach a customer. Builds on the shared rs- blocks in reskin.css:
   cream page, white cards, wash bands, Bricolage headings, ONE dark green #194F35,
   hairline rules. No coloured edge bars, no new font, nothing under 13px except the
   small uppercase eyebrow label (reskin.css's own size).
   Every rule sits under body.ft-reskin .rs-ph.
   ========================================================================== */

/* ---------- Hero ---------- */
body.ft-reskin .rs-ph .rs-ph-hero { padding-bottom: 32px; }
body.ft-reskin .rs-ph .rs-ph-hero .rs-lead { max-width: 44rem; }
body.ft-reskin .rs-ph .rs-ph-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (min-width: 992px) {
    body.ft-reskin .rs-ph .rs-ph-hero { padding-bottom: 48px; }
}

/* ---------- Compare cards ---------- */
body.ft-reskin .rs-ph .rs-ph-cmp-card { display: block; }
body.ft-reskin .rs-ph .rs-ph-cmp-what {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--rs-label);
    margin: 0 0 6px;
}
body.ft-reskin .rs-ph .rs-ph-cmp-num {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.8px;
    color: var(--rs-ink);
    margin: 0 0 8px;
}
body.ft-reskin .rs-ph .rs-ph-cmp-num--na { font-size: 22px; letter-spacing: -0.3px; color: var(--rs-label); }
body.ft-reskin .rs-ph .rs-ph-cmp-card .rs-small { margin: 0; }

/* ---------- Charts: a drawn line over hairline gridlines. The picture is an SVG stretched to
   the box (preserveAspectRatio none, strokes keep their width); every label is plain HTML
   placed by percentage, so text stays a readable size on a phone. ---------- */
body.ft-reskin .rs-ph .rs-ph-chart { margin: 0 0 24px; }
body.ft-reskin .rs-ph .rs-ph-plotbox {
    background: #fff;
    border: 1px solid var(--rs-hair);
    border-radius: var(--rs-radius);
    padding: 18px 14px 40px 50px;
}
body.ft-reskin .rs-ph .rs-ph-plot { position: relative; height: 220px; }
body.ft-reskin .rs-ph .rs-ph-chart--long .rs-ph-plot { height: 260px; }
body.ft-reskin .rs-ph .rs-ph-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
body.ft-reskin .rs-ph .rs-ph-grid { stroke: #DFE6D8; stroke-width: 1; vector-effect: non-scaling-stroke; }
body.ft-reskin .rs-ph .rs-ph-line {
    fill: none;
    stroke: #194F35;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
body.ft-reskin .rs-ph .rs-ph-ribbon { fill: rgba(95, 117, 79, 0.22); stroke: none; }
body.ft-reskin .rs-ph .rs-ph-gaprect { fill: rgba(95, 117, 79, 0.12); stroke: none; }
body.ft-reskin .rs-ph .rs-ph-ylab {
    position: absolute;
    right: calc(100% + 8px);
    transform: translateY(-50%);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    color: var(--rs-label);
    font-variant-numeric: tabular-nums;
}
body.ft-reskin .rs-ph .rs-ph-xlab {
    position: absolute;
    top: calc(100% + 10px);
    transform: translateX(-50%);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    color: var(--rs-label);
    font-variant-numeric: tabular-nums;
}
/* round markers (they stay round on laptops, like the live dot on /trends): a ring for the low,
   a filled dot for the high, a small dot for a day with no recorded neighbour */
body.ft-reskin .rs-ph .rs-ph-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid var(--rs-green);
    background: #fff;
}
body.ft-reskin .rs-ph .rs-ph-dot--hi { background: var(--rs-green); }
body.ft-reskin .rs-ph .rs-ph-pt {
    position: absolute;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--rs-green);
}
body.ft-reskin .rs-ph .rs-ph-cap { font-size: 13.5px; line-height: 1.6; color: var(--rs-label); margin: 12px 0 0; }

/* ---------- Tables ---------- */
body.ft-reskin .rs-ph .rs-ph-tablewrap {
    background: #fff;
    border: 1px solid var(--rs-hair);
    border-radius: var(--rs-radius);
    padding: 2px 8px 4px;
}
body.ft-reskin .rs-ph .rs-ph-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--rs-ink);
}
body.ft-reskin .rs-ph .rs-ph-table th,
body.ft-reskin .rs-ph .rs-ph-table td {
    position: static;
    background: transparent;
    padding: 10px 4px;
    border-bottom: 1px solid var(--rs-hair);
    text-align: left;
    vertical-align: top;
}
body.ft-reskin .rs-ph .rs-ph-table thead th {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rs-label);
    border-bottom: 1px solid #C9D6C2;
    vertical-align: bottom;
}
body.ft-reskin .rs-ph .rs-ph-table tbody tr:last-child > * { border-bottom: none; }
body.ft-reskin .rs-ph .rs-ph-table tbody th { font-weight: 600; overflow-wrap: anywhere; }
body.ft-reskin .rs-ph .rs-ph-table tbody th a { color: var(--rs-green); text-decoration: none; text-underline-offset: 3px; }
body.ft-reskin .rs-ph .rs-ph-table tbody th a:hover,
body.ft-reskin .rs-ph .rs-ph-table tbody th a:focus-visible { text-decoration: underline; }
body.ft-reskin .rs-ph .rs-ph-table tbody tr:hover > * { background: var(--rs-page); }
body.ft-reskin .rs-ph .rs-ph-num { text-align: right; font-variant-numeric: tabular-nums; }
body.ft-reskin .rs-ph .rs-ph-table tbody .rs-ph-num { white-space: nowrap; }
body.ft-reskin .rs-ph .rs-ph-unit { display: block; font-weight: 400; }
body.ft-reskin .rs-ph .rs-ph-strong { font-weight: 700; }
body.ft-reskin .rs-ph .rs-ph-sub { display: block; font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--rs-label); margin-top: 2px; }
body.ft-reskin .rs-ph .rs-ph-none { color: var(--rs-label); text-align: left; }
body.ft-reskin .rs-ph .rs-ph-tablenote { margin: 12px 0 0; }

/* column widths on a phone: the month table has five, the day table four */
body.ft-reskin .rs-ph .rs-ph-c1 { width: 25%; }
body.ft-reskin .rs-ph .rs-ph-c2 { width: 18%; }
body.ft-reskin .rs-ph .rs-ph-c3 { width: 18%; }
body.ft-reskin .rs-ph .rs-ph-c4 { width: 18%; }
body.ft-reskin .rs-ph .rs-ph-c5 { width: 21%; }
body.ft-reskin .rs-ph .rs-ph-table--days th:nth-child(1) { width: 31%; }
body.ft-reskin .rs-ph .rs-ph-table--days th:nth-child(2) { width: 25%; }
body.ft-reskin .rs-ph .rs-ph-table--days th:nth-child(3) { width: 24%; }
body.ft-reskin .rs-ph .rs-ph-table--days th:nth-child(4) { width: 20%; }
/* a 360px phone: the month names ("September") must not break */
@media (max-width: 389.98px) {
    body.ft-reskin .rs-ph .rs-ph-table tbody th { font-size: 13px; }
}

/* the year headings and the jump list above the month tables */
body.ft-reskin .rs-ph .rs-ph-year { scroll-margin-top: 110px; }
body.ft-reskin .rs-ph .rs-ph-yearhead {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--rs-ink);
    margin: 30px 0 10px;
}
body.ft-reskin .rs-ph .rs-ph-jump {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 0;
    margin: 10px 0 0;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
body.ft-reskin .rs-ph .rs-ph-jump a { text-decoration: none; }
body.ft-reskin .rs-ph .rs-ph-jump a:hover { text-decoration: underline; }

/* on a phone the change on the year is the per cent alone; wider screens add the pence */
@media (max-width: 575.98px) {
    body.ft-reskin .rs-ph .rs-ph-chg-p { display: none; }
}

/* ---------- Other months: buttons, then lists of links with their average ---------- */
body.ft-reskin .rs-ph .rs-ph-pn { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }
body.ft-reskin .rs-ph .rs-ph-listhead {
    font-family: 'Bricolage Grotesque', 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--rs-ink);
    margin: 22px 0 6px;
}
body.ft-reskin .rs-ph .rs-ph-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    columns: 2;
    column-gap: 24px;
    font-size: 15px;
    line-height: 1.9;
}
body.ft-reskin .rs-ph .rs-ph-list li { break-inside: avoid; }
body.ft-reskin .rs-ph .rs-ph-list a { text-decoration: none; }
body.ft-reskin .rs-ph .rs-ph-list a:hover { text-decoration: underline; }
body.ft-reskin .rs-ph .rs-ph-list span { color: var(--rs-label); margin-left: 6px; font-variant-numeric: tabular-nums; }

/* ---------- The method notes and the closing card ---------- */
body.ft-reskin .rs-ph .rs-ph-notes { list-style: none; padding: 0; margin: 0; max-width: 52rem; }
body.ft-reskin .rs-ph .rs-ph-notes li {
    padding: 14px 0;
    border-bottom: 1px solid var(--rs-hair);
    font-size: 15px;
    line-height: 1.7;
}
body.ft-reskin .rs-ph .rs-ph-notes li:first-child { padding-top: 0; }
body.ft-reskin .rs-ph .rs-ph-notes li:last-child { border-bottom: none; padding-bottom: 0; }
body.ft-reskin .rs-ph .rs-ph-notes strong { color: var(--rs-ink); }
body.ft-reskin .rs-ph .rs-ph-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
body.ft-reskin .rs-ph .rs-ph-cta .rs-small { margin: 0; }

/* ---------- Tablet and up ---------- */
@media (min-width: 576px) {
    body.ft-reskin .rs-ph .rs-ph-tablewrap { padding: 2px 14px 4px; }
    body.ft-reskin .rs-ph .rs-ph-table { font-size: 15px; }
    body.ft-reskin .rs-ph .rs-ph-table th,
    body.ft-reskin .rs-ph .rs-ph-table td { padding: 11px 10px; }
    body.ft-reskin .rs-ph .rs-ph-c1 { width: 24%; }
    body.ft-reskin .rs-ph .rs-ph-c2 { width: 17%; }
    body.ft-reskin .rs-ph .rs-ph-c3 { width: 17%; }
    body.ft-reskin .rs-ph .rs-ph-c4 { width: 17%; }
    body.ft-reskin .rs-ph .rs-ph-c5 { width: 25%; }
    body.ft-reskin .rs-ph .rs-ph-plotbox { padding: 22px 20px 44px 58px; }
}
@media (min-width: 768px) {
    body.ft-reskin .rs-ph .rs-ph-plot { height: 280px; }
    body.ft-reskin .rs-ph .rs-ph-chart--long .rs-ph-plot { height: 340px; }
    body.ft-reskin .rs-ph .rs-ph-list { columns: 3; }
    body.ft-reskin .rs-ph .rs-ph-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
}
@media (min-width: 992px) {
    body.ft-reskin .rs-ph .rs-ph-cmp-num { font-size: 44px; }
    body.ft-reskin .rs-ph .rs-ph-notes li { font-size: 16px; }
    body.ft-reskin .rs-ph .rs-ph-yearhead { font-size: 26px; }
}
