/*
  Shared Superadmin legibility pass.
  This file is intentionally loaded last so typography can be normalized without
  changing the compact spacing and layout rules owned by each feature stylesheet.
*/

body {
  font-size: 15px;
}

.welcome-row p,
.section-intro p {
  color: #626a64;
  font-size: 14px;
  line-height: 1.6;
}

/* True decorative labels keep the visual hierarchy, with an 11px floor. */
.admin-brand small,
.admin-environment,
.admin-nav .nav-section,
.login-brand-content > span,
.login-eyebrow,
.page-kicker,
.panel-heading span {
  font-size: 11px;
}

.page-kicker,
.admin-environment,
.panel-heading span {
  color: #5d7514;
}

.admin-brand small,
.admin-nav .nav-section {
  color: #929994;
}

.admin-nav a em {
  font-size: 12px;
}

.admin-nav > a {
  font-size: 14px;
  line-height: 1.35;
}

.admin-nav-children a {
  color: #9ca29e;
  font-size: 13px;
  line-height: 1.35;
}

/* Account, system, notice, and shared panel copy. */
.account-copy b,
.sidebar-footer b,
.local-preview-card b {
  font-size: 13px;
}

.account-copy small,
.sidebar-footer small,
.admin-footer,
.local-preview-card span,
.local-preview-card a {
  font-size: 12px;
  line-height: 1.4;
}

.account-copy small,
.admin-footer,
.local-preview-card span {
  color: #626a64;
}

.sidebar-footer small {
  color: #a1a7a2;
}

.preview-notice {
  font-size: 13px;
  line-height: 1.45;
}

.button-primary,
.button-secondary {
  font-size: 12px;
  line-height: 1.25;
}

.metric-card > span,
.panel-heading > strong,
.status-card > div span,
.status-card > strong,
.system-strip b {
  font-size: 12px;
}

.metric-card > small,
.panel-heading a,
.readiness-list small,
.status-card > small,
.system-strip small,
.system-strip > a,
.placeholder-note {
  color: #626a64;
  font-size: 12px;
  line-height: 1.45;
}

.readiness-list b {
  font-size: 13px;
}

.readiness-list em {
  font-size: 12px;
}

.empty-state p,
.placeholder-panel p {
  color: #626a64;
  font-size: 14px;
  line-height: 1.6;
}

.login-card label {
  font-size: 12px;
}

.login-input {
  font-size: 14px;
  line-height: 1.45;
}

.login-help {
  color: #626a64;
  font-size: 13px;
  line-height: 1.5;
}

.login-card > p {
  color: #626a64;
}

.field-error,
.login-error {
  font-size: 12px;
  line-height: 1.4;
}

/* Member and coordinator management. */
.member-metric-grid span {
  color: #626a64;
  font-size: 12px;
  line-height: 1.35;
}

.member-toolbar label,
.cleanup-form label,
.detail-body label {
  font-size: 12px;
  line-height: 1.35;
}

.member-input,
.member-select {
  font-size: 14px;
  line-height: 1.4;
}

.member-table th {
  color: #626a64;
  font-size: 12px;
  line-height: 1.35;
}

.member-table td {
  font-size: 13px;
  line-height: 1.45;
}

.member-name small {
  color: #626a64;
  font-size: 13px;
  line-height: 1.4;
}

.member-name em,
.member-status {
  font-size: 12px;
}

.table-action,
.danger-button {
  font-size: 12px;
  line-height: 1.3;
}

.admin-message {
  font-size: 13px;
  line-height: 1.5;
}

.cleanup-panel p,
.action-copy,
.purge-panel p {
  color: #626a64;
  font-size: 14px;
  line-height: 1.6;
}

.detail-list dt {
  color: #626a64;
  font-size: 12px;
  line-height: 1.4;
}

.detail-list dd {
  font-size: 13px;
  line-height: 1.4;
}

.related-grid span {
  color: #626a64;
  font-size: 12px;
  line-height: 1.45;
}

.archived-note {
  font-size: 13px;
  line-height: 1.45;
}

/* Monetization dashboard. */
.dashboard-revenue-callout p {
  color: #626a64;
  font-size: 14px;
  line-height: 1.5;
}

.model-review-banner p {
  color: #80695e;
  font-size: 13px;
  line-height: 1.5;
}

.revenue-callout-metric small,
.revenue-metric > div span,
.revenue-metric > small,
.chart-empty-copy small,
.health-chart li b,
.health-chart li em {
  font-size: 12px;
  line-height: 1.4;
}

.model-review-banner span,
.health-ring span,
.audience-plan span {
  font-size: 11px;
}

.audience-plan > strong {
  font-size: 12px;
}

.model-review-banner > a,
.period-selector button {
  font-size: 12px;
}

.chart-labels {
  font-size: 11px;
}

.audience-plan p,
.decision-grid p {
  color: #626a64;
  font-size: 13px;
  line-height: 1.55;
}

.revenue-callout-metric small,
.revenue-metric:not(.featured) > div span,
.revenue-metric:not(.featured) > small,
.chart-empty-copy small,
.chart-labels,
.health-ring span,
.health-chart li em,
.audience-plan span {
  color: #626a64;
}

.revenue-metric.featured > small {
  color: #aeb5b0;
}

/* Support queues and conversations. */
.support-response-promise b,
.support-closed-note b,
.support-dashboard-card b {
  font-size: 13px;
}

.support-response-promise span,
.support-queue-metrics span,
.support-queue-metrics small,
.support-dashboard-card span {
  color: #626a64;
  font-size: 12px;
  line-height: 1.4;
}

.support-toolbar label {
  font-size: 12px;
  line-height: 1.35;
}

.support-avatar {
  font-size: 12px;
}

.support-row-title b {
  font-size: 14px;
  line-height: 1.35;
}

.support-row-title em,
.support-status,
.support-priority,
.support-due,
.support-dashboard-counts em {
  font-size: 12px;
}

.support-participant,
.support-preview {
  color: #626a64;
  font-size: 13px;
  line-height: 1.4;
}

.support-row-meta,
.support-row-meta > strong,
.support-message-meta,
.support-message-meta b {
  font-size: 12px;
  line-height: 1.4;
}

.support-row-meta,
.support-message-meta {
  color: #626a64;
}

.support-thread-header p {
  color: #626a64;
  font-size: 14px;
  line-height: 1.5;
}

.support-back-link,
.support-reply-actions span,
.support-dashboard-heading > strong {
  color: #626a64;
  font-size: 12px;
  line-height: 1.45;
}

.support-thread-topline > small,
.support-reply-heading > small,
.support-closed-note span {
  color: #626a64;
  font-size: 13px;
  line-height: 1.45;
}

.support-readonly-notice,
.support-resolution-panel p {
  font-size: 13px;
  line-height: 1.55;
}

.support-thread-topline span,
.support-reply-heading span,
.support-dashboard-heading span {
  font-size: 11px;
}

.support-bubble p {
  font-size: 14px;
  line-height: 1.65;
}

.system-message .support-bubble p {
  font-size: 12px;
}

.support-reply-input {
  font-size: 14px;
  line-height: 1.55;
}

/* Academy navigation, catalogue, forms, and progress reporting. */
.academy-readonly strong {
  font-size: 14px;
}

.academy-readonly span,
.academy-course-copy p,
.academy-category-row p,
.academy-module-row p,
.academy-import-row p,
.academy-member-content p,
.academy-security-note {
  font-size: 13px;
  line-height: 1.5;
}

.academy-admin-stats span,
.academy-admin-stats small,
.academy-list-heading > a,
.academy-category-row > div > span,
.academy-form-stack small,
.academy-form-grid small,
.academy-visual-grid small,
.academy-slug-field > span,
.academy-toggle small,
.academy-source-card p,
.academy-table-subline,
.academy-import-summary span,
.academy-import-actions > span {
  font-size: 12px;
  line-height: 1.4;
}

.academy-admin-stats small,
.academy-admin-stats span,
.academy-category-row > div > span,
.academy-course-copy small,
.academy-course-copy p,
.academy-category-row small,
.academy-category-row p,
.academy-module-row small,
.academy-module-row p,
.academy-lesson-row small,
.academy-asset-row small,
.academy-import-row small,
.academy-import-row p,
.academy-form-stack small,
.academy-form-grid small,
.academy-visual-grid small,
.academy-slug-field > span,
.academy-toggle small,
.academy-source-card p,
.academy-table-subline {
  color: #626a64;
}

.academy-import-summary span,
.academy-import-actions > span,
.academy-course-meta span {
  color: #626a64;
}

.academy-toolbar label,
.academy-form-stack label:not(.academy-toggle),
.academy-form-grid label,
.academy-visual-grid label,
.academy-member-content label {
  font-size: 12px;
  line-height: 1.35;
}

.academy-order span {
  color: #6b726d;
  font-size: 11px;
}

.academy-status,
.academy-entitlement,
.academy-course-meta span {
  font-size: 12px;
}

.academy-admin-stats article > div {
  min-width: 0;
}

.academy-course-copy small,
.academy-category-row small,
.academy-module-row small,
.academy-lesson-row small,
.academy-asset-row small,
.academy-import-row small {
  font-size: 12px;
  line-height: 1.4;
}

.academy-toggle b,
.academy-progress-table strong {
  font-size: 13px;
}

.academy-archive-button,
.academy-danger-button {
  font-size: 12px;
}

.academy-code-input {
  font-size: 14px;
  line-height: 1.45;
}

.academy-source-card p {
  color: #626a64;
  font-size: 13px;
  line-height: 1.5;
}

.academy-security-note.light span {
  color: #626a64;
}

/* Trust/review workflows and communications inherit the same member scale. */
.review-copy-block > span {
  color: #626a64;
  font-size: 11px;
}

.review-action-panel label {
  font-size: 12px;
}

.review-field-help {
  color: #626a64;
  font-size: 12px;
  line-height: 1.55;
}

.review-readonly p,
.review-state-note p {
  font-size: 14px;
  line-height: 1.6;
}

.communication-metrics .email-setting {
  font-size: 14px;
  line-height: 1.4;
}

/* Page-specific editorial controls are loaded before this shared final pass. */
.editorial-author,
.editorial-check small,
.editorial-form-grid small,
.editorial-style-card small,
.editorial-security-note span,
.editor-section-card header small,
.editor-section-card header span,
.editor-section-card label {
  font-size: 12px;
  line-height: 1.4;
}

.editor-section-card header span {
  color: #5d7514;
  font-size: 11px;
}

.editorial-security-note span {
  color: #626a64;
  font-size: 13px;
  line-height: 1.55;
}

.editorial-author,
.editorial-check small,
.editorial-form-grid small,
.editorial-style-card small,
.editor-section-card header small,
.editor-section-card label {
  color: #626a64;
}

.editorial-check b,
.editorial-sections-heading p,
.editorial-security-note strong,
.slug-input > span,
.suffix-input > span {
  font-size: 13px;
  line-height: 1.4;
}

.editorial-check b,
.editorial-security-note strong {
  font-size: 12px;
}

@media (max-width: 1600px) {
  .academy-admin-stats-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dashboard-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .dashboard-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-row,
  .section-intro {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  .support-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .support-dashboard-card:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 800px) {
  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell input[type="text"],
  .admin-shell input[type="email"],
  .admin-shell input[type="password"],
  .admin-shell input[type="search"],
  .admin-shell input[type="number"],
  .admin-shell input[type="url"],
  .admin-shell input[type="tel"],
  .admin-shell input[type="date"],
  .admin-shell input[type="datetime-local"],
  .admin-shell input[type="time"],
  .admin-shell select,
  .admin-shell textarea,
  .login-body input[type="text"],
  .login-body input[type="email"],
  .login-body input[type="password"],
  .login-body input[type="search"],
  .login-body input[type="number"],
  .login-body input[type="url"],
  .login-body input[type="tel"],
  .login-body input[type="date"],
  .login-body input[type="datetime-local"],
  .login-body input[type="time"],
  .login-body select,
  .login-body textarea {
    font-size: 16px;
  }
}

/* Tester R4-02 (2026-11-05): wide member tables scroll inside themselves on tablets and phones, not the page. */
@media (max-width: 1000px) {
  .member-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Tester R4-04: row buttons and small links at least 36px tall for staff. */
.admin-shell .table-action,
.admin-shell .danger-button,
.admin-shell .academy-archive-button,
.admin-shell .academy-danger-button,
.admin-shell .academy-list-heading > a,
.admin-shell td > a,
.admin-shell td > button,
.admin-shell td form > button,
.admin-shell td > input[type="submit"],
.admin-shell td form > input[type="submit"] {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
