@scope (#original-content) {

    #edexcel-gcse-maths-guide{
      font-family:'Segoe UI',Georgia,sans-serif;
      max-width:1020px; margin:0 auto; padding:32px 22px;
      color:#1a1a2e; line-height:1.9; background:#fff;
    }
    #edexcel-gcse-maths-guide *,
    #edexcel-gcse-maths-guide *::before,
    #edexcel-gcse-maths-guide *::after{ box-sizing:border-box; }

    /* ── Typography ── */
    #edexcel-gcse-maths-guide h1{
      font-size:2rem; color:#00369a;
      border-bottom:4px solid #e74c3c;
      padding-bottom:14px; margin:0 0 24px; line-height:1.3;
    }
    #edexcel-gcse-maths-guide h2{
      font-size:1.45rem; color:#003399; margin-top:44px;
      padding-left:14px; border-left:5px solid #e74c3c;
    }
    #edexcel-gcse-maths-guide h3{
      font-size:1.15rem; color:#1a4fa0; margin-top:28px;
    }
    #edexcel-gcse-maths-guide p{ margin:12px 0; font-size:1rem; }
    #edexcel-gcse-maths-guide ul{ padding-left:22px; }
    #edexcel-gcse-maths-guide ul li{ margin:7px 0; }
    #edexcel-gcse-maths-guide ol{ padding-left:22px; }
    #edexcel-gcse-maths-guide ol li{ margin:6px 0; }

    /* ── Hero Banner ── */
    .eg-banner{
      background:linear-gradient(135deg,#00369a 0%,#0056d6 100%);
      color:#fff; border-radius:10px; padding:22px 26px; margin:0 0 28px;
    }
    .eg-banner p{ margin:0 0 12px; font-size:1.05rem; }
    .eg-banner p:last-child{ margin:0; }
    .eg-tag{
      display:inline-block; background:rgba(255,255,255,0.18);
      color:#fff; padding:3px 12px; border-radius:20px;
      font-size:0.78rem; margin:3px; border:1px solid rgba(255,255,255,0.35);
    }

    /* ── Formula Box ── */
    .eg-formula{
      background:#eaf1fb; border-left:5px solid #0056d6;
      padding:16px 20px; margin:20px 0;
      border-radius:0 8px 8px 0; font-size:1.03rem;
    }
    .eg-formula .eg-ftitle{
      font-weight:700; color:#00369a;
      text-transform:uppercase; font-size:0.78rem;
      letter-spacing:0.6px; margin-bottom:10px;
    }

    /* ── Tip / Note Box ── */
    .eg-tip{
      background:#fff8e1; border:1px solid #f9a825;
      border-radius:8px; padding:14px 18px; margin:20px 0; font-size:0.97rem;
    }
    .eg-tip::before{ content:'💡 Exam Tip: '; font-weight:700; color:#e65100; }
    .eg-note{
      background:#f0fdf4; border:1px solid #22c55e;
      border-radius:8px; padding:14px 18px; margin:20px 0; font-size:0.97rem;
    }
    .eg-note::before{ content:'📌 Note: '; font-weight:700; color:#15803d; }

    /* ── Tier Comparison Table ── */
    .eg-tier-table{ width:100%; border-collapse:collapse; margin:16px 0; font-size:0.9rem; }
    .eg-tier-table thead{ background:#00369a; color:#fff; }
    .eg-tier-table thead th{ padding:11px 12px; text-align:left; }
    .eg-tier-table tbody tr:nth-child(even){ background:#f0f5ff; }
    .eg-tier-table tbody td{ padding:9px 12px; border:1px solid #c8d8f0; }

    /* ── Filter Controls ── */
    #egFilterSection{ margin:20px 0 10px; }
    .eg-filter-group{ margin-bottom:10px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
    .eg-filter-label{ font-size:0.8rem; font-weight:700; color:#003399; min-width:56px; }
    .eg-fbtn{
      background:#eaf1fb; border:1px solid #aac4ef; color:#003399;
      padding:5px 14px; border-radius:20px; cursor:pointer;
      font-size:0.82rem; transition:all 0.18s; font-family:inherit;
    }
    .eg-fbtn:hover,.eg-fbtn.eg-active{
      background:#00369a; color:#fff; border-color:#00369a;
    }
    .eg-fbtn.eg-tier-f.eg-active{ background:#1e7e34; border-color:#1e7e34; }
    .eg-fbtn.eg-tier-h.eg-active{ background:#c0392b; border-color:#c0392b; }

    /* ── Past Papers Table ── */
    #egPapersTable{
      width:100%; border-collapse:collapse; margin:16px 0 8px; font-size:0.82rem;
    }
    #egPapersTable thead{ background:#00369a; color:#fff; }
    #egPapersTable thead th{ padding:11px 8px; text-align:center; font-size:0.8rem; }
    #egPapersTable tbody tr:nth-child(even){ background:#f0f5ff; }
    #egPapersTable tbody tr:hover{ background:#d0e4ff; transition:background 0.15s; }
    #egPapersTable tbody td{
      padding:8px 7px; text-align:center; border:1px solid #c8d8f0;
    }
    #egPapersTable tbody td.eg-session{ text-align:left; font-weight:600; color:#003399; }
    #egPapersTable tbody td.eg-paper-num{ color:#555; font-weight:600; }

    /* Spec badges */
    .eg-spec-new{
      display:inline-block; background:#0056d6; color:#fff;
      font-size:0.68rem; padding:1px 7px; border-radius:10px; margin-left:5px;
    }
    .eg-spec-old{
      display:inline-block; background:#6c757d; color:#fff;
      font-size:0.68rem; padding:1px 7px; border-radius:10px; margin-left:5px;
    }
    .eg-spec-spm{
      display:inline-block; background:#8e24aa; color:#fff;
      font-size:0.68rem; padding:1px 7px; border-radius:10px; margin-left:5px;
    }

    /* Download buttons */
    a.eg-qp, a.eg-ms, a.eg-na{
      display:inline-block; padding:3px 10px; border-radius:5px;
      text-decoration:none; font-size:0.75rem; font-weight:600;
      margin:2px; transition:background 0.2s, transform 0.1s;
    }
    a.eg-qp{ background:#00369a; color:#fff; }
    a.eg-ms{ background:#1e7e34; color:#fff; }
    a.eg-na{ background:#aaa; color:#fff; cursor:default; pointer-events:none; }
    a.eg-qp:hover{ background:#e74c3c; transform:scale(1.04); }
    a.eg-ms:hover{ background:#e74c3c; transform:scale(1.04); }

    /* Foundation / Higher column headers */
    th.eg-col-f{ background:#1e7e34 !important; }
    th.eg-col-h{ background:#c0392b !important; }

    /* Row count */
    #egRowCount{ font-size:0.83rem; color:#555; margin:6px 0 18px; }

    /* ── Responsive ── */
    @media(max-width:720px){
      #edexcel-gcse-maths-guide h1{ font-size:1.4rem; }
      #edexcel-gcse-maths-guide h2{ font-size:1.15rem; }
      #egPapersTable{ font-size:0.72rem; }
      a.eg-qp, a.eg-ms{ padding:2px 7px; font-size:0.68rem; }
      .eg-banner{ padding:16px 14px; }
    }
  
}

@layer articleTheme { #original-content .eg-banner {background:var(--hlm-article-paper) !important;color:var(--hlm-article-ink) !important;box-shadow:none !important;} #original-content .eg-banner :is(span,strong,small,div) {color:inherit !important;} }
#original-content #egPapersTable td.eg-paper-num {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
