/* Content pages: programmes, how it works, rules, help and policy pages (and parts of the rewritten pages).
   Same surfaces as the Affiliate and Rewards pages: soft grey panels, DM Sans / Inter, silver headings, cyan + aqua accents. */

.pg {
    --pg-panel: #f5f6f9;
    --pg-panel-2: #eef1f5;
    --pg-window: #fff;
    --pg-line: rgba(15, 23, 42, 0.08);
    --pg-line-2: rgba(15, 23, 42, 0.14);
    --pg-head: #0b1f4b;
    --pg-text: #475569;
    --pg-muted: #64748b;
    --pg-faint: #94a3b8;
    --pg-accent: #0b9bcc;
    --pg-accent-bg: rgba(11, 155, 204, 0.08);
    --pg-green: #0d9488;
    --pg-green-bg: rgba(45, 212, 191, 0.16);
    --pg-amber: #b45309;
    --pg-amber-bg: rgba(245, 158, 11, 0.12);
    --pg-amber-line: rgba(245, 158, 11, 0.35);
}
[data-bs-theme="dark"] .pg {
    --pg-panel: #141619;
    --pg-panel-2: #1a1d21;
    --pg-window: #1a1d21;
    --pg-line: rgba(255, 255, 255, 0.08);
    --pg-line-2: rgba(255, 255, 255, 0.14);
    --pg-head: #fff;
    --pg-text: #b9c4d2;
    --pg-muted: #94a3b8;
    --pg-faint: #64748b;
    --pg-accent: #15ceff;
    --pg-accent-bg: rgba(21, 206, 255, 0.1);
    --pg-green: #2dd4bf;
    --pg-green-bg: rgba(45, 212, 191, 0.14);
    --pg-amber: #fbbf24;
    --pg-amber-bg: rgba(245, 158, 11, 0.12);
    --pg-amber-line: rgba(251, 191, 36, 0.3);
}

/* ───────── Page head ───────── */
.pg-top {
    padding-top: 6.5rem;
}
@media (min-width: 992px) {
    .pg-top {
        padding-top: 7.5rem;
    }
}
.pg-hero {
    padding: 1.5rem 0 1rem;
}
.pg-title {
    max-width: 860px;
    margin-bottom: 1.25rem;
    font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.5rem);
    line-height: 1.08;
}
.pg-lead {
    max-width: 720px;
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--pg-text);
}
.pg-lead b {
    font-weight: 600;
    color: var(--pg-head);
}
.pg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ───────── Sections and cards ───────── */
/* .pg-glow: soft round blue and green lights blended behind a section, fading out with no edges */
.pg-glow {
    position: relative;
    isolation: isolate;
}
.pg-glow::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -7rem -4rem;
    pointer-events: none;
    /* closest-side circles end inside the box, and the mask fades the top and bottom, so no edge ever shows */
    background:
        radial-gradient(circle closest-side at 32% 45%, rgba(21, 206, 255, 0.16), rgba(21, 206, 255, 0)),
        radial-gradient(circle closest-side at 68% 55%, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0)),
        radial-gradient(closest-side at 50% 50%, rgba(95, 221, 255, 0.08), rgba(95, 221, 255, 0));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
/* greener mix: teal and mint instead of blue and teal */
.pg-glow.pg-glow-green::before {
    /* centre glow plus a round soft green at the two bottom corners; the layer is wider here and every circle sits
       at least its own radius from the layer's edge, so none is ever cut flat */
    inset: -7rem -10rem;
    background:
        radial-gradient(circle 170px at 180px 78%, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0) 100%),
        radial-gradient(circle 170px at calc(100% - 180px) 78%, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0) 100%),
        radial-gradient(circle closest-side at 30% 45%, rgba(45, 212, 191, 0.18), rgba(45, 212, 191, 0)),
        radial-gradient(circle closest-side at 70% 55%, rgba(94, 234, 212, 0.18), rgba(94, 234, 212, 0)),
        radial-gradient(closest-side at 50% 50%, rgba(20, 184, 166, 0.08), rgba(20, 184, 166, 0));
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
[data-bs-theme="dark"] .pg-glow.pg-glow-green::before {
    background:
        radial-gradient(circle 170px at 180px 78%, rgba(45, 212, 191, 0.11), rgba(45, 212, 191, 0) 100%),
        radial-gradient(circle 170px at calc(100% - 180px) 78%, rgba(45, 212, 191, 0.11), rgba(45, 212, 191, 0) 100%),
        radial-gradient(circle closest-side at 30% 45%, rgba(45, 212, 191, 0.11), rgba(45, 212, 191, 0)),
        radial-gradient(circle closest-side at 70% 55%, rgba(94, 234, 212, 0.09), rgba(94, 234, 212, 0)),
        radial-gradient(closest-side at 50% 50%, rgba(20, 184, 166, 0.05), rgba(20, 184, 166, 0));
}
/* notices inside a glowing section keep their own colour: the tint sits on a solid page-colour base, so no glow shows through */
.pg-glow .pg-notice.is-draft,
.pg-glow .pg-notice.is-sample {
    background: linear-gradient(var(--pg-amber-bg), var(--pg-amber-bg)), var(--si-body-bg);
}
[data-bs-theme="dark"] .pg-glow::before {
    background:
        radial-gradient(circle closest-side at 32% 45%, rgba(21, 206, 255, 0.1), rgba(21, 206, 255, 0)),
        radial-gradient(circle closest-side at 68% 55%, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0)),
        radial-gradient(closest-side at 50% 50%, rgba(95, 221, 255, 0.05), rgba(95, 221, 255, 0));
}
.pg-section {
    margin-top: var(--cfx-gap);
}
.pg-section-head {
    max-width: 760px;
    margin-bottom: 2rem;
}
.pg-section-head p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pg-text);
}
.pg-h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);
    line-height: 1.15;
}
.pg-card {
    position: relative;
    height: 100%;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: var(--pg-panel);
    border: 1px solid var(--pg-line);
}
@media (min-width: 992px) {
    .pg-card {
        padding: 2.25rem;
    }
}
.pg-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--pg-head);
}
.pg-card p,
.pg-card li {
    color: var(--pg-text);
    line-height: 1.7;
}
.pg-card p:last-child {
    margin-bottom: 0;
}
.pg-card-ico {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.25rem;
    border-radius: 0.9rem;
    font-size: 1.4rem;
    color: var(--pg-accent);
    background: var(--pg-accent-bg);
}
.pg-prose {
    max-width: 760px;
}
/* the section gap is the only space between blocks */
.pg-prose > :last-child {
    margin-bottom: 0;
}
.pg-prose p,
.pg-prose li {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--pg-text);
}
/* .pg-route: one rounded card holding a heading and a grid of small glass tiles, with soft colour behind the glass */
.pg-route {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 1.75rem;
    border-radius: 1.75rem;
    border: 1px solid var(--pg-line);
    background:
        radial-gradient(circle at 85% 15%, rgba(21, 206, 255, 0.16), rgba(21, 206, 255, 0) 45%),
        radial-gradient(circle at 70% 90%, rgba(45, 212, 191, 0.16), rgba(45, 212, 191, 0) 45%),
        var(--pg-panel);
}
@media (min-width: 992px) {
    .pg-route {
        padding: 2rem 2.25rem;
    }
}
[data-bs-theme="dark"] .pg-route {
    background:
        radial-gradient(circle at 85% 15%, rgba(21, 206, 255, 0.1), rgba(21, 206, 255, 0) 45%),
        radial-gradient(circle at 70% 90%, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0) 45%),
        var(--pg-panel);
}
/* .pg-card-glass: a small frosted tile laid out as one short row (icon, text, arrow) */
.pg-card.pg-card-glass {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    column-gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 28px -18px rgba(15, 23, 42, 0.3);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.pg-card.pg-card-glass:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 16px 32px -18px rgba(15, 23, 42, 0.35);
}
[data-bs-theme="dark"] .pg-card.pg-card-glass {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 28px -18px rgba(0, 0, 0, 0.6);
}
/* icon in the same metal chip as the section numbers: gunmetal in light mode, silver in dark mode */
.pg-card-glass .pg-card-ico {
    grid-row: span 2;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    border-radius: 0.75rem;
    font-size: 1.2rem;
    color: #eef2f4;
    background: linear-gradient(180deg, #6a757e 0%, #3a434a 50%, #1a2025 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 4px 10px -3px rgba(15, 23, 42, 0.35);
}
[data-bs-theme="dark"] .pg-card-glass .pg-card-ico {
    color: #1d252b;
    background: linear-gradient(180deg, #ffffff 0%, #e3e9ed 45%, #a9b4bc 100%);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 0 12px rgba(255, 255, 255, 0.12);
}
.pg-card-glass h3 {
    grid-column: 2;
    margin-bottom: 0.15rem;
    font-size: 1rem;
}
.pg-card-glass p {
    grid-column: 2;
    margin: 0 !important;
    font-size: 0.82rem;
    line-height: 1.45;
}
/* the whole tile is the link, so only the arrow shows; "Open" stays for screen readers */
.pg-card-glass .pg-link {
    grid-column: 3;
    grid-row: 1 / span 2;
    font-size: 1.25rem;
}
.pg-card-glass .pg-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .pg-route {
        padding: 1.5rem 1rem;
    }
}
.pg-prose b,
.pg-card b {
    font-weight: 600;
    color: var(--pg-head);
}
.pg :is(.pg-prose, .pg-doc-body, .pg-notice, .pg-lead, .pg-table, .pg-checks, .pg-steps, .pg-card p) a:not([class]) {
    color: var(--pg-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* ───────── Key figures ───────── */
.pg-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}
.pg-fact {
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    background: var(--pg-window);
    border: 1px solid var(--pg-line);
}
.pg-fact span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pg-muted);
}
.pg-fact strong {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pg-head);
}
.pg-fact small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--pg-muted);
}

/* ───────── Tables ───────── */
.pg-table-wrap {
    overflow-x: auto;
    border-radius: 1.25rem;
    background: var(--pg-window);
    border: 1px solid var(--pg-line);
}
.pg-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.pg-table caption {
    caption-side: top;
    padding: 1rem 1.25rem 0.5rem;
    font-size: 0.8rem;
    color: var(--pg-muted);
}
.pg-table th,
.pg-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--pg-line);
    color: var(--pg-text);
}
.pg-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--pg-muted);
    background: var(--pg-panel-2);
}
.pg-table tbody th {
    font-weight: 600;
    color: var(--pg-head);
}
.pg-table tbody tr:last-child > * {
    border-bottom: 0;
}
.pg-table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.pg-table s {
    color: var(--pg-faint);
}

/* ───────── Notices: draft status, sample data, pending decisions ───────── */
.pg-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--pg-text);
    background: var(--pg-accent-bg);
    border: 1px solid rgba(11, 155, 204, 0.22);
}
.pg-notice > i {
    flex: none;
    margin-top: 0.1rem;
    font-size: 1.3rem;
    color: var(--pg-accent);
}
.pg-notice b {
    color: var(--pg-head);
}
.pg-notice p {
    margin: 0;
}
.pg-notice.is-draft,
.pg-notice.is-sample {
    background: var(--pg-amber-bg);
    border-color: var(--pg-amber-line);
}
.pg-notice.is-draft > i,
.pg-notice.is-sample > i {
    color: var(--pg-amber);
}
.pg-notice.is-risk {
    padding: 0.25rem 0;
    margin-top: auto;
    background: transparent;
    border-color: transparent;
    color: var(--pg-muted);
}
.pg-fee-copy {
    display: flex;
    flex-direction: column;
}
.pg-notice.is-risk > i {
    color: var(--pg-muted);
}
.pg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pg-amber);
    background: var(--pg-amber-bg);
    border: 1px solid var(--pg-amber-line);
}

/* ───────── Lists ───────── */
.pg-checks {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.pg-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: var(--pg-window);
    border: 1px solid var(--pg-line);
    line-height: 1.6;
    color: var(--pg-text);
}
.pg-checks i {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--pg-green);
    background: var(--pg-green-bg);
}
.pg-checks b {
    display: block;
    font-weight: 600;
    color: var(--pg-head);
}

/* numbered steps */
.pg-steps {
    counter-reset: pgstep;
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.pg-steps > li {
    counter-increment: pgstep;
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 4.75rem;
    border-radius: 1.25rem;
    background: var(--pg-panel);
    border: 1px solid var(--pg-line);
}
.pg-steps > li::before {
    content: counter(pgstep, decimal-leading-zero);
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #eef2f4;
    background: linear-gradient(180deg, #6a757e 0%, #3a434a 50%, #1a2025 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 10px -3px rgba(15, 23, 42, 0.35);
}
[data-bs-theme="dark"] .pg-steps > li::before {
    color: #1d252b;
    background: linear-gradient(180deg, #fff 0%, #e3e9ed 45%, #a9b4bc 100%);
}
.pg-steps h3 {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    color: var(--pg-head);
}
.pg-steps p {
    margin: 0;
    line-height: 1.7;
    color: var(--pg-text);
}
.pg-steps p + p {
    margin-top: 0.6rem;
}

/* risk-incident ladder */
.pg-ladder {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.pg-ladder li {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 1.1rem;
    border-radius: 0.9rem;
    background: var(--pg-window);
    border: 1px solid var(--pg-line);
    color: var(--pg-text);
}
.pg-ladder li b {
    font-size: 0.85rem;
    color: var(--pg-head);
}
/* the last step of a penalty ladder is termination */
.pg-ladder:not(.is-steps) li:last-child {
    border-color: rgba(239, 68, 68, 0.3);
}
@media (max-width: 575.98px) {
    .pg-ladder li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* ───────── Programme cards (comparisons) ───────── */
.pg-prog {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: var(--pg-panel);
    border: 1px solid var(--pg-line);
    transition:
        transform 0.3s,
        box-shadow 0.3s,
        border-color 0.3s;
}
.pg-prog:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 155, 204, 0.3);
    box-shadow: 0 24px 48px -24px rgba(11, 155, 204, 0.35);
}
.pg-prog-route {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pg-muted);
}
.pg-prog h3 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.6rem;
    color: var(--pg-head);
}
.pg-prog > p {
    color: var(--pg-text);
}
.pg-prog dl {
    display: grid;
    gap: 0.4rem;
    margin: 0.5rem 0 1.5rem;
}
.pg-prog dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--pg-line-2);
    font-size: 0.9rem;
}
.pg-prog dt {
    font-weight: 500;
    color: var(--pg-muted);
}
.pg-prog dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--pg-head);
}
.pg-prog-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}
.pg-prog-fee {
    font-size: 0.85rem;
    color: var(--pg-muted);
}
.pg-prog-fee strong {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 1.4rem;
    color: var(--pg-head);
}
.pg-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--pg-accent);
}
.pg-link i {
    transition: transform 0.2s;
}
.pg-link:hover i {
    transform: translateX(3px);
}

/* disabled call to action (waiting on an approval) */
.cfx-hbtn[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
    filter: grayscale(0.4);
}
.pg-hint {
    display: block;
    margin-top: -0.25rem;
    font-size: 0.85rem;
    color: var(--pg-muted);
}

/* ───────── Document pages: sticky contents + long-form text ───────── */
.pg-doc {
    margin-top: 2.5rem;
}
.pg-doc-body {
    max-width: 760px;
}
.pg-doc-body section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--pg-line);
}
/* the divider spacing above is the only gap between sections */
.pg-doc-body section > :last-child {
    margin-bottom: 0;
}
.pg-doc-body section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}
.pg-doc-body h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--pg-head);
}
/* section number in the same metal chip as the active item in the Contents menu (centfx.css):
   28px rounded square, gunmetal in light mode, silver in dark mode */
.pg-doc-body h2 .pg-doc-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #eef2f4;
    background: linear-gradient(180deg, #6a757e 0%, #3a434a 50%, #1a2025 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 4px 10px -3px rgba(15, 23, 42, 0.35);
}
[data-bs-theme="dark"] .pg-doc-body h2 .pg-doc-num {
    color: #1d252b;
    background: linear-gradient(180deg, #ffffff 0%, #e3e9ed 45%, #a9b4bc 100%);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 0 12px rgba(255, 255, 255, 0.12);
}
.pg-doc-body h3 {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.1rem;
    color: var(--pg-head);
}
.pg-doc-body p,
.pg-doc-body li {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--pg-text);
}
.pg-doc-body ul {
    padding-left: 1.2rem;
}
.pg-doc-body li + li {
    margin-top: 0.35rem;
}
.pg-doc-body .pg-table-wrap,
.pg-doc-body .pg-notice,
.pg-doc-body .pg-ladder,
.pg-doc-body .pg-facts {
    margin: 1.25rem 0;
}
.pg-doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--pg-muted);
}
.pg-doc-meta i {
    margin-right: 0.3rem;
    color: var(--pg-accent);
}
.pg-doc .terms-nav .nav-link {
    text-decoration: none;
}

/* ───────── Rewards / dashboard sample window ───────── */
.pg-window {
    overflow: hidden;
    border-radius: 1rem;
    background: var(--pg-window);
    border: 1px solid var(--pg-line);
    box-shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.35);
}
.pg-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1.1rem;
    font-size: 0.8rem;
    color: var(--pg-muted);
    background: var(--pg-panel-2);
    border-bottom: 1px solid var(--pg-line);
}
.pg-window-body {
    padding: 1.25rem;
}
.pg-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.pg-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.pg-status.is-done {
    color: var(--pg-green);
}
.pg-status.is-pending {
    color: var(--pg-amber);
}

/* ───────── Contact form states ───────── */
.pg-form-msg {
    margin-top: 1rem;
}
.pg-form-msg:empty {
    display: none;
}

/* fee table: a heading row per programme */
.pg-table .pg-group th {
    padding-top: 1.1rem;
    background: var(--pg-panel);
}
.pg-table .pg-group .pg-link span {
    margin-left: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pg-muted);
}
.pg-table tbody + tbody .pg-group th {
    border-top: 1px solid var(--pg-line-2);
}

/* phones: tighter tables so three or four columns fit without sideways scrolling */
@media (max-width: 575.98px) {
    .pg-table {
        font-size: 0.85rem;
    }
    .pg-table th,
    .pg-table td {
        padding: 0.7rem 0.65rem;
    }
    .pg-table thead th {
        font-size: 0.65rem;
        letter-spacing: 0.04em;
        white-space: normal;
    }
    .pg-table caption {
        padding: 0.85rem 0.75rem 0.4rem;
    }
    .pg-table tbody th {
        hyphens: auto;
        overflow-wrap: anywhere;
    }
}

/* phones: paired buttons stack full width (same as the home hero) */
@media (max-width: 575.98px) {
    .pg-actions .cfx-hbtn,
    .af-page .column-gap-3 > .cfx-hbtn {
        flex: 1 1 100%;
        justify-content: center;
    }
    .pg-hero {
        padding-bottom: 0;
    }
}

/* tablets: document pages share the width with the contents menu, so their tables use the compact spacing too */
@media (min-width: 576px) and (max-width: 991.98px) {
    .pg-doc-body .pg-table {
        font-size: 0.85rem;
    }
    .pg-doc-body .pg-table th,
    .pg-doc-body .pg-table td {
        padding: 0.7rem 0.65rem;
    }
    .pg-doc-body .pg-table thead th {
        font-size: 0.65rem;
        letter-spacing: 0.04em;
        white-space: normal;
    }
}

/* ───────── Programme pages: key figures and "Read before you buy" (same card style as the home page) ───────── */
.pg-keys {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: #f8fafc;
    border: 1px solid var(--pg-line);
}
.pg-keys::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 100% 0%, rgba(var(--keys-rgb, 95, 221, 255), 0.2), rgba(var(--keys-rgb, 95, 221, 255), 0) 50%),
        radial-gradient(circle at 0% 100%, rgba(var(--keys-rgb, 21, 206, 255), 0.12), rgba(var(--keys-rgb, 21, 206, 255), 0) 45%);
}
[data-bs-theme="dark"] .pg-keys {
    background: #141619;
}
/* same ring backdrop as the home "Know when you can request a reward" card; rings take the programme colour (--ring-rgb),
   --ring-k softens colours that read stronger */
[data-bs-theme="dark"] .pg-keys::before {
    background: repeating-radial-gradient(
            circle at 70% 85%,
            rgba(var(--ring-rgb, 45, 212, 191), calc(0.12 * var(--ring-k, 1))) 0,
            rgba(var(--ring-rgb, 45, 212, 191), 0) 38px,
            rgba(var(--ring-rgb, 45, 212, 191), calc(0.12 * var(--ring-k, 1))) 76px
        ),
        radial-gradient(circle at 70% 85%, rgba(var(--ring-rgb, 45, 212, 191), calc(0.45 * var(--ring-k, 1))) 0, rgba(var(--ring-rgb, 45, 212, 191), calc(0.18 * var(--ring-k, 1))) 22%, rgba(var(--ring-rgb, 45, 212, 191), 0) 48%),
        radial-gradient(circle at 90% 0%, rgba(var(--si-primary-rgb), 0.28) 0, rgba(var(--si-primary-rgb), 0) 45%),
        radial-gradient(circle at 98% 100%, rgba(217, 70, 239, 0.16) 0, rgba(217, 70, 239, 0) 35%);
}
@media (min-width: 992px) {
    .pg-keys {
        padding: 2.25rem;
    }
}
/* checklist rows: gradient tick, label + note, value on the right (links in "Read before you buy") */
.pg-reads-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pg-reads-list a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--pg-line);
    transition:
        border-color 0.25s,
        transform 0.25s;
}
[data-bs-theme="dark"] .pg-reads-list a {
    background: rgba(20, 22, 25, 0.85);
}
.pg-reads-list a:hover {
    border-color: rgba(11, 155, 204, 0.35);
    transform: translateX(4px);
}
.pg-reads-list i {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    /* metal finish: gunmetal in light mode, silver in dark mode */
    color: #eef2f4;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 45%),
        linear-gradient(180deg, #6a757e 0%, #3a434a 50%, #1a2025 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 6px 14px -6px rgba(15, 23, 42, 0.55);
}
[data-bs-theme="dark"] .pg-reads-list i {
    color: #12181c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 45%),
        linear-gradient(180deg, #ffffff 0%, #eef2f4 40%, #c3ccd2 100%);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(60, 70, 76, 0.35),
        0 6px 14px -6px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pg-reads-list div {
    flex: 1;
    min-width: 0;
}
.pg-reads-list b {
    display: block;
    font-weight: 600;
    color: var(--pg-head);
}
.pg-reads-list span {
    display: block;
    font-size: 0.85rem;
    color: var(--pg-muted);
}
/* "Read before you buy": copy on the left, the four documents as a 2 × 2 list */
.pg-reads {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 992px) {
    .pg-reads {
        grid-template-columns: 5fr 7fr;
        align-items: center;
        gap: 2.5rem;
    }
}
.pg-reads-copy p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pg-text);
}
@media (min-width: 576px) {
    .pg-reads-list {
        grid-template-columns: 1fr 1fr;
    }
}
.pg-reads-list a {
    height: 100%;
    text-decoration: none;
}
.pg-reads-list em {
    flex-shrink: 0;
    font-size: 1.25rem;
    font-style: normal;
    color: var(--pg-accent);
    transition: transform 0.25s;
}
.pg-reads-list a:hover em {
    transform: translateX(3px);
}

/* ───────── Tabs (Pricing: "Every programme fee") ───────── */
.pg-tabs {
    display: inline-flex;
    gap: 0.35rem;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.35rem;
    overflow-x: auto;
    border-radius: 999px;
    background: var(--pg-panel);
    border: 1px solid var(--pg-line);
    scrollbar-width: none;
}
.pg-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--pg-muted);
    transition:
        color 0.2s,
        background 0.2s;
}
.pg-tab i {
    font-size: 1.1rem;
}
.pg-tab small {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.75;
}
.pg-tab:hover {
    color: var(--pg-head);
}
.pg-tab:focus-visible {
    outline: 2px solid var(--pg-accent);
    outline-offset: 2px;
}
/* selected tab: the same metal chip as the section numbers and the Contents menu */
.pg-tab[aria-selected="true"] {
    color: #eef2f4;
    background: linear-gradient(180deg, #6a757e 0%, #3a434a 50%, #1a2025 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 4px 10px -3px rgba(15, 23, 42, 0.35);
}
[data-bs-theme="dark"] .pg-tab[aria-selected="true"] {
    color: #1d252b;
    background: linear-gradient(180deg, #ffffff 0%, #e3e9ed 45%, #a9b4bc 100%);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(0, 0, 0, 0.25),
        0 0 12px rgba(255, 255, 255, 0.12);
}
/* phones: the three tabs share the full width */
@media (max-width: 575.98px) {
    .pg-tabs {
        display: flex;
    }
    .pg-tab {
        flex: 1;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.55rem 0.5rem;
    }
}
/* without JavaScript every panel shows, stacked */
/* without JavaScript every table shows, stacked; with tabs only one shows, so the gap above it goes */
.pg-tab-panel + .pg-tab-panel {
    margin-top: 2rem;
}
.pg-tab-panel[hidden] + .pg-tab-panel {
    margin-top: 0;
}
/* the chosen table fades in */
.pg-tab-panel {
    animation: pg-tab-in 0.3s ease;
}
@keyframes pg-tab-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .pg-tab-panel {
        animation: none;
    }
}

/* pricing card: room for the "Review Selected Programme" label on one line */
.px-cta {
    display: flex;
    max-width: 400px;
    margin-inline: auto;
}
@media (min-width: 576px) {
    .px-cta {
        white-space: nowrap;
    }
}
.px-fine {
    text-align: center;
}

/* ───────── Programme, Pricing and Rewards pages: prism gradient across the top ───────── */
/* sits behind the hero, strongest at the top right and fading out towards the heading and down into the page */
.pg-prism {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto 0;
    height: 760px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    -webkit-mask-image:
        linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 92%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.35) 40%, #000 78%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 92%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.35) 40%, #000 78%);
    mask-composite: intersect;
}
.pg-prism.is-ready {
    opacity: 0.9;
}
[data-bs-theme="light"] .pg-prism.is-ready {
    opacity: 0.55;
}
.pg-prism canvas {
    display: block;
    width: 100%;
    height: 100%;
}
/* phones: the heading fills the width, so the folds stay softer behind it */
@media (max-width: 767.98px) {
    .pg-prism {
        height: 620px;
        -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 45%, transparent 90%);
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 45%, transparent 90%);
    }
}

/* ───────── Programme "at a glance": the "Read before you buy" card with rule values instead of links ───────── */
.pg-glance-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: 100%;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--pg-line);
    transition: border-color 0.25s;
}
[data-bs-theme="dark"] .pg-glance-item {
    background: rgba(20, 22, 25, 0.85);
}
.pg-glance-item:hover {
    border-color: rgba(11, 155, 204, 0.35);
}
.pg-glance-item {
    align-items: flex-start;
}
.pg-glance-item strong {
    display: block;
    margin-top: 0.15rem;
    font-family: "DM Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    color: var(--prog-text, var(--pg-head));
}
/* an odd count leaves a gap in the 2-column grid: the last rule spans both columns */
.pg-glance .pg-reads-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
/* phones: one compact full-width row per rule, value on the right */
@media (max-width: 575.98px) {
    .pg-glance-item {
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0.85rem;
    }
    .pg-glance-item > div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 0.75rem;
    }
    .pg-glance-item b {
        grid-column: 1;
        grid-row: 1;
    }
    .pg-glance-item span {
        grid-column: 1;
        grid-row: 2;
    }
    .pg-glance-item strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        max-width: 6rem;
        margin: 0;
        text-align: right;
        font-size: 0.95rem;
    }
}
/* reward share: a big figure under the copy */
.pg-glance-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--pg-line);
}
.pg-glance-share strong {
    font-family: "DM Sans", sans-serif;
    font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--prog-text, var(--pg-accent));
}
.pg-glance-share span {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--pg-muted);
}
.pg-glance-share b {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pg-head);
}

/* ───────── Programme cards: plain frosted glass in both modes, no ring backdrop ───────── */
[data-bs-theme="light"] .pg-keys {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 24px 50px -28px rgba(15, 23, 42, 0.25);
}
[data-bs-theme="light"] .pg-keys::before {
    content: none;
}
/* dark mode: the same plain glass, dark tinted */
[data-bs-theme="dark"] .pg-keys {
    background: rgba(20, 22, 25, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 24px 50px -28px rgba(0, 0, 0, 0.7);
}
[data-bs-theme="dark"] .pg-keys::before {
    content: none;
}

/* ───────── "Read before you buy": prism gradient instead of the ring backdrop ───────── */
.pg-reads::before {
    content: none;
}
.pg-reads-prism {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    /* soft behind the heading on the left, stronger behind the links */
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 30%, #000 70%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 30%, #000 70%);
}
.pg-reads-prism.is-ready {
    opacity: 0.85;
}
[data-bs-theme="light"] .pg-reads-prism.is-ready {
    opacity: 0.5;
}
.pg-reads-prism canvas {
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 991.98px) {
    .pg-reads-prism {
        -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 35%, #000 80%);
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.4) 35%, #000 80%);
    }
}
.pg-reads-copy,
.pg-reads-list {
    position: relative;
}

/* Page not found: metal 404 odometer, title, grey line and one button, centred */
.nf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 4rem;
    text-align: center;
}
.nf-odo {
    display: flex;
    margin-bottom: 1.25rem;
    font-size: clamp(5.5rem, 3rem + 10vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.nf-digit {
    display: block;
    height: 1.1em;
    overflow: hidden;
}
/* a tall reel of numbers; the metal gradient repeats once per number */
.nf-reel {
    display: block;
    line-height: 1.1em;
    background: linear-gradient(180deg, #6a757e 0%, #3a434a 50%, #161b1f 100%) 0 0 / 100% calc(100% / var(--count)) repeat-y;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: translateY(calc((var(--count) - 1) * -1.1em));
    animation: nf-roll calc(1.6s + var(--i) * 0.35s) cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}
[data-bs-theme="dark"] .nf-reel {
    background-image: linear-gradient(180deg, #ffffff 0%, #e6ecef 45%, #a9b4bc 100%);
}
.nf-reel > span {
    display: block;
}
@keyframes nf-roll {
    from {
        transform: translateY(0);
    }
}
.nf-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}
.nf-text {
    max-width: 26rem;
    margin: 0 0 2rem;
    color: #64748b;
}
[data-bs-theme="dark"] .nf-text {
    color: #8b97a8;
}
@media (prefers-reduced-motion: reduce) {
    .nf-reel {
        animation: none;
    }
}
