@font-face{
  font-family:"Inter";
  src:url("../fonts/InterVariable.woff2") format("woff2");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

.sls-ge-scoresheet{
  /* Modular layout: individual panels are cards. Keep the wrapper neutral. */
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  color:var(--sls-text);
  font-family:var(--sls-font);
}

.sls-ge-scorecard{
  font-family:var(--sls-scorecard-font, inherit);
}

.sls-ge-ss__topbar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:baseline;
  margin-bottom:12px;
}

.sls-ge-ss__title{ font-weight:800; font-size:18px; }
.sls-ge-ss__meta{ font-size:13px; opacity:.85; }
.sls-ge-ss__sep{ margin:0 6px; opacity:.5; }

.sls-ge-ss__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

@media(min-width: 980px){
  .sls-ge-ss__grid{ grid-template-columns: 1fr 1fr; }
  .sls-ge-ss__panel--wide{ grid-column: 1 / -1; }
}

.sls-ge-ss__panel{
  /* Match scorer page cards */
  background:var(--sls-surface);
  border:1px solid var(--sls-border);
  border-radius:var(--sls-radius);
  padding:12px;
  box-shadow:var(--sls-shadow-soft);
}
.sls-ge-ss__panel,
.sls-live-game__panel{
  border-top-color:var(--sls-accent, var(--sls-neutral));
  border-top-width:8px;
}

.sls-ge-ss__panel--linescore,
.sls-live-game__panel--linescore{--sls-accent:var(--sls-brand);}
.sls-ge-ss__panel--game-status,
.sls-live-game__panel--game-status{--sls-accent:var(--sls-brand);}
.sls-ge-ss__panel--scorecard-away,
.sls-live-game__panel--scorecard-away{--sls-accent:var(--sls-away-color, var(--sls-success));}
.sls-ge-ss__panel--scorecard-home,
.sls-live-game__panel--scorecard-home{--sls-accent:var(--sls-home-color, var(--sls-action));}
.sls-ge-ss__panel--scorecard-away,
.sls-ge-ss__panel--scorecard-home,
.sls-live-game__panel--scorecard-away,
.sls-live-game__panel--scorecard-home{
  border-top-width:1px;
  border-top-color:var(--sls-border);
}
.sls-ge-ss__panel--commentary,
.sls-live-game__panel--commentary,
.sls-live-game__panel--activity{--sls-accent:var(--sls-brand);}
.sls-ge-ss__panel--log,
.sls-live-game__panel--play-log{--sls-accent:var(--sls-neutral);}
.sls-live-game__panel--lineup-away{--sls-accent:var(--sls-away-color, var(--sls-success));}
.sls-live-game__panel--lineup-home{--sls-accent:var(--sls-home-color, var(--sls-action));}
.sls-public-rules-summary{--sls-accent:var(--sls-neutral);margin-bottom:12px;}
.sls-public-rules-summary .sls-rules-summary{display:flex;flex-direction:column;gap:10px;}
.sls-public-rules-summary .sls-rules-summary__grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.sls-public-rules-summary .sls-rules-summary__item{display:flex;flex-direction:column;gap:3px;padding:9px;border:1px solid var(--sls-border);border-radius:var(--sls-radius);background:var(--sls-surface-soft);min-width:0;}
.sls-public-rules-summary .sls-rules-summary__item span{font-size:11px;font-weight:900;text-transform:uppercase;color:var(--sls-muted);}
.sls-public-rules-summary .sls-rules-summary__item strong{font-size:13px;line-height:1.25;color:var(--sls-text);overflow-wrap:anywhere;}
.sls-public-rules-summary .sls-rules-summary__warnings{display:none;}
@media (max-width: 782px){.sls-public-rules-summary .sls-rules-summary__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Linescore panel should behave like a flush card and not stretch to match
   the height of the Situation panel (default grid behaviour is stretch). */
.sls-ge-ss__panel--linescore{
  padding:0;
  overflow:hidden;
  align-self:start;
}

.sls-ge-ss__panel h3{
  margin:0 0 10px 0;
  font-size:var(--sls-type-base);
  font-weight:900;
  line-height:1.2;
  letter-spacing:0;
  text-transform:uppercase;
}

.sls-ge-ss__linescore table{
  width:100%;
  /* Use active theme table styling where possible. */
  border-collapse:collapse;
  font-size:13px;
}
.sls-ge-ss__linescore th:first-child,
.sls-ge-ss__linescore td:first-child{ text-align:left; font-weight:700; }

.sls-ge-ss__situation{ display:flex; gap:14px; flex-wrap:wrap; align-items:flex-start; }
.sls-ge-ss__bases{ min-width:160px; }
.sls-ge-ss__batters{ font-size:13px; line-height:1.7; }

/* Situation base strip (1B/2B/3B) */
.sls-ge-ss__basestrip{ display:flex; gap:25px; align-items:center; }
.sls-ge-ss__basechip{ display:flex; align-items:center; gap:8px; font-weight:800; }
.sls-ge-ss__basechip-d{ width:16px; height:16px; border:1px solid rgba(15,23,42,.45); background:var(--sls-surface); transform:rotate(45deg); display:inline-block; border-radius:2px; }
.sls-ge-ss__basechip.is-on .sls-ge-ss__basechip-d{ background:var(--sls-text); border-color:var(--sls-text); }
.sls-ge-ss__basechip-l{ font-size:13px; opacity:.95; }

.sls-ge-ss__diamond{
  width:120px; height:120px; position:relative;
}
.sls-ge-ss__base{
  width:18px; height:18px; border:1px solid rgba(15,23,42,.35); background:var(--sls-surface); position:absolute;
  left:50%; top:50%;
  transform: translate(-50%,-50%) rotate(-45deg);
}
.sls-ge-ss__base--home{ left:50%; top:90%; }
.sls-ge-ss__base--first{ left:85%; top:50%; }
.sls-ge-ss__base--second{ left:50%; top:10%; }
.sls-ge-ss__base--third{ left:15%; top:50%; }
.sls-ge-ss__occ{ position:absolute; width:10px; height:10px; border-radius:50%; background:var(--sls-text); }
.sls-ge-ss__occ--home{ left:50%; top:90%; transform: translate(-50%,-50%); }
.sls-ge-ss__occ--first{ left:85%; top:50%; transform: translate(-50%,-50%); }
.sls-ge-ss__occ--second{ left:50%; top:10%; transform: translate(-50%,-50%); }
.sls-ge-ss__occ--third{ left:15%; top:50%; transform: translate(-50%,-50%); }

.sls-ge-ss__orders{ display:grid; grid-template-columns: 1fr; gap:12px; }
@media(min-width: 760px){ .sls-ge-ss__orders{ grid-template-columns: 1fr 1fr; } }

.sls-ge-ss__subhead{ font-weight:800; margin-bottom:6px; }

.sls-ge-ss__order{
  margin:0; padding-left:22px;
  font-size:13px;
  line-height:1.7;
}
.sls-ge-ss__order li{ padding:2px 4px; border-radius:var(--sls-radius); }
.sls-ge-ss__order li.is-current{ background: rgba(0,0,0,.06); font-weight:800; }

.sls-ge-ss__log{
  font-size:12px;
  line-height:1.6;
  max-height:none;
  overflow:visible;
  border:0;
  border-radius:0;
  padding:0;
  background: transparent;
}
.sls-ge-ss__log .row{ display:flex; gap:10px; padding:3px 0; border-bottom:1px dashed rgba(0,0,0,.10); }
.sls-ge-ss__log .row:last-child{ border-bottom:0; }
.sls-ge-ss__log .seq{ width:48px; opacity:.75; }
.sls-ge-ss__log .time{ width:64px; opacity:.75; }
.sls-ge-ss__log .type{ width:220px; font-weight:700; }
.sls-ge-ss__log .desc{ flex:1; opacity:.9; }

/* Scorecard grid */
.sls-ge-ss__scorecard{
  overflow-x:visible;
  overflow-y:hidden;
}

/* Inner scroll container (per-team) */
.sls-ge-scorecard-scroll{
  overflow-x:visible;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  width:100%;
  max-width:100%;
}

.sls-ge-scorecard{
  table-layout:fixed;
  width:100%;
  border-collapse:collapse;
  font-size:15px;
  min-width:0;
  background: transparent;
}

.sls-ge-scorecard th,
.sls-ge-scorecard td{
  border: var(--sls-border-w, 1px) solid var(--sls-border, #e3e6ea);
  padding:1px 1px;
  text-align:center;
  vertical-align:middle;
  font-size:15px;
  font-weight:400;
}

.sls-ge-scorecard td{
  border-color:#e3e6ea !important;
}

.sls-ge-scorecard thead th{
  border-color:var(--sls-header-border, rgba(255,255,255,.34)) !important;
}


/* Paper-style inning break rules */
.sls-ge-scorecard td.sls-td-innbreak-top,
.sls-ge-scorecard td.sls-td-innbreak-bottom{
  position:relative;
}
.sls-ge-scorecard td.sls-td-innbreak-top{
  border-top-width:3px !important;
  border-top-color:rgba(0,0,0,0.72) !important;
}
.sls-ge-scorecard td.sls-td-innbreak-bottom{
  border-bottom-width:3px !important;
  border-bottom-color:rgba(0,0,0,0.72) !important;
}

/* Keep scorecard headers closer to the clean box-score table treatment. */
.sls-ge-scorecard th{ padding:10px 8px; }

.sls-ge-scorecard th{
  position:sticky;
  top:0;
  background: var(--sls-scorecard-team-color, var(--sls-header-bg, #2e7d32));
  color: var(--sls-header-fg, #fff);
  z-index:1;
  font-size:13px;
  font-weight:700;
  height:40px;
  line-height:1.15;
  font-family:var(--sls-theme-font, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  letter-spacing:0;
}

/* Header borders should match the theme's header borders (can differ from body cell borders). */
.sls-ge-scorecard thead th{
  border-color: var(--sls-header-border, var(--sls-border, rgba(0,0,0,.10)));
  border-width: var(--sls-header-border-w, var(--sls-border-w, 1px));
}


.sls-ge-scorecard .col-name{ text-align:left; font-weight:600; min-width:0; width:20%; }
.sls-ge-scorecard .col-tot{ font-weight:600; width:3.4%; min-width:0; }
.sls-ge-scorecard .col-inning{ width:4.2%; min-width:0; }
.sls-ge-scorecard .col-stat{ width:3.4%; min-width:0; }

.sls-ge-scorecard .col-name{
  position:sticky;
  left:0;
  /* Solid backgrounds prevent "see-through" overlap when scrolling on mobile. */
  background:#fff;
  z-index:2;
  box-shadow: 2px 0 0 rgba(0,0,0,.10);
}

/* If theme applies row striping, keep the sticky name column consistent */
.sls-ge-scorecard tbody tr:nth-child(even) td{ background:#f7f7f7; }
.sls-ge-scorecard tbody tr:nth-child(odd) td{ background:#fff; }

/* Ensure sticky first column also applies in header */
.sls-ge-scorecard thead .col-name{
  background: var(--sls-scorecard-team-color, var(--sls-header-bg, #2e7d32));
  color: var(--sls-header-fg, #fff);
  z-index:3;
  padding-left:12px;
  padding-right:12px;
}
.sls-ge-scorecard .cell{
  display:block;
  min-height:60px;
}

/* Scorebox notation (Phase 1) */
.sls-ge-scorecard .pa-box{
  position:relative;
  width:100%;
  height:60px;
  border-radius:0;
  border:none;
  background: transparent;
  overflow:hidden;
}

/* Traditional scorebook basepath (Phase 2) */
.sls-ge-scorecard .pa-path{
  position:absolute;
  /* Larger and centred within the cell (avoid overlap with top-left text + count dots). */
  left:1px;
  right:1px;
  bottom:1px;
  top:13px;
  width:calc(100% - 2px);
  height:calc(100% - 14px);
  pointer-events:none;
}
.sls-ge-scorecard .pa-path polygon{
  fill:none;
  stroke: rgba(0,0,0,.22);
  stroke-width: 3;
}
.sls-ge-scorecard .pa-path polygon.fill{
  /* Darker fill for runs scored (between previous shade and black). */
  fill: rgba(0,0,0,.32);
  stroke: rgba(0,0,0,.22);
}
.sls-ge-scorecard .pa-path line{
  stroke: rgba(0,0,0,.55);
  stroke-width: 4;
  stroke-linecap: round;
}

.sls-ge-scorecard .pa-oc{
  position:absolute;
  left:4px;
  top:3px;
  font-weight:900;
  font-size:11px;
  line-height:1;
}

.sls-ge-scorecard .sls-ge-gamesummary-label{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
  width:100%;
  font-size:15px !important;
  font-weight:700 !important;
}

.sls-ge-scorecard .sls-ge-scorecard-team-dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  flex:0 0 auto;
  background:var(--sls-accent,var(--sls-theme-accent,#12613a));
}
.sls-ge-scorecard .sls-ge-scorecard-team-dot--away{ background:var(--sls-away-color,var(--sls-success,#16803a)); }
.sls-ge-scorecard .sls-ge-scorecard-team-dot--home{ background:var(--sls-home-color,var(--sls-action,#2563a9)); }

/* Out notation in bottom-right: scorebook reason (U3, 4-3, F8, L1...) */
.sls-ge-scorecard .pa-outnote{
  position:absolute;
  right:3px;
  bottom:2px;
  font-size:11px;
  font-weight:900;
  line-height:1;
  color: rgba(0,0,0,.75);
}

/* Out number marker: circled 1/2/3 */
.sls-ge-scorecard .pa-outcircle{
  position:absolute;
  left:50%;
  /* Place the out circle inside the diamond */
  top:56%;
  transform: translate(-50%, -50%);
  width:20px;
  height:20px;
  border-radius:50% !important;
  border:2px solid var(--sls-scorecard-out, #c62828);
  color:var(--sls-scorecard-out, #c62828);
  font-size:13px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  /* transparent fill (no "disc"), keep red outline */
  background: transparent;
}


/* Count (balls/strikes) */
.sls-ge-scorecard .pa-count{
  position:absolute;
  right:3px;
  top:3px;
  display:flex;
  gap:1px;
}
.sls-ge-scorecard .pa-col{
  display:flex;
  flex-direction:column;
  gap:1px;
}
.sls-ge-scorecard .pa-count .dot{
  width:6px;
  height:6px;
  border-radius:50%;
  border:1px solid rgba(0,0,0,.45);
  background: rgba(255,255,255,.85);
}
.sls-ge-scorecard .pa-count .dot.is-filled{
  background: rgba(0,0,0,.78);
}

/* Walk award note (e.g. BB to 2B) */
.sls-ge-scorecard .pa-award{
  position:absolute;
  left:4px;
  top:18px;
  font-size:9px;
  line-height:1;
  font-weight:800;
  opacity:.85;
}

/* RBI count bottom-left */
.sls-ge-scorecard .pa-rbi{
  position:absolute;
  left:4px;
  bottom:3px;
  font-size:10px;
  line-height:1;
  font-weight:900;
  opacity:.95;
}

/* Out notation bottom-right styled above (red). */

/* Substitution markers in the name column */
.sls-ge-scorecard .sls-ge-slot{ font-weight:600; margin-right:4px; color:var(--sls-theme-text,#111827); font-size:15px; }
.sls-ge-scorecard .sls-ge-arrow{ font-weight:900; }
.sls-ge-scorecard .sls-ge-arrow--out{ color:#c62828; }
.sls-ge-scorecard .sls-ge-arrow--in{ color:#2e7d32; }

/* Substitution divider within the inning grid: thick vertical rule to separate starter vs sub PAs */
.sls-ge-scorecard td.sls-td-subend{ border-right: 3px solid rgba(0,0,0,0.75) !important; }
.sls-ge-scorecard td.sls-td-after-sub{ border-left: 0 !important; }

/* Multi-line name / totals cells (substitutions share the same lineup slot row). */
.sls-ge-scorecard .sls-ge-namewrap{ display:flex; gap:8px; align-items:stretch; }
.sls-ge-scorecard .sls-ge-namewrap .sls-ge-slot{
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  width:22px;
  min-width:22px;
  max-width:22px;
  padding:0;
  font-weight:600;
}
.sls-ge-scorecard .sls-ge-occupants{ display:flex; flex-direction:column; gap:4px; width:100%; }
.sls-ge-scorecard .sls-ge-occupant{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:1px 0; line-height:1.2; }
.sls-ge-scorecard .sls-ge-occupant.has-next{ border-bottom:1px solid rgba(0,0,0,.08); padding-bottom:4px; margin-bottom:1px; }
.sls-ge-scorecard .sls-ge-occupant-label{ flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sls-ge-scorecard .sls-ge-occupant-meta{ display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; white-space:nowrap; }
.sls-ge-scorecard .sls-ge-subevent{ display:inline-flex; align-items:center; gap:3px; }
.sls-ge-scorecard .sls-ge-occupant.is-sub .sls-ge-occupant-label{ opacity:.92; }
.sls-ge-scorecard .sls-ge-occupant--stat{ justify-content:center; padding:1px 0; }
.sls-ge-scorecard .col-stat .sls-ge-occupants{ align-items:stretch; }
.sls-ge-scorecard .col-stat .sls-ge-occupant,
.sls-ge-scorecard .col-tot .sls-ge-occupant{
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:15px;
  font-weight:400;
}
.sls-ge-scorecard .col-stat .sls-ge-occupant.has-next,
.sls-ge-scorecard .col-tot .sls-ge-occupant.has-next{ border-bottom:1px solid rgba(0,0,0,.10); }
.sls-ge-scorecard .sls-ge-submark{ font-size:11px; font-weight:800; opacity:.9; }

.sls-ge-scorecard .sls-public-player-cell,
.sls-ge-scorecard .sls-ge-scorecard-player-cell{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  font-size:15px;
  font-weight:600;
  color:var(--sls-theme-text,#111827);
}
.sls-ge-scorecard .sls-public-player-cell__thumb,
.sls-ge-scorecard .sls-ge-scorecard-player-thumb{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#f1f5f9;
  color:var(--sls-theme-muted,#64748b);
  font-size:11px;
  font-weight:700;
  line-height:1;
  border:1px solid rgba(15,23,42,.08);
}
.sls-ge-scorecard .sls-public-player-cell__thumb img,
.sls-ge-scorecard .sls-ge-scorecard-player-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.sls-ge-scorecard .sls-ge-occupant.is-sub .sls-public-player-cell,
.sls-ge-scorecard .sls-ge-occupant.is-sub .sls-ge-scorecard-player-cell,
.sls-ge-scorecard .sls-ge-occupant.shares-slot .sls-public-player-cell,
.sls-ge-scorecard .sls-ge-occupant.shares-slot .sls-ge-scorecard-player-cell{
  gap:7px;
}
.sls-ge-scorecard .sls-ge-occupant.is-sub .sls-public-player-cell__thumb,
.sls-ge-scorecard .sls-ge-occupant.is-sub .sls-ge-scorecard-player-thumb,
.sls-ge-scorecard .sls-ge-occupant.shares-slot .sls-public-player-cell__thumb,
.sls-ge-scorecard .sls-ge-occupant.shares-slot .sls-ge-scorecard-player-thumb{
  width:17px;
  height:17px;
  flex:0 0 17px;
  font-size:8px;
}
.sls-ge-scorecard .sls-public-player-cell__name,
.sls-ge-scorecard .sls-ge-scorecard-player-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.sls-ge-scorecard tbody tr:nth-child(odd) td{
  background:#fff;
}

.sls-ge-scorecard tbody tr:nth-child(even) td{
  background:#f7f7f7;
}

.sls-ge-scorecard .sls-ge-gamesummaryrow td,
.sls-ge-scorecard .sls-ge-gamesummaryrow .col-name{
  font-family:inherit;
  font-size:15px !important;
  font-weight:700 !important;
  height:60px;
}
.sls-ge-scorecard .sls-ge-gamesummaryrow .col-name{
  text-align:right;
  color:var(--sls-theme-text, #111827);
  padding:8px 14px 8px 18px;
}
.sls-ge-scorecard .sls-ge-gamesummaryrow .sls-ge-gamesummary-label{
  justify-content:flex-end;
  width:100%;
}
.sls-ge-scorecard .sls-ge-gamesummaryrow strong{
  color:inherit;
  font-size:15px !important;
  line-height:1;
  font-weight:700 !important;
}
.sls-ge-scorecard .sls-ge-gamesummaryrow td.col-inning,
.sls-ge-scorecard .sls-ge-gamesummaryrow td.col-stat,
.sls-ge-scorecard .sls-ge-gamesummaryrow td.col-tot{
  font-size:15px !important;
  font-weight:700 !important;
}

.sls-ge-scorecard tbody tr:nth-child(odd) td,
.sls-ge-scorecard tbody tr:nth-child(odd) .col-name{ background:#fff !important; }
.sls-ge-scorecard tbody tr:nth-child(even) td,
.sls-ge-scorecard tbody tr:nth-child(even) .col-name{ background:#f7f7f7 !important; }

.sls-ge-scorecard tbody tr.sls-ge-gamesummaryrow td,
.sls-ge-scorecard tbody tr.sls-ge-gamesummaryrow .col-name{
  background:var(--sls-gamesummary-row-bg, rgba(37,99,235,.12)) !important;
}

.sls-ge-scorecard thead th,
.sls-ge-scorecard thead .col-name,
.sls-ge-scorecard thead .col-inning,
.sls-ge-scorecard thead .col-stat{
  font-size:13px;
  font-weight:700;
  font-family:var(--sls-theme-font, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  letter-spacing:0;
}

@media (max-width: 980px){
  .sls-ge-scorecard .sls-ge-occupant{ flex-direction:column; align-items:flex-start; gap:2px; }
  .sls-ge-scorecard .sls-ge-occupant-meta{ gap:5px; }
}

.sls-ge-scorecard .pa-oc--error{ color:#c62828; }

.sls-ge-ss__panel{ margin-bottom: 14px; }
.sls-ge-ss__panel:last-child{ margin-bottom:0; }

/* Prevent the sticky name column from collapsing on narrow screens */
.sls-ge-scorecard th.name,
.sls-ge-scorecard td.name{
  min-width: 180px;
}

@media(max-width: 820px){
  .sls-ge-ss__grid{
    grid-template-columns: 1fr;
  }
  .sls-ge-ss__scorecard{
    -webkit-overflow-scrolling: touch;
  }
}

@media(max-width: 760px){
  .sls-ge-ss__scorecard,
  .sls-ge-scorecard-scroll{
    overflow-x:auto;
  }

  .sls-ge-scorecard{
    min-width:1080px;
  }

  .sls-ge-scorecard .col-name{
    min-width:240px;
    width:240px;
  }

  .sls-ge-scorecard .col-inning{
    width:66px;
    min-width:66px;
  }

  .sls-ge-scorecard .col-stat,
  .sls-ge-scorecard .col-tot{
    width:42px;
    min-width:42px;
  }
}

/* Linescore, situation and commentary module refinements. */
.sls-ge-ss__panel--linescore { margin: 0; padding: 0; overflow: hidden; }
.sls-ge-ss__panel--linescore .sls-ge-card { margin: 0; }
.sls-ge-ss__panel--linescore .sls-ge-card--flush { margin: 0; }

/* Remove any unexpected extra whitespace under the linescore table. */
.sls-ge-ss__panel--linescore .ge-linescore{ margin:0; padding:0; line-height:0; }
.sls-ge-ss__panel--linescore .ge-linescore table{ line-height:normal; }

/* Situation two-column: even split + comfortable gap on wide screens */
.sls-ge-ss__situation--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
@media (max-width: 720px){
  .sls-ge-ss__situation--two{ grid-template-columns: 1fr; row-gap: 14px; }
}

/* Commentary (human readable) */
.sls-ge-ss__commentary{
  font-size:13px;
  line-height:1.7;
  max-height:none;
  overflow:visible;
  border:0;
  border-radius:0;
  padding:0;
  background: transparent;
}
.sls-ge-ss__commentary .row{ display:flex; gap:10px; padding:4px 0; border-bottom:1px dashed rgba(0,0,0,.10); }
.sls-ge-ss__commentary .row:last-child{ border-bottom:0; }
.sls-ge-ss__commentary .seq{ width:52px; opacity:.65; }
.sls-ge-ss__commentary .time{ width:64px; opacity:.65; }
.sls-ge-ss__commentary .desc{ flex:1; }

/* Shared Activity module, used by the scorer and public live game page. */
.sls-ge-activity-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
}

.sls-ge-activity-head h3{
  margin:0 !important;
}

.sls-ge-activity-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.sls-ge-activity-tab,
.sls-ge-activity-toggle{
  min-height:28px;
  padding:5px 9px;
  border:1px solid var(--sls-border);
  border-radius:var(--sls-radius);
  background:var(--sls-surface-soft);
  color:var(--sls-muted);
  cursor:pointer;
  font-family:var(--sls-font);
  font-size:12px;
  font-weight:600;
  line-height:1.1;
}

.sls-ge-activity-tab.is-active,
.sls-ge-activity-toggle.is-active{
  background:var(--sls-action);
  border-color:var(--sls-action);
  color:#fff;
}

.sls-ge-activity-panel{display:none;}
.sls-ge-activity-panel.is-active{display:block;}

.sls-ge-card--activity:not(.is-expanded) .sls-ge-ss__commentary .row:nth-last-child(n+21),
.sls-ge-card--activity:not(.is-expanded) .sls-ge-ss__log .row:nth-last-child(n+21){
  display:none;
}

.sls-ge-card--activity.is-expanded .sls-ge-ss__commentary,
.sls-ge-card--activity.is-expanded .sls-ge-ss__log{
  max-height:360px;
  overflow:auto;
}

.sls-ge-card--activity .sls-ge-ss__commentary,
.sls-ge-card--activity .sls-ge-ss__log{
  font-size:12px;
  line-height:1.45;
}

.sls-ge-card--activity .sls-ge-ss__commentary .row,
.sls-ge-card--activity .sls-ge-ss__log .row{
  padding:5px 0;
}

.sls-ge-card--activity .sls-ge-ss__log .type{
  width:auto;
  min-width:110px;
  font-weight:600;
}

.sls-ge-card--activity .sls-ge-ss__log .desc,
.sls-ge-card--activity .sls-ge-ss__commentary .desc{
  min-width:0;
}

.sls-ge-ss__situation--two{ align-items: stretch; }
.sls-ge-ss__sitcol--left,
.sls-ge-ss__sitcol--right{ display:flex; flex-direction:column; min-height:100%; }
.sls-ge-ss__sitcol--left{ justify-content:space-between; }
.sls-ge-ss__sitmeta{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
}
.sls-ge-ss__batters{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
}
.sls-ge-ss__commentary .seq{ display:none; }

/* Give shortcode scorecard modules a roomier first column on frontend pages. */
.sls-ge-scoresheet--module-scorecard-home .sls-ge-scorecard .col-name,
.sls-ge-scoresheet--module-scorecard-away .sls-ge-scorecard .col-name{
  min-width:0;
  width:20%;
}

@media(max-width: 760px){
  .sls-ge-scoresheet--module-scorecard-home .sls-ge-scorecard .col-name,
  .sls-ge-scoresheet--module-scorecard-away .sls-ge-scorecard .col-name{
    min-width:240px;
    width:240px;
  }
}


/* Live game layout: panels use the same canonical module markup/renderers. */
.sls-live-game{display:flex;flex-direction:column;gap:14px}
.sls-live-game__heading h2{margin:0 0 4px 0;font-size:28px;line-height:1.2}
.sls-live-game__row{display:grid;grid-template-columns:1fr;gap:14px;align-items:start}
.sls-live-game__row--two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.sls-live-game__row--full{display:block}
.sls-live-game__cell{min-width:0}
.sls-live-game__cell--half{min-width:0}
.sls-live-game__cell--full{grid-column:1/-1;display:block;width:100%}
.sls-live-game__row--full > .sls-live-game__cell--full{width:100%}
.sls-live-game__panel{box-sizing:border-box;min-width:0;width:100%;height:100%}
.sls-live-game__panel--linescore{padding:0;overflow:hidden}
.sls-live-game__panel--linescore > h3{display:none}
.sls-live-game__panel--linescore .ge-linescore{margin:0;padding:0}
.sls-live-game__panel--scorecard-home,
.sls-live-game__panel--scorecard-away{padding:0;overflow:hidden}
.sls-live-game__panel--scorecard-home > h3,
.sls-live-game__panel--scorecard-away > h3{padding:12px 12px 0;margin:0 0 8px}
.sls-live-game__panel--scorecard-home .sls-ge-ss__scorecard,
.sls-live-game__panel--scorecard-away .sls-ge-ss__scorecard{width:100%;margin:0}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard-scroll,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard-scroll{display:flex;align-items:flex-start;width:100%;max-width:100%;margin:0;overflow:visible;-webkit-overflow-scrolling:touch;line-height:0}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard-scroll,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard-scroll{scrollbar-width:none}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard-scroll::-webkit-scrollbar,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard-scroll::-webkit-scrollbar{width:0;height:0}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard{width:100%;min-width:0;margin:0 !important;table-layout:fixed;font-size:15px;line-height:normal}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard th,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard th{padding:10px 8px;font-size:15px;font-weight:800;line-height:1.15}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard td,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard td{padding:1px 1px;font-size:15px;font-weight:400}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .col-name,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .col-name{min-width:0;width:20%}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard th.col-inning,
.sls-live-game__panel--scorecard-home .sls-ge-scorecard td.col-inning,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard th.col-inning,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard td.col-inning{width:4.2%;min-width:0}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard th.col-stat,
.sls-live-game__panel--scorecard-home .sls-ge-scorecard td.col-stat,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard th.col-stat,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard td.col-stat,
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .col-tot,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .col-tot{width:3.4%;min-width:0}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .cell,
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .pa-box,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .cell,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .pa-box{height:60px;min-height:60px}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .pa-oc,
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .pa-award,
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .pa-rbi,
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .pa-outnote,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .pa-oc,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .pa-award,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .pa-rbi,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .pa-outnote{font-size:11px}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .pa-path,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .pa-path{width:calc(100% - 2px);height:calc(100% - 14px);left:1px;top:13px}
.sls-live-game__panel--scorecard-home .sls-ge-scorecard .col-tot.col-stat,
.sls-live-game__panel--scorecard-away .sls-ge-scorecard .col-tot.col-stat{font-size:15px !important;font-weight:400}
.sls-live-game-layout .sls-ge-ss__grid{display:block}
@media (max-width: 980px){.sls-live-game__row--two{grid-template-columns:1fr}}

@media (max-width: 760px){
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard-scroll,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard-scroll{
    overflow-x:auto;
    scrollbar-width:auto;
  }

  .sls-live-game__panel--scorecard-home .sls-ge-scorecard-scroll::-webkit-scrollbar,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard-scroll::-webkit-scrollbar{
    width:auto;
    height:8px;
  }

  .sls-live-game__panel--scorecard-home .sls-ge-scorecard,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard{
    min-width:1080px;
  }

  .sls-live-game__panel--scorecard-home .sls-ge-scorecard .col-name,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard .col-name{
    min-width:240px;
    width:240px;
  }

  .sls-live-game__panel--scorecard-home .sls-ge-scorecard th.col-inning,
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard td.col-inning,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard th.col-inning,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard td.col-inning{
    width:46px;
    min-width:46px;
  }

  .sls-live-game__panel--scorecard-home .sls-ge-scorecard th.col-stat,
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard td.col-stat,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard th.col-stat,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard td.col-stat,
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard .col-tot,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard .col-tot{
    width:46px;
    min-width:46px;
  }
}

/* Public live game design layer. */
.sls-public-live-ui-modern{
  --sls-font:var(--sls-theme-font, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --sls-brand:var(--sls-theme-accent, var(--wp--preset--color--primary, #12613a));
  --sls-brand-strong:var(--sls-theme-ink, var(--wp--preset--color--secondary, #0b4d2c));
  --sls-purple:var(--sls-neutral);
  background:#f5f7f9;
  color:var(--sls-text);
  font-family:var(--sls-font);
  font-size:13px;
  line-height:1.45;
}

.sls-public-live-ui-modern .sls-public-live-header,
.sls-public-live-ui-modern .sls-public-rules-summary,
.sls-ge-live-ui-modern{
  font-family:var(--sls-font);
}

.sls-public-live-ui-modern .sls-public-scoresheet-wrap{
  width:min(calc(100vw - 24px),1600px);
  max-width:1600px;
  padding:14px;
}

.sls-public-live-ui-modern .sls-public-live-header{
  margin-bottom:12px;
  padding:12px 14px;
  border:1px solid #d6d6d6;
  border-top:8px solid var(--sls-neutral);
  border-radius:0;
  background:#fff;
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 12px 26px rgba(15,23,42,.055);
}

.sls-public-live-ui-modern .sls-public-live-title{
  font-size:18px;
  font-weight:600;
  letter-spacing:0;
}

.sls-public-live-ui-modern .sls-public-live-sub{
  margin-top:2px;
  font-size:13px;
  font-weight:500;
  color:var(--sls-muted);
}

.sls-public-live-ui-modern .sls-public-rules-summary{
  --sls-accent:var(--sls-neutral);
  margin-bottom:12px;
  border-top-width:8px;
  box-shadow:0 1px 2px rgba(15,23,42,.05);
}

.sls-public-live-ui-modern .sls-public-rules-summary h3{
  margin:0 0 8px;
  font-family:var(--sls-font) !important;
  font-size:16px;
  font-weight:800;
  line-height:1.2;
  text-transform:none;
  color:var(--sls-brand);
}

.sls-public-live-ui-modern .sls-public-rules-summary .sls-rules-summary__item span{
  font-size:11px;
  font-weight:600;
}

.sls-public-live-ui-modern .sls-public-rules-summary .sls-rules-summary__item strong{
  font-size:13px;
  font-weight:600;
}

.sls-ge-live-ui-modern{
  --sls-font:var(--sls-theme-font, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --sls-bg:#f5f7f9;
  --sls-surface:#ffffff;
  --sls-surface-soft:#f8fafc;
  --sls-border:#d6d6d6;
  --sls-border-strong:#b8c6d1;
  --sls-text:#111827;
  --sls-muted:#5c6b79;
  --sls-brand:var(--sls-theme-accent, var(--wp--preset--color--primary, #12613a));
  --sls-brand-strong:var(--sls-theme-ink, var(--wp--preset--color--secondary, #0b4d2c));
  --sls-purple:var(--sls-neutral);
  --sls-radius:0;
  --sls-shadow-soft:0 2px 7px rgba(15,23,42,.16);
  font-size:13px;
  line-height:1.45;
}

.sls-ge-live-ui-modern .sls-ge-ss__grid{
  gap:12px;
}

.sls-ge-live-ui-modern .sls-ge-ss__panel,
.sls-ge-live-ui-modern .sls-live-game__panel{
  width:100%;
  min-height:100%;
  border:1px solid #d6d6d6;
  border-top-width:8px;
  border-radius:0;
  background:#fff;
  box-shadow:var(--sls-shadow-soft);
}

.sls-ge-live-ui-modern .sls-ge-ss__panel h3,
.sls-ge-live-ui-modern .sls-live-game__panel h3{
  margin:0 0 8px;
  font-family:var(--sls-font) !important;
  font-size:16px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:0;
  text-transform:none;
  color:var(--sls-brand);
}

.sls-ge-live-ui-modern .sls-live-game{
  gap:12px;
}

.sls-ge-live-ui-modern .sls-live-game__row{
  gap:12px;
  align-items:start;
}

.sls-ge-live-ui-modern .sls-live-game__row--two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.sls-ge-live-ui-modern .sls-live-game__cell{
  display:flex;
  min-width:0;
  align-items:flex-start;
}

.sls-ge-live-ui-modern .sls-live-game__panel--linescore{
  padding:0;
  overflow:hidden;
}

.sls-ge-live-ui-modern .sls-ge-linescore-table{
  font-size:13px;
}

.sls-ge-live-ui-modern .sls-ge-linescore-table th,
.sls-ge-live-ui-modern .sls-ge-linescore-table td{
  height:42px;
  padding:9px 6px;
  vertical-align:middle;
}

.sls-ge-live-ui-modern .sls-ge-linescore-table th,
.sls-ge-live-ui-modern .sls-ge-linescore-table td:first-child,
.sls-ge-live-ui-modern .sls-ge-linescore-table .sls-ge-linescore-total{
  font-weight:600;
}

.sls-ge-live-ui-modern .sls-live-game__panel--game-status,
.sls-ge-live-ui-modern .sls-live-game__panel--commentary,
.sls-ge-live-ui-modern .sls-live-game__panel--play-log,
.sls-ge-live-ui-modern .sls-live-game__panel--lineup-home,
.sls-ge-live-ui-modern .sls-live-game__panel--lineup-away{
  padding:12px;
}

.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-home,
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-away{
  padding:0;
  overflow:hidden;
}

.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-home .sls-ge-scorecard,
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-away .sls-ge-scorecard{
  background:#fff;
}

.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-home .sls-ge-scorecard th,
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-away .sls-ge-scorecard th{
  font-size:15px;
  font-weight:800;
  line-height:1.15;
}

.sls-ge-live-ui-modern .sls-ge-ss__batters,
.sls-ge-live-ui-modern .sls-ge-ss__commentary,
.sls-ge-live-ui-modern .sls-ge-ss__log{
  font-size:13px;
}

.sls-ge-live-ui-modern .sls-ge-ss__basechip,
.sls-ge-live-ui-modern .sls-ge-ss__subhead,
.sls-ge-live-ui-modern .sls-ge-ss__order li.is-current{
  font-weight:600;
}

@media (max-width:980px){
  .sls-ge-live-ui-modern .sls-live-game__row--two{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .sls-public-live-ui-modern .sls-public-scoresheet-wrap{
    padding:8px;
  }
  .sls-public-live-ui-modern .sls-public-live-title{
    font-size:17px;
  }
  .sls-ge-live-ui-modern .sls-ge-linescore-table{
    font-size:12px;
  }
  .sls-ge-live-ui-modern .sls-ge-linescore-table th,
  .sls-ge-live-ui-modern .sls-ge-linescore-table td{
    height:36px;
    padding:6px 4px;
  }
}

/* Public live/game scorecard consistency layer. */
.sls-public-live-ui-modern,
.sls-ge-live-ui-modern{
  --sls-radius:0;
  --sls-shadow-soft:0 2px 7px rgba(15,23,42,.16);
}

.sls-public-live-ui-modern .sls-public-live-header,
.sls-ge-live-ui-modern .sls-ge-ss__panel,
.sls-ge-live-ui-modern .sls-live-game__panel{
  border-radius:var(--sls-radius);
  box-shadow:var(--sls-shadow-soft);
}

.sls-public-live-ui-modern :where(h1,h2,h3,h4,p,span,td,th,a,button),
.sls-ge-live-ui-modern :where(h1,h2,h3,h4,p,span,td,th,a,button){
  letter-spacing:0;
}

.sls-public-live-ui-modern .sls-public-live-title,
.sls-ge-live-ui-modern .sls-ge-ss__title,
.sls-ge-live-ui-modern .sls-live-game__heading h2{
  font-weight:600;
}

.sls-public-live-ui-modern .sls-public-rules-summary,
.sls-ge-live-ui-modern .sls-public-rules-summary{
  --sls-accent:var(--sls-neutral);
}

/* Square front-end display refresh shared with the scorer console. */
.sls-public-live-ui-modern,
.sls-ge-live-ui-modern{
  --sls-radius:0;
  --sls-shadow-soft:0 2px 7px rgba(15,23,42,.16);
  --sls-border:#d6d6d6;
  background:#fff;
}

.sls-public-live-ui-modern *,
.sls-ge-live-ui-modern *{
  border-radius:0 !important;
}

.sls-public-live-ui-modern .sls-ge-scorecard .pa-outcircle,
.sls-ge-live-ui-modern .sls-ge-scorecard .pa-outcircle,
.sls-public-live-ui-modern .sls-ge-scorecard .sls-ge-scorecard-team-dot,
.sls-ge-live-ui-modern .sls-ge-scorecard .sls-ge-scorecard-team-dot{
  border-radius:50% !important;
}

.sls-public-live-ui-modern .sls-public-live-header,
.sls-ge-live-ui-modern .sls-ge-ss__panel,
.sls-ge-live-ui-modern .sls-live-game__panel{
  border:1px solid #d6d6d6;
  border-top:8px solid var(--sls-accent, var(--sls-brand));
  background:#fff;
  box-shadow:var(--sls-shadow-soft) !important;
}

.sls-public-live-ui-modern .sls-public-live-header :where(h1,h2,h3),
.sls-ge-live-ui-modern .sls-ge-ss__panel :where(h3),
.sls-ge-live-ui-modern .sls-live-game__panel :where(h3),
.sls-ge-live-ui-modern .sls-ge-card :where(h3),
.sls-ge-live-ui-modern .sls-ge-control-title,
.sls-ge-live-ui-modern .sls-ge-control-title-row,
.sls-ge-live-ui-modern .sls-ge-spray-title{
  margin:0 0 8px;
  color:var(--sls-accent, var(--sls-brand));
  font-family:var(--sls-font) !important;
  font-size:16px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:0;
  text-transform:none;
}

.sls-public-live-ui-modern .sls-live-game__panel--lineup-away,
.sls-ge-live-ui-modern .sls-live-game__panel--lineup-away{
  --sls-accent:var(--sls-away-color, var(--sls-success, #16803a));
  border-top-color:var(--sls-away-color, var(--sls-success, #16803a));
}

.sls-public-live-ui-modern .sls-live-game__panel--lineup-home,
.sls-ge-live-ui-modern .sls-live-game__panel--lineup-home{
  --sls-accent:var(--sls-home-color, var(--sls-action, #2563a9));
  border-top-color:var(--sls-home-color, var(--sls-action, #2563a9));
}

.sls-public-live-ui-modern .sls-live-game__panel--lineup-away :where(h3),
.sls-ge-live-ui-modern .sls-live-game__panel--lineup-away :where(h3){
  color:var(--sls-away-color, var(--sls-success, #16803a));
}

.sls-public-live-ui-modern .sls-live-game__panel--lineup-home :where(h3),
.sls-ge-live-ui-modern .sls-live-game__panel--lineup-home :where(h3){
  color:var(--sls-home-color, var(--sls-action, #2563a9));
}

.sls-ge-live-ui-modern .sls-ge-ss__panel--scorecard-away,
.sls-ge-live-ui-modern .sls-ge-ss__panel--scorecard-home,
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-away,
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-home{
  border-top:1px solid #d6d6d6;
}

.sls-ge-live-ui-modern .sls-ge-ss__panel--scorecard-away :where(h3),
.sls-ge-live-ui-modern .sls-ge-ss__panel--scorecard-home :where(h3),
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-away :where(h3),
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-home :where(h3){
  color:var(--sls-text, var(--sls-theme-text, #111827));
}

.sls-public-scorecards-print-body .sls-ge-ss__panel--scorecard-away > h3,
.sls-public-scorecards-print-body .sls-ge-ss__panel--scorecard-home > h3,
.sls-public-scoresheet-body .sls-ge-ss__panel--scorecard-away > h3,
.sls-public-scoresheet-body .sls-ge-ss__panel--scorecard-home > h3,
.sls-ge-live-ui-modern .sls-ge-ss__panel--scorecard-away > h3,
.sls-ge-live-ui-modern .sls-ge-ss__panel--scorecard-home > h3,
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-away > h3,
.sls-ge-live-ui-modern .sls-live-game__panel--scorecard-home > h3{
  color:var(--sls-theme-text, #111827) !important;
}

.sls-ge-live-ui-modern .sls-ge-scorecard th{
  padding:10px 8px;
  height:40px;
  background:var(--sls-scorecard-team-color, var(--sls-header-bg, var(--sls-brand))) !important;
  color:var(--sls-header-fg, #fff) !important;
  font-size:15px;
  font-weight:800;
  line-height:1.15;
}

.sls-ge-live-ui-modern .sls-ge-scorecard thead .col-name{
  padding-left:12px;
  padding-right:12px;
}

.sls-ge-live-ui-modern .sls-ge-linescore-table{
  border-collapse:collapse;
}

.sls-ge-live-ui-modern .sls-ge-linescore-table th{
  background:var(--sls-brand, #12613a) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.34);
}

.sls-ge-live-ui-modern .sls-ge-linescore-table td{
  background:#fff;
  border:1px solid #e3e6ea;
}

.sls-ge-live-ui-modern :where(table, th, td, .sls-public-table-wrap, .sls-ge-scorecard, .sls-ge-linescore-table){
  border-color:#d6d6d6;
}

.sls-ge-live-ui-modern .sls-ge-linescore-table tbody tr:nth-child(even) td{
  background:#f7f7f7;
}

/* Final Inter regular pass for public live pages, scorecards and reports. */
.sls-ge-live-ui-modern,
.sls-ge-live-ui-modern :where(p,span,li,td,th,label,button,input,select,textarea,a,strong,b),
.sls-public-scoresheet-body,
.sls-public-scoresheet-body :where(p,span,li,td,th,label,button,input,select,textarea,a,strong,b){
  font-weight:400 !important;
}

.sls-ge-live-ui-modern,
.sls-public-scoresheet-body{
  font-size:12px;
}

.sls-ge-live-ui-modern :where(.sls-live-game__panel h3,.sls-ge-ss__panel h3,.sls-ge-scorecard th,.sls-ge-linescore-table th),
.sls-public-scoresheet-body :where(.sls-live-game__panel h3,.sls-ge-ss__panel h3,.sls-ge-scorecard th,.sls-ge-linescore-table th){
  font-size:14px !important;
  font-weight:400 !important;
}

.sls-ge-live-ui-modern :where(.sls-ge-scorecard td,.sls-ge-linescore-table td),
.sls-public-scoresheet-body :where(.sls-ge-scorecard td,.sls-ge-linescore-table td){
  font-size:12px !important;
  font-weight:400 !important;
}

.sls-ge-live-ui-modern .sls-live-game__panel > h3.sls-ge-section-title,
.sls-ge-live-ui-modern .sls-ge-ss__panel > h3.sls-ge-section-title,
.sls-ge-live-ui-modern .sls-ge-card > h3.sls-ge-section-title,
.sls-public-game-page .sls-public-game-live > h3.sls-ge-section-title,
.sls-public-game-page .sls-public-game-stats h3.sls-ge-section-title{
  margin:0 0 8px !important;
  color:var(--sls-accent, var(--sls-brand, #12613a)) !important;
  font-family:var(--sls-font, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  font-size:var(--sls-type-lg, 16px) !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

.sls-ge-live-ui-modern .sls-live-game__panel--lineup-away > h3.sls-ge-section-title{
  color:var(--sls-away-color, var(--sls-accent, #16803a)) !important;
}

.sls-ge-live-ui-modern .sls-live-game__panel--lineup-home > h3.sls-ge-section-title{
  color:var(--sls-home-color, var(--sls-accent, #2563a9)) !important;
}

.sls-ge-live-ui-modern .sls-live-game__panel--activity > h3.sls-ge-section-title,
.sls-public-game-page .sls-public-game-live > h3.sls-ge-section-title,
.sls-public-game-page .sls-public-game-stats h3.sls-ge-section-title{
  color:var(--sls-theme-text, var(--sls-text, #111827)) !important;
}

.sls-public-game-page .sls-public-game-live{
  padding:12px;
}

.sls-public-game-page .sls-public-game-live > .sls-public-title{
  padding:0 !important;
  margin:0 0 4px !important;
}

.sls-public-game-page .sls-public-game-live > .sls-public-subtitle,
.sls-public-game-page .sls-public-game-live > .sls-public-muted{
  padding:0 !important;
  margin:0 0 12px !important;
}

.sls-public-game-page .sls-public-game-live .sls-live-game-layout{
  margin:0 !important;
}

@media (min-width:761px){
  .sls-ge-scoresheet,
  .sls-ge-ss__grid,
  .sls-ge-ss__panel,
  .sls-ge-ss__scorecard,
  .sls-ge-scorecard-scroll,
  .sls-live-game,
  .sls-live-game__row,
  .sls-live-game__cell,
  .sls-live-game__panel{
    max-width:100%;
    min-width:0;
    overflow-x:clip !important;
  }

  .sls-ge-scorecard{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
    font-size:clamp(8px,.72vw,12px) !important;
  }

  .sls-ge-scorecard th,
  .sls-ge-scorecard td{
    box-sizing:border-box;
    min-width:0 !important;
    max-width:none !important;
    padding-left:clamp(1px,.28vw,4px) !important;
    padding-right:clamp(1px,.28vw,4px) !important;
    overflow:hidden;
  }

  .sls-ge-scorecard .col-name,
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard .col-name,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard .col-name{
    width:clamp(116px,19%,220px) !important;
    min-width:0 !important;
    max-width:none !important;
  }

  .sls-ge-scorecard th.col-inning,
  .sls-ge-scorecard td.col-inning,
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard th.col-inning,
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard td.col-inning,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard th.col-inning,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard td.col-inning{
    width:3.9% !important;
    min-width:0 !important;
    max-width:none !important;
  }

  .sls-ge-scorecard th.col-stat,
  .sls-ge-scorecard td.col-stat,
  .sls-ge-scorecard .col-tot,
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard th.col-stat,
  .sls-live-game__panel--scorecard-home .sls-ge-scorecard td.col-stat,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard th.col-stat,
  .sls-live-game__panel--scorecard-away .sls-ge-scorecard td.col-stat{
    width:3.45% !important;
    min-width:0 !important;
    max-width:none !important;
  }

  .sls-ge-scorecard .cell,
  .sls-ge-scorecard .pa-box{
    height:clamp(25px,3vw,42px) !important;
    min-height:clamp(25px,3vw,42px) !important;
  }

  .sls-ge-scorecard .sls-public-player-cell{
    gap:clamp(2px,.45vw,7px) !important;
    min-width:0;
    font-size:clamp(8px,.72vw,12px) !important;
  }

  .sls-ge-scorecard .sls-public-player-cell__thumb{
    width:clamp(13px,1.8vw,26px) !important;
    height:clamp(13px,1.8vw,26px) !important;
    flex:0 0 clamp(13px,1.8vw,26px) !important;
  }

  .sls-ge-scorecard .sls-public-player-cell__name,
  .sls-ge-scorecard .sls-ge-slot,
  .sls-ge-scorecard .sls-ge-occupant-label{
    min-width:0;
    white-space:normal !important;
    overflow:hidden;
    text-overflow:clip;
  }

  .sls-ge-scorecard .pa-oc,
  .sls-ge-scorecard .pa-award,
  .sls-ge-scorecard .pa-rbi,
  .sls-ge-scorecard .pa-outnote,
  .sls-ge-scorecard .pa-count{
    font-size:clamp(6px,.62vw,9px) !important;
  }

  .sls-ge-scorecard .pa-outcircle{
    width:clamp(12px,1.4vw,18px) !important;
    height:clamp(12px,1.4vw,18px) !important;
    font-size:clamp(7px,.72vw,12px) !important;
  }
}

@media (max-width:760px){
  .sls-ge-scorecard-scroll,
  .sls-ge-ss__scorecard{
    max-width:100%;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}

/* Remove only the outside vertical borders from score/scoresheet tables. */
.sls-ge-linescore-table :where(th,td):first-child,
.sls-ge-scorecard :where(th,td):first-child{
  border-left:0 !important;
}

.sls-ge-linescore-table :where(th,td):last-child,
.sls-ge-scorecard :where(th,td):last-child{
  border-right:0 !important;
}
