/**
 * assets/css/pages.css — North of the Cut per-page CSS
 *
 * Added 2026-09-04, the companion file to assets/css/site.css — see that
 * file's header comment for the full story of the consolidation and how
 * the two files divide the work.
 *
 * This file holds everything that is NOT shared sitewide:
 *
 *   - Genuinely page-unique components (a page's own hero section, card
 *     grid, table, etc.) — written as plain selectors exactly as they
 *     always were, since a class name that only exists on one page's
 *     markup can't collide with any other page.
 *
 *   - Small per-page deltas on an otherwise-shared component from
 *     site.css (e.g. one page's .btn needs a different padding, or one
 *     page's .auth-card is a different max-width), OR a page that wants
 *     NONE of a shared tag/component's site.css styling at all (e.g.
 *     index.php never styled a bare `main` selector on its own, so it
 *     gets every one of that rule's properties reverted rather than
 *     silently inheriting the other pages' shared default) — written as
 *     `body.page-<slug> <selector>{ ...only the properties that differ... }`.
 *     Every real page now carries a `<body class="page-<slug>">` tag (see
 *     each page's own PHP source, right before its <header> include) so
 *     these overrides apply to exactly one page and nothing else. A value
 *     of `revert` means "this page has none of that property at all" —
 *     it un-sets the site.css default back to the browser's own default
 *     (or, for .wordmark/.wordmark .dot specifically, back to
 *     assets/css/nav.css's own default — see its section below and
 *     site.css's header comment) — it does not mean "inherit" or "unset
 *     the value to something specific".
 *
 * Each section below is one real page, in the same order the pages
 * appear in the file listing, headed by a comment naming its source file
 * and page-slug. Nothing here changes how any page looks — this is a
 * mechanical, self-verified reorganization of exactly the same CSS that
 * used to live in that page's own <style> block (self-verified means: a
 * script reconstructed, for every page and every shared selector, "the
 * site.css base rule plus this page's overrides" and confirmed it comes
 * back byte-for-byte identical to that page's original declarations,
 * including pages that had no declarations for a given selector at all).
 */

/* ===================== about.css (about) ===================== */
body.page-about h1, body.page-about p{ text-wrap: revert; }
body.page-about main{ padding: clamp(40px, 6vw, 72px) 20px clamp(56px, 8vw, 88px); display: revert; justify-content: revert; }
.letter-head{ max-width: 760px; margin: 0 auto clamp(36px, 5vw, 52px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
@media (max-width: 700px){
  .letter-head{ grid-template-columns: 1fr; }
}
body.page-about .letter-eyebrow{ margin-bottom: 12px; justify-content: revert; }
.letter-eyebrow::before{ content:""; width: 18px; height: 1px; background: var(--accent); }
.letter-head h1{ font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.01em; line-height: 1.1; }
.letter-head .sub{ margin-top: 12px; font-size: 15px; color: var(--text-muted); }
.letter-photo{ margin: 0; }
.letter-photo img{ display: block; width: 100%; border-radius: 8px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.letter-photo figcaption{ margin-top: 10px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-faint); }
.letter-body p.lead{ font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.5; color: var(--text); }
body.page-about .btn{ transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }


/* ===================== contact.css (contact) ===================== */
body.page-contact h1, body.page-contact p{ margin: revert; text-wrap: revert; }
body.page-contact main{ padding: clamp(40px, 6vw, 72px) 20px clamp(56px, 8vw, 88px); display: revert; justify-content: revert; }
body.page-contact h1, body.page-contact h3, body.page-contact p{ margin: 0; }
.contact-intro{ max-width: 700px; margin: 0 auto clamp(44px, 6vw, 64px); text-align: center; }
.contact-intro h1{ font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.01em; line-height: 1.1; }
.contact-intro .sub{ margin: 16px auto 0; max-width: 54ch; font-size: 16px; color: var(--text-muted); }
.contact-grid{ max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (max-width: 820px){
  .contact-grid{ grid-template-columns: 1fr; }
}
.contact-card{ background: var(--bg-elevated); padding: clamp(26px, 3.4vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.contact-card .icon{ width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex-shrink: 0; }
.contact-card .icon svg{ width: 20px; height: 20px; }
.contact-card h3{ font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.005em; }
.contact-card p{ font-size: 14.5px; line-height: 1.65; color: var(--text-muted); flex-grow: 1; }
.contact-card a.contact-link{ display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; word-break: break-word; }
.contact-card a.contact-link:hover{ color: var(--accent-strong); }
.contact-card a.contact-link svg{ width: 13px; height: 13px; flex-shrink: 0; transition: transform .15s ease; }
.contact-card a.contact-link:hover svg{ transform: translate(2px, -2px); }
.contact-signoff{ max-width: 640px; margin: clamp(44px, 6vw, 60px) auto 0; padding-top: clamp(28px, 4vw, 36px); border-top: 1px solid var(--border-soft); text-align: center; }
.contact-signoff p{ font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.contact-signature{ margin-top: 18px; }
.contact-signature .names{ font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text); letter-spacing: -0.005em; }
.contact-signature .title{ margin-top: 4px; font-size: 13px; color: var(--text-faint); }


/* ===================== edit_tournaments.css (edit-tournament) ===================== */
body.page-edit-tournament main{ align-items: flex-start; }
body.page-edit-tournament .btn{ transition: background .15s ease, border-color .15s ease, transform .15s ease; }
body.page-edit-tournament .auth-card{ margin-top: clamp(20px, 6vh, 64px); }
body.page-edit-tournament form{ display: flex; flex-direction: column; gap: 22px; }
body.page-edit-tournament label{ font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; }
body.page-edit-tournament label .opt{ font-weight: 500; font-style: normal; color: var(--text-faint); text-transform: none; letter-spacing: 0; }
body.page-edit-tournament .input, body.page-edit-tournament select{ width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; transition: border-color .15s ease, box-shadow .15s ease; }
body.page-edit-tournament .input:focus, body.page-edit-tournament select:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
body.page-edit-tournament textarea.input{ resize: vertical; min-height: 100px; font-family: var(--font-body); line-height: 1.5; }
body.page-edit-tournament .input.error, body.page-edit-tournament select.error{ border-color: var(--accent-2); }
body.page-edit-tournament .input:disabled, body.page-edit-tournament select:disabled{ opacity: 0.45; cursor: not-allowed; background: var(--bg-panel); }
body.page-edit-tournament select{ appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239A9CAB' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.sponsor-current{ display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.sponsor-current img{ max-height: 60px; max-width: 130px; width: auto; height: auto; border-radius: 4px; border: 1px solid var(--border-soft); background: var(--bg); padding: 4px; flex-shrink: 0; }
.sponsor-current .remove-row{ display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); cursor: pointer; }
.sponsor-current .remove-row input{ width: 15px; height: 15px; accent-color: var(--accent-2); cursor: pointer; flex-shrink: 0; }
body.page-edit-tournament .form-banner{ margin-bottom: 4px; }
.form-actions{ display: flex; gap: 10px; }
@media (max-width: 480px){
  .row{ grid-template-columns: 1fr; }
  .form-actions{ flex-direction: column-reverse; align-items: stretch; }
}


/* ===================== forgot-password.css (forgot-password) ===================== */
body.page-forgot-password main{ align-items: center; }
body.page-forgot-password .btn-solid{ width: 100%; margin-top: 4px; }
body.page-forgot-password .auth-card{ max-width: 420px; text-align: left; }
body.page-forgot-password form{ display: flex; flex-direction: column; gap: 14px; }
body.page-forgot-password label{ font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; }
body.page-forgot-password .fine-print{ margin-top: 16px; }


/* ===================== index.css (home) ===================== */
body.page-home{ min-height: revert; font-size: 16px; line-height: 1.6; display: revert; flex-direction: revert; overflow-x: hidden; }
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]) body.page-home{ --bg-panel: #FFFFFF; }
}
:root[data-theme="light"] body.page-home{ --bg-panel: #FFFFFF; }
@media (prefers-reduced-motion: reduce){
  body.page-home *{ animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
body.page-home h1, body.page-home p{ margin: revert; text-wrap: revert; }
body.page-home :focus-visible{ outline-offset: 3px; }
body.page-home header{ position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
body.page-home .nav{ gap: 24px; padding: 18px clamp(20px, 5vw, 56px); }
body.page-home .wordmark{ font-size: revert; }
body.page-home .wordmark .dot{ font-size: revert; }
body.page-home main{ flex: revert; padding: revert; display: revert; justify-content: revert; }
body.page-home .btn{ font-size: 14px; padding: 13px 22px; border-radius: 3px; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; letter-spacing: 0.01em; }
body.page-home footer{ padding: 40px 0 34px; }
body.page-home .footer-inner{ gap: 20px; }
body.page-home .footer-meta{ font-size: 12px; }
body.page-home img, body.page-home svg{ max-width: 100%; display:block; }
body.page-home h1, body.page-home h2, body.page-home h3, body.page-home p{ margin: 0; text-wrap: balance; }
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.btn-outline-invert{ background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline-invert:hover{ border-color: var(--text); }
.btn-lg{ padding: 16px 28px; font-size: 15px; }
.btn-card{ background: transparent; color: var(--text); border-color: var(--border); }
.btn-card:hover{ border-color: var(--accent); color: var(--accent); }
.hero{ position: relative; /* Changed 2026-09-03 from var(--bg-panel) to var(--bg), per direct user request: in light theme, --bg-panel is pure white (#FFFFFF), which made the Hero section (the very top of the page, edge to edge) read noticeably brighter than every other section below it — "What This Is"/the steps row, "The Numbers", and the final CTA band all use var(--bg) (a soft grey, #EEF0F2 in light theme) as their OWN section background, reserving --bg-panel/--bg-elevated (white) only for the elevated CARDS that sit on top of that grey (the stats panel, the CTA band, the two "For Bowlers"/"For Tournament Directors" cards) — Hero was the one section styled as if it WERE an elevated card itself, rather than a section with cards on it. Switching to --bg makes Hero match that same grey used elsewhere. In dark theme this is a no-op in practice — --bg (#0E0F14) and --bg-panel (#14151C) are two very close near-black shades, so Hero's dark appearance is unchanged. */ background: var(--bg); color: var(--text); overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.hero::before{ content: ""; position: absolute; inset: 0; background: repeating-linear-gradient( 100deg, rgba(242,169,59,0.05) 0px, rgba(242,169,59,0.05) 2px, transparent 2px, transparent 74px ); pointer-events: none; }
.hero::after{ content: ""; position: absolute; right: -10%; top: -20%; width: 640px; height: 640px; background: radial-gradient(circle, rgba(242,169,59,0.16) 0%, rgba(242,169,59,0) 68%); pointer-events: none; }
.hero-inner{ position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: clamp(64px, 10vw, 104px); padding-bottom: clamp(56px, 8vw, 96px); }
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
}
body.page-home .eyebrow{ gap: 10px; font-size: 12px; letter-spacing: 0.14em; color: var(--accent-strong); margin-bottom: 22px; }
body.page-home .eyebrow::before{ width: 26px; background: var(--accent-strong); }
.hero h1{ font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.01em; color: var(--text); }
.hero h1 em{ font-style: normal; color: var(--accent-strong); }
.hero-sub{ margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-muted); line-height: 1.65; }
.hero-actions{ margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note{ margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.02em; }
.lane-card{ position: relative; background: linear-gradient(180deg, #1B1D28 0%, #14151D 100%); border: 1px solid #2C2F3D; border-radius: 6px; padding: 26px 24px 22px; box-shadow: var(--shadow); }
.lane-card-head{ display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); padding-bottom: 16px; border-bottom: 1px solid #262838; }
.lane-card-head .live{ display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); }
.lane-card-head .live::before{ content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); }
.lane-card-head .soon{ display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); }
.lane-card-head .soon::before{ content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.lane-rows{ margin-top: 16px; display: flex; flex-direction: column; gap: 0; }
.lane-row{ display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #21232F; font-size: 13.5px; }
.lane-row:last-child{ border-bottom: none; }
.lane-row .pos{ font-family: var(--font-mono); color: var(--text-faint); font-size: 12px; }
.lane-row .name{ color: #E7E7EE; font-weight: 600; }
.lane-row .tag{ font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-faint); }
.lane-row .score{ font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.lane-row.above .score{ color: #8FE3A6; }
.cutline{ position: relative; margin: 4px 0 12px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent-2) 0 6px, transparent 6px 11px); }
.cutline::after{ content: "CUT LINE"; position: absolute; right: 0; top: -8px; background: #14151D; padding-left: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--accent-2); }
body.page-home section{ padding: clamp(64px, 9vw, 108px) 0; }
.section-eyebrow{ font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.section-head h2{ font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.005em; }
.section-head p{ margin-top: 16px; font-size: 16.5px; color: var(--text-muted); max-width: 58ch; }
.audience-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (max-width: 760px){
  .audience-grid{ grid-template-columns: 1fr; }
}
.audience-card{ background: var(--bg-elevated); padding: clamp(28px, 4vw, 42px); display: flex; flex-direction: column; gap: 18px; }
.audience-card .kicker{ display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.audience-card .kicker .num{ font-family: var(--font-display); font-size: 13px; color: var(--accent); border: 1px solid var(--border); border-radius: 3px; padding: 2px 7px; }
.audience-card h3{ font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.005em; }
.audience-card p{ color: var(--text-muted); font-size: 15px; }
.audience-card ul{ list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; flex-grow: 1; }
.audience-card li{ display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.audience-card li svg{ flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.audience-card .btn{ margin-top: 8px; align-self: flex-start; }
.steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 1px; }
@media (max-width: 760px){
  .steps{ grid-template-columns: 1fr; }
}
.step{ background: var(--bg); padding: 26px 26px 30px; }
.step .step-index{ font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }
.step h4{ margin-top: 10px; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.step p{ margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.stats-panel{ background: var(--bg-panel); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.stats-panel-head{ display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--border-soft); }
.stats-panel-head .label{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.stats-panel-head .live{ display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent-strong); }
.stats-panel-head .live::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--accent-strong); }
.stats-grid{ display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
}
.stat{ padding: clamp(26px, 3.2vw, 38px) clamp(20px, 2.6vw, 30px); border-right: 1px solid var(--border-soft); border-top: 1px solid var(--border-soft); }
.stat:nth-child(4n){ border-right: none; }
@media (max-width: 860px){
  .stat:nth-child(2n){ border-right: none; }
  .stat:nth-child(4n){ border-right: 1px solid var(--border-soft); }
  .stat:nth-child(2n+1){ border-right: 1px solid var(--border-soft); }
}
.stat-value{ font-family: var(--font-mono); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-value .suffix{ font-size: 0.5em; color: var(--accent-strong); margin-left: 2px; }
.stat-label{ margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.01em; }
.cta-band{ background: var(--bg-panel); border-radius: 8px; padding: clamp(40px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow); }
.cta-band h2{ font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 32px); color: var(--text); max-width: 22ch; }
.cta-band p{ margin-top: 10px; color: var(--text-muted); font-size: 15px; max-width: 44ch; }
.cta-band-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.footer-left{ display: flex; flex-direction: column; gap: 6px; }
body.page-home .footer-inner .wordmark{ font-size: 16px; }
.footer-tagline{ font-size: 13px; color: var(--text-muted); }


/* ===================== login.css (login) ===================== */
body.page-login main{ align-items: center; }
body.page-login .btn-solid{ width: 100%; margin-top: 4px; }
body.page-login .auth-card{ max-width: 420px; }
body.page-login form{ display: flex; flex-direction: column; gap: 14px; }
body.page-login label{ font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; }
body.page-login .fine-print{ margin-top: 16px; }
body.page-login .form-banner{ margin-bottom: 16px; }
.field-label-row{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.forgot-link{ font-size: 12px; font-weight: 600; color: var(--text-faint); text-decoration: none; }
.forgot-link:hover{ color: var(--accent); }


/* ===================== new_tournaments.css (new-tournament) ===================== */
body.page-new-tournament main{ align-items: flex-start; }
body.page-new-tournament .btn{ transition: background .15s ease, border-color .15s ease, transform .15s ease; }
body.page-new-tournament .auth-card{ margin-top: clamp(20px, 6vh, 64px); }
body.page-new-tournament form{ display: flex; flex-direction: column; gap: 22px; }
body.page-new-tournament label{ font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; }
body.page-new-tournament label .opt{ font-weight: 500; font-style: normal; color: var(--text-faint); text-transform: none; letter-spacing: 0; }
body.page-new-tournament .input, body.page-new-tournament select{ width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; transition: border-color .15s ease, box-shadow .15s ease; }
body.page-new-tournament .input:focus, body.page-new-tournament select:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
body.page-new-tournament textarea.input{ resize: vertical; min-height: 100px; font-family: var(--font-body); line-height: 1.5; }
body.page-new-tournament .input.error, body.page-new-tournament select.error{ border-color: var(--accent-2); }
body.page-new-tournament .input:disabled, body.page-new-tournament select:disabled{ opacity: 0.45; cursor: not-allowed; background: var(--bg-panel); }
body.page-new-tournament select{ appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239A9CAB' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
body.page-new-tournament .form-banner{ margin-bottom: 4px; }
@media (max-width: 480px){
  .row{ grid-template-columns: 1fr; }
}


/* ===================== profile.css (profile) ===================== */
body.page-profile main{ align-items: flex-start; }
body.page-profile .btn{ padding: 11px 18px; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
body.page-profile .btn-outline:hover{ border-color: var(--accent-2); color: var(--accent-2); }
body.page-profile .section-title{ font-size: 16px; padding-bottom: revert; margin: revert; border-bottom: revert; }
body.page-profile label{ font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; }
body.page-profile .input, body.page-profile select{ width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; transition: border-color .15s ease, box-shadow .15s ease; }
body.page-profile .input:focus, body.page-profile select:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
body.page-profile .input.error, body.page-profile select.error{ border-color: var(--accent-2); }
body.page-profile select{ appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239A9CAB' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
body.page-profile .form-banner{ margin-bottom: 18px; }
body.page-profile .section-head{ max-width: revert; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.profile-card{ width: 100%; max-width: 960px; background: var(--bg-elevated); border: 1px solid color-mix(in srgb, var(--border) 55%, var(--text-muted) 45%); border-radius: 8px; padding: clamp(26px, 4vw, 34px) clamp(24px, 4vw, 34px) 30px; box-shadow: var(--shadow-card); }
body.page-profile .back-link{ letter-spacing: 0.04em; color: var(--text-muted); transition: color .15s ease; }
.back-link svg{ flex-shrink: 0; }
.profile-columns{ display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 0 40px; align-items: start; }
.profile-col-right{ display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 760px){
  .profile-columns{ grid-template-columns: 1fr; gap: 0; }
  .profile-col-left{ padding-right: 0; border-right: none; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); margin-bottom: 30px; }
}
.profile-head{ display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border-soft); }
.avatar{ flex-shrink: 0; width: 56px; height: 56px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: 0.02em; }
.profile-head h1{ font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.005em; }
.profile-head .member-since{ margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.02em; }
.profile-section{ margin-bottom: 30px; }
.profile-section:last-of-type{ margin-bottom: 0; }
.badges{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
body.page-profile .badge{ padding: 6px 10px; }
.badge.badge-accent{ color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.form-banner.pending{ color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); }
.access-card{ padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); border-radius: 6px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.access-card h2{ font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.access-card p{ font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.access-card form{ margin: 0; }
.empty-note a{ font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.empty-note a:hover{ border-color: var(--accent); color: var(--accent); }
.tournament-list{ display: flex; flex-direction: column; gap: 10px; }
.tournament-row{ display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease; }
.tournament-row:hover{ border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.tournament-row-main{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tournament-row-name{ font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.002em; }
.tournament-row-meta{ margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.password-card{ border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.password-card summary{ cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; font-family: var(--font-body); font-weight: 700; font-size: 14.5px; transition: background .15s ease; }
.password-card summary::-webkit-details-marker{ display: none; }
.password-card summary:hover{ background: color-mix(in srgb, var(--accent) 6%, transparent); }
.password-card summary .chevron{ color: var(--text-faint); transition: transform .15s ease; flex-shrink: 0; }
.password-card[open] summary .chevron{ transform: rotate(180deg); }
.password-card[open] summary{ border-bottom: 1px solid var(--border-soft); }
.password-body{ padding: 18px 20px 20px; }
.password-body form{ display: flex; flex-direction: column; gap: 14px; }
.detail-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.detail-item{ display: flex; flex-direction: column; gap: 4px; }
.detail-item.full{ grid-column: 1 / -1; }
.detail-label{ font-size: 11px; font-weight: 700; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.detail-value{ font-size: 15px; color: var(--text); }
.edit-actions{ display: flex; gap: 10px; margin-top: 2px; }
.profile-actions{ display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.btn-small:hover{ border-color: var(--accent); color: var(--accent); }
@media (max-width: 480px){
  .detail-grid, .row{ grid-template-columns: 1fr; }
  .profile-actions{ flex-direction: column-reverse; align-items: stretch; }
  .edit-actions{ flex-direction: column-reverse; }
}


/* ===================== register.css (register) ===================== */
body.page-register main{ align-items: center; }
body.page-register .btn-solid{ width: 100%; margin-top: 4px; }
body.page-register form{ display: flex; flex-direction: column; gap: 14px; }
body.page-register label{ font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; }
body.page-register label .opt{ font-weight: 500; font-style: normal; color: var(--text-faint); text-transform: none; letter-spacing: 0; }
body.page-register .input, body.page-register select{ width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; transition: border-color .15s ease, box-shadow .15s ease; }
body.page-register .input:focus, body.page-register select:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
body.page-register .input.error, body.page-register select.error{ border-color: var(--accent-2); }
body.page-register select{ appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239A9CAB' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.pw-hint{ font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); }
.pw-hint.match{ color: var(--ok); }
.pw-hint.mismatch{ color: var(--accent-2); }
.access-block{ display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.access-options{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.access-chip{ position: relative; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--border); border-radius: 5px; padding: 10px 12px 10px 34px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.access-chip input{ position: absolute; left: 11px; top: 12px; width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.access-chip .title{ font-size: 13.5px; font-weight: 700; }
.access-chip .desc{ font-size: 11px; color: var(--text-faint); line-height: 1.4; }
.access-chip:has(input:checked){ border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.access-chip:has(input:disabled){ cursor: default; }
.access-chip:has(input:disabled) .title{ color: var(--text-muted); }
@media (max-width: 420px){
  .row, .access-options{ grid-template-columns: 1fr; }
}


/* ===================== registrations.css (registrations) ===================== */
body.page-registrations h1, body.page-registrations p{ margin: revert; text-wrap: revert; }
body.page-registrations header{ position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
body.page-registrations .wordmark{ font-size: 15px; }
body.page-registrations .wordmark .dot{ font-size: revert; color: var(--accent); }
body.page-registrations main{ padding: clamp(28px, 5vw, 48px) 20px 64px; }
body.page-registrations .btn{ transition: background .15s ease, border-color .15s ease, transform .15s ease; white-space: nowrap; }
body.page-registrations .section-title{ font-size: 14px; padding-bottom: 9px; margin: 0 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
body.page-registrations .form-banner{ margin-bottom: 14px; }
body.page-registrations .badge{ flex-shrink: 0; }
body.page-registrations .empty-note{ font-size: 14.5px; }
body.page-registrations h1, body.page-registrations h2, body.page-registrations p{ margin: 0; text-wrap: balance; }
.event-date-line{ margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); }
.section-title .count{ font-family: var(--font-mono); font-weight: 600; font-size: 12px; color: var(--text-faint); text-transform: none; letter-spacing: 0; }
.section-title .title-with-count{ display: flex; align-items: baseline; gap: 10px; }
.roster-table{ width: 100%; border-collapse: collapse; font-size: 14.5px; }
.roster-table th{ /* Changed 2026-09-02, per a direct user request: was the same all-caps/mono "label" look as the site's small overline headings (e.g. .section-label below) — switched to the body font in normal (title/sentence) case instead, since the user specifically didn't want the all-caps font here. */ text-align: left; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text-faint); padding: 0 10px 9px 0; border-bottom: 1px solid var(--border-soft); }
.roster-table td{ padding: 11px 10px 11px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-muted); vertical-align: top; }
.roster-table tbody tr:last-child:not(.team-member-row) td{ border-bottom: none; }
.roster-table td.bowler-name{ color: var(--text); font-weight: 600; }
.roster-table .row-num{ font-family: var(--font-mono); color: var(--text-faint); font-size: 12.5px; width: 28px; }
.roster-table td.action-col{ text-align: right; white-space: nowrap; }
.roster-table td.action-col form{ margin: 0; }
.roster-table-wrap{ width: 100%; overflow-x: auto; }
.roster-table .team-col{ font-family: var(--font-mono); color: var(--text-faint); font-size: 12.5px; vertical-align: middle; white-space: nowrap; }
.roster-table td.bowler-name .muted{ color: var(--text-muted); }
.roster-table tr.team-group-alt td{ background: color-mix(in srgb, var(--bg-panel) 6%, transparent); }
.roster-table tr.team-member-row td{ border-bottom: none; }
.roster-table tr.team-group-first td{ border-top: 1px solid var(--border-soft); }
.roster-table tr.team-group-last td{ border-bottom: 1px solid var(--border-soft); }
.roster-table tr.team-member-row td.team-col{ border-bottom: 1px solid var(--border-soft); }
.modal-row{ margin-top: 16px; }
.modal-row-label{ display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }


/* ===================== resend-verification.css (resend-verification) ===================== */
body.page-resend-verification main{ align-items: center; }
body.page-resend-verification .btn-solid{ width: 100%; margin-top: 4px; }
body.page-resend-verification .auth-card{ max-width: 420px; text-align: left; }
body.page-resend-verification form{ display: flex; flex-direction: column; gap: 14px; }
body.page-resend-verification label{ font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; }
body.page-resend-verification .fine-print{ margin-top: 16px; }


/* ===================== reset-password.css (reset-password) ===================== */
body.page-reset-password main{ align-items: center; }
body.page-reset-password .btn-solid{ width: 100%; margin-top: 4px; }
body.page-reset-password .auth-card{ max-width: 420px; text-align: left; }
body.page-reset-password form{ display: flex; flex-direction: column; gap: 14px; }
body.page-reset-password label{ font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.01em; }
body.page-reset-password .fine-print{ margin-top: 16px; }
body.page-reset-password .form-banner.error{ margin-bottom: 4px; }


/* ===================== support.css (support) ===================== */
body.page-support h1, body.page-support p{ margin: revert; text-wrap: revert; }
body.page-support main{ padding: clamp(40px, 6vw, 72px) 20px clamp(56px, 8vw, 88px); display: revert; justify-content: revert; }
body.page-support .letter-signoff{ margin: clamp(44px, 6vw, 60px) auto 0; }
body.page-support .btn{ transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
body.page-support h1, body.page-support h3, body.page-support p{ margin: 0; }
.support-intro{ max-width: 700px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.support-intro h1{ font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.01em; line-height: 1.1; }
.support-intro .sub{ margin: 16px auto 0; max-width: 52ch; font-size: 16px; color: var(--text-muted); }
.thanks-grid{ max-width: 900px; margin: clamp(44px, 6vw, 64px) auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
@media (max-width: 700px){
  .thanks-grid{ grid-template-columns: 1fr; }
}
.thanks-card{ background: var(--bg-elevated); padding: clamp(26px, 3.4vw, 36px); }
.thanks-card .kicker{ display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.thanks-card .kicker svg{ width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.thanks-card h3{ font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.005em; }
.thanks-card p{ margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }
.donate-card{ max-width: 640px; margin: clamp(44px, 6vw, 60px) auto 0; padding: clamp(28px, 4vw, 36px); /* CHANGED 2026-09-03, per direct user request: this used to be var(--bg-panel), which on this page (like about.php) is hardcoded to the same dark charcoal (#14151C) in BOTH themes rather than getting its own light-theme value the way index.php's Hero section does — so in light theme this card stayed dark while var(--text)/ var(--text-muted) had already switched to their dark, light-theme colors, giving dark text on a dark card and breaking contrast. Using var(--bg) instead — the page's own background token, which DOES switch per theme — makes the card blend into the page in both themes and automatically restores correct contrast for the already-token-based h3/p text below, with no separate font-color change needed. A border replaces the background-color contrast that used to set this section apart, since it no longer stands out by color alone. */ background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; box-shadow: var(--shadow); text-align: center; }
.donate-card h3{ font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.005em; color: var(--text); }
.donate-card p{ margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }
.donate-card form{ margin-top: 18px; }
.donate-divider{ display: flex; align-items: center; gap: 12px; max-width: 280px; margin: 22px auto 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.donate-divider::before, .donate-divider::after{ content:""; flex: 1; height: 1px; background: var(--border-soft); }
.donate-qr{ margin-top: 18px; }
.donate-qr img{ width: 150px; height: 150px; padding: 10px; /* Deliberately a hardcoded white background, not a --bg-* token: the source PNG's black modules run edge-to-edge with no built-in quiet zone (blank margin), which most scanners expect around a QR code — this padding+white box supplies that margin. It also keeps the code on a guaranteed light background regardless of site theme, since dark theme would otherwise put near-black modules on a near-black page background. */ background: #FFFFFF; border: 1px solid var(--border); border-radius: 6px; display: block; margin: 0 auto; }
.donate-qr .caption{ margin-top: 8px; font-size: 12px; color: var(--text-faint); }


/* ===================== team-invite.css (team-invite) ===================== */
body.page-team-invite .wordmark{ font-size: revert; }
body.page-team-invite .wordmark .dot{ font-size: revert; }
body.page-team-invite main{ align-items: center; }
body.page-team-invite .btn{ width: 100%; }
body.page-team-invite .btn-solid{ margin-top: 22px; }
body.page-team-invite .btn-outline{ color: var(--text); margin-top: 10px; }
body.page-team-invite .btn-outline:hover{ border-color: revert; color: revert; background: color-mix(in srgb, var(--text) 6%, transparent); }
body.page-team-invite .auth-card{ text-align: center; }
body.page-team-invite form{ margin: 0; }
body.page-team-invite h1{ font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -0.005em; }


/* ===================== tournament_details.css (tournament-details) ===================== */
body.page-tournament-details h1, body.page-tournament-details p{ margin: revert; text-wrap: revert; }
body.page-tournament-details header{ position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
body.page-tournament-details .wordmark{ font-size: 15px; }
body.page-tournament-details .wordmark .dot{ font-size: revert; color: var(--accent); }
body.page-tournament-details main{ padding: clamp(28px, 5vw, 48px) 20px 64px; }
body.page-tournament-details .btn{ transition: background .15s ease, border-color .15s ease, transform .15s ease; white-space: nowrap; }
body.page-tournament-details .section-title{ font-size: 14px; padding-bottom: 9px; margin: 0 0 14px; }
body.page-tournament-details .fine-print{ text-align: revert; }
body.page-tournament-details .form-banner{ margin-bottom: 14px; }
body.page-tournament-details .back-link{ margin-bottom: revert; }
body.page-tournament-details .badge{ flex-shrink: 0; }
body.page-tournament-details h1, body.page-tournament-details h2, body.page-tournament-details p{ margin: 0; text-wrap: balance; }
body.page-tournament-details .transfer-options{ margin-top: 10px; }
.top-bar{ display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.series-tag{ display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.meta-grid{ display: flex; flex-direction: column; gap: 16px; }
.meta-row strong{ color: var(--text); font-weight: 600; }
.meta-row a{ color: var(--accent); font-weight: 600; text-decoration: none; }
.meta-row a:hover{ text-decoration: underline; }
.meta-label{ display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; }
.detail-two-col{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; margin-top: 28px; }
.detail-two-col .detail-section{ margin-top: 0; }
@media (max-width: 640px){
  .detail-two-col{ grid-template-columns: 1fr; gap: 28px; }
}
.fee-list{ display: flex; flex-direction: column; gap: 9px; }
.fee-row{ display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--text-muted); }
.fee-row.sub{ padding-left: 14px; font-size: 13.5px; color: var(--text-faint); }
.fee-note{ font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin: 5px 0 -1px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.details-text{ font-size: 14.5px; color: var(--text-muted); white-space: pre-wrap; }
.sponsor-main{ display: block; margin: 0 auto; max-width: 100%; height: 220px; width: auto; border-radius: 6px; border: 1px solid var(--border-soft); background: var(--bg); }
.sponsor-grid{ display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px; margin-top: 14px; }
.sponsor-grid img{ /* 1/3 the height of .sponsor-main (220px / 3) */ height: 73.33px; max-width: 100%; width: auto; border-radius: 5px; border: 1px solid var(--border-soft); background: var(--bg); padding: 6px; }
.detail-status{ display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex-shrink: 0; }
.status-note{ font-size: 12px; color: var(--text-faint); text-align: right; max-width: 170px; line-height: 1.4; }
.btn-row{ display: flex; gap: 10px; flex-wrap: wrap; }
.team-name-form{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.team-name-form input[type="text"]{ flex: 1 1 220px; min-width: 0; font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border-soft); border-radius: 4px; padding: 8px 10px; }
.team-name-form input[type="text"]:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
.team-roster{ display: flex; flex-direction: column; gap: 10px; }
.team-row{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 6px; background: var(--bg); }
.team-row-main{ display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.team-slot-label{ font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); flex-shrink: 0; }
.team-slot-name{ font-size: 14px; color: var(--text); font-weight: 600; }
.team-slot-name.muted{ color: var(--text-muted); font-weight: 500; }
.team-row-actions{ display: flex; gap: 8px; flex-shrink: 0; }
.team-row-actions form{ margin: 0; }
.team-modal-row{ margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.team-modal-row:first-of-type{ margin-top: 16px; padding-top: 0; border-top: none; }
.team-modal-row-label{ display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.team-search-row input[type="text"]{ width: 100%; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14.5px; }
.team-search-row input[type="text"]:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
.team-name-modal-row{ margin-top: 16px; }
.team-name-modal-row input[type="text"]{ width: 100%; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14.5px; }
.team-name-modal-row input[type="text"]:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
.team-name-error{ margin-top: 6px; font-size: 12.5px; color: var(--accent-2); }
.team-results{ margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.team-result-item{ display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 5px; border: 1px solid var(--border-soft); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; cursor: pointer; }
.team-result-item:hover{ border-color: var(--accent); }
.team-result-item .usbc{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.team-searching, .team-not-found{ margin-top: 12px; font-size: 13.5px; color: var(--text-muted); }
.team-not-found p{ margin: 0 0 10px; line-height: 1.5; }
.copy-row{ display: flex; gap: 8px; }
.copy-row input{ flex: 1; min-width: 0; padding: 9px 10px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-family: var(--font-mono); font-size: 12.5px; }
.team-selected{ margin-top: 14px; padding: 12px; border-radius: 5px; border: 1px solid var(--border-soft); background: var(--bg); }
.team-selected .name{ font-weight: 600; color: var(--text); font-size: 14.5px; }
.team-selected .btn-row{ margin-top: 12px; }
.transfer-modal-row{ margin-top: 16px; padding-top: 0; border-top: none; }


/* ===================== tournaments.css (tournaments) ===================== */
body.page-tournaments h1, body.page-tournaments p{ margin: revert; text-wrap: revert; }
body.page-tournaments header{ position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
body.page-tournaments .wordmark{ font-size: 15px; }
body.page-tournaments .wordmark .dot{ font-size: revert; color: var(--accent); }
body.page-tournaments main{ padding: clamp(28px, 5vw, 48px) 0 64px; display: revert; justify-content: revert; }
body.page-tournaments .btn{ font-size: 14px; transition: background .15s ease, border-color .15s ease, transform .15s ease; white-space: nowrap; }
body.page-tournaments h1, body.page-tournaments h3, body.page-tournaments p{ margin: 0; text-wrap: balance; }
body.page-tournaments .meta-row{ font-size: 13px; }
.browse-layout{ display: flex; align-items: flex-start; gap: clamp(28px, 4vw, 48px); }
.browse-sidebar{ flex: 0 0 260px; width: 260px; display: flex; flex-direction: column; gap: 26px; /* Stays visible while the card list scrolls past it — 90px clears the sticky header (72px tall) plus a little breathing room. */ position: sticky; top: 90px; padding-bottom: 40px; }
.browse-main{ flex: 1 1 auto; min-width: 0; }
.page-title h1{ font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.01em; }
.page-title p{ margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.filter-bar{ display: flex; flex-direction: column; gap: 16px; padding-top: 4px; border-top: 1px solid var(--border-soft); }
.filter-field{ display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.filter-field:first-child{ margin-top: 20px; }
.filter-field span{ font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.filter-field select{ width: 100%; font-family: var(--font-body); font-size: 13.5px; color: var(--text); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 4px; padding: 9px 28px 9px 11px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239A9CAB' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; transition: border-color .15s ease, box-shadow .15s ease; }
.filter-field select:hover{ border-color: var(--text-muted); }
.filter-field select:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
.filter-clear{ align-self: flex-start; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--border); white-space: nowrap; }
.filter-clear:hover{ color: var(--accent); border-color: var(--accent); }
@media (max-width: 860px){
  .browse-layout{ flex-direction: column; }
  .browse-sidebar{ position: static; top: auto; width: 100%; flex: 1 1 auto; padding-bottom: 0; }
}
.results-toolbar{ display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 22px; }
.results-count{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.02em; }
.tournaments-grid{ display: flex; flex-direction: column; gap: 6px; }
.tournament-card{ background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: row; align-items: center; gap: 20px; padding: 10px 20px; border-radius: 8px; }
.tournament-name{ font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.003em; flex: 1 1 260px; min-width: 0; }
.tournament-meta{ display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 26px; flex: 2 1 auto; min-width: 0; }
@media (max-width: 700px){
  .tournament-card{ flex-direction: column; align-items: stretch; }
  .tournament-name{ flex-basis: auto; }
  .tournament-meta{ flex-direction: column; }
}
.card-actions{ display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: nowrap; margin-top: 0; padding-top: 2px; }
.tournament-name-link{ text-decoration: none; }
.tournament-name-link:hover{ color: var(--accent); }
.empty-state{ text-align: center; padding: 64px 20px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: 8px; }
.empty-state p{ font-size: 15px; }


/* ===================== verify.css (verify) ===================== */
body.page-verify main{ align-items: center; }
body.page-verify .btn-solid{ width: 100%; margin-top: 22px; }
body.page-verify .auth-card{ text-align: center; }
body.page-verify h1{ font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -0.005em; }
