/* ==========================================================================
   TT-Fights - the public site.

   Colours and measures come from tokens.css. The file reads top down:
   base, layout (header, hero, footer), then the components pages are
   built from. Everything is written small-screen first; the wider
   layouts are added in the media queries next to each block.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ground);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 8px 14px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 12px;
    color: var(--white);
}

.flag {
    display: inline-block;
    width: 30px;
    height: 20px;
    background: center / cover no-repeat;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.empty-note {
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    color: var(--text-muted);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 22px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: var(--white);
}

.button--outline {
    background: transparent;
    color: var(--accent);
}

.button--outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.button--light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--white);
}

.button--light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink-800);
}

.button--sm {
    min-height: 34px;
    padding: 0 16px;
    font-size: 11px;
}

.button--block {
    width: 100%;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-soft);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.icon-button[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header: top bar and navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--text-on-dark);
}

.topbar {
    background: var(--ink-900);
    font-size: 13px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}

.topbar a {
    color: var(--text-on-dark);
}

.topbar a:hover {
    color: var(--gold);
}

.ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.ticker__label {
    flex: none;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ticker__label::after {
    content: ":";
}

.ticker__items {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 20px;
    overflow: hidden;
}

.ticker__item {
    position: absolute;
    inset: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 20px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ticker__item.is-active {
    opacity: 1;
    transform: none;
}

.topbar__aside {
    display: none;
    flex: none;
    align-items: center;
    gap: 18px;
}

.topbar__mail .fa {
    margin-right: 6px;
    color: var(--gold);
}

.social-inline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: none;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lang a,
.lang span {
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--text-on-dark-muted);
}

.lang .is-current {
    background: var(--ink-700);
    color: var(--white);
}

.navbar {
    background: var(--ink-800);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand:hover {
    color: var(--white);
}

/* The logo: one size on every page. */
.brand__mark {
    width: auto;
    height: 34px;
}

/* On a light ground (the PIN page). */
.brand--light,
.brand--light:hover {
    color: var(--text);
}

.brand__accent {
    color: var(--red);
}

.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    background: var(--ink-800);
    border-top: 1px solid var(--ink-700);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.site-menu.is-open {
    display: block;
}

.site-menu__link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--ink-700);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-menu__link:hover,
.site-menu__link.is-active {
    color: var(--gold);
}

.site-menu__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
}

.site-menu__aside form {
    margin: 0;
}

.site-menu__account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ink-600);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-on-dark);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.site-menu__account:hover {
    border-color: var(--gold);
    color: var(--gold);
}

@media (min-width: 768px) {
    .topbar__aside {
        display: flex;
    }
}

@media (min-width: 992px) {
    .navbar__inner {
        min-height: 84px;
    }


    .nav-toggle {
        display: none;
    }

    .site-menu {
        display: flex;
        position: static;
        align-items: center;
        gap: 22px;
        max-height: none;
        overflow: visible;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .site-menu__list {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .site-menu__link {
        position: relative;
        padding: 10px 16px;
        border: 0;
        font-size: 12px;
    }

    .site-menu__link::after {
        content: "";
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 2px;
        height: 2px;
        background: var(--gold);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    .site-menu__link:hover::after,
    .site-menu__link.is-active::after {
        transform: scaleX(1);
    }

    .site-menu__aside {
        flex-wrap: nowrap;
        padding: 0 0 0 22px;
        border-left: 1px solid var(--ink-600);
    }
}

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */

.flashes {
    padding-top: 16px;
}

.flash {
    margin: 0 0 8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.flash--success {
    border-left-color: var(--green);
}

.flash--warning {
    border-left-color: var(--gold);
}

.flash--error,
.flash--danger {
    border-left-color: var(--red);
}

/* --------------------------------------------------------------------------
   Hero slider (home) and page hero (inner pages)
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    height: clamp(380px, 56vw, 620px);
    overflow: hidden;
    background: var(--ink-950);
    color: var(--white);
}

.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    /* Wider screens cut the picture's height: mostly from the foot,
       where there are no faces. */
    background: center 25% / cover no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
}

.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 18, 22, 0.25) 0%, rgba(15, 18, 22, 0.78) 100%);
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* The text on the side the picture leaves free (Banner.text_side):
   right by default, or left, or centred at the foot. The shade follows
   it, so the people in the picture stay in the light. */
.hero__slide--text-left::before {
    background: linear-gradient(270deg, rgba(15, 18, 22, 0.25) 0%, rgba(15, 18, 22, 0.78) 100%);
}

.hero__slide--text-left .hero__caption {
    margin-right: auto;
    margin-left: 0;
}

.hero__slide--text-center {
    align-items: flex-end;
}

.hero__slide--text-center::before {
    background: linear-gradient(180deg, rgba(15, 18, 22, 0.1) 35%, rgba(15, 18, 22, 0.82) 100%);
}

.hero__slide--text-center .hero__caption {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 54px;
    text-align: center;
}

.hero__slide--text-center .hero__quote {
    padding-left: 0;
}

.hero__slide--text-center .hero__quote::before {
    display: none;
}

.hero__caption {
    position: relative;
    max-width: 520px;
    margin-left: auto;
    padding: 0 0 26px;
}

.hero__date {
    margin: 0 0 10px;
    padding-top: 12px;
    border-top: 2px solid var(--gold);
    display: inline-block;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero__title,
.hero__subtitle {
    margin: 0;
    color: var(--white);
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hero__title {
    font-size: clamp(30px, 5.2vw, 58px);
}

.hero__subtitle {
    margin-top: 6px;
    font-size: clamp(20px, 3.2vw, 34px);
    font-weight: 700;
}

.hero__quote {
    position: relative;
    margin: 18px 0 0;
    padding-left: 46px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.5;
}

.hero__quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 22px;
    background: var(--white);
    clip-path: polygon(23% 0, 49% 0, 31% 100%, 0 100%, 23% 0, 74% 0, 100% 0, 82% 100%, 51% 100%, 74% 0);
}

.hero__caption .button {
    margin-top: 24px;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    padding: 0;
    border: 0;
    background: rgba(39, 44, 52, 0.75);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.hero__arrow:hover {
    background: var(--accent);
}

.hero__arrow--prev {
    left: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero__arrow--next {
    right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero__dot.is-active {
    background: var(--gold);
    border-color: var(--gold);
}

@media (min-width: 992px) {
    .hero__arrow {
        display: grid;
    }
}

.page-hero {
    position: relative;
    padding: clamp(36px, 7vw, 84px) 0;
    background: var(--ink-900) center / cover no-repeat;
    color: var(--white);
    text-align: center;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23, 27, 32, 0.62);
}

.page-hero > .wrap {
    position: relative;
}

.page-hero__title {
    color: var(--white);
    font-size: clamp(24px, 4.4vw, 40px);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 12px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crumbs li + li::before {
    content: "\203A";
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.6);
}

/* A fighter with a photo: the top half of it (bouts/portraits.py),
   enlarged to a wide band of the face in the middle of the banner and
   shaded deep, so it stays a background. The banner keeps its height. */
.page-hero--portrait {
    overflow: hidden;
}

.page-hero--portrait > .wrap {
    z-index: 2;
}

.page-hero--portrait::before {
    z-index: 1;
    background: rgba(23, 27, 32, 0.72);
}

.page-hero__portrait {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 1100px);
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    transform: translateX(-50%);
}

.crumbs a {
    color: var(--gold);
}

.crumbs a:hover {
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Page layout: sections, main column and aside
   -------------------------------------------------------------------------- */

.section {
    padding: clamp(28px, 5vw, 60px) 0;
}

.section--tight {
    padding-top: 0;
}

.layout {
    display: grid;
    gap: var(--gap);
}

.layout__main,
.layout__aside {
    min-width: 0;
}

.layout__main > * + *,
.layout__aside > * + * {
    margin-top: var(--gap);
}

@media (min-width: 992px) {
    .layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        align-items: start;
    }
}

.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-strong);
}

.heading__title {
    position: relative;
    padding-left: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.heading__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.05em;
    bottom: 0.05em;
    width: 4px;
    background: var(--accent);
}

.heading__title .fa {
    margin-right: 4px;
    color: var(--red);
}

.heading__aside {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Filter pills next to a heading. */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill {
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pill:hover,
.pill.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* A row of cards that scrolls sideways; the arrows live in the heading. */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail > * {
    scroll-snap-align: start;
    min-width: 0;
}

.rail--cards {
    grid-auto-columns: minmax(250px, 82%);
    padding-bottom: 6px;
}

@media (min-width: 576px) {
    .rail--cards {
        grid-auto-columns: calc((100% - var(--gap)) / 2);
    }
}

@media (min-width: 992px) {
    .rail--cards {
        grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
    }
}

@media (min-width: 1280px) {
    .rail--cards {
        grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
    }
}

/* --------------------------------------------------------------------------
   Bout card
   -------------------------------------------------------------------------- */

.bout {
    padding: clamp(18px, 3vw, 32px);
}

.bout + .bout {
    margin-top: var(--gap);
}

.bout__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin: 0 0 6px;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status--live {
    background: var(--red);
    color: var(--white);
}

.status--live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse 1.4s ease-in-out infinite;
}

.status--off {
    background: var(--red-soft);
    color: var(--red);
}

@keyframes pulse {
    50% {
        opacity: 0.25;
    }
}

.bout__title {
    margin-bottom: 4px;
    text-align: center;
    font-size: clamp(16px, 2.2vw, 20px);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.bout__versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(8px, 2.5vw, 28px);
    margin-top: 16px;
}

.bout__fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    padding: clamp(8px, 1.6vw, 14px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bout__fighter:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    color: var(--text);
}

.bout__photo {
    width: 100%;
    max-width: 150px;
    aspect-ratio: 7 / 8;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft) top center / cover no-repeat;
}

.bout__name {
    max-width: 100%;
    font-family: var(--font-head);
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

@media (max-width: 479px) {
    .bout__fighter {
        padding: 6px 4px 8px;
    }

    .bout__name {
        font-size: 10px;
        letter-spacing: 0.01em;
    }
}

.bout__caption {
    max-width: 100%;
    min-height: 1.5em;
    color: var(--text-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.bout__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bout__score {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 14px);
}

.bout__points {
    min-width: 1.6em;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: clamp(20px, 3.4vw, 32px);
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.bout__points.is-win {
    color: var(--accent);
    font-weight: 800;
}

.bout__vs {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
}

.bout__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.rounds {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.rounds__title {
    width: max-content;
    margin: -11px auto 0;
    padding: 0 14px;
    background: var(--surface);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rounds__list {
    display: grid;
    gap: 6px;
    padding: 12px;
}

/* Both score cells are one fixed width, so every row lines up whatever
   the points in it: "6/10/10", "10/10/10", "KO". */
.rounds__row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    align-items: stretch;
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.rounds__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: var(--ink-800);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rounds__cell.is-win {
    background: var(--accent);
}

.rounds__cell small {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.8;
}

.rounds__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    color: var(--text-soft);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.rounds__label small {
    color: var(--text-muted);
    font-size: 9px;
}

.video {
    position: relative;
    margin-top: 22px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink-950);
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Compact bout card for the aside. */
.bout-mini {
    padding: 16px;
    border-bottom: 3px solid var(--gold);
}

.bout-mini + .bout-mini {
    margin-top: 14px;
}

.bout-mini.is-off {
    border-bottom-color: var(--red);
}

.bout-mini__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.bout-mini__fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.bout-mini__fighter span:last-child {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.bout-mini__photo {
    width: 64px;
    aspect-ratio: 7 / 8;
    border-radius: var(--radius-sm);
    background: var(--surface-soft) top center / cover no-repeat;
}

.bout-mini__when {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.bout-mini__time {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
}

.bout-mini__zone {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bout-mini__foot {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Upcoming bouts list (home)
   -------------------------------------------------------------------------- */

.fixtures {
    overflow: hidden;
}

.fixture + .fixture {
    border-top: 1px solid var(--line);
}

.fixture__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.fixture__row::-webkit-details-marker {
    display: none;
}

.fixture__row:hover {
    background: var(--surface-soft);
}

.fixture__fighter {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.fixture__fighter--b {
    flex-direction: row-reverse;
    text-align: right;
}

.fixture__fighter img {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.fixture__name {
    min-width: 0;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.fixture__name small {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.fixture__date {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.fixture__toggle {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.fixture[open] .fixture__toggle {
    transform: rotate(180deg);
    color: var(--accent);
}

.fixture__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
}

.record {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px;
    background: var(--surface-soft);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.record b {
    margin-left: 4px;
    font-size: 14px;
}

.record .is-win b {
    color: var(--green);
}

.record .is-loss b {
    color: var(--red);
}

.fixture__link {
    grid-column: 1 / -1;
    padding: 10px;
    background: var(--surface);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Fighters
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: var(--gap);
}

.fighter-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink-800);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fighter-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-raised);
}

.fighter-card__photo {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-700);
}

.fighter-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.fighter-card:hover .fighter-card__photo img {
    transform: scale(1.04);
}

.fighter-card__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 14px;
    padding: 16px 18px;
    color: var(--text-on-dark);
}

.fighter-card__name {
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.fighter-card__name a {
    color: var(--white);
}

.fighter-card__name a:hover {
    color: var(--gold);
}

.fighter-card__caption {
    grid-column: 2;
    margin: 0;
    color: var(--text-on-dark-muted);
    font-size: 12px;
}

.fighter-card__facts {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--ink-600);
}

.fighter-card__facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fighter-card__facts dt {
    flex: none;
    color: var(--text-on-dark-muted);
}

.fighter-card__facts dd {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    color: var(--white);
    font-size: 11px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fighter-card__meters {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--ink-600);
}

.meter {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meter + .meter {
    margin-top: 8px;
}

.meter dt {
    color: var(--text-muted);
}

.meter dd {
    display: contents;
}

.meter__bar {
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
}

.meter__bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
}

.meter__value {
    text-align: right;
    font-size: 11px;
    color: var(--accent);
}

.fighter-card .meter dt {
    color: var(--text-on-dark-muted);
}

.fighter-card .meter__bar {
    background: var(--ink-600);
}

.fighter-card .meter__value {
    color: var(--white);
}

/* Fighter profile. */
.profile {
    display: grid;
    overflow: hidden;
}

.profile + .profile {
    margin-top: var(--gap);
}

.profile__photo {
    position: relative;
    min-height: 240px;
    background: var(--ink-700);
}

.profile__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.profile__flag {
    position: absolute;
    left: 14px;
    top: 0;
    padding: 12px 8px 10px;
    background: var(--accent);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.profile__body {
    padding: clamp(18px, 3vw, 28px);
}

.profile__name {
    font-size: clamp(18px, 2.6vw, 24px);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.profile__name a {
    color: inherit;
}

.profile__name a:hover {
    color: var(--accent);
}

.profile__caption {
    margin: 2px 0 0;
    color: var(--text-muted);
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 16px 0;
    padding: 6px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.facts div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.facts dt {
    color: var(--text-muted);
}

.facts dd {
    margin: 0;
    font-weight: 700;
}

@media (min-width: 640px) {
    .profile {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    .profile__photo {
        min-height: 280px;
    }
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table caption {
    padding: 12px 16px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.data-table th,
.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table th {
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-table .is-num {
    width: 1%;
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-head);
    font-weight: 700;
}

.data-table a {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
}

.person img {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    object-position: top;
}

.person small {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.pair {
    display: grid;
    gap: var(--gap);
}

@media (min-width: 640px) {
    .pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Win / loss / draw counters. */
.stat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat-list li + li {
    border-top: 1px solid var(--line);
}

.stat-list b {
    color: var(--accent);
    font-size: 16px;
}

/* The record in one line: wins, losses, draws. */
.score-line {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
}

.score-line__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.score-line__cell b {
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.score-line__cell.is-win b {
    color: var(--green);
}

.score-line__cell.is-loss b {
    color: var(--red);
}

/* A result as a badge: in the form line and in the list of bouts. */
.result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-soft);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.result--win {
    background: var(--green-soft);
    color: var(--green);
}

.result--loss {
    background: var(--red-soft);
    color: var(--red-deep);
}

.result--draw {
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.result--live {
    background: var(--red);
    color: var(--white);
}

.result--upcoming {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.form {
    display: flex;
    gap: 4px;
}

.form .result {
    padding: 0;
}

.form .result:hover {
    box-shadow: 0 0 0 2px var(--line-strong);
}

/* Career numbers. */
.tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tiles + .pair {
    margin-top: 12px;
    gap: 12px;
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    border-bottom: 3px solid var(--accent);
}

.tile__value {
    font-family: var(--font-head);
    font-size: clamp(22px, 3.4vw, 30px);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tile__value small {
    margin-left: 2px;
    color: var(--text-muted);
    font-size: 0.5em;
    font-weight: 700;
}

.tile__value--win {
    color: var(--green);
}

.tile__value--loss {
    color: var(--red);
}

.tile__value--draw {
    color: var(--gold-strong);
}

.tile__label {
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 576px) {
    .tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* How the bouts ended, how the strikes are spread. */
.breakdown {
    padding: 18px;
}

.breakdown dl {
    margin: 0;
}

.breakdown .empty-note {
    padding: 6px 0;
    text-align: left;
}

.breakdown__title {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.breakdown--loss .meter__bar span {
    background: var(--red);
}

.breakdown--loss .meter__value {
    color: var(--red);
}

.meter--wide {
    grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 32px;
}

.meter--wide dt {
    overflow-wrap: anywhere;
}

/* What the punch counter recorded. */
.strikes {
    padding: 18px;
}

.strikes dl {
    margin: 0;
}

.strikes__totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.strikes__totals div {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
}

.strikes__totals dt {
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strikes__totals dd {
    margin: 0;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.strikes__table {
    width: 100%;
    margin: 14px 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.strikes__table th,
.strikes__table td {
    padding: 7px 0;
}

.strikes__table thead th {
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strikes__table tbody th {
    width: 38%;
    padding: 7px 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.strikes__table td {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.strikes__table td > * {
    vertical-align: middle;
}

.strikes__table .is-landed {
    text-align: right;
}

.strikes__table .is-absorbed {
    text-align: left;
}

.strikes__table td b {
    display: inline-block;
    min-width: 26px;
    text-align: center;
}

.strikes__bar {
    display: inline-flex;
    width: calc(100% - 34px);
    height: 8px;
    border-radius: 4px;
    background: var(--surface-soft);
    overflow: hidden;
}

.strikes__bar span {
    display: block;
    border-radius: 4px;
    background: var(--ink-600);
}

.is-landed .strikes__bar {
    justify-content: flex-end;
}

.is-landed .strikes__bar span {
    background: var(--accent);
}

.strikes__groups {
    display: grid;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

@media (min-width: 576px) {
    .strikes__totals {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .strikes__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* A fighter's bouts. */
.history td {
    white-space: nowrap;
}

.history small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.history__date {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
}

.history__date small {
    font-family: var(--font-body);
    font-weight: 400;
}

.history__how {
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */

.category-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.meta .fa {
    margin-right: 5px;
}

.post-item {
    overflow: hidden;
}

.post-item + .post-item {
    margin-top: var(--gap);
}

.post-item__body {
    padding: clamp(18px, 3vw, 28px);
}

.post-item__title {
    margin: 12px 0 10px;
    font-size: clamp(17px, 2.3vw, 22px);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.post-item__title a {
    color: var(--text);
}

.post-item__title a:hover {
    color: var(--accent);
}

.post-item__text {
    margin: 0;
    color: var(--text-soft);
}

.post-item__figure {
    display: block;
    overflow: hidden;
}

.post-item__figure img {
    width: 100%;
    transition: transform 0.4s ease;
}

.post-item__figure:hover img {
    transform: scale(1.03);
}

.post-item__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 12px clamp(18px, 3vw, 28px);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.post-item__foot a::before {
    content: "#";
    color: var(--text-muted);
}

.article {
    padding: clamp(18px, 3.4vw, 36px);
}

.article__title {
    margin: 14px 0 12px;
    font-size: clamp(20px, 3vw, 30px);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.article__quote {
    margin: 20px 0;
    padding: 4px 0 4px 18px;
    border-left: 4px solid var(--accent);
    color: var(--text-soft);
    font-style: italic;
}

.article__quote p:last-child {
    margin-bottom: 0;
}

.article__image {
    width: 100%;
    margin: 20px 0;
    border-radius: var(--radius);
}

/* Text written in the admin (markdown): posts, pages, fighter stories. */
.prose {
    color: var(--text-soft);
    overflow-wrap: anywhere;
}

.prose > :first-child {
    margin-top: 0;
}

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

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin: 1.6em 0 0.6em;
    font-size: 18px;
    text-transform: uppercase;
}

.prose h4 {
    font-size: 15px;
}

.prose ul,
.prose ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li + li {
    margin-top: 0.3em;
}

.prose li::marker {
    color: var(--accent);
}

.prose blockquote {
    margin: 1.2em 0;
    padding-left: 16px;
    border-left: 4px solid var(--line-strong);
}

.prose img {
    margin: 1em 0;
    border-radius: var(--radius);
}

.prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 8px 12px;
    border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Aside widgets
   -------------------------------------------------------------------------- */

.post-list li + li {
    border-top: 1px solid var(--line);
}

.post-list a {
    display: block;
    padding: 16px 18px;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.5;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.post-list a:hover {
    color: var(--accent);
}

.post-list time {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.tabs__nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.tabs__tab {
    padding: 12px 6px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tabs__tab:hover {
    color: var(--accent);
}

.tabs__tab[aria-selected="true"] {
    background: var(--accent);
    color: var(--white);
}

.tabs__panel[hidden] {
    display: none;
}

.post-mini {
    display: flex;
    gap: 14px;
    padding: 10px;
}

.post-mini + .post-mini {
    margin-top: 10px;
}

.post-mini > a {
    flex: none;
}

.post-mini img {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.post-mini__title {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.45;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.post-mini__title:hover {
    color: var(--accent);
}

.cat-list li + li {
    border-top: 1px solid var(--line);
}

.cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cat-list a:hover,
.cat-list a.is-active {
    color: var(--accent);
}

.cat-list span {
    color: var(--text-muted);
    font-weight: 600;
}

/* The league's networks: a quiet row of icons, last in the sidebar. */
.widget--quiet {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.widget__label {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-row__link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-soft);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-row__link .fa {
    font-size: 16px;
}

.social-row__link:hover {
    border-color: var(--brand, var(--accent));
    background: var(--brand, var(--accent));
    color: var(--white);
}

.social-row__link--facebook { --brand: var(--brand-facebook); }
.social-row__link--instagram { --brand: var(--brand-instagram); }
.social-row__link--twitter { --brand: var(--brand-twitter); }
.social-row__link--youtube,
.social-row__link--youtube-play { --brand: var(--brand-youtube); }
.social-row__link--telegram,
.social-row__link--paper-plane { --brand: var(--brand-telegram); }
.social-row__link--tiktok { --brand: var(--brand-tiktok); }
.social-row__link--x-twitter { --brand: var(--brand-x); }

/* The latest results: the date, who beat whom, and how. */
.result-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.result-list li + li {
    border-top: 1px solid var(--line);
}

.result-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "time   method"
        "line   line";
    gap: 4px 10px;
    padding: 14px 18px;
    color: var(--text);
}

.result-list a:hover .result-list__line b {
    color: var(--accent);
}

.result-list time {
    grid-area: time;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.result-list__line {
    grid-area: line;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.result-list__line b {
    font-weight: 800;
}

.result-list__line small {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: lowercase;
}

.result-list__method {
    grid-area: method;
    justify-self: end;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--ground);
    color: var(--text-soft);
    font-family: var(--font-head);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.result-list__method.is-stoppage {
    background: var(--red);
    color: var(--white);
}

/* The league's leaders: place, face, name, record. */
.leader-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.leader-list li + li {
    border-top: 1px solid var(--line);
}

.leader-list a {
    display: grid;
    grid-template-columns: 22px 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: var(--text);
}

.leader-list a:hover .leader-list__name {
    color: var(--accent);
}

.leader-list__rank {
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.leader-list li:first-child .leader-list__rank {
    color: var(--gold);
}

.leader-list__photo {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ground);
}

.leader-list__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-list__name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.leader-list__name small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.leader-list__record {
    min-width: 64px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* The league in numbers: six figures, two to a row. */
.league-numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.league-numbers div {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

.league-numbers div:nth-child(-n + 2) {
    border-top: 0;
}

.league-numbers div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.league-numbers dt {
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.league-numbers dd {
    margin: 0;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chip:hover,
.chip.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Contacts
   -------------------------------------------------------------------------- */

/* Contacts: three short cards in a line - write, call, come - and the
   networks under them, a tile each. */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--gap);
}

.contact-card {
    padding: 22px 24px;
}

.contact-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card__title .fa {
    color: var(--accent);
    font-size: 14px;
}

.contact-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-card li {
    display: grid;
    gap: 2px;
    overflow-wrap: anywhere;
}

.contact-card li + li {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.contact-card a,
.contact-card span {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-card small {
    color: var(--text-muted);
    font-size: 12px;
}

.contact-card .contact-card__more {
    margin-top: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.contact-links {
    margin-top: calc(var(--gap) * 1.5);
}

.contact-links__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    color: var(--text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-link:hover {
    border-color: var(--brand, var(--accent));
    color: var(--text);
    transform: translateY(-2px);
}

.contact-link .fa {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand, var(--accent));
    color: var(--white);
    font-size: 18px;
}

.contact-link span {
    display: grid;
    min-width: 0;
}

.contact-link b {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contact-link small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-link--facebook { --brand: var(--brand-facebook); }
.contact-link--instagram { --brand: var(--brand-instagram); }
.contact-link--twitter { --brand: var(--brand-twitter); }
.contact-link--youtube,
.contact-link--youtube-play { --brand: var(--brand-youtube); }
.contact-link--telegram,
.contact-link--paper-plane { --brand: var(--brand-telegram); }
.contact-link--tiktok { --brand: var(--brand-tiktok); }
.contact-link--x-twitter { --brand: var(--brand-x); }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: var(--gap);
}

.pager a,
.pager span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
}

.pager a:hover,
.pager .is-current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Plain message pages (errors)
   -------------------------------------------------------------------------- */

.notice {
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px);
    text-align: center;
}

.notice__code {
    color: var(--accent);
    font-family: var(--font-head);
    font-size: clamp(56px, 12vw, 96px);
    font-weight: 800;
    line-height: 1;
}

.notice__title {
    margin: 10px 0 12px;
    font-size: clamp(18px, 3vw, 24px);
    text-transform: uppercase;
}

.notice p {
    color: var(--text-soft);
}

.notice__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    position: relative;
    margin-top: auto;
    background:
        linear-gradient(var(--footer-veil), var(--footer-veil)),
        url("../images/footer-1920x640.b0a20145f545.jpg") center / cover no-repeat,
        var(--ink-800);
    color: var(--text-on-dark-muted);
}

/* The line the footer opens with: the colours of the ring. */
.site-footer::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold) 55%, var(--accent));
}

/* Partners: a band of its own, the logos dimmed until pointed at. */
.sponsors {
    background: var(--ink-900);
    border-bottom: 1px solid var(--ink-700);
}

.sponsors__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.sponsors__label {
    flex: none;
    color: var(--text-on-dark-muted);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sponsors__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px clamp(28px, 6vw, 64px);
}

.sponsors__list a {
    display: block;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.sponsors__list a:hover {
    opacity: 1;
}

.sponsors__list img {
    width: auto;
    height: 34px;
    object-fit: contain;
}

.site-footer__main {
    display: grid;
    gap: 36px 32px;
    padding-top: clamp(36px, 5vw, 60px);
    padding-bottom: clamp(36px, 5vw, 60px);
}

.site-footer__title {
    color: var(--white);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__title::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin: 12px 0 20px;
    background: var(--gold);
}


.site-footer__slogan {
    max-width: 34ch;
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.65;
}

.social-squares {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.social-squares a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--ink-600);
    border-radius: var(--radius-sm);
    color: var(--text-on-dark);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.social-squares a:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
}

.footer-nav li + li {
    margin-top: 12px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-on-dark);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.15s ease, gap 0.15s ease;
}

.footer-nav a::before {
    content: "";
    width: 6px;
    height: 2px;
    background: var(--ink-600);
    transition: width 0.15s ease, background-color 0.15s ease;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-nav a:hover::before {
    width: 14px;
    background: var(--gold);
}

.footer-news li + li {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ink-700);
}

.footer-news time {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-news a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-on-dark);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.55;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.footer-news a:hover {
    color: var(--gold);
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.footer-contacts li + li {
    margin-top: 14px;
}

.footer-contacts .fa {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--ink-700);
    color: var(--gold);
    font-size: 15px;
}

.footer-contacts div {
    min-width: 0;
}

.footer-contacts small {
    display: block;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-contacts a {
    color: var(--white);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.footer-contacts a:hover {
    color: var(--gold);
}

.site-footer__cta {
    margin-top: 22px;
}

.site-footer__bottom {
    background: var(--ink-900);
    border-top: 1px solid var(--ink-700);
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* On a phone the last lines stay clear of the back-to-top button. */
.site-footer__bottom .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 72px;
    text-align: center;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
}

.site-footer__links a {
    color: var(--text-on-dark-muted);
}

.site-footer__links a:hover {
    color: var(--white);
}

.site-footer__links .fa {
    margin-right: 4px;
    color: var(--gold);
}

@media (min-width: 640px) {
    .site-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .sponsors__inner {
        flex-direction: row;
        gap: clamp(24px, 5vw, 56px);
    }

    .sponsors__label {
        padding-right: clamp(24px, 5vw, 56px);
        border-right: 1px solid var(--ink-600);
        line-height: 34px;
    }

    .sponsors__list {
        flex: 1;
        justify-content: space-between;
    }

    .site-footer__bottom .wrap {
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 18px;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .site-footer__main {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.2fr);
        gap: 48px;
    }
}

.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-raised);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--accent-strong);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
