/* Tab bar, cards, ranked tables.
   One slice of the page's stylesheet. The files load in the order of their numbers (the <link> list in
   web/site_template.html) and several rules rely on that order at equal specificity: never reorder or merge
   them without running tests/layout_check.js. */
/* top-level views: Manrope Light, like the masthead's tagline and the section menus (the owner, Dec 3) */
.views { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.views button { border: 0; background: none; padding: 0 0 3px; margin: 0; cursor: pointer; font-family: var(--f-display); font-weight: 300;
  font-size: 1.2rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; line-height: 1.1; }
.views button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.views button:hover { color: var(--ink); }
.views button:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; }
@media (max-width: 560px) { .views button { font-size: 0.76rem; letter-spacing: 0.01em; } .views { gap: 4px 10px; flex-wrap: wrap; } }
/* a section and its cards */
.sit { display: flex; flex-direction: column; gap: 18px; }
/* a page's title (h1) and its section titles (h2), as direct children of the page; the team pages style their own */
.sit > h1, .sit > h2, #p4tbl > h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.28rem; text-transform: uppercase; letter-spacing: 0.02em; }
.sit-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px 10px; }
.sit-card h2, .sit-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.sit .cap { color: var(--muted); font-size: 0.85rem; margin: 2px 0 8px; } /* notes: one size and color on every tab; no width cap, a note is as wide as its card or table */
.sit-scroll { overflow-x: auto; }
/* a box that scrolls sideways takes the keyboard's focus (tabindex 0), so arrow keys can scroll it */
.sit-scroll:focus-visible, .hist-scroll:focus-visible, .er-wrap:focus-visible, .nt-scroll:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; }
/* ranked tables */
.rk-t { border-collapse: collapse; font-variant-numeric: tabular-nums; width: 100%; max-width: 860px; }
.est-st { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; background: var(--line); color: var(--ink); vertical-align: 1px; }
.est-st.est-live { background: var(--score); color: var(--on-accent); }
.est-t td.est-l, .est-t th.est-l { text-align: left; } /* score values inset 6px from the left border */
.est-t td.wpc, .est-t th.wpc { text-align: right; padding-left: 10px; } /* SU win % inset 6px from the next border */
.rv-stepw { margin: 8px 0 4px 160px; overflow-x: auto; } .rv-steps { max-width: 560px; font-size: 12.5px; } .rv-steps td, .rv-steps th { padding-top: 3px; padding-bottom: 3px; }
@media (max-width: 760px) { .rv-stepw { margin-left: 0; } }
.rk-t th, .rk-t td { padding: 5px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rk-t thead th { font-family: var(--f-display); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); position: sticky; top: 0; background: var(--surface); }
.rk-t .tm, .rk-t .cf { text-align: left; }
.rk-t .tm { font-weight: 600; }
.rk-t .cf, .rk-t .rk { color: var(--muted); }
.rk-t tr.avg td { background: var(--bg); font-style: italic; }
.rk-t tr.me td { box-shadow: inset 0 1px 0 var(--ink), inset 0 -1px 0 var(--ink); background: var(--score-tint); }
.rk-t .grp { border-left: 1px solid var(--line); }

