@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans/dm-sans.ttf") format("truetype");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/libre-baskerville/libre-baskerville.ttf") format("truetype");
}

/* The approved player-directory world: navy identity, white pages, blue actions. */
:root {
  color-scheme: light;
  --navy: #071831;
  --ink: #071831;
  --muted: #536174;
  --accent: #075bdf;
  --accent-strong: #064cbb;
  --ice: #d9eaff;
  --line: #d8dfe8;
  --panel: #fff;
  --panel-raised: #f7f9fc;
  --white: #fff;
  --cream: #fff;
  --green: #075bdf;
  --green-2: #064cbb;
  --lime: #075bdf;
  --red: #a42c38;
  --radius: 12px;
  --shadow: none;
  background: #fff;
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  scrollbar-color: #899bb3 #f1f4f8;
  scroll-padding-top: 24px;
}
body { background: #fff; color: var(--ink); }
a { text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection { background: var(--accent); color: #fff; }
input, textarea { caret-color: var(--accent); }
h1, h2, h3, h4 {
  font-family: "DM Sans", ui-sans-serif, sans-serif;
  font-weight: 750;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h1 { line-height: 1.08; }
h2, h3, h4 { line-height: 1.2; }
small, .meta, .text-small { font-size: 12px; }
.main, .main-grid > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.prose { max-width: 72ch; font-size: 15px; line-height: 1.8; }
.fine-print, .form-note, .helptext, .bullet-list { font-size: 12px; }
.eyebrow, .overline, .field label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.page-heading .eyebrow, .section-head .eyebrow, .hero .eyebrow,
.auth-art .eyebrow, .dark-card .eyebrow, .intro-strip .number { display: none; }
.page-heading h1 { font-size: clamp(34px, 4vw, 48px); }
.page-heading p { font-size: 16px; }
.section-head h2 { font-size: 28px; }
.section-head p, .section-head > a { font-size: 13px; }

/* Global identity and navigation. */
.topline {
  background: var(--navy);
  border-color: #25364d;
  color: #c0cedf;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.topline a { color: #fff; letter-spacing: 0; }
.topline a:hover { color: #a9ceff; }
.dot, .status-dot { background: var(--accent); }
.header { background: var(--navy); border-color: #25364d; }
.header-inner {
  height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
}
.brand { letter-spacing: -.03em; }
.header .brand {
  min-height: 44px;
  min-width: 0;
  justify-self: start;
  font-size: 26px;
  color: #fff;
}
.brand-mark {
  width: 35px;
  height: 28px;
  color: inherit;
  background: transparent;
  border-radius: 0;
  transform: none;
}
.brand-mark svg { width: 35px; height: 25px; transform: none; }
.header .nav {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  gap: 4px;
  white-space: nowrap;
}
.header .nav > a, .nav-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 6px;
  color: #e1e8f2;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.header .nav > a svg, .nav-more > summary svg { width: 19px; height: 19px; flex: none; }
.header .nav > a.active, .header .nav > a:hover,
.nav-more[open] > summary, .nav-more > summary:hover {
  background: #142c4e;
  color: #fff;
}
.header .nav > a.active { box-shadow: inset 0 -3px var(--accent); }
.header .nav > a.active::after { display: none; }
.header-actions { grid-column: 3; justify-self: end; margin: 0; gap: 14px; min-width: 0; }
.header-actions > a:not(.button), .logout button { color: #e1e8f2; font-size: 13px; }
.logout button { min-height: 44px; }
.header-actions > a:not(.button):hover, .logout button:hover { color: #fff; }
.header-actions .button { min-height: 44px; font-size: 12px; padding: 10px 14px; }
.header :focus-visible, .footer :focus-visible, .bottom-nav :focus-visible { outline-color: #8ebdff; }
.nav-more { position: relative; margin: 0; }
.nav-more > summary { cursor: pointer; list-style: none; user-select: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 40;
  width: 240px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px #07183126;
}
.header .nav .nav-more-panel a, .nav-more-panel a, .nav-more-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
}
.nav-more-panel a:hover, .nav-more-panel button:hover { color: var(--accent); background: #f1f5fb; }
.nav-more-panel a::after { display: none; }
.mobile-menu { min-width: 44px; min-height: 44px; }
.mobile-menu span { background: #fff; }
.bottom-nav { display: none; }

/* Controls and compact data surfaces stay bright and readable. */
.button, .button-secondary, .button-quiet, .button.small, .button-secondary.small {
  min-height: 44px;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 650;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button, .button.lime { background: var(--accent); border-color: var(--accent); color: #fff; }
.button:hover, .button.lime:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.button-secondary { background: #fff; border-color: #b8c4d3; color: var(--ink); }
.button-secondary:hover { background: #f6f8fc; border-color: #8c9eb5; color: var(--accent); }
.button-quiet { background: transparent; border-color: transparent; color: var(--accent); }
.button-quiet:hover { background: #f6f8fc; color: var(--accent-strong); }
.button:active { transform: none; }
.card, .filter-bar, .auth-shell { background: #fff; border-color: var(--line); box-shadow: none; }
.card-head { border-color: var(--line); }
.card-head h2, .card-head h3 { font-size: 18px; }
.card-head p { font-size: 12px; }
.text-link, .row-link, .directory-card-link .arrow { color: var(--accent); }
.badge, .badge.green, .badge.dark { color: #334962; background: #edf1f6; font-size: 11px; letter-spacing: 0; }
.badge.demo, .badge.pending { color: #725022; background: #fff3dc; }
.badge.rejected, .badge.error { color: #9c2733; background: #fff0f1; }
.source-notice, .notice-box {
  background: #f7f9fc;
  border-color: var(--line);
  color: #44566e;
  font-size: 13px;
}
.demo-notice, .notice-box.warning { background: #fff9ed; border-color: #e6d5ac; color: #705222; font-size: 13px; }
.notice-box strong { color: var(--ink); }
.data-table { background: #fff; font-size: 14px; }
.data-table th { background: #f7f9fc; color: #4e5e73; border-color: var(--line); font-size: 11px; letter-spacing: 0; text-transform: none; }
.data-table td { border-color: var(--line); }
.data-table tbody tr:hover { background: #f7f9fc; }
.data-table .rank { color: var(--muted); }
.data-table .number, .point-value, .stat strong, .kpi strong { font-variant-numeric: tabular-nums; }
.person strong { font-size: 14px; }
.person .meta { font-size: 12px; }
.row-link { display: inline-grid; place-items: center; width: 44px; min-height: 44px; }
.table-footer { background: #fff; border-color: var(--line); font-size: 12px; }
.avatar, .avatar.coach, .avatar.large, .avatar.club {
  background: var(--ice);
  color: var(--accent);
  border: 0;
  font-size: 14px;
  letter-spacing: -.02em;
}
.avatar.large { font-size: 28px; box-shadow: 0 0 0 4px #fff; }
.icon-square { background: #edf3fb; color: var(--accent); }
.utility-list li, .discover-card .card-bottom, .info-list > div, .list-row { border-color: var(--line); }
.utility-list li, .utility-list strong { font-size: 14px; }
.utility-list p { font-size: 13px; }
.discover-card { min-height: 232px; transition: border-color .15s; }
.discover-card:hover { transform: none; border-color: var(--accent); box-shadow: none; }
.discover-card h3 { font-size: 21px; }
.discover-card p, .discover-card .card-bottom { font-size: 14px; }
.discover-card .avatar { width: 48px; height: 48px; font-size: 17px; }
.discover-card:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.tabs { border-color: var(--line); gap: 28px; }
.tabs a { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; color: var(--muted); border-bottom-width: 3px; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.field label { font-weight: 600; color: #43546b; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  min-height: 44px;
  background: #fff;
  border-color: #b9c5d4;
  color: var(--ink);
  font-size: 15px;
}
input::placeholder, textarea::placeholder { color: #64748a; opacity: 1; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
select option { background: #fff; color: var(--ink); }
.field input, .field select, .filter-bar .button { min-height: 44px; }
.form-card label { font-size: 14px; }
.form-card ul, .errorlist, .form-card .errorlist { font-size: 13px; }
.inline-form input:not([type=checkbox]) { min-height: 44px; font-size: 14px; }
.message { background: #f0f6ff; border-color: #bdcfe9; color: #24456e; font-size: 14px; }
.message.error, .danger { background: #fff4f5; border-color: #e7bdc4; color: var(--red); }
.auth-art { background: var(--navy); color: #fff; }
.auth-art p { color: #c4d4e8; font-size: 15px; }
.auth-art h1 { letter-spacing: -.03em; }
.auth-body > p, .auth-foot { font-size: 14px; }
.auth-foot a { color: var(--accent); }

/* The tennis geometry shares the same flat court-blue palette. */
.hero { background: var(--navy); color: #fff; }
.hero h1 { letter-spacing: -.035em; }
.hero h1 em { color: inherit; }
.hero p { color: #c4d4e8; font-size: 16px; }
.hero-link, .hero-link:hover { color: #fff; font-size: 14px; }
.hero-link:hover { text-decoration: underline; }
.court-scene { background: transparent; }
.court-scene::before { display: none; }
.court-floor { background: #0751ac; border-color: #c3dcff; box-shadow: none; }
.court-floor .singles, .court-floor .service, .court-floor .service::before { border-color: #c3dcff; }
.court-floor .net { border-color: #fff; box-shadow: none; }
.court-chip { background: var(--navy); color: #d8e8ff; border-color: #577396; font-size: 12px; }
.court-chip i { background: #a9ceff; }
.court-label { color: #c4d4e8; font-size: 10px; letter-spacing: .02em; }
.tennis-ball { background: #d9eaff; box-shadow: none; }
.tennis-ball::before, .tennis-ball::after { border-color: #0751ac; }
.intro-strip h3 { font-size: 15px; }
.intro-strip p { font-size: 13px; }
.dark-card { background: var(--navy); color: #fff; border-color: var(--navy); }
.dark-card p { color: #c4d4e8; font-size: 14px; }
.dark-card::after { display: none; }
.profile-cover { background: var(--navy); }
.profile-cover::before, .profile-cover::after { border-color: #5b83b5; }
.profile-top { background: #fff; border-color: var(--line); }
.profile-title h1 { font-size: 36px; }
.profile-title p { font-size: 14px; }
.profile-title .overline { font-size: 12px; }
.stat small { font-size: 12px; letter-spacing: 0; text-transform: none; }
.stat em { font-size: 12px; }
.info-list > div { font-size: 14px; }
.empty, .empty p { font-size: 14px; }
.empty strong { font-size: 17px; }
.trophy { background: #fff; border-color: var(--line); }
.trophy-icon { color: var(--accent); }
.trophy strong { font-size: 14px; }
.trophy p { font-size: 12px; }
.list-row, .list-row h3 { font-size: 14px; }
.list-row p { font-size: 13px; }
.list-row time { font-size: 12px; }
.kpi .eyebrow { font-size: 12px; }
.kpi .meta { font-size: 12px; }
.breadcrumb { font-size: 13px; flex-wrap: wrap; }
.chat-message { background: #f1f4f8; font-size: 15px; }
.chat-message.mine { background: #e8f1ff; }
.chat-message .chat-meta { color: #4b607b; font-size: 12px; }
.chat-compose label { font-size: 14px; }
.step-list li { font-size: 14px; }
.step-list li strong { font-size: 15px; }
.step-list li::before { background: #edf3fb; border-color: #b9c9dd; color: var(--accent); font-size: 12px; }
.install-device { background: var(--navy); }
.phone { background: #fff; border-color: #314561; box-shadow: 0 18px 32px #0003; }
.phone .phone-hero { background: var(--navy); color: #fff; }
.phone .phone-hero h3 { letter-spacing: -.03em; }
.phone .phone-hero span { background: var(--accent); color: #fff; }
.phone .phone-line, .phone .phone-row i { background: #dfe8f4; }
.phone .phone-row { border-color: var(--line); }
.install-device > p { color: #c4d4e8; font-size: 12px; }
.announcement { background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.import-fields dt { font-size: 12px; }
.import-fields dd { font-size: 13px; }
code, pre { background: #f1f4f8; color: #314561; font-size: 12px; }
.footer { background: var(--navy); border-color: #25364d; color: #fff; }
.footer .brand { color: #fff; }
.footer-links { color: #d2deee; font-size: 13px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { color: #b2c4dc; border-color: #31425a; font-size: 11px; }
.skip-link { top: -100px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 10px; }

@media (min-width: 1101px) {
  .header .mobile-logout { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .header-inner { gap: 12px; }
  .header .brand { font-size: 23px; gap: 7px; }
  .header .nav { gap: 0; }
  .header .nav > a, .nav-more > summary { padding: 10px 8px; gap: 5px; font-size: 13px; }
  .header .nav > a svg, .nav-more > summary svg { width: 17px; height: 17px; }
  .header-actions { gap: 8px; }
  .header-actions .button { padding: 10px 11px; }
  .header-actions > .logout { display: none; }
  .header .mobile-logout { display: block; }
}
@media (max-width: 900px) {
  .header-inner { height: 74px; grid-template-columns: 1fr auto auto; gap: 12px; }
  .header .brand { font-size: 24px; }
  .mobile-menu { display: block; grid-column: 2; margin: 0; padding: 6px; }
  .header-actions { grid-column: 3; }
  .header-actions > .logout, .header-actions > a:not(.button) { display: none; }
  .header-actions .button { min-height: 44px; font-size: 12px; padding: 10px 12px; }
  .header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 20px;
    background: var(--navy);
    border-bottom: 1px solid #31425a;
    box-shadow: 0 12px 24px #07183126;
    white-space: normal;
    justify-content: start;
  }
  .header .nav.open { display: flex; flex-wrap: wrap; }
  .header .nav > a { width: 50%; padding: 14px; justify-content: flex-start; }
  .header .nav-more { width: 100%; }
  .header .nav-more > summary { justify-content: flex-start; padding: 14px; }
  .header .nav-more-panel { position: static; width: 100%; margin-top: 4px; box-shadow: none; }
  .header .nav .nav-more-panel a { width: 100%; padding: 13px; }
  .header .nav .mobile-logout { display: block; }
  .hero p { font-size: 15px; }
}
@media (max-width: 700px) {
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .topline { display: none; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-inner { height: 70px; gap: 8px; }
  .header .brand { font-size: 22px; gap: 7px; }
  .header .brand-mark { width: 29px; height: 24px; }
  .header .brand-mark svg { width: 29px; height: 23px; }
  .header-actions .button { font-size: 11px; padding: 9px 10px; gap: 6px; }
  .header .nav { max-height: calc(100dvh - 160px); overflow-y: auto; padding-left: 14px; padding-right: 14px; }
  .header .nav > a, .header .nav-more > summary { font-size: 14px; }
  .main { padding-top: 26px; padding-bottom: 40px; }
  .page-heading h1 { font-size: 34px; }
  .page-heading p { font-size: 15px; line-height: 1.6; }
  .section-head { align-items: center; gap: 12px; }
  .section-head h2 { font-size: 25px; }
  .section-head > a, .section-head p { font-size: 12px; }
  .hero { min-height: 585px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 15px; line-height: 1.65; }
  .hero .button { min-height: 44px; font-size: 13px; }
  .hero-link { font-size: 13px; }
  .court-chip { font-size: 11px; }
  .court-label { font-size: 9px; }
  .intro-strip h3 { font-size: 15px; }
  .intro-strip p { font-size: 13px; }
  .card-head h2, .card-head h3 { font-size: 17px; }
  .card-head p { font-size: 12px; }
  .source-notice { font-size: 12px; }
  .data-table { font-size: 13px; }
  .data-table th { font-size: 11px; }
  .data-table .avatar { width: 36px; height: 36px; font-size: 12px; }
  .person strong { font-size: 14px; }
  .person .meta { font-size: 12px; }
  .table-footer { font-size: 12px; flex-wrap: wrap; }
  .spotlight-table td[data-label]::before { font-size: 11px; letter-spacing: 0; text-transform: none; }
  .discover-card { min-height: 216px; }
  .discover-card h3 { font-size: 21px; }
  .discover-card p, .discover-card .card-bottom { font-size: 14px; }
  .filter-bar { padding: 16px; }
  .field label { font-size: 12px; }
  .field input, .field select { min-height: 44px; font-size: 16px; padding-left: 12px; }
  .filter-bar .button { min-height: 44px; }
  .tabs { gap: 25px; }
  .tabs a { font-size: 13px; min-height: 48px; }
  .button, .button-secondary, .button-quiet, .button.small, .button-secondary.small { min-height: 44px; font-size: 13px; }
  .profile-title h1 { font-size: 30px; }
  .profile-title p { font-size: 14px; }
  .profile-title .overline { font-size: 12px; }
  .profile-top .actions .button, .profile-top .actions .button-secondary { min-height: 44px; font-size: 13px; }
  .stat small, .stat em { font-size: 11px; }
  .stat strong { font-size: 25px; }
  .trophy strong { font-size: 12px; }
  .trophy p { font-size: 11px; }
  .kpi .eyebrow, .kpi .meta { font-size: 12px; }
  .auth-art { min-height: 240px; }
  .auth-art h1 { font-size: 34px; }
  .auth-art p { font-size: 14px; }
  .auth-body > p, .auth-foot { font-size: 14px; }
  .form-card label { font-size: 14px; }
  .form-card input:not([type=checkbox]):not([type=radio]), .form-card select, .form-card textarea,
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
  .list-row .content { min-width: 0; }
  .list-row h3 { font-size: 14px; }
  .list-row p { font-size: 13px; }
  .notice-box, .step-list li { font-size: 13px; }
  .step-list li strong { font-size: 14px; }
  .chat-message { font-size: 14px; }
  .chat-message .chat-meta { font-size: 11px; }
  .breadcrumb { font-size: 12px; }
  .fine-print { font-size: 12px; }
  .bottom-nav {
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    min-height: 72px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid #31425a;
    background: var(--navy);
    box-shadow: none;
  }
  .bottom-nav > a, .bottom-nav > .nav-more > summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    min-width: 0;
    padding: 6px 2px;
    border-radius: 7px;
    color: #dce7f6;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
  }
  .bottom-nav > a svg, .bottom-nav .nav-more > summary svg { width: 22px; height: 22px; }
  .bottom-nav > a.active, .bottom-nav > a:hover, .bottom-nav > .nav-more[open] > summary { background: #123a72; color: #fff; }
  .bottom-nav > .nav-more { min-width: 0; }
  .bottom-more .nav-more-panel {
    top: auto;
    bottom: calc(100% + 13px);
    right: 0;
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100dvh - 176px);
    overflow-y: auto;
  }
  .bottom-more .mobile-logout { display: block; }
  .bottom-nav .nav-more-panel a, .bottom-nav .nav-more-panel button { min-height: 44px; font-size: 14px; padding: 12px 14px; }
  .footer { padding-bottom: 26px; }
  .footer-links { font-size: 13px; gap: 14px 20px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom { font-size: 11px; line-height: 1.65; }
}
@media (max-width: 360px) {
  .header-inner { padding-left: 14px; padding-right: 14px; gap: 4px; }
  .header .brand { font-size: 20px; gap: 5px; }
  .header .brand-mark, .header .brand-mark svg { width: 25px; }
  .header-actions .button { padding-left: 8px; padding-right: 8px; font-size: 11px; }
  .header-actions .button .arrow { display: none; }
  .hero-copy { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 38px; }
}

/* Keep focus and long ranking labels readable in compact views. */
.nav-more-panel :focus-visible { outline-color: var(--accent); }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid > *, .stat strong { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid .stat { border-right: 0; }
  .stat-grid .stat + .stat { border-top: 1px solid var(--line); }
}

/* Open directory rows carry the same hierarchy as the coach's roster. */
.directory-list { border-top: 1px solid var(--line); }
.directory-entry { border-bottom: 1px solid var(--line); }
.directory-profile-link { display: flex; align-items: center; gap: 20px; min-height: 112px; padding: 20px 10px; border-radius: 4px; }
.directory-profile-link:hover { color: var(--accent); background: #f5f8fd; }
.directory-profile-link:focus-visible { outline-offset: -2px; background: #f5f8fd; }
.directory-avatar { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--ice); color: var(--accent); font-weight: 650; font-size: 17px; }
.directory-entry-copy { flex: 1; min-width: 0; }
.directory-entry h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.directory-entry p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.directory-entry p > span { display: block; }
.directory-profile-link > svg { width: 26px; height: 26px; flex: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.directory-age-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 80px; margin-bottom: 8px; color: var(--accent); font-size: 13px; text-decoration: underline; }
.directory-empty { padding: 32px 16px; }

/* Provider and player details use open sections rather than nested boxes. */
.profile-page .profile-cover { display: none; }
.profile-page .profile-top { margin-top: 0; padding: 30px; background: var(--navy); border: 0; border-radius: 0; color: #fff; }
.profile-page .profile-title h1 { color: #fff; font-family: "Libre Baskerville", Georgia, serif; font-weight: 500; font-size: 37px; letter-spacing: -.025em; line-height: 1.25; }
.profile-page .profile-title p, .profile-page .profile-title .overline { color: #d8e7f7; }
.profile-page .profile-title .overline { margin-bottom: 6px; }
.profile-page .profile-title a { color: #fff; text-decoration: underline; }
.profile-page .profile-top .avatar { background: #d9eaff; color: var(--accent); border: 0; }
.profile-page > .main-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
.profile-page .card:not(.dark-card) { border: 0; border-radius: 0; box-shadow: none; overflow: visible; background: transparent; }
.profile-page .stack > .card + .card { border-top: 1px solid var(--line); padding-top: 22px; }
.profile-page .card-head { padding-left: 0; padding-right: 0; }
.profile-page .card-head h2 { font-size: 23px; }
.profile-page .card-pad { padding-left: 0; padding-right: 0; }
.profile-page .stat-grid { border: 1px solid var(--line); border-radius: 8px; margin-top: 16px; }
.profile-page .profile-achievements-empty { padding: 16px 0 0; color: var(--muted); font-size: 15px; }
.profile-page .profile-achievements-empty p { margin: 0; }
.profile-page > .main-grid > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; }
.profile-page > .main-grid > aside > .card { margin: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.profile-page > .main-grid > aside > .dark-card { grid-column: 1 / -1; padding: 24px; border: 0; }
.table-scroll-cue { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 8px 0 10px; }
.table-wrap { max-width: 100%; scrollbar-width: thin; scrollbar-color: #899bb3 #f1f4f8; }
.table-wrap:focus-visible { outline-offset: -3px; }
@media (max-width: 700px) {
  .directory-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; white-space: normal; }
  .directory-tabs a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 62px; padding: 12px 3px; text-align: center; white-space: normal; font-size: 13px; line-height: 1.5; }
  .directory-profile-link { min-height: 105px; padding: 17px 4px; gap: 13px; }
  .directory-avatar { width: 39px; height: 39px; font-size: 14px; }
  .directory-entry h2 { font-size: 18px; }
  .directory-entry p { font-size: 13px; line-height: 1.6; }
  .directory-profile-link > svg { width: 22px; height: 22px; }
  .directory-age-link { margin-left: 56px; }
  .profile-page .profile-top { padding: 24px 20px; gap: 16px; }
  .profile-page .profile-title h1 { font-size: 29px; }
  .profile-page .profile-title p { font-size: 14px; }
  .profile-page .card-head { padding-top: 18px; padding-bottom: 16px; }
  .profile-page .card-head h2 { font-size: 21px; }
  .profile-page > .main-grid > aside { display: flex; flex-direction: column; }
  .profile-page > .main-grid > aside > .card { width: 100%; }
  .profile-page .mobile-data-wrap { overflow: visible; }
  .profile-page .mobile-data { display: block; min-width: 0; width: 100%; }
  .profile-page .mobile-data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .profile-page .mobile-data tbody { display: block; }
  .profile-page .mobile-data tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .profile-page .mobile-data td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
  .profile-page .mobile-data td:first-child, .profile-page .mobile-data td[colspan] { grid-column: 1 / -1; }
  .profile-page .mobile-data td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 3px; font-weight: 400; }
  .profile-page .mobile-data td:first-child > a { font-weight: 600; }
  .profile-page .mobile-data .meta { font-size: 12px; }
}
