/* RTC Oil Price. Scoped to .rtc-oil. Sizes in px: the theme's root font size is 13px on phones. */
.rtc-oil {
  --ink: #f4f1ea; --muted: #cccccc; --line: #3b3b3b; --card: #2c2c2c; --head: #333333; --gold: #d9a63c;
  --up: #ff7a6b; --down: #49d089; --low-bg: rgba(217, 166, 60, .16);
  color: var(--ink); font-size: 17.6px; line-height: 1.55; text-align: left; margin: 0 0 28px; grid-column: 1 / -1; width: 100%; clear: both;
}
.rtc-oil *, .rtc-oil *::before, .rtc-oil *::after { box-sizing: border-box; }
.rtc-oil p { margin: 0; }
.rtc-oil a { color: var(--gold); text-decoration: underline; }
.rtc-oil a:focus-visible, .rtc-oil .ro-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rtc-oil .ro-credit, .rtc-oil .note, .rtc-oil .empty { color: var(--muted); font-size: 15px; }
.rtc-oil .ro-credit { margin: 0 0 10px; }
.rtc-oil .note { margin: 10px 0 0; }
.rtc-oil .note + .note { margin-top: 4px; }
.rtc-oil .ro-h { font-size: 19.4px; line-height: 1.4; margin: 26px 0 10px; color: var(--ink); font-family: inherit; font-weight: 700; }
.rtc-oil .ro-credit + .ro-h { margin-top: 0; }
/* today line (0.6.2+): today's date first, then whether the prices changed today */
.rtc-oil .ro-today { margin: 0 0 4px; font-size: 17.6px; color: var(--ink); }
.rtc-oil .ro-today b { color: var(--gold); font-weight: 700; }
/* 0.6.3: the day's direction, as on the share picture (up red, down green, both orange) */
.rtc-oil .ro-today .ro-w { font-weight: 700; }
.rtc-oil .ro-today .ro-w.up { color: var(--up); }
.rtc-oil .ro-today .ro-w.down { color: var(--down); }
.rtc-oil .ro-today .ro-w.mix { color: #ffa94d; }

/* price change: up is red, down is green, always with an arrow */
.rtc-oil .chg { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; font-size: 14.4px; }
.rtc-oil .chg.up { color: var(--up); }
.rtc-oil .chg.down { color: var(--down); }
.rtc-oil .chg.same { color: var(--muted); font-weight: 400; }

/* company logo on a white plate */
.rtc-oil .logo { display: flex; align-items: center; justify-content: center; width: 74px; height: 42px; margin: 0 0 4px auto; padding: 5px 7px; background: #fff; border-radius: 5px; }
.rtc-oil .logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }

/* fuel badge in the pump colours */
.rtc-oil .badge { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; max-width: 190px; min-height: 46px; padding: 4px 10px 4px 12px;
  border-radius: 6px; color: #141414; background: #9a9a9a; line-height: 1.15; text-align: left; }
.rtc-oil .badge .bsmall { display: flex; flex-direction: column; font-size: 15.4px; font-weight: 800; }
.rtc-oil .badge .bsmall .th { font-size: 11.6px; font-weight: 600; opacity: .92; }
.rtc-oil .badge .bsmall i { align-self: flex-start; margin: 0 0 2px; padding: 1px 5px; border-radius: 3px; background: rgba(0, 0, 0, .78); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 600; }
.rtc-oil .badge b { font-size: 29px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: inherit; display: inline; }
.rtc-oil .c-gh95 { background: #f47b20; }
.rtc-oil .c-e20 { background: #9bcf45; }
.rtc-oil .c-e85 { background: #6a3fb5; color: #fff; }
.rtc-oil .c-gh91 { background: #1b7f37; color: #fff; }
.rtc-oil .c-gs95p { background: linear-gradient(90deg, #f47b20, #ffb07a); }
.rtc-oil .c-gl95 { background: #f7b500; }
.rtc-oil .c-gl95p { background: linear-gradient(90deg, #f7b500, #ffe08a); }
.rtc-oil .c-ds { background: #0067b1; color: #fff; }
.rtc-oil .c-dsb20 { background: #24408e; color: #fff; }
.rtc-oil .c-pds { background: linear-gradient(90deg, #8e8e8e, #d0d0d0); }
.rtc-oil .c-e85 .bsmall i, .rtc-oil .c-gh91 .bsmall i, .rtc-oil .c-ds .bsmall i, .rtc-oil .c-dsb20 .bsmall i { background: rgba(255, 255, 255, .92); color: #141414; }

/* company tabs: radio buttons and labels, switched by the rules below */
.rtc-oil .ro-tabs { position: relative; }
.rtc-oil .ro-tabin { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.rtc-oil .ro-tablist { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin: 0 0 14px; }
.rtc-oil .ro-tablist label { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 76px; margin: 0; padding: 8px 4px 6px; background: var(--card); border: 1px solid var(--line); border-bottom-width: 3px; border-color: var(--line) !important; border-radius: 6px; color: var(--muted); font-size: 13.4px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; }
.rtc-oil .ro-tablist label:hover { color: var(--ink); border-color: #6a6a6a !important; }
.rtc-oil .ro-tablist .logo { margin: 0; width: 100%; max-width: 74px; }
.rtc-oil .ro-panel { display: none; }
.rtc-oil .ro-panel h3 { margin: 0 0 10px; padding: 0; font-family: inherit; font-size: 17.6px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.rtc-oil .ro-tabin:nth-of-type(1):checked ~ .ro-panels > .ro-panel:nth-child(1),
.rtc-oil .ro-tabin:nth-of-type(2):checked ~ .ro-panels > .ro-panel:nth-child(2),
.rtc-oil .ro-tabin:nth-of-type(3):checked ~ .ro-panels > .ro-panel:nth-child(3),
.rtc-oil .ro-tabin:nth-of-type(4):checked ~ .ro-panels > .ro-panel:nth-child(4),
.rtc-oil .ro-tabin:nth-of-type(5):checked ~ .ro-panels > .ro-panel:nth-child(5),
.rtc-oil .ro-tabin:nth-of-type(6):checked ~ .ro-panels > .ro-panel:nth-child(6),
.rtc-oil .ro-tabin:nth-of-type(7):checked ~ .ro-panels > .ro-panel:nth-child(7),
.rtc-oil .ro-tabin:nth-of-type(8):checked ~ .ro-panels > .ro-panel:nth-child(8),
.rtc-oil .ro-tabin:nth-of-type(9):checked ~ .ro-panels > .ro-panel:nth-child(9),
.rtc-oil .ro-tabin:nth-of-type(10):checked ~ .ro-panels > .ro-panel:nth-child(10) { display: block; }
.rtc-oil .ro-tabin:nth-of-type(1):checked ~ .ro-tablist > label:nth-child(1),
.rtc-oil .ro-tabin:nth-of-type(2):checked ~ .ro-tablist > label:nth-child(2),
.rtc-oil .ro-tabin:nth-of-type(3):checked ~ .ro-tablist > label:nth-child(3),
.rtc-oil .ro-tabin:nth-of-type(4):checked ~ .ro-tablist > label:nth-child(4),
.rtc-oil .ro-tabin:nth-of-type(5):checked ~ .ro-tablist > label:nth-child(5),
.rtc-oil .ro-tabin:nth-of-type(6):checked ~ .ro-tablist > label:nth-child(6),
.rtc-oil .ro-tabin:nth-of-type(7):checked ~ .ro-tablist > label:nth-child(7),
.rtc-oil .ro-tabin:nth-of-type(8):checked ~ .ro-tablist > label:nth-child(8),
.rtc-oil .ro-tabin:nth-of-type(9):checked ~ .ro-tablist > label:nth-child(9),
.rtc-oil .ro-tabin:nth-of-type(10):checked ~ .ro-tablist > label:nth-child(10) { color: var(--ink); border-color: var(--gold) !important; background: #3d3622; }
.rtc-oil .ro-tabin:nth-of-type(1):focus-visible ~ .ro-tablist > label:nth-child(1),
.rtc-oil .ro-tabin:nth-of-type(2):focus-visible ~ .ro-tablist > label:nth-child(2),
.rtc-oil .ro-tabin:nth-of-type(3):focus-visible ~ .ro-tablist > label:nth-child(3),
.rtc-oil .ro-tabin:nth-of-type(4):focus-visible ~ .ro-tablist > label:nth-child(4),
.rtc-oil .ro-tabin:nth-of-type(5):focus-visible ~ .ro-tablist > label:nth-child(5),
.rtc-oil .ro-tabin:nth-of-type(6):focus-visible ~ .ro-tablist > label:nth-child(6),
.rtc-oil .ro-tabin:nth-of-type(7):focus-visible ~ .ro-tablist > label:nth-child(7),
.rtc-oil .ro-tabin:nth-of-type(8):focus-visible ~ .ro-tablist > label:nth-child(8),
.rtc-oil .ro-tabin:nth-of-type(9):focus-visible ~ .ro-tablist > label:nth-child(9),
.rtc-oil .ro-tabin:nth-of-type(10):focus-visible ~ .ro-tablist > label:nth-child(10) { outline: 2px solid var(--gold); outline-offset: 2px; }

/* arrows of the tab row, added by the script */
.rtc-oil .ro-arrow { position: absolute; top: 50px; z-index: 2; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 32px !important; height: 32px !important; min-height: 0 !important; margin: 0; padding: 0 0 3px !important; border: 0 !important; border-radius: 50% !important; background: var(--gold) !important; color: #1c1c1c !important; font: 700 24px/1 Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
.rtc-oil .ro-arrow.prev { left: -4px; }
.rtc-oil .ro-arrow.next { right: -4px; }
.rtc-oil .ro-arrow[hidden] { display: none !important; }
.rtc-oil .ro-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* price tiles of the open company */
.rtc-oil .ro-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rtc-oil .ro-tiles li { margin: 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.rtc-oil .ro-tiles .name { color: var(--muted); font-size: 15.4px; }
.rtc-oil .ro-tiles .price { padding: 0 2px; font-size: 28px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.rtc-oil .ro-tiles .chg { padding: 0 2px; }
.rtc-oil .ro-tiles .badge { max-width: none; }

/* share row beside the comparison heading; the button shows only when the script runs */
.rtc-oil .ro-headrow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin: 26px 0 10px; scroll-margin-top: 90px; }
.rtc-oil .ro-headrow .ro-h { margin: 0; }
.rtc-oil .ro-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rtc-oil .ro-sharebtn, .rtc-oil .ro-sharelink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; margin: 0; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--gold) !important; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.rtc-oil .ro-sharebtn { display: none; background: var(--gold); color: #1c1c1c; }
.ro-js .rtc-oil .ro-sharebtn { display: inline-flex; }
.rtc-oil .ro-sharelink { border-color: var(--line) !important; }
.rtc-oil .ro-sharebtn:hover, .rtc-oil .ro-sharelink:hover { filter: brightness(1.12); }
.rtc-oil .ro-sharebtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* comparison table: scrolls sideways in its own box; fuel names and tomorrow's price stay in view */
.rtc-oil .ro-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.rtc-oil .ro-table { width: 100%; min-width: 1020px; border-collapse: separate; border-spacing: 0; margin: 0; border: 0; background: transparent; font-size: 16.2px; }
.rtc-oil .ro-table th, .rtc-oil .ro-table td { padding: 9px 8px 9px 6px; border: 0; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; color: var(--ink); background: var(--card); font-weight: 400; }
.rtc-oil .ro-table thead th { background: var(--head); font-weight: 700; font-size: 15.4px; white-space: nowrap; vertical-align: bottom; }
.rtc-oil .ro-table thead .cname { display: block; font-size: 14px; font-weight: 600; white-space: normal; line-height: 1.25; }
.rtc-oil .ro-table tbody td { vertical-align: middle; }
.rtc-oil .ro-table tbody tr:last-child th, .rtc-oil .ro-table tbody tr:last-child td { border-bottom: 0; }
.rtc-oil .ro-table th:first-child { text-align: left; position: sticky; left: 0; z-index: 1; min-width: 180px; padding: 6px 8px; font-weight: 600; border-right: 1px solid var(--line); }
.rtc-oil .ro-table td b { display: block; font-variant-numeric: tabular-nums; font-weight: 600; }
.rtc-oil .ro-table td.none { color: var(--muted); }
.rtc-oil .ro-table td.low { background: var(--low-bg); }
.rtc-oil .ro-table td.low b { color: var(--gold); }
.rtc-oil .lowtag { display: block; font-size: 12.6px; line-height: 1.3; color: var(--gold); }
.rtc-oil .ro-table td .chg { display: block; font-size: 13px; }
.rtc-oil .ro-table .tm { position: sticky; right: 0; z-index: 1; min-width: 90px; background: #1d3350; border-left: 2px solid #4f8fd6; text-align: center; }
.rtc-oil .ro-table thead .tm { background: #16365f; white-space: normal; vertical-align: middle; }
.rtc-oil .ro-table .tm .tmh { display: block; font-size: 14.4px; line-height: 1.25; }
.rtc-oil .ro-table .tm small { display: block; font-size: 12.6px; font-weight: 400; color: var(--muted); }
.rtc-oil .ro-table td.tm b { color: #cfe4ff; }

.rtc-oil .ro-links { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rtc-oil .ro-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; background: var(--card);
  border: 1px solid var(--gold); border-radius: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.rtc-oil .ro-links a:hover, .rtc-oil .ro-links a:focus-visible { background: var(--gold); color: #1c1c1c; }

/* phones and tablets: the company tabs are one row that scrolls sideways */
@media (max-width: 900px) {
  .rtc-oil .ro-tablist { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 0 12px; padding: 3px; }
  .rtc-oil .ro-tablist::-webkit-scrollbar { display: none; }
  .rtc-oil .ro-tablist label { flex: 0 0 80px; scroll-snap-align: start; }
}

/* phones: three tiles per row; badges stacked (name over grade) */
@media (max-width: 600px) {
  .rtc-oil .logo { width: 70px; height: 38px; }
  .rtc-oil .ro-tablist label { min-height: 70px; font-size: 12.6px; padding: 6px 3px 5px; }
  .rtc-oil .ro-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rtc-oil .ro-tiles li { padding: 6px; min-height: 0; gap: 4px; align-items: center; text-align: center; }
  .rtc-oil .ro-tiles .name { width: 100%; font-size: 14.4px; }
  .rtc-oil .ro-tiles .price { font-size: 20px; padding: 0; }
  .rtc-oil .ro-tiles .chg { font-size: 12.6px; padding: 0; }
  .rtc-oil .ro-table .badge, .rtc-oil .ro-tiles .badge { flex-direction: column; justify-content: center; align-items: center; gap: 0; padding: 3px 2px; text-align: center; }
  .rtc-oil .ro-table .badge { width: 78px; min-height: 58px; }
  .rtc-oil .ro-tiles .badge { min-height: 62px; }
  .rtc-oil .ro-table .badge .bsmall, .rtc-oil .ro-tiles .badge .bsmall { align-items: center; font-size: 12.6px; line-height: 1.1; }
  .rtc-oil .ro-table .badge .bsmall .th, .rtc-oil .ro-tiles .badge .bsmall .th { font-size: 9.8px; }
  .rtc-oil .ro-table .badge .bsmall i, .rtc-oil .ro-tiles .badge .bsmall i { align-self: center; font-size: 9.6px; margin: 0; }
  .rtc-oil .ro-table .badge b, .rtc-oil .ro-tiles .badge b { font-size: 21px; line-height: 1.05; }
  .rtc-oil .ro-table { font-size: 15.4px; min-width: 900px; }
  .rtc-oil .ro-table th:first-child { min-width: 0; width: 86px; padding: 4px; }
  .rtc-oil .ro-table .tm { min-width: 78px; }
  .rtc-oil .ro-table .tm .tmh { font-size: 12.6px; }
  .rtc-oil .ro-links a { flex: 1 1 100%; }
}

/* [rtc_oil_card] homepage card (0.6.4). Dark by default; .rc-light = white. */
.rtc-oil-card{--bg:#262626;--ink:#f4f1ea;--muted:#c9c9c9;--line:#2c4fa8;--head:#fff;--accent:#2547a8;--up:#ff7a6b;--down:#49d089;display:flex;flex-direction:column;height:100%;box-sizing:border-box;margin:0;padding:20px 22px 18px;background:var(--bg);color:var(--ink);border-top:6px solid var(--accent);box-shadow:0 2px 10px rgba(0,0,0,.25);font-size:16px;line-height:1.35;text-align:left}
.rtc-oil-card.rc-light{--bg:#fff;--ink:#1d1d1f;--muted:#6b6b6b;--line:#2547a8;--head:#111;--up:#d7141d;--down:#13873a;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.rtc-oil-card *{box-sizing:border-box}
.rtc-oil-card p{margin:0}
.rtc-oil-card .rc-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:10px;border-bottom:2px solid var(--line)}
.rtc-oil-card .rc-title{margin:0;font-size:26px;line-height:1.2;font-weight:700;color:var(--head);font-family:inherit}
.rtc-oil-card .rc-date,.rtc-oil-card .rc-note,.rtc-oil-card .rc-src{font-size:14px;color:var(--muted)}
.rtc-oil-card .rc-date{white-space:nowrap}
.rtc-oil-card .rc-table{width:100%;border-collapse:collapse;margin:0}
.rtc-oil-card .rc-table th,.rtc-oil-card .rc-table td{padding:7px 0;border-bottom:1px solid var(--line);text-align:left;font-size:16px;font-weight:400;line-height:1.35;color:var(--ink);background:none}
.rtc-oil-card .rc-table thead th{font-weight:700;font-size:14px;color:var(--head)}
.rtc-oil-card .rc-table td,.rtc-oil-card .rc-table thead th:last-child{text-align:right}
.rtc-oil-card .rc-table td b{font-weight:600;font-variant-numeric:tabular-nums}
.rtc-oil-card .chg{display:block;font-size:12px;font-weight:600;white-space:nowrap}
.rtc-oil-card .up{color:var(--up)}.rtc-oil-card .down{color:var(--down)}.rtc-oil-card .mix{color:#f08a24}
.rtc-oil-card .rc-status{margin-top:8px;font-size:14px;font-weight:700}
.rtc-oil-card .rc-note{margin-top:6px}
.rtc-oil-card .rc-foot{margin-top:auto;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rtc-oil-card .rc-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 16px;border-radius:999px;background:var(--accent);color:#fff;font-size:14px;font-weight:600;text-decoration:none}
.rtc-oil-card .rc-btn:hover,.rtc-oil-card .rc-btn:focus-visible{filter:brightness(1.12);color:#fff}
.rtc-oil-card .rc-btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media (max-width:480px){.rtc-oil-card{padding:16px 14px}.rtc-oil-card .rc-title{font-size:23px}}
.rtc-oil-card,.rtc-oil-card .rc-table th,.rtc-oil-card .rc-table td{background:var(--bg)!important}
.rtc-oil-card .rc-title{margin:0!important;padding:0!important;border:0!important;color:var(--head)!important;text-transform:none!important;letter-spacing:0!important}
.rtc-oil-card .rc-title::before,.rtc-oil-card .rc-title::after{content:none!important;display:none!important}
.rtc-oil-card .rc-head{border-bottom:2px solid var(--line)!important}
.rtc-oil-card .rc-table th,.rtc-oil-card .rc-table td{color:var(--ink)!important;border-color:var(--line)!important}
.rtc-oil-card .rc-table thead th{color:var(--head)!important}
