@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root{
  --ink:#3A1620;
  --ink-dark:#200B10;
  --maroon:#5C2430;
  --maroon-light:#8A4756;
  --maroon-dark:#4A1D27;
  --red:#D93A3A;
  --paper:#FAF8F5;
  --ink-soft:#5A4A4E;
  --line: rgba(58,22,32,0.14);
  --max: 720px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Source Sans 3', system-ui, sans-serif;
  font-size:17px;
  line-height:1.7;
}

h1,h2,h3{
  font-family:'Playfair Display', Georgia, serif;
  font-weight:700;
  color:var(--ink);
  margin:0 0 0.5em;
}

a{ color:var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover{ color:var(--maroon); }

p{ margin:0 0 1.1em; color:var(--ink-soft); }

img{ max-width:100%; display:block; }

/* ---------- Header / Nav ---------- */

/* ---------- Top ribbon (sign in / account) ---------- */

.topbar{
  background:var(--maroon-light);
}
.topbar-inner{
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:1rem;
  padding:0.45rem 1.5rem;
}
.topbar .nav-auth-link{
  color:#fff;
  border-color:rgba(255,255,255,0.55);
}
.topbar .nav-auth-link:hover{
  border-color:#fff;
  color:#fff;
  background:rgba(255,255,255,0.15);
}
.topbar #nav-username{
  color:#fff;
  font-weight:600;
  font-size:0.9rem;
}

.site-header{
  background:#fff;
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--line);
}

.nav-wrap{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0.6rem 1.5rem;
}

.brand{
  display:flex;
  align-items:center;
  gap:0.7rem;
  text-decoration:none;
  margin-right:auto;
}
.brand img{ height:44px; width:auto; }
.brand span{
  font-family:'Playfair Display', Georgia, serif;
  color:var(--ink);
  font-size:1.15rem;
  font-weight:700;
}

.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--ink);
  font-size:1.3rem;
  padding:0.2rem 0.6rem;
  cursor:pointer;
}

nav.primary-nav ul{
  display:flex;
  align-items:center;
  gap:1.6rem;
  list-style:none;
  margin:0;
  padding:0;
}

nav.primary-nav a{
  color:var(--ink);
  text-decoration:none;
  font-size:0.97rem;
  font-weight:500;
  padding:0.4rem 0.1rem;
  border-bottom:2px solid transparent;
}
nav.primary-nav a:hover{ color:var(--red); }
nav.primary-nav a.active{
  color:var(--red);
  border-bottom-color:var(--red);
}

@media (max-width:760px){
  .topbar-inner{ justify-content:center; padding:0.4rem 1rem; }
  .nav-toggle{ display:inline-block; }
  nav.primary-nav{
    display:none;
    width:100%;
    padding:0 1.5rem 1rem;
  }
  nav.primary-nav.open{ display:block; }
  nav.primary-nav ul{ flex-direction:column; align-items:stretch; gap:0; }
  nav.primary-nav{ padding:0 1rem 0.6rem; }
  nav.primary-nav a{
    display:block;
    padding:0.7rem 0;
    border-bottom:1px solid var(--line);
  }
  .nav-wrap{ flex-wrap:wrap; gap:0.6rem; padding:0.5rem 1rem; }
  .brand{ flex:1 1 0; min-width:0; gap:0.55rem; }
  .brand img{ height:36px; flex-shrink:0; }
  .brand span{
    font-size:1.05rem;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .nav-toggle{ flex-shrink:0; line-height:1; padding:0.35rem 0.6rem; }
}

/* ---------- Hero (home page, with photo) ---------- */

.hero{
  position:relative;
  color:#fff;
  padding:6rem 1.5rem 4rem;
  background:
    linear-gradient(180deg, rgba(32,11,16,0.55) 0%, rgba(32,11,16,0.72) 100%),
    url('assets/hero.jpg') center 30% / cover no-repeat;
  min-height:420px;
  display:flex;
  align-items:flex-end;
}
.hero-inner{ max-width:var(--max); margin:0 auto; width:100%; }
.hero h1{
  color:#fff;
  font-size:clamp(2.6rem, 7vw, 4.2rem);
  line-height:1.05;
  margin-bottom:0.3rem;
  text-align:center;
}
.hero p.tagline{
  color:rgba(255,255,255,0.9);
  font-size:1.05rem;
  text-align:center;
  margin:0;
  letter-spacing:0.02em;
}

/* Photo hero for interior pages, same image as home, shorter */
.page-hero{
  position:relative;
  color:#fff;
  padding:5rem 1.5rem 3.2rem;
  background:
    linear-gradient(180deg, rgba(32,11,16,0.55) 0%, rgba(32,11,16,0.72) 100%),
    url('assets/hero.jpg') center 30% / cover no-repeat;
  min-height:260px;
  display:flex;
  align-items:flex-end;
}
.page-hero-inner{ max-width:var(--max); margin:0 auto; width:100%; }
.page-hero h1{ color:#fff; font-size:clamp(2.2rem, 6vw, 3.4rem); margin-bottom:0.4rem; text-align:center;}
.page-hero p{ color:rgba(255,255,255,0.88); max-width:60ch; margin:0 auto; text-align:center; }

/* ---------- Maroon band (About Us style section) ---------- */

.band{
  background:var(--maroon);
  color:#fff;
  padding:3rem 1.5rem;
}
.band-inner{
  max-width:1040px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:2.5rem;
  align-items:start;
}
.band h2{ color:#fff; }
.band p{ color:rgba(255,255,255,0.88); }
@media (max-width:760px){
  .band-inner{ grid-template-columns:1fr; }
}

/* ---------- Main content ---------- */

main{ max-width:var(--max); margin:0 auto; padding:2.8rem 1.5rem 4rem; }

section.block{ padding:1.8rem 0; border-top:1px solid var(--line); }
section.block:first-child{ border-top:none; padding-top:0; }

section.block h2{ font-size:1.5rem; margin-bottom:0.7rem; }

.card{
  background:#fff;
  border:1px solid var(--line);
  border-left:4px solid var(--red);
  padding:1.2rem 1.4rem;
  border-radius:2px;
  margin:1rem 0;
}
.card p:last-child{ margin-bottom:0; }

/* Video thumbnail card (YouTube-style, matches original) */
.video-frame{
  position:relative;
  padding-bottom:56.25%;
  height:0;
  overflow:hidden;
  border-radius:6px;
  margin:0;
  background:#000;
  box-shadow:0 6px 18px rgba(0,0,0,0.35);
}
.video-frame iframe{
  position:absolute; top:0; left:0; width:100%; height:100%; border:0;
}

/* CTA buttons */
.btn{
  display:inline-block;
  background:var(--red);
  color:#fff;
  font-weight:600;
  font-family:'Source Sans 3', sans-serif;
  letter-spacing:0.01em;
  padding:0.75rem 1.5rem;
  border-radius:3px;
  text-decoration:none;
  border:none;
}
.btn:hover{ background:var(--maroon); color:#fff; }
.btn-outline{
  background:transparent;
  border:1.5px solid #fff;
  color:#fff;
}
.btn-outline:hover{ background:rgba(255,255,255,0.12); color:#fff; }

/* File link (Drive doc/sheet) */
.file-link{
  display:flex;
  align-items:center;
  gap:0.7rem;
  border:1px solid var(--line);
  background:#fff;
  padding:0.9rem 1.1rem;
  text-decoration:none;
  margin:1rem 0;
  border-radius:2px;
}
.file-link img{ width:28px; height:28px; }
.file-link span{ color:var(--ink); font-weight:500; }
.file-link:hover{ border-color:var(--red); }

/* Schedule strip */
.schedule-strip{
  display:flex;
  flex-wrap:wrap;
  gap:0.6rem;
  margin:1.1rem 0 1.4rem;
}
.schedule-strip div{
  background:var(--ink);
  color:#fff;
  font-family:'Source Sans 3', sans-serif;
  font-weight:600;
  font-size:0.95rem;
  padding:0.55rem 0.9rem;
  border-radius:2px;
}
.schedule-strip div.playoff{ background:var(--red); color:#fff; }

/* Teams grid */
.teams-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:1rem;
  margin-top:1rem;
}
.team-card h3{
  font-size:1.05rem;
  margin-bottom:0.5rem;
  color:var(--red);
  font-family:'Source Sans 3', sans-serif;
  font-weight:600;
}
.team-card ul{ list-style:none; margin:0; padding:0; color:var(--ink-soft); }
.team-card li{ padding:0.15rem 0; }

/* Contact form embed */
.form-embed{
  border:1px solid var(--line);
  background:#fff;
  margin:1.2rem 0;
}
.form-embed iframe{ width:100%; height:920px; border:0; display:block; }
@media (max-width:600px){ .form-embed iframe{ height:1100px; } }

footer.site-footer{
  background:var(--ink-dark);
  color:rgba(255,255,255,0.65);
  padding:2.4rem 1.5rem;
  margin-top:2rem;
  font-size:0.92rem;
}
footer.site-footer .foot-inner{
  max-width:1040px; margin:0 auto;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem;
}
footer.site-footer a{ color:rgba(255,255,255,0.85); }

/* ---------- Auth controls (now in the topbar ribbon) ---------- */

.nav-auth-link{
  color:var(--ink);
  text-decoration:none;
  font-size:0.88rem;
  font-weight:600;
  background:none;
  border:1px solid var(--line);
  border-radius:4px;
  padding:0.35rem 0.85rem;
  cursor:pointer;
  font-family:'Source Sans 3', sans-serif;
}
.nav-user-box{
  display:none;
  align-items:center;
  gap:0.7rem;
}
.nav-signout{ padding:0.3rem 0.75rem; }

/* ---------- Auth forms ---------- */

.auth-tabs{
  display:flex;
  gap:0.5rem;
  margin-bottom:1.6rem;
  border-bottom:1px solid var(--line);
}
.auth-tabs .tab{
  background:none;
  border:none;
  font-family:'Playfair Display', Georgia, serif;
  font-size:1.1rem;
  font-weight:700;
  color:var(--ink-soft);
  padding:0.6rem 0.2rem 0.8rem;
  margin-right:1.2rem;
  cursor:pointer;
  border-bottom:3px solid transparent;
}
.auth-tabs .tab.active{ color:var(--ink); border-bottom-color:var(--red); }

.auth-form{
  display:flex;
  flex-direction:column;
  gap:1rem;
  max-width:420px;
}
.auth-form label{
  display:flex;
  flex-direction:column;
  gap:0.4rem;
  font-weight:600;
  color:var(--ink);
  font-size:0.95rem;
}
.auth-form input,
.auth-form textarea,
.auth-form select{
  font-family:'Source Sans 3', sans-serif;
  font-size:1rem;
  padding:0.6rem 0.7rem;
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--ink);
  background:#fff;
}
.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus{
  outline:none;
  border-color:var(--red);
}
.auth-form .btn{ align-self:flex-start; }
.link-button{
  background:none;
  border:none;
  color:var(--red);
  font-family:'Source Sans 3', sans-serif;
  font-size:0.9rem;
  font-weight:600;
  padding:0;
  text-align:left;
  cursor:pointer;
  align-self:flex-start;
  text-decoration:underline;
  text-underline-offset:2px;
}
.link-button:hover{ color:var(--maroon); }
.form-error{
  color:var(--red);
  font-size:0.92rem;
  margin:0;
  min-height:1.2em;
}

.btn-small{ padding:0.45rem 0.9rem; font-size:0.9rem; }

/* ---------- Polls ---------- */

.poll-card h2{ font-size:1.3rem; margin-bottom:0.2rem; }
.poll-date{
  font-weight:600;
  color:var(--ink-soft);
  margin-bottom:0.6rem;
  font-size:0.95rem;
}
.poll-status{
  display:inline-block;
  font-size:0.82rem;
  font-weight:600;
  padding:0.25rem 0.7rem;
  border-radius:999px;
  margin-bottom:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.03em;
}
.poll-status.open{ background:rgba(217,58,58,0.12); color:var(--red); }
.poll-status.booked{ background:rgba(92,36,48,0.15); color:var(--maroon); }
.poll-status.cancelled{ background:rgba(90,74,78,0.18); color:var(--ink-soft); }

.vote-buttons{
  display:flex;
  gap:0.6rem;
  flex-wrap:wrap;
  margin-top:0.8rem;
}
.vote-btn{
  font-family:'Source Sans 3', sans-serif;
  font-weight:600;
  font-size:0.92rem;
  padding:0.55rem 1.1rem;
  border-radius:4px;
  border:1.5px solid var(--line);
  background:#fff;
  color:var(--ink-soft);
  cursor:pointer;
}
.vote-btn:hover{ border-color:var(--ink); }
.vote-btn.selected.vote-going{ background:#2E7D4F; border-color:#2E7D4F; color:#fff; }
.vote-btn.selected.vote-maybe{ background:#C7891C; border-color:#C7891C; color:#fff; }
.vote-btn.selected.vote-not-going{ background:var(--red); border-color:var(--red); color:#fff; }

/* ---------- Polls: compact layout ---------- */

main.polls-main{ padding-top:1.6rem; padding-bottom:3rem; }
.polls-main .polls-section-heading{ margin-bottom:0.6rem; }
.poll-card{ padding:1rem 1.2rem; }
.poll-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:0.3rem 0.8rem;
}
.poll-head h2{ margin-bottom:0; }
.poll-head .poll-status{ margin-left:auto; }

.poll-head .poll-status{ margin-bottom:0; }
.poll-card .poll-date{ margin:0.2rem 0 0; }
.poll-desc{ margin:0.5rem 0 0; font-size:0.95rem; }

.vote-btn .vote-count{
  display:inline-block;
  min-width:1.5em;
  margin-left:0.35rem;
  padding:0 0.4rem;
  border-radius:999px;
  background:rgba(58,22,32,0.08);
  font-size:0.85rem;
  line-height:1.5;
}
.vote-btn.selected .vote-count{ background:rgba(255,255,255,0.25); }
.vote-btn.selected.vote-no-vote{ background:var(--ink-soft); border-color:var(--ink-soft); color:#fff; }

.link-toggle{
  background:none;
  border:none;
  padding:0;
  margin-top:0.6rem;
  font-family:'Source Sans 3', sans-serif;
  font-size:0.92rem;
  font-weight:600;
  color:var(--maroon);
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.link-toggle:hover{ color:var(--red); }
.link-toggle::after{ content:' \25BE'; text-decoration:none; display:inline-block; margin-left:0.2rem; }
.link-toggle[aria-expanded="true"]::after{ content:' \25B4'; }
.past-toggle{ display:block; margin:1.6rem 0 0; }

.vote-results{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:0.8rem;
  margin-top:0.6rem;
  padding-top:0.6rem;
  border-top:1px solid var(--line);
}
.vote-results[hidden], .past-polls[hidden]{ display:none; }
.results-col h3{
  font-family:'Source Sans 3', sans-serif;
  font-size:0.85rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.03em;
  margin:0 0 0.3rem;
  color:var(--ink);
}
.results-col h3 span{ font-weight:500; color:var(--ink-soft); }
.results-col.col-going h3{ color:#2E7D4F; }
.results-col.col-maybe h3{ color:#C7891C; }
.results-col.col-not-going h3{ color:var(--red); }
.results-col ul{ list-style:none; margin:0; padding:0; }
.results-col li{ font-size:0.9rem; line-height:1.45; padding:0.1rem 0; }
.results-col li.results-empty{ color:var(--ink-soft); }

@media (max-width:600px){
  main.polls-main{ padding:1rem 0.75rem 2.5rem; }
  .poll-card{ padding:0.9rem 0.9rem; margin:0.7rem 0; }
  .poll-card h2{ font-size:1.15rem; }
  /* Mobile: date + location on line 1; title + status on line 2 */
  .poll-head{ row-gap:0.35rem; }
  .poll-head h2.poll-heading{ display:contents; }
  .poll-head .poll-when,
  .poll-head .poll-title{ font-size:1.15rem; line-height:1.3; }
  .poll-head .poll-when{ flex:1 1 100%; }
  .poll-head .poll-sep{ display:none; }
  .poll-head .poll-title{ flex:1 1 auto; min-width:0; }
  .vote-buttons{ gap:0.4rem; flex-wrap:nowrap; }
  .vote-btn{ flex:1 1 0; min-width:0; padding:0.45rem 0.2rem; text-align:center; font-size:0.85rem; line-height:1.25; }
  .vote-btn .vote-count{ display:block; margin:0.2rem auto 0; width:fit-content; }
  .vote-results{ grid-template-columns:repeat(2, 1fr); gap:0.9rem 0.8rem; }
}

/* ---------- Admin panel ---------- */

.admin-poll-card h3{ font-size:1.2rem; margin-bottom:0.2rem; font-family:'Playfair Display', Georgia, serif; color:var(--ink); }
.admin-status-row{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  align-items:flex-end;
  margin:1rem 0;
  padding:1rem;
  background:var(--paper);
  border-radius:4px;
}
.admin-status-row label{
  display:flex;
  flex-direction:column;
  gap:0.3rem;
  font-weight:600;
  font-size:0.88rem;
  color:var(--ink);
}
.admin-status-row select,
.admin-status-row input{
  font-family:'Source Sans 3', sans-serif;
  padding:0.45rem 0.6rem;
  border:1px solid var(--line);
  border-radius:4px;
}
.admin-status-row label.title-label{ flex:1 1 100%; }
.save-msg{ margin:0; font-size:0.85rem; align-self:center; }
.vote-breakdown p{ margin-bottom:0.5rem; font-size:0.95rem; }
.vote-breakdown strong{ color:var(--ink); }

/* ---------- Poll sections & location ---------- */

.polls-section-heading{
  font-size:1.4rem;
  margin:2rem 0 1rem;
  padding-bottom:0.5rem;
  border-bottom:2px solid var(--line);
}
.polls-section-heading:first-child{ margin-top:0; }
.polls-section-past{
  color:var(--ink-soft);
}

.poll-location{
  display:inline-block;
  font-weight:600;
  color:var(--maroon);
}

.location-field{
  display:flex;
  flex-direction:column;
  gap:0.4rem;
}
.location-field .location-other{ margin-top:0; }

/* ---------- Admin subnav ---------- */

.admin-subnav{
  display:flex;
  gap:1.5rem;
  margin-bottom:2rem;
  border-bottom:1px solid var(--line);
  padding-bottom:0.8rem;
}
.admin-subnav a{
  color:var(--ink-soft);
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  padding-bottom:0.5rem;
  border-bottom:2px solid transparent;
}
.admin-subnav a:hover{ color:var(--ink); }
.admin-subnav a.active{ color:var(--red); border-bottom-color:var(--red); }

/* ---------- League admin: season picker ---------- */

.season-picker{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.8rem;
  margin-bottom:0.8rem;
}
.season-picker select{
  padding:0.5rem 0.7rem;
  border:1px solid var(--line);
  border-radius:4px;
  font-family:'Source Sans 3', sans-serif;
  font-size:0.95rem;
}
.league-new-season-form{
  display:flex;
  align-items:center;
  gap:0.7rem;
  margin-bottom:0.3rem;
}
.league-new-season-form input{
  padding:0.45rem 0.6rem;
  border:1px solid var(--line);
  border-radius:4px;
  font-family:'Source Sans 3', sans-serif;
  font-size:0.9rem;
  width:200px;
}

.league-season-settings-form{
  max-width:none;
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid var(--line);
}
.season-settings-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:1rem;
  margin:0.8rem 0 1rem;
}
.season-settings-grid label{
  display:flex;
  flex-direction:column;
  gap:0.35rem;
  font-weight:600;
  font-size:0.88rem;
  color:var(--ink);
}
.season-settings-grid input{
  font-family:'Source Sans 3', sans-serif;
  font-size:0.9rem;
  padding:0.5rem 0.6rem;
  border:1px solid var(--line);
  border-radius:4px;
}
.season-settings-wide{ grid-column:1 / -1; }

/* ---------- Standings table ---------- */

.standings-table{
  width:100%;
  border-collapse:collapse;
  font-size:0.95rem;
}
.standings-table th,
.standings-table td{
  text-align:left;
  padding:0.55rem 0.7rem;
  border-bottom:1px solid var(--line);
}
.standings-table th{
  font-family:'Playfair Display', Georgia, serif;
  color:var(--ink);
  font-size:0.85rem;
  font-weight:700;
  white-space:nowrap;
}
.standings-table tr:first-child td{ font-weight:700; color:var(--maroon); }

/* ---------- Schedule table ---------- */

.schedule-week{
  margin-bottom:2rem;
  background:#fff;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
}
.schedule-week h3{
  font-size:1.1rem;
  margin:0;
  padding:0.7rem 1rem;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.schedule-table{
  width:100%;
  border-collapse:collapse;
  font-size:0.95rem;
}
.schedule-table th,
.schedule-table td{
  text-align:left;
  padding:0.55rem 1rem;
  border-bottom:1px solid var(--line);
}
.schedule-table th{
  font-family:'Playfair Display', Georgia, serif;
  color:var(--ink-soft);
  font-size:0.8rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.03em;
}
.schedule-table tr:last-child td{ border-bottom:none; }
.schedule-table .score-cell{
  font-family:'Playfair Display', Georgia, serif;
  font-weight:700;
  color:var(--maroon);
  white-space:nowrap;
}
.game-score-tbd{ color:var(--ink-soft); font-weight:500; font-family:'Source Sans 3', sans-serif; }

/* ---------- League admin: teams ---------- */

.league-teams-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:0.8rem;
}
.league-team-row{ display:flex; gap:0.5rem; }
.league-team-row input{
  flex:1;
  padding:0.5rem 0.6rem;
  border:1px solid var(--line);
  border-radius:4px;
  font-family:'Source Sans 3', sans-serif;
}

/* ---------- League admin: roster ---------- */

.league-player-form{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:flex-end;
  max-width:none;
  gap:0.8rem;
  margin-bottom:1.5rem;
  padding-bottom:1.2rem;
  border-bottom:1px solid var(--line);
}
.league-player-form label{ min-width:140px; }
.checkbox-label{
  flex-direction:row !important;
  align-items:center;
  gap:0.4rem !important;
}

.roster-table{
  width:100%;
  border-collapse:collapse;
  font-size:0.9rem;
}
.roster-table th{
  text-align:left;
  padding:0.5rem 0.5rem;
  font-family:'Playfair Display', Georgia, serif;
  color:var(--ink);
  border-bottom:1px solid var(--line);
}
.roster-table td{
  padding:0.4rem 0.5rem;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}
.roster-table input[type="text"],
.roster-table input[type="email"],
.roster-table input[type="tel"],
.roster-table select{
  width:100%;
  padding:0.4rem 0.5rem;
  border:1px solid var(--line);
  border-radius:4px;
  font-family:'Source Sans 3', sans-serif;
  font-size:0.9rem;
}
.paid-cell{ text-align:center; }

/* ---------- League admin: schedule/scores ---------- */

.league-game-form{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:flex-end;
  max-width:none;
  gap:0.8rem;
  margin-bottom:1.5rem;
  padding-bottom:1.2rem;
  border-bottom:1px solid var(--line);
}
.league-game-form label{ min-width:130px; }

.league-week-heading{
  font-size:1.15rem;
  margin:1.4rem 0 0.6rem;
}
.league-game-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.5rem;
  padding:0.6rem 0.7rem;
  background:var(--paper);
  border-radius:4px;
  margin-bottom:0.5rem;
}
.league-game-row select,
.league-game-row input{
  padding:0.4rem 0.5rem;
  border:1px solid var(--line);
  border-radius:4px;
  font-family:'Source Sans 3', sans-serif;
  font-size:0.88rem;
}
.league-game-row .game-red-score,
.league-game-row .game-black-score{ width:4.5rem; }
.league-game-row .vs-label{ color:var(--ink-soft); font-weight:600; }

/* ---------- Profile admin ---------- */

.profiles-count{ font-size:1rem; color:var(--ink-soft); font-weight:500; }
.profile-filter{
  width:100%; max-width:320px; margin:0 0 1rem;
  padding:0.45rem 0.6rem; border:1px solid var(--line); border-radius:4px;
  font-family:'Source Sans 3', sans-serif;
}
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.profiles-table{ width:100%; border-collapse:collapse; font-size:0.95rem; }
.profiles-table th,
.profiles-table td{ text-align:left; padding:0.4rem 0.5rem; border-bottom:1px solid var(--line); vertical-align:middle; }
.profiles-table th{
  font-family:'Playfair Display', Georgia, serif; color:var(--ink);
  font-size:0.85rem; font-weight:700; white-space:nowrap;
}
.profiles-table .center{ text-align:center; }
.profiles-table .nowrap{ white-space:nowrap; }
.profiles-table input[type="text"],
.profiles-table select{
  font-family:'Source Sans 3', sans-serif;
  padding:0.35rem 0.5rem; border:1px solid var(--line); border-radius:4px; width:100%;
}
.profiles-table .name-input{ min-width:150px; }
.profiles-table .team-input{ min-width:150px; }
.profiles-table .division-select{ width:auto; min-width:4rem; }
.profiles-table .admin-check{ width:1.1rem; height:1.1rem; }
.profiles-table .save-profile{ min-width:5.5rem; }
.profiles-status{ min-height:1.3em; margin:0 0 0.5rem; font-size:0.9rem; }

/* Division / team separators inside poll results */
.results-col li.group-start{
  margin-top:0.35rem;
  padding-top:0.35rem;
  border-top:1px solid var(--line);
}

/* ---------- Admin: edit other players' votes (polls page) ---------- */
.poll-actions{ display:flex; align-items:center; gap:0.8rem; }
.admin-edit-toggle{
  margin:0.6rem 0 0 auto;
  background:none;
  border:1px solid var(--line);
  border-radius:999px;
  padding:0.2rem 0.75rem;
  font-family:'Source Sans 3', sans-serif;
  font-size:0.82rem;
  font-weight:600;
  color:var(--ink-soft);
  cursor:pointer;
}
.admin-edit-toggle:hover{ border-color:var(--maroon); color:var(--maroon); }
.admin-edit-toggle.active{ background:var(--maroon); border-color:var(--maroon); color:#fff; }
.poll-card.admin-editing{ outline:2px dashed var(--maroon-light); outline-offset:2px; }
.admin-edit-bar{
  display:flex; flex-wrap:wrap; align-items:center; gap:0.5rem 0.9rem;
  margin-top:0.6rem; padding:0.5rem 0.7rem;
  background:rgba(92,36,48,0.07); border-radius:6px;
  font-size:0.88rem;
}
.admin-edit-hint{ color:var(--ink-soft); flex:1 1 auto; }
.admin-edit-count{ font-weight:600; color:var(--ink); }
.admin-change-btn[disabled]{ opacity:0.45; cursor:not-allowed; }
.admin-pick{ display:flex; align-items:center; gap:0.35rem; cursor:pointer; }
.admin-pick input{ width:1rem; height:1rem; margin:0; accent-color:var(--maroon); }

.admin-vote-dialog{
  border:none; border-radius:10px; padding:1.2rem 1.3rem 0.9rem;
  width:min(420px, calc(100vw - 2rem));
  box-shadow:0 12px 40px rgba(32,11,16,0.3);
  color:var(--ink); background:var(--paper);
}
.admin-vote-dialog::backdrop{ background:rgba(32,11,16,0.45); }
.admin-vote-dialog h2{ font-size:1.25rem; margin:0 0 0.2rem; }
.admin-vote-dialog .dlg-poll{ margin:0 0 0.5rem; font-weight:600; color:var(--ink); }
.admin-vote-dialog .dlg-names{ margin:0 0 0.9rem; font-size:0.92rem; }
.admin-vote-dialog .dlg-choices{ display:grid; grid-template-columns:1fr 1fr; gap:0.5rem; }
.admin-vote-dialog .dlg-choices .vote-btn{ width:100%; }
.admin-vote-dialog .dlg-choices .vote-going:hover{ background:#2E7D4F; border-color:#2E7D4F; color:#fff; }
.admin-vote-dialog .dlg-choices .vote-maybe:hover{ background:#C7891C; border-color:#C7891C; color:#fff; }
.admin-vote-dialog .dlg-choices .vote-not-going:hover{ background:var(--red); border-color:var(--red); color:#fff; }
.admin-vote-dialog .dlg-choices .vote-no-vote:hover{ background:var(--ink-soft); border-color:var(--ink-soft); color:#fff; }
.admin-vote-dialog .dlg-msg{ min-height:1.2em; margin:0.6rem 0 0; font-size:0.88rem; color:var(--red); }
.admin-vote-dialog .dlg-foot{ text-align:right; }
