/* (same styles as v4) */
:root{--green:#0c6b2e;--green-dark:#084a20;--bg:#f4f7f4;--card:#fff;--text:#1e1f20;--muted:#6c757d;--border:#dbe1db}
*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial}
.container{max-width:1180px;margin:0 auto;padding:0 16px}.small{font-size:.875rem;color:var(--muted)}
.site-header{background:var(--green);color:#fff;border-bottom:6px solid var(--green-dark)}
.header-inner{display:flex;align-items:center;gap:16px;min-height:88px}
.brand img{height:128px;width:auto;display:block}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}.nav a{color:#fff;text-decoration:none;font-weight:600;padding:8px 10px;border-radius:8px}
.nav a:hover{background:rgba(255,255,255,.12)}
/* Barr League's navy/orange sports tab, shared by desktop and mobile menus. */
.site-header .nav a.nav-barr{background:#0b2139;color:#ffad76;border:1px solid #ff8d42;border-bottom:3px solid #ff8d42;font-family:Impact,Haettenschweiler,'Arial Narrow Bold','Arial Narrow',sans-serif;font-size:1.05rem;font-weight:400;font-style:italic;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;box-shadow:0 2px 5px #0002}
.site-header .nav a.nav-barr:hover,.site-header .nav a.nav-barr[aria-current="page"]{background:#173c60;color:#fff}
.site-header .nav a.nav-barr:focus-visible{outline:2px solid #fff;outline-offset:3px}
.site-header .nav a.nav-report{color:#ffb4b4}
.site-header .nav a.nav-report:focus-visible{outline:2px solid #fff;outline-offset:3px}
.header-actions{display:inline-flex;align-items:center;gap:6px;margin-left:4px;flex:0 0 auto}
.header-account{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:2px;text-decoration:none;line-height:0;flex:0 0 auto}
.header-account:hover,.header-account:focus-visible{background:rgba(255,255,255,.16);outline:none}
.header-account img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.9);background:#fff;display:block}
.header-notifications,.header-notifications:link,.header-notifications:visited{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;color:#fff!important;text-decoration:none;flex:0 0 auto;-webkit-tap-highlight-color:transparent}
.header-notifications:hover,.header-notifications:focus-visible{background:rgba(255,255,255,.16);outline:none;color:#fff!important}
.header-notifications svg,.header-notifications svg *{fill:#fff!important;color:#fff!important}
.notification-badge{position:absolute;top:1px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#d71920;color:#fff;border:2px solid var(--green);font-size:11px;line-height:14px;font-weight:800;text-align:center}
.grid{display:grid;grid-template-columns:1fr 360px;gap:16px}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.card .card-header{padding:14px 16px;border-bottom:1px solid var(--border);font-weight:700}
.card .card-body{padding:14px 16px}.card .card-footer{padding:12px 16px;border-top:1px solid var(--border);background:#fafafa;border-radius:0 0 12px 12px}
.btn{background:var(--green);border:none;color:#fff;padding:10px 14px;border-radius:10px;font-weight:700;cursor:pointer}
.btn[disabled]{opacity:.55;cursor:not-allowed}.input,select,textarea{width:100%;padding:10px;border:1px solid var(--border);border-radius:8px}
.row{display:flex;gap:10px;align-items:center}.row>*{flex:1}
.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px;border-bottom:1px solid var(--border);vertical-align:middle}.table th{background:#f7f7f7;text-align:left}
.week-pager{display:flex;gap:8px;flex-wrap:wrap;padding:8px}
.week-pager a{background:#eaf3ea;border:1px solid var(--border);padding:6px 10px;border-radius:8px;text-decoration:none;color:#093c1d;font-weight:700}
.week-pager a.active{background:var(--green);color:#fff;border-color:var(--green)}
.game-row .where{text-align:center;font-weight:700;color:var(--muted)}
.vs-text{font-size:1rem;color:var(--muted)}
.score-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:72px;padding:4px 9px;border-radius:999px;background:#eef5ee;border:1px solid var(--border);color:#1e1f20;font-size:1.05rem;font-weight:900;line-height:1}
.score-num{font-variant-numeric:tabular-nums;min-width:18px;text-align:center}
.score-sep{color:var(--muted);font-weight:800}
.score-winner{color:var(--green-dark)}
.score-label{margin-top:3px;font-size:.68rem;line-height:1;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}
.kickoff-time{margin-top:4px}
.locked-text{color:#c01818;font-weight:700}
.radio-wrap{display:flex;gap:10px;align-items:center}
.comment-list .comment{border-top:1px solid var(--border);padding:12px 0}.comment .meta{color:var(--muted);font-size:.9rem;margin-bottom:6px}
.site-footer{margin:40px 0 80px}
/* 5-column game row: team | logo | center | logo | team */
.game-row{
  display:grid;
  grid-template-columns: 1fr 56px 140px 56px 1fr;
  gap:10px;
  align-items:center;
  padding:10px 0;
  border-bottom:1px dashed var(--border);
  font-size:16px
}
.team-left  { justify-content:flex-start; }
.team-right { justify-content:flex-end; }
.logo-cell  { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
.team-logo  {
  width:44px; height:44px; border-radius:50%;
  border:2px solid var(--border); background:#fff; object-fit:contain;
}
.team-record{font-size:.72rem;line-height:1;color:var(--muted);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.team-record--mobile{display:none}
@media (max-width: 900px){
  .game-row{ grid-template-columns: 1fr 44px 100px 44px 1fr; }
  .team-logo{ width:36px; height:36px; }
}
/* Tighter on small screens */
@media (max-width:560px){
  .game-row{ grid-template-columns: 1fr 40px 110px 40px 1fr; }
  .team-logo{ width:32px; height:32px; }
}

@media (max-width:980px){.grid{grid-template-columns:1fr}.nav{flex-wrap:wrap}}

/* A11y helper */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Toggle (hidden on desktop) */
.nav-toggle{
  display:none; margin-left:auto; background:transparent; border:0; padding:10px;
  cursor:pointer; border-radius:10px
}
.nav-toggle:focus-visible{outline:2px solid #fff; outline-offset:2px}
.nav-toggle .bar{
  display:block; width:24px; height:2px; background:#fff; margin:5px 0; transition:transform .2s ease, opacity .2s ease
}

/* Needed so dropdown can be positioned */
.header-inner{position:relative}

/* Mobile layout */
@media (max-width: 820px){
  .brand{order:1;flex:0 1 auto}
  .header-actions{order:2;margin-left:auto;gap:4px}
  .header-notifications{width:40px;height:40px}
  .header-account img{width:40px;height:40px}
  .nav-toggle{order:3;display:inline-flex;margin-left:0}/* show hamburger */
  .nav{
    display:none;                              /* hidden by default */
    position:absolute; top:88px; left:0; right:0;
    background:var(--green); border-bottom:6px solid var(--green-dark);
    flex-direction:column; gap:0; padding:8px 12px; z-index:5
  }
  .nav.open{display:flex}
  .nav a{
    display:block; padding:12px; margin:2px 0; border-radius:10px;
    color:#fff; text-decoration:none; font-weight:600
  }
  .nav a:hover{background:rgba(255,255,255,.12)}
}

/* Optional: animated hamburger -> X when open */
@media (max-width: 820px){
  .nav-toggle.is-open .bar:nth-child(2){opacity:0}
  .nav-toggle.is-open .bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .nav-toggle.is-open .bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}
/* Profile layout */
.profile-header{display:flex; align-items:flex-start; gap:16px}
.profile-left{flex:0 0 160px}
.profile-main{flex:1 1 auto}
.profile-stats{flex:0 0 280px}
.profile-left img{
  width:160px; height:160px; border-radius:12px; object-fit:cover; border:1px solid #ddd
}

/* Mobile: stack avatar + info + stats */
@media (max-width: 820px){
  .profile-header{flex-direction:column}
  .profile-left,.profile-main,.profile-stats{flex:1 1 auto; width:100%}
  .profile-left img{width:120px; height:120px}
  .profile-stats .card{margin-top:8px} /* add a little spacing when stacked */


}
.week-head{display:flex; align-items:center; justify-content:space-between; gap:12px}
.week-title{font-weight:800; text-transform:uppercase}
.week-pager{display:flex; gap:8px; flex-wrap:wrap}
.team-logo--mobile{ display:none; }

@media (max-width: 520px){
  /* header: WEEK N above, pager below */
  .week-head{ flex-direction:column; align-items:flex-start; }

  /* 3-column grid */
  .game-row{
    grid-template-areas: "away center home";
    grid-template-columns: 1fr clamp(90px, 30vw, 140px) 1fr; /* center column flexes */
    gap:12px;
    padding:14px 0;
  }

  /* place children into the 3 areas */
  .game-row > .radio-wrap:first-child{ grid-area:away;  justify-content:center; }
  .game-row > .where{               grid-area:center; text-align:center; }
  .game-row > .radio-wrap:last-child{ grid-area:home;  justify-content:center; }

  /* hide desktop logo cells; we use mobile logos inside labels */
  .game-row > .logo-cell{ display:none; }

  /* each team block is a vertical stack: logo -> name -> radio */
  .radio-wrap{
    display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px;
  }
  .team-logo--mobile{
    display:block;              /* visible only on phones */
    width:56px; height:56px; border-radius:50%;
    object-fit:contain; background:#fff; border:2px solid var(--border);
  }
  .team-name{ font-weight:600; }

  /* ensure radio sits under the name */
  .radio-wrap .team-logo--mobile{ order:1; }
  .radio-wrap .team-record--mobile{ display:block; order:2; margin-top:-4px; }
  .radio-wrap .team-name{ order:3; }
  .radio-wrap input[type="radio"]{ order:4; margin:0; }

  /* center column text wraps nicely */
  .where{ font-size:.95rem; }
  .where .small{ white-space:normal; line-height:1.2; }
  .score-pill{min-width:64px;padding:4px 7px;font-size:.98rem;gap:5px}
  .score-label{font-size:.62rem}
}

@media (max-width: 380px){
  .team-logo--mobile{ width:48px; height:48px; }
}
/* TROPHY CASE*/
.tc-wrap { background:#0f172a; color:#e5e7eb; padding:16px; border-radius:14px; max-width:100%; min-width:0; overflow:hidden; }
.tc-title { margin:0 0 8px; font-size:1.4rem; font-weight:700; }
.tc-subtitle { margin:18px 0 10px; font-size:1.05rem; color:#a3e635; }

.tc-season-grid { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.tc-season-card { background:#111827; border:1px solid #263244; border-radius:14px; padding:14px; text-align:center; min-width:0; overflow:hidden; }
.tc-trophy-icon { width:100%; max-width:220px; height:auto; max-height:220px; object-fit:contain; display:block; margin:0 auto 8px; }
.tc-trophy-fallback { min-height:180px; display:grid; place-items:center; font-size:5rem; }

.tc-grid { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.tc-card { background:#111827; border:1px solid #1f2937; border-radius:12px; padding:12px; text-align:center; transition:transform .15s ease, box-shadow .15s ease; }
.tc-card:hover { transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.35); }
.tc-icon { width:112px; height:112px; object-fit:contain; display:block; margin:0 auto 8px; }
.tc-name { font-weight:700; font-size:.95rem; margin-bottom:4px; }
.tc-count { display:inline-block; margin-left:4px; padding:1px 6px; border-radius:999px; background:#243244; color:#d9f99d; font-size:.75rem; vertical-align:1px; }
.tc-meta { font-size:.75rem; opacity:.85; display:flex; justify-content:center; align-items:center; gap:8px; flex-wrap:wrap; }
.tc-points { background:#065f46; padding:2px 6px; border-radius:999px; }
.tc-small { font-size:.8rem; color:#cbd5e1; }
.tc-date { font-size:.75rem; color:#94a3b8; }
.tc-empty { padding:10px; background:#0b1220; border:1px dashed #334155; border-radius:10px; color:#9ca3af; }

@media (max-width:760px){
  .tc-season-grid{ grid-template-columns:1fr; }
  .tc-trophy-icon{ width:140px; max-width:100%; height:auto; max-height:150px; }
  .tc-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tc-icon{ width:96px; height:96px; }
}

/* Standings: explicit columns replace the old four-column percentage widths. */
.standings-table{table-layout:fixed;width:100%;min-width:680px}
.standings-col-rank{width:56px}.standings-col-movement{width:100px}.standings-col-number{width:70px}.standings-col-tiebreaker{width:176px}
.standings-table .standings-rank,.standings-table .standings-movement,.standings-table .standings-number{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.standings-table .standings-player{text-align:left;min-width:0}
.standings-player a{display:flex;align-items:center;gap:8px;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.standings-avatar{display:block;flex:0 0 32px;width:32px;height:32px;border-radius:50%;object-fit:cover}
.standings-avatar-initial{display:flex;align-items:center;justify-content:center;background:#e5efe6;color:#26482f;font-weight:700}
.standings-player-name{min-width:0}
.standings-table .standings-tiebreaker{overflow-wrap:anywhere;text-align:left}
.standings-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.standings-filter label{display:grid;gap:5px;flex:0 1 300px}.standings-filter .btn{min-height:44px}
@media(max-width:560px){
 .standings-table{min-width:620px}.standings-table th,.standings-table td{padding:8px 6px;font-size:.9rem}
 .standings-col-rank{width:46px}.standings-col-movement{width:82px}.standings-col-number{width:60px}.standings-col-tiebreaker{width:140px}
 .standings-filter label{flex:1 1 180px}
}

/* Profile names may also be legacy email-style usernames. */
.profile-main h2{overflow-wrap:anywhere;word-break:break-word;}

/* === Users grid (4 / 3 / 2 / 1 columns) === */
.users-page-header { margin-bottom: 16px; }
.page-title { margin: 0; }
.page-subtitle { color: var(--muted); margin-top: 6px; }

.users-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1200px) { .users-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px)  { .users-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px)  { .users-grid { grid-template-columns: 1fr; } }

/*user cards*/

.uc-name { margin-top: 10px; font-weight: 800; font-size: 1.05rem; }
.uc-tagline { margin-top: 6px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.uc-muted { color: var(--muted); }
.uc-meta { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uc-chip { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--muted); }

.user-card{ text-decoration:none; transition:transform .12s, box-shadow .12s; color:black; }
.user-card:hover{ transform:translateY(-2px); box-shadow:0 6px 22px rgba(0,0,0,.10); color:black;}
.ucb{ padding:16px; display:flex; flex-direction:column; }

.uc-head{ display:flex; align-items:center; gap:12px; }
.uc-avatar{ width:72px; height:72px; border-radius:50%; object-fit:cover; border:2px solid #fff; }
.uc-teamlogo{ width:32px; height:32px; margin-left:auto; border-radius:50%; background:#fff; border:1px solid #eee; object-fit:contain; }

.uc-name{ margin-top:10px; font-weight:800; font-size:1.05rem; }
.uc-tagline{ margin-top:6px; line-height:1.35; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.uc-muted{ color:var(--muted); }
.uc-meta{ margin-top:10px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }


.team-logo.winner {
  border: 3px solid limegreen;   /* brighter than --green */
  box-shadow: 0 0 6px rgba(0,255,0,0.6); /* glow effect */
}

/* Comments / replies / mentions */
.comment { border-bottom:1px solid var(--border); padding:10px 0; }
.comment.comment-reply { margin-left:28px; padding-left:12px; border-left:3px solid var(--border); }
.comment-head { display:flex; align-items:flex-start; gap:10px; margin-bottom:6px; }
.comment-avatar-link { display:inline-flex; flex:0 0 auto; width:34px; height:34px; border-radius:50%; overflow:hidden; border:1px solid var(--border); background:#f5f5f5; text-decoration:none; }
.comment-avatar { width:100%; height:100%; object-fit:cover; display:block; }
.comment-meta-wrap { min-width:0; }
.comment-subject { font-weight:800; color:var(--dark); line-height:1.25; overflow-wrap:anywhere; }
.comment .meta { color:var(--muted); font-size:.9rem; margin-bottom:4px; }
.comment-user { font-weight:700; text-decoration:none; }
.comment-body { overflow-wrap:anywhere; }
.comment-actions { margin-top:6px; display:flex; gap:8px; align-items:center; }
.reply-form { margin:8px 0 8px 28px; padding:10px; border-left:3px solid var(--border); background:rgba(0,0,0,.025); border-radius:8px; }
.mention { font-weight:700; text-decoration:none; }

.mention-suggest-menu {
  position:absolute;
  z-index:10000;
  max-height:240px;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  padding:4px;
}
.mention-suggest-menu[hidden] { display:none; }
.mention-suggest-item {
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  background:transparent;
  border-radius:8px;
  padding:7px 8px;
  text-align:left;
  cursor:pointer;
  color:var(--dark);
  font:inherit;
}
.mention-suggest-item:hover,
.mention-suggest-item[aria-selected="true"] { background:#f2f4f7; }
.mention-suggest-avatar {
  width:26px;
  height:26px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid var(--border);
  flex:0 0 auto;
}
.mention-suggest-name { font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width: 520px){ .comment.comment-reply, .reply-form { margin-left:12px; } .comment-avatar-link { width:30px; height:30px; } }

.account-notifications-card .settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.account-notifications-card .settings-copy{min-width:240px;flex:1}
.account-notifications-card .settings-copy p{margin:6px 0 0}
.account-notifications-card .settings-action{display:flex;justify-content:flex-end}
.push-account-btn[hidden]{display:none}
.push-account-btn:disabled{opacity:.75;cursor:default}
.push-status{color:var(--muted)}
.push-status.is-bad{color:#9b1c1c}
@media(max-width:700px){.account-notifications-card .settings-row{align-items:flex-start}.account-notifications-card .settings-action{width:100%;justify-content:flex-start}.push-account-btn{width:100%}}


/* Sport / Season context selector */
.season-context-card{margin-bottom:16px}
.season-context-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.season-context-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:700;color:#334}
.season-context-form select{min-width:190px}
.season-badge{display:inline-flex;align-items:center;min-height:36px;padding:0 10px;border-radius:999px;background:#f2f2f2;border:1px solid var(--border);font-weight:700;color:#666}
@media (max-width:720px){.season-context-form{display:grid;grid-template-columns:1fr;align-items:stretch}.season-context-form select,.season-context-form .btn{width:100%}}


/* Notifications page */
.notifications-page{margin-top:16px}
.notifications-page .card-body{padding:0}
.notifications-list{display:flex;flex-direction:column;gap:0}
.notification-item{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid var(--border);background:#fff}
.notification-item:last-child{border-bottom:0;border-radius:0 0 12px 12px}
.notification-item.is-unread{background:#fffdfd;box-shadow:inset 4px 0 0 #d71920}
.notification-icon{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eaf3ea;color:var(--green);font-weight:900;line-height:1;overflow:hidden}
.notification-content{min-width:0;overflow-wrap:anywhere}
.notification-title{font-weight:800;margin:0 0 3px}
.notification-content p{margin:4px 0 8px}
.notification-meta{color:var(--muted);font-size:.875rem;line-height:1.35}
.notification-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.notification-actions .btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;line-height:1.2;white-space:nowrap}
.notification-empty{padding:18px;text-align:center;color:var(--muted)}
@media(max-width:620px){
  .notifications-page{margin-top:12px}
  .notification-item{grid-template-columns:34px minmax(0,1fr);gap:10px;padding:12px}
  .notification-icon{width:32px;height:32px;font-size:.9rem}
  .notification-actions .btn{width:100%}
}

/* Sport Preferences */
.account-message{margin-bottom:10px;padding:10px 12px;border-radius:10px;border:1px solid #dbe1db;background:#f6fff6;color:#17652d;font-weight:700}
.account-message--error{background:#fff5f5;border-color:#f2caca;color:#9b1c1c}
.sport-preferences-help{margin-top:0;color:var(--muted)}
.sport-preferences-warning{margin:10px 0;padding:10px 12px;border-radius:10px;border:1px solid #f2caca;background:#fff5f5;color:#9b1c1c}
.sport-preferences-grid{display:grid;gap:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;margin-top:12px}
.sport-preferences-head,.sport-preferences-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 150px;align-items:center;gap:0}
.sport-preferences-head{background:#f7f7f7;font-weight:800;color:#334}
.sport-preferences-head>div,.sport-preferences-row>div,.sport-preferences-row>label{padding:11px 12px;border-bottom:1px solid var(--border)}
.sport-preferences-row:last-child>div,.sport-preferences-row:last-child>label{border-bottom:0}
.sport-preferences-name{font-weight:800}
.sport-preference-check{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:42px}
.sport-preference-check input{width:18px;height:18px}
.sport-preference-check input:disabled{cursor:not-allowed}
.sport-preferences-note{color:var(--muted);margin:10px 0}
.sport-opted-out-card p{margin-top:0}
@media(max-width:620px){
  .sport-preferences-head{display:none}
  .sport-preferences-row{grid-template-columns:1fr;gap:0;padding:10px 12px;border-bottom:1px solid var(--border)}
  .sport-preferences-row:last-child{border-bottom:0}
  .sport-preferences-row>div,.sport-preferences-row>label{border-bottom:0;padding:4px 0}
  .sport-preference-check span{font-size:.95rem}
}

/* Authentication forms */
.auth-card{
  width:min(100%, 560px);
  margin:32px auto;
  overflow:hidden;
}
.auth-card--login{width:min(100%, 520px)}
.auth-header{
  padding:22px 24px 18px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,#fff 0%,#fbfdfb 100%);
}
.auth-header h1{
  margin:0;
  font-size:1.45rem;
  line-height:1.2;
}
.auth-header p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:.95rem;
}
.card .auth-body{padding:24px}
.auth-form{display:flex;flex-direction:column;gap:18px}
.auth-field{display:flex;flex-direction:column;gap:7px}
.auth-field label,.auth-label-row label{font-weight:700;font-size:.92rem;color:#27312a}
.auth-field .input{
  min-height:46px;
  padding:11px 12px;
  background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.auth-field .input:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(12,107,46,.12);
}
.auth-help{font-size:.82rem;color:var(--muted);line-height:1.35}
.auth-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.auth-label-row a{font-size:.84rem;font-weight:600;white-space:nowrap}
.auth-check{
  display:grid;
  grid-template-columns:18px 1fr;
  gap:10px;
  align-items:start;
  font-size:.88rem;
  line-height:1.45;
  color:#424a45;
}
.auth-check input{width:17px;height:17px;margin:2px 0 0;accent-color:var(--green)}
.auth-submit{width:100%;min-height:46px;font-size:1rem;margin-top:2px}
.auth-submit:hover{background:var(--green-dark)}
.auth-alert{
  margin-bottom:18px;
  padding:11px 13px;
  border-radius:8px;
  border:1px solid transparent;
  font-size:.9rem;
  line-height:1.4;
}
.auth-alert--error{background:#fff2f2;border-color:#efcaca;color:#8f1e1e}
.auth-alert--error a{color:inherit;font-weight:700}
.auth-alert--success{background:#eff9f1;border-color:#c7e5ce;color:#17652f}
.card .auth-footer{
  padding:15px 24px;
  text-align:center;
  color:var(--muted);
  font-size:.9rem;
}
.auth-footer a{font-weight:700}
@media (max-width:600px){
  .auth-card{margin:20px auto}
  .auth-header{padding:20px 18px 16px}
  .card .auth-body{padding:20px 18px}
  .card .auth-footer{padding:14px 18px}
  .auth-form{gap:16px}
}

/* Home Settings */
.home-settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.home-settings-heading h3{margin:0 0 5px}
.home-settings-heading p{margin:0;color:var(--muted)}
.home-settings-form{display:flex;flex-direction:column;gap:22px;max-width:980px}
.home-settings-grid{display:grid;grid-template-columns:minmax(190px,240px) minmax(300px,1fr);gap:18px}
.home-settings-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.home-settings-label{font-size:.92rem;font-weight:800;color:#26312a}
.home-settings-help{font-size:.78rem;line-height:1.35;color:var(--muted);font-weight:400}
.home-settings-label-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-end}
.home-settings-form .input{padding:12px 13px;background:#fff}
.home-settings-actions{display:flex;justify-content:flex-start;padding-top:2px}
.home-settings-actions .btn{min-width:180px}

.simple-editor{border:1px solid var(--border);border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}
.simple-editor:focus-within{border-color:#8eb99c;box-shadow:0 0 0 3px rgba(12,107,46,.09)}
.simple-editor-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px 9px;background:#f7f9f7;border-bottom:1px solid var(--border)}
.simple-editor-btn{width:34px;height:32px;border:1px solid #cfd7cf;border-radius:7px;background:#fff;color:#26312a;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font:inherit}
.simple-editor-btn:hover{background:#edf5ef;border-color:#aebdaf}
.simple-editor-btn:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.simple-editor-btn--text{width:auto;min-width:58px;padding:0 9px;font-size:.78rem;font-weight:700}
.simple-editor-separator{width:1px;height:22px;background:#d6ddd6;margin:0 2px}
.simple-editor-surface{min-height:112px;padding:13px 14px;line-height:1.5;outline:none;overflow:auto}
.simple-editor-surface--tall{min-height:180px}
.simple-editor-surface p,.simple-editor-surface div{margin:0 0 8px}
.simple-editor-surface p:last-child,.simple-editor-surface div:last-child{margin-bottom:0}
.simple-editor-surface ul,.simple-editor-surface ol{margin:6px 0 8px;padding-left:24px}
.simple-editor-source{display:none}
.simple-editor-surface a,.home-rich-content a{color:var(--green);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.simple-editor-surface a:hover,.home-rich-content a:hover{text-decoration-thickness:2px}

@media(max-width:720px){
  .home-settings-grid{grid-template-columns:1fr}
  .home-settings-form{gap:19px}
  .home-settings-actions .btn{width:100%}
  .simple-editor-toolbar{gap:4px}
  .simple-editor-btn{height:34px}
  .simple-editor-surface{min-height:130px}
  .simple-editor-surface--tall{min-height:190px}
}


/* Sanitized rich text rendered from Home Settings */
.home-rich-content{line-height:1.55}
.home-rich-content p,.home-rich-content div{margin:0 0 10px}
.home-rich-content p:last-child,.home-rich-content div:last-child{margin-bottom:0}
.home-rich-content ul,.home-rich-content ol{margin:8px 0 10px;padding-left:24px}
.home-rich-content li+li{margin-top:4px}
.home-rich-content--updates{margin-top:6px}

/* Username change settings */
.account-username-panel{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
.account-username-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.account-username-heading .small{color:var(--muted);font-weight:600}
.account-username-form{display:flex;flex-direction:column;gap:9px}
.account-field-label{font-size:.9rem;font-weight:800;color:#27312a}
.account-username-form .input{min-height:44px;background:#fff}
.account-username-form .input[readonly]{background:#f6f7f6;color:#6b746e}
.account-username-help{margin:0;color:var(--muted);line-height:1.4}
.account-username-status{padding:9px 11px;border:1px solid #d8e4da;border-radius:9px;background:#f5faf6;color:#35523d;font-size:.86rem;line-height:1.4}
.account-username-status--warning{border-color:#f0d0a8;background:#fff8ed;color:#7a4a0d}
.account-username-btn{align-self:flex-start;margin-top:2px}
@media(max-width:620px){
  .account-username-heading{align-items:flex-start;flex-direction:column;gap:3px}
  .account-username-btn{width:100%}
}

#pick-progress{padding:12px;border-radius:8px;background:#eef5ff;margin-bottom:12px}.pick-missing{outline:2px solid #d99026;outline-offset:-2px}.standings-me{background:#e8f2ff}.dashboard-stats{display:flex;gap:18px;flex-wrap:wrap}.radio-wrap{min-height:44px;cursor:pointer}.table-responsive{overflow-x:auto}.bulk-csv{width:100%;min-height:180px;font-family:monospace}.locked-text{color:#b91c1c}
/* Champions keep their columns inside the card, including long player/season names. */
.champions-card,.champions-card .card-body{min-width:0;max-width:100%}.champions-table-scroll{max-width:100%;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.champions-table-scroll:focus-visible{outline:2px solid var(--green);outline-offset:2px}.champions-table{width:100%;min-width:440px;table-layout:fixed}.champions-col-sport{width:16%}.champions-col-season{width:28%}.champions-col-place{width:64px}.champions-col-correct{width:80px}.champions-table th,.champions-table td{vertical-align:top;overflow-wrap:anywhere}.champions-table .champions-place,.champions-table .champions-correct{text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}.champions-player a{display:block;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:560px){.champions-table{min-width:420px}.champions-table th,.champions-table td{padding:9px 6px;font-size:.875rem}.champions-col-sport{width:65px}.champions-col-season{width:112px}.champions-col-place{width:48px}.champions-col-correct{width:64px}}
/* Half-size site logo at the mobile navigation breakpoint. */
@media (max-width:820px){.brand img{height:64px;width:auto}}

/* Desktop: between leaderboard and comment form. Stacked/mobile: beneath picks. */
.picks-share--mobile{display:none}
.picks-share--desktop{margin:14px 0;min-width:0}
.picks-share-banner{display:block;width:100%;max-width:100%;height:56px;overflow:hidden;box-sizing:border-box;border:1px solid var(--border);border-radius:12px;text-decoration:none;background:var(--green-dark);box-shadow:0 1px 2px rgba(0,0,0,.03)}
.picks-share-banner img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 47%}
.picks-share-banner:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.picks-share-banner:hover{filter:brightness(1.06)}
@media(max-width:980px){
 .picks-share--desktop{display:none}
 .card .card-footer.picks-share--mobile{display:block;padding:12px 16px;overflow:hidden;background:var(--card)}
 .picks-share--mobile .picks-share-banner{width:100%}
}

/* Reply to any comment while keeping every conversation readable on a phone. */
#weekly-comments .comment-thread+.comment-thread{margin-top:16px}#weekly-comments .comment{scroll-margin-top:20px;min-width:0}#weekly-comments .comment:target{background:#f0f8f2;outline:2px solid #d7eadd;outline-offset:3px;border-radius:5px}.comment-reply-context{display:inline-block;font-size:.75rem;line-height:1.5;color:var(--muted);background:#edf4ef;border-radius:12px;padding:3px 8px;margin:0 0 8px;max-width:100%;overflow-wrap:anywhere}.comment-reply-context a{color:var(--green-dark);font-weight:700;text-underline-offset:3px}.reply-form[hidden]{display:none}.reply-form-label{display:block;font-size:.82rem;font-weight:750;margin-bottom:8px;overflow-wrap:anywhere}.reply-form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.comment-reply-cancel{border:1px solid transparent;background:transparent;color:var(--green-dark);font:inherit;font-size:.82rem;font-weight:700;padding:9px 12px;border-radius:6px;cursor:pointer}.comment-reply-cancel:hover{background:#e7f0e9}#weekly-comments button:focus-visible,#weekly-comments .comment-reply-context a:focus-visible{outline:3px solid #3e8258;outline-offset:3px}
.reply-form{scroll-margin-bottom:88px}

/* Keep reply branches together, with only two indented levels at every screen size. */
#weekly-comments .comment-reply,#weekly-comments .reply-form{margin-left:calc(var(--reply-level,1)*24px)}
@media(max-width:520px){#weekly-comments .comment-reply,#weekly-comments .reply-form{margin-left:calc(var(--reply-level,1)*12px)}}
