/* ===== Basenerd Theme (from old standings.html) ===== */
:root{
  --bg:#ffffff;
  --card:#ffffff;
  --muted:#5b6577;
  --text:#111318;
  --accent:#f0b90b;
  --row:#fafbfc;
  --rowAlt:#f4f6f9;
  --border:#e2e8f0;
  --header-bg:#ffffff;
  --header-text:#0b0e13;
  --link:#0b5cab;
  --link-hover:#084a8a;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:13px;
  line-height:1.35;
}

a{
  color:var(--link);
  text-decoration:none;
}
a:hover{ color:var(--link-hover); text-decoration:underline; }

.small{ font-size:11px; color:var(--muted); }
.muted{ color:var(--muted); }

hr{ border:0; border-top:1px solid var(--border); margin:16px 0; }

/* ===== Common layout helpers ===== */
.wrap{ max-width:1200px; margin:16px auto 56px; padding:0 12px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:900px){ .grid-2{ grid-template-columns:1fr; } }

.site-banner-wrap{
  height: 95px;
  border-bottom: 1px solid var(--border);
  background: #0b0e13;
  overflow: hidden;
}

.site-banner{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;        /* fills the 95px strip cleanly */
  object-position: center;  /* centers the crop */
}

/* shrink on mobile */
@media (max-width: 900px){
  .site-banner-wrap{ height: 70px; }
}


/* ===== Header (if you use a top header anywhere) ===== */
header.site-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  background:var(--header-bg);
  color:var(--header-text);
  border-bottom:2px solid var(--border);
}

header.site-header img{ height:32px; }
header.site-header .title{ margin:0; font-size:17px; letter-spacing:.2px; font-weight:600; }

/* ===== Cards ===== */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  margin-bottom:10px;
}

.card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  background:linear-gradient(180deg, #f6f8fb, #eef2f7);
  border-bottom:1px solid var(--border);
}

.card-title{
  font-size:13px;
  font-weight:700;
  letter-spacing:.2px;
  margin:0;
  color:#394150;
}

.card-subtitle{
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}

.card-body{ padding:12px; }

/* ===== Sub-sections (used for division blocks etc.) ===== */
.subcard{
  padding:10px 12px;
  border-top:1px solid var(--border);
  background:#fff;
}

.subcard-title{
  font-weight:700;
  font-size:12px;
  color:#394150;
  margin:0 0 8px 0;
  letter-spacing:.2px;
}

/* ===== Tables ===== */
.table-wrap{ width:100%; overflow:auto; }

table{ width:100%; border-collapse:collapse; table-layout:fixed; }

.table thead th,
thead th{
  text-align:left;
  font-size:10.5px;
  color:var(--muted);
  padding:6px 8px;
  border-bottom:1px solid var(--border);
  font-weight:600;
  font-family:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space:nowrap;
}

.table thead th.num,
thead th.num{ text-align:right; }

.table tbody tr:nth-child(odd),
tbody tr:nth-child(odd){ background:var(--row); }

.table tbody tr:nth-child(even),
tbody tr:nth-child(even){ background:var(--rowAlt); }

.table td,
td{
  padding:6px 8px;
  font-size:11.5px;
  vertical-align:middle;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

td.num{ text-align:right; font-variant-numeric:tabular-nums; font-family:"IBM Plex Mono", ui-monospace, Menlo, monospace; }

/* ===== Team rows ===== */
.teamcell{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.teamlogo{ height:16px; width:auto; flex:0 0 auto; }

.teamlink{
  font-weight:700;
  letter-spacing:.2px;
}

/* ===== Simple lists used on Teams grouped view ===== */
.team-list{ list-style:none; padding:0; margin:0; }
.team-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 0;
  border-bottom:1px solid rgba(226,232,240,.6);
}
.team-row:last-child{ border-bottom:0; }

/* ===== Errors ===== */
.error-banner{
  background:#fdecec;
  border:1px solid #f7b7b7;
  color:#7a1e1e;
  padding:8px 10px;
  border-radius:10px;
  margin:10px 0;
  font-size:12px;
}

/* ===== Site shell: header + sidebar nav ===== */

.app-shell{
  display:flex;
  min-height:100vh;
}

.side-nav{
  width:220px;
  padding:14px 12px;
  border-right:1px solid var(--border);
  background:linear-gradient(180deg, #f6f8fb, #ffffff);
  position:sticky;
  top:0;
  align-self:flex-start;
  height:100vh;
}

.side-nav a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  color:#1f2937;
  font-weight:600;
  text-decoration:none;
  margin-bottom:6px;
}

.side-nav a:hover{
  background:#eef2f7;
  text-decoration:none;
}

.side-nav a.active{
  background:#e9edf5;
  border:1px solid var(--border);
}

.main{
  flex:1;
  min-width:0;
}

.top-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--border);
  background:#ffffff;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.brand img{
  height:34px;
  width:auto;
}

.brand .brand-title{
  font-size:16px;
  font-weight:800;
  letter-spacing:.2px;
  color:#111318;
}

.page{
  max-width:1200px;
  margin:16px auto 56px;
  padding:0 12px;
}

/* Mobile: sidebar becomes top */
@media (max-width: 900px){
  .app-shell{ flex-direction:column; }
  .side-nav{
    width:100%;
    height:auto;
    position:static;
    border-right:0;
    border-bottom:1px solid var(--border);
    display:flex;
    gap:8px;
    overflow:auto;
  }
  .side-nav a{ white-space:nowrap; margin-bottom:0; }
}
/* ===== Restore base layout (sidebar + main side-by-side) ===== */
.layout{
  display:flex;
  min-height:100vh;
}

.sidebar{
  flex:0 0 240px;          /* sidebar width */
  border-right:1px solid var(--border);
  background:linear-gradient(180deg, #f6f8fb, #ffffff);
}

.sidebar-inner{
  position:sticky;
  top:0;
  height:100vh;
  padding:14px 12px;
  display:flex;
  flex-direction:column;
}

.main{
  flex:1 1 auto;
  min-width:0;             /* prevents overflow pushing layout */
}

.main-inner{ min-height:100vh; }

.container{
  max-width:1200px;
  margin:16px auto 56px;
  padding:0 12px;
}

.roster-section { margin-top: 24px; }
.section-title { font-size: 20px; margin-bottom: 12px; }

.roster-bucket { margin-bottom: 20px; }
.bucket-title { font-size: 16px; margin: 10px 0; opacity: 0.9; }

.roster-pos-group { margin: 10px 0 14px; }
.pos-header { font-weight: 600; margin-bottom: 6px; opacity: 0.9; }

.roster-grid { display: grid; gap: 6px; }
.roster-row {
  display: grid;
  grid-template-columns: 44px 1fr 70px 56px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.jersey { text-align: right; font-variant-numeric: tabular-nums; opacity: 0.85; }
.bt { text-align: right; font-variant-numeric: tabular-nums; opacity: 0.85; }

.status-badge {
  justify-self: end;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  opacity: 0.95;
}
.status-spacer { height: 1px; }

.article-img-icon {
  width: 50px;
  height: auto;
}

.article-img-tiny {
  width: 100px;
  height: auto;
}

.article-img-small {
  width: 220px;
  height: auto;
  border-radius: 6px;
}

.article-img-medium {
  width: 420px;
  height: auto;
}

.article-img-large {
  width: 700px;
  max-width: 100%;
  height: auto;
}

.home-nav-card{
  text-decoration:none;
  color:inherit;
  transition: transform .06s ease, box-shadow .06s ease, border-color .06s ease;
}

.home-nav-card:hover{
  transform: translateY(-1px);
  border-color: rgba(11,92,171,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  text-decoration:none;
}

/* ===== Player page ===== */
.player-header{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
}
.player-headshot{
  width:110px;
  height:110px;
  border-radius:14px;
  object-fit:cover;
  flex:0 0 auto;
  border:1px solid var(--border);
}
.player-meta{ min-width:0; }
.player-name{
  font-size:18px;
  font-weight:800;
  letter-spacing:.2px;
  margin-bottom:4px;
}
.player-lines > div{ line-height:1.25; margin:2px 0; }

.seg-toggle{
  display:flex;
  gap:6px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  padding:3px;
}
.seg{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  color:var(--muted);
}
.seg.active{
  background:#0b0e13;
  color:#fff;
}

.headline-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
}
@media(max-width:900px){
  .headline-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.headline-stat{
  border:1px solid rgba(226,232,240,.9);
  border-radius:12px;
  padding:8px 10px;
  background:#fff;
}
.headline-stat .k{
  font-family:"IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size:10px;
  color:var(--muted);
  margin-bottom:2px;
}
.headline-stat .v{
  font-family:"IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size:13px;
  font-weight:800;
}

.tabs{
  display:flex;
  gap:8px;
  margin:12px 0;
  flex-wrap:wrap;
}
.tab-btn{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:7px 12px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  color:#394150;
}
.tab-btn.active{
  background:#0b0e13;
  color:#fff;
  border-color:#0b0e13;
}
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

.select{
  border:1px solid var(--border);
  border-radius:10px;
  padding:6px 10px;
  background:#fff;
}
.btn{
  border:1px solid var(--border);
  border-radius:10px;
  padding:6px 10px;
  background:#fff;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{ border-color: rgba(11,92,171,.25); }

.tx-list{ display:flex; flex-direction:column; gap:10px; }
.tx-row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(226,232,240,.9);
  border-radius:12px;
  background:#fff;
}
.tx-date{ font-family:"IBM Plex Mono", ui-monospace, Menlo, monospace; color:var(--muted); }
.tx-desc{ min-width:0; }

/* Player header: photo fills card height */
.player-top .card-header{ padding:0; }
.player-header-card{ padding:0 !important; }
.player-header{
  display:flex;
  align-items:stretch;   /* key: makes headshot stretch full height */
  gap:14px;
}
.player-headshot{
  width:160px;
  height:100%;
  min-height:140px;      /* ensures the card has some height even if bio is short */
  object-fit:cover;
  border-radius:0;       /* photo feels like it is “part of the card” */
  border-right:1px solid var(--border);
}
.player-meta{
  padding:14px 14px 14px 0;
  min-width:0;
}
.player-name{
  font-size:18px;
  font-weight:900;
  margin-bottom:6px;
}
.player-lines > div{ margin:3px 0; line-height:1.2; }

/* Mini stat cards row */
.headline-grid{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap:10px;
}
@media(max-width:900px){
  .headline-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.headline-stat{
  border:1px solid rgba(226,232,240,.9);
  border-radius:12px;
  padding:8px 10px;
  background:#fff;
}
.headline-stat .k{
  font-family:"IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size:10px;
  color:var(--muted);
  margin-bottom:2px;
}
.headline-stat .v{
  font-family:"IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size:13px;
  font-weight:900;
}

/* Button match */
.btn{
  border:1px solid var(--border);
  border-radius:10px;
  padding:6px 10px;
  background:#fff;
  font-weight:900;
  cursor:pointer;
}

