/* Shared presentation layer. Reuses the existing shell, cards and controls.
   Loaded after the legacy inline CSS so no preflight or application logic changes are needed.
   Palette and hierarchy reference: NFL Survivor Pool src/styles/app.css. */
:root { --paper-soft:var(--brand-canvas); --line:#d8e2ec; --ink:#172033; --ink-soft:#526478; --shadow-md:0 3px 12px rgb(18 56 79 / 5%); }
body { font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:linear-gradient(180deg,#f8fafc,var(--brand-canvas) 28rem); }
.page-shell { max-width:1360px; }
.page-shell > .container { background:transparent; box-shadow:none; border:0; overflow:visible; }
.container > .header { background:linear-gradient(118deg,var(--brand-navy),var(--brand-navy) 58%,var(--brand-navy)); border:0; border-radius:16px 16px 0 0; padding:22px 28px; box-shadow:none; }
.container > .header::before,.container > .header::after { display:none; }
.header .header-logo-wrap { width:64px; min-width:64px; height:64px; }
.header h1 { color:#fff; font-size:1.65rem; letter-spacing:-.035em; }
.header p { color:#c8d8e6; font-size:.9rem; font-weight:500; }
.header .header-sport-marks { display:none; }
.header .auth-user-bar { color:#d6e3ed; }
.header .auth-user-actions button { color:#fff; background:#ffffff12; border-color:#ffffff45; box-shadow:none; }
.container > .tabs { border:1px solid var(--line); border-top:0; background:#fff; padding:8px; gap:4px; box-shadow:none; }
.container > .tabs .tab { background:transparent; border:0; border-radius:8px; font-weight:650; padding:10px 14px; box-shadow:none; min-width:0; }
.container > .tabs .tab.active { color:#fff; background:var(--brand-navy); box-shadow:none; }
.container > .tabs .tab.active::after { display:none; }
.container > .tab-content { padding:24px 0; }
.section { border-radius:14px; padding:24px; box-shadow:var(--shadow-md); }
.section::before { display:none; }
.section h2 { letter-spacing:-.035em; font-weight:750; color:#172033; }
.dashboard-header-copy > p,.section > p { font-weight:450; line-height:1.55; }
.btn { border-radius:9px; background:var(--brand-navy); box-shadow:none; font-weight:650; transition:background .15s ease,box-shadow .15s ease; }
.btn:hover { background:#1d4f73; box-shadow:none; transform:none; }
.btn-secondary { background:#fff; color:var(--brand-navy); border:1px solid #bdcddd; }
.btn-secondary:hover { background:#edf3f8; color:var(--brand-navy); }
.btn:disabled { opacity:.55; cursor:not-allowed; }
:is(button,a,input,select,textarea):focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
.home-dashboard-shell .home-dashboard-card { border-radius:12px; box-shadow:none; }
.home-dashboard-shell .home-dashboard-card > p { font-weight:450; }
.home-dashboard-event-row { overflow:hidden; border-radius:12px; }
.home-dashboard-event-row:has(.event-artwork.has-artwork) { display:grid; grid-template-columns:60px minmax(0,1fr); gap:14px; padding:0 16px 16px; align-items:center; background:#fff; }
.home-dashboard-event-row .event-artwork { grid-column:1 / -1; margin:0 -16px; width:calc(100% + 32px); }
.event-artwork { overflow:hidden; border-radius:10px; margin:0; background:#edf3f8; }
.event-artwork[hidden] { display:none; }
.event-artwork img { display:block; width:100%; height:auto; aspect-ratio:5 / 1; object-fit:contain; background:#082f49; }
.home-dashboard-event-row .event-artwork img { border-radius:10px 10px 0 0; }
.home-dashboard-event-title { font-size:1.1rem; line-height:1.3; font-weight:750; }
.home-dashboard-event-summary { font-weight:500; font-size:.88rem; line-height:1.45; }
.home-dashboard-shell .home-card-link { box-shadow:none; font-weight:650; }
.home-dashboard-shell .home-quick-links { gap:8px; }
.home-dashboard-shell .home-carryover-card { background:#fffaf0; box-shadow:none; }
.draft-board-shell { border-radius:12px; box-shadow:none; }
.draft-board-header .event-artwork { max-width:520px; margin-bottom:16px; }
.draft-board-header h3 { font-size:1.3rem; letter-spacing:-.025em; }
.draft-board-header p { font-weight:450; line-height:1.5; }
.draft-board-pick-row { box-shadow:none; }
.live-event-summary { flex-wrap:wrap; border-radius:12px; box-shadow:none; }
.live-event-summary > .event-artwork { flex-basis:100%; max-width:520px; }
.results-weekly-workflow-panel { border-radius:12px; background:#f5faf8; }
.ai-recap-panel { background:#fff; border-radius:12px; }
.section-subtabs { gap:6px; }
.section-subtab { border-radius:8px; box-shadow:none; }
.app-credit { background:transparent; border-top:1px solid var(--line); padding:20px; }
.brand-watermark { display:none !important; }
@media (min-width:901px) {
  .container > .tabs { border-radius:0 0 12px 12px; }
  .home-dashboard-event-list { gap:16px; }
}
@media (max-width:900px) {
  body { background:var(--brand-canvas); }
  .container > .tab-content { padding:12px 0; }
  .section { padding:16px; border-radius:12px; }
  .section h2 { font-size:1.45rem; }
  .home-dashboard-event-row:has(.event-artwork.has-artwork) { grid-template-columns:44px minmax(0,1fr); padding:0 12px 12px; gap:12px; }
  .home-dashboard-event-row .event-artwork { margin:0 -12px; width:calc(100% + 24px); }
  .home-dashboard-event-title { font-size:1.05rem; }
  .home-dashboard-event-row:has(.event-artwork.has-artwork) .home-dashboard-event-logo-badge { width:44px; min-width:44px; height:44px; }
  .app-mobile-nav { border-color:var(--line); box-shadow:0 2px 8px rgb(18 56 79 / 5%); }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .btn { transition:none; } }

.live-tools { margin:12px 0; border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
.live-tools > summary { cursor:pointer; color:var(--ink-soft); font-size:.85rem; font-weight:650; }
.live-tools[open] > summary { margin-bottom:10px; }
/* Match the existing daisyUI cards, badges and stat components to the Survivor palette. */
:root {
  --color-base-100:#fff; --color-base-200:var(--brand-canvas); --color-base-300:#d8e2ec; --color-base-content:#172033;
  --color-primary:var(--brand-navy); --color-primary-content:#fff;
  --color-secondary:#2563eb; --color-secondary-content:#fff;
  --color-accent:#e5b642; --color-accent-content:#291b00;
  --color-neutral:#314155; --color-neutral-content:#fff;
  --color-success:#1f7a4f; --color-success-content:#fff;
  --color-warning:#e5b642; --color-warning-content:#291b00;
  --color-error:#dc3d45; --color-error-content:#fff;
}
.btn.btn-danger { background:#b42332; border-color:#b42332; color:#fff; }
.btn.btn-danger:hover { background:#8f1d29; border-color:#8f1d29; }

/* Round two: hierarchy and density, not another visual skin. */
.home-next-action { display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid #cbdce8; border-left:4px solid #2563eb; border-radius:12px; padding:18px 20px; background:#f7faff; }
.home-next-action h3 { margin:0; color:var(--brand-navy); font-size:1.22rem; letter-spacing:-.025em; }
.home-next-action p { margin-top:5px; color:#526478; font-size:.9rem; line-height:1.45; font-weight:450; }
.home-next-action > a { flex-shrink:0; white-space:nowrap; text-decoration:none; display:inline-flex; gap:12px; align-items:center; min-height:44px; }
#home .home-dashboard-hero { background:none; padding:0; border:0; box-shadow:none; }
#home .home-dashboard-hero-main { padding:0; background:none; border:0; box-shadow:none; }
#home .home-dashboard-eyebrow { margin:4px 0 10px; color:#526478; font-size:.72rem; letter-spacing:.07em; }
#home .home-dashboard-event-row { box-shadow:none; }
#home .home-week-stat-grid { margin-top:12px; gap:0; border:1px solid var(--line); border-radius:9px; padding:10px 0; background:#f8fafc; }
#home .home-week-stat { border:0; border-radius:0; box-shadow:none; padding:4px 14px; background:none; }
#home .home-week-stat + .home-week-stat { border-left:1px solid var(--line); }
#home .home-dashboard-card-header h3 { font-size:.86rem; font-weight:700; }
#home .home-picks-actions { padding-top:8px; }
#home .home-picks-actions .home-card-link { font-size:.8rem; }
#live .live-event-summary { padding:14px; gap:9px; }
#live .live-event-summary-main { display:grid; grid-template-columns:44px minmax(0,1fr); gap:10px; align-items:center; }
#live .live-event-logo { width:40px; min-width:40px; height:40px; background:#fff; }
#live .live-event-title { font-size:1.08rem; font-weight:750; line-height:1.3; margin:0; }
#live .live-event-kicker { font-size:.63rem; letter-spacing:.07em; margin-bottom:3px; }
#live .live-event-meta { margin-top:5px; font-weight:550; font-size:.76rem; }
#live .live-event-last-updated { font-weight:500; font-size:.74rem; }
#live .live-event-summary > .event-artwork { max-width:none; }
#live .live-tools { display:inline-block; margin:8px 6px 8px 0; padding:7px 10px; border:0; background:var(--brand-canvas); }
#live .live-tools[open] { display:block; padding:12px; border:1px solid var(--line); }
#live .live-v25-personal { padding:18px; border-left:1px solid var(--line); border-radius:12px; box-shadow:none; }
#live .live-v25-personal > .live-v25-section-heading { padding:0 0 12px; }
#live .live-v25-section-heading p { font-weight:450; }
#live .live-v25-team-pulse { margin-bottom:14px; background:#f5f9fc; border-radius:10px; }
#live .live-v25-team-pulse strong { font-weight:750; font-variant-numeric:tabular-nums; }
#live .live-v25-rank-snapshot { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
#live .live-v25-rank-heading h4 { font-weight:700; }
#live .live-v25-rank-group { box-shadow:none; background:#fff; }
#live .live-v25-pick-card { box-shadow:none; border-radius:10px; }
#live .live-v25-pool-context { font-weight:500; line-height:1.5; }
.draft-board-details { margin:0 0 14px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.draft-board-details > summary { cursor:pointer; color:#526478; font-size:.8rem; font-weight:600; }
.draft-board-details[open] .draft-board-status-grid { margin-top:10px; }
.draft-board-shell > .draft-board-status-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.draft-board-status-card { box-shadow:none; }
.draft-board-pick-row { border:1px solid var(--line); border-radius:9px; }
@media(max-width:900px) {
 .home-next-action { align-items:stretch; flex-direction:column; padding:15px; gap:14px; }
 .home-next-action > a { justify-content:space-between; }
 #home .home-week-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 #home .home-week-stat { padding:4px 9px; }
 #home .home-week-stat span { font-size:.61rem; }
 #home .home-week-stat strong { font-size:.76rem; line-height:1.4; }
 #live .live-v25-personal { padding:14px; }
 #live .live-v25-pick-name { font-size:1rem; }
 .draft-board-shell > .draft-board-status-grid .draft-board-status-label { font-size:.6rem; }
 .draft-board-shell > .draft-board-status-grid .draft-board-status-value { font-size:.82rem; }
 .draft-board-header p { font-size:.82rem; }
}
#live .live-v25-rank-disclosure { margin-top:18px; border-top:1px solid var(--line); padding-top:14px; }
#live .live-v25-rank-disclosure > summary { color:var(--brand-navy); cursor:pointer; font-size:.94rem; font-weight:700; }
#live .live-v25-rank-disclosure > summary span { display:inline-block; margin-left:8px; color:#526478; font-size:.76rem; font-weight:450; }
#live .live-v25-rank-disclosure .live-v25-rank-snapshot { border:0; margin-top:10px; padding-top:0; }
#live .live-v25-rank-owner { font-size:.82rem; }
#live .live-v25-rank-competitor { font-size:.75rem; line-height:1.4; }
#live .live-v25-pick-metrics small { font-size:.7rem; line-height:1.4; }
#live .live-v25-pick-metrics b { font-size:.88rem; line-height:1.4; }
@media(max-width:600px) {
 #live .live-v25-rank-snapshot { grid-template-columns:minmax(0,1fr); }
 #live .live-v25-rank-item { min-height:44px; }
 #live .live-v25-rank-competitor { font-size:.78rem; }
 #live .live-v25-rank-disclosure > summary span { display:block; margin:5px 0 0 18px; }
}
#results .results-header { align-items:flex-start; gap:18px; margin:16px 0; }
#results .results-header p { max-width:60ch; font-weight:450; line-height:1.5; font-size:.9rem; }
#results .major-toggle-card { box-shadow:none; padding:12px 14px; }
#results #adminSavedWeekControls { display:flex; align-items:center; flex-wrap:wrap; gap:18px; padding:12px; background:#f8fafc; box-shadow:none; }
#results #adminSavedWeekControls .weekly-results-meta { border:0; background:none; box-shadow:none; padding:0; }
#results #adminSavedWeekControls label { flex:1; min-width:180px; }
#results #adminSavedWeekControls .weekly-results-meta:not(label) { flex:0 1 auto; font-size:.8rem; }
#results #adminSavedWeekStatus { font-size:.76rem; }
#results #endOfWeekResultsWorkflowPanel { margin-top:12px; padding:18px; }
@media(max-width:900px) {
 #results .results-header { display:block; }
 #results .major-toggle-card { margin-top:12px; padding:10px 12px; }
 #results .major-toggle-card label span { font-size:.85rem !important; }
 #results .major-toggle-card > div { font-size:.75rem !important; }
 #results #adminSavedWeekControls { gap:10px; }
}
.home-my-picks-card[data-has-picks="false"] .home-picks-actions { display:none; }
.event-artwork { background:#eaf1f7; }
.event-artwork img { background:transparent; }
#home .home-my-picks-card { background:#fff; }
#live .live-v25-rank-disclosure > summary,.draft-board-details > summary { min-height:44px; padding:10px 0; }
/* Wide provider banners contain embedded type that fails at card/mobile sizes.
   Event identity is always readable HTML; retain banners only in the asset library. */
#home .event-artwork,#live .event-artwork,#draft .event-artwork { display:none !important; }
#home .home-dashboard-event-row:has(.event-artwork.has-artwork) { display:grid; grid-template-columns:52px minmax(0,1fr); padding:18px; gap:14px; align-items:start; }
#home .home-dashboard-event-title { font-size:1.3rem; line-height:1.3; letter-spacing:-.02em; }
#home .home-dashboard-event-summary { margin-top:7px; font-size:.88rem; }
#live .live-event-title { font-size:1.2rem; line-height:1.3; }
@media(max-width:900px) {
 #home .home-dashboard-event-row:has(.event-artwork.has-artwork) { grid-template-columns:40px minmax(0,1fr); padding:14px; gap:12px; }
 #home .home-dashboard-event-title { font-size:1.18rem; }
}

/* Draft Pool identity: original vector marks, editorial sports type, real event text. */
@font-face { font-family:"Draft Display"; src:url('/fonts/BarlowCondensed-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:swap; }
.header h1 { font-family:"Draft Display",Impact,sans-serif; font-size:2.4rem; font-weight:700; text-transform:uppercase; letter-spacing:.02em; line-height:1; }
.header p { letter-spacing:.13em; font-size:.65rem; margin-top:8px; }
.header .header-logo { filter:none; }
.header .header-logo-wrap { width:52px; min-width:52px; height:52px; }
.container > .header { background:var(--brand-navy); }
.container > .tabs .tab.active { background:var(--brand-tint); color:var(--brand-navy); border-bottom:3px solid var(--brand-blue); }
#home .home-season-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,auto); align-items:center; gap:24px; padding:24px 28px; border-radius:16px; background:var(--brand-navy) url('/assets/sports/hero-lines.svg') center / cover; color:#fff; overflow:hidden; }
#home .home-season-hero .dashboard-header { margin:0; }
#home .home-league-edition { display:block; color:var(--brand-on-dark); font-size:.68rem; letter-spacing:.2em; font-weight:750; margin-bottom:12px; }
#home .home-season-hero h2 { font-family:"Draft Display",Impact,sans-serif; font-size:clamp(2.25rem,4vw,3.6rem); font-weight:700; line-height:1; letter-spacing:-.01em; color:#fff; }
#home .home-season-hero .dashboard-header p { color:#c6d4d9; font-size:.87rem; margin-top:14px; font-weight:450; }
#home .home-season-hero .home-next-action { display:block; border:0; padding:0; background:none; }
#home .home-season-hero [data-home-hero-status] { color:var(--brand-on-dark); }
#home .home-week-navigation { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; padding:6px; background:#fff; border:1px solid var(--brand-line); border-radius:12px; }
#home .home-week-navigation a { min-height:44px; display:grid; place-items:center; padding:6px; border:0; border-radius:7px; text-align:center; color:var(--brand-navy); text-decoration:none; }
#home .home-week-navigation a:hover,#home .home-week-navigation a:focus-visible { background:var(--brand-tint); color:var(--brand-blue); }
#home .home-commissioner { border-left:3px solid var(--brand-blue); padding:14px 18px; }
#home .home-commissioner-next { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 16px; }
#home .home-commissioner-next span { color:var(--brand-muted); font-size:.75rem; font-weight:700; }
#home .home-commissioner-next h3 { margin:2px 0 0; font-size:1rem; }
#home .home-commissioner summary { display:list-item; width:fit-content; min-height:44px; align-content:center; color:var(--brand-navy); cursor:pointer; }
#home .home-commissioner-next a { min-height:44px; }
#home .home-season-hero .home-next-action h3 { color:#fff; font-size:1.15rem; }
#home .home-season-hero .home-next-action p { color:#c6d4d9; font-size:.85rem; margin:7px 0 18px; }
#home .home-season-hero .home-next-action .btn { display:flex; justify-content:space-between; background:var(--brand-blue); border:1px solid var(--brand-blue); color:#fff; font-weight:750; padding:12px 16px; }
#home .home-season-hero .home-next-action .btn:hover { background:var(--brand-blue-hover); }
#home .home-dashboard-event-row,#home .home-dashboard-event-row:has(.event-artwork.has-artwork) { display:grid; grid-template-columns:52px minmax(0,1fr); align-items:start; gap:16px; padding:20px; border-radius:12px; background:var(--brand-tint); border:1px solid var(--brand-line); border-top:3px solid var(--brand-blue); }
#home .home-dashboard-event-row[data-home-live-sport="nascar"] { border-color:var(--brand-line); border-top-color:var(--brand-blue); background:var(--brand-tint); }
#home .home-dashboard-event-logo-badge { width:52px; min-width:52px; height:52px; padding:0; border:0; background:none; box-shadow:none; }
#home .home-dashboard-event-logo { width:52px; height:52px; max-width:none; max-height:none; object-fit:contain; }
.home-event-category { display:block; color:#526478; font-size:.65rem; letter-spacing:.14em; font-weight:750; text-transform:uppercase; margin-bottom:6px; }
#home .home-dashboard-event-title { display:block; font-size:1.45rem; font-weight:750; line-height:1.2; letter-spacing:-.03em; overflow:visible; white-space:normal; }
#home .home-my-picks-card { border:1px solid #cbd8e1; padding:20px; }
#home .home-pick-heading { margin-bottom:10px; }
#home .home-pick-group .player-pick-list > li { background:#f7f9fb; border:0; border-radius:8px; padding:10px 12px; }
#home .home-my-picks-card .home-dashboard-card-header h3 { font-family:"Draft Display",Impact,sans-serif; font-size:1.5rem; letter-spacing:.025em; text-transform:uppercase; }
#live .live-event-logo { padding:0; border:0; background:none; }
#live .live-event-logo img { width:40px; height:40px; max-width:40px; max-height:40px; }
#live .live-event-title { font-size:1.3rem; font-weight:750; }
#live .live-v25-section-heading strong { font-family:"Draft Display",Impact,sans-serif; font-size:1.8rem; letter-spacing:.01em; }
#live .live-v25-team-pulse strong { font-family:"Draft Display",Impact,sans-serif; font-size:2rem; }
#live .live-v25-personal { border-top:3px solid var(--brand-blue); }
.sport-inline-logo,.sport-inline-logo.nascar-logo-mark { width:20px; height:20px; max-width:20px; max-height:20px; object-fit:contain; }
.tab-logo-mark { object-fit:contain; }
.tab-label .tab-logo-mark { width:24px; height:24px; max-width:24px; max-height:24px; }
@media(max-width:900px) {
 #home .home-season-hero { grid-template-columns:minmax(0,1fr); gap:22px; padding:24px 20px; }
 #home .home-week-navigation { grid-template-columns:repeat(3,minmax(0,1fr)); }
 #home .home-season-hero .dashboard-header p { margin-top:10px; }
 #home .home-dashboard-event-row,#home .home-dashboard-event-row:has(.event-artwork.has-artwork) { grid-template-columns:42px minmax(0,1fr); padding:16px; gap:12px; }
 #home .home-dashboard-event-logo-badge { width:42px; min-width:42px; height:42px; }
 #home .home-dashboard-event-logo { width:42px; height:42px; }
 #home .home-dashboard-event-title { font-size:1.23rem; }
 #home .home-my-picks-card { padding:16px; }
}


/* Paid-provider enrichment: artwork has its own space; event identity stays in HTML. */
#home .home-dashboard-event-row { display:flex; flex-direction:column; padding:0; gap:0; position:relative; }
#home .home-event-visual { position:relative; display:flex; align-items:center; min-height:112px; width:100%; overflow:hidden; background:var(--brand-tint) url('/assets/sports/hero-lines.svg') center / cover; }
#home [data-home-live-sport="nascar"] .home-event-visual { background-color:var(--brand-tint); }
#home .home-dashboard-event-logo-badge { position:relative; z-index:2; width:112px; min-width:112px; height:112px; margin-left:16px; display:flex; align-items:center; justify-content:center; }
#home .home-dashboard-event-logo { width:80px; height:88px; }
#home .home-dashboard-event-logo.nascar-logo-mark { width:112px; height:112px; }
#home .home-event-venue-photo { position:absolute; inset:0 0 0 auto; width:100%; height:100%; object-fit:cover; object-position:center 55%; }
#home .home-event-visual::after { content:""; position:absolute; z-index:1; inset:0; pointer-events:none; background:linear-gradient(90deg,var(--brand-tint) 0%,#eaf1fbed 20%,transparent 65%); }
#home [data-home-live-sport="nascar"] .home-event-visual::after { background:linear-gradient(90deg,var(--brand-tint) 0%,var(--brand-tint) 16%,#eaf1fb50 46%,transparent 70%); }
#home .home-dashboard-event-copy { display:flex; flex-direction:column; align-items:flex-start; flex:1; padding:20px; width:100%; min-width:0; }
#home .home-event-category { font-size:.7rem; }
#home .home-event-context { display:block; color:#526478; font-size:.82rem; line-height:1.5; margin-top:8px; }
#home .home-dashboard-event-summary { display:block; padding-top:12px; margin-top:12px; border-top:1px solid var(--brand-line); width:100%; line-height:1.5; }
#home .home-dashboard-event-link { margin-top:14px; min-height:44px; }
#live .live-event-summary { background:#fff; border-top:3px solid var(--brand-blue); }
#live .live-event-summary-main { grid-template-columns:92px minmax(0,1fr); align-items:center; }
#live .live-event-logo { width:92px; min-width:92px; height:76px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
#live .live-event-logo .live-league-mark { width:64px; height:72px; max-width:none; max-height:none; object-fit:contain; }
#live .live-event-logo .live-league-mark.nascar-logo-mark { width:100px; height:100px; }
#live .live-event-context { font-size:.82rem; line-height:1.5; color:#526478; margin:5px 0; }
#live .live-tracker-view-tabs button { min-height:44px; }
@media(max-width:900px) {
 #home .home-dashboard-event-row { display:flex; padding:0; gap:0; }
 #home .home-dashboard-event-copy { padding:16px; }
 #home .home-event-visual { min-height:96px; }
 #home .home-dashboard-event-logo-badge { width:96px; min-width:96px; height:96px; margin-left:12px; }
 #home .home-dashboard-event-logo { width:64px; height:76px; }
 #home .home-dashboard-event-logo.nascar-logo-mark { width:96px; height:96px; }
 #live .live-event-logo { display:flex; width:64px; min-width:64px; height:64px; }
 #live .live-event-logo .live-league-mark { width:48px; height:56px; }
 #live .live-event-logo .live-league-mark.nascar-logo-mark { width:76px; height:76px; }
 #live .live-event-summary-main { grid-template-columns:64px minmax(0,1fr); gap:10px; align-items:flex-start; }
 #live .live-event-title { font-size:1.15rem; line-height:1.3; overflow-wrap:anywhere; }
}
#draft .draft-board-header { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:16px; padding:18px; border-top:3px solid var(--brand-blue); box-shadow:none; }
#draft .draft-board-brand { display:flex; align-items:center; justify-content:center; width:76px; height:76px; overflow:hidden; }
#draft .draft-league-mark { width:60px; height:72px; object-fit:contain; }
#draft .draft-league-mark.nascar-logo-mark { width:100px; height:100px; max-width:none; }
#draft .draft-board-header h3 { font-size:1.3rem; line-height:1.3; overflow-wrap:anywhere; }
#draft .draft-board-header p { margin-top:6px; }
#draft .draft-board-eyebrow { margin-bottom:5px; font-size:.66rem; letter-spacing:.08em; }
@media(max-width:600px) {
 #draft .draft-board-header { grid-template-columns:52px minmax(0,1fr); padding:14px; gap:12px; }
 #draft .draft-board-brand { width:52px; height:60px; }
 #draft .draft-league-mark { width:44px; height:56px; }
 #draft .draft-league-mark.nascar-logo-mark { width:72px; height:72px; }
 #draft .draft-board-header h3 { font-size:1.1rem; }
}

/* Mobile draft odds use labeled rows, preserving full entrant names and all values. */
@media(max-width:600px) {
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) { display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important; grid-template-areas:"rank identity identity identity identity" "price position score today thru" !important; padding:12px !important; gap:12px 8px !important; align-items:start; min-height:100px; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]).drafted { opacity:1; background:#f7f9fb; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) > * { min-width:0; overflow:visible; white-space:normal; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-rank { grid-area:rank; width:26px; min-width:26px; height:26px; justify-self:start; align-self:start; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-name-cell { grid-area:identity; display:grid; gap:4px; min-height:0; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-name { display:flex; width:100%; font-size:.87rem; line-height:1.4; white-space:normal; overflow:visible; text-overflow:clip; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .golfer-name-inline { display:inline-flex; flex-wrap:wrap; width:100%; max-width:100%; overflow:visible; align-items:center; gap:4px; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .golfer-name-text { white-space:normal; overflow:visible; overflow-wrap:anywhere; text-overflow:clip; line-height:1.4; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-drafted-meta { font-size:.72rem; white-space:normal; overflow:visible; overflow-wrap:anywhere; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-badge { font-size:.6rem; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-price { grid-area:price; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.position { grid-area:position; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.score { grid-area:score; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.today { grid-area:today; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.thru { grid-area:thru; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) :is(.odds-price,.odds-stat) { display:flex; flex-direction:column; align-items:flex-start; align-self:start; justify-self:stretch; width:auto; min-width:0; padding:0; margin:0; border:0; font-size:.78rem; line-height:1.4; text-align:left; white-space:normal; overflow-wrap:anywhere; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) :is(.odds-price,.odds-stat)::before { display:block; color:#526478; font-size:.58rem; font-weight:650; text-transform:uppercase; letter-spacing:.04em; margin-bottom:3px; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-price::before { content:"Odds"; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.position::before { content:"Pos"; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.score::before { content:"Total"; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.today::before { content:"Today"; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.thru::before { content:"Thru"; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) .odds-stat.today :is(.odds-today-label-long,.odds-today-label-short) { display:none; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport]:is(.golf-live,[data-sport="nascar"]) > div:last-child:empty { display:none; }
 body #draft .draft-odds-sidebar .odds-list .odds-row[data-sport="nascar"] { grid-template-areas:"rank identity identity identity identity" "price price price price price" !important; }
}

/* Results and Standings: the same saved facts, with a clear report hierarchy. */
.results-eyebrow { display:block; font-size:.67rem; line-height:1.5; letter-spacing:.14em; text-transform:uppercase; font-weight:750; color:#526478; }
#weekly-results .dashboard-header h2,#stats .season-report-heading h2 { font-family:"Draft Display",Impact,sans-serif; font-size:2.8rem; letter-spacing:.015em; text-transform:uppercase; line-height:1.1; }
#weekly-results .dashboard-header p,#stats .season-report-heading p { font-size:.9rem; line-height:1.5; font-weight:450; }
#weekly-results .dashboard-header { align-items:flex-end; }
#weeklyResultsSelect { min-height:44px; max-width:100%; }
.season-report-heading { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:16px; }
.saved-week-report { display:grid; gap:20px; min-width:0; }
.results-report-hero { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:24px; border-radius:12px; background:var(--brand-navy) url('/assets/sports/hero-lines.svg') center / cover; color:#fff; }
.results-report-hero .results-eyebrow { color:var(--brand-on-dark); }
.results-report-hero h3 { font-family:"Draft Display",Impact,sans-serif; font-size:2.7rem; line-height:1.1; text-transform:uppercase; color:#fff; margin:6px 0; }
.results-report-hero p { color:#cedce0; margin:0; font-size:.8rem; }
.results-report-total { display:grid; text-align:right; gap:3px; flex-shrink:0; }
.results-report-total span { color:#cedce0; font-size:.74rem; }
.results-report-total strong { font-size:2.3rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.saved-week-report .results-story-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; gap:16px; }
.saved-week-report .weekly-story-card { padding:20px; margin:0; background:var(--brand-tint); border:1px solid var(--brand-line); border-top:3px solid var(--brand-blue); box-shadow:none; }
.saved-week-report .weekly-story-card[data-result-sport="nascar"] { background:var(--brand-tint); border-color:var(--brand-line); border-top-color:var(--brand-blue); }
.results-event-heading { display:grid; grid-template-columns:64px minmax(0,1fr); align-items:center; gap:12px; padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--brand-line); }
.results-event-heading h3 { margin:4px 0 0; font-size:1.2rem; line-height:1.35; color:var(--brand-navy); overflow-wrap:anywhere; }
.results-league-brand { display:flex; align-items:center; justify-content:center; width:64px; height:64px; overflow:hidden; }
.results-league-mark { width:48px; height:60px; object-fit:contain; }
.results-league-mark.nascar-logo-mark { width:86px; height:86px; }
.saved-week-report .weekly-story-card .winner { font-size:1.15rem; }
.saved-week-report .weekly-story-card .weekly-result-lines { font-size:.85rem; line-height:1.6; font-weight:450; }
.saved-week-report .weekly-your-payments { margin:0; padding:20px; border:1px solid var(--brand-line); border-left:4px solid var(--brand-blue); border-radius:10px; background:var(--brand-canvas); }
.saved-week-report .weekly-your-payments h3 { margin:4px 0 12px; font-size:1.2rem; }
.saved-week-report .weekly-your-payments .weekly-results-empty { text-align:left; padding:10px 0; background:none; border:0; }
.results-detail-panel { padding:0; border:1px solid #d8e2ec; border-radius:10px; background:#fff; overflow:hidden; }
.results-detail-panel > summary { cursor:pointer; min-height:48px; padding:14px 16px; font-size:.87rem; font-weight:650; color:var(--brand-navy); }
.results-detail-panel[open] { padding:0 16px 16px; }
.results-detail-panel[open] > summary { margin:0 -16px 10px; border-bottom:1px solid #e2e8ef; }
.results-report-section { border-top:1px solid #d8e2ec; padding-top:20px; min-width:0; }
.results-report-section h3 { margin:0 0 12px; font-family:"Draft Display",Impact,sans-serif; text-transform:uppercase; font-size:1.65rem; letter-spacing:.02em; }
.results-report-section h4 { font-size:.95rem; margin:18px 0 10px; }
.results-section-note { font-size:.8rem; color:#526478; line-height:1.5; margin:-4px 0 14px; }
.saved-week-report .weekly-payment-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.saved-week-report .weekly-payment-row { padding:12px 14px; min-height:48px; border-color:#d8e2ec; background:#fff; }
.saved-week-report .weekly-payment-route { flex-wrap:wrap; font-size:.84rem; line-height:1.5; }
.saved-week-report .weekly-payment-amount { font-size:1rem; font-variant-numeric:tabular-nums; }
.saved-week-report .weekly-results-empty { padding:16px; font-size:.85rem; font-weight:450; }
.saved-week-report .weekly-recap-card { margin:0; padding:20px; background:#fff; border-color:#d8e2ec; font-weight:450; line-height:1.7; }
.results-admin-actions .btn { color:#b3261e; border-color:#b3261e; }
#stats .standings-season-summary { gap:12px; }
#stats [data-standings-metric-card] { box-shadow:none; border-color:#d8e2ec; }
#stats .standings-season-summary [data-standings-metric-card] { background:var(--brand-navy); color:#fff; }
#stats .standings-season-summary [data-standings-metric-card] strong { font-family:"Draft Display",Impact,sans-serif; font-size:1.8rem; letter-spacing:.01em; line-height:1.2; }
#stats .standings-season-summary [data-standings-metric-card] span { opacity:1; color:#d0dde1; }
#stats [data-standings-view] { min-height:44px; font-size:.84rem; }
#stats [data-standings-view][aria-selected="true"] { background:var(--brand-navy); color:#fff; border-color:var(--brand-navy); }
#stats .standings-official-section > h3 { font-family:"Draft Display",Impact,sans-serif; font-size:1.9rem; text-transform:uppercase; letter-spacing:.015em; margin:22px 0 12px; }
#stats [data-official-standings-cards] { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
#stats [data-official-standing-card] { box-shadow:none; border-color:#d8e2ec; transform:none; }
#stats [data-official-standing-card][data-current-owner="true"] { border-left:4px solid var(--brand-blue); background:var(--brand-tint); }
#stats .standing-you { display:inline-block; margin-left:8px; padding:3px 7px; border-radius:5px; background:var(--brand-tint); color:var(--brand-navy); font-size:.65rem; vertical-align:middle; }
#stats .standing-row-head h4 { font-size:1.05rem; line-height:1.5; overflow-wrap:anywhere; }
#stats .standing-row-head strong { font-size:1.65rem; font-variant-numeric:tabular-nums; }
#stats .standing-row-body { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:10px 24px; }
#stats .standing-row-head { grid-column:1; grid-row:1; }
#stats .standing-row-facts { grid-column:1; grid-row:2; }
#stats .standing-row-body > details { grid-column:2; grid-row:1 / 3; align-self:center; background:#f3f6f8; }
#stats .standing-row-body > details > summary { min-height:44px; font-size:.8rem; }
@media(max-width:900px) {
 .results-report-hero { padding:20px; gap:16px; }
 .results-report-hero h3 { font-size:2.1rem; }
 .results-report-total strong { font-size:1.9rem; }
 .saved-week-report .results-story-grid { grid-template-columns:minmax(0,1fr); }
 .saved-week-report .weekly-payment-list { grid-template-columns:minmax(0,1fr); }
 #stats .standing-row-body { grid-template-columns:minmax(0,1fr); gap:10px; }
 #stats .standing-row-body > details { grid-column:1; grid-row:3; width:100%; }
 #stats .standings-season-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #stats .standings-season-summary [data-standings-metric-card] > div { padding:12px !important; min-width:0; }
 #stats .standings-season-summary [data-standings-metric-card] strong { font-size:1.45rem; overflow-wrap:anywhere; white-space:normal; }
 #weekly-results .dashboard-header { display:block; }
 #weeklyResultsSelect { margin-top:14px; width:100%; }
}
@media(max-width:420px) {
 .results-report-hero { align-items:flex-start; flex-wrap:wrap; }
 .results-report-total { text-align:left; padding-top:12px; border-top:1px solid #38525b; width:100%; }
 #stats .standing-row-head { align-items:flex-start; gap:12px; }
 #stats .standing-row-head > div:last-child { min-width:80px; }
 #stats .standing-row-head h4 { font-size:1rem; }
}
.results-final-grid { display:grid; gap:12px; }
@media(max-width:900px) {
 .saved-week-report .weekly-results-mobile-grid { display:grid; grid-template-columns:minmax(0,1fr) 64px; gap:8px; }
 .saved-week-report .weekly-results-mobile-field:last-child { grid-column:1 / -1; }
 .saved-week-report .weekly-results-mobile-field strong { font-size:.85rem; line-height:1.5; }
 .saved-week-report .weekly-results-mobile-field .golfer-name-inline { display:inline-flex; flex-wrap:wrap; gap:5px; align-items:center; }
 .saved-week-report .weekly-results-mobile-field .golfer-name-text { font-size:.85rem; line-height:1.5; text-transform:none; letter-spacing:normal; font-weight:650; overflow-wrap:anywhere; }
 .saved-week-report .weekly-results-mobile-field .golfer-country-chip { font-size:.6rem; letter-spacing:normal; }
}
#stats .standings-empty,#weeklyResultsDisplay > .weekly-results-empty { padding:28px; border:1px solid #d8e2ec; border-top:3px solid var(--brand-blue); border-radius:12px; text-align:left; background:var(--brand-canvas); }
#stats .standings-empty h3,#weeklyResultsDisplay > .weekly-results-empty > strong { display:block; font-family:"Draft Display",Impact,sans-serif; font-size:1.8rem; line-height:1.2; text-transform:uppercase; color:var(--brand-navy); margin-bottom:12px; }
#stats .standings-empty p,#weeklyResultsDisplay > .weekly-results-empty > div { font-size:.9rem; line-height:1.6; font-weight:450; color:#526478; }
#stats .standing-row-head h4 { display:block; text-transform:none; letter-spacing:normal; }
#stats .standing-you { white-space:nowrap; flex-shrink:0; }
#stats .standings-season-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
#stats .standings-context { margin:12px 0 16px; }
.season-explore { margin-bottom:16px; border-bottom:1px solid #d8e2ec; }
.season-explore > summary { cursor:pointer; min-height:44px; padding:10px 0; font-size:.84rem; font-weight:650; color:#526478; }
.season-explore[open] .section-subtabs { margin:8px 0 16px; }
body:not(.admin-role) #weekly-results > .section > .section-subtabs,body.admin-player-preview #weekly-results > .section > .section-subtabs { display:none; }
.results-fact-list { display:grid; gap:0; margin:0; border:1px solid #d8e2ec; border-radius:8px; overflow:hidden; }
.results-fact-list > div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:16px; padding:12px 14px; background:#f8fafc; }
.results-fact-list > div + div { border-top:1px solid #d8e2ec; }
.results-fact-list dt { font-size:.85rem; line-height:1.5; color:#526478; }
.results-fact-list dd { margin:0; font-size:.95rem; line-height:1.4; font-weight:700; font-variant-numeric:tabular-nums; }
.saved-week-report .weekly-your-payments .weekly-personal-payment { padding:12px; border:1px solid #d8e2ec; border-radius:8px; background:#fff; column-gap:16px; }

/* Frame the reviewed course photograph inside its original event image; leave source bytes intact. */
#home .home-event-venue-photo { display:block; overflow:hidden; }
#home .home-event-venue-photo > img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 55%; }
#home .home-event-venue-photo[data-photo-sport="golf"] > img { position:absolute; width:141.91%; max-width:none; height:auto; left:-39.69%; top:50%; transform:translateY(-37.57%); }

/* Share the actual content tracks across the two event cards, including wrapped text. */
@supports (grid-template-rows:subgrid) {
 #home .home-dashboard-event-list { row-gap:0; column-gap:16px; align-items:stretch; }
 #home .home-dashboard-event-row { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:subgrid; grid-row:span 6; row-gap:0; align-items:stretch; }
 #home .home-dashboard-event-copy { display:contents; }
 #home .home-event-category { margin:18px 20px 6px; }
 #home .home-dashboard-event-title { margin:0 20px; min-width:0; align-self:start; }
 #home .home-event-context { margin:8px 20px 0; align-self:start; }
 #home .home-dashboard-event-summary { width:auto; margin:12px 20px 0; padding-top:12px; align-self:stretch; }
 #home .home-dashboard-event-link { margin:14px 20px 20px; align-self:start; justify-self:start; }
 @media(max-width:900px) {
  #home .home-dashboard-event-list { row-gap:16px; }
  #home .home-event-category { margin:16px 16px 6px; }
  #home .home-dashboard-event-title { margin:0 16px; }
  #home .home-event-context { margin:8px 16px 0; }
  #home .home-dashboard-event-summary { margin:12px 16px 0; }
  #home .home-dashboard-event-link { margin:14px 16px 16px; }
 }
}

#home .home-welcome { margin:0; font-size:1rem; font-weight:650; color:var(--brand-navy); }


/* Keep the Golf labels visible at the intermediate width where the rows
   already use their desktop columns but the generic Live headers are hidden. */
#fullGolfLeaderboardBoard .sports-board-header.leaderboard {
 display:grid;
}
#fullGolfLeaderboardBoard .sports-board-header.leaderboard > div:not(:nth-child(2)) {
 text-align:center;
}
