/* Phase I-B1: Academy-only typography and spacing convergence.
   Composition, geometry, component appearance and behavior remain owned by
   the existing Academy shell and module styles. */
#adminPanel.academy-workspace-shell {
  font-family: var(--pid-font-family);
}

#adminPanel.academy-workspace-shell > .academy-shell-topbar {
  gap: var(--pid-space-5) !important;
}

#adminPanel.academy-workspace-shell > .academy-shell-context small,
#adminPanel.academy-workspace-shell > .academy-shell-page-heading small,
#adminPanel.academy-workspace-shell .academy-rollover-eyebrow,
#adminPanel.academy-workspace-shell .eyebrow {
  font-size: var(--pid-text-xs) !important;
  line-height: var(--pid-leading-ui) !important;
}

#adminPanel.academy-workspace-shell > .academy-shell-context strong {
  font-size: var(--pid-text-body);
  line-height: var(--pid-leading-ui);
}

#adminPanel.academy-workspace-shell > .academy-shell-page-heading h1 {
  margin: var(--pid-space-2) 0 var(--pid-space-1);
  font-size: var(--pid-text-page);
  line-height: var(--pid-leading-tight);
}

#adminPanel.academy-workspace-shell > .academy-shell-page-heading p {
  font-size: var(--pid-text-body);
  line-height: var(--pid-leading-body);
}

#adminPanel.academy-workspace-shell > .admin-pane {
  margin-bottom: var(--pid-space-8);
}

#adminPanel.academy-workspace-shell .title,
#adminPanel.academy-workspace-shell .academy-dashboard-quick-heading h3,
#adminPanel.academy-workspace-shell .dashboard-section-head h3,
#adminPanel.academy-workspace-shell .academy-player-page-actions h3,
#adminPanel.academy-workspace-shell .academy-player-subhead h3,
#adminPanel.academy-workspace-shell .academy-team-page-head h3,
#adminPanel.academy-workspace-shell .academy-team-detail-panel h3,
#adminPanel.academy-workspace-shell .development-intelligence-head h3 {
  font-size: var(--pid-text-section) !important;
  line-height: var(--pid-leading-tight) !important;
}

#adminPanel.academy-workspace-shell .academy-quick-action strong,
#adminPanel.academy-workspace-shell .academy-player-row h4,
#adminPanel.academy-workspace-shell .academy-team-card h4,
#adminPanel.academy-workspace-shell .team-directory-card h4,
#adminPanel.academy-workspace-shell .team-staff-row strong,
#adminPanel.academy-workspace-shell .academy-team-detail-panel h4 {
  font-size: var(--pid-text-lg) !important;
  line-height: var(--pid-leading-ui) !important;
}

#adminPanel.academy-workspace-shell .academy-quick-action small,
#adminPanel.academy-workspace-shell .dashboard-metric-card > span,
#adminPanel.academy-workspace-shell .dashboard-list-row small,
#adminPanel.academy-workspace-shell .academy-player-row p,
#adminPanel.academy-workspace-shell .academy-player-row span,
#adminPanel.academy-workspace-shell .academy-team-card p,
#adminPanel.academy-workspace-shell .academy-team-card small,
#adminPanel.academy-workspace-shell .team-staff-row small,
#adminPanel.academy-workspace-shell .academy-team-detail-head p,
#adminPanel.academy-workspace-shell .academy-rollover-head p,
#adminPanel.academy-workspace-shell .rollover-help,
#adminPanel.academy-workspace-shell .rollover-confirm p,
#adminPanel.academy-workspace-shell .rollover-success p {
  font-size: var(--pid-text-sm) !important;
  line-height: var(--pid-leading-body) !important;
}

#adminPanel.academy-workspace-shell .dashboard-metric-card small,
#adminPanel.academy-workspace-shell .academy-player-page-actions .eyebrow,
#adminPanel.academy-workspace-shell .academy-player-subhead .eyebrow,
#adminPanel.academy-workspace-shell .academy-cloud-player-toolbar label > span,
#adminPanel.academy-workspace-shell .academy-team-form label,
#adminPanel.academy-workspace-shell .academy-team-assignment-fields label > span,
#adminPanel.academy-workspace-shell .rollover-step-head b,
#adminPanel.academy-workspace-shell .rollover-source small,
#adminPanel.academy-workspace-shell .rollover-destination-card small,
#adminPanel.academy-workspace-shell .rollover-player label,
#adminPanel.academy-workspace-shell .rollover-preview-summary small {
  font-size: var(--pid-text-xs) !important;
  line-height: var(--pid-leading-ui) !important;
}

#adminPanel.academy-workspace-shell .dashboard-metric-card strong {
  font-size: 1.75rem !important;
}

#adminPanel.academy-workspace-shell .academy-player-code,
#adminPanel.academy-workspace-shell .academy-team-assignment-player span,
#adminPanel.academy-workspace-shell [data-player-id] {
  font-size: var(--pid-text-sm) !important;
  font-weight: 700;
  line-height: var(--pid-leading-ui);
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}

#adminPanel.academy-workspace-shell .dashboard-overview-grid,
#adminPanel.academy-workspace-shell .academy-player-page,
#adminPanel.academy-workspace-shell .team-management-shell {
  gap: var(--pid-section-gap-compact) !important;
}

#adminPanel.academy-workspace-shell .dashboard-section-head,
#adminPanel.academy-workspace-shell .academy-player-subhead,
#adminPanel.academy-workspace-shell .academy-team-page-head {
  margin-bottom: var(--pid-space-3) !important;
}

#adminPanel.academy-workspace-shell .academy-rollover-head {
  gap: var(--pid-space-4);
  padding: var(--pid-space-5) var(--pid-space-6);
}

#adminPanel.academy-workspace-shell .academy-rollover-head h3 {
  margin: var(--pid-space-1) 0;
  font-size: var(--pid-text-section);
  line-height: var(--pid-leading-tight);
}

@media (max-width: 768px) {
  #adminPanel.academy-workspace-shell > .academy-shell-page-heading h1 {
    font-size: 1.625rem;
  }

  #adminPanel.academy-workspace-shell > .academy-shell-page-heading {
    padding-block: var(--pid-space-4) var(--pid-space-3);
  }

  /* Deliberately no width, margin-inline or outer padding override here:
     Team Detail retains the approved single-gutter, full-width mobile shell. */
  #adminPanel.academy-workspace-shell .academy-team-detail {
    font-size: var(--pid-text-body);
  }
}
