/* Copied from the live Yardstick site, 2026-11-28 (src/port_main.py). Do not edit here. */
/* The Yardstick: team page layout (teampage_step.py, v2, 2026-11-27). Pairs with team.js. */
.tl-wait #p-team { opacity: 0; }
#p-team.tl-on { --tl-gap: 14px; }
.tl-on > .tabintro { margin-bottom: 8px; }
.tl-shell { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tl-shell > .tl-sb { order: 1; } .tl-shell > .tl-cmp { order: 2; } .tl-shell > .tl-tabs { order: 3; } .tl-shell > .tl-pane { order: 4; }
.tl-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tl-pane[hidden] { display: none; }
.tl-slot { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tl-on #teamwhy, .tl-on #card, .tl-on #teamhow, .tl-on #teamfc, .tl-on #teamyp, .tl-on #teamwl, .tl-on #teamsched { margin: 0 !important; }
.tl-on .whyjump { display: none; }
.tl-on .whyfoot { justify-content: flex-end; }
.tl-on .whyfoot:not(:has(button)) { display: none; }
.tl-on #card .hb-two, .tl-on #card .hb-id > h2, .tl-on #card .hb-id > .note { display: none; }
.tl-on .note, .tl-on .tl-cap, .tl-on #teamyp > p, .tl-on #teamsched > p, .tl-on #teamwl > p { max-width: 78ch; }

/* scoreboard */
.tl-sb { display: grid; gap: 10px; }
.tl-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.tl-nm { font: 700 24px/1.15 var(--display); color: var(--head, var(--accent)); }
.tl-cr { color: var(--muted); font-size: 15px; }
.tl-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tl-tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--panel, #fff); min-width: 0; }
.tl-tile.tl-main { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.tl-tl { font: 700 11.5px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl-tb { font: 700 34px/1.1 var(--display); color: var(--head, var(--accent)); margin: 2px 0; font-variant-numeric: tabular-nums; }
.tl-ts { font-size: 14px; line-height: 1.3; color: var(--ink); }
.tl-up { color: var(--good); font-weight: 700; } .tl-down { color: var(--bad); font-weight: 700; }
.tl-polls { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14.5px; align-items: baseline; }
.tl-polls .tl-pl { font: 700 11.5px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl-cmp { display: block; }
.tl-cmp[hidden] { display: none; }
.tl-cmp > div { display: grid; grid-template-columns: auto minmax(0, 320px); align-items: center; gap: 6px 12px; }
.tl-cmp > div > h3 { margin: 0; font-size: 15px; }
.tl-cmp #cmpBox { grid-column: 1 / -1; margin-top: 0 !important; max-width: 820px; }
.tl-pane .tl-fold, .tl-pane [id] { scroll-margin-top: calc(var(--tl-top, 0px) + 64px); }
.tl-cmp #cmpBox:empty { display: none; }

/* tabs */
.tl-tabs { position: sticky; top: var(--tl-top, 0px); scroll-margin-top: var(--tl-top, 0px); z-index: 20; background: var(--paper, #F7F7F2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.tl-tabrow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tl-tabrow::-webkit-scrollbar { display: none; }
.tl-tabrow button { flex: 0 0 auto; font: 600 15px/1.2 var(--body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel, #fff); color: var(--head, var(--accent)); cursor: pointer; white-space: nowrap; }
.tl-tabrow button:hover { border-color: var(--accent); }
.tl-tabrow button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tl-tabrow button:focus-visible { outline: 3px solid var(--mark, #F47A1F); outline-offset: 2px; }
.tl-next { display: flex; justify-content: flex-end; }
.tl-next button { font: 600 15px/1.2 var(--body); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; }
.tl-next button:hover { background: var(--accent); color: #fff; }

/* overview panels */
.tl-ov h3 { margin: 0 0 4px; }
.tl-cap { font-size: 14px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.tl-cap a, .tl-ov a { color: var(--accent); font-weight: 600; }
.tl-scroll { overflow-x: auto; }
.tl-wkc svg { display: block; max-width: none; }

/* how the score adds up */
.tl-wf { display: grid; gap: 6px; max-width: 900px; }
.tl-wr { display: grid; grid-template-columns: minmax(190px, 300px) minmax(0, 1fr) 64px; align-items: center; gap: 4px 14px; padding: 4px 0; }
.tl-wt { border-top: 1px solid var(--line); padding-top: 8px; }
.tl-wl b { display: block; font-size: 15.5px; } .tl-wl small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.tl-wk { position: relative; height: 22px; background: var(--chip, #ECEFE8); border-radius: 4px; }
.tl-wb { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; }
.tl-wb.up { background: var(--good); } .tl-wb.dn { background: var(--bad); } .tl-wb.tot { background: var(--accent); top: 1px; bottom: 1px; }
.tl-w0 { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); opacity: .55; }
.tl-wv { text-align: right; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.tl-wv.up { color: var(--good); } .tl-wv.dn { color: var(--bad); }
.tl-wt .tl-wv { font-size: 18px; }

/* offense and defense */
.tl-tod { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 3px; font-size: 13.5px; color: var(--ink); }
.tl-tod b { color: var(--head, var(--accent)); }
.tl-odp h3 { margin: 0 0 8px; }
.tl-odr { display: grid; grid-template-columns: minmax(200px, 360px) minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 6px 0; max-width: 900px; }
.tl-odl { min-width: 0; } .tl-odl b { display: block; font-size: 16px; } .tl-odl small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; white-space: normal; overflow-wrap: break-word; }
.tl-odt { position: relative; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--chip, #ECEFE8), #cfe3d6); }
.tl-odm { position: absolute; top: -4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tl-odk { display: grid; grid-template-columns: auto 1fr auto; max-width: 900px; padding-left: calc(min(360px, 40%) + 16px); font-size: 12px; color: var(--muted); }
.tl-odk span:nth-child(2) { text-align: center; }
tr.tl-mu td { font-size: 13.5px; color: var(--muted); padding-top: 0 !important; border-top: 0 !important; }
tr.tl-mu b { color: var(--ink); }
.tl-mul { font: 700 11px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-right: 4px; }
#tbl tr:not(.grpr) th.tl-od, #tbl td.tl-od { text-align: right; }
#tbl tr.grpr th.tl-od { text-align: left; }
#tbl td.tl-od b { font-weight: 600; }
#p-teams .tl-odli { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* folds */
.tl-fh { cursor: pointer; user-select: none; }
.tl-fh:focus-visible { outline: 3px solid var(--mark, #F47A1F); outline-offset: 2px; }
.tl-fold > .tl-fh::after { content: "Show \25BE"; margin-left: auto; padding-left: 10px; font: 600 13px/1.2 var(--body); color: var(--accent); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.tl-fold.tl-open > .tl-fh::after { content: "Hide \25B4"; }
section.tl-fold > h4.tl-fh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tl-foldg > h3.tl-fh { display: flex; align-items: center; margin: 14px 0 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.tl-fold:not(.tl-open) > :not(.tl-fh) { display: none !important; }
.tl-fold:not(.tl-open) > h4.tl-fh { margin-bottom: 0; }

/* cards for wide tables: only on narrow screens */
table.tl-stack td.tl-rcap { display: none; }
@media (max-width: 1000px) {
  .tl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tl-tb { font-size: 30px; }
  .tl-nm { font-size: 21px; }
  .tl-cmp > div { grid-template-columns: minmax(0, 1fr); }
  .tl-wr { grid-template-columns: minmax(0, 1fr) 62px; }
  .tl-wl { grid-column: 1 / -1; }
  .tl-odr { grid-template-columns: minmax(0, 1fr); }
  .tl-odk { padding-left: 0; }
  table.tl-stack tr.tl-mu { display: block; border: 0; background: none; padding: 0 4px; margin: -4px 0 10px; }
  .tl-wk { grid-column: 1; }
  .tl-wkc svg { width: 760px; height: auto; }
  .tl-on #card > div:nth-child(2) { order: -1; }   /* games first, then the facts */
  .tl-on #teamhow svg[aria-label="Rank after each step"] { max-width: none !important; width: 560px; height: auto; }
  .tl-on .lsgrid { grid-template-columns: 34px repeat(var(--tln, 7), minmax(0, 1fr)) !important; width: 100%; }
  .tl-on div:has(> .lsgrid), .tl-on div:has(> div > .lsgrid) { flex: 1 1 100%; min-width: 0; }
  .tl-on .tablewrap, .tl-on .scroll { overflow: visible; max-height: none; }
  table.tl-stack, table.tl-stack tbody, table.tl-stack tr, table.tl-stack td { display: block; }
  table.tl-stack { width: 100% !important; min-width: 0 !important; border: 0; }
  table.tl-stack thead { display: none; }
  table.tl-stack tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px 14px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin: 0 0 8px; background: var(--panel, #fff); }
  table.tl-stack td { padding: 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; background: transparent !important; box-shadow: none !important; min-width: 0; }
  table.tl-stack td.tl-key { display: none; }
  table.tl-stack td.tl-rcap { display: block; grid-column: 1 / -1; font-size: 15.5px; font-weight: 600; padding-bottom: 4px !important; border-bottom: 1px solid var(--line) !important; }
  table.tl-stack td.tl-full { grid-column: 1 / -1; }
  table.tl-stack td.tl-empty { display: none; }
  table.tl-stack td[data-label]::before { content: attr(data-label); display: block; font: 700 11px/1.25 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
  .tl-dot { color: var(--muted); }
}
@media (max-width: 420px) {
  .tl-tile { padding: 8px 10px; }
  .tl-tb { font-size: 27px; }
  .tl-ts { font-size: 13px; }
  .tl-tabrow button { font-size: 14.5px; padding: 7px 12px; }
}
@media print {
  .tl-tabs, .tl-next { display: none; }
  .tl-pane[hidden] { display: flex !important; }
}
