/* Business Class Table Tennis — modern site styles (2026 refresh) */

:root {
  --teal-900: #123f48;
  --teal-800: #1a5360;
  --teal-700: #216775;
  --teal-500: #00948a;
  --teal-400: #19b3a6;
  --teal-50: #e9f0f1;
  --teal-25: #f4f8f8;
  --ink: #1d2433;
  --ink-soft: #4b5565;
  --line: #dbe4e6;
  --white: #ffffff;
  --gold: #e8b23a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18, 63, 72, .06), 0 8px 24px rgba(18, 63, 72, .08);
  --max: 1160px;
  --font-head: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--teal-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tint { background: var(--teal-25); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-500); margin-bottom: 8px; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal-500); color: var(--white); }
.btn--primary:hover { background: var(--teal-700); }
.btn--light { background: var(--white); color: var(--teal-800); }
.btn--light:hover { background: var(--teal-50); }
.btn--ghost { border-color: currentColor; color: var(--teal-700); background: transparent; }
.btn--ghost:hover { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-900); }
.brand img { width: 34px; height: 54px; }
.brand span { font: 700 1.05rem/1.1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.brand small { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .28em; color: var(--teal-500); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; }
.nav a:hover { background: var(--teal-50); }
.nav a.is-active { color: var(--teal-700); background: var(--teal-50); }
.nav .btn { margin-left: 8px; padding: 10px 18px; color: var(--white); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--teal-900); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; background: var(--teal-900); color: var(--white); overflow: hidden; }
.hero__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__slides::-webkit-scrollbar { display: none; }
.hero__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: clamp(460px, 72vh, 680px); display: flex; align-items: end; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,63,72,.05) 20%, rgba(18,63,72,.55) 60%, rgba(10,36,42,.92) 100%); }
.hero__content { position: relative; z-index: 1; padding-bottom: 72px; max-width: 820px; }
.hero__content h1, .hero__content h2 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero__content h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__dots { position: absolute; z-index: 2; bottom: 28px; right: 20px; display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero__dots button[aria-current="true"] { background: var(--white); width: 28px; border-radius: 999px; }

/* Stats strip */
.stats { background: var(--teal-700); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 32px 0; text-align: center; }
.stat strong { display: block; font: 700 clamp(1.8rem, 3.5vw, 2.6rem)/1 var(--font-head); }
.stat span { font-size: .9rem; opacity: .85; }
@media (max-width: 640px) { .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__body { padding: 24px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2--hof { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 900px) { .grid-2, .grid-2--hof, .grid-3 { grid-template-columns: 1fr; } }

/* Team badges */
.badge-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--teal-50); border: 1px solid var(--line); flex: none; }
.badge-img--lg { width: 64px; height: 64px; }

/* Match list */
.matches__date { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-weight: 600; color: var(--teal-700); margin-bottom: 8px; }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); }
.pill--gold { background: #fdf3dc; color: #8a5a00; }
.match { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.match:first-of-type { border-top: 0; }
.match__row { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.match__name { flex: 1; min-width: 0; line-height: 1.3; }
.match__score { font: 700 1.15rem/1 var(--font-head); min-width: 36px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--teal-25); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.match__score:empty { background: none; }
.match__row.is-winner { color: var(--teal-900); font-weight: 600; }
.match__row.is-winner .match__score { background: var(--teal-700); color: var(--white); }

/* Standings */
.standings { width: 100%; border-collapse: collapse; font-size: .95rem; }
.standings th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding: 0 8px 10px; }
.standings td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.standings td.num, .standings th.num { text-align: right; font-variant-numeric: tabular-nums; }
.standings .team-cell { display: flex; align-items: center; gap: 10px; }
.standings tr.is-top td { background: #fbf6e8; }
.standings .rank { width: 28px; color: var(--ink-soft); font-weight: 600; }
.division + .division { margin-top: 24px; }
.division h3 { font-size: 1rem; color: var(--teal-700); margin-bottom: 8px; }

/* News cards */
.news-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(18,63,72,.06), 0 16px 36px rgba(18,63,72,.14); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card .card__body { display: flex; flex-direction: column; flex: 1; }
.news-card time { font-size: .85rem; color: var(--ink-soft); }
.news-card h3 { margin: 6px 0 10px; }
.news-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.news-card .link-arrow { color: var(--teal-700); }

/* Champions */
.champions { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 1000px) { .champions { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .champions { grid-template-columns: repeat(2, 1fr); } }
.champion { text-align: center; padding: 22px 14px; }
.champion img { margin: 0 auto 12px; }
.champion strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--teal-900); }
.champion span { font-size: .85rem; color: var(--ink-soft); }
.trophy-callout { display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 24px; background: linear-gradient(90deg, #fdf3dc, #fff9ec); border: 1px solid #f3dfae; border-radius: var(--radius); }
.trophy-callout svg { width: 36px; height: 36px; color: var(--gold); flex: none; }

/* Sponsors */
.sponsors { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.sponsors a { display: block; opacity: .85; transition: opacity .15s, transform .15s; }
.sponsors a:hover { opacity: 1; transform: scale(1.04); }
.sponsors img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }

/* CTA band */
.cta { background: radial-gradient(1200px 400px at 10% 0%, var(--teal-500), transparent), var(--teal-800); color: var(--white); border-radius: 24px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 24px; }
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { margin: 0; opacity: .9; max-width: 560px; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.8); padding: 56px 0 28px; margin-top: 72px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__grid h4 { color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li { margin-bottom: 8px; }
.footer__brand img { width: 160px; height: auto; margin-bottom: 18px; }
.social { display: flex; gap: 12px; margin-top: 12px; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.6); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

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

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--teal-50), var(--teal-25)); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 10px; }
.page-hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; margin: 0; }
.page-hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; color: var(--ink-soft); font-size: .95rem; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; color: var(--ink-soft); }
.breadcrumbs a { color: var(--teal-700); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; opacity: .6; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.layout--narrow { max-width: 760px; margin: 0 auto; display: block; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

/* Article text from the editor */
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.prose h3, .prose h4 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--teal-700); text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius-sm); }
.prose .richtext-image.left { float: left; margin: 0 1.2em 1em 0; max-width: 50%; }
.prose .richtext-image.right { float: right; margin: 0 0 1em 1.2em; max-width: 50%; }
.prose .richtext-image.full-width { width: 100%; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.prose::after { content: ""; display: table; clear: both; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

.figure { margin: 1.8em 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure--portrait img { width: auto; max-height: 520px; margin: 0 auto; }
.figure figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.embed { position: relative; margin: 1.8em 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

.quote { display: flex; gap: 18px; align-items: start; margin: 2em 0; padding: 24px 28px; background: var(--teal-25); border-left: 4px solid var(--teal-500); border-radius: var(--radius-sm); }
.quote img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.quote blockquote { margin: 0; font: 500 1.25rem/1.5 var(--font-head); color: var(--teal-900); }
.quote cite { display: block; margin-top: 10px; font: 500 .95rem var(--font-body); font-style: normal; color: var(--ink-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--teal-700); text-decoration: none; }
.tag:hover, .tag.is-active { background: var(--teal-700); border-color: var(--teal-700); color: var(--white); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; }
.pager .muted { font-size: .9rem; }

.news-list { display: grid; gap: 24px; }
.news-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.news-row:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(18,63,72,.06), 0 16px 36px rgba(18,63,72,.14); }
.news-row img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.news-row .card__body { padding: 22px 24px 22px 0; }
.news-row time { font-size: .85rem; color: var(--ink-soft); }
.news-row h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.news-row p { color: var(--ink-soft); margin-bottom: 10px; }
@media (max-width: 640px) { .news-row { grid-template-columns: 1fr; } .news-row img { aspect-ratio: 16/9; min-height: 0; } .news-row .card__body { padding: 0 20px 20px; } }

.sidebar { display: grid; gap: 24px; }
.sidebar h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.mini-post { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 8px 0; }
.mini-post img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-post strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--teal-900); }
.mini-post span { font-size: .8rem; color: var(--ink-soft); }

.author { display: flex; gap: 18px; align-items: center; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author strong { display: block; color: var(--teal-900); font-family: var(--font-head); font-size: 1.1rem; }

/* Tabs (competition pages) */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 16px; border-bottom: 3px solid transparent; font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--teal-700); }
.tabs a.is-active { color: var(--teal-700); border-color: var(--teal-500); }

.round { margin-bottom: 20px; }
.round summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; font-weight: 600; color: var(--teal-800); }
.round summary::-webkit-details-marker { display: none; }
.round summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-500); }
.round[open] summary::after { content: "–"; }
.round .card__body { padding-top: 0; }
.final-tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; background: #fdf3dc; border-radius: 999px; padding: 2px 8px; margin-left: 8px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.team-card .card__body { display: grid; gap: 12px; }
.team-card header { display: flex; align-items: center; gap: 14px; }
.team-card h3 { margin: 0; font-size: 1.15rem; }
.team-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.team-card li { font-size: .85rem; background: var(--teal-25); border-radius: 999px; padding: 3px 10px; color: var(--ink-soft); }

.comp-list { display: grid; gap: 16px; }
.comp-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.comp-row:hover { transform: translateY(-2px); }
.comp-row .year { font: 700 1.5rem/1 var(--font-head); color: var(--teal-500); min-width: 64px; }
.comp-row strong { display: block; color: var(--teal-900); font-size: 1.05rem; }
.comp-row span { font-size: .9rem; color: var(--ink-soft); }
.comp-row .winner { margin-left: auto; display: flex; align-items: center; gap: 10px; text-align: right; }
@media (max-width: 560px) { .comp-row { flex-wrap: wrap; } .comp-row .winner { margin-left: 0; width: 100%; text-align: left; } }

/* Forms */
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--teal-900); }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=tel], .form-field input[type=number], .form-field input[type=url], .form-field input[type=date], .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(0,148,138,.15); }
.form-field .help { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.form-field .error { font-size: .9rem; color: #b42318; margin-top: 6px; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #d92d20; }
.form-field ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.form-field ul label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.notice { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--teal-50); color: var(--teal-900); margin-bottom: 24px; }
.notice--success { background: #e7f6ef; color: #0c5132; }

/* Empty / error states */
.empty { text-align: center; padding: 80px 0; }
.empty .big { font: 700 clamp(4rem, 12vw, 7rem)/1 var(--font-head); color: var(--teal-500); margin-bottom: 12px; }

/* Teams directory & team profile */
.team-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.team-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; text-align: center; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.team-tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(18,63,72,.06), 0 16px 36px rgba(18,63,72,.14); }
.team-tile img { margin-bottom: 6px; }
.team-tile strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--teal-900); }
.team-tile > span:not(.pill) { font-size: .85rem; color: var(--ink-soft); }
.team-detail .page-hero .badge-img--lg { width: 96px; height: 96px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-cards .card__body { text-align: center; padding: 20px 12px; }
.stat-cards strong { display: block; font: 700 1.8rem/1.1 var(--font-head); color: var(--teal-700); }
.stat-cards span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 640px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
a.team-link { color: inherit; text-decoration: none; }
a.team-link:hover { color: var(--teal-700); text-decoration: underline; }

/* ---------- Loading screen (first page of a visit only) ----------
   Coloured frames open from the centre, the site's photos flash through,
   then it closes back to the logo. Adapted from the Profile Photos loader. */
#bc-loader { position: fixed; inset: 0; z-index: 9999; background: var(--teal-900); color: #fff; overflow: hidden; transition: opacity .6s ease, visibility .6s ease; }
#bc-loader.is-done { opacity: 0; visibility: hidden; }
html.bc-loading, html.bc-loading body { overflow: hidden; }
html.bc-loader-skip #bc-loader { display: none; }
#bc-loader .bc-stage { position: absolute; left: 50%; top: 46%; width: min(88vw, 118vh); aspect-ratio: 3 / 2; transform: translate(-50%, -50%); }
#bc-loader .bc-frame, #bc-loader .bc-photos { position: absolute; clip-path: inset(50% 50%); }
#bc-loader .bc-frame:nth-child(1) { inset: 0; }
#bc-loader .bc-frame:nth-child(2) { inset: 2.5%; }
#bc-loader .bc-frame:nth-child(3) { inset: 5%; }
#bc-loader .bc-frame:nth-child(4) { inset: 7.5%; }
#bc-loader .bc-photos { inset: 10%; background: #0b2a30; }
#bc-loader .bc-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0; }
#bc-loader .bc-photos img.is-on { opacity: 1; }
#bc-loader .bc-title { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
#bc-loader .bc-title img { width: clamp(140px, 18vw, 220px); height: auto; }
#bc-loader .bc-footer { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 0 clamp(16px, 2.6vw, 40px) clamp(14px, 2.4vh, 28px); font: 500 clamp(10px, .9vw, 13px)/1.4 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); }
#bc-loader .bc-footer span { flex: 1; }
#bc-loader .bc-footer span:nth-child(2) { text-align: center; }
#bc-loader .bc-footer span:nth-child(3) { text-align: right; }
@media (max-width: 600px) { #bc-loader .bc-stage { width: 92vw; top: 44%; } #bc-loader .bc-footer span:nth-child(2) { display: none; } }

/* Form guide & stats */
.form-guide { display: inline-flex; gap: 4px; vertical-align: middle; }
.form-guide i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.form-guide .form-W { background: var(--teal-500); }
.form-guide .form-L { background: transparent; box-shadow: inset 0 0 0 2px #c3cfd2; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.rating { font: 700 1.05rem var(--font-head); color: var(--teal-700); font-variant-numeric: tabular-nums; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); font: 700 .9rem var(--font-head); }
.rank-badge--1 { background: #fdf3dc; color: #8a5a00; }
.spark { width: 100%; height: 72px; display: block; }
.spark path { fill: none; stroke: var(--teal-500); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.record-card h3 { font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.record-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.record-row:first-of-type { border-top: 0; }
.record-row .grow { flex: 1; min-width: 0; }
.record-row .val { font: 700 1.1rem var(--font-head); color: var(--teal-900); font-variant-numeric: tabular-nums; }
.big-fact { font: 700 clamp(2.4rem, 6vw, 3.6rem)/1 var(--font-head); color: var(--teal-700); }
.vs-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; text-align: center; }
.vs-hero .side { display: grid; justify-items: center; gap: 10px; }
.vs-hero .side strong { font: 700 1.3rem var(--font-head); color: var(--teal-900); }
.vs-hero .score { font: 700 clamp(2.6rem, 8vw, 4.5rem)/1 var(--font-head); color: var(--teal-900); }
.vs-hero .score small { display: block; font: 500 .85rem var(--font-body); color: var(--ink-soft); margin-top: 8px; }
.vs-hero .badge-img--lg { width: 88px; height: 88px; }
@media (max-width: 560px) { .vs-hero .badge-img--lg { width: 56px; height: 56px; } .vs-hero .side strong { font-size: 1rem; } }

.h2h-line { font-size: .8rem; color: var(--ink-soft); padding-left: 52px; }
.h2h-line a { color: var(--teal-700); text-decoration: none; }
.h2h-line a:hover { text-decoration: underline; }

.otd { display: flex; align-items: center; gap: 20px; padding: 16px 22px; text-decoration: none; color: var(--ink); background: linear-gradient(90deg, #fff9ec, #fff); border-color: #f3dfae; }
.otd__when { text-align: center; min-width: 84px; color: #8a5a00; font-size: .8rem; line-height: 1.1; }
.otd__when strong { display: block; font: 700 2rem var(--font-head); }
.otd__what { font-weight: 500; }
a.otd:hover { box-shadow: 0 2px 4px rgba(18,63,72,.06), 0 12px 28px rgba(18,63,72,.12); }
.tip-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px; margin: 0 0 12px; border: 1px solid var(--line); }
.tip-card .h2h-line { grid-column: 1 / -1; padding-left: 0; text-align: center; }
.tip-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; font-weight: 600; }
.tip-option input { position: absolute; opacity: 0; pointer-events: none; }
.tip-option:has(input:checked) { border-color: var(--teal-500); background: var(--teal-25); }
.tip-option:has(input:focus-visible) { outline: 3px solid rgba(0,148,138,.35); }
.tip-card .tip-option:last-of-type { flex-direction: row-reverse; text-align: right; }

/* Competition photo gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery__item { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--teal-50); }
.gallery__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s; }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 30, 35, .88); }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--radius-sm); }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lightbox__close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; cursor: pointer; }

.grid-2--records { grid-template-columns: 1.2fr 1fr; }
.stat-cards--3 { grid-template-columns: repeat(3, 1fr); }
.stats-strip .stat-cards > div { text-align: center; }
@media (max-width: 900px) { .grid-2--records { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stat-cards--3 { grid-template-columns: 1fr; } .standings td, .standings th { padding-left: 4px; padding-right: 4px; } }

/* Hidden way into the Rally Challenge game: a tiny ball in the footer */
.egg { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #f7a541; opacity: .55; vertical-align: middle; transition: transform .2s, opacity .2s; }
.egg:hover, .egg:focus-visible { opacity: 1; transform: scale(1.8); }

/* Interest meter */
.meter { padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center; background: linear-gradient(90deg, #eef8f6, #fff); }
.meter__big { font: 600 1.35rem/1.25 var(--font-head); margin: 4px 0 2px; }
.meter__big strong { font-size: 2rem; color: var(--teal-700); }
.meter__sub { margin: 0; color: var(--ink-soft); }
.meter__bar { grid-column: 1 / -1; height: 14px; border-radius: 999px; background: var(--teal-50); overflow: hidden; order: 3; }
.meter__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-500), #f7a541); transition: width 1s ease; }
@media (max-width: 640px) { .meter { grid-template-columns: 1fr; } .meter .btn { justify-self: start; } }

/* Win chance bar */
.chance { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "pa bar pb" "lbl lbl lbl"; gap: 2px 8px; align-items: center; font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
.chance__pct { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.chance__pct:first-child { grid-area: pa; } .chance__pct:nth-child(3) { grid-area: pb; }
.chance__bar { grid-area: bar; height: 6px; border-radius: 999px; background: #f7d7a8; overflow: hidden; }
.chance__bar span { display: block; height: 100%; background: var(--teal-500); }
.chance__label { grid-area: lbl; text-align: center; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.record-row.is-bot { background: #f4f8f8; border-radius: 8px; }

/* Team badges */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.badge-tile { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 8px; border-radius: var(--radius-sm); background: linear-gradient(180deg, #fff8ea, #fff); border: 1px solid #f3dfae; }
.badge-tile__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #f7a541; color: #fff; box-shadow: 0 4px 12px rgba(247,165,65,.35); }
.badge-tile__icon svg { width: 26px; height: 26px; }
.badge-tile strong { font-size: .9rem; color: var(--ink); }
.badge-tile span:last-child { font-size: .75rem; color: var(--ink-soft); line-height: 1.3; }
.badge-tile.is-locked { background: var(--teal-25); border-color: var(--line); }
.badge-tile.is-locked .badge-tile__icon { background: #cfd9db; box-shadow: none; }
.badge-tile.is-locked strong { color: var(--ink-soft); }
.badge-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.badge-feed a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.badge-feed .badge-tile__icon { width: 40px; height: 40px; flex: none; }
.badge-feed .badge-tile__icon svg { width: 22px; height: 22px; }
.badge-feed small { display: block; color: var(--ink-soft); }

.wrapped-link { display: inline-block; margin: -4px 0 10px 14px; font-size: .88rem; font-weight: 600; color: #c2410c; text-decoration: none; }
.wrapped-link:hover { text-decoration: underline; }
.wrapped-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wrapped-chips a { font-size: .85rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #f7a541, #e2582b); }

/* Match night hub on the home page */
.tonight { background: radial-gradient(1200px 500px at 10% -20%, #1f6f7c, #0e2f36); padding: 40px 0 36px; }
.tonight__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.tonight__side { display: grid; gap: 20px; }
.tonight__status { margin: -6px 0 10px 54px; font-size: .8rem; color: #a76300; }
.tonight__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.live-dot-sm { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e53935; margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 860px) { .tonight__grid { grid-template-columns: 1fr; } }
.follow-btn { padding: 8px 16px; font-size: .9rem; }
.follow-btn.is-on { background: var(--teal-700); }
.follow-hint { margin-top: 16px; }

/* Play and relive cards (home page) */
.fun-card { display: block; padding: 26px 26px 24px; text-decoration: none; color: #fff; border: 0; }
.fun-card .eyebrow { color: rgba(255,255,255,.85); margin: 0 0 6px; }
.fun-card h3 { color: #fff; font-size: 1.45rem; margin: 0 0 8px; }
.fun-card p { color: rgba(255,255,255,.9); margin: 0; }
.fun-card ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 6px; font-size: .95rem; color: rgba(255,255,255,.92); }
.fun-card--rally { background: radial-gradient(120% 120% at 0% 0%, #1f6f7c, #0e2f36); transition: transform .2s; }
.fun-card--rally:hover { transform: translateY(-2px); }
.fun-card--wrapped { background: linear-gradient(135deg, #f7a541, #e2582b); }
.wrapped-chips--light a { background: rgba(255,255,255,.2); color: #fff; }
.wrapped-chips--light a:hover { background: rgba(255,255,255,.32); }
.nav a.nav-play { color: #c2410c; font-weight: 700; }

/* ---- Match-night scoresheet ---- */
.se__grid { display: grid; grid-template-columns: 1fr 84px; gap: 10px; align-items: center; }
.se__grid label { font-weight: 600; }
.se__grid input { font-size: 1.4rem; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; box-sizing: border-box; }
.sheet__step { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--teal-900); margin: 18px 0 10px; }
.sheet__step span { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--ink-soft); margin-left: 6px; }
.sheet__players { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet__side { background: var(--teal-25); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.sheet__team { font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.sheet__pick { display: grid; gap: 4px; font-size: .8rem; color: var(--ink-soft); }
.sheet__pick select, .sheet__pick input { font: inherit; font-size: 1rem; color: var(--ink); padding: 9px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); width: 100%; box-sizing: border-box; min-width: 0; }
.sheet__rubber { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px 12px; margin: 0 0 10px; min-width: 0; }
.sheet__rubber.is-done { border-color: rgba(0, 148, 138, .45); background: rgba(0, 148, 138, .04); }
.sheet__rubber legend { padding: 0 6px; margin-left: -6px; font-size: .95rem; max-width: 100%; }
.sheet__label { font-weight: 700; color: var(--teal-700); }
.sheet__names { color: var(--ink-soft); }
.sheet__code { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--teal-700); background: var(--teal-50); border-radius: 4px; padding: 1px 6px; margin-right: 2px; vertical-align: 1px; }
.sheet__ump { margin: 0 0 4px; font-size: .78rem; color: var(--ink-soft); }
.sheet__grid { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 6px 8px; align-items: center; margin-top: 4px; }
.sheet__col { font-size: .78rem; font-weight: 600; color: var(--ink-soft); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.sheet__g { font-size: .85rem; color: var(--ink-soft); }
.sheet__grid input { font-size: 1.3rem; text-align: center; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; box-sizing: border-box; min-width: 0; -moz-appearance: textfield; }
.sheet__grid input::-webkit-outer-spin-button, .sheet__grid input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sheet__grid input:focus, .sheet__pick select:focus, .sheet__pick input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(0, 148, 138, .15); }
.sheet__grid [hidden] { display: none; }
.sheet__res { margin: 8px 0 0; font-size: .88rem; color: var(--ink-soft); min-height: 1em; }
.sheet__res:empty { display: none; }
.sheet__res.is-done { color: #157a4f; font-weight: 600; }
.sheet__res.is-bad { color: #b3261e; }
.sheet__total { position: sticky; bottom: 0; background: var(--teal-900); color: #fff; border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; margin: 14px 0 0; font-size: .95rem; z-index: 2; }
.sheet__total strong { font-size: 1.4rem; margin: 0 4px; }
.sheet__error { background: #fdecea; color: #8c1d18; border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; font-size: .9rem; }
.sheet .btn, .sheet__quick .btn { width: 100%; justify-content: center; margin-top: 12px; }
.sheet__quick { margin-top: 14px; font-size: .9rem; }
.sheet__quick summary { cursor: pointer; color: var(--teal-700); font-weight: 600; }
.sheet__quick form { padding-top: 10px; }
@media (max-width: 380px) { .sheet__players { grid-template-columns: 1fr; } .sheet__grid { grid-template-columns: 54px 1fr 1fr; } }

/* ---- Scoresheet on match pages, player stats ---- */
.rubbers { display: grid; gap: 8px; }
.rubber { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rubber:last-child { border-bottom: 0; }
.rubber__label { grid-column: 1 / -1; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: -6px; }
.rubber__side { font-weight: 500; line-height: 1.3; }
.rubber__side a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.rubber__side.is-win { font-weight: 700; color: var(--teal-900); }
.rubber__side--two { text-align: right; }
.rubber__score { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.rubber__games { display: block; font-family: var(--font-body); font-weight: 400; font-size: .75rem; color: var(--ink-soft); white-space: normal; }
.ptable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ptable th { text-align: left; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ptable a:hover { color: var(--teal-700); }
.ptable .sub { display: block; font-size: .8rem; color: var(--ink-soft); font-weight: 400; }
.ptable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.form-dots { display: inline-flex; gap: 3px; }
.form-dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9d3d6; display: inline-block; }
.form-dots i.w { background: var(--teal-500); }
.form-dots i.l { background: #e07a5f; }
