html:has(#sm-nfl) { color-scheme: light dark; }
body #sm-nfl {
  --bg: light-dark(#f0f3f6, #1c1c1e);
  --surface: light-dark(#fff, #29292c);
  --ink: light-dark(#193447, #f2f2f7);
  --muted: light-dark(#63717d, #b9bec7);
  --rule: light-dark(#dce3e9, #45464c);
}
body #sm-nfl .football-brand { color: light-dark(#193e67, #e3e8f0); }
body .football-footer { color: light-dark(#63717d, #b9bec7); }
#sm-nfl .game-controls {
  min-width: 0;
  background: light-dark(#f4f6f8, #272729);
  padding: 14px 16px;
  border-radius: 8px;
  color: light-dark(#193447, #eee);
}
#sm-nfl .game-controls:has(#sm-tabs:empty) { display: none; }
#sm-nfl .game-controls #sm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
#sm-nfl .game-controls #sm-tabs button,
#sm-nfl .game-controls #sm-filters button {
  appearance: none;
  background: light-dark(#fff, #1d1d20);
  color: light-dark(#455365, #c7cbd1);
  font: 500 13px/18px Arial, sans-serif;
  min-height: 38px;
  cursor: pointer;
}
#sm-nfl .game-controls #sm-tabs button {
  padding: 7px 16px;
  border: 1px solid light-dark(#c9cfd7, #494b50);
  border-radius: 999px;
}
#sm-nfl .game-controls #sm-tabs button[aria-pressed=true] {
  background: #305a88;
  color: white;
  border-color: #305a88;
  font-weight: 700;
}
#sm-nfl .game-controls #sm-filters {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  margin: 12px 0 0;
  overflow: hidden;
  border: 1px solid light-dark(#c9cfd7, #48494d);
  border-radius: 8px;
}
#sm-nfl .game-controls #sm-filters button {
  border: 0;
  border-radius: 0;
  padding: 6px;
  min-height: 36px;
}
#sm-nfl .game-controls #sm-filters button + button { border-left: 1px solid light-dark(#c9cfd7, #48494d); }
#sm-nfl .game-controls #sm-filters button[aria-pressed=true] {
  background: light-dark(#596575, #444);
  color: white;
  font-weight: 700;
}
#sm-nfl .game-controls button:focus-visible { outline: 2px solid light-dark(#193447, white); outline-offset: -3px; }
@media (max-width:600px) {
  #sm-nfl .game-controls { padding: 10px; }
  #sm-nfl .game-controls #sm-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  #sm-nfl .game-controls #sm-tabs button { padding:5px 2px; }
  #sm-nfl .game-controls #sm-filters { margin-top:8px; }
}

body #sm-nfl { max-width: 800px; }
body .football-footer { box-sizing: border-box; max-width: 800px; }
body #sm-nfl .football-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 900;
}
body #sm-nfl .football-brand::before {
  content: "";
  width: 44px;
  height: 18px;
  flex: none;
  background: #000 url("/logos/SM.png") 50% 49% / 113% auto no-repeat;
  border-radius: 2px;
}
@media (min-width: 601px) {
  body #sm-nfl main, body #sm-nfl header, body #sm-nfl .sport-nav, body .football-footer {
    padding-inline: 20px;
  }
}
@media (max-width: 600px) {
  body #sm-nfl .football-brand::before { width: 38px; height: 16px; }
}

#sm-nfl .game-controls #sm-filters[hidden] { display:none; }
#sm-nfl .nfl-teams {
  --gv-text:var(--ink); --gv-muted:var(--muted); --gv-border:var(--rule);
  --gv-soft:light-dark(#edf0f3,#3a3c42);
  font-variant-numeric:tabular-nums;
}
#sm-nfl .nfl-teams { position:relative; }
#sm-nfl .panel:has(.nfl-teams) > .panelhead { display:none; }
#sm-nfl .nfl-teams h3 { margin:0 0 4px; }
#sm-nfl .nfl-teams .nt-heading h3 { margin:0; white-space:nowrap; }
#sm-nfl .nfl-teams .nt-breakdown { margin-bottom:8px; padding-bottom:8px; border-bottom:1px solid var(--rule); }
.nt-heading { display:flex; align-items:baseline; gap:2px 12px; flex-wrap:wrap; }
.nt-legend { display:flex; flex-wrap:wrap; gap:2px 8px; color:var(--muted); font-size:11px; }
.nt-legend span { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.nt-legend i { width:8px; height:8px; border-radius:2px; }
.nt-breakdown:first-of-type { --nt-0:light-dark(#2570cf,#5ea7ff); --nt-1:light-dark(#008675,#20c7a6); }
.nt-breakdown:nth-of-type(2) { --nt-0:light-dark(#963cd1,#bf76fa); --nt-1:light-dark(#dc591d,#ff884f); --nt-2:light-dark(#b18600,#f0c34a); }
.nt-color-0 { background:var(--nt-0); }
.nt-color-1 { background:var(--nt-1); }
.nt-color-2 { background:var(--nt-2); }
.nt-unsplit { height:100%; border-radius:3px; background:var(--muted); }
.nt-stack-row { display:grid; grid-template-columns:4ch minmax(0,1fr) 4ch; align-items:center; gap:10px; margin-top:4px; }
.nt-stack-row b { font-size:12px; }
.nt-stack-row strong { text-align:right; }
.nt-stack { display:flex; align-items:stretch; min-width:0; height:25px; }
#sm-nfl .nt-stack .nt-segment { display:flex; align-items:center; justify-content:center; flex:none; min-width:0; margin:0; padding:0; border:0; border-radius:0; cursor:pointer; container-type:inline-size; color:light-dark(white,#101826); }
#sm-nfl .nt-stack .nt-segment:first-child { border-start-start-radius:3px; border-end-start-radius:3px; }
#sm-nfl .nt-stack .nt-segment:last-child { border-start-end-radius:3px; border-end-end-radius:3px; }
#sm-nfl .nfl-teams .gv-stat-track { background:transparent; }
#sm-nfl .nt-stack .nt-segment:is(:hover,:focus-visible) { filter:brightness(1.15); outline:2px solid light-dark(#15244a,#fff); outline-offset:-2px; }
#sm-nfl .nfl-teams .nt-fact {
  margin:0 0 8px; color:var(--ink);
  font-size:13px; line-height:1.4; font-weight:650;
}
.nt-tooltip {
  position:absolute; z-index:10; pointer-events:none; max-width:100%; box-sizing:border-box;
  padding:7px 10px; border:1px solid #52617a; border-radius:6px;
  background:#19263d; color:#fff; box-shadow:0 3px 10px #0005; font-size:12px; line-height:1.45;
}
.nt-tooltip strong, .nt-tooltip span { display:block; }
#sm-nfl .nfl-teams .gv-stat-line { grid-template-columns:4ch minmax(0,1fr) 9ch; gap:10px; height:20px; font-size:12px; }
#sm-nfl .nfl-teams .gv-better { --compare-accent:light-dark(var(--compare-light), var(--compare-dark)); }
#sm-nfl .nfl-teams .gv-stat-pair h4 { margin:0 0 5px; }
#sm-nfl .nfl-teams .gv-stat-line strong { white-space:nowrap; }
@media (max-width:600px) {
  #sm-nfl .game-controls #sm-tabs:has([data-view="teams"]) { grid-template-columns:repeat(12,minmax(0,1fr)); }
  #sm-nfl .game-controls #sm-tabs:has([data-view="teams"]) button { grid-column:span 3; }
  #sm-nfl .game-controls #sm-tabs:has([data-view="teams"]) button:nth-child(n+5) { grid-column:span 4; }
}

#sm-nfl .nfl-teams .gv-stat-pair { padding-block:4px; }
#sm-nfl .nfl-teams .gv-stat-pair h4 { margin-bottom:2px; }

#sm-nfl .nt-stack .nt-color-1, #sm-nfl .nt-stack .nt-color-2 { color:#101826; }
#sm-nfl .nt-stack .nt-value { display:none; font-size:11px; line-height:1; font-weight:800; pointer-events:none; }
@container (min-width: 12px) { #sm-nfl .nt-stack .nt-value[data-digits="1"] { display:inline; } }
@container (min-width: 19px) { #sm-nfl .nt-stack .nt-value[data-digits="2"] { display:inline; } }
@container (min-width: 25px) { #sm-nfl .nt-stack .nt-value[data-digits="3"] { display:inline; } }
#sm-nfl .nfl-teams .nt-info {
  width:16px; height:16px; padding:0; border:1px solid var(--muted); border-radius:50%;
  background:transparent; color:var(--ink); font:600 10px/1 system-ui; cursor:help; vertical-align:middle;
}

#sm-nfl .nt-summary { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
#sm-nfl .nfl-teams .nt-summary .nt-fact { margin:0; }
#sm-nfl .nt-share { flex:none; position:relative; margin-inline-start:auto; }
#sm-nfl .nt-share summary {
  display:flex; align-items:center; gap:4px; padding:3px 8px; border:1px solid var(--rule);
  border-radius:6px; cursor:pointer; font-size:12px; font-weight:700; list-style:none;
}
#sm-nfl .nt-share summary::-webkit-details-marker { display:none; }
#sm-nfl .nt-share:not([open]) .nt-share-menu { display:none; }
#sm-nfl .nt-share-menu {
  position:absolute; z-index:12; right:0; top:calc(100% + 4px); min-width:132px; padding:4px;
  border:1px solid var(--rule); border-radius:7px; background:var(--surface); color:var(--ink);
  box-shadow:0 4px 12px #0003;
}
#sm-nfl .nt-share-menu button {
  width:100%; text-align:left; padding:6px 8px; border:0; border-radius:4px;
  background:none; color:inherit; font:inherit; font-size:12px; cursor:pointer; white-space:nowrap;
}
#sm-nfl .nt-share-menu button:is(:hover,:focus-visible) { background:var(--gv-soft,light-dark(#edf0f3,#3a3c42)); }
#sm-nfl .nt-share-menu [role=status]:not(:empty) { display:block; padding:3px 8px; font-size:11px; }
