  :root {
    --ink: #102c3d;
    --ink-soft: #526775;
    --navy: #0b2638;
    --navy-2: #123c50;
    --mint: #16b8a6;
    --mint-soft: #dff8f2;
    --orange: #f28c38;
    --orange-soft: #fff0df;
    --red: #c94b45;
    --paper: #f4f6f2;
    --white: #ffffff;
    --line: #dbe3e0;
    --shadow: 0 18px 45px rgba(9, 39, 55, .11);
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1180px;
  }

  * { box-sizing: border-box; }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
  }

  body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Leelawadee UI", Tahoma, "Noto Sans Thai", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
  }

  body::before {
    position: fixed;
    inset: 0 0 auto;
    z-index: -1;
    height: 520px;
    content: "";
    background:
      radial-gradient(circle at 78% 8%, rgba(22, 184, 166, .16), transparent 25%),
      linear-gradient(155deg, #f4f6f2 25%, #ebf4ef 100%);
    pointer-events: none;
  }

  a { color: inherit; }

  img { max-width: 100%; height: auto; }

  button, input, select { font: inherit; }

  button, select { cursor: pointer; }

  :focus-visible {
    outline: 3px solid rgba(242, 140, 56, .72);
    outline-offset: 3px;
  }

  .skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    color: var(--white);
    background: var(--navy);
    border-radius: 10px;
    transform: translateY(-150%);
  }

  .skip-link:focus { transform: translateY(0); }

  .container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
  }

  .oil-overview-section {
    padding: 8px 0 28px;
  }

  .oil-overview-banner {
    margin: 0;
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
    border: 1px solid rgba(16, 44, 61, .14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .oil-overview-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
  }

  .oil-overview-banner figcaption {
    padding: 12px 18px 14px;
    color: rgba(255, 255, 255, .86);
    font-size: .92rem;
    line-height: 1.55;
  }

  .oil-global-overview-banner {
    margin-bottom: 24px;
    border-color: rgba(255, 255, 255, .13);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: rgba(11, 38, 56, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px);
  }

  .header-inner {
    display: flex;
    align-items: center;
    min-height: 68px;
    gap: 24px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
  }

  .brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--navy);
    background: var(--mint);
    border-radius: 12px 12px 12px 4px;
    font-size: .8rem;
    font-weight: 900;
  }

  .brand small {
    display: block;
    color: #a8c2cd;
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .08em;
  }

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 4px;
  }

  .main-nav a {
    padding: 9px 12px;
    color: #dce8ed;
    border-radius: 10px;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 650;
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .1); }

  .menu-button {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
  }

  /* จัดเมนูหลักของหน้าราคาน้ำมันบนเดสก์ท็อปให้ไม่ตัดคำ */
  @media (min-width: 761px) {
    .site-header .header-inner {
      width: min(calc(100% - 48px), 1760px);
      min-height: 76px;
      gap: 28px;
      padding-block: 10px;
    }

    .site-header .brand,
    .site-header .brand > span:last-child {
      flex: 0 0 auto;
      line-height: 1.25;
      white-space: nowrap;
    }

    .site-header .brand small {
      margin-top: 1px;
      line-height: 1.2;
    }

    .site-header .main-nav {
      min-width: 0;
      flex: 1 1 auto;
      flex-wrap: wrap;
      column-gap: clamp(8px, 1vw, 18px);
      row-gap: 0;
      line-height: 1.3;
    }

    .site-header .main-nav a {
      flex: 0 0 auto;
      padding-block: 6px;
      white-space: nowrap;
    }
  }

  .menu-lines,
  .menu-lines::before,
  .menu-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: auto;
    content: "";
    background: currentColor;
    border-radius: 2px;
  }

  .menu-lines::before { transform: translateY(-6px); }
  .menu-lines::after { transform: translateY(4px); }

  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    color: #677c88;
    list-style: none;
    font-size: .88rem;
  }

  .breadcrumb li + li::before { margin-right: 8px; content: "/"; color: #9cacb4; }
  .breadcrumb a { text-decoration: none; }
  .breadcrumb a:hover { text-decoration: underline; }

  .hero { padding: 38px 0 34px; }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
    align-items: stretch;
    gap: 28px;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #087d72;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .eyebrow::before {
    width: 20px;
    height: 3px;
    content: "";
    background: var(--orange);
    border-radius: 10px;
  }

  h1, h2, h3 { margin-top: 0; line-height: 1.25; letter-spacing: -.025em; }

  h1 {
    max-width: 780px;
    margin-bottom: 16px;
    color: var(--navy);
    font-size: clamp(2.15rem, 5vw, 4.25rem);
    font-weight: 900;
  }

  h1 span { color: var(--mint); }

  .hero-lead {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.16rem);
  }

  .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-meta-row {
    padding-top: 10px;
  }

  .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    color: #3c5663;
    background: rgba(255, 255, 255, .75);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
  }

  .status-dot {
    width: 8px;
    height: 8px;
    background: var(--mint);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(22, 184, 166, .15);
  }

  .hero-panel {
    position: relative;
    overflow: hidden;
    padding: 26px;
    color: var(--white);
    background: linear-gradient(145deg, var(--navy), var(--navy-2));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .hero-panel::after {
    position: absolute;
    right: -72px;
    bottom: -100px;
    width: 230px;
    height: 230px;
    content: "";
    border: 34px solid rgba(22, 184, 166, .14);
    border-radius: 50%;
  }

  .panel-label { color: #a8c2cd; font-size: .82rem; font-weight: 700; }

  .panel-price {
    display: flex;
    align-items: baseline;
    margin: 8px 0 2px;
    gap: 8px;
  }

  .panel-price strong { font-size: clamp(2.35rem, 5vw, 3.4rem); line-height: 1; }
  .panel-price span { color: #bdd2da; font-size: .9rem; }
  .panel-fuel { margin: 0 0 20px; color: #e4f0f3; font-weight: 700; }

  .panel-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .panel-stats-ad {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 86px;
    margin: 10px 0;
    padding: 12px;
    place-items: center;
    color: #78909c;
    background: rgba(255, 255, 255, .025);
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 13px;
    text-align: center;
  }

  .panel-stats-ad span {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1;
  }

  .panel-stat {
    min-width: 0;
    padding: 10px 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    text-align: center;
  }

  .panel-stat small { display: block; color: #a8c2cd; line-height: 1.35; }
  .panel-stat strong { display: block; margin-top: 4px; font-size: 1.05rem; }

  .hero-main.hero-panel .panel-stat strong {
    margin-top: 5px;
    font-size: clamp(1.65rem, 2.1vw, 2rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
  }

  .source-note {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    color: #a8c2cd;
    font-size: .76rem;
    line-height: 1.5;
  }

  .oil-hero-share {
    position: relative;
    z-index: 1;
    margin-top: 14px;
  }

  .quick-nav {
    padding: 0 0 26px;
  }

  .quick-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(9, 39, 55, .06);
  }

  .quick-nav a {
    position: relative;
    padding: 14px 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 750;
    color: #0b2638;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .quick-nav a + a { border-left: 1px solid var(--line); }
  .quick-nav a:hover,
  .quick-nav a:focus {
    color: #022622;
    background: var(--mint-soft);
    font-weight: 800;
  }

  .section { padding: 34px 0; }
  .section[id] { scroll-margin-top: 84px; }

  .section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 24px;
  }

  .section-heading h2 { margin-bottom: 6px; font-size: clamp(1.65rem, 3.5vw, 2.35rem); }
  .section-heading p { max-width: 720px; margin: 0; color: var(--ink-soft); }

  .data-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: #087d72;
    background: var(--mint-soft);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
  }

  .price-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
    gap: 14px;
  }

  .summary-card {
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .summary-card small { display: block; margin-bottom: 2px; color: var(--ink-soft); }
  .summary-card strong { font-size: 1.45rem; color: #9cffee; font-weight: 800; }
  .summary-card span { margin-left: 5px; color: var(--ink-soft); font-size: .8rem; }

  .notice {
    display: flex;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 14px 16px;
    gap: 12px;
    color: #59482e;
    background: #fff7e9;
    border: 1px solid #f2d7a7;
    border-radius: 13px;
    font-size: .9rem;
  }

  .notice-mark {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--white);
    background: var(--orange);
    border-radius: 50%;
    font-weight: 900;
  }

  .table-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(9, 39, 55, .06);
  }

  .table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 14px;
    background: #fbfcfa;
    border-bottom: 1px solid var(--line);
  }

  .table-toolbar strong { font-size: .94rem; }
  .table-toolbar span { color: var(--ink-soft); font-size: .8rem; }

  .table-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: #a9b9b8 #edf1ef;
  }

  .price-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }

  .price-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .price-table th,
  .price-table td {
    padding: 13px 14px;
    text-align: right;
    border-bottom: 1px solid #edf1ef;
  }

  .price-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: var(--white);
    background: var(--navy);
    font-size: .78rem;
    letter-spacing: .02em;
  }

  .price-table th:first-child,
  .price-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 155px;
    text-align: left;
    background: var(--white);
    font-weight: 750;
    box-shadow: 8px 0 12px -12px rgba(9, 39, 55, .55);
  }

  .price-table thead th:first-child { z-index: 3; background: var(--navy); }
  .price-table tbody tr:hover td { background: #f4fbf8; }
  .price-table tbody tr:hover td:first-child { background: #f4fbf8; }
  .price-table tbody tr:last-child td { border-bottom: 0; }
  .empty { color: #9babb2; }

  /* ==========================================================================
     Retail Fuel Provider Cards Grid
     ========================================================================== */
  /* ==========================================================================
     Tomorrow Price Alert Banner (กล่องแจ้งเตือนสถานะราคาน้ำมันพรุ่งนี้)
     ========================================================================== */
  .tomorrow-price-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(16, 24, 38, 0.95) 0%, rgba(10, 16, 26, 0.95) 100%);
    border: 1px solid rgba(156, 255, 238, 0.25);
    border-left: 4px solid #9cffee;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .tomorrow-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(156, 255, 238, 0.1);
    border: 1px solid rgba(156, 255, 238, 0.25);
    border-radius: 999px;
    white-space: nowrap;
    color: #9cffee;
    font-size: 0.85rem;
    font-weight: 750;
  }

  .status-indicator-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
    animation: pulseDot 2s infinite;
  }

  @keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
  }

  .tomorrow-banner-content {
    flex: 1;
  }

  .tomorrow-banner-title {
    margin: 0 0 3px 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #f8fafc;
  }

  .tomorrow-banner-title span {
    color: #9cffee;
    font-weight: 800;
  }

  .tomorrow-banner-sub {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
  }

  @media (max-width: 768px) {
    .tomorrow-price-banner {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 14px 16px;
    }
  }

  /* ==========================================================================
     Brand Jump Navigation (ปุ่มลัดเลือก 9 ปั๊ม)
     ========================================================================== */
  .brand-jump-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(14, 20, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .brand-jump-nav::-webkit-scrollbar {
    display: none;
  }

  .brand-jump-label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .brand-jump-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .brand-jump-pill {
    display: inline-block;
    padding: 6px 13px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .brand-jump-pill:hover {
    color: #9cffee;
    background: rgba(156, 255, 238, 0.1);
    border-color: rgba(156, 255, 238, 0.3);
    transform: translateY(-1px);
  }

  /* ==========================================================================
     History Brand Jump Navigation (แถวลิงก์ผู้จำหน่าย 9 ราย พร้อมปุ่ม +/-)
     ========================================================================== */
  .history-brand-jump-nav {
    margin-top: -12px;
    margin-bottom: 24px;
  }

  .history-brand-jump-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(160deg, rgba(16, 24, 38, 0.95) 0%, rgba(10, 15, 25, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    position: relative;
  }

  .history-brand-jump-label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 32px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .history-brand-pills-wrap {
    flex: 1;
    min-width: 0;
    height: 32px;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
  }

  .history-brand-pills-wrap.is-expanded {
    height: auto;
    overflow: visible;
  }

  .history-brand-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .history-brand-pill {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .history-brand-pill:hover {
    color: #9cffee;
    background: rgba(156, 255, 238, 0.12);
    border-color: rgba(156, 255, 238, 0.35);
    transform: translateY(-1px);
  }

  .history-brand-toggle-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    color: #9cffee;
    background: rgba(156, 255, 238, 0.08);
    border: 1px solid rgba(156, 255, 238, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .history-brand-toggle-btn:hover {
    color: #02201d;
    background: linear-gradient(135deg, #9cffee 0%, #48dcc8 100%);
    border-color: #9cffee;
    box-shadow: 0 2px 10px rgba(72, 220, 200, 0.35);
  }

  .history-brand-toggle-btn.is-active {
    color: #02201d;
    background: linear-gradient(135deg, #9cffee 0%, #48dcc8 100%);
    border-color: #9cffee;
  }

  /* ==========================================================================
     Retail Fuel Provider Cards Grid & View Switcher
     ========================================================================== */
  .provider-cards-shell {
    padding: 20px;
    background: #0b1019;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  }

  .provider-cards-shell .table-toolbar {
    margin: -20px -20px 20px -20px;
    padding: 16px 20px;
    background: #111824;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius) var(--radius) 0 0;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

  .table-toolbar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .provider-cards-shell .table-toolbar-info strong {
    font-size: .94rem;
    color: #f8fafc;
  }

  .provider-cards-shell .table-toolbar-info span {
    color: #94a3b8;
    font-size: .8rem;
  }

  .view-switcher-group {
    display: inline-flex;
    padding: 3px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    gap: 2px;
  }

  .view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .view-toggle-btn span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
  }

  .view-toggle-btn .view-toggle-icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
  }

  .view-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
  }

  .view-toggle-btn.is-active {
    color: #02201d !important;
    background: linear-gradient(135deg, #9cffee 0%, #48dcc8 65%, #22b8a3 100%) !important;
    box-shadow: 0 2px 10px rgba(72, 220, 200, 0.35);
    font-weight: 800;
  }

  .view-toggle-btn.is-active span {
    color: #02201d !important;
    font-weight: 800;
  }

  .view-toggle-btn.is-active .view-toggle-icon {
    stroke: #02201d !important;
  }

  /* ==========================================================================
     Retail Matrix Comparison Table View (ตามรูปตัวอย่าง)
     ========================================================================== */
  .retail-price-table-view {
    width: 100%;
    margin-bottom: 20px;
  }

  .matrix-table-title-wrap {
    margin: 10px 0 16px 0;
    text-align: left;
  }

  .matrix-table-title {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
  }

  .matrix-table-subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
  }

  .table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .retail-matrix-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }

  .retail-matrix-table th,
  .retail-matrix-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.84rem;
  }

  .retail-matrix-table thead th {
    background: #092e2b;
    color: #f8fafc;
    font-weight: 750;
    font-size: 0.78rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .retail-matrix-table thead th.fuel-col-head {
    text-align: left;
    min-width: 190px;
    position: sticky;
    left: 0;
    z-index: 3;
    background: #092e2b;
  }

  .provider-head-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
  }

  .provider-badge-text {
    font-weight: 750;
    font-size: 0.78rem;
    color: #ffffff;
  }

  .matrix-cat-row th.matrix-cat-cell {
    text-align: left;
    padding: 8px 14px;
    background: #0d433e;
    color: #9cffee;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-top: 1px solid rgba(156, 255, 238, 0.2);
    border-bottom: 1px solid rgba(156, 255, 238, 0.2);
  }

  .retail-matrix-table tbody th.fuel-row-head {
    text-align: left;
    color: #e2e8f0;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #0d131f;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    display: table-cell;
  }

  .fuel-pump-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.95rem;
    vertical-align: middle;
  }

  .fuel-name-box {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
  }

  .fuel-name-th {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 0.84rem;
  }

  .fuel-name-en {
    font-size: 0.72rem;
    color: #94a3b8;
  }

  .retail-matrix-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
  }
  .retail-matrix-table tbody tr:hover th.fuel-row-head {
    background: #111a2a;
  }

  .table-fuel-price {
    color: #9cffee;
    font-weight: 800;
    font-size: 0.94rem;
  }

  .price-na {
    color: #64748b;
  }

  .matrix-effective-row th.effective-head {
    background: #092e2b;
    color: #9cffee;
    padding: 10px 14px;
  }

  .effective-title-th {
    display: block;
    font-weight: 800;
    font-size: 0.82rem;
    color: #9cffee;
  }

  .effective-title-en {
    display: block;
    font-size: 0.7rem;
    color: #cbd5e1;
  }

  .matrix-effective-row td.effective-cell {
    background: #072320;
    border-bottom: none;
  }

  .effective-cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  .effective-date-str {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.78rem;
  }

  .effective-time-str {
    font-size: 0.72rem;
    color: #9cffee;
  }

  .matrix-table-note {
    margin-top: 10px;
    padding: 0 4px;
    text-align: center;
  }

  .matrix-table-note p {
    margin: 2px 0;
    font-size: 0.74rem;
    color: #94a3b8;
  }

  .provider-cards-shell .table-foot {
    margin: 20px -20px -20px -20px;
    padding: 14px 20px;
    background: #111824;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 var(--radius) var(--radius);
    color: #94a3b8;
    font-size: .78rem;
  }

  .provider-cards-shell .table-foot a {
    color: #38bdf8;
  }

  .provider-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .provider-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(160deg, #101622 0%, #0a0f19 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    scroll-margin-top: 90px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .provider-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  }

  .provider-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }

  .provider-brand-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }

  .provider-card-logo {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  .provider-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
  }

  .provider-badge-ptt { background: #0066cc; color: #ffffff; }
  .provider-badge-bcp { background: #16a34a; color: #ffffff; }
  .provider-badge-shell { background: #dc2626; color: #ffffff; }
  .provider-badge-caltex { background: #ea580c; color: #ffffff; }
  .provider-badge-irpc { background: #0891b2; color: #ffffff; }
  .provider-badge-pt { background: #15803d; color: #ffffff; }
  .provider-badge-susco { background: #ca8a04; color: #ffffff; }
  .provider-badge-pure { background: #2563eb; color: #ffffff; }
  .provider-badge-sinopec-susco { background: #9333ea; color: #ffffff; }
  .provider-badge-default { background: #475569; color: #ffffff; }

  .provider-card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.015em;
    line-height: 1.3;
  }

  .provider-card-body {
    flex: 1 1 auto;
  }

  .provider-fuel-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .provider-fuel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 11px;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .provider-fuel-item:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .fuel-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
  }

  .fuel-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
  }

  .fuel-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #9cffee;
    font-variant-numeric: tabular-nums;
  }

  .fuel-unit {
    font-size: 0.76rem;
    font-weight: 500;
    color: #94a3b8;
  }

  .provider-card-footer {
    margin-top: 14px;
    padding-top: 10px;
  }

  .provider-effective-date {
    margin: 0;
    font-size: 0.78rem;
    color: #8fa0b5;
    font-weight: 500;
    line-height: 1.4;
  }

  .provider-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .provider-card-title-link:hover {
    color: #9cffee !important;
    text-decoration: underline !important;
  }
  .provider-card-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: flex-end;
  }
  .provider-card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 750;
    color: #9cffee !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
  }
  .provider-card-action-btn:hover {
    color: #ffffff !important;
    transform: translateX(2px);
    text-decoration: underline !important;
  }
  .provider-head-cell-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  .provider-head-cell-link:hover {
    opacity: 0.8;
  }

  @media (max-width: 960px) {
    .provider-cards-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
  }

  @media (max-width: 640px) {
    .provider-cards-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .provider-card {
      padding: 16px;
    }

    .provider-fuel-item {
      padding: 9px 12px;
    }

    .fuel-name {
      font-size: 0.86rem;
    }

    .fuel-price {
      font-size: 1.08rem;
    }
  }

  /* ==========================================================================
     Provider 30-Day SVG Fuel Price History Chart & Guide Section
     ========================================================================== */
  .provider-chart-box {
    position: relative;
    margin: 14px 0 6px 0;
    padding: 12px 14px 10px 14px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
  }

  .provider-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }

  .provider-chart-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px;
    border-radius: 8px;
  }

  .chart-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .chart-tab-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
  }

  .chart-tab-btn.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }

  .tab-indicator {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }
  .tab-indicator.dot-g95 { background: #9cffee; }
  .tab-indicator.dot-g91 { background: #34d399; }
  .tab-indicator.dot-b7 { background: #f59e0b; }

  .chart-day-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
  }

  .provider-chart-plot {
    position: relative;
    width: 100%;
    height: 88px;
  }

  .provider-chart-plot svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .provider-chart-gridline {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
    stroke-dasharray: 3 3;
  }

  .provider-chart-area {
    fill: url(#chart-gradient-g95);
    opacity: 0.25;
  }
  .provider-chart-box[data-active-fuel="GASOHOL_91"] .provider-chart-area {
    fill: url(#chart-gradient-g91);
  }
  .provider-chart-box[data-active-fuel="DIESEL_B7"] .provider-chart-area {
    fill: url(#chart-gradient-b7);
  }

  .provider-chart-line {
    fill: none;
    stroke: #9cffee;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .provider-chart-box[data-active-fuel="GASOHOL_91"] .provider-chart-line {
    stroke: #34d399;
  }
  .provider-chart-box[data-active-fuel="DIESEL_B7"] .provider-chart-line {
    stroke: #f59e0b;
  }

  .provider-chart-point-group {
    outline: none;
    cursor: pointer;
  }

  .provider-chart-hitarea {
    fill: transparent;
    stroke: transparent;
  }

  .provider-chart-point {
    fill: #9cffee;
    stroke: #0f172a;
    stroke-width: 1.5;
    transition: transform 0.15s ease, r 0.15s ease;
  }
  .provider-chart-box[data-active-fuel="GASOHOL_91"] .provider-chart-point {
    fill: #34d399;
  }
  .provider-chart-box[data-active-fuel="DIESEL_B7"] .provider-chart-point {
    fill: #f59e0b;
  }

  .provider-chart-point-group:hover .provider-chart-point,
  .provider-chart-point-group:focus .provider-chart-point,
  .provider-chart-point-group.is-active .provider-chart-point {
    r: 4.5;
    stroke-width: 2;
  }

  .provider-chart-date-label {
    font-size: 9px;
    fill: #64748b;
    font-weight: 500;
  }

  .provider-chart-tooltip {
    position: absolute;
    z-index: 10;
    transform: translate(-50%, -100%) translateY(-8px);
    padding: 5px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #f8fafc;
    background: #090d16;
    border: 1px solid rgba(156, 255, 238, 0.4);
    border-radius: 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
  }
  .provider-chart-box[data-active-fuel="GASOHOL_91"] .provider-chart-tooltip {
    border-color: rgba(52, 211, 153, 0.4);
  }
  .provider-chart-box[data-active-fuel="DIESEL_B7"] .provider-chart-tooltip {
    border-color: rgba(245, 158, 11, 0.4);
  }
  .provider-chart-tooltip[data-align="start"] { transform: translate(0, -100%) translateY(-8px); }
  .provider-chart-tooltip[data-align="end"] { transform: translate(-100%, -100%) translateY(-8px); }

  .provider-chart-note {
    margin: 6px 0 0 0;
    font-size: 0.73rem;
    color: #64748b;
    text-align: center;
  }

  .provider-chart-empty {
    margin: 0;
    padding: 30px 0;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
  }

  /* Oil Chart Guide Section (Matching Image 6 typography & dark theme) */
  .oil-chart-guide {
    padding: 36px 0;
  }

  .oil-chart-guide .eyebrow {
    color: #8a9aab;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .oil-chart-guide h2 {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 800;
    margin-top: 6px;
    margin-bottom: 20px;
  }

  .oil-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .oil-guide-grid article {
    padding: 22px;
    background: linear-gradient(160deg, #0d131e 0%, #080d16 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  }

  .oil-guide-grid article h3 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #9cffee;
    line-height: 1.4;
  }

  .oil-guide-grid article p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #8a9aab;
  }

  .oil-guide-grid article p strong {
    color: #cbd5e1;
    font-weight: 700;
  }

  .oil-guide-grid article code {
    color: #9cffee;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.84rem;
    font-family: inherit;
    font-weight: 600;
  }

  @media (max-width: 768px) {
    .oil-guide-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }
  }

  .retail-price-table thead th:not(:first-child) {
    min-width: 82px;
    text-align: center;
    vertical-align: bottom;
  }

  .retail-provider-heading {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .retail-provider-logo {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
  }

  .retail-provider-name {
    display: block;
    line-height: 1.15;
    white-space: normal;
  }

  .retail-price-table tbody td { text-align: center; }

  .retail-table-date {
    display: block;
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: .76rem;
    font-weight: 650;
  }

  .effective-row th,
  .effective-row td {
    color: #087d72;
    background: #effbf8;
    border-top: 2px solid rgba(22, 184, 166, .22);
    font-weight: 800;
  }

  .effective-row th:first-child { background: #e4f7f2; }
  .effective-row small { display: block; margin-top: 2px; font-size: .68rem; font-weight: 650; }

  .table-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 18px;
    color: var(--ink-soft);
    background: #fbfcfa;
    border-top: 1px solid var(--line);
    gap: 8px 18px;
    font-size: .76rem;
  }

  .table-foot a { color: #087d72; font-weight: 700; }

  .tomorrow-embed-card {
    max-width: 470px;
    margin-inline: auto;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .tomorrow-embed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 10px 18px;
    background: #fbfcfa;
    border-bottom: 1px solid var(--line);
  }

  .tomorrow-embed-toolbar strong { font-size: .94rem; }

  .tomorrow-embed-toolbar a {
    flex: 0 0 auto;
    color: #087d72;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
  }

  .tomorrow-embed-toolbar a:hover { text-decoration: underline; }

  .tomorrow-frame-wrap {
    min-height: 680px;
    background: #fff;
  }

  .tomorrow-price-frame {
    display: block;
    width: 100%;
    height: 680px;
    color-scheme: light;
    background: #fff;
    border: 0;
  }

  .tomorrow-embed-note {
    margin: 0;
    padding: 12px 18px;
    color: var(--ink-soft);
    background: #fbfcfa;
    border-top: 1px solid var(--line);
    font-size: .76rem;
    line-height: 1.65;
  }

  .tomorrow-embed-note a { color: #087d72; font-weight: 800; }

  .world-wrap {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 5vw, 48px);
    color: var(--white);
    background:
      radial-gradient(circle at 90% 0, rgba(22, 184, 166, .2), transparent 30%),
      var(--navy);
    border-radius: 28px;
  }

  .world-wrap .section-heading h2 { color: var(--white); }
  .world-wrap .section-heading p { color: #b9ccd4; }

  .world-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .world-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .world-card:hover {
    border-color: rgba(156, 255, 238, 0.3);
    transform: translateY(-2px);
  }

  .world-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .world-card h3 { margin: 0; font-size: 1.25rem; font-weight: 800; }
  .world-card h3 a { color: var(--white); text-decoration: none; transition: color 0.2s ease; }
  .world-card h3 a:hover { color: #9cffee; }
  .market-tag {
    color: #a9c4cd;
    font-size: .75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .market-value { display: flex; align-items: baseline; margin: 16px 0 6px; gap: 8px; }
  .market-value strong { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: #9cffee; font-weight: 900; }
  .market-change { font-size: .86rem; font-weight: 800; color: #94a3b8; }
  .market-change.is-up { color: #f87171; }
  .market-change.is-down { color: #34d399; }
  .market-change.is-flat { color: #94a3b8; }

  /* 30-Day Crude SVG Card Chart */
  .crude-card-chart-wrap {
    position: relative;
    width: 100%;
    margin: 16px 0 12px;
  }
  .crude-card-plot {
    position: relative;
    width: 100%;
    height: 90px;
    background: rgba(9, 13, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 4px 6px;
  }
  .crude-card-plot svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  .crude-card-gridline {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
    stroke-dasharray: 3 3;
  }
  .crude-card-point-group {
    outline: none;
    cursor: pointer;
  }
  .crude-card-hitarea {
    fill: transparent;
    stroke: transparent;
  }
  .crude-card-point {
    transition: transform 0.15s ease, r 0.15s ease;
  }
  .crude-card-point-group:hover .crude-card-point,
  .crude-card-point-group:focus .crude-card-point,
  .crude-card-point-group.is-active .crude-card-point {
    r: 4.8;
    filter: drop-shadow(0 0 6px currentColor);
  }
  .crude-card-date-label {
    font-size: 10px;
    fill: #64748b;
    font-weight: 600;
    font-family: system-ui, sans-serif;
  }
  .crude-card-tooltip {
    position: absolute;
    z-index: 20;
    transform: translate(-50%, -100%) translateY(-8px);
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    background: #090d16;
    border: 1px solid #9cffee;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(156, 255, 238, 0.25);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .crude-card-tooltip[data-align="start"] { transform: translate(0, -100%) translateY(-8px); }
  .crude-card-tooltip[data-align="end"] { transform: translate(-100%, -100%) translateY(-8px); }

  .world-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .world-card-footer .market-date {
    margin: 0;
    color: #94a3b8;
    font-size: .76rem;
  }
  .world-card-footer .market-date a {
    color: #83e2d0;
    text-decoration: none;
  }
  .world-card-detail-link {
    font-size: 0.82rem;
    color: #9cffee;
    font-weight: 750;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .world-card-detail-link:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  .benchmark-guide {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .benchmark-guide h3 { margin: 0 0 12px; color: var(--white); font-size: 1rem; }
  .benchmark-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .benchmark-definition {
    margin: 0;
    padding: 16px;
    color: #c4d5db;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    font-size: .82rem;
    line-height: 1.7;
  }
  .benchmark-definition > p { margin: 0; }
  .benchmark-definition strong { color: #9cffee; }
  .benchmark-impact { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .benchmark-impact-label { display: block; margin-bottom: 5px; color: #fff; font-size: .78rem; font-weight: 800; }
  .benchmark-impact p { margin: 0; }
  .benchmark-impact p + p { margin-top: 8px; }
  .benchmark-reference { margin: 12px 0 0; color: #a9c4cd; font-size: .76rem; }
  .benchmark-reference a { color: #83e2d0; }

  .world-explainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
    padding-top: 18px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .world-explainer p { margin: 0; color: #c4d5db; font-size: .86rem; }
  .world-explainer strong { color: var(--white); }
  .world-explainer a { color: #83e2d0; }

  .factor-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    background:
      radial-gradient(circle at 8% 0, rgba(73, 174, 255, .09), transparent 26rem),
      linear-gradient(rgba(20, 28, 40, .88), rgba(10, 15, 22, .94));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
  }

  .impact-chain {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 24px 0 30px;
    gap: 10px;
  }

  .impact-step {
    position: relative;
    min-width: 0;
    padding: 16px 13px;
    color: #c8d4df;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--line);
    border-radius: 15px;
    font-size: .82rem;
  }

  .impact-step:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -9px;
    z-index: 2;
    width: 16px;
    height: 16px;
    content: "›";
    color: #062721;
    text-align: center;
    background: var(--mint);
    border-radius: 50%;
    font-weight: 950;
    line-height: 15px;
    transform: translateY(-50%);
  }

  .impact-step span {
    display: block;
    margin-bottom: 5px;
    color: #71e8d5;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
  }

  .impact-step strong { display: block; color: #f3f7fa; font-size: .92rem; line-height: 1.45; }

  .factor-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
  }

  .factor-panel {
    min-width: 0;
    padding: 22px;
    background: rgba(7, 11, 17, .62);
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .factor-panel-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .factor-panel-head .factor-kicker { margin: 0 0 4px; color: var(--mint); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .factor-panel-head h3 { margin: 0 0 6px; color: #f4f7fb; font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
  .factor-panel-head p { margin: 0; color: var(--ink-soft); font-size: .86rem; }

  .factor-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 10px;
    list-style: none;
    counter-reset: factor;
  }

  .factor-item {
    position: relative;
    padding: 15px 14px 15px 52px;
    color: #bdc8d5;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 14px;
    counter-increment: factor;
  }

  .factor-item::before {
    position: absolute;
    top: 15px;
    left: 14px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    content: counter(factor, decimal-leading-zero);
    color: #062721;
    background: linear-gradient(145deg, #a7fff0, #48dcc8);
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 950;
  }

  .global-factors .factor-item::before {
    color: #082135;
    background: linear-gradient(145deg, #c6ebff, #67bdf3);
  }

  .factor-item strong { display: block; margin-bottom: 3px; color: #edf3f7; font-size: .94rem; }
  .factor-item p { margin: 0; color: #aebac8; font-size: .82rem; line-height: 1.65; }

  .factor-reading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
    padding: 18px;
    gap: 18px;
    background: linear-gradient(135deg, rgba(72, 220, 200, .06), rgba(73, 174, 255, .035));
    border: 1px solid rgba(72, 220, 200, .14);
    border-radius: 16px;
  }

  .factor-reading h3 { margin: 0 0 6px; color: #9cffee; font-size: 1rem; }
  .factor-reading p { margin: 0; color: #b7c4d1; font-size: .84rem; }

  .history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr);
    align-items: start;
    gap: 18px;
  }

  .history-provider-block {
    scroll-margin-top: 90px;
    position: relative;
  }

  .history-provider-block + .history-provider-block { margin-top: 28px; }

  .history-provider-chart,
  .crude-history-chart {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .history-provider-table,
  .history-provider-summary,
  .crude-history-table-card,
  .crude-history-summary { min-width: 0; }

  .history-table { min-width: 760px; }

  .history-table th:not(.history-date-column),
  .history-table td:not(.history-date-column) {
    min-width: 112px;
    white-space: nowrap;
  }

  .history-table thead th:not(.history-date-column) {
    white-space: normal;
    line-height: 1.35;
  }

  .history-card {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .history-card h3 { margin-bottom: 10px; }
  .history-card p { margin: 0; color: var(--ink-soft); }
  .history-card dl { margin: 20px 0 0; }
  .history-card dl div { display: flex; justify-content: space-between; padding: 11px 0; gap: 12px; border-top: 1px solid var(--line); }
  .history-card dt { color: var(--ink-soft); }
  .history-card dd { margin: 0; text-align: right; font-weight: 800; }

  .history-source {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .history-source strong { display: block; margin-bottom: 5px; }
  .history-source p { margin-bottom: 8px; font-size: .88rem; }
  .history-source a { color: var(--mint); font-weight: 800; text-underline-offset: 3px; }

  .crude-history-block + .crude-history-block { margin-top: 28px; }

  .crude-history-table {
    width: 448px;
    min-width: 448px;
    table-layout: fixed;
  }

  .crude-history-table th,
  .crude-history-table td {
    padding: 9px 6px;
    white-space: nowrap;
  }

  .crude-history-table th:first-child,
  .crude-history-table td:first-child {
    width: 124px;
    min-width: 124px;
  }

  .crude-history-table th:nth-child(2),
  .crude-history-table td:nth-child(2) {
    width: 112px;
    min-width: 112px;
  }

  .crude-history-table th:nth-child(3),
  .crude-history-table td:nth-child(3) {
    width: 100px;
    min-width: 100px;
  }

  .crude-history-table th:nth-child(4),
  .crude-history-table td:nth-child(4) {
    width: 112px;
    min-width: 112px;
  }
  .crude-history-change { white-space: nowrap; font-weight: inherit; }
  .crude-history-change.is-up { color: #178a77; }
  .crude-history-change.is-down { color: var(--red); }
  .crude-history-change.is-flat { color: var(--ink-soft); }

  @media (min-width: 961px) {
    .crude-history-table {
      width: 100%;
      min-width: 100%;
      table-layout: fixed;
    }

    .crude-history-table th,
    .crude-history-table td {
      width: 25%;
      min-width: 0;
      padding: 13px 14px;
    }

    .crude-history-table th:nth-child(n),
    .crude-history-table td:nth-child(n) {
      width: 25%;
      min-width: 0;
    }
  }

  .crude-history-latest {
    margin: 16px 0 4px;
    padding: 14px;
    color: var(--ink);
    background: var(--mint-soft);
    border: 1px solid rgba(22, 184, 166, .2);
    border-radius: 14px;
  }

  .crude-history-latest small { display: block; color: var(--ink-soft); }
  .crude-history-latest strong { display: block; margin-top: 3px; color: var(--mint); font-size: 1.45rem; }

  .crude-history-note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    padding: clamp(20px, 4vw, 30px);
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  /* Keep the data caveat directly above the explanatory cards, with balanced spacing. */
  .oil-global-history-page #world-history .history-notice {
    margin: 30px 0 24px;
  }

  .crude-history-note h3 { margin: 0 0 7px; font-size: 1.05rem; }
  .crude-history-note p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

  .ad-slot {
    display: grid;
    min-height: 118px;
    margin: 28px 0;
    place-items: center;
    color: #7b898e;
    text-align: center;
    background: #eef1ee;
    border: 1px dashed #bdc9c6;
    border-radius: 14px;
  }

  .ad-slot span { display: block; color: #89969a; font-size: .65rem; letter-spacing: .13em; }
  .ad-slot p { margin: 2px 0 0; font-size: .8rem; }

  .content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .45fr);
    align-items: start;
    gap: 24px;
  }

  .article-card,
  .calculator {
    padding: clamp(22px, 4vw, 34px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .article-card h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
  .article-card h3 { margin: 30px 0 8px; font-size: 1.25rem; }
  .article-card p { color: #405966; }
  .article-card ul { padding-left: 1.25rem; }
  .article-card li + li { margin-top: 7px; }

  .reference-note {
    width: 100%;
    margin: 20px 0 26px;
    padding: 14px 16px;
    color: #b8c3d1;
    background: linear-gradient(135deg, rgba(72, 220, 200, .06), rgba(73, 174, 255, .04));
    border: 1px solid rgba(72, 220, 200, .16);
    border-left: 4px solid rgba(72, 220, 200, .72);
    border-radius: 13px;
    font-size: .84rem;
    line-height: 1.7;
  }

  .reference-note strong { color: #9cffee; }
  .reference-note a { color: #8debdc; font-weight: 750; overflow-wrap: anywhere; }
  .history-related-links { margin-top: 28px; margin-bottom: 0; }
  .history-related-links p { margin: 0; }

  .knowledge-table-card { width: 100%; max-width: 100%; min-width: 0; margin: 20px 0 26px; overflow: hidden; box-shadow: none; }
  .knowledge-table { min-width: 720px; }
  .knowledge-table td { text-align: left; white-space: normal; }
  .knowledge-table th { text-align: left; }
  .content-grid > *, .article-card, .table-scroll { min-width: 0; }
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

  .calculator {
    position: sticky;
    top: 92px;
    color: var(--white);
    background: var(--navy);
    border-color: transparent;
  }

  .calculator h2 { margin-bottom: 5px; font-size: 1.45rem; }
  .calculator > p { margin: 0 0 18px; color: #aec6cf; font-size: .87rem; }

  .field { margin-bottom: 14px; }
  .field label { display: block; margin-bottom: 5px; color: #dbe8ec; font-size: .82rem; font-weight: 700; }
  .field input,
  .field select {
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid transparent;
    border-radius: 11px;
  }

  .calc-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    color: var(--navy);
    background: var(--mint);
    border: 0;
    border-radius: 11px;
    font-weight: 900;
  }

  .calc-button:hover { background: #39c7b6; }

  .calc-result {
    margin-top: 16px;
    padding: 16px;
    color: #dce9ed;
    background: rgba(255, 255, 255, .08);
    border-radius: 13px;
  }

  .calc-result small { display: block; color: #9fbac4; }
  .calc-result output { display: block; margin: 2px 0; color: var(--white); font-size: 1.8rem; font-weight: 900; }
  .calc-result span { font-size: .78rem; }

  .faq-list { display: grid; gap: 10px; }

  details {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  summary {
    position: relative;
    padding: 16px 48px 16px 18px;
    list-style: none;
    font-weight: 800;
    cursor: pointer;
  }

  summary::-webkit-details-marker { display: none; }
  summary::after { position: absolute; top: 50%; right: 18px; content: "+"; color: var(--mint); font-size: 1.4rem; transform: translateY(-50%); }
  details[open] summary::after { content: "−"; }
  details p { margin: 0; padding: 0 18px 18px; color: var(--ink-soft); }

  .sources {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    padding: clamp(22px, 4vw, 32px);
    background: #e8efeb;
    border-radius: var(--radius);
    gap: 28px;
  }

  .sources h2 { margin-bottom: 8px; font-size: 1.35rem; }
  .sources p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
  .source-links { display: grid; align-content: start; gap: 8px; }
  .source-links a { color: #087d72; font-size: .88rem; font-weight: 800; }

  .affiliate-note {
    margin-top: 14px;
    padding: 14px 16px;
    color: var(--ink-soft);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .8rem;
  }

  .site-footer {
    margin-top: 38px;
    padding: 34px 0 calc(28px + env(safe-area-inset-bottom));
    color: #b9cbd2;
    background: #071d2b;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
  }

  .footer-brand { margin-bottom: 10px; color: var(--white); font-size: 1.1rem; font-weight: 900; }
  .site-footer p { max-width: 650px; margin: 0; font-size: .82rem; }
  .footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 8px 15px; }
  .footer-links a { color: #dbe7eb; font-size: .82rem; text-decoration: none; }
  .footer-links a:hover { text-decoration: underline; }
  .footer-bottom { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; gap: 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .76rem; }

  @media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-panel { max-width: 640px; }
    .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .history-grid, .content-grid { grid-template-columns: 1fr; }
    .calculator { position: static; }
    .sources { grid-template-columns: 1fr; }
    .impact-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .impact-step:nth-child(3)::after { display: none; }
  }

  @media (max-width: 760px) {
    .container { width: min(100% - 28px, var(--container)); }
    .menu-button { display: block; }
    .main-nav {
      position: absolute;
      top: calc(100% + 1px);
      right: 14px;
      left: 14px;
      display: none;
      flex-direction: column;
      align-items: stretch;
      padding: 10px;
      background: var(--navy);
      border: 1px solid rgba(255, 255, 255, .13);
      border-radius: 0 0 14px 14px;
      box-shadow: var(--shadow);
    }
    .main-nav[data-open="true"] { display: flex; }
    .main-nav a { padding: 11px 12px; }
    .hero { padding-top: 26px; }
    .breadcrumb { margin-bottom: 16px; }
    .quick-nav-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-nav a:nth-child(3), .quick-nav a:nth-child(4) { border-top: 1px solid var(--line); }
    .quick-nav a:nth-child(3) { border-left: 0; }
    .section-heading { display: block; }
    .data-badge { display: inline-block; margin-top: 12px; }
    .price-summary { grid-template-columns: 1fr; }
    .tomorrow-embed-card { border-radius: 18px; }
    .tomorrow-frame-wrap { min-height: 450px; }
    .tomorrow-price-frame { height: 450px; }
    .world-grid { grid-template-columns: 1fr; }
    .benchmark-guide-grid { grid-template-columns: 1fr; }
    .world-explainer { grid-template-columns: 1fr; }
    .crude-history-note { grid-template-columns: 1fr; }
    .factor-columns, .factor-reading { grid-template-columns: 1fr; }
    .impact-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .impact-step:nth-child(3)::after { display: grid; }
    .impact-step:nth-child(2n)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; }
  }

  @media (max-width: 440px) {
    h1 { font-size: 2.1rem; }
    .hero-panel { padding: 20px; }
    .panel-grid { grid-template-columns: 1fr; }
    .quick-nav a { padding: 12px 8px; font-size: .84rem; }
    .table-toolbar { align-items: flex-start; flex-direction: column; }
    .tomorrow-embed-toolbar { align-items: flex-start; flex-direction: column; }
    .tomorrow-frame-wrap { min-height: 450px; }
    .tomorrow-price-frame { height: 450px; }
    .world-wrap { margin-inline: -4px; padding-inline: 20px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  }

  @media print {
    .site-header, .quick-nav, .ad-slot, .calculator, .site-footer { display: none !important; }
    body { background: var(--white); color: #000; }
    .section { padding: 16px 0; }
    .table-card, .article-card, .history-card, .crude-history-note { box-shadow: none; }
    .world-wrap { color: #000; background: #fff; border: 1px solid #ccc; }
    .world-wrap .section-heading h2, .world-card h3, .market-value strong { color: #000; }
  }
/* Oil section theme: same visual system as /gold/, with a teal/cyan oil identity. */
  :root {
    --ink: #eef2f7;
    --ink-soft: #9ca8b8;
    --navy: #07090d;
    --navy-2: #0c1017;
    --mint: #48dcc8;
    --mint-soft: rgba(72, 220, 200, .1);
    --orange: #ff9d4d;
    --orange-soft: rgba(255, 157, 77, .11);
    --paper: #07090d;
    --line: rgba(255, 255, 255, .09);
    --shadow: 0 22px 70px rgba(0, 0, 0, .36);
  }

  body {
    color: var(--ink);
    background:
      radial-gradient(circle at 87% 6%, rgba(72, 220, 200, .13), transparent 28rem),
      radial-gradient(circle at 7% 30%, rgba(73, 174, 255, .08), transparent 26rem),
      linear-gradient(#07090d 0%, #0a0e14 45%, #07090d 100%);
    line-height: 1.75;
    overflow-x: hidden;
  }

  body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    height: auto;
    background-image:
      linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(rgba(0, 0, 0, .45), transparent 75%);
  }

  a { color: #8debdc; }
  a:hover { color: #c5fff5; }

  .site-header {
    min-height: 72px;
    background: rgba(7, 9, 13, .8);
    border-color: var(--line);
    backdrop-filter: blur(18px);
  }

  .header-inner { min-height: 72px; }

  .brand-mark {
    width: 38px;
    height: 38px;
    color: #062721;
    background: linear-gradient(145deg, #c5fff5, #48dcc8 55%, #137d70);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(72, 220, 200, .22), inset 0 1px rgba(255, 255, 255, .75);
    font-size: 1rem;
  }

  .main-nav a { color: #cfd7e3; background: transparent; font-weight: 500; }
  .main-nav a:hover,
  .main-nav a[aria-current="page"] { color: #fff; background: rgba(72, 220, 200, .08); }

  .breadcrumb { padding-top: 18px; color: var(--ink-soft); }
  .breadcrumb a { color: #8debdc; }

  .hero { padding-top: 12px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
    gap: 26px;
  }

  .glass {
    border: 1px solid var(--line);
    background: linear-gradient(rgba(20, 28, 40, .86), rgba(12, 17, 25, .9));
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .hero-main {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 6vw, 68px);
    border-radius: 30px;
  }

  .hero-main::before {
    position: absolute;
    inset: -1px;
    content: "";
    background:
      radial-gradient(circle at 82% 18%, rgba(72, 220, 200, .22), transparent 24rem),
      linear-gradient(135deg, rgba(72, 220, 200, .08), transparent 45%);
    border-radius: 30px;
    pointer-events: none;
  }

  .hero-main::after {
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    content: "";
    border: 1px solid rgba(72, 220, 200, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(72, 220, 200, .035), 0 0 0 68px rgba(72, 220, 200, .024);
    pointer-events: none;
  }

  .hero-main > * { position: relative; z-index: 2; }
  .hero-main h1 {
    color: transparent;
    background: linear-gradient(90deg, #fff 0%, #c9fff7 48%, #48dcc8 100%);
    background-clip: text;
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  }
  .hero-main h1 span { color: inherit; }
  .hero-lead { color: #c7d0dd; }

  .eyebrow { color: var(--mint); }
  .eyebrow::before { height: 1px; background: linear-gradient(90deg, var(--mint), transparent); }

  .meta-pill {
    color: #d4dee7;
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .12);
  }

  .hero-panel {
    padding: 28px;
    background: linear-gradient(rgba(20, 28, 40, .86), rgba(12, 17, 25, .9));
    border: 1px solid var(--line);
    border-radius: 30px;
  }

  .hero-main.hero-panel { padding: 12px; }

  .hero-panel::after { border-color: rgba(72, 220, 200, .13); }
  .panel-label, .panel-price span, .source-note, .panel-stat small { color: var(--ink-soft); }
  .panel-price strong { color: #a5fff0; text-shadow: 0 0 26px rgba(72, 220, 200, .15); }
  .panel-fuel { color: #d7e2e9; }
  .panel-stat { background: rgba(255, 255, 255, .04); border-color: var(--line); }
  .panel-stat strong { color: #eef8f6; }

  .oil-history-page .history-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .oil-history-page .history-hero-card {
    padding: clamp(26px, 5vw, 54px);
  }

  .oil-history-page .history-hero-card .hero-lead {
    max-width: 880px;
  }

  .oil-history-page .history-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 24px;
  }

  .oil-history-page #retail-history,
  .oil-history-page #world-history {
    scroll-margin-top: 92px;
  }

  .quick-nav-inner,
  .summary-card,
  .table-card,
  .tomorrow-embed-card,
  .history-card,
  .crude-history-note,
  .article-card,
  .calculator,
  details,
  .affiliate-note {
    color: var(--ink);
    background: linear-gradient(rgba(20, 28, 40, .86), rgba(12, 17, 25, .9));
    border-color: var(--line);
    box-shadow: var(--shadow);
  }

  .quick-nav a { color: #cfd7e3; }
  .quick-nav a:hover { color: #fff; background: rgba(72, 220, 200, .08); }

  .price-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    gap: 0;
    background: rgba(7, 10, 15, .42);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .summary-card {
    min-height: 168px;
    padding: 24px;
    background: rgba(14, 20, 29, .72);
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .summary-card:last-child { border-right: 0; }
  .summary-card small, .summary-card span { color: var(--ink-soft); }
  .summary-card strong { display: block; margin-top: 10px; color: #9cffee; font-size: clamp(1.5rem, 3.2vw, 2.2rem); }

  .data-badge {
    color: #9cffee;
    background: rgba(72, 220, 200, .08);
    border: 1px solid rgba(72, 220, 200, .18);
  }

  .notice {
    color: #e8d3be;
    background: linear-gradient(135deg, rgba(255, 157, 77, .08), rgba(255, 157, 77, .035));
    border-color: rgba(255, 157, 77, .2);
  }

  .table-toolbar {
    color: #c8fff7;
    background: linear-gradient(90deg, rgba(72, 220, 200, .12), rgba(73, 174, 255, .045));
    border-color: var(--line);
  }

  .table-toolbar span, .table-foot { color: var(--ink-soft); }
  .table-scroll { scrollbar-color: #337f78 #111923; }
  .price-table { background: rgba(10, 15, 22, .6); }

  .price-table thead th {
    color: #032d28;
    background: linear-gradient(#9cffee, #48dcc8 62%, #1ca391);
  }

  .price-table td { color: #c2ccd8; border-color: var(--line); }
  .price-table th:first-child,
  .price-table td:first-child { color: #f2f5f9; background: #111924; }
  .price-table thead th:first-child { color: #032d28; background: linear-gradient(#9cffee, #48dcc8 62%, #1ca391); }
  .price-table tbody tr:hover td,
  .price-table tbody tr:hover td:first-child { background: rgba(72, 220, 200, .055); }

  .effective-row th,
  .effective-row td,
  .effective-row th:first-child {
    color: #b5fff2;
    background: rgba(72, 220, 200, .09);
    border-top-color: rgba(72, 220, 200, .28);
  }

  .effective-row:hover td,
  .effective-row:hover th:first-child { background: rgba(72, 220, 200, .13); }

  .table-foot { background: rgba(7, 10, 15, .72); border-color: var(--line); }
  .table-foot a { color: #8debdc; }

  .history-card p,
  .crude-history-note p,
  .article-card p,
  .article-card li,
  details p,
  .affiliate-note { color: #c2ccd8; }

  .crude-history-change.is-up { color: #f87171; }
  .crude-history-change.is-down { color: #34d399; }
  .crude-history-latest { border-color: rgba(72, 220, 200, .18); }
  .crude-history-latest strong { color: #9cffee; }

  .tomorrow-embed-toolbar,
  .tomorrow-embed-note {
    color: #c8fff7;
    background: linear-gradient(90deg, rgba(72, 220, 200, .1), rgba(73, 174, 255, .035));
    border-color: var(--line);
  }

  .tomorrow-embed-toolbar a,
  .tomorrow-embed-note a { color: #8debdc; }

  .tomorrow-embed-note { color: var(--ink-soft); }

  .world-wrap {
    background:
      radial-gradient(circle at 90% 0, rgba(72, 220, 200, .19), transparent 30%),
      linear-gradient(rgba(20, 28, 40, .88), rgba(10, 15, 22, .94));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .world-card { background: rgba(255, 255, 255, .035); border-color: var(--line); }
  .market-value strong { color: #9cffee; }
  .market-change.is-up { color: #f87171; }
  .market-change.is-down { color: #34d399; }
  .market-change.is-flat { color: #94a3b8; }

  .history-card dl div { border-color: var(--line); }
  .history-card dt { color: var(--ink-soft); }

  .article-card h2,
  .article-card h3,
  .calculator h2,
  summary { color: #f4f7fb; }
  .article-card strong { color: #b5fff2; }

  .calculator {
    background: linear-gradient(rgba(20, 28, 40, .94), rgba(12, 17, 25, .97));
    border-color: var(--line);
  }

  .field input,
  .field select {
    color: #fff;
    background: #0b1018;
    border-color: rgba(255, 255, 255, .12);
  }

  .calc-button { color: #062721; background: linear-gradient(135deg, #a7fff0, #48dcc8 62%, #1ca391); }
  .calc-result { background: #0b1018; border: 1px solid var(--line); }
  .calc-result output { color: #9cffee; }

  details { box-shadow: none; }
  summary::after { color: var(--mint); }

  .sources {
    color: var(--ink);
    background: linear-gradient(rgba(20, 28, 40, .86), rgba(12, 17, 25, .9));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .sources p { color: var(--ink-soft); }
  .source-links a { color: #8debdc; }

  .ad-slot {
    color: #788692;
    background: rgba(255, 255, 255, .025);
    border-color: rgba(255, 255, 255, .14);
  }

  .site-footer {
    color: #aeb8c6;
    background:
      radial-gradient(circle at 86% 4%, rgba(72, 220, 200, .08), transparent 24rem),
      linear-gradient(#080b10 0%, #05070a 100%);
    border-top: 0;
  }

  .footer-disclosure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 32px;
    gap: 14px;
  }

  .footer-notice {
    padding: 18px;
    color: #bdc7d4;
    background: rgba(8, 12, 18, .72);
    border: 1px solid var(--line);
    border-radius: 15px;
  }

  .footer-notice h2 { margin: 0 0 8px; color: #9cffee; font-size: 1rem; }
  .footer-notice p { margin: 0; color: #aeb8c6; font-size: .82rem; }

  @media (max-width: 960px) {
    .price-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-card:nth-child(2) { border-right: 0; }
    .summary-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .footer-disclosure-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 760px) {
    .site-header {
      position: fixed;
      top: max(8px, env(safe-area-inset-top));
      right: 14px;
      left: auto;
      z-index: 100;
      display: block;
      width: 52px;
      min-height: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      backdrop-filter: none;
      pointer-events: none;
    }
    .site-header .header-inner {
      width: 52px;
      min-height: 52px;
      margin: 0;
      gap: 0;
    }
    .site-header .brand { display: none; }
    .menu-button {
      position: relative;
      display: block;
      width: 52px;
      height: 52px;
      margin: 0;
      background: rgba(8, 11, 16, .92);
      border-color: rgba(72, 220, 200, .3);
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
      backdrop-filter: blur(16px);
      pointer-events: auto;
    }
    .menu-button:focus-visible {
      outline: 3px solid rgba(156, 255, 238, .55);
      outline-offset: 3px;
    }
    .menu-lines,
    .menu-lines::before,
    .menu-lines::after { width: 24px; }
    .site-header .main-nav {
      position: fixed;
      top: calc(68px + env(safe-area-inset-top));
      right: 14px;
      bottom: max(14px, env(safe-area-inset-bottom));
      left: 14px;
      width: auto;
      max-height: none;
      justify-content: flex-start;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      background: rgba(8, 11, 16, .98);
      border-color: rgba(72, 220, 200, .24);
      border-radius: 14px;
      pointer-events: auto;
      scrollbar-gutter: stable;
    }
    .site-header .main-nav a {
      flex: 0 0 auto;
    }
    html.mobile-menu-open,
    body.mobile-menu-open {
      overflow: hidden;
    }
    .hero { padding-top: 0; }
    .breadcrumb {
      min-height: 56px;
      margin-bottom: 10px;
      padding-top: max(6px, env(safe-area-inset-top));
      padding-right: 64px;
    }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main, .hero-panel { border-radius: 21px; }
    .hero-main.hero-panel { padding: 8px; }
    .hero-main .eyebrow { margin-top: 0; }
    .hero-main h1 {
      margin-bottom: 8px;
      font-size: clamp(1rem, 4.8vw, 1.2rem);
      line-height: 1.18;
    }
    .hero-main .panel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .hero-main .panel-stat { min-width: 0; padding: 6px 2px; border-radius: 9px; }
    .hero-main .panel-stat small { font-size: .58rem; line-height: 1.3; }
    .hero-main.hero-panel .panel-stat strong {
      margin-top: 3px;
      font-size: clamp(1.25rem, 5.4vw, 1.5rem);
      line-height: 1.1;
    }
    .oil-history-page .history-hero-card { padding: 16px 14px; }
    .oil-history-page .history-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .oil-history-page .history-hero-stats .panel-stat { padding: 10px 6px; }
    .oil-history-page .history-hero-stats .panel-stat small { font-size: .68rem; }
    .oil-history-page .history-hero-stats .panel-stat strong { font-size: .86rem; }
    .hero-main .panel-stats-ad { min-height: 64px; }
    .price-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-card { min-height: 0; padding: 14px 12px; }
    .summary-card strong { font-size: clamp(1.22rem, 6.5vw, 1.65rem); }
    .retail-price-table th:first-child,
    .retail-price-table td:first-child { padding-inline: 7px; font-size: .78rem; }
    .retail-provider-logo { width: 46px; height: 46px; }
    .oil-history-page .history-table .history-date-column {
      width: 108px;
      min-width: 108px;
      max-width: 108px;
      padding-inline: 6px;
      white-space: nowrap;
    }
  }

  @media (max-width: 380px) {
    .hero-main, .hero-panel { padding-inline: 14px; }
  }

  @media print {
    body { color: #000; background: #fff; }
    body::before { display: none; }
    .glass, .summary-card, .table-card, .tomorrow-embed-card, .world-wrap, .history-card, .crude-history-note, .article-card, .sources, details { color: #000; background: #fff; box-shadow: none; border-color: #bbb; }
  }

  /* Shared compact footer layout */
  .site-footer {
    margin-top: 50px;
    padding-bottom: env(safe-area-inset-bottom);
    background:
      radial-gradient(circle at 86% 4%, rgba(72, 220, 200, .08), transparent 24rem),
      linear-gradient(#080b10 0%, #05070a 100%);
    border-top: 0;
    color: #aeb8c6;
  }

  .site-footer .footer-standard-main {
    width: min(var(--container, 1180px), calc(100% - 40px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
    align-items: end;
    gap: 70px;
    padding-block: 48px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .site-footer .footer-standard-brand .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-decoration: none;
  }

  .site-footer .footer-standard-brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, #48dcc8 0%, #0d9488 100%);
    box-shadow: 0 0 16px rgba(72, 220, 200, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .site-footer .footer-standard-brand .brand-mark img {
    display: block;
    width: 18px;
    height: 18px;
  }

  .site-footer .footer-standard-brand .brand-name {
    display: block;
    font-size: 1rem;
    line-height: 1.25;
    color: #ffffff;
  }

  .site-footer .footer-standard-brand .brand small {
    display: block;
    margin-top: 1px;
    color: #94a3b8;
    font-size: .67rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .08em;
    opacity: .85;
  }

  .site-footer .footer-standard-brand > p {
    max-width: 430px;
    margin: 18px 0 0;
    font-size: 11px;
    line-height: 1.7;
    color: #8fa0b5;
  }

  .site-footer .footer-standard-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .site-footer .footer-standard-disclaimer {
    max-width: 540px;
    margin: 0 0 14px;
    font-size: 11px;
    line-height: 1.6;
    color: #8fa0b5;
    text-align: right;
  }

  .site-footer .footer-standard-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px 18px;
  }

  .site-footer .footer-standard-links a {
    font-size: 11px;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .site-footer .footer-standard-links a:hover {
    color: #9cffee;
    text-decoration: underline !important;
  }

  .site-footer .footer-standard-bottom {
    width: min(var(--container, 1180px), calc(100% - 40px));
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding: 18px 0 25px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
    color: #64748b;
  }

  @media (max-width: 960px) {
    .site-footer .footer-standard-main {
      grid-template-columns: 1fr;
      gap: 34px;
    }

    .site-footer .footer-standard-meta {
      align-items: flex-start;
    }

    .site-footer .footer-standard-disclaimer {
      text-align: left;
    }

    .site-footer .footer-standard-links {
      justify-content: flex-start;
    }
  }

  @media (max-width: 560px) {
    .site-footer .footer-standard-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  }

  /* Site-wide text link underline behavior */
  a[href] {
    text-decoration: none !important;
  }

  a[href]:hover {
    text-decoration: underline !important;
    text-underline-offset: .18em;
  }

  /* Align prominent page headings with the /commodities/ heading rhythm. */
  @media screen {
    #main-content .hero {
      padding-top: clamp(24px, 2.5vw, 38px);
    }

    #main-content .section {
      padding-top: clamp(36px, 3vw, 46px);
    }

    #main-content .eyebrow {
      display: flex;
      width: fit-content;
      margin: 0 0 17px;
      align-items: center;
      gap: 10px;
      font-size: 11px;
      font-weight: 800;
      line-height: 1.65;
      letter-spacing: .14em;
    }

    #main-content .eyebrow::before {
      width: 28px;
      height: 1px;
    }

    #main-content .hero h1,
    #main-content .section-heading h2 {
      margin: 0;
      font-size: clamp(28px, 3.2vw, 44px);
      line-height: 1.13;
      letter-spacing: -.045em;
    }

    #main-content .hero h1 + .hero-lead {
      margin-top: 26px;
    }

    #main-content .section-heading h2 + p {
      margin-top: 10px;
    }
  }

  /* Balance the visible breadcrumb spacing between the header and hero panel. */
  @media screen and (min-width: 761px) {
    #main-content .hero {
      padding-top: 4px;
    }
  }

  @media screen and (max-width: 760px) {
    #main-content .hero {
      padding-top: 0;
    }
  }

  /* Mobile page opening: start with the section eyebrow, without breadcrumbs. */
  @media screen and (max-width: 760px) {
    #main-content .breadcrumb {
      display: none;
    }

    #main-content .hero h1 {
      padding-right: 64px;
    }
  }

  /* Keep the hero eyebrow visually 25px below the card edge. */
  #main-content .hero-main.hero-panel,
  .oil-history-page #main-content .history-hero-card {
    padding-top: 24px;
  }

  /* Match the left/right inner spacing of the current-price hero card
     with the history-page hero card on every viewport size. */
  #main-content .hero-main.hero-panel {
    padding-right: clamp(26px, 5vw, 54px);
    padding-left: clamp(26px, 5vw, 54px);
  }

  @media (max-width: 760px) {
    #main-content .hero-main.hero-panel {
      padding-right: 14px;
      padding-left: 14px;
    }
  }

  /* Interactive Thailand retail-oil history charts */
  .oil-history-chart-panel {
    padding: 18px;
    background:
      radial-gradient(circle at 100% 0, rgba(72, 220, 200, .1), transparent 34%),
      linear-gradient(180deg, rgba(10, 16, 24, .96), rgba(7, 11, 17, .98));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  }

  .oil-history-chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 18px;
  }

  .oil-history-chart-heading h3 {
    margin: 3px 0 0;
    color: #f4f7fb;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.3;
  }

  .oil-history-chart-heading > p {
    flex: 0 0 auto;
    margin: 0;
    color: #d7e2e9;
    font-size: .78rem;
    line-height: 1.5;
    text-align: right;
  }

  .oil-history-chart-heading > p span { color: var(--ink-soft); }

  .oil-history-chart-kicker {
    color: #72e8d7;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  .oil-history-stockchart {
    position: relative;
    width: 100%;
    height: 535px;
    min-height: 535px;
    overflow: hidden;
    background: rgba(5, 9, 14, .44);
    border: 1px solid rgba(72, 220, 200, .14);
    border-radius: 14px;
  }

  .oil-history-stockchart:focus-visible {
    outline: 3px solid rgba(72, 220, 200, .42);
    outline-offset: 3px;
  }

  .oil-history-stockchart.is-error {
    display: none;
    height: 0;
    min-height: 0;
  }

  .oil-history-chart-status,
  .oil-history-chart-fallback {
    margin: 10px 0 0;
    padding: 11px 13px;
    color: #c9d4df;
    background: rgba(73, 174, 255, .06);
    border: 1px solid rgba(73, 174, 255, .14);
    border-radius: 10px;
    font-size: .8rem;
    line-height: 1.55;
  }

  .oil-history-chart-help {
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
  }

  .oil-history-chart-help summary {
    padding: 12px 14px;
    color: #dffaf5;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
  }

  .oil-history-chart-help summary:hover { background: rgba(72, 220, 200, .06); }

  .oil-history-chart-help-content {
    padding: 0 16px 15px;
    color: #c2ccd8;
    font-size: .82rem;
    line-height: 1.65;
  }

  .oil-history-chart-help-content p { margin: 0 0 9px; }
  .oil-history-chart-help-content ul { margin: 8px 0 10px; padding-left: 22px; }
  .oil-history-chart-help-content li + li { margin-top: 4px; }
  .oil-chart-tooltip { min-width: 185px; font-size: 12px; line-height: 1.55; }

  @media screen and (max-width: 760px) {
    .oil-history-chart-panel { padding: 13px 8px 15px; }
    .history-provider-chart,
    .crude-history-chart { grid-column: 1; }
    .oil-history-chart-heading { display: block; padding-inline: 4px; }
    .oil-history-chart-heading > p { margin-top: 7px; text-align: left; }
    .oil-history-stockchart {
      height: 565px;
      min-height: 565px;
      border-radius: 10px;
    }
    .oil-history-chart-help summary { padding: 11px 12px; }
    .oil-history-chart-help-content { padding: 0 13px 13px; font-size: .78rem; }
  }

  @media print {
    .oil-history-stockchart,
    .oil-history-chart-status { display: none !important; }
    .oil-history-chart-panel { color: #000; background: #fff; border: 1px solid #bbb; }
    .oil-history-chart-heading h3,
    .oil-history-chart-help summary { color: #000; }
  }

  /* ==========================================================================
     Cheapest Fuel Matrix Section (สรุปปั๊มน้ำมันที่ราคาถูกที่สุดวันนี้)
     ========================================================================== */
  .cheapest-matrix-section {
    margin: 20px 0 28px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(14, 23, 38, 0.95) 0%, rgba(8, 14, 24, 0.98) 100%);
    border: 1px solid rgba(22, 184, 166, 0.35);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(22, 184, 166, 0.08);
  }

  .cheapest-matrix-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cheapest-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #9cffee;
    background: rgba(22, 184, 166, 0.18);
    border: 1px solid rgba(22, 184, 166, 0.4);
    border-radius: 20px;
    margin-bottom: 6px;
  }

  .cheapest-matrix-heading {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
  }

  .cheapest-matrix-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
  }

  .cheapest-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }

  @media screen and (min-width: 1100px) {
    .cheapest-matrix-grid {
      grid-template-columns: repeat(5, 1fr);
    }
  }

  .cheapest-card {
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    background: rgba(20, 30, 48, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .cheapest-card:hover {
    transform: translateY(-2px);
    border-color: rgba(22, 184, 166, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .cheapest-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }

  .cheapest-fuel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    font-size: 0.84rem;
    font-weight: 800;
    border: 1px solid;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    letter-spacing: 0.01em;
    flex-shrink: 0;
  }

  .cheapest-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
  }

  .cheapest-saving-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 750;
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cheapest-equal-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cheapest-price-row {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: rgba(10, 16, 26, 0.6);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .cheapest-price-label {
    font-size: 0.75rem;
    color: #94a3b8;
  }

  .cheapest-price-val {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }

  .cheapest-price-val strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: #9cffee;
    letter-spacing: -0.02em;
  }

  .cheapest-unit {
    font-size: 0.72rem;
    color: #64748b;
  }

  .cheapest-providers-wrap {
    margin-top: auto;
  }

  .cheapest-providers-label {
    display: block;
    font-size: 0.73rem;
    color: #94a3b8;
    margin-bottom: 6px;
  }

  .cheapest-provider-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .cheapest-provider-pill {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
  }

  .cheapest-provider-pill:hover {
    color: #9cffee;
    background: rgba(22, 184, 166, 0.2);
    border-color: rgba(22, 184, 166, 0.5);
  }

  @media screen and (max-width: 600px) {
    .cheapest-matrix-section {
      padding: 16px 14px;
      border-radius: 14px;
    }
    .cheapest-matrix-heading {
      font-size: 1.1rem;
    }
    .cheapest-matrix-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ========================================================================
     Oil landing-page performance and accessibility hardening
     ======================================================================== */
  .hero-grid.hero-grid-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid-single .hero-main.hero-panel {
    width: 100%;
    max-width: none;
  }

  .hero-supporting-copy {
    margin-top: 10px;
  }

  .provider-history-summary {
    margin: 14px 0 0;
    padding-top: 12px;
    color: #b8c8d3;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
    line-height: 1.55;
  }

  .provider-history-summary a {
    color: #9cffee;
    font-weight: 700;
  }

  .oil-history-cta {
    padding-top: 8px;
  }

  .history-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: clamp(20px, 4vw, 34px);
    gap: 24px;
    background: linear-gradient(135deg, rgba(11, 38, 56, .96), rgba(8, 20, 31, .98));
    border: 1px solid rgba(72, 220, 200, .24);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .history-cta-card h2 {
    margin: 4px 0 8px;
    color: #f4fbfa;
  }

  .history-cta-card p:last-child {
    max-width: 760px;
    margin: 0;
    color: #b8c8d3;
    line-height: 1.65;
  }

  .history-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    color: #04100f;
    background: #74ead9;
    border-radius: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
  }

  .history-cta-link:hover,
  .history-cta-link:focus-visible {
    color: #04100f;
    background: #a5fff0;
  }

  /* WCAG AA: white text now exceeds a 4.5:1 contrast ratio. */
  .provider-badge-bcp { background: #15803d; }
  .provider-badge-caltex { background: #c2410c; }
  .provider-badge-irpc { background: #0e7490; }
  .provider-badge-susco { background: #a16207; }

  .provider-cards-grid[hidden],
  .retail-price-table-view[hidden] {
    display: none !important;
  }

  /* Skip layout/paint work for long, below-the-fold landing-page sections.
     The intrinsic fallback keeps the scroll range stable until each section
     approaches the viewport. */
  .oil-page:not(.oil-history-page) #tomorrow,
  .oil-page:not(.oil-history-page) #world,
  .oil-page:not(.oil-history-page) #price-factors,
  .oil-page:not(.oil-history-page) #knowledge,
  .oil-page:not(.oil-history-page) #faq,
  .oil-page:not(.oil-history-page) #sources {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }

  @media (max-width: 760px) {
    .history-cta-card {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .history-cta-link {
      width: 100%;
    }
  }
