/* GSTHR site stylesheet: the one file of site CSS, loaded on every page
   (home/templates/cjkcms/pages/base.html).

   Part 1  Components   the templates in design_system/templates/components/,
                        classes prefixed gs-. Preview: /pattern-library/.
   Part 2  Blocks       what a CMS block needs beyond its components: its
                        grid, its spacing. A block built from components
                        needs little or nothing here.

   Values come from the tokens in cjkcms-custom-theme.css, never raw colours
   or sizes. Blocks do not load CSS of their own and there are no per-block
   files; add to this file. A stylesheet of its own is for a whole page type
   only (resource library, FAQ landing), linked from the page template.

   The simplest elements have no template, only classes: buttons (MDB's
   .btn), .gs-link-arrow, .gs-icon-btn, .gs-tag, .gs-flag, .gs-meta and
   .section-label. Everything with structure is a template to include. */

/* ######################################################################
   Part 1  Components
   ###################################################################### */

/* ================================================================= Shared */

/* A clickable card has one real link, the title, stretched over the card
   with ::after; the rest of the card is plain content. */
.gs-stretched::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.gs-stretched:focus-visible {
    outline: none;
}

.gs-clamp-2,
.gs-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gs-clamp-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.gs-clamp-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* The card surface every card component shares. */
.gs-card {
    position: relative;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    color: var(--text-body);
    transition:
        border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

/* Hover lifts the card and gives it the brand edge. */
.gs-card--link:hover,
.gs-card--link:focus-within {
    border-color: var(--border-brand);
    transform: translateY(-2px);
}

.gs-card--link:has(.gs-stretched:focus-visible) {
    box-shadow: var(--focus-ring);
}

/* The one featured card of a group keeps the edge at rest. */
.gs-card--featured {
    border-color: var(--border-brand);
    box-shadow: var(--shadow-raised);
}

.gs-card--featured:hover,
.gs-card--featured:focus-within {
    box-shadow: var(--shadow-hover);
}

/* ================================================================ Buttons */

/* A button is MDB's own classes, with no template and no class of ours:

       <a class="btn btn-primary" href="…">Read the report</a>
       <a class="btn btn-outline-primary btn-sm" href="…">Read<i class="fas fa-arrow-right ms-2" aria-hidden="true"></i></a>

   Their look is set in cjkcms-custom-theme.css (part 3). Here is only what
   the theme does not cover. */

/* Inside a clickable card or link the button is a span (the card is the
   link): it fills when the card is hovered, so the whole card reads as one
   target. .pub-brief is listed until that block is built from the
   publication card component. */
:is(a, .gs-card--link, .pub-brief):is(:hover, :focus-within) span.btn-outline-primary {
    --mdb-btn-bg: var(--action-primary);
    --mdb-btn-color: var(--action-on-primary);
    background: var(--action-primary);
    color: var(--action-on-primary);
}

:is(a, .gs-card--link, .pub-brief):is(:hover, :focus-within) span.btn-primary {
    background: var(--action-primary-hover);
    border-color: var(--action-primary-hover);
}

.btn .fa-arrow-right {
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .fa-arrow-right,
:is(a, .gs-card--link, .pub-brief):hover span.btn .fa-arrow-right {
    transform: translateX(2px);
}

/* A text link that leaves the section: "View all 34 →". */
.gs-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-link);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    white-space: nowrap;
}

.gs-link-arrow:hover,
.gs-link-arrow:focus-visible {
    color: var(--text-link-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.gs-link-arrow i {
    font-size: 0.85em;
    transition: transform var(--duration-fast) var(--ease-out);
}

.gs-link-arrow:hover i {
    transform: translateX(2px);
}

/* ============================================================ Icon button */

/* Controls, not actions: rail arrows, the arrow at the end of a row. */
.gs-icon-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    color: var(--text-heading);
    font-size: 0.8125rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.gs-icon-btn--sm {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.6875rem;
}

/* Brand-coloured arrow, for the end of a list row or card. */
.gs-icon-btn--brand {
    color: var(--text-brand);
}

a.gs-icon-btn:hover,
button.gs-icon-btn:hover:not(:disabled),
.gs-icon-btn:focus-visible {
    border-color: var(--border-brand);
    color: var(--text-brand);
}

/* Inside a row or card that is the link: fills on hover of the parent. */
:is(.gs-card--link, .gs-row, .gs-ranked__item, .gs-country):is(:hover, :focus-within) .gs-icon-btn {
    border-color: var(--action-primary);
    background: var(--action-primary);
    color: var(--action-on-primary);
}

.gs-icon-btn:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.gs-icon-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* =================================================================== Tags */

.gs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A rectangle with a soft fill: topic, place, product. Not a link. */
.gs-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.1875rem 0.5rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xs);
    background: var(--surface-soft);
    color: var(--text-body);
    font-size: var(--fs-label);
    font-weight: var(--fw-semibold);
    line-height: 1.4;
    white-space: nowrap;
}

/* The resource type: told apart by its ink, not a second fill. */
.gs-tag--type {
    border-color: rgba(197, 48, 48, 0.35);
    background: var(--surface-card);
    color: var(--text-selected);
}

/* Regulatory status: the word carries the meaning, the dot repeats it. */
.gs-tag--status {
    background: var(--surface-card);
}

.gs-tag--status::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--gs-status, var(--status-nodata));
}

.gs-tag--permitted { --gs-status: var(--status-permitted); }
.gs-tag--restricted { --gs-status: var(--status-restricted); }
.gs-tag--banned { --gs-status: var(--status-banned); }
.gs-tag--nodata::before {
    box-shadow: inset 0 0 0 1px var(--grey-500);
}

/* The newest item of a list, once per list. */
.gs-flag {
    display: inline-block;
    padding: 0.125rem 0.4375rem;
    border-radius: var(--radius-xs);
    background: var(--action-primary);
    color: var(--action-on-primary);
    font-size: 0.6875rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ============================================================== Meta line */

/* Facts about an item split by thin rules: 22 September 2026 | Explainer. */
.gs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: var(--space-1);
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-caption);
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

/* A fact never breaks inside itself; the line wraps between facts. */
.gs-meta > * {
    white-space: nowrap;
}

.gs-meta > * + * {
    margin-left: 0.625rem;
    padding-left: 0.625rem;
    border-left: 1px solid var(--border-strong);
    line-height: 1.1;
}

/* The flag sits before the date without a rule. */
.gs-meta > .gs-flag {
    margin-right: 0.375rem;
}

.gs-meta > .gs-flag + * {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.gs-meta i {
    margin-right: 0.3125rem;
    color: var(--text-muted);
    font-size: 0.9em;
}

.gs-meta a {
    color: var(--text-link);
    text-decoration: none;
}

.gs-meta a:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

/* ================================================================ Eyebrow */

/* The section label block's own classes (cjkcms-custom-theme.css):
   .section-label, --brand, --muted. Only the dark variant is added here. */
[data-bs-theme="dark"] .section-label--brand {
    color: var(--text-brand);
}

/* =================================================================== Stats */

/* Inline: icon, then the value over a short label (13 / LANGUAGES). */
.gs-stat {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
}

.gs-stat__icon {
    font-size: 1.125rem;
}

.gs-stat__body {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.gs-stat__value {
    color: var(--text-heading);
    font-size: 0.9375rem;
    font-weight: var(--fw-bold);
    font-variant-numeric: tabular-nums;
}

.gs-stat__label {
    color: var(--text-secondary);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Key figure: a number that leads, its label, its source. */
.gs-figure {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin: 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-default);
}

.gs-figure__value {
    color: var(--text-heading);
    font-size: var(--fs-stat);
    font-weight: var(--fw-bold);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.gs-figure--lg .gs-figure__value {
    font-size: var(--fs-stat-lg);
    letter-spacing: -0.02em;
    line-height: 1;
}

.gs-figure__label {
    color: var(--text-body);
    font-size: var(--fs-body);
    line-height: 1.4;
}

.gs-figure__source {
    color: var(--text-secondary);
    font-size: var(--fs-caption);
}

/* =================================================================== Cover */

/* A fixed 3:4 window, so a real cover and a generated one take the same space. */
.gs-cover {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    box-shadow: var(--shadow-cover);
}

.gs-cover > img:not(.gs-cover__mark) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No title on a generated cover: the card states it beside it. */
.gs-cover--generated {
    display: flex;
    flex-direction: column;
    padding: 0.625rem;
    background: #fff;
    /* Trial: a placeholder carries no shadow or ring, only real covers do. */
    box-shadow: none;
}

.gs-cover__mark {
    position: relative;
    z-index: 1;
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.4375rem;
    object-fit: contain;
}

.gs-cover__date {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    color: var(--grey-600);
    font-size: 0.625rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.gs-cover__waves {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62%;
}

.gs-cover__waves path {
    fill: var(--gs-cover-tint, var(--cover-tint-1));
}

.gs-cover__waves path:nth-child(1) { opacity: 0.16; }
.gs-cover__waves path:nth-child(2) { opacity: 0.3; }
.gs-cover__waves path:nth-child(3) { opacity: 0.55; }

.gs-cover--tint-2 { --gs-cover-tint: var(--cover-tint-2); }
.gs-cover--tint-3 { --gs-cover-tint: var(--cover-tint-3); }

/* ========================================================= Section heading */

.gs-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4) var(--space-8);
    margin-bottom: var(--space-8);
}

.gs-section-head__text {
    flex: 1 1 32rem;
    min-width: 0;
}

.gs-section-head__title {
    margin: 0;
    color: var(--text-heading);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
    line-height: var(--lh-tight);
    text-wrap: balance;
}

.gs-section-head__standfirst {
    max-width: var(--container-reading);
    margin: var(--space-2) 0 0;
    color: var(--text-secondary);
    font-size: var(--fs-body);
    line-height: 1.5;
}

/* ============================================================= Page title */

.gs-page-title {
    margin-bottom: var(--space-8);
}

.gs-page-title__title {
    margin: 0;
    color: var(--text-heading);
    font-size: var(--fs-display);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-wrap: balance;
}

/* The short red rule marks page titles only, never section headings. */
.gs-page-title__title::after {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    margin-top: var(--space-4);
    border-radius: 2px;
    background: var(--border-brand);
}

.gs-page-title--plain .gs-page-title__title::after {
    display: none;
}

.gs-page-title__standfirst {
    max-width: var(--container-reading);
    margin: var(--space-4) 0 0;
    color: var(--text-secondary);
    font-size: var(--fs-lead);
    line-height: 1.55;
}

/* ============================================================== Link card */

/* Feature: text left, illustration right (the homepage Explore cards). */
.gs-link-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gs-link-card:hover,
.gs-link-card:focus-within {
    transform: none;
    border-color: var(--border-strong);
    box-shadow: var(--shadow-hover);
}

.gs-link-card__body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-self: stretch;
    gap: var(--space-2);
    min-width: 0;
}

.gs-link-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
}

.gs-link-card__title a {
    color: var(--text-heading);
    text-decoration: none;
}

.gs-link-card:hover .gs-link-card__title a {
    color: var(--text-link-hover);
}

.gs-link-card__desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.gs-link-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: auto;
    padding-top: var(--space-4);
    color: var(--text-brand);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-bold);
    white-space: nowrap;
}

.gs-link-card__arrow {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--surface-selected);
    color: var(--text-brand);
    transition:
        background-color var(--duration-base) var(--ease-out),
        color var(--duration-base) var(--ease-out);
}

.gs-link-card__arrow i {
    transition: transform var(--duration-base) var(--ease-out);
}

.gs-link-card:hover .gs-link-card__arrow {
    background: var(--action-primary);
    color: var(--action-on-primary);
}

.gs-link-card:hover .gs-link-card__arrow i {
    transform: translateX(2px);
}

.gs-link-card__media {
    display: flex;
    flex: 0 0 55%;
    align-self: stretch;
    min-height: 12.5rem;
    margin: -0.75rem -1.5rem -0.75rem 0;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--text-brand) 5%, transparent), transparent);
}

.gs-link-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform calc(var(--duration-base) * 2) var(--ease-out);
}

.gs-link-card:hover .gs-link-card__media img {
    transform: scale(1.05);
}

/* Compact: small illustration left, arrow right (the Resource library's type
   tiles: Briefing papers, Infographics, Reports). */
.gs-link-card--compact {
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
}

.gs-link-card--compact .gs-link-card__media {
    flex: 0 0 4.5rem;
    align-self: center;
    min-height: 0;
    height: 4.5rem;
    margin: 0;
    background: none;
}

.gs-link-card--compact .gs-link-card__body {
    align-self: center;
    gap: var(--space-1);
}

.gs-link-card--compact .gs-link-card__title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
}

.gs-link-card--compact .gs-link-card__desc {
    font-size: var(--fs-caption);
}

/* A grid of feature link cards. It is a container, so the cards follow the
   width of the grid and not of the window:
   - three across from 1068px (3 x 340px + gaps), text beside illustration;
   - between 704px and 1068px still three across, each card stacked (title,
     illustration, description, link) so the illustrations line up;
   - narrower: one card per row, text beside illustration again. */
.gs-link-grid-wrap {
    container: gs-link-grid / inline-size;
}

.gs-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gs-link-grid > * {
    display: grid;
}

@container gs-link-grid (704px <= width < 1068px) {
    .gs-link-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
        gap: var(--space-4);
    }

    .gs-link-grid .gs-link-card {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
        padding: var(--space-5);
    }

    /* Lets the title and link take part in the card's own ordering. */
    .gs-link-grid .gs-link-card__body {
        display: contents;
    }

    .gs-link-grid .gs-link-card__title {
        order: 1;
        font-size: var(--fs-lead);
    }

    .gs-link-grid .gs-link-card__media {
        order: 2;
        flex: none;
        height: 10.625rem;
        min-height: 0;
        margin: 0;
    }

    .gs-link-grid .gs-link-card__desc {
        order: 3;
        font-size: var(--fs-body-sm);
    }

    .gs-link-grid .gs-link-card__cta {
        order: 4;
        padding-top: var(--space-1);
    }
}

@container gs-link-grid (width < 704px) {
    .gs-link-grid .gs-link-card__media {
        flex-basis: 50%;
        min-height: 11.25rem;
        margin: -0.5rem -0.5rem -0.5rem 0;
    }
}

/* ======================================================= Publication card */

/* Cover left, then meta, title and the foot with the action. */
.gs-pub-card {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.125rem;
    height: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-lg);
}

.gs-pub-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.gs-pub-card__title {
    margin: 0;
    color: var(--text-heading);
    font-size: var(--fs-card-title);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
}

.gs-pub-card__title a {
    color: inherit;
    text-decoration: none;
}

.gs-pub-card:hover .gs-pub-card__title a {
    color: var(--text-link-hover);
}

.gs-pub-card__summary {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-body-sm);
    line-height: 1.55;
}

/* Pushed to the foot so buttons line up across a row. */
.gs-pub-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
    margin-top: auto;
    padding-top: var(--space-1);
}

@media (max-width: 575.98px) {
    .gs-pub-card {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        gap: var(--space-4);
    }
}

/* ======================================================= Publication tile */

/* A short, wide tile for an archive rail: thumbnail, year, title, Read. */
.gs-pub-tile {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    height: 100%;
    padding: var(--space-4);
    color: inherit;
    text-decoration: none;
}

.gs-pub-tile:hover {
    color: inherit;
}

.gs-pub-tile__body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.gs-pub-tile__year {
    margin-bottom: var(--space-1);
    color: var(--text-brand);
    font-size: var(--fs-caption);
    font-weight: var(--fw-bold);
}

.gs-pub-tile__title {
    margin-bottom: 0.875rem;
    color: var(--text-heading);
    font-size: 0.9375rem;
    font-weight: var(--fw-semibold);
    line-height: 1.35;
}

.gs-pub-tile .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ========================================================== Resource card */

/* One publication in a grid: cover on top, then type and year, title,
   summary and the button. The whole card is the link. */
.gs-resource-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* A fixed 16:9 window: covers are portrait and sit inside it whole. */
.gs-resource-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    /* Without this a tall image stretches the window past 16:9. */
    overflow: hidden;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-default);
    background: var(--surface-soft);
}

.gs-resource-card__media > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.gs-resource-card__media > .gs-cover {
    flex: none;
    height: 100%;
}

.gs-resource-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-6);
}

.gs-resource-card__title {
    margin: 0;
    font-size: var(--fs-card-title);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
}

.gs-resource-card__title a {
    color: var(--text-heading);
    text-decoration: none;
}

.gs-resource-card:hover .gs-resource-card__title a {
    color: var(--text-link-hover);
}

.gs-resource-card__summary {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-body-sm);
    line-height: 1.55;
}

/* Pushed to the foot, so the buttons line up across a row of cards. */
.gs-resource-card__foot {
    margin-top: auto;
    padding-top: var(--space-2);
}

/* ============================================================ Ranked list */

.gs-ranked {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Rank, title with its meta, arrow; all on the title's first line. */
.gs-ranked__item {
    position: relative;
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) auto;
    gap: 0.875rem;
    align-items: start;
    padding: 0.875rem 0;
}

.gs-ranked__item + .gs-ranked__item {
    border-top: 1px solid var(--border-default);
}

.gs-ranked__rank {
    color: var(--text-brand);
    font-size: 1.125rem;
    font-weight: var(--fw-bold);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: right;
}

.gs-ranked__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.gs-ranked__title {
    color: var(--text-heading);
    font-size: 0.9375rem;
    font-weight: var(--fw-semibold);
    line-height: 1.35;
    text-decoration: none;
}

.gs-ranked__item:hover .gs-ranked__title {
    color: var(--text-link-hover);
    text-decoration: underline;
}

.gs-ranked__item .gs-icon-btn {
    margin-top: -0.1875rem;
}

/* =============================================================== List row */

/* One linked row: optional icon, title, meta, arrow. Rows share one card
   (.gs-row-list) and are split by rules, not boxed one by one. */
.gs-row-list {
    margin: 0;
    padding: 0 var(--space-5);
    list-style: none;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.gs-row-list--flush {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.gs-row {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4) 0;
}

.gs-row:not(:has(.gs-row__icon)) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.gs-row + .gs-row {
    border-top: 1px solid var(--border-default);
}

.gs-row__icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text-secondary);
    font-size: 1rem;
}

.gs-row__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.gs-row__body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.gs-row__title {
    color: var(--text-heading);
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    line-height: 1.4;
    text-decoration: none;
}

.gs-row:hover .gs-row__title {
    color: var(--text-link-hover);
}

/* ================================================================== News */

/* An external story: date and source, title, one-line summary, places. */
.gs-news {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5) 0;
}

.gs-news + .gs-news {
    border-top: 1px solid var(--border-default);
}

.gs-news__title {
    margin: 0;
    font-size: var(--fs-card-title);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
}

.gs-news__title a {
    color: var(--text-heading);
    text-decoration: none;
}

.gs-news__title a:hover,
.gs-news__title a:focus-visible {
    color: var(--text-link-hover);
    text-decoration: underline;
}

.gs-news__title i {
    margin-left: 0.375rem;
    color: var(--text-muted);
    font-size: 0.7em;
    vertical-align: 0.15em;
}

.gs-news__summary {
    max-width: var(--container-reading);
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-body-sm);
    line-height: 1.55;
}

/* ======================================================== Product heading */

/* A product section on a country page: icon, product name, the place. */
.gs-product-head {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.gs-product-head__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--text-heading);
}

.gs-product-head__icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.gs-product-head__title {
    margin: 0;
    color: var(--text-heading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
}

.gs-product-head__place {
    display: block;
    color: var(--text-secondary);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
}

/* ============================================================ Search field */

.gs-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.3125rem;
    border: 1px solid var(--border-control);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.gs-search:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.15);
}

.gs-search__icon {
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.gs-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.25rem;
    padding: 0 var(--space-1);
    border: 0;
    background: transparent;
    color: var(--text-body);
    font-size: var(--fs-body-sm);
    outline: none;
}

.gs-search__input::placeholder {
    color: var(--text-secondary);
}

.gs-search .btn {
    flex: none;
}

.gs-search--lg .gs-search__input {
    height: 2.75rem;
    font-size: var(--fs-body);
}

/* ================================================================== Quote */

/* Pull quote and interesting fact: the only place the serif appears. */
.gs-quote {
    margin: var(--space-6) 0;
    padding: 0 0 0 var(--space-5);
    border-left: 3px solid var(--border-brand);
}

.gs-quote__text {
    margin: 0;
    color: var(--text-heading);
    font-family: var(--font-serif);
    font-size: 1.375rem;
    line-height: 1.45;
}

.gs-quote__source {
    display: block;
    margin-top: var(--space-3);
    color: var(--text-secondary);
    font-size: var(--fs-caption);
    font-style: normal;
}

/* ======================================================== Download links */

/* One file per language: label, then the download count. */
.gs-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gs-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.3125rem 0.625rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    color: var(--text-heading);
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.gs-download i {
    color: var(--text-brand);
}

.gs-download__count {
    color: var(--text-secondary);
    font-weight: var(--fw-regular);
    font-variant-numeric: tabular-nums;
}

.gs-download:hover,
.gs-download:focus-visible {
    border-color: var(--border-brand);
    color: var(--text-link-hover);
}

/* ================================================================= Motion */

@media (prefers-reduced-motion: reduce) {
    .gs-card,
    .gs-card--link:hover,
    .gs-card--link:focus-within,
    .gs-link-card__media img,
    .gs-link-card__arrow i,
    .btn .fa-arrow-right,
    .gs-link-arrow i {
        transition: none;
        transform: none;
    }
}

/* ######################################################################
   Part 2  Blocks
   Older blocks still carry their full styles and their own variables
   (--faq-*, --if-*, --yt-*). They shrink as each block moves to components.
   ###################################################################### */

/* ====================================================================
   Block: Reports and briefings (home/blocks/report_highlight.html, briefing_highlights.html)
   ==================================================================== */

/* Homepage blocks promoting Reports and Briefing Papers.

   The blocks carry no outer padding or margin: spacing between sections is
   set where the block is placed, with the block's custom CSS class.

   Both read from the theme tokens in cjkcms-custom-theme.css rather than
   hard-coded colours, so a change to --mdb-primary or --mdb-border-color
   carries through. Layout is CSS grid instead of Bootstrap columns: these are
   fixed two-part compositions, not a general grid, and the cover rail needs to
   scroll on narrow screens. */

/* ---------------------------------------------------------------- Reports */

/* The newest report is the section. It sits on a raised card and its cover is
   roughly three times the width of an archive thumbnail, so the hierarchy is
   obvious before anything is read. */

.pub-flagship {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--mdb-border-color, #dededa);
  border-radius: var(--mdb-border-radius-lg, 1rem);
  background: #fff;
  box-shadow: 0 0.5rem 1.75rem rgba(34, 34, 34, 0.07);
}

.pub-flagship__cover {
  display: block;
  border-radius: var(--mdb-border-radius-sm, 0.5rem);
  overflow: hidden;
  box-shadow: 0 0.125rem 0.375rem rgba(34, 34, 34, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-flagship__cover:hover,
.pub-flagship__cover:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0.25rem 0.75rem rgba(34, 34, 34, 0.12);
}

.pub-flagship__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.pub-flagship__date {
  margin-bottom: 0.5rem;
  color: var(--text-secondary, #626262);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-flagship__title {
  margin-bottom: 0.875rem;
  font-size: clamp(1.375rem, 1rem + 1.1vw, 1.875rem);
  line-height: 1.22;
}

.pub-flagship__title a {
  color: inherit;
  text-decoration: none;
}

.pub-flagship__title a:hover,
.pub-flagship__title a:focus-visible {
  color: var(--mdb-primary, #c53030);
}

.pub-flagship__summary {
  margin-bottom: 1.5rem;
  color: var(--mdb-secondary-text-emphasis, #595959);
  font-size: 1rem;
  line-height: 1.6;
}

.pub-flagship__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Earlier reports: wide, short cards in a rail that scrolls. A thumbnail beside
   two lines of text costs about a third of the height the portrait covers did,
   and the row length no longer grows with the archive. */

.pub-earlier {
  margin-top: 2rem;
}

.pub-earlier__bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pub-earlier__nav {
  display: flex;
  gap: 0.5rem;
}

.pub-earlier__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--mdb-border-color-strong, #c9c9c4);
  border-radius: 50%;
  background: #fff;
  color: var(--mdb-secondary, #222);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pub-earlier__btn:hover:not(:disabled) {
  border-color: var(--mdb-primary, #c53030);
  color: var(--mdb-primary, #c53030);
}

.pub-earlier__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* A scrolling box clips whatever spills past it, shadows included, so the rail
   gets room for them and gives it back with a negative margin. */
.pub-earlier__rail {
  display: flex;
  gap: 1rem;
  margin: -0.5rem -0.5rem -1rem;
  padding: 0.5rem 0.5rem 1rem;
  scroll-padding-inline: 0.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.pub-earlier__rail::-webkit-scrollbar {
  display: none;
}

.pub-earlier__item {
  flex: 0 0 21rem;
  scroll-snap-align: start;
}

.pub-earlier__card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--mdb-border-color, #dededa);
  border-radius: var(--mdb-border-radius-md, 0.75rem);
  background: #fff;
  box-shadow: 0 0.125rem 0.5rem rgba(34, 34, 34, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pub-earlier__card:hover,
.pub-earlier__card:focus-visible {
  border-color: var(--mdb-primary, #c53030);
  box-shadow: 0 0.375rem 1rem rgba(34, 34, 34, 0.1);
}

.pub-earlier__cover {
  display: block;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.375rem rgba(34, 34, 34, 0.08);
}

.pub-earlier__cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* Column, so the call to action can be pushed to the bottom and every tile
   lines its button up with the others however long the title runs. */
.pub-earlier__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.pub-earlier__year {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--mdb-primary, #c53030);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Three lines, so one long title cannot set the height of the whole rail. */
.pub-earlier__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Looks like a button, is a span: the card itself is the only link. */
/* The "Read" button is the site's small button (.btn .btn-outline-primary
   .btn-sm); only its place in the tile is set here. */
.pub-earlier__meta > .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* -------------------------------------------------------- Briefing papers */

/* Newest on the left, the ranking on the right. Both stretch to the taller of
   the two, and the ranking distributes its five rows over whatever height the
   cards end up with, so the columns finish level. */
.pub-briefings {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pub-briefs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Every card the same: "newest" is said with a chip and an edge, not size. */
/* The whole card is one link: the title's link is stretched over it
   (.gs-stretched), so the cover and the "Read" button are clickable too. */
.pub-brief {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.125rem;
  height: 100%;
  padding: 0.875rem;
  border: 1px solid var(--mdb-border-color, #dededa);
  border-radius: var(--mdb-border-radius-lg, 1rem);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* The newest card keeps a brand edge, a light lift and a filled button: it is
   the one the section is pointing at. The edge is the ordinary 1px border in
   brand colour, not a heavier rule. */
.pub-brief--new {
  border-color: var(--mdb-primary, #c53030);
  box-shadow: 0 0.25rem 0.875rem rgba(34, 34, 34, 0.1);
}

/* Hover lifts the card instead of adding a shadow, so it stays legible as a
   separate signal from the raised state the newest card sits in. */
.pub-brief:hover,
.pub-brief:focus-within {
  transform: translateY(-3px);
  border-color: var(--mdb-primary, #c53030);
}

.pub-brief--new:hover,
.pub-brief--new:focus-within {
  box-shadow: 0 0.5rem 1.5rem rgba(34, 34, 34, 0.14);
}

.pub-brief:has(.gs-stretched:focus-visible) {
  box-shadow: var(--focus-ring);
}

/* A fixed 3:4 window, so a photographed cover and a generated one occupy the
   same space and the column keeps its rhythm while covers are added. */
.pub-brief__cover {
  display: block;
  align-self: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--mdb-border-radius-sm, 0.5rem);
  background: var(--mdb-secondary-highlight-bg, #ececea);
  overflow: hidden;
  /* The 1px ring keeps a white generated cover from dissolving into the white
     card now that the shadow is this faint. */
  box-shadow:
    0 0 0 1px rgba(34, 34, 34, 0.07),
    0 0.125rem 0.375rem rgba(34, 34, 34, 0.08);
}

.pub-brief__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The generated cover: the mark and the date on white, over a wave motif.
   No title - the card states it right beside this, and repeating it inside a
   box this small just made the row look like a wall of text. Three tints keep
   three of them in a column from reading as a repeat. */
.pub-brief__generated {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  padding: 0.625rem;
  background: #fff;
  overflow: hidden;
}

/* Scoped through the parent on purpose: `.pub-brief__cover img` sizes a real
   cover to fill the window and would otherwise win the cascade over a single
   class and blow the mark up to full card width. */
.pub-brief__generated .pub-brief__mark {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.4375rem;
  object-fit: contain;
}

.pub-brief__generated-date {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  color: var(--text-secondary, #626262);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Bottom two thirds, bled to the edges. Decorative, so it sits under the text
   and is hidden from assistive tech in the markup. */
.pub-brief__waves {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 62%;
}

.pub-brief__waves path {
  fill: var(--pub-wave, #c53030);
}

.pub-brief__waves path:nth-child(1) {
  opacity: 0.16;
}

.pub-brief__waves path:nth-child(2) {
  opacity: 0.3;
}

.pub-brief__waves path:nth-child(3) {
  opacity: 0.55;
}

.pub-brief__generated--1 {
  --pub-wave: #c53030;
}

.pub-brief__generated--2 {
  --pub-wave: #7a6a9b;
}

.pub-brief__generated--3 {
  --pub-wave: #4e8e86;
}

/* Top-aligned, with type large enough that the text reaches the foot of the
   cover on its own instead of being centred against it. */
.pub-brief__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.pub-brief__flag {
  display: inline-block;
  margin-right: 0.375rem;
  padding: 0.125rem 0.4375rem;
  border-radius: 0.375rem;
  background: var(--mdb-primary, #c53030);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.0625rem;
}

.pub-brief__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.25rem;
  margin: 0;
  color: var(--text-secondary, #626262);
  font-size: 0.875rem;
}

.pub-brief__title {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.pub-brief__title a {
  color: inherit;
  text-decoration: none;
}

.pub-brief__title a:hover,
.pub-brief__title a:focus-visible {
  color: var(--mdb-primary, #c53030);
}

/* Pushed to the foot of the card, so the buttons sit on one line across the
   row whatever length the titles run to. */
.pub-brief__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* A figure read as one unit: icon on the left, the number over its label on
   the right. */
.pub-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary, #626262);
}

.pub-stat__icon {
  font-size: 1.125rem;
  opacity: 0.8;
}

.pub-stat__body {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pub-stat__value {
  color: var(--mdb-secondary, #222);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pub-stat__label {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Most read: white like the cards, told apart by its border and its numbers
   rather than by a block of colour. */

/* No panel: the ranking sits straight on the page background, set apart from
   the cards by its numbers and rules alone. */
.pub-popular {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pub-popular__head {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* space-between rather than fixed gaps: the list fills whatever height the
   cards beside it come to, so the two columns end level. */
.pub-popular__list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rank, then the title with the year and the reads under it, then the arrow.
   Aligned to the top: the rank and the arrow sit on the title's first line, so
   a two-line title does not push them into the middle of the row. */
.pub-popular__item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  gap: 0.875rem;
  align-items: start;
}

.pub-popular__item + .pub-popular__item {
  padding-top: 0.875rem;
  border-top: 1px solid var(--mdb-border-color, #dededa);
}

.pub-popular__rank {
  color: var(--mdb-primary, #c53030);
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: right;
}

.pub-popular__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.pub-popular__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  color: var(--text-secondary, #626262);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.pub-popular__sep {
  opacity: 0.6;
}

.pub-popular__title {
  display: block;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.pub-popular__title:hover,
.pub-popular__title:focus-visible {
  color: var(--mdb-primary, #c53030);
  text-decoration: underline;
}

.pub-popular__reads {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  white-space: nowrap;
}

.pub-popular__reads i {
  font-size: 0.8125rem;
  opacity: 0.75;
}

.pub-popular__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--mdb-border-color-strong, #c9c9c4);
  /* Centred on the title's first line rather than the top of the row. */
  margin-top: -0.1875rem;
  border-radius: 50%;
  color: var(--mdb-primary, #c53030);
  font-size: 0.6875rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pub-popular__item:hover .pub-popular__go,
.pub-popular__item:focus-within .pub-popular__go {
  border-color: var(--mdb-primary, #c53030);
  background: var(--mdb-primary, #c53030);
  color: #fff;
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1199.98px) {
  /* The ranking drops under the cards before the cards themselves get cramped. */
  .pub-briefings {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 767.98px) {
  .pub-flagship {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .pub-flagship__cover {
    max-width: 14rem;
  }

  /* Narrow enough that the next tile always peeks in and the rail reads as
     scrollable, wide enough to keep the cover, title and button side by side. */
  .pub-earlier__item {
    flex-basis: 17rem;
  }

  .pub-earlier__card {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.875rem;
  }

  /* 44px, so the scroll buttons are a real touch target. */
  .pub-earlier__btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .pub-brief {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 1rem;
    padding: 0.875rem;
  }

  .pub-brief__generated {
    padding: 0.5rem;
  }

  .pub-brief__generated .pub-brief__mark {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.375rem;
  }

  .pub-brief__generated-date {
    font-size: 0.5rem;
  }

  .pub-brief__title {
    font-size: 1.0625rem;
  }

}

/* ------------------------------------------------------------- Dark theme */

[data-bs-theme="dark"] .pub-flagship,
[data-bs-theme="dark"] .pub-earlier__card,
[data-bs-theme="dark"] .pub-earlier__btn,
[data-bs-theme="dark"] .pub-brief {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

[data-bs-theme="dark"] .pub-brief__cover {
  background: rgba(255, 255, 255, 0.07);
}

[data-bs-theme="dark"] .pub-popular__item + .pub-popular__item {
  border-top-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .pub-brief--new {
  border-color: rgba(197, 48, 48, 0.75);
  box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .pub-flagship__summary,
[data-bs-theme="dark"] .pub-stat {
  color: var(--text-on-dark-secondary, #b8b6b0);
}

[data-bs-theme="dark"] .pub-stat__value {
  color: var(--text-on-dark, #f3f1ec);
}

/* ====================================================================
   Block: Video showcase (home/blocks/video_showcase.html)
   ==================================================================== */

/* YouTube videos block, following the GSTHR design system (tokens/*.css).
   Each value falls back to the design-system default until the tokens are loaded globally.
   The block only holds the videos; the section heading is composed from separate blocks. */
.yt-vids {
    --yt-heading: var(--text-heading, #222);
    --yt-body: var(--text-body, #222);
    --yt-secondary: var(--text-secondary, #626262);
    --yt-link-hover: var(--text-link-hover, #a92727);
    --yt-brand: var(--text-brand, #c53030);
    --yt-action: var(--action-primary, #c53030);
    --yt-card: var(--surface-card, #fff);
    --yt-border: var(--border-default, #dededa);
    --yt-border-strong: var(--border-strong, #c9c9c4);
    --yt-shadow: var(--shadow-card, 0 1px 2px rgba(34, 34, 34, 0.04));
    --yt-focus: var(--focus-ring, 0 0 0 2px #f7f7f5, 0 0 0 4px #c53030);
    --yt-ease: var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
    --yt-duration: var(--duration-base, 200ms);
    container: yt-vids / inline-size;
    color: var(--yt-body);
}

/* Dark band variant (Advanced settings → theme). */
.yt-vids[data-bs-theme="dark"],
[data-bs-theme="dark"] .yt-vids {
    --yt-heading: var(--text-on-dark, #f5f4f1);
    --yt-body: var(--text-on-dark, #f5f4f1);
    --yt-secondary: var(--text-on-dark-secondary, #b8b6b0);
    --yt-link-hover: #fff;
    --yt-card: var(--surface-dark-raised, #2b2b2b);
    --yt-border: var(--border-on-dark, rgba(255, 255, 255, 0.16));
    --yt-border-strong: rgba(255, 255, 255, 0.32);
}

.yt-vids__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

/* Featured video: a card with the player on top and its caption below. */
.yt-vids__feature {
    margin: 0;
    overflow: hidden;
    background: var(--yt-card);
    border: 1px solid var(--yt-border);
    border-radius: 12px;
    box-shadow: var(--yt-shadow);
}

.yt-vids__player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #222;
}

.yt-vids__player iframe,
.yt-vids__facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-vids__facade {
    display: block;
}

.yt-vids__facade:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--yt-action);
}

.yt-vids__thumb,
.yt-vids__row-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play control: neutral until hovered, then the primary action colour. */
.yt-vids__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    background: rgba(34, 34, 34, 0.78);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background-color var(--yt-duration) var(--yt-ease);
}

.yt-vids__play::before {
    position: absolute;
    top: 50%;
    left: 54%;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 17px solid #fff;
    content: "";
    transform: translate(-50%, -50%);
}

.yt-vids__facade:hover .yt-vids__play,
.yt-vids__facade:focus-visible .yt-vids__play,
.yt-vids__row:hover .yt-vids__play,
.yt-vids__row:focus-visible .yt-vids__play {
    background: var(--yt-action);
}

.yt-vids__play--sm {
    width: 30px;
    height: 30px;
}

.yt-vids__play--sm::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
}

.yt-vids__caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px 18px;
}

.yt-vids__meta {
    color: var(--yt-secondary);
    font-size: 12.5px;
}

.yt-vids__title {
    color: var(--yt-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.yt-vids__desc {
    color: var(--yt-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Playlist: rows separated by 1px dividers rather than more cards. */
.yt-vids__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yt-vids__list li + li {
    border-top: 1px solid var(--yt-border);
}

.yt-vids__row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 2px;
    color: var(--yt-body);
    text-decoration: none;
}

.yt-vids__row:hover {
    color: var(--yt-body);
    text-decoration: none;
}

.yt-vids__row:focus-visible {
    outline: none;
    border-radius: 8px;
    box-shadow: var(--yt-focus);
}

.yt-vids__row-thumb {
    position: relative;
    flex: 0 0 128px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #222;
    border: 1px solid var(--yt-border);
    border-radius: 8px;
}

.yt-vids__row-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.yt-vids__row-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--yt-heading);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yt-vids__row-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--yt-secondary);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yt-vids__row-meta {
    color: var(--yt-secondary);
    font-size: 12.5px;
}

/* The playing video swaps its channel line for a "Now playing" label. */
.yt-vids__row-now,
.yt-vids__row[aria-current="true"] .yt-vids__row-source {
    display: none;
}

.yt-vids__row[aria-current="true"] .yt-vids__row-now {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--yt-brand);
    font-weight: 600;
}

.yt-vids__row-now::before {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    content: "";
}

.yt-vids__row:hover .yt-vids__row-title {
    color: var(--yt-link-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.yt-vids__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding-top: 12px;
    color: var(--yt-brand);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.yt-vids__more:hover {
    color: var(--yt-link-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.yt-vids__more i {
    transition: transform var(--yt-duration) var(--yt-ease);
}

.yt-vids__more:hover i {
    transform: translateX(3px);
}

.yt-vids__more:focus-visible {
    outline: none;
    border-radius: 4px;
    box-shadow: var(--yt-focus);
}

.yt-vids__playlist {
    display: flex;
    flex-direction: column;
}

/* Wide blocks with a single video: the caption moves beside the player, so the
   video does not take the full width. */
@container yt-vids (min-width: 820px) {
    .yt-vids:not(.yt-vids--playlist) .yt-vids__feature {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 40px;
        align-items: center;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .yt-vids:not(.yt-vids--playlist) .yt-vids__player {
        overflow: hidden;
        border: 1px solid var(--yt-border);
        border-radius: 12px;
        box-shadow: var(--yt-shadow);
    }

    .yt-vids:not(.yt-vids--playlist) .yt-vids__caption {
        gap: 10px;
        padding: 0;
    }

    .yt-vids:not(.yt-vids--playlist) .yt-vids__meta {
        font-size: 13px;
    }

    .yt-vids:not(.yt-vids--playlist) .yt-vids__title {
        font-size: 22px;
    }

    .yt-vids:not(.yt-vids--playlist) .yt-vids__desc {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Wide blocks: the playlist sits beside the player and scrolls within its height. */
@container yt-vids (min-width: 820px) {
    .yt-vids--playlist .yt-vids__layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 32px;
    }

    /* Size containment stops the playlist from adding height, so the column matches
       the player; the list then takes the height it needs, keeps the link right below
       it, and scrolls when it would overflow. */
    .yt-vids--playlist .yt-vids__playlist {
        contain: size;
    }

    .yt-vids--playlist .yt-vids__list {
        flex: 0 1 auto;
        min-height: 0;
        overflow-y: auto;
    }

    .yt-vids__list li:first-child .yt-vids__row {
        padding-top: 0;
    }

    /* Two or three videos leave the column mostly empty, so their rows grow. */
    .yt-vids--few .yt-vids__row {
        gap: 18px;
        padding: 20px 2px;
    }

    .yt-vids--few .yt-vids__row-thumb {
        flex-basis: clamp(128px, 45%, 210px);
    }

    .yt-vids--few .yt-vids__row-body {
        gap: 6px;
    }

    .yt-vids--few .yt-vids__row-title {
        font-size: 16.5px;
        -webkit-line-clamp: 3;
    }

    .yt-vids--few .yt-vids__row-desc {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    .yt-vids--few .yt-vids__more {
        padding-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yt-vids__play,
    .yt-vids__more i {
        transition: none;
    }

    .yt-vids__more:hover i {
        transform: none;
    }
}

/* ====================================================================
   Block: Interesting facts (home/blocks/interesting_facts_*.html)
   ==================================================================== */

.if-facts {
    --if-primary: var(--mdb-primary, #c53030);
    --if-primary-dark: #8a2121;
    --if-primary-light: #f9eaea;
    --if-ink: #222;
    --if-text: #4f4f4f;
    --if-muted: #8a8a8a;
    --if-border: #dedede;
    --if-hairline: #ececec;
    --if-surface: #fff;
    --if-root: #fff;

    container-type: inline-size;
    color: var(--if-text);
    position: relative;
    margin: 0;
}

[data-bs-theme="dark"] .if-facts,
.if-facts[data-bs-theme="dark"] {
    --if-primary: #e46a6a;
    --if-primary-dark: #f0a0a0;
    --if-primary-light: rgba(228, 106, 106, 0.14);
    --if-ink: #f3f3f3;
    --if-text: #cbcbcb;
    --if-muted: #9a9a9a;
    --if-border: rgba(255, 255, 255, 0.14);
    --if-hairline: rgba(255, 255, 255, 0.1);
    --if-surface: #262626;
    --if-root: #1a1a1a;
}

.if-facts--themed {
    padding: clamp(1.1rem, 3vw, 1.85rem);
    color: var(--if-text);
    background: var(--if-root);
    border: 1px solid var(--if-border);
    border-radius: 1rem;
}

.if-facts--themed.if-facts--no-bg {
    background: transparent;
    border-color: transparent;
    padding: 0;
}

.if-facts__head {
    margin-bottom: 1.25rem;
}

.if-facts__title {
    margin: 0;
    color: var(--if-ink);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
}

.if-facts__subtitle {
    margin: 0.35rem 0 0;
    color: var(--if-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.if-facts__fact {
    color: var(--if-ink);
    font-size: 1.02rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.if-facts__fact > :last-child {
    margin-bottom: 0;
}

.if-facts__fact a {
    color: var(--if-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 0.07em;
    text-underline-offset: 0.16em;
}

.if-facts__quote-mark {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--if-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 0.6;
}

.if-facts__more {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.85rem;
    color: var(--if-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.if-facts__more:hover {
    color: var(--if-primary-dark);
    text-decoration: none;
}

.if-facts__arrow {
    transition: transform 160ms ease;
}

.if-facts__more:hover .if-facts__arrow,
.if-facts__more:focus-visible .if-facts__arrow {
    transform: translateX(0.2rem);
}

.if-facts a:focus-visible {
    outline: 2px solid var(--if-primary);
    outline-offset: 3px;
    border-radius: 0.35rem;
}

.if-facts__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.if-facts__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.62rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--mdb-border-radius, 0.75rem);
}

.if-facts__tag--nds {
    color: var(--if-primary-dark);
    background: var(--if-primary-light);
}

.if-facts__tag--country {
    color: var(--if-text);
    background: transparent;
    border-color: var(--if-border);
}

.if-facts__tag--continent {
    color: var(--if-text);
    background: transparent;
    border-color: var(--if-border);
}

.if-facts__tag-wrap {
    display: inline-flex;
}

a.if-facts__tag {
    text-decoration: none;
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

a.if-facts__tag--country:hover {
    color: var(--if-primary-dark);
    border-color: var(--if-primary);
}

.if-facts--tagquote .if-facts__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1.15rem;
}

.if-facts__card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 1.4rem 1.5rem 1.5rem;
    background: var(--if-surface);
    border: 1px solid var(--if-border);
    border-top: 0.25rem solid var(--if-primary);
    border-radius: 0.75rem;
    box-shadow: var(--mdb-shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.08));
}

.if-facts__card blockquote.if-facts__fact {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
}

.if-facts--side .if-facts__sides {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.if-facts__side-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
    margin: 0;
    padding: 1.35rem 1.5rem;
    background: var(--if-surface);
    border: 1px solid var(--if-border);
    border-left: 0.28rem solid var(--if-primary);
    border-radius: 0.75rem;
    box-shadow: var(--mdb-shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.08));
}

.if-facts__side-mark {
    color: var(--if-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.8;
}

.if-facts__side-body {
    min-width: 0;
}

.if-facts__side-card blockquote.if-facts__fact {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.55;
}

.if-facts--compact .if-facts__items {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    position: relative;
}

.if-facts--compact .js-if-item {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
}

.if-facts--compact .js-if-item.is-active {
    visibility: visible;
    opacity: 1;
    animation: if-fact-in 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.if-facts--compact.if-dir-next .js-if-item.is-active {
    animation-name: if-fact-in-right;
}

.if-facts--compact.if-dir-prev .js-if-item.is-active {
    animation-name: if-fact-in-left;
}

@keyframes if-fact-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@keyframes if-fact-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: none; }
}

@keyframes if-fact-in-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: none; }
}

.if-facts--compact .if-facts__side-card {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.5rem;
    border: 1px solid var(--if-border);
    border-top: 0.25rem solid var(--if-primary);
}

.if-facts--compact .if-facts__side-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.if-facts--compact .if-facts__more {
    margin-top: auto;
    padding-top: 0.85rem;
}

.if-facts--compact .if-facts__side-mark {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 2.5rem;
    line-height: 0.6;
}

.if-facts__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.15rem;
}

.if-facts__topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.if-facts__topbar .if-facts__ring {
    position: static;
}

.if-facts__topbar .if-facts__controls {
    margin: 0 0 0 auto;
}

.if-facts__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: var(--if-primary);
    background: var(--if-surface);
    border: 1px solid var(--if-border);
    border-radius: var(--mdb-border-radius, 0.75rem);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.12s ease;
}

.if-facts__nav:hover {
    background: var(--if-primary-light);
    border-color: var(--if-primary);
}

.if-facts__nav:active {
    transform: scale(0.93);
}

.if-facts__dots {
    display: inline-flex;
    align-items: center;
}

/* The dot is 8px; the padding around it makes the button a 24px target, and
   background-clip keeps the colour on the dot alone. */
.if-facts__dot {
    box-sizing: content-box;
    width: 0.5rem;
    height: 0.5rem;
    padding: 0.5rem;
    background: var(--if-border);
    background-clip: content-box;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease, width 0.15s ease, height 0.15s ease, padding 0.15s ease;
}

/* The active dot grows inside its 24px button, so it never covers its neighbours. */
.if-facts__dot.is-active {
    width: 0.675rem;
    height: 0.675rem;
    padding: 0.4125rem;
    background: var(--if-primary);
    background-clip: content-box;
}

.if-facts__ring {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-flex;
    width: 1.7rem;
    height: 1.7rem;
}

.if-facts--themed .if-facts__ring {
    top: clamp(1.1rem, 3vw, 1.85rem);
    right: clamp(1.1rem, 3vw, 1.85rem);
}

.if-facts--themed.if-facts--no-bg .if-facts__ring {
    top: 0;
    right: 0;
}

.if-facts__ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.if-facts__ring circle {
    fill: none;
    stroke-width: 3;
}

.if-facts__ring-track {
    stroke: var(--if-border);
}

.if-facts__ring-progress {
    stroke: var(--if-primary);
    stroke-linecap: round;
    stroke-dasharray: 100.53;
    stroke-dashoffset: 100.53;
}

@container (max-width: 26rem) {
    .if-facts__side-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .if-facts *,
    .if-facts *::before,
    .if-facts *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ====================================================================
   Block: FAQ highlights (home/blocks/faq_highlights_*.html)
   ==================================================================== */

.faq-hl {
    --hl-primary: var(--mdb-primary, #c53030);
    --hl-primary-dark: var(--mdb-primary-dark, #8a2121);
    --hl-primary-light: var(--mdb-primary-light, #f9eaea);
    --hl-ink: #222;
    --hl-text: #4f4f4f;
    --hl-muted: var(--text-secondary, #626262);
    --hl-border: #dedede;
    --hl-hairline: #ececec;
    --hl-surface: #fff;
    --hl-row-hover: var(--hl-primary-light);
    --hl-icon-color: #6c6c6c;
    --hl-icon-bg: #fff;
    --hl-icon-border: rgba(0, 0, 0, 0.08);
    color: var(--hl-text);
}

.faq-hl a {
    text-decoration: none;
}

.faq-hl[data-bs-theme="dark"],
[data-bs-theme="dark"] .faq-hl {
    --hl-primary: #e46a6a;
    --hl-primary-dark: #f0a0a0;
    --hl-primary-light: rgba(228, 106, 106, 0.14);
    --hl-ink: #f3f3f3;
    --hl-text: #cbcbcb;
    --hl-muted: #9a9a9a;
    --hl-border: rgba(255, 255, 255, 0.14);
    --hl-hairline: rgba(255, 255, 255, 0.1);
    --hl-surface: rgba(var(--mdb-dark-rgb, 34, 34, 34), var(--mdb-bg-opacity, 1));
    --hl-row-hover: rgba(228, 106, 106, 0.12);
    --hl-icon-color: #cfcfcf;
    --hl-icon-bg: rgba(255, 255, 255, 0.06);
    --hl-icon-border: rgba(255, 255, 255, 0.14);
}

.faq-hl__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--hl-primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.faq-hl__title {
    margin: 0;
    color: var(--hl-ink);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
}

.faq-hl__q {
    color: var(--hl-ink);
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.faq-hl__arrow {
    flex: 0 0 auto;
    color: var(--hl-primary);
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.faq-hl__icon-wrap {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--hl-icon-color);
    background: var(--hl-icon-bg);
    border: 1px solid var(--hl-icon-border);
    border-radius: 50%;
    transition:
        color 160ms ease,
        border-color 160ms ease;
}

.faq-hl__icon {
    width: 1.6rem;
    height: 1.6rem;
}

.faq-hl__cat {
    align-self: flex-start;
    color: var(--hl-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 160ms ease;
}

.faq-hl__cat:hover {
    color: var(--hl-primary);
    text-decoration: underline;
    text-decoration-thickness: 0.07em;
    text-underline-offset: 0.16em;
}

.faq-hl__q-link {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    color: inherit;
}

.faq-hl__q-link:hover {
    text-decoration: none;
}

.faq-hl__q-link:hover .faq-hl__q {
    color: var(--hl-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 0.07em;
    text-underline-offset: 0.18em;
}

.faq-hl__q-link:hover .faq-hl__arrow {
    transform: translateX(0.2rem);
}

.faq-hl__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.faq-hl__btn,
.faq-hl__cta {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.faq-hl__btn .faq-hl__arrow,
.faq-hl__cta .faq-hl__arrow {
    color: inherit;
}

.faq-hl__btn:hover .faq-hl__arrow,
.faq-hl__btn:focus-visible .faq-hl__arrow,
.faq-hl__cta:hover .faq-hl__arrow,
.faq-hl__cta:focus-visible .faq-hl__arrow {
    transform: translateX(0.2rem);
}

.faq-hl--list .faq-hl__card {
    overflow: hidden;
    background: var(--hl-surface);
    border: 1px solid var(--hl-border);
    border-top: 0.25rem solid var(--hl-primary);
    border-radius: 0.75rem;
    box-shadow: var(--mdb-shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.08));
}

.faq-hl--list .faq-hl__head {
    padding: 1.35rem 1.5rem 1.1rem;
    border-bottom: 1px solid var(--hl-hairline);
}

.faq-hl--list .faq-hl__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-hl--list .faq-hl__row {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1.5rem;
    transition: background-color 160ms ease;
}

.faq-hl--list .faq-hl__row + .faq-hl__row {
    border-top: 1px solid var(--hl-hairline);
}

.faq-hl--list .faq-hl__row:hover {
    background: var(--hl-row-hover);
}

.faq-hl--list .faq-hl__row:hover .faq-hl__icon-wrap {
    color: var(--hl-primary);
    border-color: var(--hl-primary);
}

.faq-hl__row-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.faq-hl--split .faq-hl__split {
    display: grid;
    grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.faq-hl__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    color: #fff;
    background:
        radial-gradient(circle at 85% 8%, rgba(197, 48, 48, 0.5), transparent 15rem),
        #222;
    border: 1px solid transparent;
    border-radius: 1rem;
    box-shadow: var(--mdb-shadow-md, 0 4px 8px rgba(0, 0, 0, 0.12));
}

[data-bs-theme="dark"] .faq-hl__panel {
    border-color: #3a3a3a;
}

.faq-hl__eyebrow--light {
    color: #f1b3b3;
}

.faq-hl__title--light {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.faq-hl__lead {
    margin: 0.7rem 0 0;
    color: #e2e2e2;
    font-size: 0.98rem;
    line-height: 1.55;
}

.faq-hl__cta {
    align-self: flex-start;
    margin-top: 1.4rem;
}

.faq-hl__feed {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.25rem 1.35rem;
    list-style: none;
    background: var(--hl-surface);
    border: 1px solid var(--hl-border);
    border-top: 0.25rem solid var(--hl-primary);
    border-radius: 0.75rem;
    box-shadow: var(--mdb-shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.08));
}

.faq-hl__feed-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0.25rem;
}

.faq-hl__feed-item + .faq-hl__feed-item {
    border-top: 1px solid var(--hl-hairline);
}

.faq-hl__feed-item:hover .faq-hl__icon-wrap {
    color: var(--hl-primary);
    border-color: var(--hl-primary);
}

.faq-hl__feed-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.faq-hl__meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    align-self: flex-start;
}

.faq-hl__count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    color: var(--hl-primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    background: var(--hl-primary-light);
    border-radius: 999px;
}

@media (max-width: 48rem) {
    .faq-hl--split .faq-hl__split {
        grid-template-columns: minmax(0, 1fr);
    }
}

.faq-hl a:focus-visible {
    outline: 2px solid var(--hl-primary);
    outline-offset: 3px;
    border-radius: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
    .faq-hl *,
    .faq-hl *::before,
    .faq-hl *::after {
        transition: none !important;
    }
}

/* ====================================================================
   Block: Promotion modals (home/includes/promotion_modal.html)
   ==================================================================== */

.gsthr-promotion {
  --promotion-background: #fff;
  --promotion-foreground: #212529;
  width: min(960px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  outline: none;
  border-radius: 0.75rem;
  background: var(--promotion-background);
  color: var(--promotion-foreground);
  box-shadow: 0 1rem 4rem rgb(0 0 0 / 25%);
  overscroll-behavior: contain;
  color-scheme: light;
}

.gsthr-promotion[data-mdb-theme='dark'] {
  --promotion-background: #212529;
  --promotion-foreground: #f8f9fa;
  color-scheme: dark;
}

.gsthr-promotion::backdrop {
  background: rgb(0 0 0 / 55%);
}

.gsthr-promotion__header {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.875rem 1rem 0.5rem;
  background: var(--promotion-background);
}

.gsthr-promotion__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0.75rem 0.55rem 1.125rem;
  border: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.gsthr-promotion__close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.gsthr-promotion__close:hover .gsthr-promotion__close-icon {
  background: rgb(255 255 255 / 25%);
  transform: rotate(90deg);
}

.gsthr-promotion__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem
    rgba(var(--mdb-primary-rgb, var(--bs-primary-rgb, 200, 35, 51)), 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .gsthr-promotion__close,
  .gsthr-promotion__close-icon {
    transition: none;
  }

  .gsthr-promotion__close:hover .gsthr-promotion__close-icon {
    transform: none;
  }
}

.gsthr-promotion__body {
  padding: 0.75rem clamp(0.75rem, 3vw, 2rem) 1.5rem;
  overflow-wrap: anywhere;
}

.gsthr-promotion__body img,
.gsthr-promotion__body video,
.gsthr-promotion__body iframe {
  max-width: 100%;
}

html:has(.gsthr-promotion[open]) {
  overflow: hidden;
}
