/* Global records share the compact sports layout; tables scroll locally. */
.global-view-switch { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.global-view-switch button { min-height: 44px; padding: 0 0 8px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--secondary); font: inherit; font-weight: 600; }
.global-view-switch button[aria-pressed="true"] { 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: 12px; }
.global-board-toolbar .league-field { flex: 0 1 240px; min-width: 160px; gap: 3px; }
.global-board-toolbar > button { margin-left: auto; }
.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 { min-width: 0; padding-block: 20px 36px; }
.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: 8px 14px; }
.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; margin-bottom: 14px; }
.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; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.global-views button { min-height: 44px; padding: 0 0 8px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--secondary); font: inherit; font-weight: 600; }
.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 .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: 3px; background: var(--paper); padding: 0 12px; 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; }
.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 { margin-top: 20px; padding-top: 0; }
.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 calc(50% - 12px); min-width: 0; }
  .global-board-toolbar > button { margin-left: 0; }
  .global-view-switch { gap: 0 18px; }
  .global-view-switch button { font-size: 14px; }
  .global-profile { padding-block: 12px 28px; }
  .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 { gap: 0 18px; }
  .global-views button { font-size: 14px; }
  .global-result-controls { gap: 8px; }
  .global-result-controls .league-field { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .global-result-controls .global-gamer-field { flex-basis: calc(50% - 8px); }
  .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; }
}
@media (prefers-reduced-motion: reduce) {
  .global-profile { scroll-behavior: auto; }
}
