/* ==========================================================================
   Taekwondo Reports V4
   Light theme · Exo (headings, body, menu) · Antonio (small labels, numbers)
   Container 1300px
   ========================================================================== */

:root {
    --tr-ink: #111111;
    --tr-text: #555555;
    --tr-muted: #8C8C8C;
    --tr-line: #E8E8E9;
    --tr-soft: #F7F7F7;
    --tr-red: #D62839;
    --tr-blue: #1E5FD8;
    --tr-red-tint: rgba(214, 40, 57, 0.08);
    /* Brand accent (logo yellow). Corner colours stay red/blue. */
    --tr-accent: #E08C29;
    --tr-accent-strong: #B8660F;
    --tr-accent-text: #A65C0C;
    --tr-accent-tint: rgba(224, 140, 41, 0.14);
    --tr-on-accent: #111111;
    --tr-wrap: 1300px;
    --tr-head: 'Antonio', 'Arial Narrow', sans-serif;
    --tr-body: 'Exo', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.tr4 {
    margin: 0;
    background: #FFFFFF;
    color: var(--tr-text);
    font-family: var(--tr-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

:where(.tr4) img { max-width: 100%; height: auto; } /* zero specificity: any class rule that sets a size wins */
.tr4 a { color: var(--tr-ink); }
.tr4 a:hover { color: var(--tr-accent-text); }
.tr4 h1, .tr4 h2, .tr4 h3, .tr4 h4 { font-family: var(--tr-body); color: var(--tr-ink); letter-spacing: -0.01em; }

.tr-wrap { max-width: var(--tr-wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.tr-mobile-only { display: none; }
.tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tr-skip { position: absolute; left: -9999px; top: 0; background: var(--tr-ink); color: #fff; padding: 12px 18px; z-index: 100; }
.tr-skip:focus { left: 12px; color: #fff; }
.tr4 :focus-visible { outline: 3px solid var(--tr-accent-text); outline-offset: 2px; }

/* ---------- Labels, headings ---------- */
.tr-eyebrow {
    display: inline-block;
    font-family: var(--tr-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--tr-muted);
}
.tr-eyebrow--red { color: var(--tr-accent-text); }
.tr-eyebrow--light { color: #B6B6B6; }
.tr-head { display: flex; flex-direction: column; gap: 2px; }
.tr-h2 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.tr-note { margin: 0; font-size: 14px; color: #666666; }
.tr-link { font-family: var(--tr-head); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.tr-c-red { color: var(--tr-red) !important; }
.tr-c-blue { color: var(--tr-blue) !important; }
.tr-bg-red { background: var(--tr-red); }
.tr-bg-accent { background: var(--tr-accent); }
.tr-bg-blue { background: var(--tr-blue); }
.tr-dot { display: inline-block; width: 10px; height: 10px; margin-right: 12px; flex: none; }
.tr-tag { padding: 4px 10px; background: var(--tr-ink); color: #fff; font-family: var(--tr-head); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.tr-center { text-align: center !important; }
.tr-strong { font-family: var(--tr-head); font-size: 20px; font-weight: 600; color: var(--tr-ink); }

/* ---------- Buttons ---------- */
.tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border: 0;
    font-family: var(--tr-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.tr4 .tr-btn--dark { background: var(--tr-ink); color: #fff; }
.tr4 .tr-btn--red { background: var(--tr-accent); color: var(--tr-on-accent); }
.tr4 .tr-btn--red:hover { color: var(--tr-on-accent); }
.tr4 .tr-btn--line { border: 1px solid var(--tr-ink); color: var(--tr-ink); background: #fff; }
.tr4 .tr-btn:hover { color: #fff; opacity: 0.9; }
.tr4 .tr-btn--line:hover { color: var(--tr-ink); }

/* ---------- Header ---------- */
.tr-header { background: #fff; border-bottom: 1px solid var(--tr-line); position: relative; z-index: 40; }
.tr-header__in { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; }
.tr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tr-ink); }
.tr-logo__img { display: block; width: auto; height: 66px; }
.tr-logo__mark { width: 36px; height: 36px; background: var(--tr-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--tr-head); font-weight: 700; font-size: 15px; }
.tr-logo__txt { display: flex; flex-direction: column; font-family: var(--tr-head); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1; }
.tr-logo__txt span { font-weight: 500; font-size: 13px; letter-spacing: 0.24em; color: var(--tr-accent-text); }

.tr-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 26px; }
.tr-nav__item { position: relative; }
.tr-nav__link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}
.tr4 .tr-nav__link.is-active { color: var(--tr-accent-text); }
.tr-dd {
    display: none; position: absolute; top: 100%; left: -18px; min-width: 230px; max-height: 70vh; overflow-y: auto;
    list-style: none; margin: 0; padding: 8px 0; background: #fff; border: 1px solid var(--tr-line); border-top: 3px solid var(--tr-ink);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.tr-dd a { display: block; padding: 10px 18px; font-size: 14px; text-decoration: none; }
.tr-dd a:hover { background: var(--tr-soft); }
.tr-nav__item.has-dd:hover .tr-dd,
.tr-nav__item.has-dd:focus-within .tr-dd { display: block; }

.tr-header__act { display: flex; align-items: center; gap: 10px; }
.tr-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--tr-line); background: #fff; color: var(--tr-ink); cursor: pointer; }
.tr-burger { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: var(--tr-ink); color: #fff; cursor: pointer; }

.tr-search { border-top: 1px solid var(--tr-line); background: var(--tr-soft); }
.tr-search__in { display: flex; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.tr-search input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--tr-ink); font-family: var(--tr-body); font-size: 15px; }

.tr-mm { border-top: 1px solid var(--tr-line); background: #fff; }
.tr-mm ul { list-style: none; margin: 0; padding: 0; }
.tr-mm > ul > li > a, .tr-mm summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 24px;
    border-bottom: 1px solid var(--tr-line); font-family: var(--tr-head); font-size: 16px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--tr-ink); text-decoration: none; cursor: pointer; list-style: none;
}
.tr-mm summary::-webkit-details-marker { display: none; }
.tr-mm details[open] summary svg { transform: rotate(180deg); }
.tr-mm details ul a { display: block; padding: 12px 36px; border-bottom: 1px solid var(--tr-line); font-size: 15px; text-decoration: none; background: var(--tr-soft); }
.tr-mm__app { display: flex; margin: 16px 24px 20px; min-height: 56px; font-size: 15px; }

/* ---------- Title band ---------- */
.tr-band { background: var(--tr-ink); color: #fff; }
.tr-band__in { padding-top: 56px; padding-bottom: 52px; display: flex; flex-direction: column; gap: 10px; }
.tr-band .tr-eyebrow { margin: 0; }
.tr4 .tr-band__title { margin: 0; font-size: 46px; font-weight: 700; line-height: 1.1; text-transform: uppercase; color: #fff; }
.tr-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #B6B6B6; }
.tr4 .tr-crumbs a { color: #fff; }

/* ---------- Page layout ---------- */
.tr-page { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 64px; }
.tr-section { display: flex; flex-direction: column; gap: 20px; }
.tr-pad { padding: 44px 40px; }
.tr-admin-row { display: flex; justify-content: center; margin-top: -32px; }

/* ---------- Match block ---------- */
.tr-match { border: 1px solid var(--tr-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 32px; }
.tr-match__side { flex: 1 1 260px; display: flex; align-items: center; gap: 20px; }
.tr-match__side--blue { flex-direction: row-reverse; text-align: right; }
.tr-match__side--blue .tr-match__who { align-items: flex-end; }
.tr-match__who { display: flex; flex-direction: column; gap: 4px; }
.tr-match__who .tr-eyebrow { font-size: 12px; letter-spacing: 0.24em; }
.tr4 .tr-match__name { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.tr-match__score { flex: 0 1 220px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tr-match__nums { display: flex; align-items: baseline; gap: 18px; color: var(--tr-ink); }
.tr-score { font-family: var(--tr-head); font-weight: 600; font-size: 84px; line-height: 1; }
.tr-match__vs { font-family: var(--tr-head); font-size: 20px; text-transform: uppercase; color: var(--tr-muted); }
.tr-match__score .tr-eyebrow { font-size: 12px; letter-spacing: 0.24em; }

.tr-photo { object-fit: cover; background: var(--tr-soft); flex: none; }
.tr-match .tr-photo { width: 120px; height: 140px; }
.tr-photo--red { border-bottom: 4px solid var(--tr-red); }
.tr-photo--blue { border-bottom: 4px solid var(--tr-blue); }

/* ---------- SSR ---------- */
.tr-ssr { background: var(--tr-soft); display: flex; flex-direction: column; gap: 32px; }
.tr-ssr__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.tr-ssr__head p { margin: 0; max-width: 440px; font-size: 15px; }
.tr-ssr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; }
.tr-ssr-card { background: #fff; padding: 24px; display: flex; align-items: stretch; gap: 24px; }
.tr-ssr-card__photo { width: 140px; height: 170px; }
.tr-ssr-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.tr-ssr-card__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.tr-who { display: flex; align-items: center; font-weight: 600; color: var(--tr-ink); }
.tr-who .tr-dot { margin-right: 10px; }
.tr-ssr-card__value { font-family: var(--tr-head); font-weight: 700; font-size: 96px; line-height: 0.9; }
.tr-ssr-card__value span { font-size: 44px; }
.tr-bar { height: 12px; background: var(--tr-line); }
.tr-bar > span { display: block; height: 100%; }

/* ---------- Tables ---------- */
.tr-table-box { overflow-x: auto; border: 1px solid var(--tr-line); }
.tr-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.tr-table thead th {
    background: var(--tr-ink); color: #fff; text-align: left; padding: 16px 20px;
    font-family: var(--tr-head); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.tr-table thead th.tr-th-ssr { background: var(--tr-accent); color: var(--tr-on-accent); font-weight: 600; }
.tr-table tbody th, .tr-table tbody td { padding: 18px 20px; border-top: 1px solid var(--tr-line); }
.tr-table tbody tr:nth-child(even) { background: var(--tr-soft); }
.tr-table tbody th { text-align: left; font-weight: 600; color: var(--tr-ink); }
.tr-table .tr-td-ssr { background: var(--tr-accent-tint); font-family: var(--tr-head); font-size: 22px; font-weight: 700; color: var(--tr-ink); }

/* ---------- Fact grid ---------- */
.tr-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); border-top: 1px solid var(--tr-line); border-left: 1px solid var(--tr-line); }
.tr-facts > div { padding: 20px; border-right: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); }
.tr-facts dt { font-family: var(--tr-head); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tr-muted); }
.tr-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--tr-ink); }
.tr-facts--strip > div { padding: 16px 20px; }
.tr-facts > .tr-facts__person { position: relative; padding-left: 84px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; }
.tr-facts__avatar { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 60px; object-fit: cover; object-position: center top; background: var(--tr-soft); }
.tr-page--match { padding-top: 40px; gap: 40px; }
.tr-page--match .tr-facts--strip { margin-bottom: -16px; }

/* ---------- App CTA ---------- */
.tr-cta-wrap { padding-bottom: 80px; }
.tr-cta { background: var(--tr-ink); color: #fff; padding: 48px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.tr-cta__txt { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.tr4 .tr-cta__title { margin: 0; font-size: 34px; font-weight: 700; line-height: 1.15; text-transform: uppercase; color: #fff; }
.tr-cta p { margin: 0; color: #C2C2C2; }
.tr-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.tr-store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px; text-decoration: none; }
.tr4 .tr-store--ios { background: #fff; color: var(--tr-ink); }
.tr4 .tr-store--android { background: var(--tr-accent); color: var(--tr-on-accent); }
.tr4 .tr-store:hover { opacity: 0.9; }
.tr4 .tr-store--ios:hover { color: var(--tr-ink); }
.tr4 .tr-store--android:hover { color: var(--tr-on-accent); }
.tr-store__txt { display: flex; flex-direction: column; line-height: 1.2; }
.tr-store__txt small { font-family: var(--tr-head); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.tr-store__txt strong { font-size: 17px; }
.tr-store__logo { flex: none; }
.tr-store--bar { width: 48px; min-height: 48px; padding: 0; justify-content: center; }

/* ---------- Footer ---------- */
.tr-footer { background: var(--tr-ink); color: #B6B6B6; }
.tr-footer__cols { padding-top: 56px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.tr-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tr-footer__col p { margin: 0; }
.tr4 .tr-footer a { color: #B6B6B6; text-decoration: none; }
.tr4 .tr-footer a:hover { color: #fff; }
.tr-footer__brand { font-weight: 800; font-size: 18px; text-transform: uppercase; color: #fff; }
.tr-footer__title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.tr-footer__bottom { padding-top: 20px; padding-bottom: 20px; border-top: 1px solid #333333; font-size: 13px; }
.tr4 .tr-footer__bottom a { color: #fff; }

/* ---------- Sticky app bar ---------- */
.tr-appbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--tr-ink); color: #fff; border-top: 3px solid var(--tr-accent);
    transform: translateY(0); transition: transform 0.25s ease;
}
.tr-appbar.is-hidden { transform: translateY(110%); }
.tr-appbar__in { min-height: 68px; padding-top: 8px; padding-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tr-appbar__txt { margin: 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.tr-appbar__label { font-family: var(--tr-head); font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: #B6B6B6; white-space: nowrap; }
.tr-appbar__title { font-weight: 700; font-size: 22px; line-height: 1.2; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-appbar .tr-stores { flex: none; gap: 8px; flex-wrap: nowrap; }
body.tr4 { padding-bottom: 0; }

.tr-admin-debug { background: #000; color: #0f0; padding: 20px; font-family: monospace; font-size: 12px; }

/* ---------- Shared bits for list pages ---------- */
.tr-page--tight { padding-top: 40px; gap: 32px; }
.tr-right { text-align: right !important; }
.tr-empty { margin: 0; padding: 24px; border: 1px solid var(--tr-line); text-align: center; }
.tr4 .tr-btn--sm { min-height: 44px; padding: 0 14px; font-size: 12px; letter-spacing: 0.14em; }
.tr-btn--block { display: flex; width: 100%; }
.tr-section__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tr-field { display: flex; flex-direction: column; gap: 4px; }
.tr-field label { font-family: var(--tr-head); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tr-muted); }
.tr-field input { width: 280px; max-width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--tr-ink); font-family: var(--tr-body); font-size: 15px; }

/* Tabs and chips */
.tr-tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--tr-line); }
.tr-tab {
    appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
    min-height: 52px; padding: 0 20px; font-family: var(--tr-head); font-size: 15px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--tr-muted); cursor: pointer;
}
.tr-tab[aria-selected="true"] { color: var(--tr-ink); border-bottom-color: var(--tr-ink); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chip {
    appearance: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--tr-line); background: #fff;
    color: var(--tr-ink); font-family: var(--tr-head); font-size: 15px; font-weight: 500; cursor: pointer;
}
.tr-chip:hover { border-color: var(--tr-ink); }
.tr-chip[aria-selected="true"] { background: var(--tr-ink); border-color: var(--tr-ink); color: #fff; }
.tr-panel { display: flex; flex-direction: column; gap: 28px; }
.tr-panel[hidden] { display: none; }

/* Two-column layout (main + side) */
.tr-split { padding-top: 56px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; }
.tr-split__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.tr-split__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* Results list (championship) */
.tr-results { display: flex; flex-direction: column; border-top: 1px solid var(--tr-line); }
.tr-result { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 0; border-bottom: 1px solid var(--tr-line); }
.tr-result__round { width: 84px; flex: none; text-align: center; border-right: 1px solid var(--tr-line); padding-right: 20px; }
.tr-result__short { display: block; font-family: var(--tr-head); font-weight: 600; font-size: 30px; line-height: 1; color: var(--tr-ink); }
.tr-result__tour { display: block; margin-top: 6px; font-family: var(--tr-head); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-muted); }
.tr-result__match { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.tr-result__side { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.tr-result__side--blue { justify-content: flex-end; text-align: right; }
.tr-result__who { display: flex; flex-direction: column; min-width: 0; }
.tr-result__name { font-weight: 700; font-size: 17px; line-height: 1.2; text-transform: uppercase; color: var(--tr-ink); }
.tr-result__side:hover .tr-result__name { color: var(--tr-accent-text); }
.tr-result__country { font-size: 14px; color: #666; }
.tr-result__photo { width: 60px; height: 78px; object-fit: cover; object-position: center top; }
.tr-photo.tr-result__photo { border-bottom-width: 3px; }
.tr-result__score { display: flex; align-items: center; gap: 12px; }
.tr-result__pts { min-width: 30px; text-align: center; font-family: var(--tr-head); font-size: 28px; font-weight: 500; line-height: 1; color: var(--tr-muted); }
.tr-result__pts.is-win { font-weight: 700; color: var(--tr-ink); }

/* Info box + app box (side) */
.tr-infobox { border: 1px solid var(--tr-line); }
.tr-infobox__head { padding: 24px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--tr-line); }
.tr-infobox__logo { width: 64px; height: 64px; object-fit: contain; flex: none; }
.tr4 .tr-infobox__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.tr-infobox__list { margin: 0; padding: 8px 24px; }
.tr-infobox__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--tr-line); }
.tr-infobox__list dt { font-family: var(--tr-head); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tr-muted); }
.tr-infobox__list dd { margin: 0; font-weight: 600; color: var(--tr-ink); text-align: right; }
.tr-infobox__foot { padding: 16px 24px 24px; }
.tr-appbox { background: var(--tr-ink); color: #fff; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.tr4 .tr-appbox__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: #fff; }
.tr-appbox p { margin: 0; font-size: 15px; color: #C2C2C2; }
.tr-appbox .tr-btn { margin-top: 6px; }

/* Athlete header */
.tr-band--athlete .tr-athlete { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; }
.tr-athlete__photo { width: 180px; height: 210px; background: #2A2A2A; border-bottom-width: 5px; }
.tr-athlete__who { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.tr-athlete__who .tr-eyebrow { margin: 0; }
.tr-athlete__meta { margin: 0; color: #C2C2C2; }
.tr-kpis { margin: 0; display: flex; flex-wrap: wrap; gap: 1px; background: #333; }
.tr-kpis > div { background: var(--tr-ink); padding: 18px 24px; min-width: 110px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.tr-kpis dd { margin: 0; font-family: var(--tr-head); font-size: 40px; font-weight: 600; line-height: 1; color: #fff; }
.tr-kpis dt { margin-top: 6px; font-family: var(--tr-head); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #B6B6B6; }
.tr-kpis .tr-kpis__ssr { background: var(--tr-accent); min-width: 120px; }
.tr-kpis__ssr dd { color: var(--tr-on-accent); }
.tr-kpis__ssr dd { font-weight: 700; }
.tr-kpis__ssr dt { color: var(--tr-on-accent); }

/* Athlete matches */
.tr-events { gap: 40px; }
.tr-event__head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; }
.tr-event__logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
.tr4 .tr-event__title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.tr4 .tr-event__title a { text-decoration: none; }
.tr-event__meta { font-size: 14px; color: #666; }
.tr-table-box--top { border: 0; border-top: 2px solid var(--tr-ink); }
.tr-table--plain { min-width: 760px; }
.tr-table--plain thead th { background: none; color: var(--tr-muted); padding: 12px 16px; font-size: 12px; letter-spacing: 0.16em; }
.tr-table--plain thead th.tr-th-ssr { background: none; color: var(--tr-accent-text); }
.tr-table--plain tbody tr:nth-child(even) { background: none; }
.tr-table--plain tbody td { padding: 16px; }
.tr-round { display: block; font-family: var(--tr-head); font-size: 22px; font-weight: 600; color: var(--tr-ink); line-height: 1.1; }
.tr-round__name { display: block; font-family: var(--tr-head); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-muted); }
.tr-opp { display: flex; align-items: center; gap: 12px; }
.tr-opp__photo { width: 40px; height: 52px; object-fit: cover; object-position: center top; background: var(--tr-soft); flex: none; }
.tr-table--rank .tr-opp__photo { width: 48px; height: 62px; }
.tr-opp__who { display: flex; flex-direction: column; line-height: 1.3; }
.tr-opp__who a { font-weight: 600; text-decoration: none; }
.tr-opp__who span { font-size: 13px; color: #666; }
.tr-bar--thin { display: block; height: 4px; margin-top: 4px; }
.tr-bar--thin > span { display: block; height: 100%; }

/* Videos */
.tr-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.tr-video { border: 1px solid var(--tr-line); border-top: 4px solid var(--tr-red); display: flex; flex-direction: column; }
.tr-video--blue { border-top-color: var(--tr-blue); }
.tr-video__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--tr-ink); overflow: hidden; }
.tr-video__img img { width: 100%; height: 100%; object-fit: cover; }
.tr-video__play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; background: var(--tr-accent); color: var(--tr-on-accent); display: flex; align-items: center; justify-content: center; }
.tr-video__play svg { fill: currentColor; }
.tr-video__src { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-family: var(--tr-head); font-size: 11px; letter-spacing: 0.1em; padding: 2px 8px; text-transform: uppercase; }
.tr-video__body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tr-video__event { font-family: var(--tr-head); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-muted); }
.tr4 .tr-video__title { margin: 0; font-size: 17px; font-weight: 700; text-transform: uppercase; }
.tr-video__title span { color: var(--tr-muted); font-weight: 400; }
.tr-video__foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.tr-adminnote { padding: 14px 18px; border: 1px dashed #C9A000; background: #FFFBEA; font-size: 13px; color: #6B5900; }
.tr-adminnote ul { margin: 6px 0 0; padding-left: 18px; }

/* SEO text */
.tr-seo { border-top: 1px solid var(--tr-line); padding-top: 32px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.tr4 .tr-seo h2 { margin: 0; font-size: 20px; font-weight: 700; }
.tr-seo p { margin: 0; }

/* Ranking */
.tr-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.tr4 .tr-podium__card { display: flex; gap: 18px; align-items: stretch; border: 1px solid var(--tr-line); text-decoration: none; color: var(--tr-text); }
.tr4 .tr-podium__card:hover { border-color: var(--tr-ink); color: var(--tr-text); }
.tr-podium__img { width: 110px; flex: none; position: relative; background: var(--tr-soft); }
.tr-podium__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-podium__rank { position: absolute; top: 0; left: 0; width: 40px; height: 40px; background: var(--tr-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--tr-head); font-size: 20px; font-weight: 700; }
.tr-podium__body { padding: 18px 18px 18px 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.tr-podium__name { font-weight: 700; font-size: 17px; line-height: 1.25; text-transform: uppercase; color: var(--tr-ink); }
.tr-podium__ssr { margin-top: 6px; font-family: var(--tr-head); font-size: 52px; font-weight: 700; line-height: 1; color: var(--tr-accent-strong); }
.tr-podium__ssr small { font-size: 26px; }
.tr-podium__meta { font-family: var(--tr-head); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tr-muted); }
.tr-table--rank { min-width: 860px; }
.tr-table--rank tbody td:nth-child(3) { min-width: 170px; }
.tr-table--rank thead th { padding: 0 16px; }
.tr-table--rank thead th button {
    appearance: none; background: none; border: 0; color: inherit; cursor: pointer; width: 100%; min-height: 52px;
    font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit; padding: 0;
}
.tr-table--rank th.tr-center button { text-align: center; }
.tr-table--rank th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 10px; }
.tr-table--rank th[aria-sort="descending"] button::after { content: " ▼"; font-size: 10px; }
.tr-table--rank tbody td { padding: 14px 16px; border-top: 1px solid var(--tr-line); }
.tr-table--rank tbody tr:nth-child(even) { background: none; }
.tr-table--rank tr.is-unranked td { color: var(--tr-muted); }
.tr-table--rank tr.is-unranked .tr-ssrcell > span:first-child, .tr-table--rank tr.is-unranked .tr-strong { color: var(--tr-muted); }
.tr-ssrcell { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.tr-ssrcell > span:first-child { min-width: 48px; }
.tr-ssrcell .tr-bar--thin { flex: 1; height: 6px; margin: 0; background: var(--tr-line); }
.tr-table--plain .tr-bar--thin { background: var(--tr-line); }

/* ---------- Home ---------- */
.tr-hero { position: relative; overflow: hidden; background: var(--tr-ink); color: #fff; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center; }
.tr-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; container-type: size; }
.tr-hero__video {
    position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
    width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
    transform: translate(-50%, -50%) scale(1.15); opacity: 0; transition: opacity 1.2s ease;
}
.tr-hero.is-playing .tr-hero__video { opacity: 1; }
.tr-hero__shade {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(17, 17, 17, 0.45) 0%, rgba(17, 17, 17, 0.8) 75%),
        linear-gradient(180deg, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0.25) 40%, rgba(17, 17, 17, 0.9) 100%);
}
.tr-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--tr-accent); }
.tr-hero__in { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.tr-hero__in .tr-eyebrow { margin: 0; color: var(--tr-accent); }
.tr4 .tr-hero__title { margin: 0; max-width: 980px; font-size: clamp(42px, 7vw, 88px); font-weight: 800; line-height: 1; text-transform: uppercase; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.tr-hero__lead { margin: 0; max-width: 640px; font-size: 18px; color: #E2E2E2; }
.tr-hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.tr4 .tr-btn--lg { min-height: 52px; font-size: 14px; letter-spacing: 0.12em; }
.tr4 .tr-btn--white { background: #fff; color: var(--tr-ink); }
.tr4 .tr-btn--white:hover { color: var(--tr-ink); }
.tr4 .tr-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; background: rgba(0, 0, 0, 0.15); }
.tr4 .tr-btn--ghost:hover { border-color: #fff; color: #fff; }
@media (prefers-reduced-motion: reduce) { .tr-hero__video { display: none; } }
.tr-page--home { gap: 72px; }

.tr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.tr4 .tr-card { display: flex; flex-direction: column; border: 1px solid var(--tr-line); text-decoration: none; color: var(--tr-text); }
.tr4 .tr-card:hover { border-color: var(--tr-ink); color: var(--tr-text); }
.tr-card__img { height: 150px; background: #fff; border-bottom: 1px solid var(--tr-line); position: relative; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tr-card__img img { max-height: 100%; width: auto; object-fit: contain; }
.tr-card__year { position: absolute; top: 0; left: 0; padding: 6px 12px; background: var(--tr-ink); color: #fff; font-family: var(--tr-head); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.tr-card__body { padding: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.tr-card__cls { font-family: var(--tr-head); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tr-accent-text); }
.tr-card__name { font-weight: 700; font-size: 17px; line-height: 1.3; text-transform: uppercase; color: var(--tr-ink); }
.tr4 .tr-card:hover .tr-card__name { color: var(--tr-accent-text); }

.tr-toplists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.tr-toplist { background: #fff; display: flex; flex-direction: column; }
.tr-toplist__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 2px solid var(--tr-ink); }
.tr-toplist__head > span { font-family: var(--tr-head); font-size: 16px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-ink); }
.tr4 .tr-toplist__row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--tr-line); text-decoration: none; color: var(--tr-text); }
.tr4 .tr-toplist__row:hover { background: var(--tr-soft); color: var(--tr-text); }
.tr-toplist__rank { width: 24px; font-family: var(--tr-head); font-size: 22px; font-weight: 600; color: var(--tr-ink); }
.tr-toplist .tr-opp__photo { width: 48px; height: 62px; }
.tr-toplist__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; }
.tr-toplist__name { font-size: 16px; font-weight: 600; color: var(--tr-ink); }
.tr-toplist__ssr { font-family: var(--tr-head); font-size: 28px; font-weight: 700; color: var(--tr-accent-strong); }

.tr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 1px solid var(--tr-line); border-left: 1px solid var(--tr-line); }
.tr-steps > div { padding: 28px; border-right: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); display: flex; flex-direction: column; gap: 8px; }
.tr-steps__n { font-family: var(--tr-head); font-size: 40px; font-weight: 700; line-height: 1; color: var(--tr-accent-strong); }
.tr4 .tr-steps h3 { margin: 0; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.tr-steps p { margin: 0; font-size: 15px; }

/* Championships list */
.tr-cards--list { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 24px; }
.tr-card__img--tall { height: 170px; }
.tr-card__badge { position: absolute; top: 0; right: 0; padding: 6px 12px; background: var(--tr-accent); color: var(--tr-on-accent); font-family: var(--tr-head); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.tr-cards--list .tr-card__body { padding: 20px; gap: 10px; flex: 1; }
.tr-card__facts { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tr-card__facts > div { display: flex; gap: 8px; }
.tr-card__facts dt { width: 76px; flex: none; font-family: var(--tr-head); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-muted); }
.tr-card__facts dd { margin: 0; color: var(--tr-ink); }
.tr-card__more { margin-top: auto; padding-top: 8px; font-family: var(--tr-head); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-ink); }
.tr4 .tr-card:hover .tr-card__more { color: var(--tr-accent-text); }

/* Match list table (weight, tour) */
[data-tr-filter] { display: flex; flex-direction: column; gap: 32px; }
.tr-section__bar--tabs { align-items: flex-end; }
.tr-section__bar--tabs .tr-tabs { flex: 1 1 auto; }
.tr-tab.is-empty { opacity: 0.4; }
.tr-table-box[hidden] { display: none; }
.tr-table--matches { min-width: 980px; }
.tr-table--matches tbody td { padding: 14px 16px; vertical-align: middle; }
.tr-table--matches thead th { padding: 16px; }
.tr-table--matches .tr-opp__photo { width: 48px; height: 62px; border-bottom-width: 3px; }
.tr-table--matches .tr-opp__who a { color: var(--tr-ink); }
.tr-table--matches .tr-opp__who .tr-round__name { font-size: 12px; color: var(--tr-muted); }

/* ---------- Text content (posts, pages, FAQ answers) ---------- */
.tr-prose { font-size: 17px; line-height: 1.75; color: #444; max-width: 760px; }
.tr-prose > *:first-child { margin-top: 0; }
.tr-prose > *:last-child { margin-bottom: 0; }
.tr-prose p, .tr-prose ul, .tr-prose ol, .tr-prose blockquote, .tr-prose figure, .tr-prose table { margin: 0 0 1.2em; }
.tr4 .tr-prose h2 { margin: 1.6em 0 0.5em; font-size: 28px; font-weight: 700; line-height: 1.25; text-transform: uppercase; }
.tr4 .tr-prose h3 { margin: 1.4em 0 0.4em; font-size: 22px; font-weight: 700; line-height: 1.3; }
.tr4 .tr-prose h4 { margin: 1.2em 0 0.4em; font-size: 18px; font-weight: 700; }
.tr-prose a { color: var(--tr-ink); text-decoration-color: var(--tr-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tr-prose ul, .tr-prose ol { padding-left: 1.3em; }
.tr-prose li { margin-bottom: 0.35em; }
.tr-prose blockquote { padding: 4px 0 4px 20px; border-left: 4px solid var(--tr-accent); font-size: 19px; color: var(--tr-ink); }
.tr-prose img { display: block; height: auto; }
.tr-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--tr-muted); }
.tr-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tr-prose th, .tr-prose td { padding: 10px 12px; border: 1px solid var(--tr-line); text-align: left; }
.tr-prose th { background: var(--tr-soft); color: var(--tr-ink); }
.tr-prose iframe, .tr-prose video { max-width: 100%; }
.tr-prose .alignleft { float: left; margin: 0 1.2em 1em 0; }
.tr-prose .alignright { float: right; margin: 0 0 1em 1.2em; }
.tr-prose .aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Team ---------- */
.tr-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.tr-person { display: flex; flex-direction: column; border: 1px solid var(--tr-line); }
.tr-person__img { display: block; height: 300px; background: var(--tr-soft); border-bottom: 4px solid var(--tr-accent); overflow: hidden; }
.tr-person__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tr-person__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tr-person__body .tr-eyebrow { font-size: 12px; letter-spacing: 0.24em; }
.tr4 .tr-person__name { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.tr4 .tr-person__name a { text-decoration: none; }
.tr-person__body p { margin: 0; font-size: 15px; }
.tr-person__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tr-social { display: flex; flex-wrap: wrap; gap: 8px; }
.tr4 .tr-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--tr-line); color: var(--tr-ink); }
.tr4 .tr-social a:hover { border-color: var(--tr-ink); color: var(--tr-ink); }

/* ---------- FAQ ---------- */
.tr-faq { border-top: 2px solid var(--tr-ink); }
.tr-faq__item { border-bottom: 1px solid var(--tr-line); }
.tr-faq__item summary {
    list-style: none; cursor: pointer; min-height: 64px; padding: 18px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    font-size: 18px; font-weight: 600; color: var(--tr-ink);
}
.tr-faq__item summary::-webkit-details-marker { display: none; }
.tr-faq__item summary:hover { color: var(--tr-accent-text); }
.tr-faq__sign { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tr-line); color: var(--tr-ink); transition: transform 0.2s ease; }
.tr-faq__item[open] .tr-faq__sign { transform: rotate(45deg); background: var(--tr-accent); border-color: var(--tr-accent); }
.tr-faq__a { padding: 0 56px 22px 0; font-size: 16px; }
.tr-sidebox { background: var(--tr-soft); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.tr4 .tr-sidebox__title { margin: 0; font-size: 22px; font-weight: 700; text-transform: uppercase; }
.tr-sidebox p { margin: 0; font-size: 15px; }

/* ---------- Posts (news cards) ---------- */
.tr-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 32px 24px; }
.tr4 .tr-post { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--tr-text); }
.tr4 .tr-post:hover { color: var(--tr-text); }
.tr-post__img { display: block; height: 210px; background: var(--tr-soft); overflow: hidden; }
.tr-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.tr4 .tr-post:hover .tr-post__img img { transform: scale(1.03); }
.tr-post__date { font-family: var(--tr-head); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tr-muted); }
.tr-post__title { font-weight: 700; font-size: 19px; line-height: 1.3; text-transform: uppercase; color: var(--tr-ink); }
.tr4 .tr-post:hover .tr-post__title { color: var(--tr-accent-text); }
.tr-post__excerpt { font-size: 15px; }
.tr-post__more { font-family: var(--tr-head); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-ink); }

/* Analyst */
.tr-athlete__photo--analyst { width: 170px; height: 200px; object-fit: cover; object-position: top; border-bottom: 5px solid var(--tr-accent); background: #2A2A2A; }
.tr-split--flush { padding: 0; }
.tr-split__side .tr-social { margin-top: 4px; }

/* ---------- News list ---------- */
.tr4 .tr-lead { display: flex; flex-wrap: wrap; border: 1px solid var(--tr-line); text-decoration: none; color: var(--tr-text); }
.tr4 .tr-lead:hover { border-color: var(--tr-ink); color: var(--tr-text); }
.tr-lead__img { flex: 1 1 520px; min-height: 340px; background: var(--tr-soft); overflow: hidden; }
.tr-lead__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-lead__body { flex: 1 1 380px; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.tr-lead__title { font-weight: 700; font-size: 32px; line-height: 1.15; text-transform: uppercase; color: var(--tr-ink); }
.tr4 .tr-lead:hover .tr-lead__title { color: var(--tr-accent-text); }
.tr-lead__excerpt { font-size: 16px; }
.tr-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tr-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 14px; border: 1px solid var(--tr-line); font-family: var(--tr-head); font-size: 16px; text-decoration: none; color: var(--tr-ink); }
.tr-pager a.page-numbers:hover { border-color: var(--tr-ink); }
.tr-pager .page-numbers.current { background: var(--tr-ink); border-color: var(--tr-ink); color: #fff; }
.tr-pager .page-numbers.dots { border: 0; }

/* ---------- Article ---------- */
.tr-article { gap: 28px; }
.tr-article__img { margin: 0; background: var(--tr-soft); }
.tr-article__img img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.tr-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--tr-line); }
.tr-tags, .tr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-tags .tr-eyebrow, .tr-share .tr-eyebrow { font-size: 12px; letter-spacing: 0.2em; margin-right: 4px; }
.tr4 .tr-tags a { padding: 6px 12px; border: 1px solid var(--tr-line); font-size: 14px; text-decoration: none; }
.tr4 .tr-tags a:hover { border-color: var(--tr-ink); }
.tr4 .tr-share a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--tr-ink); color: #fff; }
.tr4 .tr-share a:hover { background: var(--tr-accent); color: var(--tr-on-accent); }
.tr-recent { display: flex; flex-direction: column; border-top: 2px solid var(--tr-ink); }
.tr4 .tr-recent__title { margin: 0; padding: 16px 0; font-family: var(--tr-head); font-size: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.tr4 .tr-recent__item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--tr-line); text-decoration: none; color: var(--tr-text); }
.tr-recent__img { width: 84px; height: 64px; flex: none; background: var(--tr-soft); overflow: hidden; }
.tr-recent__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-recent__txt { display: flex; flex-direction: column; gap: 2px; }
.tr-recent__txt .tr-post__date { font-size: 11px; }
.tr-recent__name { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--tr-ink); }
.tr4 .tr-recent__item:hover .tr-recent__name { color: var(--tr-accent-text); }
.tr-recent .tr-btn { margin-top: 16px; }
.tr-prose--page { max-width: 780px; }

/* ---------- Search ---------- */
.tr-searchform { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.tr-searchform input { flex: 1 1 260px; min-height: 52px; padding: 0 16px; border: 1px solid var(--tr-ink); font-family: var(--tr-body); font-size: 16px; }
.tr-searchform .tr-btn { min-height: 52px; }
.tr-searchform--band input { border: 0; }
.tr-band__in .tr-searchform { margin-top: 8px; }
.tr-results-list { border-top: 2px solid var(--tr-ink); }
.tr4 .tr-hit { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--tr-line); text-decoration: none; color: var(--tr-text); }
.tr4 .tr-hit:hover { color: var(--tr-text); background: linear-gradient(90deg, var(--tr-soft), transparent); }
.tr-hit__img { width: 120px; height: 80px; flex: none; background: var(--tr-soft); overflow: hidden; }
.tr-hit__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-hit__img--logo img { object-fit: contain; padding: 8px; }
.tr-hit__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.tr-hit__type { font-family: var(--tr-head); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tr-accent-text); }
.tr-hit__title { font-weight: 700; font-size: 19px; line-height: 1.3; text-transform: uppercase; color: var(--tr-ink); }
.tr-hit__arrow { font-family: var(--tr-head); font-size: 22px; color: var(--tr-ink); }

/* ---------- 404 ---------- */
.tr-404 { padding-top: 96px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.tr-404__num { flex: 0 1 auto; font-family: var(--tr-head); font-size: 220px; font-weight: 700; line-height: 0.85; color: var(--tr-ink); }
.tr-404__num span { color: var(--tr-accent); }
.tr-404__txt { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.tr-404__txt p { margin: 0; max-width: 480px; font-size: 17px; }
.tr4 .tr-404__title { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.tr-404__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px; }

/* ==========================================================================
   Analysis coming soon (pending matches)
   ========================================================================== */
.tr-soon { display: inline-block; padding: 8px 14px; background: var(--tr-accent-tint); color: var(--tr-accent-text); font-family: var(--tr-head); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; text-align: center; text-decoration: none; white-space: nowrap; }
a.tr-soon:hover { background: var(--tr-accent); color: var(--tr-on-accent); }
.tr-soon--inline { padding: 6px 12px; font-size: 12px; }
.tr-match__score .tr-soon { font-size: 15px; padding: 14px 20px; }
.tr-result.is-pending .tr-result__score { min-width: 0; }
.tr-pending { border-left: 6px solid var(--tr-accent); background: #fff; border-top: 1px solid var(--tr-line); border-right: 1px solid var(--tr-line); border-bottom: 1px solid var(--tr-line); display: flex; flex-direction: column; gap: 12px; }
.tr-pending p { margin: 0; max-width: 720px; color: var(--tr-text); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .tr-nav, .tr-getapp { display: none !important; }
    .tr-burger { display: inline-flex; }
}

@media (max-width: 640px) {
    .tr-header__in { min-height: 68px; }
    .tr-band__in { padding-top: 36px; padding-bottom: 32px; }
    .tr4 .tr-band__title { font-size: 31px; }
    .tr-logo__img { height: 58px; }
    .tr-header__in { padding-left: 16px; padding-right: 12px; }
    .tr-header__act { zoom: 0.95; margin-left: auto; gap: 6px; }
    .tr-h2, .tr4 .tr-cta__title { font-size: 24px; }
    .tr-page { padding-top: 36px; gap: 44px; }
    .tr-pad, .tr-cta { padding: 28px 18px; }
    .tr-match { padding: 24px 16px; }
    .tr-score { font-size: 56px; }
    .tr4 .tr-match__name { font-size: 22px; }
    .tr-match .tr-photo { width: 96px; height: 112px; }
    .tr-ssr-card { padding: 16px; gap: 14px; }
    .tr-ssr-card__photo { width: 84px; height: 110px; }
    .tr-ssr-card__value { font-size: 60px; }
    .tr-ssr-card__value span { font-size: 30px; }
    .tr-appbar__label { display: none; }
    .tr-appbar__title { font-size: 15px; }
    .tr-store--bar { width: 44px; min-height: 44px; }
    .tr-cta-wrap { padding-left: 0; padding-right: 0; padding-bottom: 0; }
    .tr-split { padding-top: 32px; gap: 32px; }
    .tr-result__round { width: auto; border-right: 0; padding-right: 0; text-align: left; display: flex; align-items: baseline; gap: 10px; }
    .tr-result__short { font-size: 22px; }
    .tr-result__tour { margin-top: 0; }
    .tr-result__match { flex-basis: 100%; gap: 10px; align-items: start; }
    .tr-result__score { align-self: start; margin-top: 60px; }
    .tr-result__side { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tr-result__side--blue { align-items: flex-end; }
    .tr4 .tr-result__photo { order: -1; width: 100%; height: 160px; object-fit: cover; object-position: center; }
    .tr-result__name { font-size: 14px; overflow-wrap: anywhere; }
    .tr-result__pts { font-size: 22px; min-width: 22px; }
    .tr-result__score { gap: 8px; }
    .tr-band--athlete .tr-athlete { padding-top: 32px; padding-bottom: 32px; gap: 20px; }
    .tr-athlete__photo { width: 120px; height: 140px; }
    .tr-kpis { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .tr-kpis dd { font-size: 30px; }
    .tr-field, .tr-field input { width: 100%; }
    .tr-podium__ssr { font-size: 40px; }
    /* Tables as cards (labels from v4.js) */
    .tr-opp__who .tr-mobile-only { display: block; }
    .tr-table-box { overflow: visible; }
    .tr4 .tr-table--cards { min-width: 0; display: block; }
    .tr-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .tr-table--cards tbody { display: block; }
    .tr4 .tr-table--cards tbody tr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 16px; border-top: 1px solid var(--tr-line); position: relative; }
    .tr4 .tr-table--cards tbody tr { align-items: flex-start; }
    .tr4 .tr-table--cards tbody tr[hidden] { display: none; }
    .tr4 .tr-table--cards tbody tr:first-child { border-top: 0; }
    .tr4 .tr-table--cards tbody th, .tr4 .tr-table--cards tbody td { display: block; flex: 1 1 0; min-width: 52px; padding: 0; border: 0; text-align: left; }
    .tr-table--cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--tr-head); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tr-muted); white-space: nowrap; }
    .tr4 .tr-table--cards .tr-cell-main, .tr4 .tr-table--cards .tr-cell-full, .tr4 .tr-table--cards .tr-cell-sub { flex-basis: 100%; }
    .tr4 .tr-table--cards .tr-cell-sub { display: none; }
    .tr4 .tr-table--cards .tr-cell-action { flex: 0 0 auto; min-width: 0; }
    .tr4 .tr-table--cards tr.has-rank { padding-left: 56px; }
    .tr4 .tr-table--cards .tr-cell-rank { position: absolute; left: 16px; top: 16px; min-width: 0; width: 28px; height: 62px; display: flex; align-items: center; }
    .tr4 .tr-table--cards .tr-td-ssr { flex: 1.4 1 0; padding: 6px 10px; font-size: 20px; }
    .tr4 .tr-table--cards .tr-ssrcell { min-width: 0; }
    .tr4 .tr-table--cards .tr-td-ssr .tr-ssrcell > span:first-child { min-width: 0; }
    .tr-table--cards .tr-strong { font-size: 20px; }
    .tr-hero { min-height: 520px; }
    .tr-hero__in { padding-top: 56px; padding-bottom: 64px; gap: 16px; }
    .tr-hero__lead { font-size: 16px; }
    .tr-hero__btns .tr-btn { flex: 0 0 auto; }
    .tr-page--home { gap: 48px; }
    .tr-faq__a { padding-right: 0; }
    .tr-faq__item summary { font-size: 16px; }
    .tr-prose { font-size: 16px; }
    .tr-lead__img { min-height: 220px; }
    .tr-lead__body { padding: 24px; }
    .tr-lead__title { font-size: 24px; }
    .tr-hit { gap: 14px; }
    .tr-hit__img { width: 72px; height: 56px; }
    .tr-hit__title { font-size: 16px; }
    .tr-hit__arrow { display: none; }
    .tr-404 { padding-top: 48px; gap: 24px; }
    .tr-404__num { font-size: 120px; }
    .tr4 .tr-404__title { font-size: 28px; }
}
