/* Press Room — [press_room]. Design: pers-page/screens. */

.gspr {
    --gspr-red: #f04748;
    --gspr-red-dark: #d93536;
    --gspr-text: #111111;
    --gspr-muted: #6f6f6f;
    --gspr-bg: #ffffff;
    --gspr-surface: #efefef;
    --gspr-surface-strong: #e4e4e4;
    --gspr-media: #f2f2f2;
    --gspr-border: #e3e3e3;
    --gspr-pink: #fdecec;
    --gspr-pink-text: #e2434b;
    --gspr-hover: #fff4f4;
    --gspr-gap: 12px;

    color: var(--gspr-text);
    font-family: var(--td_default_google_font_2, 'Roboto', sans-serif);
    font-size: 16px;
    line-height: 1.4;
}

/* Dark mode toggle of the site (custom-dark-mode plugin). */
body.custom-dark-mode .gspr {
    --gspr-text: #f1f1f1;
    --gspr-muted: #b4b2bb;
    --gspr-bg: #242428;
    --gspr-surface: #474452;
    --gspr-surface-strong: #57536a;
    --gspr-media: #36343e;
    --gspr-border: rgba(255, 255, 255, 0.14);
    --gspr-pink: rgba(240, 71, 72, 0.18);
    --gspr-pink-text: #ff8a8b;
    --gspr-hover: rgba(240, 71, 72, 0.1);
}

.gspr *,
.gspr *::before,
.gspr *::after {
    box-sizing: border-box;
}

.gspr [hidden] {
    display: none !important;
}

.gspr-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.gspr .gspr-h2 {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: 29px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--gspr-text);
}

.gspr .gspr-small {
    margin: 0 0 8px;
    font-family: var(--td_default_google_font_1, 'Open Sans', sans-serif);
    font-size: 12px;
    color: var(--gspr-muted);
}

/* Buttons ------------------------------------------------------------- */

.gspr .gspr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 38px;
    padding: 8px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--gspr-red);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.gspr .gspr-btn:hover,
.gspr .gspr-btn:focus-visible {
    background: var(--gspr-red-dark);
    color: #fff;
}

.gspr-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.gspr .is-placeholder {
    cursor: not-allowed;
}

.gspr .gspr-btn.is-placeholder {
    opacity: 0.85;
}

.gspr a:focus-visible,
.gspr button:focus-visible,
.gspr select:focus-visible {
    outline: 2px solid var(--gspr-red);
    outline-offset: 2px;
}

/* Hero ------------------------------------------------------------------ */

.gspr-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
    padding: 44px 30px;
    background: linear-gradient(105deg, #4c0d11 0%, #7a1419 45%, #a51d27 100%);
    color: #fff;
}

/* H1: Roboto ExtraBold 66px / 120%, scaled down on small screens. */
.gspr .gspr-hero-title {
    margin: 0 0 8px;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(40px, 6.5vw, 66px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
}

.gspr .gspr-hero-intro {
    max-width: 440px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}

.gspr .gspr-stats {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gspr .gspr-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    text-align: center;
}

.gspr-stat-num {
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
}

.gspr-stat-label {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.gspr-stat--accent {
    color: #ff9b9c;
}

/* Tyre cards ------------------------------------------------------------- */

.gspr-tyres {
    margin-bottom: 36px;
}

.gspr-cards {
    display: flex;
    gap: var(--gspr-gap);
    padding: 1px 1px 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    /* The last card fades out, as in the design, until scrolled. */
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
}

.gspr-cards.is-scrolled-end {
    -webkit-mask-image: none;
    mask-image: none;
}

.gspr-cards.is-short {
    -webkit-mask-image: none;
    mask-image: none;
}

.gspr .gspr-card {
    display: flex;
    flex: 0 0 calc((100% - 3 * var(--gspr-gap)) / 3.6);
    flex-direction: column;
    min-width: 200px;
    border: 1px solid var(--gspr-border);
    background: var(--gspr-bg);
    color: var(--gspr-text);
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color 0.15s ease;
}

.gspr .gspr-card:hover {
    border-color: var(--gspr-red);
    color: var(--gspr-text);
}

.gspr .gspr-card.is-active {
    border-color: var(--gspr-red);
    box-shadow: inset 0 0 0 1px var(--gspr-red);
}

.gspr-card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--gspr-media);
}

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

.gspr-card-media .gspr-seg {
    position: absolute;
    top: 12px;
    left: 12px;
}

.gspr-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px 14px;
}

.gspr-card-name {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.gspr-card-launch {
    font-size: 16px;
    text-transform: uppercase;
    color: var(--gspr-muted);
}

.gspr-card-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--gspr-red);
}

/* Segment badges */

.gspr .gspr-seg {
    display: inline-block;
    padding: 3px 6px;
    background: #555;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.gspr .gspr-seg--hypersport { background: #f0650f; }
.gspr .gspr-seg--sport-touring,
.gspr .gspr-seg--touring { background: #1b87d0; }
.gspr .gspr-seg--race,
.gspr .gspr-seg--racing-street { background: #e1081d; }
.gspr .gspr-seg--adventure,
.gspr .gspr-seg--offroad { background: #5c7a1f; }

/* Mobile tyre dropdown (cards on desktop) */
.gspr-tyre-select {
    display: none;
}

/* Selects --------------------------------------------------------------- */

.gspr-select {
    position: relative;
}

/* Same as the FAQ category dropdown (#cfp-category-select). */
.gspr-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 20px;
    height: 20px;
    background-image: url('/wp-content/uploads/2025/06/BS_icon_chevron_right.svg');
    background-repeat: no-repeat;
    background-size: 20px 20px;
    transform: translateY(-50%) rotate(90deg);
    pointer-events: none;
}

body.custom-dark-mode .gspr-select::after {
    filter: invert(1);
}

.gspr .gspr-select select {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 10px 44px 10px 12px;
    border: none;
    border-radius: 5px;
    background: var(--super-lg-grey, #eeeeee);
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: var(--para, 1rem);
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

body.custom-dark-mode .gspr .gspr-select select {
    background: var(--gspr-surface);
    color: var(--gspr-text);
}

/* View buttons -------------------------------------------------------------- */

.gspr-views {
    margin-bottom: 40px;
}

.gspr-view-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Same as the FAQ category filter buttons (.cfp-filter-btn). */
.gspr .gspr-view {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    background: var(--super-lg-grey, #eeeeee);
    color: var(--gspr-text);
    font-family: 'Roboto', sans-serif;
    font-size: var(--para, 1rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

body.custom-dark-mode .gspr .gspr-view {
    background: var(--gspr-surface);
}

.gspr .gspr-view:hover,
.gspr .gspr-view.is-active,
body.custom-dark-mode .gspr .gspr-view:hover,
body.custom-dark-mode .gspr .gspr-view.is-active {
    background: #f04748;
    color: #fff;
}

/* Press reviews ------------------------------------------------------------- */

.gspr-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.gspr .gspr-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gspr .gspr-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(140px, 180px) 1fr 90px 130px;
    grid-template-areas:
        "lang source title type btn"
        "lang source meta  type btn";
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    margin: 0;
    padding: 14px 14px;
    border-bottom: 1px solid var(--gspr-border);
    transition: background-color 0.15s ease;
}

.gspr .gspr-row:hover {
    background: var(--gspr-hover);
}

.gspr .gspr-row--official {
    background: var(--gspr-pink);
}

.gspr .gspr-row--official:hover {
    background: var(--gspr-pink);
}

.gspr-lang {
    grid-area: lang;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gspr-pink);
    color: var(--gspr-pink-text);
    font-size: 13px;
}

.gspr-source {
    grid-area: source;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gspr-outlet {
    font-size: 16px;
    font-weight: 500;
}

.gspr-byline {
    font-size: 11px;
    color: var(--gspr-muted);
}

.gspr .gspr-title {
    grid-area: title;
    align-self: end;
    color: var(--gspr-text);
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
}

.gspr .gspr-title:hover {
    color: var(--gspr-red);
}

.gspr-meta {
    grid-area: meta;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.gspr .gspr-chip {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 2px;
    background: var(--gspr-surface);
    color: var(--gspr-text);
    font-size: 10px;
    line-height: 1.2;
}

.gspr .gspr-translate {
    color: var(--gspr-muted);
    font-size: 10px;
    text-decoration: underline;
}

.gspr .gspr-translate:hover {
    color: var(--gspr-red);
}

.gspr-type {
    grid-area: type;
    font-size: 15px;
    text-align: center;
    text-transform: uppercase;
}

.gspr .gspr-row-btn {
    grid-area: btn;
    justify-content: space-between;
    width: 100%;
    padding-left: 38px;
}

.gspr .gspr-empty {
    margin: 16px 0;
    color: var(--gspr-muted);
}

/* Pagination: light grey squares, red "Next" (design). */
.gspr-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}

.gspr .gspr-page {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: var(--gspr-media);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--gspr-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.gspr .gspr-page:hover {
    background: var(--gspr-surface-strong);
}

/* Current page: same grey, marked by weight and an inset line. */
.gspr .gspr-page.is-active {
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--gspr-red), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gspr .gspr-page--next {
    padding: 0 26px;
    background: var(--gspr-red);
    color: #fff;
}

.gspr .gspr-page--next:hover {
    background: var(--gspr-red-dark);
}

.gspr .gspr-more {
    justify-content: space-between;
    width: 100%;
    margin-top: 22px;
    font-size: 15px;
}

.gspr .gspr-more::before {
    content: '';
    width: 18px;
}

/* Information sheet ---------------------------------------------------------- */

.gspr-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    border: 1px solid var(--gspr-border);
}

/* No tyre image yet: the text takes the full width. */
.gspr-sheet--no-media {
    grid-template-columns: 1fr;
}

.gspr-sheet-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
    background: var(--gspr-media);
}

.gspr .gspr-sheet-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.gspr-sheet-body {
    padding: 26px 26px 28px;
}

.gspr .gspr-sheet-name {
    margin: 12px 0 14px;
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--gspr-text);
}

.gspr .gspr-bullets {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.gspr .gspr-bullets li {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--gspr-border);
    font-size: 16px;
}

.gspr .gspr-bullets li:last-child {
    border-bottom: 0;
}

.gspr-sheet-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 10px;
}

.gspr .gspr-download {
    gap: 18px;
}

.gspr-in {
    margin-left: 4px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gspr-muted);
}

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

.gspr .gspr-pill {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--gspr-pink);
    color: var(--gspr-pink-text);
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
}

.gspr .gspr-pill.is-active {
    background: var(--gspr-red);
    color: #fff;
}

.gspr .gspr-zip {
    gap: 15px;
}

/* Launch video ---------------------------------------------------------------- */

.gspr .gspr-video-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #000;
    font-family: inherit;
    cursor: pointer;
}

.gspr .gspr-video-facade img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.gspr .gspr-video-facade:hover img {
    opacity: 1;
}

.gspr-video-title {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 16px 20px 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 17px;
    text-align: left;
}

.gspr-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    margin: -24px 0 0 -34px;
    border-radius: 12px;
    background: #ff0000;
}

.gspr-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -6px;
    border-width: 9px 0 9px 16px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.gspr-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.gspr-admin-note {
    padding: 12px 16px;
    border-left: 4px solid #f04748;
    background: #fff4f4;
}

/* Mobile ---------------------------------------------------------------------- */

@media (max-width: 767px) {
    .gspr-hero {
        display: block;
        margin-bottom: 30px;
        padding: 30px 24px;
    }

    /* "PRESS ROOM" on one line down to 320px wide. */
    .gspr .gspr-hero-title {
        font-size: clamp(32px, 10.5vw, 48px);
    }

    .gspr .gspr-hero-intro {
        margin-bottom: 18px;
    }

    .gspr .gspr-h2 {
        font-size: 26px;
    }

    .gspr .gspr-stats {
        justify-content: space-between;
        gap: 10px;
    }

    .gspr-stat-num {
        font-size: 36px;
    }

    .gspr-stat-label {
        font-size: 11px;
    }

    .gspr-tyres {
        margin-bottom: 20px;
    }

    .gspr-cards {
        display: none;
    }

    .gspr-tyre-select {
        display: block;
    }

    /* The tyre is picked under "Choose a tyre"; only language + type here. */
    .gspr-filter-tyre {
        display: none;
    }

    .gspr-view-buttons {
        flex-direction: column;
    }

    .gspr .gspr-view {
        justify-content: center;
    }

    .gspr-filters {
        grid-template-columns: 1fr;
    }

    .gspr .gspr-row {
        grid-template-columns: 52px 1fr auto;
        grid-template-areas:
            "lang source meta"
            "lang title  title";
        column-gap: 12px;
        padding: 16px 0 16px 6px;
    }

    .gspr-source {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 8px;
    }

    .gspr-outlet {
        font-size: 12px;
    }

    .gspr .gspr-title {
        align-self: start;
        font-size: 14px;
    }

    /* The whole row opens the review. */
    .gspr .gspr-title::after {
        content: '';
        position: absolute;
        inset: 0;
    }

    .gspr-meta {
        align-self: center;
    }

    .gspr .gspr-translate,
    .gspr-type,
    .gspr .gspr-row-btn {
        display: none;
    }

    .gspr-sheet {
        grid-template-columns: 1fr;
    }

    .gspr-sheet-media {
        min-height: 220px;
    }

    .gspr-sheet-body {
        padding: 22px 30px 26px;
    }

    .gspr .gspr-download,
    .gspr .gspr-zip {
        justify-content: center;
        width: 100%;
        font-size: 15px;
    }

    .gspr-video-title {
        font-size: 14px;
    }
}
