@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Syne:wght@600;700&display=swap");
@import url("/assets/flags.css");
/* The Oval Office — component styles. Every colour, radius and shadow comes from tokens.json, so light, dark and the NC sub-brand all work by swapping tokens. */
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-background); line-height: 1.6; margin: 0; }

/* ── Sub-brand: Nations Championship. Wrap an NC page (or any block) in .brand-nc and every accent becomes amber. */
.brand-nc {
  --color-accent: var(--nc-accent);
  --color-accent-text: var(--nc-accent-text);
  --color-action: var(--nc-action);
  --color-action-hover: var(--nc-action-hover);
  --color-accent-soft: var(--nc-accent-soft);
  --color-accent-tint: var(--nc-tint);
  --color-accent-wash: var(--nc-tint);
  --color-highlight: var(--color-warning);
  --shadow-action: 0 4px 14px rgba(180, 83, 9, 0.3);
  --shadow-action-hover: 0 6px 20px rgba(180, 83, 9, 0.4);
}

/* ── Focus: one ring for every control */
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ── Buttons */
.btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: var(--radius-sm); border: none; font: 600 0.95rem/1.4 var(--font-body); text-decoration: none; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background: var(--color-action); color: var(--color-on-action); box-shadow: var(--shadow-action); }
.btn-primary:hover { background: var(--color-action-hover); transform: translateY(-2px); box-shadow: var(--shadow-action-hover); }
.btn-secondary { background: transparent; color: var(--color-text); border: 2px solid var(--color-secondary); }
.btn-secondary:hover { background: var(--color-secondary); color: var(--color-background); transform: translateY(-2px); }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; box-shadow: none; }
.see-more-btn { width: 100%; padding: 0.875rem; background: transparent; border: 2px dashed var(--color-text-muted); border-radius: var(--radius-md); color: var(--color-text); font: 700 0.95rem var(--font-body); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: all 0.3s ease; }
.see-more-btn:hover { background: var(--color-surface); border-color: var(--color-accent-text); color: var(--color-accent-text); }

/* ── Status badges (nav dropdown) */
.badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.3px; padding: 2px 7px; border-radius: var(--radius-2xl); color: var(--color-on-action); white-space: nowrap; }
.badge-complete, .badge-live { background: var(--color-success-fill); }
.badge-soon { background: var(--color-action); }
.badge-inprogress { background: var(--color-warning-fill); }
.badge-coming-soon { background: var(--color-neutral-fill); }

/* ── Tournament badges (cards) */
.tc-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: var(--radius-2xl); margin-bottom: 1rem; }
.tc-badge.done, .tc-badge.live { background: var(--color-success-tint); color: var(--color-success-on-tint); }
.tc-badge.soon { background: var(--color-orange-tint); color: var(--color-orange-text); }
.tc-badge.out { background: var(--color-border-subtle); color: var(--color-text-muted); }

/* ── Section header */
.section-label { display: inline-block; padding: 0.5rem 1rem; background: var(--color-accent-wash); color: var(--color-accent-text); border-radius: var(--radius-2xl); font-family: var(--font-label); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.section-header { text-align: center; }
.section-header h2 { font: 700 clamp(2rem, 4vw, 3rem)/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-primary); margin: 1rem 0; text-wrap: balance; }
.section-header p { font-size: 1.125rem; color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

/* ── Position badges. .pos-* are deprecated aliases kept for the team builder until it migrates. */
.position-badge { display: inline-flex; align-items: center; justify-content: center; padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.7rem; color: var(--color-on-action); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.position-prop, .pos-prop { background: var(--pos-prop); }
.position-hooker, .pos-hooker { background: var(--pos-hooker); }
.position-second-row, .pos-second-row { background: var(--pos-second-row); }
.position-back-row, .pos-back-row { background: var(--pos-back-row); }
.position-scrum-half, .pos-scrum-half { background: var(--pos-scrum-half); }
.position-fly-half, .pos-fly-half { background: var(--pos-fly-half); }
.position-centre, .pos-centre { background: var(--pos-centre); }
.position-back-three, .pos-back-three { background: var(--pos-back-three); }
.position-badge.is-sm { padding: 0.2rem 0.5rem; font-size: 0.62rem; }

/* ── Pill tabs */
.tabs-pill { display: inline-flex; background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-1); gap: var(--space-1); max-width: 100%; overflow-x: auto; }
.tab-pill { padding: 12px 24px; border: none; background: transparent; color: var(--color-text-muted); font: 600 0.95rem var(--font-body); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.tab-pill:hover { color: var(--color-accent-text); }
.tab-pill.active, .tab-pill[aria-selected="true"] { background: var(--color-raised); color: var(--color-accent-text); box-shadow: var(--shadow-tab); }

/* ── Player card */
.player-card { background: var(--color-raised); border-radius: var(--radius-xl); padding: 1.75rem; border: 1px solid var(--color-hairline); position: relative; overflow: hidden; transition: all 0.3s ease; }
.player-card::before { content: ""; position: absolute; inset: 0 0 auto; height: var(--stripe-card); background: linear-gradient(90deg, var(--color-accent), var(--color-highlight)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.player-card::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; }
.player-card.rank-1::after { background: var(--medal-gold); }
.player-card.rank-2::after { background: var(--medal-silver); }
.player-card.rank-3::after { background: var(--medal-bronze); }
.player-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--color-accent-soft); }
.player-card:hover::before { transform: scaleX(1); }
.player-card .position-badge { margin-bottom: 0.75rem; }
.player-info { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.player-card .player-name { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.player-card .player-name .flag { width: 28px; height: 19px; }
.player-card .player-name .name { font-weight: 600; font-size: 1.125rem; color: var(--color-text); }
.player-points { font: 700 2rem/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-accent); text-align: right; font-variant-numeric: tabular-nums; }
.player-points-label { display: block; font: 500 0.75rem var(--font-body); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Tournament card */
.tournament-card { background: var(--color-raised); border: var(--border-card) solid var(--color-border); border-radius: var(--radius-xl); padding: 2rem; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; }
.tournament-card::before { content: ""; position: absolute; inset: 0 0 auto; height: var(--stripe-card); }
.tournament-card.six-nations::before, .tournament-card.completed::before { background: linear-gradient(90deg, var(--tournament-six-nations), var(--tournament-six-nations-end)); }
.tournament-card.nations-championship::before, .tournament-card.upcoming::before { background: linear-gradient(90deg, var(--tournament-nc), var(--tournament-nc-end)); }
.tournament-card:hover { border-color: var(--color-accent-soft); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.tournament-card h3 { font: 700 1.4rem/1.3 var(--font-display); color: var(--color-primary); margin: 0 0 0.5rem; }
.tournament-card p { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0 0 1.5rem; flex-grow: 1; }
.tc-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; }
.tc-link { padding: 0.6rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: all 0.2s; }
.tc-link.primary { background: var(--color-action); color: var(--color-on-action); }
.tc-link.primary:hover { background: var(--color-action-hover); }
.tc-link.secondary { background: var(--color-border-subtle); color: var(--color-text); }
.tc-link.secondary:hover { background: var(--color-border); }
.tc-link.ghost { color: var(--color-accent-text); display: flex; align-items: center; gap: 0.3rem; padding-inline: 0; }

/* ── Market Watch */
.price-movers-card { background: var(--color-raised); border-radius: var(--radius-2xl); padding: 2rem; box-shadow: var(--shadow-panel); position: relative; overflow: hidden; }
.price-movers-card::before { content: ""; position: absolute; inset: 0 0 auto; height: var(--stripe-panel); }
.price-movers-card.risers::before { background: var(--color-success); }
.price-movers-card.fallers::before { background: var(--color-danger); }
.price-movers-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.price-movers-header .emoji-icon { font-size: 2.5rem; line-height: 1; }
.price-movers-header h3 { font: 700 1.75rem/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-primary); margin: 0; }
.price-movers-list { display: flex; flex-direction: column; gap: 0.75rem; }
.price-mover-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--color-surface); border-radius: var(--radius-lg); transition: all 0.3s ease; }
.price-mover-row:hover { transform: translateX(5px); box-shadow: var(--shadow-tab); }
.player-info-mover { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.player-info-mover .flag { width: 22px; height: 15px; }
.player-name-mover { font-weight: 700; color: var(--color-text); }
.price-info { display: flex; align-items: center; gap: 1rem; font-variant-numeric: tabular-nums; }
.current-price { font-weight: 700; color: var(--color-text-muted); }
.price-change { font: 700 1.125rem/1.15 var(--font-display); letter-spacing: -0.01em; padding: 0.375rem 0.75rem; border-radius: var(--radius-sm); }
.risers .price-change { color: var(--color-success-text); background: var(--color-success-tint); }
.fallers .price-change { color: var(--color-danger-text); background: var(--color-danger-tint); }

/* ── Stats table */
.stats-table-wrap { background: var(--color-raised); border-radius: var(--radius-xl); box-shadow: var(--shadow-panel); overflow-x: auto; border: 1px solid var(--color-hairline); }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.stats-table th { position: sticky; top: 0; background: var(--color-surface); color: var(--color-text-muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 0.85rem 1rem; white-space: nowrap; }
.stats-table th[aria-sort] { color: var(--color-accent-text); }
.stats-table th button { all: unset; cursor: pointer; }
.stats-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--color-border); color: var(--color-text); white-space: nowrap; }
.stats-table .num { text-align: right; }
.stats-table .rank { color: var(--color-text-muted); width: 2.5rem; }
.stats-table tbody tr:hover { background: var(--color-accent-tint); }
.stats-table .player { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.stats-table .key { font-weight: 700; color: var(--color-accent-text); }

/* ── Blog card */
.blog-article-card { background: var(--color-raised); border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-hairline); transition: all 0.3s ease; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--color-accent-soft); }
.blog-article-image { height: 200px; background: linear-gradient(135deg, var(--color-accent), var(--color-highlight)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-article-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-article-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-article-date { font-size: 0.875rem; color: var(--color-accent-text); font-weight: 600; margin-bottom: 0.5rem; }
.blog-article-title { font: 700 1.25rem/1.3 var(--font-display); color: var(--color-primary); margin: 0 0 0.75rem; }
.blog-article-excerpt { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1rem; flex: 1; }
.blog-article-link { color: var(--color-accent-text); font-weight: 600; display: inline-flex; gap: 0.5rem; transition: gap 0.3s ease; }
.blog-article-card:hover .blog-article-link { gap: 0.75rem; }

/* ── Newsletter block */
.newsletter-block { background: var(--color-raised); border: 1px solid var(--color-hairline); border-radius: var(--radius-2xl); padding: 2.5rem; text-align: center; box-shadow: var(--shadow-panel); }
.newsletter-block h2 { font: 700 2rem/1.2 var(--font-display); color: var(--color-primary); margin: 0 0 0.5rem; }
.newsletter-block p { color: var(--color-text-muted); font-size: 1.125rem; margin: 0 auto 1.5rem; max-width: 520px; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form .input { flex: 1 1 220px; }
.newsletter-note { font-size: 0.85rem !important; margin: 0.75rem 0 0 !important; }

/* ── Inputs */
.input { width: 100%; box-sizing: border-box; padding: 12px 16px; border: var(--border-card) solid var(--color-border); border-radius: var(--radius-md); font: 400 0.95rem var(--font-body); color: var(--color-text); background: var(--color-raised); transition: border-color 0.2s; }
.input::placeholder { color: var(--color-text-muted); opacity: 0.8; }
.input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-wash); }
.input[aria-invalid="true"] { border-color: var(--color-danger-text); }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--color-text); margin-bottom: 6px; }
.form-error { color: var(--color-danger-text); font-size: 0.85rem; margin-top: 6px; }

/* ── Header and nav */
.site-header { background: var(--color-header-glass); backdrop-filter: blur(20px); border-bottom: 1px solid var(--color-hairline); }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 2rem; }
.nav-links { display: flex; gap: 0.85rem; align-items: center; }
.site-header .logo img { width: 180px; height: auto; }
.nav-link { color: var(--color-text-muted); font-weight: 500; font-size: 0.88rem; text-decoration: none; position: relative; transition: color 0.3s ease; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--color-accent-text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown > .nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 16px; z-index: 1000; }
.nav-dropdown:hover > .nav-dropdown-menu, .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
.nav-dropdown-menu { background: var(--color-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-dropdown); min-width: 260px; padding: 8px; border: 1px solid var(--color-hairline); }
.nav-dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--color-text); text-decoration: none; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; transition: background 0.2s; white-space: nowrap; }
.nav-dropdown-item:hover { background: var(--color-surface); }
.nav-item-disabled { opacity: 0.65; cursor: default; }
.nav-dropdown-divider { height: 1px; background: var(--color-border-subtle); margin: 4px 8px; }
/* Mobile menu (☰ button and panel are added by /assets/js/nav.js) */
.nav-menu-toggle { display: none; }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 80px); overflow-y: auto; background: var(--color-raised); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-dropdown); padding: 0.75rem 1rem 1.25rem; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0.8rem 0.75rem; border-radius: var(--radius-sm); color: var(--color-text); font-weight: 600; text-decoration: none; }
.mobile-menu-link:hover { background: var(--color-surface); }
.mobile-menu-link.active { color: var(--color-accent-text); }
.mobile-menu-group { border-top: 1px solid var(--color-border-subtle); margin-top: 0.5rem; padding-top: 0.5rem; }
.mobile-menu-group .mobile-menu-link { font-weight: 500; }
.mobile-menu-divider { border-top: 1px solid var(--color-border-subtle); margin: 0.5rem 0; }
.mobile-menu-heading { margin: 0.5rem 0.75rem 0.25rem; font-family: var(--font-label); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
.mobile-menu-theme { display: none; align-items: center; justify-content: space-between; border-top: 1px solid var(--color-border-subtle); margin-top: 0.5rem; padding: 0.75rem 0.75rem 0; font-weight: 600; }
/* Below 1024px the text links move into the menu */
@media (min-width: 1024px) and (max-width: 1240px) {
  .site-header .logo img { width: 132px; }
  .site-header .nav-links { gap: 0.4rem; }
  .site-header .nav-link { font-size: 0.76rem; }
  .site-header nav.site-nav { padding: 1rem 0.85rem; }
  .site-header .nav-links .btn { padding: 0.5rem 0.65rem; font-size: 0.78rem; }
}
.page-crumbs { margin: 0 0 1rem; }
.page-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.35rem; font-size: 0.9rem; }
.page-crumbs a { color: var(--color-text-muted); text-decoration: none; }
.page-crumbs a:hover { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.page-crumbs .sep { color: var(--color-text-subtle); }
.page-crumbs [aria-current] { color: var(--color-text); font-weight: 600; }
.page-hero .page-crumbs { max-width: 900px; margin: 0 auto 1.1rem; }
.page-hero .page-crumbs ol { justify-content: center; }
.page-hero .page-crumbs a, .page-hero .page-crumbs .sep { color: var(--color-on-footer-muted); }
.page-hero .page-crumbs a:hover { color: var(--color-on-footer); }
.page-hero .page-crumbs [aria-current] { color: var(--color-on-footer); }
.pillar-up { margin: 0.75rem 0 0; font-size: 0.95rem; }
.pillar-up a { color: var(--color-accent-text); font-weight: 600; }
.page-hero .pillar-up a { color: var(--color-on-footer); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .site-header .nav-links > .nav-link, .site-header .nav-links > .nav-dropdown { display: none; }
  .site-header .nav-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-raised); color: var(--color-text); font-size: 1.1rem; cursor: pointer; }
  .site-header .nav-menu-toggle:hover, .site-header .nav-menu-toggle[aria-expanded="true"] { color: var(--color-accent-text); border-color: var(--color-accent-soft); }
}
/* Phones: logo, Join League and ☰ in the bar; the theme switch moves into the menu */
@media (max-width: 480px) {
  .site-header nav.site-nav { padding: 1rem; gap: 0.5rem; }
  .site-header .logo img { width: 150px; height: auto; }
  .site-header .nav-links { gap: 0.5rem; }
  .site-header .nav-links .btn { padding: 0.55rem 0.9rem; font-size: 0.875rem; white-space: nowrap; }
  .site-header .nav-links > .theme-toggle { display: none; }
  .site-header .nav-menu-toggle { width: 36px; height: 36px; }
  .mobile-menu-theme { display: flex; }
  .tournament-card h3 { font-size: 1.15rem; }
}
:root img.logo-dark { display: none; }
:root[data-theme="dark"] img.logo-light { display: none; }
:root[data-theme="dark"] img.logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.logo-light { display: none; }
  :root:not([data-theme="light"]) img.logo-dark { display: block; }
}

/* ── Footer */
.site-footer { background: var(--color-footer); color: var(--color-on-footer); padding: 4rem 2rem 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand h3 { font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -0.01em; margin: 0 0 0.75rem; }
.footer-brand p, .footer-link { color: var(--color-on-footer-muted); }
.footer-brand p { line-height: 1.7; max-width: 400px; margin: 0; }
.footer-section h4 { font: 600 1.125rem var(--font-display); margin: 0 0 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { text-decoration: none; font-size: 0.95rem; transition: color 0.3s ease; }
.footer-link:hover { color: var(--color-on-footer); }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-link { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-on-footer) 10%, transparent); border-radius: var(--radius-sm); color: var(--color-on-footer); transition: all 0.3s ease; }
.social-link:hover { background: var(--color-action); transform: translateY(-2px); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-on-footer) 10%, transparent); text-align: center; color: var(--color-on-footer-muted); font-size: 0.875rem; }
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Modal */
.notify-modal { background: var(--color-raised); border-radius: var(--radius-2xl); padding: 2.5rem; max-width: 460px; box-sizing: border-box; position: relative; box-shadow: var(--shadow-modal); }
.notify-modal h3 { font: 700 1.6rem/1.15 var(--font-display); letter-spacing: -0.01em; color: var(--color-primary); margin: 0 0 0.4rem; }
.notify-modal .modal-sub { color: var(--color-text-muted); font-size: 0.95rem; margin: 0 0 1.5rem; }
.notify-modal-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border: none; border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text-muted); font-size: 1.1rem; cursor: pointer; }
.notify-checkbox-label { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0; color: var(--color-text); font-size: 0.95rem; cursor: pointer; }
.notify-checkbox-label input { accent-color: var(--color-action); width: 18px; height: 18px; }
.notify-submit-btn { width: 100%; margin-top: 1rem; }

/* ── Team of the Week social graphic (1080 × 1350, always navy) */
.totw { width: 1080px; height: 1350px; box-sizing: border-box; padding: 64px; background: var(--graphic-ground); color: #fff; font-family: var(--font-body); display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.totw-head { display: flex; justify-content: space-between; align-items: flex-end; }
.totw-eyebrow { font: 700 22px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: #c4b5fd; margin: 0 0 8px; }
.totw-title { font: 700 64px/1.15 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.totw-total { text-align: right; font: 700 72px/1.15 var(--font-display); letter-spacing: -0.01em; color: #c4b5fd; }
.totw-total small { display: block; font: 600 18px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-top: 6px; }
.totw-pitch { flex: 1; position: relative; background: var(--graphic-pitch); border-radius: var(--radius-2xl); border: 2px solid var(--graphic-line); padding: 36px 24px; display: flex; flex-direction: column; justify-content: space-between; background-image: linear-gradient(var(--graphic-line), var(--graphic-line)), linear-gradient(var(--graphic-line), var(--graphic-line)); background-size: 100% 2px, 100% 2px; background-position: 0 33%, 0 66%; background-repeat: no-repeat; }
.totw-row { display: flex; justify-content: center; gap: 20px; }
.totw-player { width: 168px; background: var(--graphic-card); border-radius: var(--radius-xl); padding: 14px 12px 12px; text-align: center; position: relative; border: 1px solid rgba(255, 255, 255, 0.08); }
.totw-player .flag { width: 36px; height: 25px; line-height: 1; }
.totw-player .name { font: 700 20px/1.2 var(--font-body); margin: 6px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.totw-player .pts { font: 700 28px/1.15 var(--font-display); letter-spacing: -0.01em; margin-top: 8px; }
.totw-player.is-top { box-shadow: var(--shadow-top-scorer); border-color: transparent; }
.totw-captain { position: absolute; top: -12px; right: -12px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--graphic-ground); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.totw-foot { display: flex; justify-content: space-between; align-items: center; }
.totw-sub { display: flex; align-items: center; gap: 20px; }
.totw-sub-label { font: 700 18px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.totw-sub .totw-player { border: 2px dashed #c4b5fd; }
.totw-brand { font: 800 26px/1.05 var(--font-display); text-align: right; letter-spacing: -0.01em; }
.totw-brand span { display: block; font: 500 18px var(--font-body); color: rgba(255, 255, 255, 0.7); letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .spinner, [class*="spinner"], [class*="loading"] { animation-duration: 1.5s !important; animation-iteration-count: infinite !important; }
  .btn:hover, .player-card:hover, .tournament-card:hover, .blog-article-card:hover, .price-mover-row:hover { transform: none; }
}

/* ── Theme toggle (header) */
.theme-toggle { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-raised); color: var(--color-text-muted); font-size: 1.05rem; cursor: pointer; transition: all 0.3s ease; flex-shrink: 0; }
.theme-toggle:hover { color: var(--color-accent-text); border-color: var(--color-accent-soft); }
