/* ============================================================
   infographic-page.css
   The infographic host pages — Pub Stopover Map, Fuel Price League.
   Sits on top of hub-pages.css and reuses its hero band and tokens.
   ============================================================ */

.ig-page {
    background: #ffffff;
}

/* Standfirst inside the navy hero band */
.ig__standfirst {
    max-width: 720px;
    margin: 0;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.6;
    color: rgba(255,255,255,0.86);
}

.ig__standfirst strong {
    color: #ffffff;
    font-weight: 700;
}

.ig__wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 44px 24px 64px;
    font-size: 16px;
    line-height: 1.65;
    color: #2D2D2D;
}

/* ── Sections ─────────────────────────────────────────────── */
.ig__section {
    margin: 0 0 44px;
}

.ig__section:last-child {
    margin-bottom: 0;
}

.ig__section h2 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    color: #17324A;
    line-height: 1.25;
    margin: 0 0 12px;
}

.ig__section p {
    margin: 0 0 1.1em;
}

.ig__section a {
    color: #4A9B6E;
    text-decoration: none;
}

.ig__section a:hover {
    color: #3a8a5e;
    text-decoration: underline;
}

.ig__section strong {
    font-weight: 600;
    color: #1A1A1A;
}

/* ── The infographic ──────────────────────────────────────── */
.ig__figure {
    margin: 0 0 40px;
    text-align: center;
}

.ig__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 18px rgba(23,50,74,0.12);
}

.ig__caption {
    max-width: 620px;
    margin: 14px auto 0;
    font-size: 13px;
    line-height: 1.55;
    color: #66737D;
}

/* ── County table ─────────────────────────────────────────── */
.ig__tablenote {
    font-size: 14px;
    color: #66737D;
}

/* Wide content scrolls inside its own box rather than the page */
.ig__tablewrap {
    overflow-x: auto;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
}

.ig__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.ig__table th {
    background: #F4EFE6;
    color: #17324A;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.ig__table th.is-sortable {
    cursor: pointer;
    user-select: none;
}

.ig__table th.is-sortable:hover {
    color: #4A9B6E;
}

.ig__table td {
    padding: 10px 16px;
    border-bottom: 1px solid #F0F0F0;
}

.ig__table tbody tr:last-child td {
    border-bottom: none;
}

.ig__table tbody tr:hover {
    background: #FAFAF7;
}

.ig__table .is-numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ig__rank {
    width: 48px;
    color: #9AA5AE;
    font-variant-numeric: tabular-nums;
}

/* ── Embed box ────────────────────────────────────────────── */
.ig__embed {
    background: #F4EFE6;
    border-radius: 12px;
    padding: 28px;
}

.ig__embedbox {
    position: relative;
}

.ig__embedcode {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #DCD5C7;
    border-radius: 8px;
    background: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.55;
    color: #2D2D2D;
    resize: vertical;
}

.ig__copy {
    margin-top: 12px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #4A9B6E;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ig__copy:hover {
    background: #3a8a5e;
}

.ig__embednote {
    margin: 16px 0 0;
    font-size: 14px;
    color: #66737D;
}

/* ── CTA cards ────────────────────────────────────────────── */
.ig__cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ig__cta-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #ffffff;
    color: #17324A !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none !important;
}

.ig__cta-card:hover {
    border-color: #6FBF97;
    box-shadow: 0 2px 12px rgba(23,50,74,0.08);
}

.ig__cta-card span {
    display: block;
    margin-top: 6px;
    font-weight: 400;
    font-size: 13.5px;
    color: #66737D;
}

@media (max-width: 600px) {
    .ig__embed {
        padding: 20px 16px;
    }
}

/* ── Stat cards ───────────────────────────────────────────── */
.ig__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 0 0 32px;
}

.ig__stat {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 18px 20px;
}

.ig__stat b {
    display: block;
    font-size: clamp(26px, 3.4vw, 32px);
    line-height: 1.1;
    color: #17324A;
}

.ig__stat span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #5A5A5A;
}

/* Cheapest reads green, dearest reads red — the two ends of the league.
   Both are darkened from the brand tones to clear 4.5:1 on white. */
.ig__stat--cheap b { color: #2F7D57; }
.ig__stat--dear b { color: #C62828; }

/* ── Method note ──────────────────────────────────────────── */
.ig__method {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #3E8E8E;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    color: #5A5A5A;
}

/* A dearest row wants to stand out without colour alone carrying it. */
.ig__table tr.is-dearest td {
    background: #FDF2F2;
    font-weight: 600;
}

.ig__table .is-muted {
    text-align: right;
    color: #66737D;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── PRO banner ───────────────────────────────────────────── */
.ig__pro {
    background: #2F7D57;
    color: #ffffff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
}

.ig__pro h2 {
    color: #ffffff;
    margin: 0 0 6px;
    font-size: clamp(18px, 2.2vw, 22px);
}

.ig__pro p {
    margin: 0 0 14px;
    font-size: 15px;
    color: rgba(255,255,255,0.92);
}

.ig__pro a {
    display: inline-block;
    background: #ffffff;
    color: #2F7D57 !important;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none !important;
}

.ig__pro a:hover {
    background: #F4EFE6;
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.ig__crumbs {
    margin: 0 0 8px;
    font-size: 13px;
    color: #66737D;
}

.ig__crumbs a {
    color: #5A5A5A;
    text-decoration: none;
}

.ig__crumbs a:hover {
    text-decoration: underline;
}
