:root { color-scheme: light; --ink: #142d40; --muted: #52677a; --navy: #103b5c; --teal: #137e76; --line: #dce5eb; --paper: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: #f1f5f7; color: var(--ink); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, select, input { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled, select:disabled { opacity: .55; cursor: default; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #cf870b; outline-offset: 3px; }
[hidden] { display: none !important; }
.tt-page { max-width: 1240px; margin: auto; padding: 24px; }
.tt-header { border-radius: 12px; overflow: hidden; background: var(--navy); color: white; }
.tt-topbar { padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #ffffff25; }
.tt-brand { color: white; font-weight: 780; font-size: 17px; text-decoration: none; }
.tt-brand span { color: #a9ced9; font-weight: 500; margin-left: 7px; }
.tt-topbar nav { display: flex; gap: 8px; }
.tt-topbar nav a { color: #d9e8ee; font-weight: 650; padding: 7px 14px; text-decoration: none; border-radius: 6px; }
.tt-topbar nav a[aria-current] { background: #ffffff19; color: #fff; }
.tt-heading { padding: 30px 28px 24px; display: flex; gap: 28px; justify-content: space-between; align-items: center; }
.tt-eyebrow { display: block; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 5px; }
.tt-header .tt-eyebrow { color: #a0e5d8; }
h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.13; margin: 0 0 10px; letter-spacing: -.035em; }
h2 { font-size: 21px; line-height: 1.3; margin: 0; letter-spacing: -.02em; }
p { margin: 6px 0 0; }
.tt-heading p { color: #d6e6ee; max-width: 650px; }
.tt-season { min-width: 138px; color: #d6e6ee; font-size: 12px; }
.tt-summary { display: flex; flex-wrap: wrap; gap: 24px; padding: 14px 28px; background: #082d4990; font-size: 13px; color: #d1e1eb; }
.tt-summary strong { color: #fff; font-size: 17px; margin-right: 4px; }
.tt-notice { border: 1px solid #bfd4df; border-radius: 8px; background: #e9f3f8; padding: 14px 18px; margin-top: 18px; }
.tt-warning { color: #654916; background: #fff7e6; border-color: #e8d2a7; }
.tt-clubs-section { margin: 26px 0 20px; }
.tt-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.tt-clubs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.tt-club { text-align: left; padding: 15px 12px; border: 1px solid var(--line); background: white; border-radius: 9px; color: var(--ink); min-width: 0; position: relative; }
.tt-club:hover { border-color: #91b7bf; }
.tt-club[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #f0faf7; }
.tt-club-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eaf1f6; color: var(--navy); font-size: 11px; font-weight: 800; margin-bottom: 10px; }
.tt-club[data-provider="wttv"] .tt-club-icon { background: #f6eee1; color: #71571f; }
.tt-club strong { display: block; font-size: 13px; min-height: 39px; line-height: 1.45; overflow-wrap: anywhere; }
.tt-club small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.tt-club .tt-club-alert { color: #815b18; }
.tt-text-button { color: var(--teal); background: none; border: 0; padding: 5px 0; font-weight: 700; font-size: 13px; }
.tt-controls { display: flex; align-items: end; gap: 14px; padding: 18px; border-radius: 9px; background: #e7edf1; margin-bottom: 22px; }
label { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
select { display: block; width: 100%; padding: 10px 32px 10px 11px; color: var(--ink); background: #fff; border: 1px solid #becdd7; border-radius: 6px; margin-top: 5px; min-height: 43px; max-width: 100%; }
.tt-controls > label { flex: 1; min-width: 0; }
.tt-controls > .tt-team-filter { flex: 1.7; }
.tt-button { border: 1px solid var(--navy); color: white; border-radius: 6px; background: var(--navy); padding: 10px 15px; font-size: 13px; font-weight: 700; min-height: 43px; }
.tt-secondary { background: #fff; color: var(--navy); border-color: #b8cbd7; }
.tt-panel { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 22px; }
.tt-download { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 22px; }
.tt-download > div:first-child { flex: 1 1 350px; }
.tt-download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tt-muted { font-size: 12px; color: var(--muted); }
.tt-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.tt-tabs button { border: 0; border-radius: 5px; background: transparent; color: var(--muted); padding: 8px 12px; font-weight: 650; font-size: 13px; white-space: nowrap; }
.tt-tabs button[aria-pressed="true"] { background: #e7f4f0; color: #0e625a; }
.tt-matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tt-match { border: 1px solid var(--line); border-radius: 8px; padding: 16px; min-width: 0; }
.tt-match.is-derby { border-left: 3px solid var(--teal); padding-left: 14px; }
.tt-match-meta, .tt-match-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.tt-match-meta time { font-weight: 700; color: var(--navy); }
.tt-match-pair { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; margin: 13px 0; }
.tt-match-teams { min-width: 0; }
.tt-match-teams span { display: block; font-weight: 550; font-size: 14px; overflow-wrap: anywhere; }
.tt-match-teams span + span { margin-top: 3px; }
.tt-match-teams .is-focus { font-weight: 800; }
.tt-score { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.tt-score.is-time { font-size: 17px; color: var(--muted); }
.tt-league { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; margin-bottom: 10px; }
.tt-tag { color: #11675f; background: #e8f5f1; border-radius: 4px; font-size: 10px; padding: 2px 5px; font-weight: 750; }
.tt-match-foot { border-top: 1px solid #edf1f4; padding-top: 10px; flex-wrap: wrap; }
.tt-match-foot a { color: var(--muted); }
.tt-empty { grid-column: 1 / -1; color: var(--muted); padding: 28px 18px; background: #f7f9fa; border-radius: 6px; text-align: center; }
.tt-more { display: block; margin: 20px auto 0; }
.tt-table-head label { width: min(560px, 65%); }
.tt-table-scroll { overflow-x: auto; margin-top: 15px; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tt-table th, .tt-table td { text-align: right; padding: 12px 10px; border-bottom: 1px solid #e8eef2; white-space: nowrap; }
.tt-table th { background: #f4f7f9; color: var(--muted); font-size: 11px; font-weight: 700; }
.tt-table th:nth-child(2), .tt-table td:nth-child(2) { text-align: left; min-width: 210px; white-space: normal; }
.tt-table .is-focus { background: #edf7f3; font-weight: 750; }
.tt-table .is-withdrawn { color: #7f6262; }
.tt-table td:last-child { font-weight: 800; color: var(--navy); }
.tt-sources { color: var(--muted); font-size: 12px; }
.tt-sources summary { color: var(--ink); font-size: 14px; font-weight: 750; cursor: pointer; }
.tt-sources p { margin-top: 14px; }
.tt-source-row { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tt-footer { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); padding: 0 2px 20px; }
.tt-skip { position: absolute; left: -9999px; }
.tt-skip:focus { left: 20px; top: 10px; background: white; padding: 10px; z-index: 2; }
.tt-section-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tt-section-nav button { border: 1px solid #bcced7; border-radius: 7px; color: var(--navy); background: white; font-size: 14px; font-weight: 750; padding: 11px 17px; }
.tt-section-nav button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.tt-member-controls { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: 14px; margin: 20px 0; }
.tt-member-controls > label { min-width: 0; }
.tt-member-controls.is-walhorn { grid-template-columns: 1fr auto; }
.tt-member-controls input { display: block; margin-top: 5px; padding: 10px 11px; min-height: 43px; width: 100%; border: 1px solid #becdd7; border-radius: 6px; background: white; color: var(--ink); }
.tt-member-table th, .tt-member-table td { text-align: left; }
.tt-member-table td:first-child { font-weight: 700; }
.tt-member-table caption { text-align: left; margin-bottom: 6px; }
.tt-member-table th:nth-child(2), .tt-member-table td:nth-child(2) { min-width: 150px; }
.tt-ranking { display: inline-block; min-width: 38px; text-align: center; padding: 3px 7px; background: #e7f4f0; color: #0e625a; border-radius: 4px; font-weight: 750; }
.tt-member-sources { color: var(--muted); font-size: 12px; margin-top: 22px; }
.tt-half-filter { max-width: 270px; margin-top: 16px; }
.tt-rating-note { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); font-weight: 500; white-space: normal; }
@media (max-width: 1000px) { .tt-clubs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tt-club strong { min-height: auto; } }
@media (max-width: 680px) {
    .tt-section-nav button { flex: 1; font-size: 12px; padding: 10px; }
    .tt-member-controls { grid-template-columns: 1fr 1fr; }
    .tt-member-controls > label:first-child, .tt-member-controls > button { grid-column: 1 / -1; }
    .tt-page { padding: 12px; } .tt-topbar { padding: 16px; gap: 10px; flex-wrap: wrap; } .tt-brand { font-size: 15px; }
    .tt-topbar nav a { padding: 6px 10px; font-size: 13px; } .tt-heading { padding: 22px 16px; align-items: start; gap: 16px; }
    .tt-heading p { font-size: 13px; } .tt-season { min-width: 112px; } .tt-summary { padding: 12px 16px; gap: 10px 16px; }
    .tt-clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tt-club { padding: 12px; } .tt-club-icon { float: left; margin: 0 10px 10px 0; }
    .tt-club strong { min-height: 20px; } .tt-controls { display: grid; grid-template-columns: 1fr 1fr; padding: 14px; }
    .tt-controls .tt-team-filter { grid-column: 1 / -1; } .tt-controls > button { grid-column: 1 / -1; }
    .tt-panel { padding: 17px 14px; } .tt-section-head { align-items: start; } .tt-matches { grid-template-columns: 1fr; }
    .tt-section-head .tt-button { max-width: 138px; padding: 8px 12px; } .tt-table-head { flex-direction: column; } .tt-table-head label { width: 100%; }
    .tt-table th, .tt-table td { padding: 10px 8px; } .tt-table th:nth-child(2), .tt-table td:nth-child(2) { min-width: 170px; }
    .tt-member-table th:first-child, .tt-member-table td:first-child { white-space: normal; min-width: 120px; }
    .tt-member-table th:nth-child(2), .tt-member-table td:nth-child(2) { min-width: 90px; }
    .tt-member-table.is-single-club th:nth-child(2), .tt-member-table.is-single-club td:nth-child(2) { display: none; }
}
