/* Standings Today Hub — frontend */
.sth-wrap{--sth-border:#e5e7eb;--sth-head:#f3f4f6;--sth-text:#111827;--sth-muted:#6b7280;--sth-accent:#1d4ed8;--sth-pos:#15803d;--sth-neg:#b91c1c;--sth-line:#f59e0b;font-size:15px;color:var(--sth-text);margin:0 0 1.5em}
.sth-summary{font-size:1.05em;line-height:1.55;margin:0 0 1em}
.sth-toolbar{display:flex;justify-content:flex-end;margin:0 0 .6em}
.sth-toggle{display:inline-flex;border:1px solid var(--sth-border);border-radius:999px;overflow:hidden}
.sth-btn{background:#fff;border:0;padding:.35em .9em;font:inherit;font-size:.85em;cursor:pointer;color:var(--sth-muted)}
.sth-btn.is-active{background:var(--sth-text);color:#fff}
.sth-conf-heading{margin:1.2em 0 .5em;font-size:1.2em}
.sth-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 1.2em;border:1px solid var(--sth-border);border-radius:8px}
.sth-table{width:100%;border-collapse:collapse;margin:0;font-size:.95em}
.sth-table caption{text-align:left;font-weight:700;padding:.6em .8em;background:var(--sth-head);border-bottom:1px solid var(--sth-border);caption-side:top}
.sth-table th,.sth-table td{padding:.5em .55em;border-bottom:1px solid var(--sth-border);text-align:center;white-space:nowrap}
.sth-table thead th{font-size:.78em;letter-spacing:.03em;color:var(--sth-muted);background:#fff;cursor:pointer;user-select:none}
.sth-table thead th abbr{text-decoration:none;border:0}
.sth-table thead th.is-sorted{color:var(--sth-accent)}
.sth-table thead th.is-sorted::after{content:" \25BE";font-size:.9em}
.sth-table thead th.is-sorted.is-asc::after{content:" \25B4"}
.sth-table tbody tr:last-child td{border-bottom:0}
.sth-table tbody tr:nth-child(even){background:#fafafa}
.sth-th-rank,.sth-td-rank{width:2.4em;color:var(--sth-muted);font-size:.9em}
.sth-th-team,.sth-td-team{text-align:left}
.sth-td-team{display:flex;align-items:center;gap:.5em;min-width:12em}
.sth-logo{width:20px;height:20px;object-fit:contain;flex:none}
.sth-name{font-weight:600}
.sth-code{display:none;font-weight:600}
.sth-div{margin-left:auto;font-size:.75em;color:var(--sth-muted)}
.sth-td-pct{font-variant-numeric:tabular-nums}
.is-pos{color:var(--sth-pos)}
.is-neg{color:var(--sth-neg)}
.sth-move{font-size:.6em;margin-left:.25em;vertical-align:middle}
.sth-move.is-up{color:var(--sth-pos)}
.sth-move.is-down{color:var(--sth-neg)}
.sth-row.is-highlight td{background:#eff6ff}
.sth-row.is-playoff-line td{border-bottom:2px dashed var(--sth-line)}
.sth-wrap.is-simple .sth-col-full{display:none}
.sth-updated{font-size:.85em;color:var(--sth-muted);margin:.2em 0 0}
.sth-movers{margin:0 0 1.2em}
.sth-movers h3{font-size:1.05em;margin:0 0 .4em}
.sth-movers ul{margin:0;padding-left:1.2em}
.sth-notice{padding:.8em 1em;background:#fef3c7;border-radius:6px}
.sth-faq h3{margin-top:1.2em}
@media (max-width:640px){
  .sth-wrap{font-size:14px}
  .sth-table th,.sth-table td{padding:.45em .4em}
  .sth-name{display:none}
  .sth-code{display:inline}
  .sth-td-team{min-width:5em}
  .sth-div{display:none}
}

/* v0.2 virtual pages */
.sth-crumbs{font-size:.85em;color:var(--sth-muted,#6b7280);margin:0 0 .8em}
.sth-crumbs a{color:inherit;text-decoration:none}
.sth-links{list-style:none;padding:0;margin:0 0 1.2em}
.sth-links li{padding:.3em 0;border-bottom:1px solid #eee;display:flex;align-items:center;gap:.5em;flex-wrap:wrap}
.sth-links small{color:#6b7280}
.sth-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.8em;margin:0 0 1.2em}
.sth-card{display:flex;gap:.7em;align-items:flex-start;border:1px solid #e5e7eb;border-radius:8px;padding:.7em .8em;font-size:.95em}
.sth-card .sth-logo{width:28px;height:28px}
.sth-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.6em;margin:0 0 1.4em}
.sth-stat{border:1px solid #e5e7eb;border-radius:8px;padding:.55em .7em;background:#fafafa}
.sth-stat-k{display:block;font-size:.72em;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}
.sth-stat-v{display:block;font-weight:700;font-size:1.1em}
.sth-results{padding-left:1.2em;margin:0 0 1.2em}
.sth-race{margin:0 0 .6em;padding-left:1.6em}
.sth-race li.is-highlight{background:#eff6ff;border-radius:4px;padding:.15em .4em}
.sth-race li.is-playoff-line{border-bottom:2px dashed #f59e0b;padding-bottom:.3em;margin-bottom:.3em}
.sth-po td{text-align:left}
.sth-po .sth-td-rank{text-align:center;font-weight:700;color:#111}
.sth-tag{font-size:.7em;color:#1d4ed8;margin-left:.15em}
.sth-section td{background:#f3f4f6;font-weight:700;font-size:.85em;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}
.sth-po tr.is-out td{opacity:.6}
.sth-legend{font-size:.85em;color:#6b7280}
.sth-faq-heading{margin-top:1.4em}

/* v0.3 ESPN-style nav + table polish */
.sth-nav{margin:0 0 1em}
.sth-tabs{display:flex;list-style:none;margin:0 0 .8em;padding:0;border-bottom:2px solid #e5e7eb;gap:0;overflow-x:auto}
.sth-tabs li{flex:1 0 auto;text-align:center}
.sth-tabs a{display:block;padding:.7em .9em;color:#6b7280;text-decoration:none;font-weight:600;font-size:.95em;border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap}
.sth-tabs li.is-active a{color:#111827;border-bottom-color:#dc2626}
.sth-tabs a:hover{color:#111827}
.sth-nav-row{display:flex;align-items:center;gap:.8em;flex-wrap:wrap}
.sth-seg{display:inline-flex;border:1px solid #d1d5db;border-radius:999px;overflow:hidden;background:#fff}
.sth-seg a{padding:.45em 1.1em;font-size:.9em;font-weight:600;color:#374151;text-decoration:none}
.sth-seg a.is-active{background:#111827;color:#fff}
.sth-season select{border:1px solid #d1d5db;border-radius:999px;padding:.4em 2em .4em .9em;font:inherit;font-size:.9em;background:#fff}
.sth-table thead th{font-weight:700;color:#374151;font-size:.8em;padding:.7em .55em;border-bottom:2px solid #e5e7eb;background:#fff}
.sth-table thead th[data-sort]{text-decoration:underline;text-underline-offset:3px;text-decoration-color:#9ca3af}
.sth-table th.is-sorted,.sth-table td.is-sorted-col{background:#eef2ff}
.sth-table td{padding:.6em .55em}
.sth-td-w,.sth-td-l,.sth-td-t{font-weight:600}
.sth-table caption{font-size:1em;background:#fff;border-bottom:2px solid #e5e7eb}
.sth-table-wrap{border:0;border-radius:0}
.sth-th-rank,.sth-td-rank,.sth-th-team,.sth-td-team{position:sticky;background:#fff;z-index:1}
.sth-th-rank,.sth-td-rank{left:0}
.sth-th-team,.sth-td-team{left:2.4em;box-shadow:4px 0 6px -4px rgba(0,0,0,.12)}
.sth-table tbody tr:nth-child(even) .sth-td-rank,.sth-table tbody tr:nth-child(even) .sth-td-team{background:#fafafa}
.sth-row.is-highlight .sth-td-rank,.sth-row.is-highlight .sth-td-team{background:#eff6ff}
.sth-td-team{display:table-cell}
.sth-td-team .sth-logo{vertical-align:middle;margin-right:.45em}
.sth-td-team .sth-name,.sth-td-team .sth-code{vertical-align:middle}
.sth-td-team .sth-div{float:right;margin-left:.6em;line-height:1.9}
@media (max-width:640px){.sth-tabs a{padding:.6em .6em;font-size:.85em}.sth-seg a{padding:.4em .8em}}

/* v0.3.1 ESPN parity fixes */
.sth-tabs{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.sth-tabs::-webkit-scrollbar{display:none}
.sth-table{font-size:12.5px;line-height:1.3}
.sth-table th,.sth-table td{padding:8px 5px}
.sth-table thead th{font-size:11px}
.sth-table tbody tr{height:36px}
.sth-td-team{white-space:nowrap;min-width:180px}
.sth-td-team img.sth-logo,.sth-links img.sth-logo,.sth-card img.sth-logo{display:inline-block!important;width:20px;height:20px;max-width:none;margin:0 .45em 0 0;vertical-align:middle;float:none}
.sth-td-team .sth-name{display:inline;font-weight:600}
.sth-td-team .sth-div{float:none;display:inline-block;margin-left:.6em;line-height:1}
.sth-table caption{font-size:.95em;padding:.55em .7em}
.sth-conf-heading{font-size:1.1em;margin:1em 0 .4em}
.sth-summary{font-size:.98em}
@media (max-width:640px){
  .sth-td-team{min-width:5.5em}
  .sth-td-team .sth-name{display:none}
  .sth-td-team .sth-code{display:inline;font-weight:600}
  .sth-td-team .sth-div{display:none}
  .sth-table th,.sth-table td{padding:7px 4px}
  .sth-th-team,.sth-td-team{left:2.2em}
}

/* ===== v0.4 design pass (Kadence) ===== */
.sth-wrap{--sth-bg:#fff;--sth-bg-alt:#f8fafc;--sth-border:#e5e7eb;--sth-text:#0f172a;--sth-muted:#64748b;--sth-accent:#2563eb;--sth-pos:#15803d;--sth-neg:#b91c1c;--sth-line:#f59e0b;--sth-team:#cbd5e1;color:var(--sth-text)}
@media (prefers-color-scheme:dark){.sth-wrap:not(.sth-light){--sth-bg:#0f172a;--sth-bg-alt:#111c31;--sth-border:#243047;--sth-text:#e5e7eb;--sth-muted:#94a3b8;--sth-accent:#60a5fa;--sth-pos:#4ade80;--sth-neg:#f87171}}
.sth-wrap .sth-table,.sth-wrap .sth-table thead th,.sth-wrap .sth-th-rank,.sth-wrap .sth-td-rank,.sth-wrap .sth-th-team,.sth-wrap .sth-td-team,.sth-wrap .sth-table caption{background:var(--sth-bg);color:var(--sth-text)}
.sth-wrap .sth-table tbody tr:nth-child(even) td{background:var(--sth-bg-alt)}
.sth-wrap .sth-table th,.sth-wrap .sth-table td{border-bottom:1px solid var(--sth-border)}
.sth-wrap .sth-table thead th{color:var(--sth-muted)}
.sth-wrap .sth-seg,.sth-wrap .sth-season select,.sth-wrap .sth-btn,.sth-wrap .sth-print{background:var(--sth-bg);color:var(--sth-text);border-color:var(--sth-border)}
.sth-wrap .sth-seg a{color:var(--sth-text)}
.sth-wrap .sth-seg a.is-active,.sth-wrap .sth-btn.is-active{background:var(--sth-text);color:var(--sth-bg)}
/* team accent bar */
.sth-table tbody tr td.sth-td-rank{box-shadow:inset 4px 0 0 var(--sth-team)}
/* team link */
.sth-team-link{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:.45em}
.sth-team-link:hover .sth-name{text-decoration:underline}
/* badges */
.sth-badge{display:inline-block;margin-left:.6em;font-size:.68em;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--sth-accent);background:color-mix(in srgb,var(--sth-accent) 12%,transparent);border-radius:999px;padding:.15em .55em;vertical-align:middle}
.sth-tag{font-size:.7em;color:var(--sth-accent);margin-left:.15em;font-weight:700}
/* playoff cutoff row */
.sth-cutoff td{padding:0!important;border-bottom:0!important;background:transparent!important;box-shadow:none!important}
.sth-cutoff span{display:block;border-top:2px dashed var(--sth-line);font-size:.68em;text-transform:uppercase;letter-spacing:.06em;color:var(--sth-line);padding:.15em .6em;text-align:right;font-weight:700}
.sth-row.is-playoff-line td{border-bottom:1px solid var(--sth-border)}
/* toolbar */
.sth-toolbar{display:flex;justify-content:space-between;align-items:center;gap:.6em}
.sth-print{border:1px solid var(--sth-border);border-radius:999px;padding:.35em .8em;font:inherit;font-size:.82em;cursor:pointer}
.sth-btn-cards{display:none}
/* sticky control bar */
.sth-nav{position:sticky;top:var(--sth-sticky-top,0);z-index:20;background:var(--sth-bg,#fff);padding-top:.2em}
body.header-sticky .sth-nav,body[class*=sticky] .sth-nav{--sth-sticky-top:var(--kb-sticky-header-height,60px)}
/* Kadence resets */
.sth-wrap img{box-shadow:none;border-radius:0}
.sth-wrap table{border-spacing:0;margin:0;font-family:inherit}
.sth-wrap .sth-table td,.sth-wrap .sth-table th{vertical-align:middle}
.entry-content .sth-wrap ul.sth-links,.entry-content .sth-wrap ul.sth-results{margin-left:0}
/* ===== mobile card mode ===== */
@media (max-width:640px){
  .sth-btn-cards{display:inline-block}
  .sth-wrap.is-cards .sth-table-wrap{border:0;overflow:visible}
  .sth-wrap.is-cards .sth-table,.sth-wrap.is-cards .sth-table tbody{display:block}
  .sth-wrap.is-cards .sth-table thead{display:none}
  .sth-wrap.is-cards .sth-table caption{display:block;border:0;background:transparent;padding:.4em 0;font-size:1em}
  .sth-wrap.is-cards .sth-table tbody tr{display:grid;grid-template-columns:2.2em 1fr;grid-auto-rows:auto;height:auto;border:1px solid var(--sth-border);border-radius:10px;margin:0 0 .6em;padding:.5em .6em .55em;background:var(--sth-bg);box-shadow:inset 4px 0 0 var(--sth-team)}
  .sth-wrap.is-cards .sth-table tbody tr:nth-child(even) td{background:transparent}
  .sth-wrap.is-cards .sth-table td{display:block;position:static;border:0;padding:0;text-align:left;box-shadow:none!important;background:transparent!important;white-space:normal}
  .sth-wrap.is-cards .sth-td-rank{grid-row:1/span 3;font-size:1.05em;font-weight:700;color:var(--sth-muted);align-self:start;padding-top:.15em}
  .sth-wrap.is-cards .sth-td-team{grid-column:2;min-width:0;margin-bottom:.35em}
  .sth-wrap.is-cards .sth-td-team .sth-name{display:inline;font-size:1.02em}
  .sth-wrap.is-cards .sth-td-team .sth-code{display:none}
  .sth-wrap.is-cards .sth-td-team .sth-badge,.sth-wrap.is-cards .sth-td-team .sth-div{display:inline-block;margin-left:.5em}
  .sth-wrap.is-cards .sth-table td.sth-col-simple,.sth-wrap.is-cards .sth-table td.sth-col-full{grid-column:2;display:inline-block;width:auto;margin:0 .9em .25em 0;font-size:.86em}
  .sth-wrap.is-cards .sth-table td.sth-col-simple::before,.sth-wrap.is-cards .sth-table td.sth-col-full::before{content:attr(data-l);color:var(--sth-muted);font-size:.78em;text-transform:uppercase;letter-spacing:.04em;margin-right:.3em}
  .sth-wrap.is-cards .sth-td-t,.sth-wrap.is-cards .sth-td-pf,.sth-wrap.is-cards .sth-td-pa{display:none!important}
  .sth-wrap.is-cards .sth-cutoff{display:block;border:0;padding:0;margin:0 0 .6em;box-shadow:none}
  .sth-wrap.is-cards .sth-cutoff td{display:block}
  .sth-wrap.is-cards .sth-td-next{display:block!important;width:100%;margin-top:.15em}
}
/* ===== print ===== */
@media print{
  .sth-nav,.sth-toolbar,.sth-movers,.sth-faq,.sth-faq-heading,.sth-crumbs,header,footer,#masthead,#colophon,.site-header,.site-footer,.sidebar,#secondary{display:none!important}
  .sth-wrap{font-size:11px}
  .sth-col-full{display:table-cell!important}
  .sth-table-wrap{overflow:visible;page-break-inside:avoid}
  .sth-table td,.sth-table th{padding:4px 5px}
  .sth-updated{display:block;margin-top:.6em}
  .sth-updated::after{content:"  |  standingstoday.com";color:#000}
}
