/*
 * "Matchday" redesign layer — Football shirt Lineup (2026-11-07)
 *
 * Only active when <body> has class "tsd" (includes/redesign.php). Turn it off
 * in wp-admin → Appearance → Site design to get the previous look back.
 *
 * Same colours as before (white, near-black, brand blue, the grey-blues),
 * same logo. What changes: typography, shapes, depth, rhythm, motion, and a
 * few signature details (ticker, squad-number section labels, pitch lines,
 * kit-tag shadows, giant footer wordmark).
 */

/* ===================================================== tokens */
body.tsd {
    --tsd-ink: var(--foreground);
    --tsd-blue: var(--primary);
    --tsd-paper: var(--background);
    --tsd-line: color-mix(in srgb, var(--foreground) 12%, transparent);
    --tsd-radius: 3px;
    /* League Spartan everywhere. League Spartan has no Cyrillic letters at
       all, so Bulgarian letters come from Jost: the same Futura-style
       geometric design, with full Cyrillic (the browser only downloads
       Jost's Cyrillic part, and only on pages that contain Cyrillic). */
    --tsd-num: "League Spartan", Jost, Manrope, sans-serif;
    --font-sans: "League Spartan", Jost, Manrope, sans-serif;
    --font-serif: "League Spartan", Jost, Manrope, sans-serif;
    --tsd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --radius: 3px;
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.tsd ::selection {
    background: var(--tsd-blue);
    color: #fff;
}

/* ===================================================== ticker (redesign.js) */
.tsd-ticker {
    position: relative;
    z-index: 51;
    overflow: hidden;
    background: var(--tsd-ink);
    color: #fff;
    font-family: var(--tsd-num);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}

.tsd-ticker-track {
    display: flex;
    width: max-content;
    animation: tsd-ticker 80s linear infinite;
}

.tsd-ticker:hover .tsd-ticker-track {
    animation-play-state: paused;
}

.tsd-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    padding: 0.62rem 1.4rem 0.62rem 0;
    white-space: nowrap;
}

.tsd-ticker-item::after {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--tsd-blue);
    transform: rotate(45deg);
}

@keyframes tsd-ticker {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .tsd-ticker-track { animation: none; }
}

/* ===================================================== header */
body.tsd section#header {
    background: color-mix(in srgb, var(--background) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--tsd-line);
}

body.tsd section#header nav a,
body.tsd section#header nav button {
    position: relative;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: transparent !important;
}

body.tsd section#header nav > div > ul > li > a::after,
body.tsd section#header nav > div > ul > li > button::after {
    content: "";
    position: absolute;
    left: 0.3rem;
    right: 0.3rem;
    bottom: 2px;
    height: 2px;
    background: var(--tsd-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--tsd-ease);
}

body.tsd section#header nav > div > ul > li > a:hover::after,
body.tsd section#header nav > div > ul > li > button:hover::after,
body.tsd section#header nav > div > ul > li > button[data-state="open"]::after {
    transform: scaleX(1);
}

/* dropdown panel */
body.tsd section#header nav ul.grid {
    border-radius: var(--tsd-radius);
    border: 1px solid var(--tsd-ink);
    box-shadow: 6px 6px 0 var(--tsd-blue);
    padding: 0.4rem;
}

body.tsd section#header nav ul.grid a {
    border-radius: 2px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

body.tsd section#header nav ul.grid a:hover {
    background: var(--tsd-ink) !important;
    color: #fff !important;
}

/* ===================================================== buttons */
body.tsd a[class*="bg-primary"],
body.tsd button[class*="bg-primary"] {
    border-radius: var(--tsd-radius) !important;
    font-family: var(--tsd-num);
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.2s var(--tsd-ease), box-shadow 0.2s var(--tsd-ease), background-color 0.2s ease !important;
}

body.tsd a[class*="bg-primary"]:not(:disabled):hover,
body.tsd button[class*="bg-primary"]:not(:disabled):hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--tsd-ink);
}

/* outlined / secondary buttons (e.g. "View all shirts") */
body.tsd a.border.border-foreground,
body.tsd a[class*="border-foreground"],
body.tsd button[class*="border-foreground"] {
    border-radius: var(--tsd-radius) !important;
    border-width: 2px !important;
    font-family: var(--tsd-num);
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s var(--tsd-ease), box-shadow 0.2s var(--tsd-ease), background-color 0.2s, color 0.2s !important;
}

body.tsd a[class*="border-foreground"]:hover,
body.tsd button[class*="border-foreground"]:hover {
    background: var(--tsd-ink) !important;
    color: #fff !important;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--tsd-blue);
}

/* ===================================================== section headings */
body.tsd main,
body.tsd {
    counter-reset: tsd-section;
}

body.tsd section h2.font-serif,
body.tsd section h1.font-serif {
    text-transform: uppercase;
    letter-spacing: -0.02em !important;
    line-height: 0.98 !important;
}

body.tsd section h2.font-serif {
    font-weight: 800 !important;
}

/* the small blue bar under headings → a longer bar with a square end */
body.tsd section .mt-3.bg-primary[class*="h-[2px]"] {
    width: 4.5rem !important;
    height: 4px !important;
    position: relative;
}

body.tsd section .mt-3.bg-primary[class*="h-[2px]"]::after {
    content: "";
    position: absolute;
    left: calc(100% + 6px);
    top: 0;
    width: 4px;
    height: 4px;
    background: var(--tsd-ink);
}

/* squad-number labels on the home sections: 01 / 02 / 03 */
body.tsd #new-arrivals,
body.tsd #collections,
body.tsd #explore-more {
    counter-increment: tsd-section;
}

body.tsd #new-arrivals h2.font-serif::before,
body.tsd #collections h2.font-serif::before,
body.tsd #explore-more h2.font-serif::before {
    content: counter(tsd-section, decimal-leading-zero);
    display: block;
    margin-bottom: 0.65rem;
    font-family: var(--tsd-num);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--tsd-blue);
}

body.tsd #new-arrivals h2.font-serif::before { content: "01 —"; }
body.tsd #collections h2.font-serif::before { content: "02 —"; }
body.tsd #explore-more h2.font-serif::before { content: "03 —"; }

/* ===================================================== hero */
body.tsd #hero > div {
    min-height: 560px;
}

@media (min-width: 1024px) {
    body.tsd #hero > div {
        height: auto !important;
        min-height: 620px;
    }
}

/* pitch markings over the hero background */
body.tsd #hero > div > div:first-child::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 118px, color-mix(in srgb, var(--tsd-blue) 22%, transparent) 119px 121px, transparent 122px),
        linear-gradient(90deg, transparent calc(50% - 1px), color-mix(in srgb, var(--tsd-blue) 22%, transparent) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

body.tsd #hero h1 {
    font-size: clamp(1.9rem, 9.4vw, 6.4rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.035em !important;
    text-transform: uppercase;
    max-width: 14ch;
}

body.tsd #hero h1 + div {
    width: 5.5rem !important;
    height: 5px !important;
    margin-top: 1.4rem !important;
}

body.tsd #hero a[class*="bg-primary"] {
    min-height: 3.25rem;
    padding: 0 2rem !important;
    font-size: 0.9rem !important;
}

/* trust strip → black band */
body.tsd #hero > div > div:last-child {
    background: var(--tsd-ink) !important;
    border-top: 0 !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.tsd #hero > div > div:last-child .grid {
    --tw-divide-opacity: 1;
    border-color: color-mix(in srgb, #fff 14%, transparent) !important;
}

body.tsd #hero > div > div:last-child .grid > * {
    border-color: color-mix(in srgb, #fff 14%, transparent) !important;
}

body.tsd #hero > div > div:last-child span {
    color: #fff !important;
    font-family: var(--tsd-num);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem !important;
}

body.tsd #hero > div > div:last-child svg {
    color: color-mix(in srgb, var(--tsd-blue) 60%, #fff) !important;
}

/* ===================================================== cards */
/* every card: sharp, crisp */
body.tsd [class*="rounded-md"][class*="border-border"][class*="bg-card"] {
    border-radius: var(--tsd-radius) !important;
    border-color: var(--tsd-line) !important;
}

/* clickable cards (products, collections, explore) lift like a kit tag */
body.tsd article.group,
body.tsd a.group[class*="bg-card"],
body.tsd a.group > [class*="bg-card"] {
    transition: transform 0.28s var(--tsd-ease), box-shadow 0.28s var(--tsd-ease), border-color 0.2s !important;
}

body.tsd article.group:hover,
body.tsd a.group[class*="bg-card"]:hover,
body.tsd a.group:hover > [class*="bg-card"] {
    transform: translate(-4px, -4px) !important;
    box-shadow: 6px 6px 0 var(--tsd-blue) !important;
    border-color: var(--tsd-ink) !important;
}

body.tsd article.group [class*="rounded-md"],
body.tsd article.group [class*="rounded-sm"],
body.tsd a.group [class*="rounded-sm"] {
    border-radius: 2px !important;
}

/* product photos */
body.tsd article.group img,
body.tsd a.group img {
    transition: transform 0.6s var(--tsd-ease) !important;
}

body.tsd article.group:hover img,
body.tsd a.group:hover img {
    transform: scale(1.06) !important;
}

/* product names + prices */
body.tsd article.group h3 {
    font-weight: 700 !important;
    letter-spacing: -0.005em;
}

body.tsd article.group [class*="tabular-nums"],
body.tsd [class*="tabular-nums"][class*="font-bold"] {
    font-family: var(--tsd-num);
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    font-size: 1.15rem !important;
}

/* collection tiles: title bar */
body.tsd #collections a.group h3 {
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

body.tsd #collections a.group svg {
    transition: transform 0.25s var(--tsd-ease);
}

body.tsd #collections a.group:hover svg {
    transform: translateX(4px);
    color: var(--tsd-blue);
}

/* explore cards: bigger, editorial titles */
body.tsd #explore-more a.group h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* carousel arrows */
body.tsd #new-arrivals button[class*="rounded"] {
    border-radius: var(--tsd-radius) !important;
    border: 2px solid var(--tsd-ink) !important;
}

body.tsd #new-arrivals button[class*="rounded"]:not(:disabled):hover {
    background: var(--tsd-ink) !important;
    color: #fff !important;
}

/* ===================================================== shop / listing pages */
body.tsd #shop-hero h1,
body.tsd section[id$="-hero"] h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.9rem) !important;
}

body.tsd aside [class*="rounded-md"][class*="border"],
body.tsd section#product-listings [class*="rounded-md"][class*="border"][class*="p-5"],
body.tsd section#product-listings [class*="rounded-md"][class*="border"][class*="p-6"] {
    border-radius: var(--tsd-radius) !important;
}

/* filter pills / category chips */
body.tsd section button[class*="rounded-full"] {
    font-family: var(--tsd-num);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    border-radius: var(--tsd-radius) !important;
}

/* ===================================================== product page */
body.tsd #product-detail h1 {
    text-transform: uppercase;
    font-size: clamp(2rem, 3.6vw, 3.1rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.025em !important;
}

body.tsd #product-detail [class*="tabular-nums"] {
    font-family: var(--tsd-num);
}

/* size buttons */
body.tsd #product-detail button[class*="min-w"],
body.tsd #product-detail [role="radiogroup"] button {
    border-radius: var(--tsd-radius) !important;
    font-family: var(--tsd-num);
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ===================================================== forms (checkout, account, request) */
body.tsd input[class*="rounded-md"],
body.tsd select[class*="rounded-md"],
body.tsd textarea[class*="rounded-md"],
body.tsd button[role="combobox"] {
    border-radius: var(--tsd-radius) !important;
}

body.tsd section h2[class*="font-serif"][class*="text-lg"] {
    text-transform: uppercase;
    letter-spacing: 0.01em !important;
}

/* our own components follow the same shapes */
body.tsd #tshirt-pay-choice .tshirt-pay-option,
body.tsd #tshirt-delivery-point,
body.tsd #tshirt-delivery-point .tdp-result,
body.tsd #tshirt-delivery-point .tdp-input,
body.tsd .tsr-step-list li,
body.tsd .tsr-form,
body.tsd .tsr-done,
body.tsd .tsr-field input,
body.tsd .tsr-field select,
body.tsd .tsr-field textarea,
body.tsd .tsr-offer {
    border-radius: var(--tsd-radius) !important;
}

body.tsd #tshirt-pay-choice .tshirt-pay-option.is-checked {
    box-shadow: 4px 4px 0 var(--tsd-blue);
    border-color: var(--tsd-ink);
}

body.tsd .tsr-title {
    text-transform: uppercase;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

body.tsd .tsr-step-no {
    border-radius: 2px;
    font-family: var(--tsd-num);
    font-size: 1rem;
}

body.tsd .tsr-step-list li {
    transition: transform 0.25s var(--tsd-ease), box-shadow 0.25s var(--tsd-ease);
}

body.tsd .tsr-step-list li:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--tsd-blue);
}

body.tsd .tsr-submit {
    border-radius: var(--tsd-radius);
    font-family: var(--tsd-num);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.2s var(--tsd-ease), box-shadow 0.2s var(--tsd-ease);
}

body.tsd .tsr-submit:not(:disabled):hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--tsd-ink);
}

/* search pill keeps its pill shape (it is part of the header identity) */

/* ===================================================== footer */
body.tsd section#footer {
    position: relative;
    border-top: 0 !important;
}

body.tsd section#footer::before {
    content: "";
    display: block;
    height: 6px;
    background: var(--tsd-blue);
}

body.tsd section#footer h3,
body.tsd section#footer h4 {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* the giant outlined wordmark at the very bottom (redesign.js adds it) */
.tsd-wordmark {
    overflow: hidden;
    padding: 0.5rem 1rem 1.25rem;
    background: var(--background);
    text-align: center;
    user-select: none;
    pointer-events: none;
}

.tsd-wordmark span {
    display: block;
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: min(calc((100vw - 2.5rem) / 13.8), 10rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, #fff 34%, transparent);
}

/* ===================================================== motion */
body.tsd .tsd-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--tsd-ease), transform 0.7s var(--tsd-ease);
}

body.tsd .tsd-reveal.tsd-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    body.tsd .tsd-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.tsd article.group:hover,
    body.tsd a.group:hover > [class*="bg-card"],
    body.tsd a.group[class*="bg-card"]:hover {
        transform: none !important;
    }
}

/* ===================================================== small screens */
@media (max-width: 640px) {
    body.tsd #hero > div {
        min-height: 480px;
    }

    .tsd-ticker {
        font-size: 0.66rem;
    }
}

/* ===================================================== collection + explore tiles: full-bleed photo, label bar */
body.tsd #collections a.group {
    padding: 0 !important;
    overflow: hidden;
}

body.tsd #collections a.group > div:first-child {
    border-radius: 0 !important;
}

body.tsd #collections a.group > div:last-child {
    margin-top: 0 !important;
    padding: 0.85rem 1rem;
    background: var(--tsd-ink);
    transition: background-color 0.25s ease;
}

body.tsd #collections a.group > div:last-child h3,
body.tsd #collections a.group > div:last-child svg {
    color: #fff !important;
}

body.tsd #collections a.group:hover > div:last-child {
    background: var(--tsd-blue);
}

body.tsd #explore-more a.group > [class*="bg-card"] {
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
}

body.tsd #explore-more a.group > [class*="bg-card"] > div:first-child {
    border-radius: 0 !important;
}

body.tsd #explore-more a.group > [class*="bg-card"] > div:last-child {
    padding: 1.25rem 1.25rem 1.4rem !important;
}

/* ===================================================== phones: header fits */
@media (max-width: 640px) {
    body.tsd #tshirt-locale {
        gap: 0.15rem;
        margin-right: 0;
    }

    body.tsd #tshirt-locale select {
        height: 1.85rem;
        padding: 0 0.9rem 0 0.35rem !important;
        background-position: right 0.25rem center !important;
        font-size: 0.68rem !important;
    }

    body.tsd section.sticky span:has(> .wvc-logo-stack) {
        height: 2.5rem !important;
    }

    body.tsd section.sticky .max-w-\[1280px\] {
        gap: 0.5rem !important;
    }

    body.tsd section.sticky .max-w-\[1280px\] > div:last-child {
        gap: 0.35rem !important;
    }
}

/* =====================================================================
 * v2 "Floodlights": the bold layer on top of everything above
 * ===================================================================== */

/* ----------------------------------------------- inner page title band
 * redesign.js inserts .tsd-pagehead right under the header on every inner
 * page (not home, not product pages) and copies the page h1 into it; the
 * real h1 stays in the page for screen readers and SEO, visually hidden.
 * The shop page's own hero (#shop-hero) gets the same look in place.
 */
body.tsd [data-tsd-h1] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.tsd [data-tsd-h1] + [aria-hidden="true"][class*="bg-primary"] {
    display: none !important;
}

.tsd-pagehead,
body.tsd #shop-hero {
    --background: hsl(0 0% 3.92%);
    --foreground: hsl(0 0% 98%);
    --muted-foreground: hsl(215 16% 70%);
    --border: hsl(0 0% 20%);
    --tsd-glow: hsl(220 85% 65%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: hsl(0 0% 3.92%) !important;
    color: hsl(0 0% 98%);
    border-bottom: 0 !important;
    box-shadow: inset 0 -6px 0 hsl(220 77.14% 41.18%);
}

/* pitch: mowing stripes, halfway line and centre circle, fading out to the left */
.tsd-pagehead::before,
body.tsd #shop-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 50%, transparent 0 9.5rem, rgba(255, 255, 255, 0.16) calc(9.5rem + 1px) calc(9.5rem + 2px), transparent calc(9.5rem + 3px)),
        radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.22) 0 4px, transparent 5px),
        linear-gradient(90deg, transparent calc(78% - 1px), rgba(255, 255, 255, 0.16) calc(78% - 1px) 78%, transparent 78%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 90px, transparent 90px 180px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

/* the kit sash: a diagonal blue stripe with a thin white pinstripe */
.tsd-pagehead::after,
body.tsd #shop-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -30%;
    right: 9%;
    width: clamp(70px, 9vw, 150px);
    height: 160%;
    pointer-events: none;
    background: linear-gradient(90deg, hsl(220 77.14% 41.18%) 0 82%, transparent 82% 88%, rgba(255, 255, 255, 0.85) 88% 91%, transparent 91%);
    transform: skewX(-22deg);
}

/* the giant outlined word along the bottom */
.tsd-ph-word {
    position: absolute;
    z-index: -1;
    left: -0.04em;
    bottom: -0.2em;
    font-family: var(--tsd-num);
    font-weight: 700;
    font-size: clamp(5.5rem, 17vw, 17rem);
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.11);
    pointer-events: none;
    user-select: none;
}

.tsd-ph-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(3.25rem, 7vw, 6.5rem) clamp(1rem, 3vw, 1.5rem) clamp(3.5rem, 7.5vw, 7rem);
}

.tsd-ph-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.1rem;
    font-family: var(--tsd-num);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: hsl(220 85% 65%);
}

.tsd-ph-kicker::before {
    content: "";
    width: 2.25rem;
    height: 4px;
    background: hsl(220 85% 65%);
}

.tsd-ph-title {
    margin: 0;
    max-width: 16ch;
    font-family: var(--tsd-num);
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 6.2rem);
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
    text-wrap: balance;
}

/* the block right under the band: less empty space on top */
.tsd-pagehead + section,
.tsd-pagehead + main {
    padding-top: 2.5rem !important;
}

/* shop hero = the same band, built from its own markup */
body.tsd #shop-hero {
    padding: clamp(3.25rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7.5vw, 7rem) !important;
}

body.tsd #shop-hero .grid > div {
    grid-column: 1 / -1 !important;
    align-items: flex-start !important;
    text-align: left !important;
}

body.tsd #shop-hero h1 {
    order: 1;
    max-width: 16ch;
    font-family: var(--tsd-num) !important;
    font-weight: 700 !important;
    font-size: clamp(2.6rem, 7vw, 6.2rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase;
    color: #fff !important;
}

body.tsd #shop-hero h1 + .bg-primary {
    display: none !important;
}

body.tsd #shop-hero .grid > div > div:has(> nav) {
    order: 0;
    margin: 0 0 1.1rem !important;
}

body.tsd #shop-hero nav ol {
    justify-content: flex-start !important;
    font-family: var(--tsd-num);
    font-size: 0.78rem !important;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: hsl(220 85% 65%) !important;
}

body.tsd #shop-hero nav a,
body.tsd #shop-hero nav span {
    color: inherit !important;
}

body.tsd #shop-hero p {
    order: 2;
    margin-top: 1.5rem !important;
    max-width: 38rem !important;
    color: hsl(215 16% 76%) !important;
    text-align: left;
}

/* ----------------------------------------------- home: colour rhythm
 * new arrivals on white, collections on black, explore more on brand blue,
 * joined by diagonal cuts.
 */
body.tsd #new-arrivals,
body.tsd #collections,
body.tsd #explore-more {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

body.tsd #new-arrivals > :not(.tsd-secword),
body.tsd #collections > :not(.tsd-secword),
body.tsd #explore-more > :not(.tsd-secword) {
    position: relative;
    z-index: 1;
}

body.tsd #collections {
    --background: hsl(0 0% 3.92%);
    --foreground: hsl(0 0% 98%);
    --muted-foreground: hsl(215 16% 68%);
    --border: hsl(0 0% 22%);
    --tsd-blue: hsl(220 85% 65%);
    background: hsl(0 0% 3.92%) !important;
    color: hsl(0 0% 98%);
    clip-path: polygon(0 clamp(28px, 5vw, 80px), 100% 0, 100% calc(100% - clamp(28px, 5vw, 80px)), 0 100%);
    padding-top: calc(clamp(28px, 5vw, 80px) + 3.5rem) !important;
    padding-bottom: calc(clamp(28px, 5vw, 80px) + 3.5rem) !important;
    border: 0 !important;
}

body.tsd #explore-more {
    --background: hsl(220 77.14% 41.18%);
    --foreground: #fff;
    --muted-foreground: rgba(255, 255, 255, 0.8);
    --border: rgba(255, 255, 255, 0.28);
    background: hsl(220 77.14% 41.18%) !important;
    color: #fff;
    margin-top: calc(-1 * clamp(28px, 5vw, 80px));
    padding-top: calc(clamp(28px, 5vw, 80px) + 4rem) !important;
    border: 0 !important;
}

body.tsd #explore-more h2.font-serif::before {
    color: #fff;
}

body.tsd #explore-more .mt-3.bg-primary[class*="h-[2px]"] {
    background: #fff !important;
}

/* cards keep their light faces on the coloured backgrounds */
body.tsd #explore-more a.group > [class*="bg-card"] {
    --card: #fff;
    --card-foreground: hsl(0 0% 3.92%);
    --foreground: hsl(0 0% 3.92%);
    --muted-foreground: hsl(215 16% 42%);
    --border: hsl(214 32% 91%);
    border-color: transparent !important;
}

body.tsd #explore-more a.group:hover > [class*="bg-card"] {
    box-shadow: 8px 8px 0 hsl(0 0% 3.92%) !important;
    border-color: transparent !important;
}

/* collections on black: white label bars that flash blue */
body.tsd #collections a.group {
    border-color: transparent !important;
}

body.tsd #collections a.group:hover {
    box-shadow: 8px 8px 0 hsl(220 85% 65%) !important;
    border-color: transparent !important;
}

body.tsd #collections a.group > div:last-child {
    background: #fff;
}

body.tsd #collections a.group > div:last-child h3,
body.tsd #collections a.group > div:last-child svg {
    color: hsl(0 0% 3.92%) !important;
}

body.tsd #collections a.group:hover > div:last-child {
    background: hsl(220 77.14% 41.18%);
}

body.tsd #collections a.group:hover > div:last-child h3,
body.tsd #collections a.group:hover > div:last-child svg {
    color: #fff !important;
}

/* outlined buttons on dark / blue */
body.tsd #collections a[class*="border"]:not(.group),
body.tsd #explore-more a[class*="border"]:not(.group) {
    color: #fff !important;
    border-color: #fff !important;
    background: transparent !important;
}

body.tsd #collections a[class*="border"]:not(.group):hover,
body.tsd #explore-more a[class*="border"]:not(.group):hover {
    background: #fff !important;
    color: hsl(0 0% 3.92%) !important;
}

/* giant outlined words behind the home section headings (redesign.js) */
.tsd-secword {
    position: absolute;
    z-index: 0;
    top: 0.5rem;
    right: -0.05em;
    font-family: var(--tsd-num);
    font-weight: 700;
    font-size: clamp(5rem, 15vw, 15rem);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(10, 10, 10, 0.09);
    pointer-events: none;
    user-select: none;
}

body.tsd #collections .tsd-secword {
    top: calc(clamp(28px, 5vw, 80px) + 0.5rem);
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.13);
}

body.tsd #explore-more .tsd-secword {
    top: calc(clamp(28px, 5vw, 80px) + 0.5rem);
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.24);
}

/* home section headings: bigger, condensed, stadium-board */
body.tsd #new-arrivals h2.font-serif,
body.tsd #collections h2.font-serif,
body.tsd #explore-more h2.font-serif {
    font-family: var(--tsd-num) !important;
    font-weight: 700 !important;
    font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important;
    letter-spacing: -0.005em !important;
    line-height: 0.95 !important;
}

/* product page title in the same condensed face */
body.tsd #product-detail h1 {
    font-family: var(--tsd-num) !important;
    font-weight: 700 !important;
    letter-spacing: -0.005em !important;
}

/* ----------------------------------------------- phones */
@media (max-width: 640px) {
    .tsd-pagehead::after,
    body.tsd #shop-hero::after {
        right: -8%;
    }

    .tsd-pagehead::before,
    body.tsd #shop-hero::before {
        background:
            radial-gradient(circle at 90% 50%, transparent 0 6rem, rgba(255, 255, 255, 0.14) calc(6rem + 1px) calc(6rem + 2px), transparent calc(6rem + 3px)),
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 60px, transparent 60px 120px);
    }

    .tsd-ph-title,
    body.tsd #shop-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.4rem) !important;
        max-width: 12ch;
    }
}

/* League Spartan on the Bulgarian site too (site-overrides.css pins .font-serif there) */
html[lang="bg"] body.tsd .font-serif {
    font-family: var(--font-serif);
}
