/* ESPN stats and career pages: one paper surface, tabs, controls, dense rows. */
.global-leaderboards, .global-profile { min-width: 0; padding-block: 18px 36px; }
.global-content-card { min-width: 0; padding: clamp(14px, 2.2vw, 24px); border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.global-content-card > :last-child { margin-bottom: 0; }
.global-content-card.nonleague-paper > .page-heading { padding-bottom: 0; margin-bottom: 14px; border-bottom: 0; }
.global-content-card .page-heading h1 { font-size: calc(36px * var(--headline-scale)); overflow-wrap: anywhere; }
.global-content-card .page-intro { max-width: 90ch; margin-top: 5px; }
.global-content-card .section-heading { gap: 6px 16px; margin-bottom: 9px; }
.global-content-card .section-heading h2 { font-size: calc(26px * var(--headline-scale)); }
.global-content-card .section-heading .context { margin: 0; }
.global-view-switch { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.global-view-switch :is(button, a) { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--secondary); font: inherit; font-weight: 600; text-align: center; text-decoration: none; }
.global-view-switch :is(button[aria-pressed="true"], a[aria-current="page"]) { color: var(--ink); border-bottom-color: var(--accent); }
.global-board-intro { color: var(--secondary); font-size: 14px; margin-bottom: 12px; }
.global-board-toolbar { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.global-board-toolbar .league-field { flex: 0 1 240px; min-width: 160px; gap: 3px; }
.global-board-toolbar > button { margin-left: 0; }
.global-content-card .league-field input { border-radius: 6px; font-size: 14px; }
.global-content-card .league-table-region { position: relative; max-width: 100%; border-inline: 0; border-radius: 0; }
.global-content-card .league-table { table-layout: auto; }
.global-content-card .league-table thead th { background: var(--paper); color: var(--secondary); font-size: 12px; font-weight: 600; }
.global-content-card .league-table tbody tr:nth-child(even) { background: var(--quiet); }
.global-content-card .league-table tbody tr:hover { background: var(--hover); }
.global-content-card .league-table .global-value { background: color-mix(in srgb, var(--quiet) 72%, transparent); font-weight: 700; }
.global-content-card .league-table-footnote { margin-block: 10px 14px; line-height: 1.5; }
.global-content-card .home-record-links { gap: 8px 24px; padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--line); }
.global-content-card .preview-notes { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.global-content-card .browse-league { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 0; }
.global-directory-table { min-width: 660px; }
.global-directory-table thead th { height: 34px; }
.global-directory-table tbody th, .global-directory-table td { height: 44px; font-size: 14px; }
.global-directory-table tbody th { text-align: left; }
.global-directory-table .league-team-cell { gap: 8px; }
.global-directory-table .logo-wrap { width: 26px; height: 26px; }
.global-directory-identity { flex-direction: column; align-items: flex-start; justify-content: center; }
.global-directory-table .global-stock-school { margin-top: 0; font-size: 12px; font-weight: 400; color: var(--secondary); }
.global-directory-table td:first-child { width: 52px; text-align: right; color: var(--secondary); }
.global-directory-table td:last-child { white-space: nowrap; font-size: 13px; }
.global-board-note { margin-top: 10px; font-size: 13px; color: var(--secondary); }
.global-profile h1, .global-profile h2, .global-profile dialog h2 { font-family: var(--headline-family); font-weight: var(--headline-weight); letter-spacing: var(--headline-spacing); }
.global-back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; }
.global-identity { display: flex; align-items: center; gap: 12px; min-width: 0; padding-block: 4px 12px; }
.global-identity > div { min-width: 0; }
.global-identity .logo-wrap { width: 52px; height: 52px; }
.global-identity h1 { font-size: calc(36px * var(--headline-scale)); overflow-wrap: anywhere; }
.global-identity p { color: var(--secondary); font-size: 14px; margin-top: 3px; }
.global-profile-intro { color: var(--secondary); font-size: 14px; margin-bottom: 14px; max-width: 90ch; }
.global-identity-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 20px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.global-identity-toolbar .league-field { flex: 0 1 230px; min-width: 150px; }
.global-scope-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--secondary); font-size: 13px; }
.global-scope-summary strong { color: var(--ink); font-weight: 600; }
.global-views { display: flex; gap: 0; overflow-x: auto; overscroll-behavior-inline: contain; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.global-views button { flex: 1 0 auto; min-width: max-content; min-height: 44px; padding: 8px 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--secondary); font: inherit; font-weight: 600; text-align: center; white-space: nowrap; }
.global-views button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.global-results-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-bottom: 10px; }
.global-results-heading h2 { font-size: calc(26px * var(--headline-scale)); }
.global-result-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.global-result-controls:has(.global-gamer-field) { flex-basis: 510px; }
.global-result-controls .league-field { flex: 0 1 190px; min-width: 130px; gap: 3px; }
.global-result-controls .global-gamer-field { flex-basis: 180px; }
.global-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 0 12px; color: var(--ink); font: inherit; font-size: 14px; }
.global-result-note { color: var(--secondary); font-size: 13px; margin-block: 0 9px; }
.global-record-table { min-width: 620px; table-layout: auto; }
.global-record-table[data-type="player"] { min-width: 740px; }
.global-record-table[data-view="career"] { min-width: 560px; }
.global-record-table[data-type="player"][data-view="career"] { min-width: 680px; }
.global-record-table[data-view="honors"] { min-width: 440px; }
.global-record-table[data-type="player"][data-view="honors"] { min-width: 560px; }
.global-record-table th, .global-record-table td { padding-inline: 12px; }
.global-record-table thead th { height: 34px; }
.global-record-table tbody th, .global-record-table td { height: 44px; font-size: 14px; }
.global-record-table tbody th { text-align: left; }
.global-record-table .global-rank { width: 52px; color: var(--secondary); }
.global-record-table .global-value { font-weight: 700; }
.global-record-table .global-quarter { white-space: nowrap; }
.global-record-table .global-source { min-width: 170px; max-width: 270px; font-size: 13px; }
.stock-career-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px 24px; }
.stock-career-group { min-width: 0; }
.stock-career-group h3 { font-family: var(--headline-family); font-weight: var(--headline-weight); font-size: calc(23px * var(--headline-scale)); margin-bottom: 5px; }
.global-content-card .stock-career-table { width: 100%; min-width: 0; table-layout: fixed; }
.stock-career-table th, .stock-career-table td { height: 36px; padding: 7px 8px; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.stock-career-table tbody th { text-align: left; font-weight: 400; }
.stock-career-table th:last-child, .stock-career-table td:last-child { width: 31%; font-variant-numeric: tabular-nums; }
.stock-career-table tbody td { font-weight: 600; }
@media (max-width: 1050px) { .stock-career-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stock-career-groups { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.global-record-button { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; color: var(--ink); padding: 4px 0; font: inherit; font-weight: 600; text-align: left; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.global-record-button:hover { text-decoration-color: currentColor; }
.global-school-list { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 12px; min-width: 130px; max-width: 260px; }
.global-school-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.global-result-status { color: var(--secondary); font-size: 13px; margin-block: 9px 0; }
.global-empty { border: 1px solid var(--line); background: var(--paper); padding: 16px; }
.global-empty h2 { font-size: 24px; margin-bottom: 4px; }
.global-empty p { font-size: 14px; color: var(--secondary); max-width: 70ch; }
.global-empty .global-reset { margin-top: 12px; }
.global-profile .preview-notes p { margin-bottom: 8px; }
.global-record-dialog .dialog-header { padding-block: 12px; }
.global-record-dialog .dialog-body { padding-block: 16px; }
.global-record-dialog .dialog-body > p { margin-bottom: 12px; }
.global-record-details { margin: 0; }
.global-record-details > div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); gap: 8px 18px; align-items: baseline; padding-block: 9px; border-bottom: 1px solid var(--line); }
.global-record-details > div:last-child { border-bottom: 0; }
.global-record-details dt { color: var(--secondary); font-size: 13px; }
.global-record-details dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.global-record-dialog .global-private-note { font-size: 13px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .global-results-heading { align-items: start; }
  .global-result-controls { width: 100%; }
  .global-result-controls .league-field { flex-grow: 1; }
}
@media (max-width: 640px) {
  .global-board-toolbar .league-field { flex: 1 1 180px; min-width: 0; }
  .global-board-toolbar > button { margin-left: 0; }
  .global-view-switch :is(button, a) { padding-inline: 6px; font-size: 14px; }
  .global-leaderboards, .global-profile { padding-block: 12px 28px; }
  .global-content-card .page-heading h1 { font-size: calc(30px * var(--headline-scale)); }
  .global-content-card .section-heading { align-items: start; }
  .global-content-card .browse-league { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .global-content-card .browse-league-info { grid-column: auto; }
  .global-content-card .browse-league > a { justify-self: start; }
  .global-identity h1 { font-size: calc(30px * var(--headline-scale)); }
  .global-identity .logo-wrap { width: 42px; height: 42px; }
  .global-identity-toolbar { gap: 9px 16px; }
  .global-identity-toolbar .league-field { flex: 1 1 190px; }
  .global-scope-summary { width: 100%; }
  .global-views button { padding-inline: 5px; font-size: 14px; }
  .global-result-controls { gap: 8px; }
  .global-result-controls .league-field { flex: 1 1 170px; min-width: 0; }
  .global-result-controls .global-gamer-field { flex-basis: 170px; }
  .global-record-table th, .global-record-table td { padding-inline: 10px; }
  .global-record-details > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px 12px; }
}
.global-content-card :is(a, button, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.global-views button:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .global-profile { scroll-behavior: auto; }
}
