:root {
  --font-body: 15px;
  --font-meta: 12px;
  font-size: 16px;
}

body {
  font-size: var(--font-body);
  line-height: 1.5;
}

/* Page and section hierarchy */
.page-heading h1,
.auth-card h1 {
  font-size: 28px;
  line-height: 1.2;
}

.detail-title h1,
.repo-title-line h1,
.repo-title-line .owner-link,
.repo-title-line .crumb-sep,
.issue-detail-title h1 {
  font-size: 25px;
  line-height: 1.25;
}

.pr-subtitle,
.release-title-line h2 {
  font-size: 20px;
  line-height: 1.3;
}

.modal-head h2,
.issue-properties h2 {
  font-size: 18px;
}

.stat-number {
  font-size: 24px;
}

.panel-title,
.repo-card h3,
.pr-title,
.repo-name,
.issue-title,
.commit-history-main strong,
.notification-copy strong,
.review-card h3 {
  font-size: 15px;
}

.page-heading p,
.pr-summary,
.review-info,
.inline-review-comment,
.repo-description,
.repo-card p,
.markdown-body,
.issue-comment-body,
.release-intro,
.release-notes.markdown-body,
.about-content,
.dependency-alert-summary,
.repository-backup-body,
.commit-message {
  font-size: 14px;
  line-height: 1.55;
}

/* Navigation, controls, and form fields */
.workspace strong,
.sidebar-bottom strong,
.nav-item,
.sidebar-repo,
.breadcrumbs,
.status-pill,
.button,
.repo-tab,
.issue-filter,
.issue-list-toolbar,
.issue-comment-form label,
.field label,
.review-request-form label,
.review-request-form strong,
.release-option,
.release-upload-form label {
  font-size: 14px;
}

.button.small,
.nav-count,
.empty,
.search input,
.field input,
.field textarea,
.field select,
.release-upload-form input,
.issue-properties input,
.issue-properties select,
.issue-triage-filters input,
.issue-triage-filters select,
.review-request-form select,
.branch-controls select,
.file-view-head select,
.history-branch-select,
.audit-filters input,
.audit-filters select,
.code-search-form input,
.code-search-form select,
.google-button,
.toast {
  font-size: 13px;
}

.button.small {
  font-size: 12px;
}

.comment-form textarea,
.issue-comment-form textarea,
.inline-comment-form textarea,
.inline-reply-form textarea {
  font-size: 14px;
  line-height: 1.5;
}

.nav-item {
  height: 42px;
}

.button {
  min-height: 40px;
}

.button.small {
  min-height: 34px;
}

.field input,
.field textarea,
.field select,
.search input,
.issue-triage-filters input,
.issue-triage-filters select,
.branch-controls select,
.file-view-head select,
.history-branch-select,
.code-search-form input,
.code-search-form select,
.audit-filters input,
.audit-filters select {
  min-height: 40px;
}

/* Supporting text stays comfortably readable */
.workspace small,
.sidebar-bottom small,
.side-label,
.stat-label,
.stat-note,
.panel-title .count,
.text-link,
.repo-meta,
.branch-summary,
.latest-commit,
.latest-date,
.visibility,
.pr-meta,
.state,
.repo-card-foot,
.commit-row,
.commit-row .author,
.commit-row .date,
.pr-section-head,
.review-info,
.field-hint,
.auth-card p,
.auth-note,
.auth-error,
.repo-file-row,
.commit-history-meta,
.file-kind,
.readme-title,
.about-source a,
.about-source > span:last-child,
.clone-help,
.sync-status,
.file-path,
.issue-label,
.issue-properties label,
.issue-property-label,
.cutover-confirm,
.notification-copy span,
.notification-copy small,
.inline-review-comment > span,
.inline-thread-actions > span,
.stale-approval,
.review-request-form,
.pr-checks > strong,
.pr-check-row,
.pr-check-copy b,
.pr-check-copy small,
.pr-check-row > a,
.code-owner-panel,
.code-owner-panel > strong,
.code-owner-panel > small,
.code-owner-panel div small,
.code-owner-panel > div b,
.sync-health-meta,
.sync-check-row strong,
.sync-check-row small,
.release-meta,
.release-assets,
.release-asset > span,
.release-empty-notes,
.release-upload-form small,
.dependency-alert-top,
.dependency-alert-top > strong,
.dependency-kind,
.dependency-severity,
.dependency-coverage,
.audit-result-meta,
.audit-event-main > strong,
.audit-meta,
.audit-details,
.code-search-summary,
.code-search-meta > a,
.reaction-chips span,
.github-pr-metadata,
.commit-detail-meta,
.commit-changed-file,
.issue-meta,
.issue-updated,
.issue-comment header,
.issue-comment header strong,
.issue-form-actions,
.commit-history-pagination {
  font-size: var(--font-meta);
}

.eyebrow,
.brand-sub,
.visibility-pill,
.issue-import-badge,
.audit-action {
  font-size: 11px;
}

/* Keep code and identifiers monospaced, with enough size to scan */
.branch-chip,
.clone-box,
.commit-row code,
.commit-hash-link code,
.commit-full-hash code,
.commit-history-row code,
.audit-target,
.audit-details pre,
.code-search-result pre,
.source-code code,
.dependency-alert-top code,
.dependency-alert code {
  font-size: 12px;
}

.source-code .code-line-number {
  font-size: 12px;
}

@media (max-width: 700px) {
  .content {
    padding: 24px 20px 40px;
  }

  .page-heading h1,
  .auth-card h1 {
    font-size: 25px;
  }

  .topbar {
    padding: 0 20px;
  }
}
