/* ==========================================================================
   Korto — marketing site styles

   Tokens mirror the Flutter app (frontend/lib/core/theme/app_colors.dart) so
   the site and the product read as one brand. Mobile-first: base rules target
   small screens and media queries add up from there.

   One deliberate divergence from the app: the app's secondaryText (#64748B)
   measures 4.46:1 on white, which fails WCAG AA for normal-size text. Marketing
   copy is long-form and must be legible, so the site uses #5B6B80 (5.44:1). The
   hue is unchanged; it is only darkened enough to pass.
   ========================================================================== */

/* ------------------------------------------------------------------- fonts */
/* Self-hosted so there is no third-party request and no layout shift from a
   late webfont. `swap` shows the fallback immediately rather than blocking. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/archivo-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/dm-sans-latin.woff2') format('woff2');
}

/* ------------------------------------------------------------------ tokens */

:root {
  /* Public site theme, matched to the Lovable tokens. */
  --atlantic: oklch(0.31 0.075 215);
  --atlantic-900: oklch(0.24 0.06 215);
  --atlantic-800: oklch(0.28 0.068 215);
  --atlantic-700: oklch(0.4 0.07 215);
  --lime: oklch(0.87 0.22 128);
  --lime-600: oklch(0.82 0.21 128);
  --on-lime: oklch(0.25 0.055 215);
  --blue: #1687E8;
  --cyan: #12B8D4;

  /* Neutrals */
  --white: #FFFFFF;
  --bg: oklch(0.99 0.008 150);
  --surface: oklch(0.955 0.025 155);
  --ink: oklch(0.25 0.055 215);
  --ink-muted: oklch(0.48 0.035 215);
  --border: oklch(0.9 0.026 170);
  /* Boundaries that identify an interactive control need 3:1 under WCAG
     1.4.11. --border is far too faint for that (1.29:1), so outlined controls
     use this instead: the lightest Atlantic-tinted grey that clears 3:1 on
     both white and --surface (3.42:1 / 3.20:1). */
  --border-strong: #7C8D9C;

  /* Copy on dark grounds. Both pass AA over --atlantic. */
  --on-dark: rgba(255, 255, 255, 0.86);        /* 8.76:1 */
  --on-dark-faint: rgba(255, 255, 255, 0.62);  /* 5.34:1 */

  /* Status */
  --success: #16A34A;
  --warning: #F59E0B;
  --error: #C62828;           /* 5.62:1 on white; app's #DC3B3B is 4.1:1 */

  /* Type */
  --font: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Archivo', 'DM Sans', sans-serif;

  /* Fluid type scale. Each step interpolates between a comfortable phone size
     and a desktop size, so there are no jarring jumps at breakpoints. */
  --text-sm:   clamp(0.875rem, 0.86rem + 0.08vw, 0.9375rem);
  --text-base: clamp(1rem,     0.98rem + 0.12vw, 1.0625rem);
  --text-lg:   clamp(1.0625rem, 1.02rem + 0.24vw, 1.1875rem);
  --text-xl:   clamp(1.25rem,  1.18rem + 0.36vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   1.36rem + 0.68vw, 2rem);
  --text-3xl:  clamp(1.875rem, 1.6rem + 1.25vw, 2.75rem);
  --text-4xl:  clamp(2.25rem,  1.82rem + 2vw,   3.5rem);

  /* Spacing — 4px base. */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Radii — Lovable base is 6px. */
  --radius-sm: 2px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Layered shadows read as more premium than a single flat drop. Each pairs
     a tight contact shadow with a softer, wider ambient one. */
  --shadow-sm: 0 1px 2px rgba(11, 64, 80, 0.05), 0 1px 3px rgba(11, 64, 80, 0.06);
  --shadow: 0 2px 6px rgba(11, 64, 80, 0.06), 0 8px 24px rgba(11, 64, 80, 0.09);
  --shadow-lg: 0 4px 12px rgba(11, 64, 80, 0.08), 0 20px 48px rgba(11, 64, 80, 0.14);

  --maxw: 1120px;
  --gutter: var(--sp-6);
  --header-h: 68px;
}

/* -------------------------------------------------------------------- base */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Anchored sections must not hide under the sticky header. */
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Set by main.js while the mobile drawer is open. */
body.is-locked { overflow: hidden; }

img, svg, picture, video { max-width: 100%; }
img, svg, video { height: auto; }
picture { display: contents; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--atlantic);
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25em; }

a { color: var(--atlantic-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--atlantic); }

/* Visible focus on every interactive element. Keyboard users must always be
   able to see where they are. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--atlantic-700);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* On dark grounds the Atlantic ring is invisible, so switch to lime. */
.on-dark a:focus-visible,
.on-dark button:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--lime);
}

/* --------------------------------------------------------------- utilities */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
body.is-tournament .container { max-width: 1280px; }

.section { padding-block: var(--sp-16); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--atlantic); }

/* Any block that sits on a dark ground. */
.on-dark { color: var(--on-dark); }
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 { color: var(--white); }
.on-dark a { color: var(--lime); }
.on-dark a:hover { color: var(--white); }
.on-dark a.btn--primary,
.on-dark a.btn--primary:hover,
.on-dark a.btn--primary:focus-visible { color: var(--on-lime); }
.on-dark a.btn--ghost-light,
.on-dark a.btn--ghost-light:hover,
.on-dark a.btn--ghost-light:focus-visible { color: var(--white); }

.lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 60ch;
}
.on-dark .lede { color: var(--on-dark); }

.eyebrow {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atlantic-700);
  margin-bottom: var(--sp-3);
}
.on-dark .eyebrow { color: var(--lime); }

/* Screen-reader-only, but still focusable when it needs to be. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 120ms ease-out;
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;                  /* comfortable touch target */
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--lime);
  color: var(--on-lime);
}
.btn--primary:hover { background: var(--lime-600); color: var(--on-lime); }

.btn--atlantic {
  background: var(--atlantic);
  color: #fff;
}
.btn--atlantic:hover { background: var(--atlantic-900); color: #fff; }

.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--atlantic);
}
.btn--secondary:hover { border-color: var(--atlantic); color: var(--atlantic); }

/* For use on dark grounds. */
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}
.btn--ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn--sm { min-height: 40px; padding: var(--sp-2) var(--sp-4); }
.btn--block { width: 100%; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid white fallback for browsers without backdrop-filter. */
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
/* Frosted glass: content blurs softly behind the bar as it scrolls under.
   This is the one place glass earns its keep — there's real content moving
   behind it. Only applied where the browser actually supports the blur, so
   unsupported browsers keep the solid-white bar above. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
            backdrop-filter: saturate(180%) blur(14px);
  }
}
/* main.js adds this once the page has scrolled a little, so the header only
   gains its lift shadow when it's actually floating over content. */
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(11, 64, 80, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;              /* pushes everything else right */
}
.brand img {
  height: 32px;
  width: auto;
  display: block;
}

/* Desktop nav and actions are hidden on small screens; the drawer serves
   those. display:none keeps them out of the accessibility tree entirely, so
   nothing is announced twice. */
.primary-nav { display: none; }
.site-header__actions { display: none; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* inline-flex + min-height so the hit area clears WCAG 2.5.8's 24px minimum.
   A bare inline link here measures only ~18px tall. */
.primary-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.primary-nav__list a:hover { color: var(--atlantic-700); text-decoration: underline; }

.link-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--atlantic);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}
.link-login:hover { text-decoration: underline; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: calc(var(--sp-3) * -1);   /* optically align to the gutter */
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--atlantic);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Swap hamburger and close glyphs off the button's own expanded state, so the
   icon can never disagree with what assistive tech is told.
   Both selectors are qualified with .nav-toggle so they outrank the
   `.nav-toggle svg` rule above on specificity; a bare `.nav-toggle__close`
   would lose to it and leave both glyphs visible at once. */
.nav-toggle .nav-toggle__open { display: block; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__close { display: block; }

@media (min-width: 900px) {
  .site-header .container { max-width: 1280px; }
  .site-header__inner { gap: 12px; }
  .primary-nav { display: block; margin-right: 8px; }
  .primary-nav__list { gap: 12px; }
  .primary-nav__list a { font-size: 14px; }
  .site-header__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
  }
  .site-header__actions .btn {
    font-size: 14px;
    min-height: 36px;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .nav-toggle { display: none; }
}

/* ------------------------------------------------------------ mobile drawer */

.mobile-nav {
  display: none;                    /* closed: out of the a11y tree */
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--white);
  padding: var(--sp-6) var(--gutter) var(--sp-12);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { display: block; }

.mobile-nav__list {
  margin: 0 0 var(--sp-8);
  padding: 0;
  list-style: none;
}
.mobile-nav__list li + li { border-top: 1px solid var(--border); }
.mobile-nav__list a {
  display: block;
  padding: var(--sp-4) 0;
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav__list a:hover { color: var(--atlantic-700); }

.mobile-nav__actions {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 900px) {
  /* Belt and braces: even if a stale is-open class survived a resize, the
     drawer must never appear on desktop. main.js also closes it on change. */
  .mobile-nav,
  .mobile-nav.is-open { display: none; }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--atlantic);
  color: var(--on-dark);
  padding-block: var(--sp-16) var(--sp-8);
}

.site-footer__top {
  display: grid;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer__brand img { height: 34px; width: auto; display: block; }
.site-footer__brand p {
  margin-top: var(--sp-4);
  max-width: 34ch;
  color: var(--on-dark-faint);
  font-size: var(--text-sm);
}

/* Footer column headings are h2 for document structure, but must read as
   small labels rather than section titles. */
.site-footer h2 {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--sp-4);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li + li { margin-top: var(--sp-1); }
/* Same 24px target-size floor as the header nav. These are list navigation,
   not links inside a sentence, so the inline exception does not apply. */
.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--on-dark);
  text-decoration: none;
  font-size: var(--text-sm);
}
.site-footer li a:hover { color: var(--white); text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  justify-content: space-between;
  padding-top: var(--sp-6);
}
.site-footer__bottom p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--on-dark-faint);
}
.site-footer__legal {
  flex-basis: 100%;
  margin-top: var(--sp-2);
  color: var(--white);
}
.site-footer__legal p {
  margin: 0;
  color: var(--white);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.site-footer__legal-grid {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
.site-footer__legal p.site-footer__legal-label {
  margin-bottom: var(--sp-1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.site-footer__legal a:link,
.site-footer__legal a:visited,
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--white);
  text-decoration: none;
}
.site-footer__legal a:hover,
.site-footer__legal a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

@media (min-width: 640px) {
  .site-footer__legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6) var(--sp-8);
  }
}
@media (min-width: 960px) {
  .site-footer__legal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--sp-12);
  }
}

/* ------------------------------------------------------------------- grids */
/* Generic responsive grid, reused by later sections. */

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

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------------- hero */
/* Task 3. Single column on phones (copy first, mock below); two columns from
   980px up. The mock is drawn entirely in CSS so the hero needs no image and
   there is no LCP image to wait on — the headline text is the LCP. */

.hero {
  padding-block: var(--sp-12) var(--sp-16);
  /* Soft multi-point colour mesh for depth — the modern-SaaS hero wash. Kept
     low-opacity so it never fights the headline or the mock. */
  background:
    radial-gradient(90% 90% at 92% -10%, rgba(168, 217, 0, 0.16), transparent 55%),
    radial-gradient(80% 80% at 8% 8%, rgba(18, 184, 212, 0.12), transparent 50%),
    radial-gradient(120% 90% at 50% 120%, rgba(19, 92, 113, 0.08), transparent 60%),
    var(--bg);
}

.hero__inner {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

.hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-4);
}
.hero__sub {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--atlantic);
  margin: 0 0 var(--sp-4);
}
.hero__accent { color: var(--lime-600); }

.hero__lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 54ch;
  margin-bottom: var(--sp-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.hero__note {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 46ch;
}

/* --- Browser frame + booking-grid mock --- */

.hero__media { min-width: 0; }

.frame {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.frame__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #CBD5DD;
  flex: 0 0 auto;
}
.frame__addr {
  margin-left: var(--sp-3);
  padding: 4px var(--sp-3);
  flex: 1 1 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
}

.frame__body { padding: var(--sp-6); }

.mock { font-size: var(--text-sm); }

.mock__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.mock__title { font-weight: 700; color: var(--atlantic); }
.mock__branch { font-size: 0.8rem; color: var(--ink-muted); }

.mock__grid {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: var(--sp-2);
}
.mock__col-head,
.mock__row-head {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
}
.mock__col-head { justify-content: center; }

.mock__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 40px;
}
.mock__cell--booked  { background: var(--atlantic); color: var(--white); }
.mock__cell--coaching { background: var(--lime); color: var(--on-lime); }
.mock__cell--held {
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 5px, #E4EAEE 5px, #E4EAEE 10px);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}
.mock__cell--open {
  background: var(--surface);
  color: var(--ink-muted);
  border: 1px dashed var(--border-strong);
}

.mock__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.76rem;
  color: var(--ink-muted);
}
.mock__legend li { display: flex; align-items: center; gap: 6px; }
.mock__key {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex: 0 0 auto;
}
.mock__key--booked { background: var(--atlantic); }
.mock__key--coaching { background: var(--lime); }
.mock__key--held { background: #E4EAEE; border: 1px solid var(--border-strong); }
.mock__key--open { background: var(--surface); border: 1px dashed var(--border-strong); }

.connect { padding-block: var(--sp-8); }
.connect__title { margin: 0 0 var(--sp-3); font-size: 1.5rem; }
.connect__about {
  margin: 0 0 var(--sp-6);
  max-width: 42rem;
  color: var(--ink-muted);
}
.connect__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}
.connect__list > li {
  margin: 0;
  background: var(--surface);
  border-radius: 16px;
  padding: var(--sp-5);
}
.connect__mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--sp-4);
  border-radius: 14px;
  background: var(--atlantic);
  color: var(--white);
}
.connect__mark svg { width: 1.7rem; height: 1.7rem; }
.connect__mark--lime { background: var(--lime); color: var(--atlantic); }
.connect__list li > span:last-of-type {
  display: block;
  font-weight: 700;
  color: var(--atlantic);
  font-size: 1.15rem;
}
.connect__app {
  margin: 0.2rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.connect__points {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.connect__points li {
  margin: 0;
  padding: 0.45rem 0 0.45rem 0.9rem;
  background: transparent;
  border-radius: 0;
  border-left: 3px solid var(--lime);
  color: var(--atlantic);
  font-weight: 600;
  font-size: 0.98rem;
}
@media (min-width: 800px) {
  .connect__list { grid-template-columns: 1fr 1fr 1fr; }
}

#moments { padding-block: var(--sp-8); }
#moments .section__head { margin-bottom: 0; }
.moments__lead { margin: 0 0 var(--sp-2); max-width: 16rem; }
#moments .lede { margin: 0; max-width: 36rem; }
.moments-split { display: grid; gap: var(--sp-8); margin-top: var(--sp-8); }
@media (min-width: 900px) {
  .moments-split { grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-6); align-items: start; }
}
.moments-split > div { min-width: 0; }
.moments__who {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.moments__problem {
  margin: 0.35rem 0 var(--sp-3);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.moments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.moments li {
  margin: 0;
  background: var(--white);
  border-radius: 16px;
  padding: var(--sp-4);
  box-shadow: 0 1px 2px rgba(11, 64, 80, 0.06);
}
@media (min-width: 900px) {
  #moments { padding-block: var(--sp-12); }
}
.moments span {
  display: block;
  font-weight: 700;
  color: var(--atlantic);
  font-size: 1.05rem;
}
.moments p { margin: 0.25rem 0 0; color: var(--ink-muted); }
.calc--compact {
  margin-top: var(--sp-8);
  background: var(--white);
  border-radius: 16px;
  padding: var(--sp-5);
}
.calc--compact h3 { margin: 0 0 var(--sp-4); font-size: 1.15rem; }
.calc__grid { display: grid; gap: var(--sp-4); }
@media (min-width: 800px) {
  .calc__grid { grid-template-columns: 1.1fr 1fr 1fr; align-items: end; }
}
.sports__quiet {
  margin: var(--sp-3) auto 0;
  max-width: 40rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.hero__media { min-height: 0; }
.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 24px;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 18px 50px rgba(15, 40, 50, 0.16);
}

@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .hero__copy { max-width: 40rem; }
}

.products {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 800px) {
  .products { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.product {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15, 40, 50, 0.06);
}
.product__photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d3d4a;
}
.product__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.product__body {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1 1 auto;
}
.product h3 { font-size: 1.6rem; margin: 0; }
.product__line { margin: 0; color: var(--ink-muted); }
.product .ticks { margin: 0; }
.product .btn {
  margin-top: var(--sp-4);
  align-self: flex-start;
}
.ecosystem {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .ecosystem { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .ecosystem--apps { grid-template-columns: 1.15fr 0.85fr; }
}
.tourno__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.tourno__row li {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--atlantic);
}
.tourno__row img { width: 88px; height: 88px; object-fit: contain; }
.eco {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.bubbles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  justify-items: center;
}
.eco__shot {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 16px;
  display: block;
}
.bubbles li {
  width: 7.6rem;
  height: 7.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--atlantic);
  background: var(--lime);
  box-shadow: 0 8px 18px rgba(11, 64, 80, 0.12);
}
.bubbles--play li {
  color: var(--white);
  background: var(--atlantic);
}
.eco__mark {
  width: 96px;
  height: 96px;
}
.eco__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.eco__label {
  margin: var(--sp-2) 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eco h3 { margin: 0; font-size: 1.35rem; }
.eco__title { margin: 0; font-weight: 700; color: var(--atlantic); }
.eco p { margin: 0; color: var(--ink-muted); }
.eco .btn { align-self: flex-start; }
.eco__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.academy-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) {
  .academy-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}
.academy-grid li {
  background: var(--white);
  border-radius: 20px;
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--sp-2);
}
.academy-grid img { width: 88px; height: 88px; object-fit: contain; }
.academy-grid h3 { margin: 0; font-size: 1.15rem; }
.academy-grid p { margin: 0; color: var(--ink-muted); max-width: 22ch; }
.academy__photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.caps {
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}
.split {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--play { grid-template-columns: 0.9fr 1.1fr; }
}
.split__mark {
  width: min(100%, 280px);
  justify-self: center;
}
.split__mark img {
  width: 100%;
  height: auto;
  display: block;
}
.split__close { margin: var(--sp-6) 0 var(--sp-4); font-weight: 700; color: var(--atlantic); }
.calc__hint { font-weight: 500; color: var(--ink-muted); }
.caps h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.caps p { margin: 0; color: var(--ink-muted); }

.commission {
  display: grid;
  gap: var(--sp-10);
  align-items: start;
}
@media (min-width: 900px) {
  .commission { grid-template-columns: 0.9fr 1.1fr; }
}
.calc {
  display: grid;
  gap: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--sp-6);
}
.calc label { display: grid; gap: var(--sp-2); font-weight: 700; }
.calc input[type="number"] {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.calc__row { display: flex; align-items: center; gap: var(--sp-3); font-weight: 600; }
.calc__row input { flex: 1; }
.calc__kicker { margin: 0; color: var(--ink-muted); font-size: var(--text-sm); }
.calc__amount { margin: 0.2rem 0; font-size: 2rem; font-weight: 700; color: var(--atlantic); }
.calc__year, .calc__note { margin: 0; color: var(--ink-muted); }
.calc .btn { justify-self: start; }

/* -------------------------------------------------------------- section head */
/* Reusable centred header used by several sections. */

.section__head { margin-bottom: var(--sp-12); }
.section__head--center {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
.section__head--center .eyebrow { text-align: center; }
.lede--center { margin-inline: auto; }

/* -------------------------------------------------------------- sport strip */
/* Task 4. Two identical tracks slide left as one continuous belt. Because the
   second track is an exact copy, the moment the first has moved fully out of
   view the loop restarts seamlessly. */

.sports { overflow: hidden; }
.sports .section__head { margin-bottom: var(--sp-8); }

.marquee {
  display: flex;
  width: max-content;
  /* Fade the belt in and out at the edges instead of hard-cutting icons. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex: 0 0 auto;
  gap: var(--sp-4);
  margin: 0;
  padding: 0 calc(var(--sp-4) / 2);
  list-style: none;
  animation: marquee-scroll 48s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  /* Each track is half the belt; shifting one full track width loops seamlessly. */
  to   { transform: translateX(calc(-100% - var(--sp-4))); }
}

.sport {
  flex: 0 0 auto;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-1);
  padding: var(--sp-6) var(--sp-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.sport img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: var(--sp-2);
}
.sport__name {
  font-weight: 600;
  color: var(--atlantic);
  font-size: var(--text-base);
}
.sport__facility {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--atlantic-700);
}

@media (prefers-reduced-motion: reduce) {
  /* No motion: freeze the belt and let it scroll manually if it overflows. */
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  /* The duplicate track adds nothing without motion and would just repeat the
     list for sighted users, so hide the aria-hidden copy entirely. */
  .marquee__track[aria-hidden='true'] { display: none; }
}

/* --------------------------------------------------------------- scroll reveal */
/* main.js adds .is-visible when the element enters the viewport. The reveal is
   opt-in via .reveal. Cards must be fully visible if JS never runs, so the
   hidden state is applied by a JS-set class on <html>, not by default. */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  /* No fade or slide; the class still gets added but does nothing. */
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- pain cards */
/* Task 5. */

.pains {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.pain__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--sp-3);
}
/* Three quiet tints so a reader can find their own role at a glance. All three
   labels clear AA on their tint (dark text on a pale ground). */
.pain__tag--owner { background: #E3F0F3; color: #0A3745; }
.pain__tag--desk  { background: #E7F1FB; color: #0F4C86; }
.pain__tag--coach { background: #EDF6D6; color: #46600A; }

.pain__quote {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--atlantic);
  line-height: 1.4;
  margin-bottom: var(--sp-3);
}
.pain__fix {
  color: var(--ink-muted);
  margin: 0;
}

@media (min-width: 640px) {
  .pains { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .pains { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}

/* ------------------------------------------------------- courts/coaching/both */
/* Task 6. Three shapes of academy; the middle (coaching-only) card is featured
   because it carries the message competitors miss. */

.shapes {
  display: grid;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shape {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}
.shape--featured {
  border-color: var(--lime);
  border-width: 2px;
  box-shadow: var(--shadow);
}

.shape__badge {
  position: absolute;
  top: calc(var(--sp-4) * -1);
  left: var(--sp-8);
  background: var(--lime);
  color: var(--on-lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.shape__title {
  color: var(--atlantic);
  margin-bottom: var(--sp-3);
}
.shape__body {
  color: var(--ink-muted);
  margin-bottom: var(--sp-4);
}
.shape__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}
.shape__points li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--ink);
}
/* Lime check drawn with a border, so no icon font or SVG request. */
.shape__points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid var(--atlantic-700);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (min-width: 860px) {
  .shapes { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ------------------------------------------------------------ feature rows */
/* Task 7. Alternating two-column rows. Mobile: copy then mock, stacked. */

.feature {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
  padding-block: var(--sp-12);
}
.feature + .feature { border-top: 1px solid var(--border); }

.feature__kicker {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atlantic-700);
  margin-bottom: var(--sp-3);
}
.feature__copy h3 { font-size: var(--text-2xl); margin-bottom: var(--sp-4); }
.feature__copy p { color: var(--ink-muted); margin-bottom: var(--sp-4); }

.feature__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}
.feature__list li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--ink);
}
.feature__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 11px;
  border: solid var(--lime-600);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
  /* Alternate the mock to the left on even rows. */
  .feature:nth-child(even) .feature__copy { order: 2; }
  .feature:nth-child(even) .feature__media { order: 1; }
}

/* --- shared mock panel --- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-weight: 700;
  color: var(--atlantic);
}
.panel__muted { font-size: 0.8rem; font-weight: 500; color: var(--ink-muted); }
.panel__foot {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--atlantic);
}

/* Small grid variant reusing the hero mock cells (colours only, no labels). */
.mock__grid--sm .mock__cell { min-height: 30px; padding: 0; }
.mock__grid--sm .mock__col-head,
.mock__grid--sm .mock__row-head { font-size: 0.72rem; }

/* roster (coaching) */
.roster { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.roster li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.roster__name { font-size: var(--text-sm); font-weight: 500; color: var(--ink); }

.chip {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.chip--ok { background: #E7F3E9; color: #146E34; }
.chip--warn { background: #FBEAEA; color: #B02222; }
.chip--pay { background: var(--white); border: 1px solid var(--border-strong); color: var(--atlantic); }

/* bill (POS) */
.bill { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.bill li {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--ink);
}
.bill__total {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--atlantic);
}
.bill__pay { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }

/* stats + bars (insights) */
.stats { display: flex; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.stat { display: flex; flex-direction: column; }
.stat__val { font-size: var(--text-xl); font-weight: 700; color: var(--atlantic); }
.stat__label { font-size: 0.76rem; color: var(--ink-muted); }
.bars {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
  height: 72px;
}
.bars span {
  flex: 1;
  background: linear-gradient(var(--lime), var(--lime-600));
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}

/* steps (onboarding) */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--sp-2); }
.steps li {
  position: relative;
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-8);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
}
.steps__done { color: var(--ink); }
.steps__done::before {
  content: '';
  background: var(--atlantic-700);
  border-color: var(--atlantic-700);
  /* small check */
  background-image:
    linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
}
.steps__now { color: var(--atlantic); font-weight: 700; }
.steps__now::before {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--on-lime);
}

/* --- capability chips --- */
.chips { margin-top: var(--sp-12); text-align: center; }
.chips__title { font-size: var(--text-xl); margin-bottom: var(--sp-6); }
.chips__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips__list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--atlantic);
}

/* -------------------------------------------------------------- accounting */
/* Task 8. Copy on the left, the 23-column report card on the right. */

.accounting {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
.accounting__copy p { color: var(--ink-muted); }
.accounting__note {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--white);
  border-left: 3px solid var(--atlantic-700);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.report {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow);
}
.report__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
}
.report__file {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--atlantic);
  word-break: break-all;
}
.report__caption {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: var(--sp-4);
}
.report__cols {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.report__cols li {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
/* The four tax columns are the point of the whole feature, so highlight them.
   Qualified with .report__cols to outrank `.report__cols li` on specificity. */
.report__cols li.report__cols-hl {
  background: #EDF6D6;
  border-color: var(--lime);
  color: #46600A;
  font-weight: 700;
}

@media (min-width: 900px) {
  .accounting { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
}

/* -------------------------------------------------------- one customer bill */
/* Task 9. Copy left, a receipt rendered in markup right. */

.onebill {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
.onebill__copy p { color: var(--ink-muted); }

.onebill__receipt { display: flex; justify-content: center; }

.receipt {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
}
.receipt__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-bottom: var(--sp-4);
  border-bottom: 1px dashed var(--border-strong);
  margin-bottom: var(--sp-4);
}
.receipt__brand img { height: 28px; width: auto; }
.receipt__meta { font-size: 0.78rem; color: var(--ink-muted); }

.receipt__lines { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-4); }
.receipt__lines li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
}
.receipt__item { display: flex; flex-direction: column; }
.receipt__item strong { color: var(--atlantic); font-weight: 600; }
.receipt__sub { font-size: 0.78rem; color: var(--ink-muted); }
.receipt__amt { font-weight: 600; color: var(--ink); white-space: nowrap; }

.receipt__total {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--atlantic);
}
.receipt__split {
  display: grid;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.receipt__splitrow {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.receipt__paid {
  margin-top: var(--sp-4);
  padding: var(--sp-2) var(--sp-3);
  background: #EDF6D6;
  color: #46600A;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}

@media (min-width: 900px) {
  .onebill { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
}

/* ---------------------------------------------------------- roles / branches */
/* Task 10. Cards on the Atlantic ground: a lightened translucent panel with a
   lime top rule. Text colours come from the .on-dark context. */

.roles {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.role {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--lime);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.role__title { color: var(--white); margin-bottom: var(--sp-3); }
.role__body { color: var(--on-dark); margin-bottom: var(--sp-3); }
.role__note {
  margin: 0;
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--text-sm);
  color: var(--on-dark-faint);
}

.roles__foot {
  margin-top: var(--sp-8);
  text-align: center;
  color: var(--on-dark-faint);
  font-size: var(--text-sm);
}

@media (min-width: 640px) {
  .roles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .roles { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------------ vision */
/* Task 11. Three horizons then a principle pull-quote. */

.horizons {
  display: grid;
  gap: var(--sp-6);
  margin: 0 0 var(--sp-12);
  padding: 0;
  list-style: none;
}

.horizon {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}
.horizon h3 { color: var(--atlantic); margin-bottom: var(--sp-3); }
.horizon p { color: var(--ink-muted); margin: 0; }

.horizon__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}
/* "Today" is the strong, confident state; "next"/"then" are quieter. */
.horizon__tag--now  { background: var(--lime); color: var(--on-lime); }
.horizon__tag--next { background: #E3F0F3; color: #0A3745; }
.horizon__tag--then { background: var(--surface); color: var(--ink-muted); border: 1px solid var(--border); }

.principle {
  margin: 0;
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  background: var(--atlantic);
  border-radius: var(--radius-lg);
}
.principle p {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  max-width: 30ch;
  margin: 0 auto var(--sp-4);
  text-wrap: balance;
}
.principle cite {
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
}

@media (min-width: 900px) {
  .horizons { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

/* ------------------------------------------------------------ integrations */
/* Task 12. Text wordmarks (no third-party logos) + two honesty-framed cards. */

.sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-12);
  padding: 0;
  list-style: none;
}
.source {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.source__name { font-weight: 600; color: var(--atlantic); }

.integ-cards {
  display: grid;
  gap: var(--sp-6);
}
.integ {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
}
.integ h3 { color: var(--atlantic); margin: var(--sp-4) 0 var(--sp-3); }
.integ p { color: var(--ink-muted); margin: 0; }

.integ__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.integ__badge--live { background: var(--lime); color: var(--on-lime); }
.integ__badge--soon { background: #E7F1FB; color: #0F4C86; }

.integ__link {
  display: inline-block;
  margin-top: var(--sp-4);
  font-weight: 600;
  color: var(--atlantic-700);
  text-decoration: none;
}
.integ__link:hover { text-decoration: underline; }

@media (min-width: 780px) {
  .integ-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------------------------------------------- pricing */
/* Task 13. Single centred card, no numbers, CTA into the enquiry form. */

.pricing {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-8);
  box-shadow: var(--shadow);
}
.pricing .eyebrow { text-align: center; }

.pricing__points {
  display: inline-grid;
  gap: var(--sp-2);
  text-align: left;
  margin: var(--sp-8) 0;
  padding: 0;
  list-style: none;
}
.pricing__points li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--ink);
}
.pricing__points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 11px;
  border: solid var(--lime-600);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.pricing__note {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 0;
}

/* ------------------------------------------------------------- enquiry form */
/* Task 14. On the Atlantic ground. Inputs are white for legibility; the intro
   uses the .on-dark context colours. */

.enquiry {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}
.enquiry__intro .lede { color: var(--on-dark); }
.enquiry__contact {
  margin: var(--sp-6) 0 0;
  color: var(--white);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.enquiry__contact p { margin: 0; color: var(--white); }
.enquiry__contact p.enquiry__contact-label {
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-1);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.on-dark .enquiry__contact a:link,
.on-dark .enquiry__contact a:visited,
.on-dark .enquiry__contact a:hover,
.on-dark .enquiry__contact a:focus-visible {
  color: var(--white);
  text-decoration: none;
}
.on-dark .enquiry__contact a:hover,
.on-dark .enquiry__contact a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

.enquiry__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--sp-4);
}

/* Honeypot — visually and structurally gone, but present in the DOM. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: grid; gap: 6px; }
.field label {
  font-weight: 600;
  color: var(--atlantic);
  font-size: var(--text-sm);
}
.field__req { color: var(--error); }
.field__opt { font-weight: 400; color: var(--ink-muted); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  min-height: 46px;
}
.field textarea { min-height: auto; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8493A0; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--atlantic-700);
  outline-offset: 1px;
  border-color: var(--atlantic-700);
}

/* Invalid state — set by JS via aria-invalid. */
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: var(--error);
}
.field__err {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--error);
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--sp-3);
}
.field--check input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 2px;
}
.field--check label {
  font-weight: 400;
  color: var(--ink);
  font-size: var(--text-sm);
}
.field--check .field__err { grid-column: 1 / -1; }

#enquiry-submit { margin-top: var(--sp-2); }
#enquiry-submit[disabled] { opacity: 0.6; cursor: progress; }

.enquiry__status {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  min-height: 1.2em;
}
.enquiry__status[data-tone='ok'] { color: #146E34; }
.enquiry__status[data-tone='info'] { color: var(--atlantic-700); }
.enquiry__status[data-tone='error'] { color: var(--error); }

.enquiry__privacy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.enquiry__privacy a { color: var(--atlantic-700); }

@media (min-width: 900px) {
  /* Centre the short intro against the taller form so the left column no
     longer leaves a large empty gap below it. (Was sticky/top-aligned for the
     old long-scroll page.) */
  .enquiry {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--sp-16);
    align-items: center;
  }
}

/* ------------------------------------------------------------- thanks page */

.thanks { min-height: 60vh; display: grid; place-items: center; }
.thanks__card {
  max-width: 40rem;
  text-align: center;
}
.thanks__card p { color: var(--ink-muted); }
.thanks__card .lede { margin-inline: auto; }

.thanks__mark {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--sp-6);
  border-radius: 50%;
  background: var(--lime);
}
.thanks__mark::before {
  content: '';
  width: 16px;
  height: 28px;
  border: solid var(--on-lime);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg) translateY(-2px);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

/* --------------------------------------------------------------------- FAQ */
/* Task 15. Native <details> — keyboard-operable and announced for free. */

.faq__list {
  max-width: 46rem;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-3);
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-4) var(--sp-6);
  font-weight: 600;
  color: var(--atlantic);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}
/* Remove the default disclosure triangle across engines. */
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--atlantic-700);
  border-bottom: 2px solid var(--atlantic-700);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }

.faq__item summary:focus-visible {
  outline: 3px solid var(--atlantic-700);
  outline-offset: -3px;
}

.faq__body {
  padding: 0 var(--sp-6) var(--sp-4);
}
.faq__body p { color: var(--ink-muted); margin: 0; }

/* ------------------------------------------------------------- final CTA band */

.cta-band__inner { text-align: center; }
.cta-band__inner .lede { margin-inline: auto; margin-bottom: var(--sp-8); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

/* ------------------------------------------------------------- legal pages */

.legal__inner { max-width: 44rem; }
.legal h1 { margin-bottom: var(--sp-2); }
.legal__updated {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-8);
}
.legal h2 {
  font-size: var(--text-xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}
.legal h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atlantic);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-1);
}
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.25em; display: grid; gap: var(--sp-2); }

/* ==========================================================================
   BLOG  (Task 16)
   Index card grid + article prose. Blog pages live in /blog/, so their asset
   paths use ../ — the CSS itself is path-agnostic.
   ========================================================================== */

.blog-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 { max-width: 18ch; }
.blog-hero p { max-width: 60ch; color: var(--ink-muted); font-size: 1.1rem; }

.post-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  margin-top: var(--sp-8);
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: var(--sp-6);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.post-card:hover {
  border-color: var(--atlantic-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.post-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atlantic-700);
}
.post-card h2 {
  font-size: 1.18rem;
  line-height: 1.3;
  margin: var(--sp-2) 0 var(--sp-3);
}
.post-card h2 a { color: var(--atlantic); text-decoration: none; }
.post-card:hover h2 a { text-decoration: underline; }
.post-card p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; flex: 1; }
.post-card__meta {
  margin-top: var(--sp-4);
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.post-card__meta::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  flex: 0 0 auto;
}

/* --- Article --- */
.post {
  padding: clamp(40px, 6vw, 72px) 0;
}
.post__inner { max-width: 44rem; margin: 0 auto; }
.post__crumbs {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: var(--sp-5);
}
.post__crumbs a { color: var(--atlantic-700); }
.post__crumbs span[aria-current] { color: var(--ink-muted); }
.post__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atlantic-700);
  margin-bottom: var(--sp-3);
}
.post h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.post__meta {
  color: var(--ink-muted);
  font-size: 0.9rem;
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.post__body > * + * { margin-top: var(--sp-5); }
.post__body h2 {
  font-size: 1.4rem;
  margin-top: var(--sp-8);
  color: var(--atlantic);
}
.post__body h3 { font-size: 1.12rem; margin-top: var(--sp-6); color: var(--atlantic); }
.post__body p, .post__body li { font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
.post__body ul, .post__body ol { padding-left: 1.4em; }
.post__body li + li { margin-top: var(--sp-2); }
.post__body strong { color: var(--atlantic); }
.post__body blockquote {
  border-left: 4px solid var(--lime);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  color: var(--atlantic);
  font-size: 1.15rem;
  font-style: italic;
}
.post__callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--atlantic-700);
  border-radius: var(--radius);
  padding: var(--sp-5);
  font-size: 0.98rem;
}

.post__cta {
  margin-top: var(--sp-8);
  background: var(--atlantic);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}
.post__cta h2 { color: var(--white); font-size: 1.35rem; margin-bottom: var(--sp-3); }
.post__cta p { color: var(--on-dark); margin-bottom: var(--sp-5); max-width: 46ch; margin-inline: auto; }

.post__more {
  max-width: 44rem;
  margin: var(--sp-8) auto 0;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.post__more h2 { font-size: 1.05rem; color: var(--ink-muted); margin-bottom: var(--sp-4); }
.post__more ul { list-style: none; display: grid; gap: var(--sp-3); }
.post__more a { color: var(--atlantic-700); font-weight: 600; }

/* ==========================================================================
   POLISH PASS — hover lifts + smoother card feel
   Additive only: a gentle rise and a deeper shadow on hover across the main
   card types. Disabled under reduced-motion and on touch (no hover) devices.
   ========================================================================== */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pain,
  .shape,
  .panel,
  .sport,
  .horizon,
  .source,
  .integ {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }
  .pain:hover,
  .shape:hover,
  .horizon:hover,
  .integ:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
  .sport:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--atlantic-700);
  }
  .source:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--atlantic-700);
  }
}

/* Buttons get a subtle lift too — makes the primary CTA feel tactile. */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
  .btn--primary:hover { box-shadow: 0 6px 18px rgba(168, 217, 0, 0.35); transform: translateY(-1px); }
}

/* ==========================================================================
   Real product screenshots — hero frame + "See it in action" gallery
   Added when the CSS mocks were replaced with real captures.
   ========================================================================== */

/* Real screenshot filling the hero browser frame (replaces the CSS mock). */
.frame__body--shot { padding: 0; }
.frame__body--shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

/* Gallery section */
.shots__desktop {
  display: grid;
  gap: var(--sp-4, 1.5rem);
  margin-bottom: var(--sp-6, 2.5rem);
}
@media (min-width: 900px) {
  .shots__desktop { grid-template-columns: 1fr 1fr; }
}
.shots__mobile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4, 1.25rem);
  max-width: 760px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .shots__mobile { grid-template-columns: 1fr; max-width: 320px; }
}
.shot { margin: 0; }
.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot img {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(13, 42, 68, .12);
  border: 1px solid rgba(13, 42, 68, .06);
}
.shot--phone img { border-radius: 22px; }
.shot figcaption {
  margin-top: .6rem;
  text-align: center;
  font-size: .9rem;
  color: var(--muted, #5b6b7b);
}

/* ==========================================================================
   Two apps, one platform — Partner (live) + Player (coming)
   ========================================================================== */
.twoapps {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-8, 32px);
}
@media (min-width: 820px) {
  .twoapps { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.twoapp {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8, 32px);
  background: var(--white);
}
.twoapp--featured {
  background: var(--atlantic);
  border-color: var(--atlantic);
  color: var(--on-dark);
}
.twoapp--featured h3 { color: #fff; }
.twoapp--featured .twoapp__points { color: var(--on-dark); }
.twoapp--featured .twoapp__points strong { color: var(--lime); }
.twoapp h3 { margin: var(--sp-3) 0 var(--sp-2); color: var(--ink); }
.twoapp p { color: var(--ink-muted); }
.twoapp--featured p { color: var(--on-dark); }
.twoapp__tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.twoapp__tag--now { background: rgba(11, 64, 80, .08); color: var(--atlantic); }
.twoapp__tag--next { background: var(--lime); color: var(--on-lime); }
.twoapp__points {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 0;
  display: grid;
  gap: var(--sp-2);
}
.twoapp__points li { position: relative; padding-left: 1.4em; }
.twoapp__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .5em; height: .5em;
  border-radius: 50%;
  background: var(--lime);
}
.vision__note {
  margin-top: var(--sp-6);
  text-align: center;
  color: var(--ink-muted);
  max-width: 68ch;
  margin-inline: auto;
}

/* ==========================================================================
   REDESIGN — image-led, short-copy layout
   Hero image, 7-feature picture cards, lite two-apps, ticks, CTA band image.
   ========================================================================== */

/* --- Hero with a real illustration instead of the CSS mock --- */
.hero--image .hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* --- Feature picture cards (the 7 flyer features) --- */
.fcards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  justify-content: center;
}
@media (min-width: 620px) {
  /* Two even columns; tracks capped so a lone last card stays centred, not
     stretched across the row. */
  .fcards { grid-template-columns: repeat(2, minmax(0, 360px)); }
}
@media (min-width: 960px) {
  .fcards { grid-template-columns: repeat(3, minmax(0, 340px)); }
}
/* The 7th card would otherwise sit alone at the left of a new row with a big
   empty gap on the right. Centre that orphan row. */
@media (min-width: 960px) {
  .fcard:last-child:nth-child(3n - 2) { grid-column: 2; }
}

.fcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.fcard__art {
  width: 128px;
  height: 128px;
  margin: 0 auto var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(70% 70% at 50% 30%, rgba(168, 217, 0, 0.18), transparent 70%),
    var(--surface);
}
.fcard__art img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.fcard__title {
  font-size: var(--text-lg);
  color: var(--atlantic);
  margin: 0 0 var(--sp-2);
}
.fcard__text {
  color: var(--ink-muted);
  font-size: var(--text-base);
  margin: 0;
  max-width: 32ch;
  margin-inline: auto;
}

/* --- Two apps, lite: copy + one illustration side by side --- */
.twoapps-lite {
  display: grid;
  gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 900px) {
  .twoapps-lite { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
}
.twoapps-lite__media img {
  display: block;
  width: 100%;
  height: auto;
}
.twoapps-lite h2 { margin-bottom: var(--sp-4); }
.twoapps-lite .btn { margin-top: var(--sp-6); }

/* --- Simple ticked list used in the two-apps copy --- */
.ticks {
  list-style: none;
  margin: var(--sp-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.ticks li {
  position: relative;
  padding-left: 1.9em;
  color: var(--ink);
}
.ticks li strong { color: var(--atlantic); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: var(--lime);
  /* a small navy tick drawn on the lime dot */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* --- CTA band with the courts illustration behind the text --- */
.cta-band--image {
  position: relative;
  overflow: hidden;
}
.cta-band--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/story/cta-courts.png") center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}
.cta-band--image .cta-band__inner { position: relative; }

/* ---------------------------------------------------------------- tournaments landing */
.tn-body { background: var(--bg); color: var(--ink); font-family: var(--font); }
.tn-header { background: #fff; }
.tn-header .primary-nav__list a[aria-current="page"] {
  color: var(--atlantic);
  box-shadow: inset 0 -2px 0 var(--lime);
}
.tn-login {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--atlantic);
  border-radius: 8px;
  color: var(--atlantic);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.tn-hero {
  position: relative;
  background: #063544;
  color: #fff;
  overflow: hidden;
}
.tn-hero__art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.tn-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 36, 46, 0.78) 0%, rgba(6, 36, 46, 0.42) 46%, rgba(6, 36, 46, 0.08) 100%);
}
.tn-hero__copy {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding-top: 40px;
  padding-bottom: 40px;
}
.tn-hero__copy h1,
.tn-hero__copy > p,
.tn-search { max-width: 560px; }
.tn-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
}
.tn-hero h1 span { color: var(--lime); }
.tn-hero__copy > p { margin: 12px 0 0; color: rgba(255,255,255,0.88); font-size: 16px; }
.tn-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  background: #fff;
  border-radius: 12px;
  padding: 0 16px;
  height: 52px;
  max-width: 560px;
  color: #64748B;
}
.tn-search svg { width: 20px; height: 20px; flex: none; }
.tn-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
}
.tn-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.tn-points li { display: flex; align-items: center; gap: 8px; }
.tn-catalog { padding: 28px 0 64px; }
.tn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.tn-filters label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}
.tn-filters select {
  height: 40px;
  min-width: 140px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}
.tn-reset {
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--atlantic);
  font-weight: 600;
  cursor: pointer;
}
.tn-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 28px 0 16px;
}
.tn-heading h2 { margin: 0; font-size: 22px; color: var(--atlantic); }
.tn-heading p { margin: 4px 0 0; color: var(--ink-muted); }
.tn-count { margin: 0; color: var(--ink-muted); white-space: nowrap; }
.tn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
#event-list.tn-grid { display: flex; flex-direction: column; gap: 28px; }
.tn-week h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--atlantic); }
.tn-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.tn-card__media {
  position: relative;
  aspect-ratio: 8 / 3;
  background: #eef3f1;
  overflow: hidden;
}
.tn-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tn-card__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.tn-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: var(--atlantic);
}
.tn-meta,
.tn-place,
.tn-deadline { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--ink); font-size: 15px; line-height: 1.4; }
.tn-deadline { color: var(--atlantic); font-weight: 700; }
.tn-ico { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tn-place,
.tn-org { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.4; }
.tn-org { color: var(--ink-muted); }
.tn-card__row { display: flex; align-items: center; gap: 6px; }
.tn-sport {
  max-width: 60%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #D8F8E4;
  color: var(--atlantic);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tn-more { color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.tn-reg {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
}
.tn-reg.is-open { background: #16A34A; border-color: #16A34A; color: #fff; }
.tn-reg.is-live { background: #ECFCCB; border-color: #BEF264; color: #3F6212; }
.tn-reg.is-soon { background: #E0F2FE; border-color: #BAE6FD; color: #0369A1; }
.tn-reg.is-done { background: #F1F5F9; border-color: #E2E8F0; color: #475569; }
@media (min-width: 721px) {
  .tn-hero { max-height: 420px; }
  .tn-hero__art { height: 420px; object-fit: cover; object-position: center right; }
}
@media (max-width: 720px) {
  .tn-hero__art,
  .tn-hero__shade,
  .tn-points { display: none; }
}
.tournament-page { padding: var(--sp-12) 0 var(--sp-16); }
.tournament-page h1 { margin: 0 0 var(--sp-3); }
.tournament-lede { color: var(--ink-muted); max-width: 40rem; }
.event-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-8); }
.event-card {
  display: block;
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  text-decoration: none;
  color: inherit;
}
.event-card:hover { border-color: var(--atlantic); }
.event-card h2 { margin: 0 0 var(--sp-2); font-size: var(--text-xl); }
.event-card p { margin: 0; color: var(--ink-muted); }
.category-list { display: grid; gap: var(--sp-3); margin: var(--sp-8) 0; }
.category-row {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.category-row label { flex: 1; }
.category-row strong { display: block; }
.reg-form {
  display: grid;
  gap: var(--sp-4);
  max-width: 28rem;
  margin-top: var(--sp-8);
}
.reg-form label { display: grid; gap: var(--sp-1); font-weight: 600; }
.reg-form input[type="text"],
.reg-form input[type="tel"] {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}
.reg-note { color: var(--ink-muted); }
.reg-note.is-error { color: #B91C1C; font-weight: 600; }
.reg-note.is-warn { color: #C2410C; font-weight: 600; }

.td-back { display: none; }
.td-crumb { margin: 16px 0; color: var(--ink-muted); font-size: 14px; }
.td-crumb a { color: var(--atlantic); text-decoration: none; font-weight: 600; }
.td-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: end;
  min-height: 320px;
  padding: 32px;
  border-radius: 20px;
  overflow: hidden;
  background: #063544;
  color: #fff;
}
.td-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.td-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,53,68,.92), rgba(6,53,68,.35)); }
.td-hero__main, .td-register { position: relative; z-index: 1; }
.td-hero h1 { margin: 0 0 8px; color: #fff; font-size: clamp(32px, 4vw, 48px); }
.td-hero__main p { margin: 0 0 8px; color: rgba(255,255,255,.9); }
.td-register {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.td-register .tn-badge { position: static; }
.td-count { display: flex; gap: 12px; text-align: center; }
.td-count strong { display: block; font-size: 28px; color: var(--atlantic); }
.td-count span { font-size: 12px; color: var(--ink-muted); }
.td-tabs { display: flex; gap: 0; margin: 12px 0; border-bottom: 1px solid #E2E8F0; overflow-x: auto; }
.td-tabs button { flex: 1 0 auto; text-align: center; background: transparent; border: 0; padding: 12px 10px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink-muted); cursor: pointer; }
#tournament-detail h1,
#tournament-detail h2,
#tournament-detail h3 { font-family: var(--font); letter-spacing: 0; text-wrap: wrap; }
.td-top { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; column-gap: 10px; align-items: center; margin: 4px 0 2px; }
.td-top .td-back { display: grid; place-items: center; grid-column: auto; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid #E2E8F0; border-radius: 50%; background: #fff; color: #0F172A; cursor: pointer; }
.td-top .td-back::before { content: none; }
.td-top .td-back svg { width: 18px; height: 18px; display: block; }
.td-top .td-share { grid-column: auto; grid-row: auto; margin: 0; }
.td-top .td-head { grid-column: auto; min-width: 0; }
.td-head { display: block; }
.td-head h1 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; color: #0F172A; }
@media (max-width: 720px) {
  .td-head h1 {
    font-size: 16px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
.td-share { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid #E2E8F0; border-radius: 50%; background: #fff; color: var(--atlantic); text-decoration: none; cursor: pointer; }
.td-share svg { width: 15px; height: 15px; display: block; }
body.td-poster-open { overflow: hidden; }
#td-poster { position: fixed; inset: 0; z-index: 400; overflow: auto; display: grid; place-items: center; background: rgba(6, 16, 40, 0.72); padding: 16px 12px; }
.td-sharebox { width: min(100%, 420px); padding: 18px 16px 14px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28); }
.td-sharebox h2 { margin: 0 0 10px; font-size: 18px; }
.td-sharebox__text { margin: 0; padding: 12px; border-radius: 12px; background: #F8FAFC; color: #1E293B; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.td-sharebox__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.td-sharebox__actions .btn { min-height: 40px; border-radius: 999px; }
.td-sharebox .reg-note { min-height: 1.2em; margin: 8px 0 0; }
.td-poster__bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 210mm; margin: 0 auto 12px; padding: 10px; border-radius: 16px; background: #0f172a; }
.td-poster__bar .btn { min-height: 44px; border-radius: 999px; }
.td-poster__bar .btn--secondary { background: #fff; color: #0B4050; border-color: #fff; }
.td-poster__page { display: flex; flex-direction: column; width: min(100%, 210mm); min-height: 297mm; margin: 0 auto; padding: 16px 16px 18px; background: linear-gradient(180deg, #071433 0%, #0c2a78 55%, #071433 100%); color: #fff; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28); }
.td-poster__top { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; gap: 12px; align-items: center; margin-bottom: 12px; }
.td-poster__logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; }
.td-poster__top h2 { margin: 0; color: #fff; font-size: 26px; line-height: 1.05; font-weight: 800; font-style: italic; text-align: center; }
.td-poster__top p { margin: 6px 0 0; color: #fff; font-size: 14px; text-align: center; }
.td-poster__banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #111; color: #FFE14A; }
.td-poster__banner b { font-size: 20px; line-height: 1.2; font-weight: 800; }
.td-poster__prize { flex: none; display: grid; place-items: center; width: 92px; height: 92px; margin: -18px -6px -18px 0; border-radius: 50%; background: #FFE14A; color: #111; text-align: center; transform: rotate(8deg); box-shadow: 0 0 0 6px rgba(255, 225, 74, 0.25); }
.td-poster__prize small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.td-poster__hero { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 14px; align-items: start; }
.td-poster__hero img.td-poster__player { width: 100%; height: 300px; object-fit: contain; object-position: center bottom; background: transparent; }
.td-poster__hero.is-text { grid-template-columns: 1fr; }
.td-poster__facts span { display: block; margin-top: 4px; color: #FFE14A; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.td-poster__page h3 { margin: 12px 0 6px; color: #FFE14A; font-size: 13px; font-weight: 800; }
.td-poster__dates, .td-poster__hero ul, .td-poster__people { list-style: none; margin: 0; padding: 0; }
.td-poster__dates li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; }
.td-poster__dates li b { font-weight: 800; }
.td-poster__dates li span { color: #FFE14A; text-align: right; white-space: nowrap; }
.td-poster__hero ul:not(.td-poster__dates) li { padding: 2px 0 2px 12px; font-size: 13px; line-height: 1.35; }
.td-poster__hero ul:not(.td-poster__dates) li::before { content: "▸ "; color: #FFE14A; font-weight: 700; }
.td-poster__hero p { margin: 0; font-size: 13px; line-height: 1.4; }
.td-poster__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.td-poster__facts p { margin: 0; }
.td-poster__facts small, .td-poster__people small { display: block; color: #FFE14A; font-size: 12px; font-weight: 800; }
.td-poster__facts b { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; font-weight: 700; }
.td-poster__notes { display: grid; gap: 8px; margin-bottom: 14px; }
.td-poster__notes p { margin: 0; padding: 8px 10px; border: 1px solid #FFE14A; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 600; }
.td-poster__people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; border: 1px solid #FFE14A; }
.td-poster__people li { min-width: 0; padding: 8px 10px; border-right: 1px solid #FFE14A; border-bottom: 1px solid #FFE14A; text-align: center; }
.td-poster__people b { display: block; margin-top: 2px; font-size: 14px; line-height: 1.25; }
.td-poster__people span { display: block; margin-top: 2px; color: #fff; font-size: 11px; font-weight: 600; }
.td-poster__page footer { display: none; }
@media (max-width: 720px) {
  .td-poster__hero, .td-poster__facts, .td-poster__people { grid-template-columns: 1fr; }
  .td-poster__page { min-height: 0; }
  .td-poster__hero img { height: 200px; }
  .td-poster__banner b { font-size: 16px; }
  .td-poster__dates li span { white-space: normal; }
}
@media print {
  body.td-poster-print > *:not(#td-poster) { display: none !important; }
  body.td-poster-print #td-poster { position: static; padding: 0; background: #fff; overflow: visible; }
  body.td-poster-print .td-poster__bar { display: none !important; }
  body.td-poster-print .td-poster__page { width: auto; min-height: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.td-poster-print .td-poster__hero { grid-template-columns: 0.78fr 1.22fr; }
  body.td-poster-print .td-poster__facts,
  body.td-poster-print .td-poster__people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.td-status { margin: 2px 0 0; color: #64748B; font-size: 13px; font-weight: 600; }
body.is-matchboard .td-status { display: none; }
.td-banner { aspect-ratio: 8 / 3; border-radius: 16px; overflow: hidden; background: #eef3f1; border: 1px solid #E2E8F0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
.td-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-sponsors { margin-top: 18px; min-width: 0; }
.td-sponsors > h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: var(--ink); }
.td-title { position: relative; overflow: hidden; display: block; margin: 0 0 4px; padding: 16px 16px 18px; border: 1px solid #d7eadb; border-radius: 16px; background: linear-gradient(105deg, #f4fbf6 0%, #e7f6ea 58%, #d9f3df 100%); color: inherit; text-decoration: none; }
.td-title + .td-title { margin-top: 8px; }
.td-title__badge { display: inline-block; margin: 0 0 10px; padding: 4px 8px; border-radius: 6px; background: var(--atlantic); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.td-title strong { display: block; font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--ink); }
.td-title em { display: block; margin-top: 3px; font-style: normal; font-size: 13px; font-weight: 500; color: #64748B; }
.td-title img { position: absolute; right: 16px; top: 50%; width: auto; height: 48px; max-width: 88px; object-fit: contain; transform: translateY(-50%); }
.td-title.is-logo { padding-right: 116px; }
.td-sponsor-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.td-sponsor-head::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: #7dce3a; flex: none; }
.td-sponsor-head--trophy::before { background: #d4a017; }
.td-co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.td-co-grid:has(> :only-child) { grid-template-columns: 1fr; }
.td-co { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; background: #fff; border: 1px solid #E6EDF2; border-radius: 14px; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
.td-co img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.td-co span { min-width: 0; }
.td-co strong, .td-trophy strong { display: block; font-size: 14px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.td-co small, .td-trophy small { display: block; margin-top: 2px; color: #64748B; font-size: 12px; font-weight: 500; }
.td-trophy { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border: 1px solid #f0e4c4; border-radius: 14px; background: linear-gradient(90deg, #fffaf0 0%, #f8f1dc 100%); color: inherit; text-decoration: none; }
.td-sponsor-head + .td-trophy { margin-top: 0; }
.td-trophy__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: #c9922a; flex: none; }
.td-trophy__icon svg { width: 22px; height: 22px; display: block; }
.td-trophy strong { font-size: 15px; font-weight: 800; }
.td-facts { margin-top: 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 4px 0 6px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
.td-venues { margin-top: 14px; }
.td-venues h2, .td-dates h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.td-venue-grid { display: grid; gap: 12px; }
.td-venue { overflow: hidden; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
.td-venue-main { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; }
.td-venue details, .td-venue-text { flex: 1; min-width: 0; }
.td-venue summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.td-venue summary::-webkit-details-marker { display: none; }
.td-venue summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid #94A3B8; border-bottom: 2px solid #94A3B8; transform: rotate(45deg); flex: none; }
.td-venue details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.td-venue-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.td-venue-copy strong { font-size: 15px; font-weight: 600; }
.td-venue-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: #eef3f1; flex: none; }
.td-venue details[open] .td-venue-thumb,
.td-venue details[open] .td-venue-short { display: none; }
.td-venue-short, .td-venue-fulladdr { color: #64748B; font-size: 13px; font-weight: 500; line-height: 1.4; }
.td-venue-fulladdr { margin: 10px 0 0; }
.td-venue-photo { display: block; width: 100%; height: 168px; margin-top: 10px; object-fit: cover; border-radius: 10px; background: #eef3f1; }
.td-map { flex: none; width: 36px; height: 36px; display: grid; place-items: center; text-decoration: none; }
.td-map svg { width: 28px; height: 28px; display: block; }
.td-committee { list-style: none; margin: 0; padding: 0 14px 8px; }
.td-committee li { padding: 10px 0; border-top: 1px solid #E2E8F0; }
.td-committee strong, .td-committee span, .td-committee a { display: block; }
.td-committee strong { font-size: 12px; color: var(--ink-muted); }
.td-committee span { font-size: 15px; font-weight: 600; color: #1E293B; }
.td-committee em { display: block; margin-top: 1px; font-style: normal; font-size: 13px; font-weight: 500; color: #64748B; }
.td-committee a { margin-top: 2px; color: var(--atlantic); font-size: 13px; font-weight: 700; text-decoration: none; }
@media (min-width: 720px) {
  .td-venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.td-dates { margin-top: 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 14px 16px 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
.td-timeline { list-style: none; margin: 0; padding: 2px 0 2px 4px; }
.td-timeline li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 8px 8px 8px 0; }
.td-timeline li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: -8px; width: 2px; background: #b7c0c4; }
.td-timeline li:last-child::before { display: none; }
.td-time__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #6c757d; border-radius: 50%; background: #fff; color: #6c757d; }
.td-time__icon svg { width: 14px; height: 14px; }
.td-time__copy { min-width: 0; }
.td-time__copy strong, .td-time__copy em { display: block; }
.td-time__copy strong { font-size: 14px; line-height: 1.3; font-weight: 500; }
.td-time__copy em { margin-top: 2px; font-style: normal; font-size: 13px; color: var(--ink-muted); }
.td-timeline li.is-next { margin-right: 2px; padding: 10px 12px 10px 0; background: var(--atlantic); color: #fff; border-radius: 20px; }
.td-timeline li.is-next .td-time__copy em { color: #fff; }
.td-timeline li.is-next .td-time__icon { background: var(--atlantic); border-color: #fff; color: #fff; }
#tournament-detail .td-facts h2 { margin: 0; padding: 12px 16px 4px; font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--ink); }
.td-facts p { display: grid; grid-template-columns: 1fr; gap: 2px; align-items: start; margin: 0; padding: 10px 16px; border-top: 1px solid #F1F5F9; font-size: 15px; }
.td-facts p:first-of-type { border-top: 0; }
.td-facts span { color: #64748B; font-size: 12px; font-weight: 600; line-height: 1.35; }
.td-facts strong { font-weight: 500; font-size: 15px; line-height: 1.4; color: #1E293B; }
.td-facts strong:has(.td-sportchip) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.td-sportchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 999px; background: #D8F8E4; font-size: 12px; font-weight: 600; line-height: 1; }
.td-sportchip .material-icons { width: 14px; height: 14px; font-size: 14px; line-height: 14px; color: var(--atlantic); }
.td-sportlast { display: inline-flex; align-items: center; gap: 6px; }
.td-sportrest { display: contents; }
.td-sportrest[hidden] { display: none !important; }
.td-sportmore, .td-seemore { flex: none; border: 0; background: none; padding: 0; color: var(--atlantic); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
@media (min-width: 720px) {
  .td-facts p { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 11px 16px; }
}
#tournament-detail .td-block h2 { margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.td-moments, .td-notes { list-style: none; margin: 0; padding: 0; }
.td-moments li, .td-notes li { padding: 8px 0; border-top: 1px solid #E2E8F0; }
.td-moments li { display: flex; justify-content: space-between; gap: 12px; }
.td-moments span { color: var(--ink-muted); }
.td-count-note { color: var(--ink-muted); font-weight: 600; }
#tournament-detail .td-block p { margin: 0; font-size: 14px; line-height: 1.45; }
.td-cats { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.td-cats h3 { margin: 0; padding: 12px 14px 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
.td-catline { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 14px; font-size: 14px; }
.td-catline b { color: var(--atlantic); font-size: 12px; }
.td-catline b.is-closed { color: var(--ink-muted); font-weight: 700; }
.td-fee { font-size: 16px; font-weight: 700; }
.td-cat-summary,
.td-fee-block { display: none; }
.td-fold { margin-top: 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
.td-fold summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--ink); list-style: none; }
.td-fold summary::-webkit-details-marker { display: none; }
.td-fold summary::after { content: "+"; font-size: 20px; font-weight: 500; line-height: 1; color: #64748B; }
.td-fold[open] summary::after { content: "\2212"; }
.td-fold p { margin: 0; padding: 0 14px 12px; font-size: 14px; white-space: pre-wrap; }
.td-fold .td-moments,
.td-fold .td-notes { margin: 0; padding: 0 14px 12px; }
.td-fold .td-moments li,
.td-fold .td-notes li { padding: 8px 0; border-top: 1px solid rgba(15, 23, 42, 0.08); font-size: 14px; line-height: 1.45; }
.td-fold .td-moments li:first-child,
.td-fold .td-notes li:first-child { border-top: 0; padding-top: 0; }
.td-fold .td-moments li { display: flex; justify-content: space-between; gap: 12px; }
.td-fold .td-moments span { color: var(--ink-muted); font-size: 14px; }
.td-register-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 12px 0 8px; background: linear-gradient(transparent, var(--bg) 28%); }
.td-register-bar .btn { width: 100%; min-height: 48px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.td-pick { width: 100%; max-width: 420px; height: 44px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; padding: 0 12px; }
.td-meta-line { margin: 4px 0 10px; color: var(--ink-muted); font-size: 14px; }
.td-format { display: block; margin: 2px 0 8px; color: var(--atlantic); font-size: 13px; font-weight: 700; }
.td-days { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 8px; }
.td-day { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #E2E8F0; background: #fff; color: #334155; font-size: 13px; font-weight: 500; white-space: nowrap; flex: 0 0 auto; cursor: pointer; }
.td-days .td-day.is-on,
.td-switch .td-day.is-on,
.td-round.is-on { background: #E6F1F4; border-color: #E6F1F4; color: var(--atlantic); }
.td-fixture, .td-result { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 0 0 8px; font-size: 14px; }
.td-fixture header, .td-result header { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-muted); font-size: 12px; }
.td-fixture p, .td-result p { margin: 6px 0 0; font-size: 14px; }
.td-score { font-weight: 700; color: var(--atlantic); font-size: 14px; }
.td-picker { position: relative; margin-bottom: 8px; }
.td-pickbtn { display: flex; align-items: center; gap: 10px; width: 100%; height: auto; min-height: 52px; padding: 10px 14px; border: 1px solid #E2E8F0; border-radius: 16px; background: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.td-pickbtn .material-icons { width: 28px; font-size: 28px; color: var(--atlantic); flex: none; }
.td-pickrow .material-icons { width: 22px; font-size: 22px; color: var(--atlantic); flex: none; }
.td-pickbtn__name { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: #1E293B; }
.td-pickbtn__name small { color: #64748B; font-size: 12px; font-weight: 600; }
.td-pickbtn__stage, .td-pickbtn__chev { color: var(--atlantic); font-size: 12px; font-weight: 700; }
.td-picklist { position: absolute; z-index: 8; left: 0; right: 0; top: 48px; max-height: 420px; overflow: auto; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); }
.td-picklist > p { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.td-pickrows { display: flex; flex-direction: column; margin-top: 8px; }
.td-pickrow { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.td-pickrow[hidden],
.td-picklist[hidden] { display: none !important; }
.td-picklist .td-sports { flex-wrap: wrap; gap: 8px; margin: 0 0 8px; max-width: 100%; }
.td-pickrow span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.td-pickrow b { font-size: 14px; font-weight: 500; color: #1E293B; }
.td-pickrow small { color: var(--ink-muted); font-size: 12px; }
.td-pickrow i { color: var(--atlantic); font-style: normal; font-weight: 700; }
  .td-sched__current { display: none; }
.td-court h3 { margin: 4px 0 0; }
.td-order { display: flex; flex-direction: column; gap: 6px; }
.td-row .td-pill.is-live,
.td-fix__bar .td-pill.is-live { background: #E7F6D8; color: #3F6212; padding: 2px 8px; font-weight: 700; }
.td-row .td-pill.is-live i,
.td-fix__bar .td-pill.is-live i { background: #65A30D; }
.td-row__sets .is-win,
.td-row__sets .td-set.is-win { background: #E7F6D8; color: #3F6212; }
.td-row { display: none; }
.td-row__time { position: relative; padding: 10px 12px; border-radius: 12px; background: linear-gradient(180deg, #0F4E56 0%, #083843 46%, #062830 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.td-row__time .td-pill { position: absolute; top: -8px; right: -8px; }
.td-row__time small { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; opacity: 0.9; }
.td-row__time b { display: block; font-size: 16px; white-space: nowrap; }
.td-row__done { color: #15803D; font-size: 11px; font-weight: 800; white-space: nowrap; }
.td-row__time.is-open b { font-size: 12px; font-weight: 700; }
.td-row__time span { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; opacity: 0.85; }
.td-row__name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.td-row__name .td-names { min-width: 0; overflow: hidden; }
.td-row__name .td-names b { overflow-wrap: anywhere; }
.td-row__name .td-draw__cup { margin: 0; flex: none; }
.td-row__mid { flex: none; }
.td-row__name .td-names { align-items: flex-start; text-align: left; }
.td-row__mid { display: flex; align-items: center; justify-content: center; gap: 8px; }
.td-row__vs { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 28px; padding: 0 8px; border-radius: 999px; background: #F1F5F9; color: #64748B; font-size: 12px; font-weight: 800; }
.td-row__name.is-right { justify-content: flex-end; }
.td-row__name.is-right .td-names { align-items: flex-end; text-align: right; }
.td-row__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; min-width: 118px; }
.td-row__end .td-pill { white-space: nowrap; }
.td-row .td-pill.is-live { background: #E7F6D8; color: #3F6212; padding: 2px 8px; font-weight: 700; }
.td-row .td-pill.is-live i { background: #65A30D; }
.td-row__sets { display: flex; flex-direction: column; gap: 4px; }
.td-row__sets > span { display: flex; justify-content: center; gap: 6px; }
.td-row__sets .td-set { min-width: 28px; height: 28px; border: 0; border-radius: 8px; font-size: 14px; line-height: 28px; }
.td-row__sets .is-win { background: #E7F6D8; color: #3F6212; }
.td-row__sets .is-lose { background: #E8EDF2; color: #64748B; }
.td-row__round { padding: 2px 8px; border: 0; border-radius: 999px; background: #E6F1F4; color: var(--atlantic); font-size: 11px; font-weight: 700; white-space: nowrap; }
.td-court__day { display: none; }
.td-fix { display: block; padding: 0; overflow: hidden; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
.td-order h3 { display: flex; align-items: center; gap: 6px; margin: 16px 0 12px; padding: 0; border-radius: 0; background: transparent; font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--atlantic); text-transform: none; }
.td-order h3 .material-icons { font-size: 18px; width: 18px; }
.td-fix__bar { position: relative; display: flex; align-items: center; gap: 6px; margin: 0; padding: 13px 14px; background: linear-gradient(180deg, #0F4E56 0%, #083843 46%, #062830 100%); color: #fff; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.td-fix__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)); pointer-events: none; }
.td-fix__bar > * { position: relative; z-index: 1; }
.td-fix__bar .material-icons, .td-fix__ico { width: 16px; height: 16px; flex: none; color: #fff; }
.td-fix__bar b { font-weight: 700; }
.td-fix__split { width: 1px; height: 14px; margin: 0 4px; background: rgba(255, 255, 255, 0.35); }
.td-fix__bar .td-pill { margin-left: auto; }
.td-fix__bar .td-pill.is-live { background: #E7F6D8; color: #3F6212; padding: 2px 8px; font-weight: 700; }
.td-fix__bar .td-pill.is-live i { background: #65A30D; }
.td-fix.is-scored .td-fix__side { border-left: 3px solid var(--lime); padding-left: 8px; }
.td-fix.is-result { margin: 0 0 10px; }
.td-fix.is-result .td-fix__play { justify-content: flex-start; }
.td-fix.is-result .td-fix__names,
.td-fix.is-result .td-names { align-items: flex-start; text-align: left; }
.td-fix.is-result.is-scored .td-fix__side { border-left: 0; padding-left: 0; }
.td-fix.is-result .td-fix__side.is-won { border-left: 3px solid var(--lime); padding-left: 8px; }
.td-fix__note { margin: 8px 0 0; color: var(--ink-muted); font-size: 12px; }
.td-fix__bar .td-pill.is-done { background: rgba(255, 255, 255, 0.16); color: #fff; padding: 4px 10px; }
.td-vs { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 10px 0; border-radius: 50%; background: #E8EDF2; color: var(--atlantic); font-size: 12px; font-weight: 800; }
.td-vs span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #E8EDF2; }
.td-vs--gap { visibility: hidden; margin: 10px 0; background: transparent; }
.td-fix.is-scored .td-vs:not(.td-vs--gap) { width: 100%; height: auto; margin: 8px 0; background: transparent; gap: 8px; }
.td-fix.is-scored .td-vs:not(.td-vs--gap)::before,
.td-fix.is-scored .td-vs:not(.td-vs--gap)::after { content: ""; flex: 1; height: 1px; background: #E2E8F0; }
.td-fix__foot { display: flex; align-items: center; gap: 6px; }
.td-fix__foot .material-icons { font-size: 16px; width: 16px; color: var(--atlantic); }
.td-fix .td-set { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: #E7F6D8; color: var(--atlantic); font-size: 16px; font-weight: 700; line-height: 36px; }
.td-fix__body { padding: 14px 14px 12px; }
.td-fix__play { display: flex; align-items: center; justify-content: center; gap: 12px; }
.td-fix.is-scored .td-fix__play { justify-content: space-between; }
.td-fix__names { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.td-fix.is-scored .td-fix__names { align-items: flex-start; flex: 1; }
.td-fix__scores { display: flex; flex-direction: column; align-items: flex-end; gap: 0; flex: none; }
.td-fix__side { display: flex; align-items: center; margin: 0; }
.td-fix__foot, .td-pause { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #E2E8F0; color: var(--ink-muted); font-size: 12px; }
.td-pause { border-top: 0; padding-top: 4px; }
.td-names { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.td-fix .td-names { flex: none; align-items: center; text-align: center; }
.td-fix.is-scored .td-names { align-items: flex-start; text-align: left; }
.td-fix .td-sets { flex: none; }
.td-names b { font-size: 15px; font-weight: 500; line-height: 1.45; color: #1E293B; }
.td-names.is-strong b { font-weight: 700; color: var(--atlantic); }
.td-sets { display: flex; align-items: center; gap: 4px; }
.td-set { min-width: 28px; height: 22px; padding: 0 4px; border: 1px solid var(--border); border-radius: 4px; background: #f4f7f8; font-size: 12px; line-height: 22px; text-align: center; }
.td-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 99px; background: #f4f7f8; color: var(--ink-muted); font-size: 11px; font-weight: 600; }
.td-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.td-pill.is-live { background: color-mix(in srgb, var(--lime) 28%, white); color: var(--atlantic); }
.td-pill.is-live i { background: var(--lime); }
.td-pill.is-wait { background: rgba(180, 83, 9, 0.12); color: #b45309; }
.td-pill.is-next { background: #E0F2FE; color: #0369A1; }
.td-schedsearch { width: 100%; max-width: 420px; height: 44px; margin: 0 0 12px; padding: 0 12px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; }
.td-resultcard { margin: 0 0 8px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
.td-resultcard header { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; }
.td-resultcard header b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.td-m { padding: 3px 7px; border-radius: 6px; background: #e7f0ea; font-size: 12px; font-weight: 800; }
.td-resultcard__when { display: flex; gap: 8px; margin: 6px 12px 8px; color: var(--ink-muted); font-size: 12px; }
.td-resultcard hr, .td-draw__card hr { margin: 0; border: 0; border-top: 1px solid var(--border); }
.td-side { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.td-bye, .td-side .is-out { color: var(--ink-muted); font-size: 12px; }
.td-side .is-through, .td-draw__note.is-through { color: var(--atlantic); font-size: 12px; }
.td-mode { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.td-mode__icons { display: flex; gap: 2px; margin-left: auto; }
.td-mode__icons button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--atlantic); cursor: pointer; }
.td-mode__icons svg { width: 18px; height: 18px; display: block; }
.td-mode .td-switch { margin: 0; }
.td-bracket { position: relative; display: flex; flex-direction: column; align-items: stretch; background: transparent; border: 0; padding-bottom: 16px; }
.td-switch .td-day.is-on { background: #E6F1F4; border-color: #E6F1F4; color: var(--atlantic); }
.td-bracket__view { position: relative; z-index: 1; overflow: auto; max-height: none; padding: 0; box-sizing: border-box; cursor: grab; touch-action: pan-x pan-y; border: 0; border-radius: 0; background: transparent; scrollbar-width: none; }
.td-bracket__view::-webkit-scrollbar { display: none; }
.td-bracket__view.is-drag { cursor: grabbing; user-select: none; }
.td-bracket__board { position: relative; transform-origin: top left; }
.td-bracket__format { display: none; margin: 0; }
.td-bracket__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; width: 100%; max-width: 100%; }
.td-bracket__tools { margin-left: auto; }
.td-bracket__tools svg { width: 18px; height: 18px; display: block; }
.td-printview { position: fixed; left: -10000px; top: 0; width: 1100px; background: #fff; }
.td-rounds { display: flex; gap: 6px; overflow-x: auto; min-width: 0; }
.td-round { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #E2E8F0; background: #fff; color: var(--atlantic); font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.td-round.is-on { background: #E6F1F4; border-color: #E6F1F4; color: var(--atlantic); }
.td-bracket__tools { position: static; flex: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 4px; background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; box-shadow: none; }
.td-bracket__tools button { height: 36px; min-width: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: #fff; color: var(--atlantic); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.td-sheet {
  width: max-content;
  padding: 24px;
  background: #fff;
  color: #0f172a;
  font-family: "DM Sans", sans-serif;
}
.td-sheet.is-off { position: fixed; left: -10000px; top: 0; }
.td-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 16px; }
.td-sheet__brand { display: flex; align-items: center; gap: 14px; }
.td-sheet__brand img { height: 28px; width: auto; display: block; }
.td-sched__main, .td-bracket, .td-bracket__view { min-width: 0; max-width: 100%; }
@media print {
  body.td-printing * { visibility: hidden; }
  body.td-printing .td-printview,
  body.td-printing .td-printview img { visibility: visible; position: fixed; left: 0; top: 0; width: 100%; max-height: 100vh; object-fit: contain; background: #fff; }
}
.td-sheet__brand p { margin: 0; color: #0B4050; font-size: 14px; font-weight: 700; }
.td-sheet__brand small { display: block; margin-top: 2px; color: #64748B; font-size: 12px; font-weight: 600; }
.td-sheet__event { text-align: right; }
.td-sheet__event b { display: block; color: #0B4050; font-size: 18px; }
.td-sheet__event span { color: #64748B; font-size: 13px; font-weight: 600; }
.td-sheet .td-bracket__board { position: relative; background: #F4F6F8; border: 1px solid #E2E8F0; border-radius: 16px; }
.td-bracket__tools button:hover { background: #f4f7f6; }
.td-bracket:fullscreen,
.td-bracket.is-full { position: fixed; inset: 0; z-index: 40; width: 100%; height: 100%; max-height: none; border-radius: 0; background: #F4F6F8; }
.td-bracket:fullscreen .td-bracket__view,
.td-bracket.is-full .td-bracket__view { flex: 1; min-height: 0; max-height: none; height: auto; margin: 0; padding: 0; border-radius: 0; }
.td-bracket:fullscreen .td-bracket__bar,
.td-bracket.is-full .td-bracket__bar { margin: 8px 12px 0; }
.td-bracket__board .td-links { position: absolute; inset: 0; }
.td-bracket__board h3 { position: absolute; top: 0; width: 320px; margin: 0; color: var(--atlantic); font-size: 14px; font-weight: 800; }
.td-draw__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 2px; }
.td-draw__top b { display: inline-flex; align-items: center; gap: 4px; color: var(--atlantic); font-size: 13px; }
.td-draw__top .material-icons { font-size: 16px; width: 16px; color: #65A30D; }
.td-draw__status { font-size: 11px; font-weight: 700; }
.td-draw__status.is-done { color: #15803D; }
.td-draw__status.is-live { color: #65A30D; }
.td-draw__status.is-soon { color: #64748B; }
.td-draw__status.is-wait { color: #B45309; }
.td-draw__tick { color: #16A34A; font-weight: 800; }
.td-draw__card.is-final.is-done { border: 2px solid #C6E34A; background: #F7FCE8; }
.td-draw__row .td-sets { margin-left: 0; }
.td-draw__cup { margin-left: auto; }
.td-cup { flex: none; width: 16px; height: 16px; }
.td-draw__slot { position: absolute; }
.td-draw__card { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
.td-draw__card > p { margin: 0; padding: 4px 8px 0; color: var(--ink-muted); font-size: 11px; font-weight: 800; }
.td-draw__row { display: flex; align-items: flex-start; gap: 6px; padding: 3px 8px; }
.td-draw__row.is-won { border-left: 3px solid var(--lime); padding-left: 6px; }
.td-draw__row .td-names b { font-size: 12px; }
.td-draw__note { margin: 0; padding: 0 8px 4px; color: var(--ink-muted); font-size: 12px; font-weight: 700; }
.td-draw__card > p.td-draw__foot { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 8px; background: linear-gradient(180deg, #0F4E56 0%, #083843 46%, #062830 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); color: #fff; font-size: 11px; font-weight: 700; border-radius: 0 0 9px 9px; }
.td-draw__foot .td-fix__ico { width: 13px; height: 13px; }
.td-draw__status i { font-style: normal; margin-right: 3px; }
.td-draw__final { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.1; color: var(--atlantic); }
.td-draw__final svg { width: 56px; height: 56px; color: #84CC16; }
.td-draw__final span { font-size: 16px; }
.td-draw__cup.is-big { width: 40px; height: 40px; }
.td-draw__cup { width: 16px; height: 16px; flex: none; color: #84CC16; }
.td-draw__row .td-set.is-win { background: #E7F6D8; color: #3F6212; border: 0; border-radius: 6px; }
.td-regcount { margin: 4px 0 12px; color: var(--ink-muted); font-size: 14px; }
.td-regcount strong { color: var(--atlantic); }
.td-reglist { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; list-style: none; margin: 0; padding: 0; }
.td-reggroup { margin: 0 0 18px; }
.td-reggroup h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--atlantic);
}
.td-reggroup h3 b { color: var(--ink-muted); font-size: 13px; }
.td-regrow { display: block; padding: 8px 14px; border-top: 1px solid #F1F5F9; }
.td-regrow:first-child { border-top: 0; }
.td-regteam { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
.td-regand { display: none; }
.td-regplayer { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; font-size: 15px; font-weight: 400; color: #1E293B; }
.td-regplayer > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.td-regplayer em { flex: none; font-style: normal; font-size: 12px; font-weight: 400; color: #64748B; }
@media (min-width: 720px) {
  .td-regteam { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .td-regand { display: inline; flex: none; color: #94A3B8; }
  .td-regplayer { width: auto; flex: 1 1 240px; }
}
.td-regpager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; }
.td-regpager p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.td-regcat { flex: 1 1 100%; color: var(--ink-muted); font-size: 12px; font-weight: 700; }
.td-album { display: grid; gap: 10px; }
.td-album h2 { margin: 0; color: #334155; font-size: 16px; font-weight: 600; }
.td-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.td-photos figure { margin: 0; }
.td-photos button { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #E7EEF0; cursor: pointer; }
.td-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.td-photos figcaption { margin-top: 4px; color: #64748B; font-size: 13px; font-weight: 400; }
.td-lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; background: rgba(15, 23, 42, 0.86); }
.td-lightbox[hidden] { display: none; }
.td-lightbox img { max-width: min(960px, 100%); max-height: 80vh; object-fit: contain; }
.td-lightbox p { margin: 0; max-width: 640px; color: #fff; font-size: 14px; text-align: center; }
.td-lightbox__close { position: absolute; top: 16px; right: 16px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: #0F172A; font: inherit; font-size: 14px; cursor: pointer; }
#td-gallery { display: grid; gap: 22px; }
#td-gallery[hidden] { display: none; }
.td-finals > h2 { margin: 0; color: var(--atlantic); font-size: 20px; font-weight: 800; }
.td-podium { overflow: hidden; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; }
.td-podium h2 { margin: 0; padding: 12px 16px; color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.td-podium.is-singles h2 { background: #15803D; }
.td-podium.is-doubles h2 { background: #1D4ED8; }
.td-podium table { width: 100%; border-collapse: collapse; }
.td-podium th, .td-podium td { padding: 10px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid #E2E8F0; vertical-align: top; overflow-wrap: anywhere; }
.td-podium th { color: #0F172A; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #F8FAFC; }
.td-podium tr:last-child td { border-bottom: 0; }
.td-podium td:first-child { width: 22%; font-weight: 600; color: var(--atlantic); }
.td-podium.is-singles tbody tr:nth-child(even) { background: #F0FDF4; }
.td-podium.is-doubles tbody tr:nth-child(even) { background: #EFF6FF; }
.td-table { margin: 0 0 16px; }
.td-table h3 { margin: 0 0 8px; color: var(--atlantic); font-size: 14px; font-weight: 800; }
.td-table table { border-collapse: collapse; }
.td-table th, .td-table td { padding: 4px 8px; font-size: 12px; text-align: left; }
.td-table th { color: var(--ink-muted); font-weight: 800; }
.td-table td:first-child, .td-table th:first-child { width: 36px; }
.td-points article { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.td-points article div { display: flex; flex-direction: column; flex: 1; }
.td-points small { color: var(--ink-muted); font-size: 12px; }
.td-points strong { color: var(--atlantic); font-size: 18px; }
.td-desk { display: block; }
.td-sportcards { display: grid; gap: 12px; }
.td-sportcard { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden; }
.td-sportcard:not(.is-open) .td-bands { display: none; }
.td-sporttoggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.td-sporttoggle img { width: 40px; height: 40px; object-fit: contain; }
.td-bands { display: grid; gap: 14px; padding: 0 16px 16px; }
.td-facts > .td-bands { padding-top: 8px; }
.td-bandgroup h3 { margin: 0 0 8px; color: #64748B; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.td-band,
.td-facts .td-band { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; padding: 0; border: 0; }
.td-band b { min-width: 2rem; color: var(--atlantic); font-size: 14px; font-weight: 600; }
.td-band span,
.td-facts .td-band span { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #F1F5F9; color: #1E293B; font-size: 13px; font-weight: 500; line-height: 1.2; }
.td-band span.is-closed { background: #F8FAFC; color: #94A3B8; }
.td-band em { font-style: normal; color: #64748B; font-size: 12px; font-weight: 500; }
#tournament-detail .td-desk h2 { margin: 18px 0 8px; font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--ink); }
.td-catline small { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 12px; font-weight: 600; }
#td-overview[hidden],
#td-registrations[hidden],
#td-schedule[hidden],
#td-draw[hidden],
#td-results[hidden],
#td-categories[hidden],
.td-tabs[hidden] { display: none !important; }
#td-schedule,
#td-registrations,
#td-results,
#td-overview { padding-bottom: 24px; }
@media (max-width: 959px) {
  #td-schedule .td-fix,
  #td-results .td-fix { border-radius: 12px; box-shadow: none; }
  #td-schedule .td-fix__bar,
  #td-results .td-fix__bar { padding: 8px 12px; font-size: 13px; box-shadow: none; }
  #td-schedule .td-fix__bar::before,
  #td-results .td-fix__bar::before { display: none; }
  #td-schedule .td-fix__body,
  #td-results .td-fix__body { padding: 10px 12px 8px; }
  #td-schedule .td-names b,
  #td-results .td-names b { font-size: 14px; line-height: 1.3; }
  #td-schedule .td-vs,
  #td-results .td-vs,
  #td-schedule .td-vs span,
  #td-results .td-vs span { width: 28px; height: 28px; margin: 4px 0; font-size: 11px; }
  #td-schedule .td-fix .td-set,
  #td-results .td-fix .td-set { min-width: 26px; height: 26px; border-radius: 6px; font-size: 13px; line-height: 26px; }
  #td-schedule .td-fix__foot,
  #td-results .td-fix__foot,
  #td-schedule .td-pause,
  #td-results .td-pause { margin-top: 8px; padding-top: 8px; }
  #td-schedule .td-fix.is-scored .td-fix__side,
  #td-results .td-fix.is-result .td-fix__side.is-won { border-left-width: 2px; border-left-color: #84CC16; }
  #td-overview .td-register-bar { margin-top: 12px; }
  #td-schedule .td-cats,
  #td-results .td-cats { display: none; }
}
body.is-tournament { background: #F4F6F8; }
body.is-tournament .td-register-bar { background: linear-gradient(transparent, #F4F6F8 28%); }
@media (min-width: 960px) {
  #td-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    column-gap: 28px;
    row-gap: 4px;
    align-items: center;
  }
  #td-overview .td-desk,
  #td-overview .td-block,
  #td-overview .td-fold { grid-column: 1 / -1; }
  #td-overview .td-desk { display: block; margin-top: 8px; }
  #td-overview .td-fact-phone { display: none; }
  #td-overview .td-banner,
  #td-overview .td-sponsors,
  #td-overview .td-venues,
  #td-overview .td-dates,
  #td-overview .td-facts { grid-column: 1 / -1; grid-row: auto; }
  #td-overview .td-facts { margin-top: 16px; }
  #td-overview .td-register-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    padding: 16px max(24px, calc((100vw - var(--maxw)) / 2 + 24px)) 16px 24px;
    background: linear-gradient(transparent, #F4F6F8 42%);
    pointer-events: none;
  }
  #td-overview .td-register-bar .btn {
    width: auto;
    min-width: 200px;
    border-radius: 999px;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(11, 64, 80, 0.12);
  }
  #td-overview:has(.td-register-bar) { padding-bottom: 112px; }
  #td-overview .td-desk { margin-bottom: 24px; }
  .td-cattable { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
  .td-cattable th,
  .td-cattable td { width: 25%; text-align: left; padding: 10px 16px; font-size: 14px; font-weight: 500; color: #1E293B; border-bottom: 1px solid var(--border); }
  .td-cattable thead th { color: var(--ink-muted); font-size: 12px; font-weight: 600; }
  .td-sportcards { display: grid; gap: 12px; }
  .td-sportcard { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05); }
  .td-sportcard:not(.is-open) .td-cattable,
  .td-sportcard:not(.is-open) .td-bands { display: none; }
  .td-sportcard .td-cattable { border: 0; border-radius: 0; box-shadow: none; }
  .td-sporttoggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
  .td-sporttoggle img { width: 48px; height: 48px; object-fit: contain; flex: none; }
  .td-sportcopy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .td-sportcopy b { font-size: 16px; font-weight: 700; }
  .td-sportcount { color: var(--ink-muted); font-size: 13px; font-weight: 600; }
  .td-sportchev { width: 8px; height: 8px; border-right: 2px solid var(--atlantic); border-bottom: 2px solid var(--atlantic); transform: rotate(45deg); }
  .td-sportcard.is-open .td-sportchev { transform: rotate(-135deg); margin-top: 4px; }
  .td-cattable tr:last-child td { border-bottom: 0; }
  .td-cattable .td-statuschip { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: normal; text-align: left; }
  .td-cattable .td-catgo { margin: 0; border: 0; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
  .td-cattable .is-regopen { background: #D8F8E4; color: #166534; }
  .td-cattable .is-regclosed { background: #EEF2F6; color: #475569; }
  .td-cattable .is-full { background: #FEF3C7; color: #B45309; }
  .td-cattable .is-scheduled { background: #E0F2FE; color: #0369A1; }
  .td-cattable .is-playing { background: #ECFCCB; color: #3F6212; }
  .td-cattable .is-finished { background: #EDE9FE; color: #5B21B6; }
  .td-cattable tr.td-sporthead th { color: var(--ink); font-size: 14px; background: #f4f7f6; }
  .td-bracket { padding-bottom: 0; }
  #td-schedule { width: 100%; margin-inline: 0; }
  #td-results { width: 100%; margin-inline: 0; }
  #td-results.is-narrow { width: 100%; margin-inline: 0; }
  #td-results .td-sched:has(.td-cats) .td-format { display: none; }
  #td-results .td-fix__bar,
  #td-results .td-fix__body { display: none; }
  #td-results .td-fix { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  #td-results .td-row { display: grid; grid-template-columns: 156px minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 10px; padding: 12px 14px 8px 8px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; }
  .td-head h1 { font-size: 24px; line-height: 1.2; }
  .td-sched { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; min-width: 0; }
  .td-sched:not(:has(.td-cats)) { grid-template-columns: 1fr; }
  .td-cats { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; }
  .td-cats p { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #64748B; }
  .td-cats p span { color: var(--ink-muted); font-weight: 500; }
  .td-cat { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #334155; font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
  .td-cat .material-icons { font-size: 18px; width: 18px; color: var(--atlantic); }
  .td-cat.is-on { background: #F3F8C8; }
  .td-sched:has(.td-cats) .td-picker { display: none; }
  .td-sched__current { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 14px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; }
  .td-sched__current .material-icons { font-size: 28px; width: 28px; color: var(--atlantic); }
  .td-sched__current span { display: flex; flex-direction: column; }
  .td-sched__current b { font-size: 16px; }
  .td-sched__current small { color: #64748B; font-size: 12px; font-weight: 600; }
  .td-court__grid { display: flex; flex-direction: column; gap: 10px; }
  .td-court__day { display: inline; }
  #td-schedule .td-fix { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  #td-schedule .td-fix__bar,
  #td-schedule .td-fix__body { display: none; }
  #td-schedule .td-row { display: grid; grid-template-columns: 156px minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: none; }
  #td-results .td-row.is-notime { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .td-court__grid { gap: 6px; }
  .td-sched__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
  .td-sched__tools .td-days { margin: 0; }
  .td-courtfilter select { height: 36px; padding: 0 12px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; color: var(--atlantic); font: inherit; font-size: 13px; font-weight: 700; }
  #td-schedule .td-fix__bar,
  #td-results.is-narrow .td-fix__bar { padding: 8px 12px; font-size: 13px; }
  #td-schedule .td-fix__body,
  #td-results.is-narrow .td-fix__body { padding: 8px 12px 8px; }
  #td-schedule .td-fix:not(.is-scored) .td-vs,
  #td-results.is-narrow .td-fix:not(.is-scored) .td-vs,
  #td-schedule .td-vs span,
  #td-results.is-narrow .td-vs span { width: 28px; height: 28px; margin: 6px 0; font-size: 11px; }
  #td-schedule .td-fix.is-scored .td-vs:not(.td-vs--gap),
  #td-results.is-narrow .td-fix.is-scored .td-vs:not(.td-vs--gap) { width: 100%; height: auto; margin: 6px 0; }
  #td-schedule .td-vs--gap,
  #td-results.is-narrow .td-vs--gap { margin: 6px 0; }
  #td-schedule .td-row .td-names b,
  #td-results .td-row .td-names b { font-size: 15px; font-weight: 500; line-height: 1.35; color: #1E293B; }
  #td-schedule .td-fix .td-set,
  #td-results.is-narrow .td-fix .td-set { min-width: 28px; height: 28px; font-size: 14px; line-height: 28px; }
  .td-row__sets .td-set.is-win { background: #E7F6D8; color: #3F6212; }
  .td-row__sets .td-set.is-lose { background: #E8EDF2; color: #64748B; }
  #td-schedule .td-order,
  #td-results.is-narrow .td-order { gap: 8px; }
  #td-results.is-narrow .td-fix.is-result { margin-bottom: 8px; }
  .td-format { display: block; }
  .td-bracket__view { order: 1; max-height: 720px; padding: 16px 12px 16px 20px; border: 1px solid #E2E8F0; border-radius: 16px; background: #F4F6F8; }
  .td-bracket__tools { position: static; }
  .td-bracket:fullscreen,
  .td-bracket.is-full { background: #fff; }
  .td-bracket:fullscreen .td-bracket__format,
  .td-bracket.is-full .td-bracket__format { display: block; position: static; order: -2; padding: 20px 28px 0; color: var(--atlantic); font-size: 16px; font-weight: 700; }
  .td-bracket:fullscreen .td-bracket__view,
  .td-bracket.is-full .td-bracket__view { margin: 12px 28px 24px 36px; padding: 16px 12px 16px 20px; }
  .td-bracket:fullscreen .td-bracket__bar,
  .td-bracket.is-full .td-bracket__bar { margin: 8px 28px 0; }
  .td-board .td-fixture,
  .td-board .td-result { margin: 0; }
}
@media (min-width: 1180px) {
  .td-row__time b { font-size: 18px; }
}
.td-tabs button {
  border: 0;
  background: transparent;
  padding: 12px 8px;
  font: inherit;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.td-tabs button.is-on { color: var(--atlantic); box-shadow: inset 0 -2px 0 var(--lime); }
.td-match { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; }
.td-match header { display: flex; justify-content: space-between; gap: 12px; color: #64748b; font-size: 13px; }
.td-match header strong { color: #0B4050; }
.td-match__sides { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.td-match__sides span { color: #94A3B8; font-size: 13px; }
.td-match__score { margin: 0 0 6px; font-weight: 700; color: #0B4050; }
.td-match__meta { margin: 0 0 8px; color: #64748b; font-size: 13px; }
.td-match__share { border: 0; background: transparent; color: #0B4050; font-weight: 700; padding: 0; cursor: pointer; }
.td-match.is-shared { box-shadow: inset 0 0 0 2px #B6E34A; }
.td-overview { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; }
.td-overview h2, .td-panel h2 { margin: 0 0 8px; color: var(--atlantic); }
.td-stats, .td-sports, .td-highlights { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.td-stats div, .td-sport, .td-highlights div {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
}
.td-stats div { text-align: center; flex: 1; }
.td-stats strong { display: block; font-size: 22px; color: var(--atlantic); }
.td-sport { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 110px; flex: 1; }
.td-sport strong { white-space: nowrap; }
.td-sport img { width: 83px; height: 83px; object-fit: contain; }
.td-highlights div { flex: 1; display: grid; gap: 6px; justify-items: center; text-align: center; }
.td-highlights strong { white-space: nowrap; }
.td-hi { width: 48px; height: 48px; border-radius: 12px; display: block; background-repeat: no-repeat; background-position: center; background-size: 28px; }
.td-hi--venue { background-color: #E7F6EE; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='1.8'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0V4zM7 6H4v2a3 3 0 0 0 3 3M17 6h3v2a3 3 0 0 1-3 3'/%3E%3C/svg%3E"); }
.td-hi--ages { background-color: #E7F4F8; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B4050' stroke-width='1.8'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='16' cy='9' r='2.4'/%3E%3Cpath d='M3.5 19c.6-2.6 2.8-4 5.5-4s4.9 1.4 5.5 4M14 15.2c1.6-.3 3.2.2 4.2 1.8'/%3E%3C/svg%3E"); }
.td-hi--prize { background-color: #F3EEFF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C5CFC' stroke-width='1.8'%3E%3Crect x='4' y='11' width='16' height='9' rx='1.5'/%3E%3Cpath d='M12 11V8M8 8h8a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4z'/%3E%3C/svg%3E"); }
.td-cat-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.td-filters { background: #fff; border-radius: 16px; padding: 16px; }
.td-check { display: grid; gap: 8px; }
.td-lov { display: none; }
.td-filters h3 { margin: 12px 0 4px; font-size: 14px; color: var(--atlantic); }
.td-filters h3:first-child { margin-top: 0; }
.td-filters label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.td-filters span { color: var(--ink-muted); }
.td-cat-tools input { width: 100%; height: 42px; border: 1px solid #E2E8F0; border-radius: 10px; padding: 0 12px; font: inherit; }
.td-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.td-box { background: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 6px; justify-items: start; }
.td-box img { width: 55px; height: 55px; object-fit: contain; }
.td-box h3 { margin: 0; font-size: 16px; color: var(--atlantic); }
.td-box p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.td-box__fee { color: #7C5CFC !important; font-size: 20px !important; font-weight: 700; }
.td-box .btn { width: 100%; margin-top: 6px; }
.td-box.is-added { outline: 2px solid #7C5CFC; }
.td-box.is-closed { opacity: 0.72; }
.td-closed { color: #B42318 !important; font-weight: 600; }
.td-cart-bar[hidden] { display: none !important; }
.td-cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #fff; box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
}
.td-cart-bar__items { display: flex; flex-wrap: wrap; gap: 8px; }
.td-cart-bar__items span { background: #F4F5F7; border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.td-cart-bar__items button { border: 0; background: transparent; font: inherit; cursor: pointer; }
.td-cart-bar__pay { display: flex; gap: 12px; align-items: center; }
.td-entry-error { color: #B42318; font-weight: 600; }
.td-reg { margin-top: 8px; }
.td-reg__main { background: #fff; border-radius: 16px; padding: 16px; }
.td-reg__line { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; }
.td-reg__line img { width: 40px; height: 40px; object-fit: contain; }
.td-reg__side img { width: 72px; height: 72px; object-fit: contain; }
.td-reg__side h2, .td-reg__main h2 { margin: 8px 0; color: var(--atlantic); }
.td-reg__side p { margin: 8px 0; color: var(--ink-muted); }
.td-steps { display: flex; gap: 16px; color: var(--ink-muted); font-weight: 600; }
.td-steps .is-on { color: var(--atlantic); }
.td-field { display: grid; gap: 6px; margin: 14px 0; font-size: 16px; font-weight: 700; color: #0B4050; }
.td-field .req { color: #B42318; font-weight: 800; }
.td-field .opt { font-weight: 500; color: #334155; }
.td-field input, .td-field select {
  height: 52px;
  border: 2px solid #0B4050;
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #17283D;
  background: #fff;
}
.td-field input::placeholder { color: #3D4F63; }
.td-field input:disabled { opacity: 1; color: #17283D; background: #fff; }
.td-pay { border: 0; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.td-pay legend { font-size: 18px; font-weight: 800; color: #0B4050; margin-bottom: 4px; }
.td-pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid #0B4050;
  border-radius: 12px;
  background: #fff;
  color: #0B4050;
  font-size: 18px;
  font-weight: 700;
}
.td-pay-opt input { width: 22px; height: 22px; accent-color: #0B4050; }
.td-pay-opt.is-on { background: #E7F6EE; }
.td-seat { border-top: 1px solid #E2E8F0; margin-top: 12px; padding-top: 8px; }
.td-seat h3 { margin: 0; color: var(--atlantic); font-size: 16px; }
.td-known { background: #E7F6EE; border-radius: 10px; padding: 10px 12px; }
.td-captain { display: flex; gap: 8px; align-items: center; }
.td-success {
  margin: 0 -16px;
  padding: 28px 16px 48px;
  background: #eef8e8 url("assets/tournaments/confirmation-bg.png") center / cover no-repeat;
}
.td-success__card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(11, 64, 80, 0.12);
}
.td-success__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #22C55E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7.5'/%3E%3C/svg%3E") center / 32px no-repeat;
}
.td-success h2 { margin: 0 0 6px; color: var(--atlantic); font-size: 22px; line-height: 1.3; }
.td-success__card > .td-success__event { margin: 0 0 4px; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 600; }
.td-success__card > .td-success__host { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 600; }
.td-success__card > .td-success__power { margin: 2px 0 16px; color: var(--ink-muted); font-size: 12px; }
.td-success__id { margin: 0 0 16px; }
.td-success__id span { display: block; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.td-success__id strong { display: block; margin-top: 2px; color: var(--atlantic); font-size: 28px; line-height: 1.2; letter-spacing: 0.02em; }
.td-success__card > p { margin: 0 0 16px; color: var(--ink-muted); font-size: 13px; }
.td-success__details { text-align: left; background: #F8FAFB; border-radius: 14px; padding: 14px 16px; }
.td-success__details h3 { margin: 0 0 10px; font-size: 14px; color: var(--atlantic); }
.td-success__details p { display: grid; grid-template-columns: 140px 1fr; gap: 8px; margin: 8px 0; font-size: 14px; }
.td-success__details span { color: var(--ink-muted); }
.td-success__actions { display: flex; justify-content: center; margin-top: 16px; }
.td-success__actions.is-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.td-success__actions.is-stack .btn { width: 100%; }
.td-success__actions .btn { min-width: 160px; max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 800px) {
  .td-top { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .td-top .td-back { margin: 0; }
  .td-top .td-back::before { content: none; }
  .td-top .td-share { margin-top: 0; }
  .td-top .td-head { width: auto; }
  .td-crumb { display: none; }
  .tn-hero { min-height: 0; display: block; background: #063544; }
  .tn-hero__art,
  .tn-hero__shade,
  .tn-points { display: none; }
  .tn-header .site-header__inner { padding-inline: 20px; }
  .tn-hero__copy { position: static; display: block; padding: 20px 20px 24px; max-width: none; }
  .tn-hero h1 { font-size: 32px; }
  .tn-catalog { padding-inline: 0; }
  .tn-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .tn-filters label {
    flex: 0 0 auto;
    font-size: 0;
  }
  .tn-filters select {
    min-width: 0;
    width: auto;
    height: 36px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
  }
  .tn-reset { height: 36px; padding: 0 8px; }
  .tn-heading { align-items: baseline; }
  .tn-heading h2 { font-size: 15px; line-height: 1.2; white-space: nowrap; }
  .tn-heading p { font-size: 13px; }
  .tn-grid { grid-template-columns: 1fr; }
  .td-hero { grid-template-columns: 1fr; min-height: 0; padding: 20px 16px; align-items: stretch; }
  .td-hero__shade { background: linear-gradient(180deg, rgba(6,53,68,.45), rgba(6,53,68,.92)); }
  .td-hero h1 { font-size: 30px; }
  .td-register { width: 100%; }
  .td-count { width: 100%; justify-content: space-between; }
  .td-overview, .td-cat-layout { grid-template-columns: 1fr; }
  .td-check { display: none; }
  .td-lov { display: grid; gap: 8px; }
  .td-lov label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-muted); font-weight: 600; }
  .td-lov select { height: 42px; border: 1px solid #E2E8F0; border-radius: 10px; padding: 0 10px; font: inherit; color: var(--ink); background: #fff; }
  .td-filters { padding: 12px; }
  .td-overview h2, .td-panel > h2 { font-size: 16px; white-space: nowrap; }
  .td-sport { min-width: 0; flex: 1 1 0; padding: 8px 4px; }
  .td-sport strong { font-size: 11px; }
  .td-sport img { width: 40px; height: 40px; }
  .td-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .td-stats div { min-width: 0; padding: 12px 8px; }
  .td-sports, .td-highlights { display: flex; flex-wrap: nowrap; gap: 8px; }
  .td-picklist .td-sports { flex-wrap: wrap; max-width: 100%; overflow: hidden; }
  .td-highlights div { flex: 1 1 0; min-width: 0; padding: 10px 4px; }
  .td-highlights strong { font-size: 10px; }
  .td-highlights div > span:not(.td-hi) { display: none; }
  .td-hi { width: 36px; height: 36px; background-size: 20px; }
  .td-cat-grid { grid-template-columns: 1fr; }
  .td-tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .td-tabs::-webkit-scrollbar { display: none; }
  .td-tabs button { flex: 0 0 auto; white-space: nowrap; padding: 12px 14px; font-size: 15px; }
  .td-success { margin: 0 -12px; padding: 16px 12px 32px; }
  .td-success__details p { grid-template-columns: 1fr; gap: 2px; }
  .td-success__actions .btn { width: 100%; }
  .td-reg__main .btn { width: 100%; }
}

/* Homepage matched to the Lovable layout. Scoped so other pages stay as they are. */
.page-home .lv-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 690px;
  background: var(--atlantic);
  color: var(--white);
}
.page-home .lv-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}
.page-home .site-header { background: #fff; backdrop-filter: none; }
.page-home .lv-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 28, 38, 0.62) 0%, rgba(6, 28, 38, 0.38) 46%, rgba(6, 28, 38, 0.18) 100%);
}
.page-home { font-family: var(--font); }
.page-home .lv-hero__inner { padding-block: 5rem; max-width: var(--maxw); }
.page-home .lv-hero h1 {
  margin: 0;
  max-width: 16ch;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.page-home .lv-hero__sub {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.6;
}
.page-home .lv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0.45rem 0.7rem;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-home .lv-kicker--inline { margin: 0; letter-spacing: 0; text-transform: none; font-size: 0.75rem; }
.page-home .lv-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--atlantic);
  flex: 0 0 auto;
}
.page-home .lv-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.page-home .btn--hero {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.page-home .btn--hero:hover { background: var(--white); color: var(--atlantic); }
.page-home .lv-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  margin: 2.4rem 0 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.95rem;
}
.page-home .lv-checks li::before { content: "✓ "; color: var(--lime); }
.page-home .lv-block { padding-block: 5rem; }
.page-home .lv-block--surface { background: oklch(0.955 0.025 155); }
.page-home .lv-ico { background: oklch(0.955 0.025 155); }
.page-home .lv-label {
  margin: 0 0 0.8rem;
  color: var(--atlantic);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-home .lv-label--lime { color: var(--lime); }
.page-home .lv-h2 {
  margin: 0;
  max-width: 18em;
  color: var(--atlantic);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.page-home .lv-apps {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}
.page-home .lv-app { border-top: 4px solid var(--atlantic); padding-top: 1.4rem; }
.page-home .lv-app--play { border-top-color: var(--lime); }
.page-home .lv-app__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}
.page-home .lv-app h3 { margin: 0; color: var(--atlantic); font-size: 1.8rem; }
.page-home .lv-app__head span { color: var(--ink-muted); font-size: 0.9rem; font-weight: 600; }
.page-home .lv-app > p { max-width: 38rem; margin-top: 1.35rem; color: var(--ink-muted); }
.page-home .lv-rows > div { padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.page-home .lv-rows > div:first-child { padding-top: 0.4rem; }
.page-home .lv-rows h4 { margin: 0; font-size: 1.05rem; }
.page-home .lv-rows p { margin: 0.4rem 0 0; color: var(--ink-muted); font-size: 0.92rem; }
.page-home .lv-ticks {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.page-home .lv-ticks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--border);
  font-weight: 600;
}
.page-home .lv-ticks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 0.85rem;
  flex: 0 0 auto;
}
.page-home .lv-split { display: grid; gap: 2.5rem; align-items: center; }
.page-home .lv-lead { max-width: 36rem; color: var(--ink-muted); font-size: 1.05rem; }
.page-home .lv-plain { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; }
.page-home .lv-plain li { display: flex; gap: 0.6rem; margin: 0.55rem 0; font-weight: 600; }
.page-home .lv-plain li::before { content: "✓"; color: var(--atlantic); }
.page-home .lv-panel { background: var(--white); border: 1px solid var(--border); }
.page-home .lv-panel__head,
.page-home .lv-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; }
.page-home .lv-panel__head { border-bottom: 1px solid var(--border); }
.page-home .lv-panel__title { margin: 0; color: var(--atlantic); font-weight: 700; font-size: 1.1rem; }
.page-home .lv-panel__head p { margin: 0.15rem 0 0; color: var(--ink-muted); font-size: 0.9rem; }
.page-home .lv-panel__rows { list-style: none; margin: 0; padding: 0 1.3rem; }
.page-home .lv-panel__rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.page-home .lv-ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: oklch(0.955 0.025 155);
  color: var(--atlantic);
}
.page-home .lv-ico svg { width: 1.15rem; height: 1.15rem; }
.page-home .lv-ico--lime { background: var(--lime); color: var(--atlantic); }
.page-home .lv-panel__rows div { display: grid; min-width: 0; }
.page-home .lv-panel__rows span { font-weight: 700; }
.page-home .lv-panel__rows small { color: var(--ink-muted); }
.page-home .lv-panel__rows strong { color: var(--atlantic); }
.page-home .lv-panel__foot { display: flex; align-items: center; gap: 0.55rem; margin: 0; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: 0.9rem; }
.page-home .lv-panel__foot svg { width: 1rem; height: 1rem; color: var(--atlantic); flex: 0 0 auto; }
.page-home .lv-sports__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.page-home .lv-more { font-weight: 700; }
.page-home .lv-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.page-home .lv-chips li { margin: 0; padding: 0.7rem 1rem; background: oklch(0.955 0.025 155); color: var(--atlantic); font-weight: 600; font-size: 0.92rem; }
.page-home .lv-chips .is-lime { background: var(--lime); color: var(--on-lime); }
.page-home .lv-close { background: var(--atlantic); color: var(--white); padding-block: 4rem; }
.page-home .lv-close__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.page-home .lv-close h2 { margin: 0; color: var(--white); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
.page-home .lv-close p { margin: 0.7rem 0 0; color: rgba(255, 255, 255, 0.82); }
.page-home .lv-close .lv-label--lime { margin: 0 0 0.8rem; color: var(--lime); }
.page-organizer .lv-hero { min-height: 600px; }
.page-organizer .lv-hero__photo { object-position: 70% center; }
.page-organizer .lv-lead { margin: 1.2rem 0 0; }
.page-organizer .lv-steps,
.page-organizer .lv-tools { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; }
.page-organizer .lv-steps { gap: 1rem; }
.page-organizer .lv-steps li { padding: 1.5rem; background: var(--white); border: 1px solid var(--border); }
.page-organizer .lv-steps__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-organizer .lv-steps__num { color: var(--ink-muted); font-weight: 700; font-size: 0.9rem; }
.page-organizer .lv-steps h3,
.page-organizer .lv-tools h3 { margin: 2rem 0 0; color: var(--atlantic); font-size: 1.25rem; }
.page-organizer .lv-tools h3 { margin-top: 1.5rem; }
.page-organizer .lv-steps p,
.page-organizer .lv-tools p { margin: 0.6rem 0 0; color: var(--ink-muted); font-size: 0.92rem; }
.page-organizer .lv-tools__head { display: grid; gap: 1.5rem; align-items: end; }
.page-organizer .lv-tools { gap: 1px; background: var(--border); border: 1px solid var(--border); }
.page-organizer .lv-tools li { padding: 1.6rem; background: var(--white); }
@media (max-width: 640px) {
  .page-home .lv-hero__photo { object-position: 68% center; }
  .page-organizer .lv-hero__photo { object-position: 78% center; }
}
@media (min-width: 640px) {
  .page-organizer .lv-steps,
  .page-organizer .lv-tools { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .page-home .lv-apps { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .page-home .lv-split { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
  .page-organizer .lv-hero { min-height: 680px; }
  .page-organizer .lv-tools__head { grid-template-columns: 0.9fr 1.1fr; }
  .page-organizer .lv-tools__head .lv-lead { justify-self: end; }
}
@media (min-width: 1024px) {
  .page-organizer .lv-tools { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .page-organizer .lv-steps { grid-template-columns: repeat(4, 1fr); }
}

.td-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.td-chip { border: 1px solid #E2E8F0; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; color: var(--atlantic); cursor: pointer; }
.td-chip.is-on { background: #E6F1F4; border-color: #E6F1F4; }
.td-ages { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 16px; padding-bottom: 2px; }
#td-categories .td-cat-head { margin: 4px 0 20px; }
#td-categories .td-cat-head h2 {
  margin: 0 0 6px;
  font-family: Inter, "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0F172A;
}
#td-categories .td-cat-head p { margin: 0; font-size: 14px; line-height: 1.45; color: #64748B; }
#td-cat-tools .td-ages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  margin: 0 0 18px;
  padding-bottom: 0;
}
#td-cat-tools .td-ages .td-day {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 4px;
  border-radius: 999px;
  border-color: #E6F1F4;
  background: #E6F1F4;
  color: var(--atlantic);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}
#td-cat-tools .td-ages .td-day.is-on { background: var(--atlantic); border-color: var(--atlantic); color: #fff; }
@media (min-width: 720px) {
  #td-cat-tools .td-ages { display: flex; flex-wrap: wrap; gap: 10px; }
  #td-cat-tools .td-ages .td-day { width: auto; height: 40px; min-width: 64px; padding: 0 16px; font-size: 14px; }
}
.td-ages .td-day { height: 44px; min-width: 72px; padding: 0 18px; border-radius: 12px; border: 1px solid #E2E8F0; background: #fff; color: var(--atlantic); font-size: 15px; font-weight: 700; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.td-ages .td-day.is-on { background: var(--atlantic); border-color: var(--atlantic); color: #fff; }
#td-entry .td-face { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 16px; }
#td-entry .td-face__btn { width: 88px; height: 88px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: #E8EDF2; cursor: pointer; }
#td-entry .td-face__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
#td-entry .td-face__actions { display: flex; gap: 16px; }
#td-entry .td-reg__main { border: 1px solid #E2E8F0; box-shadow: none; }
#td-entry .td-reg__main h2 { margin: 0 0 16px; font-size: 22px; }
#td-entry .td-known { margin: 0 0 16px; }
#td-entry .td-known strong { font-size: 16px; }
#td-entry .td-field { gap: 6px; margin: 0 0 16px; font-size: 13px; font-weight: 600; color: #334155; }
#td-entry .td-field input,
#td-entry .td-field select { width: 100%; box-sizing: border-box; height: 48px; border: 1px solid #D5DEE7; border-radius: 12px; background: #F4F6F8; font-size: 16px; font-weight: 500; color: #17283D; }
#td-entry .td-field input:focus,
#td-entry .td-field select:focus { outline: none; background: #fff; border-color: var(--atlantic); box-shadow: 0 0 0 3px rgba(11, 64, 80, 0.12); }
#td-entry .td-field input::placeholder { color: #64748B; font-weight: 500; }
#td-entry .td-field.is-bad input,
#td-entry .td-field.is-bad select,
#td-entry .td-face.is-bad .td-face__btn { box-shadow: 0 0 0 3px #B42318; }
#td-entry .td-field.is-bad .td-sizes button { border-color: #B42318; }
#td-entry .td-field__error { margin: 4px 0 0; color: #B42318; font-size: 13px; font-weight: 700; }
#td-entry .td-form-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #FEF3F2; color: #B42318; font-weight: 700; }
#td-entry .td-field input.is-autofill,
#td-entry .td-field input.is-autofill:focus {
  background: #E8EDF2;
  color: #64748B;
  border-color: #D5DEE7;
  box-shadow: none;
  cursor: default;
}
#td-entry .td-phone { display: flex; gap: 8px; align-items: center; }
#td-entry .td-phone select { width: 88px; flex: 0 0 88px; padding: 0 8px; }
#td-entry .td-cc { display: flex; align-items: center; justify-content: center; width: 72px; flex: 0 0 72px; height: 48px; border: 1px solid #D5DEE7; border-radius: 12px; background: #E8EDF2; color: #64748B; font-size: 16px; font-weight: 600; }
#td-entry .td-phone input { flex: 1; min-width: 0; }
#td-entry .td-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
#td-entry .td-sizes button { height: 40px; min-width: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid #D5DEE7; background: #F4F6F8; color: var(--atlantic); font: inherit; font-weight: 700; cursor: pointer; }
#td-entry .td-sizes button.is-on { background: var(--atlantic); border-color: var(--atlantic); color: #fff; }
#td-entry .td-seat { border: 0; margin: 0; padding: 0; }
#td-player-tabs { margin-top: 0; }
#td-player-tabs .td-day { flex: 1; }
#td-entry .btn--primary { width: 100%; height: 48px; border-radius: 12px; }
#td-entry .td-reg__main h2.is-center { text-align: center; margin-bottom: 6px; }
#td-entry #td-card-bar .reg-note { margin: 12px 0 8px; text-align: center; }
#td-entry #td-card-bar .reg-note:empty { display: none; }
#td-entry .td-otp-note { text-align: center; margin: 8px 0; color: #64748B; font-size: 14px; }
#td-entry .td-otp input { text-align: center; letter-spacing: 8px; font-size: 24px; font-weight: 700; color: var(--atlantic); }
#td-entry .td-otp input::placeholder { letter-spacing: 8px; color: #CBD5E1; }
#td-entry .td-otp-actions { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; color: #94A3B8; }
#td-entry .td-otp-actions button { border: 0; background: transparent; padding: 8px 4px; color: var(--atlantic); font: inherit; font-weight: 600; cursor: pointer; }
#td-entry .td-otp-actions button:disabled { color: #94A3B8; cursor: default; }
#td-categories .td-cat-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 0; }
.td-entry-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 12px 14px; }
.td-entry-row h3 { margin: 0; min-width: 0; overflow: hidden; font-family: Inter, "DM Sans", sans-serif; font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: 0; white-space: nowrap; text-overflow: ellipsis; color: #17283D; }
.td-entry-row > strong { font-size: 14px; font-weight: 600; white-space: nowrap; color: #17283D; }
.td-entry-row > .btn { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.td-entry-row p { margin: 2px 0 0; color: var(--ink-muted); font-size: 13px; }
.td-entry-row.is-closed { opacity: 0.7; }
.td-row-actions { display: flex; gap: 8px; align-items: center; }
.td-seat__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.td-seat__top h3 { margin: 0; }
#td-quote p, .td-success__details p { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }
#td-entry .td-reg__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid #E2E8F0; }
#td-entry .td-reg__line span { min-width: 0; overflow-wrap: anywhere; }
#td-entry .td-reg__line b { white-space: nowrap; text-align: right; }
#td-entry .td-bill { margin: 4px 0 16px; }
#td-entry .td-bill summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: var(--atlantic); font-weight: 700; }
#td-entry .td-bill summary::-webkit-details-marker { display: none; }
#td-entry .td-bill summary span { margin: 0; min-width: 0; }
#td-entry .td-bill summary::after { content: ''; width: 8px; height: 8px; justify-self: center; border-right: 2px solid #64748B; border-bottom: 2px solid #64748B; transform: rotate(45deg); }
#td-entry .td-bill[open] summary::after { transform: rotate(-135deg); }
#td-entry .td-bill p,
#td-entry .td-bill__total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; }
#td-entry .td-bill p { color: #64748B; font-size: 13px; }
#td-entry .td-bill p strong,
#td-entry .td-bill summary strong,
#td-entry .td-bill__total strong { white-space: nowrap; text-align: right; }
#td-entry .td-bill__total { color: var(--atlantic); font-weight: 700; }
#td-entry .td-pair h3 { display: none; margin: 0 0 14px; }
#td-entry .td-pair .td-seat { display: none; }
#td-entry .td-pair .td-seat.is-on { display: block; }
@media (min-width: 960px) {
  #td-categories .td-cat-head h2 { font-size: 22px; }
  #td-categories .td-cat-grid { grid-template-columns: 1fr 1fr; }
  .td-entry-row h3,
  .td-entry-row > strong { font-size: 15px; }
  .td-entry-row > .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
  #td-entry .td-reg { max-width: 920px; }
  #td-player-tabs { display: none; }
  #td-entry .td-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  #td-entry .td-pair .td-seat { display: block; }
  #td-entry .td-pair .td-seat + .td-seat { border-left: 1px solid #E2E8F0; padding-left: 28px; }
  #td-entry .td-pair h3 { display: block; }
}

/* Quiet schedule: no dark bars, colour only for live, next and won. */
.td-row__time { padding: 0 12px 0 0; border-radius: 0; background: none; color: var(--atlantic); box-shadow: none; border-right: 1px solid #E2E8F0; }
.td-row__time small { color: #64748B; opacity: 1; }
.td-row__time b { font-size: 15px; }
.td-row__time.is-open b { color: #94A3B8; font-size: 13px; font-weight: 600; }
.td-row__time span { color: #64748B; opacity: 1; }
.td-row__time .td-pill { position: static; width: fit-content; align-self: flex-start; margin-top: 4px; }
.td-row__vs { min-width: 0; height: auto; padding: 0; background: none; color: #94A3B8; font-size: 12px; font-weight: 600; }
.td-row__round { padding: 0; background: none; color: #64748B; font-weight: 600; }
.td-fix__bar { padding: 8px 12px; background: #E6F1F4; color: var(--atlantic); border-bottom: 1px solid #CFE3EA; box-shadow: none; font-size: 13px; }
.td-fix__bar::before { display: none; }
.td-fix__bar .material-icons, .td-fix__ico { color: var(--atlantic); }
.td-fix__split { background: #CBD5E1; }
.td-fix__bar .td-pill.is-done { background: #EEF2F6; color: #475569; }
.td-fix { box-shadow: none; }
.td-vs, .td-vs span { background: none; color: #94A3B8; font-weight: 600; }
.td-draw__card > p.td-draw__foot { background: #F8FAFC; color: #64748B; border-top: 1px solid #E2E8F0; box-shadow: none; }
.td-draw__card { box-shadow: none; }
.td-pill.is-next { background: color-mix(in srgb, var(--lime) 30%, white); color: var(--atlantic); }
.td-pill.is-next i { background: var(--lime); }
@media (min-width: 960px) {
  #td-schedule .td-row,
  #td-results .td-row { grid-template-columns: 120px minmax(0, 1fr) auto minmax(0, 1fr) auto; padding: 10px 14px; border-radius: 12px; }
  #td-results .td-row.is-notime { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  #td-schedule .td-row .td-names b,
  #td-results .td-row .td-names b { font-size: 15px; font-weight: 500; color: #1E293B; }
}

/* Schedule filters: one toolbar, brand colour on the selected choice. */
.td-mode .td-switch { display: inline-flex; gap: 2px; padding: 3px; background: #E8EDF2; border-radius: 10px; }
.td-mode .td-switch .td-day { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #475569; }
.td-mode .td-switch .td-day.is-on { background: #fff; color: var(--atlantic); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.td-sched__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.td-sched__tools .td-schedsearch { flex: 1 1 220px; max-width: 320px; height: 36px; margin: 0; padding: 0 14px; border-radius: 999px; }
.td-sched__tools .td-schedsearch:focus { outline: none; border-color: var(--atlantic); box-shadow: 0 0 0 3px rgba(11, 64, 80, 0.12); }
.td-sched__tools .td-courts { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
.td-sched__tools .td-days:empty { display: none; }
.td-sched__tools .td-day { height: 36px; }
.td-days .td-day.is-on,
.td-picklist .td-sports .td-day.is-on { background: var(--atlantic); border-color: var(--atlantic); color: #fff; }
.td-courtfilter select { height: 36px; }
.td-cats p span { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #E8EDF2; color: #475569; font-size: 11px; }
.td-cat.is-on { background: color-mix(in srgb, var(--lime) 22%, white); box-shadow: inset 3px 0 0 var(--lime); color: var(--atlantic); }
.td-cat:not(.is-on):hover { background: #F4F6F8; }
.td-sched__current { border-left: 4px solid var(--lime); }
.td-order h3 .material-icons { color: #65A30D; }
.td-order h3.is-now { color: #3F6212; }
@media (max-width: 959px) {
  .td-sched__tools .td-schedsearch { max-width: none; flex-basis: 100%; }
  .td-sched__tools .td-days { flex-wrap: nowrap; overflow-x: auto; }
}

/* Results: green only for the side that took the set; desktop sets on one line. */
.td-fix .td-set.is-win { background: #E7F6D8; color: #3F6212; }
.td-fix .td-set.is-lose { background: #EEF2F6; color: #64748B; font-weight: 600; }
.td-row__sets { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
.td-row__sets > span { gap: 2px; }

/* Match cards: white card, time as a teal tag, lime edge only on the next or live match. */
.td-fix { border: 1px solid #E2E8F0; border-left: 4px solid #CBD5E1; box-shadow: none; }
.td-fix.is-next, .td-fix.is-live { border-left-color: var(--lime); }
.td-fix__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; background: #fff; color: var(--atlantic); border: 0; box-shadow: none; }
.td-fix__bar::before { display: none; }
.td-fix__time { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--atlantic); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.td-fix__time.is-open { background: #fff; color: #64748B; border: 1px dashed #CBD5E1; font-weight: 600; }
.td-fix__round { min-width: 0; color: #64748B; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-fix__bar .td-pill { margin-left: auto; flex: none; }
.td-fix__bar .td-pill.is-next { background: var(--lime); color: var(--atlantic); font-weight: 700; padding: 2px 8px; }
.td-fix__bar .td-pill.is-next i { background: var(--atlantic); }
.td-fix__body { padding: 8px 14px 12px; }
#td-schedule .td-fix__body,
#td-results .td-fix__body { padding: 8px 14px 12px; }
@media (min-width: 960px) {
  #td-schedule .td-fix, #td-results .td-fix { border: 0; }
  #td-schedule .td-row,
  #td-results .td-row { border-left: 4px solid #CBD5E1; }
  #td-schedule .td-fix.is-next .td-row,
  #td-schedule .td-fix.is-live .td-row { border-left-color: var(--lime); }
  .td-row__time { border-right: 0; }
  .td-row__time b { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 999px; background: var(--atlantic); color: #fff; font-size: 13px; }
  .td-row__time small { margin-bottom: 4px; }
  .td-row__time .td-pill.is-next { background: var(--lime); color: var(--atlantic); font-weight: 700; }
}
.td-mode .td-switch .td-day.is-on { background: var(--atlantic); color: #fff; box-shadow: none; }
#td-draw[hidden] { display: none !important; }
#td-draw { padding-bottom: 24px; }
@media (min-width: 960px) {
  #td-draw { width: 100%; margin-inline: 0; }
}
@media (max-width: 959px) {
  #td-draw .td-cats { display: none; }
}
/* Draw category picker, matching the player app */
.td-pickbtn__stage { flex: none; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--atlantic); }
.td-sportsel { display: flex; flex-direction: column; gap: 4px; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.td-sportsel select { height: 44px; padding: 0 12px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); }
.td-sportsel select:focus { outline: 2px solid var(--atlantic); outline-offset: 1px; }
.td-picker--sheet .td-pickrow[hidden] { display: none !important; }
@media (max-width: 959px) {
  .td-picker--sheet.is-open::before { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, 0.45); }
  .td-picker--sheet .td-picklist { position: fixed; z-index: 61; left: 0; right: 0; top: auto; bottom: 0; max-height: 75vh; padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18); }
  .td-picker--sheet .td-picklist::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #CBD5E1; }
}
.td-picker--sheet .td-picklist .td-sports { display: none !important; }
.td-bracket__bar--top { margin: 0 0 8px; }
.td-bracket__bar--top .td-bracket__tools { margin: 0; padding: 2px; }
.td-bracket__bar--top .td-bracket__tools button { height: 32px; min-width: 32px; }
.td-bracket__bar--top + .td-rounds { margin: 0 0 10px; padding-bottom: 2px; }
.td-bracket.is-full .td-bracket__bar--top + .td-rounds { margin: 8px 12px 10px; }
/* Compact bracket cards: date, time and court in the header */
.td-draw__card { border-left: 4px solid #CBD5E1; }
.td-draw__card.is-live { border-left-color: var(--lime); }
.td-draw__card.is-done { border-left-color: #84CC16; }
.td-draw__top { justify-content: flex-start; padding: 6px 8px 4px; }
.td-draw__top > b { flex: none; }
.td-draw__meta { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; font-size: 11px; color: #64748B; }
.td-draw__top .td-draw__meta b { flex: none; padding: 2px 7px; border-radius: 999px; background: var(--atlantic); color: #fff; font-size: 11px; font-weight: 700; }
.td-draw__meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.td-draw__status { flex: none; margin-left: auto; }
.td-draw__row .td-set { background: #F1F5F9; color: #64748B; border: 0; border-radius: 6px; }


/* Korto ecosystem refresh — Atlantic + Lime brand system */
.page-home:not(.page-organizer):not(.page-seo-landing) .lv-hero h1 { max-width: 12ch; font-size: clamp(3.1rem, 7vw, 5.6rem); letter-spacing: -0.055em; }
.page-home .lv-hero__sub { max-width: 43rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.page-home .lv-hero::after { background: linear-gradient(90deg, rgba(4, 22, 31, .08) 0%, rgba(4, 22, 31, .04) 42%, rgba(4, 22, 31, 0) 72%); }
.lv-section-intro { max-width: 48rem; margin-bottom: 2.5rem; }
.lv-section-intro--center { margin-inline: auto; text-align: center; }
.lv-section-intro .lv-lead { margin-top: 1rem; }
.lv-journey-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-top: 2.5rem; }
.lv-journey-card { overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 1.1rem; box-shadow: 0 12px 32px rgba(14, 52, 60, .07); }
.lv-journey-card > img { display: block; width: 100%; height: 220px; object-fit: cover; }
.lv-journey-card__body { position: relative; padding: 1.4rem; }
.lv-journey-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.1rem; border-radius: .8rem; background: var(--atlantic); color: white; font-size: 1.55rem; font-weight: 700; }
.lv-journey-icon--lime { background: var(--lime); color: var(--on-lime); }
.lv-journey-card .lv-label { margin-bottom: .35rem; font-size: .72rem; }
.lv-journey-card h3 { margin: 0; color: var(--atlantic); font: 700 1.55rem/1.15 var(--font-display); }
.lv-journey-card p:not(.lv-label) { min-height: 3.2em; margin: .7rem 0 1.1rem; color: var(--ink-muted); }
.lv-journey-card a { color: var(--atlantic-700); font-weight: 700; text-decoration: none; }
.lv-journey-card a:hover { text-decoration: underline; }
.lv-partners { background: var(--surface); }
.lv-partner-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.lv-partner-card { display: flex; flex-direction: column; min-height: 270px; padding: 1.6rem; border: 1px solid var(--border); border-radius: 1rem; background: white; color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.lv-partner-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14, 52, 60, .1); }
.lv-partner-card__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.2rem; border-radius: .9rem; background: var(--atlantic); color: white; font-size: 1.45rem; }
.lv-partner-card__icon--lime { background: var(--lime); color: var(--on-lime); }
.lv-partner-card__eyebrow { color: var(--atlantic-700); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lv-partner-card h3 { margin: .45rem 0 .5rem; color: var(--atlantic); font: 700 1.45rem/1.15 var(--font-display); }
.lv-partner-card p { margin: 0 0 1.4rem; color: var(--ink-muted); }
.lv-card-link { margin-top: auto; color: var(--atlantic-700); font-weight: 700; }
.lv-card-link b { margin-left: .25rem; color: var(--atlantic); }
.lv-seo-feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.lv-seo-feature { padding: 1.4rem; border: 1px solid var(--border); border-radius: 1rem; background: white; }
.lv-seo-feature h3 { margin: 1rem 0 .4rem; color: var(--atlantic); font: 700 1.25rem var(--font-display); }
.lv-seo-feature p { margin: 0; color: var(--ink-muted); }
.page-seo-landing .lv-hero { min-height: 590px; }
.page-seo-landing .lv-hero h1, .page-organizer .lv-hero h1 { max-width: 17ch; font-size: clamp(2.5rem, 5vw, 4.25rem); }
@media (min-width: 700px) {
  .lv-journey-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .lv-journey-card > img { height: 245px; }
  .lv-partner-grid { grid-template-columns: repeat(3, 1fr); }
  .lv-seo-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .lv-partner-card { transition: none; } .lv-partner-card:hover { transform: none; } }

/* Local discovery and partner pages */
.lv-local-links { display:grid; grid-template-columns:1fr; gap:1rem; margin-top:1.5rem; }
.lv-local-link { display:block; padding:1.2rem 1.35rem; border:1px solid var(--border); border-radius:1rem; background:#fff; color:var(--atlantic); text-decoration:none; box-shadow:0 8px 24px rgba(14,52,60,.05); }
.lv-local-link strong { display:block; font:700 1.15rem/1.25 var(--font-display); }
.lv-local-link span { display:block; margin-top:.4rem; color:var(--ink-muted); }
.lv-local-link:hover { border-color:var(--lime); transform:translateY(-2px); }
.lv-local-note { padding:1rem 1.2rem; border-left:4px solid var(--lime); background:rgba(135,205,45,.09); border-radius:.35rem; color:var(--ink-muted); }
@media (min-width:720px) { .lv-local-links { grid-template-columns:repeat(2,minmax(0,1fr)); } }


/* Homepage Hyderabad tournament discovery */
.lv-hyderabad-discovery { background: var(--surface, #f5f8f7); }
.lv-local-links--three { grid-template-columns: 1fr; }
@media (min-width: 900px) { .lv-local-links--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Homepage: Tourno and Academia */
.home-intro { padding: 2.75rem 0 1.5rem; }
.home-hero { display: grid; gap: 1.75rem; align-items: center; }
.home-hero__photo {
  display: none;
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 18px 50px rgba(14, 52, 60, 0.12);
}
.home-hero__photo img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 70%;
}
.home-band__photo {
  margin: 0 0 1.35rem;
  overflow: hidden;
  height: 240px;
  border-radius: 1.35rem;
}
.home-band__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.home-band__photo--art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  background: #fff;
  border: 1px solid var(--border);
}
.home-band__photo--art img {
  width: auto;
  height: 220px;
  max-width: 80%;
  object-fit: contain;
  object-position: center;
}
.home-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--atlantic);
  font: 700 0.78rem/1.3 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-eyebrow::after {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 3px;
  margin-left: 0.75rem;
  vertical-align: middle;
  background: var(--lime);
}
.home-intro h1 {
  max-width: 14em;
  margin: 0;
  color: var(--atlantic);
  font: 700 clamp(2.15rem, 4.4vw, 3.35rem)/1.08 var(--font-display);
  letter-spacing: -0.035em;
}
.home-lead {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 1.12rem;
}
.home-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.home-cta .btn { border-radius: 10px; }
.home-player { margin: 1rem 0 0; }
.home-player a { color: var(--atlantic); font-weight: 600; }
.home-player a:hover { color: var(--atlantic-900, var(--atlantic)); }
.home-products { padding: 2.25rem 0 3rem; background: var(--surface); }
.home-band + .home-band { margin-top: 2.75rem; }
.home-band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 1.1rem;
}
.home-band__head h2 {
  margin: 0;
  color: var(--atlantic);
  font: 700 clamp(1.45rem, 2.4vw, 1.85rem)/1.15 var(--font-display);
  letter-spacing: -0.02em;
}
.home-band__head p {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--lime);
  color: var(--ink-muted);
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.home-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  margin: 0;
  padding: 1.45rem 1.35rem 1.4rem;
  border: 0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 52, 60, 0.05), 0 12px 32px rgba(14, 52, 60, 0.05);
}
.home-ico {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: oklch(0.96 0.03 155);
  color: var(--atlantic);
}
.home-ico svg { width: 1.25rem; height: 1.25rem; }
.home-tile h3 { margin: 0; color: var(--atlantic); font: 700 1.12rem/1.25 var(--font-display); letter-spacing: -0.02em; }
.home-tile p { margin: 0.45rem 0 0; color: var(--ink-muted); line-height: 1.5; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.15rem; }
.home-more { color: var(--atlantic); font-weight: 600; }
.home-more:hover { color: var(--atlantic-900, var(--atlantic)); }
.page-home .home-products + .lv-block { padding-top: 0.25rem; padding-bottom: 3rem; }
@media (min-width: 860px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .home-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; }
  .home-hero__photo { display: block; }
  .home-hero__photo img { height: 460px; }
  .home-band__photo { height: 300px; }
  .home-band__photo--art { height: 300px; }
  .home-band__photo--art img { height: 240px; }
}
