/*
 * Graphite Note - Readability Pass 11
 * Focused typography scale correction only.
 *
 * Purpose:
 * - move the application away from 9-12px-heavy legacy sizing
 * - align working density more closely with modern enterprise consoles
 * - preserve existing layout, spacing, colors and component structure
 *
 * Loaded after all previous Graphite premium/compatibility styles.
 */

:root {
  --gne-fs-meta: 11.5px;
  --gne-fs-label: 12px;
  --gne-fs-small: 13px;
  --gne-fs-body: 14px;
  --gne-fs-body-lg: 15px;
  --gne-fs-card-title: 16px;
  --gne-fs-section-title: 18px;
  --gne-fs-page-title: 23px;
  --gne-fs-kpi: 19px;
}

/* Base application readability. */
body,
.gn-app-shell {
  font-size: 14px !important;
  line-height: 1.5;
}

/* Main/sidebar navigation should not read like metadata. */
.gn-sidebar .gn-sidebar-brand {
  font-size: 14px !important;
}

.gn-sidebar .navbar-light .navbar-nav .nav-link,
.gn-sidebar .q-main-menu-nav-link,
.gn-sidebar .dropdown-item {
  font-size: 14px !important;
  line-height: 19px !important;
}

.gn-sidebar .gn-sidebar-profile-copy strong {
  font-size: 14px !important;
  line-height: 17px !important;
}

.gn-sidebar .gn-sidebar-profile-copy small {
  font-size: 14px !important;
  line-height: 15px !important;
}

/* Buttons, tabs, forms and analytical controls. */
.gn-app-shell .btn, .gn-app-shell .btn_main, .gn-app-shell button, .gn-app-shell input, .gn-app-shell textarea, .gn-app-shell select{
  font-size: 14px !important;
}

.gn-app-shell .performance-subtabs .btn,
.gn-app-shell .model-performance-tabs .btn,
.gn-app-shell .nav-tabs .nav-link,
.gn-app-shell .nav-pills .nav-link {
  font-size: 14px !important;
}

/* Tables/grids need to remain dense, but not microscopic. */
.gn-app-shell table, .gn-app-shell table > thead > tr > th, .gn-app-shell table > tbody > tr > td{
  font-size: 14px !important;
}



/* Generic metadata remains secondary, but readable. */
.gn-app-shell small,
.gn-app-shell .text-muted,
.gn-app-shell .gn-meta,
.gn-app-shell .gn-caption {
  font-size: 14px !important;
}

/* Home / welcome: existing composition, corrected text scale. */
.gn-app-shell .gnb-recent-columns .gn-recent-group__label {
  font-size: 14px !important;
}

.gn-app-shell .gnb-recent-item__name,
.gn-app-shell .gn-quick-action,
.gn-app-shell .gnb-ai-suggestions button,
.gn-app-shell .gnb-ai-assistant input,
.gn-app-shell .gnb-ai-assistant button {
  font-size: 14px !important;
}

.gn-app-shell .gnb-recent-item__meta,
.gn-app-shell .gnb-recent-item__time,
.gn-app-shell .gn-quick-resources__label,
.gn-app-shell .gn-quick-resource {
  font-size: 14px !important;
}

/* Assistant workspace: bring all conversation text up one full readability step. */
.gn-app-shell .gn-assistant-eyebrow,
.gn-app-shell .gn-assistant-message__role,
.gn-app-shell .gn-assistant-scope-badge,
.gn-app-shell .gn-assistant-conversation__time,
.gn-app-shell .gn-assistant-disclaimer {
  font-size: 14px !important;
}

.gn-app-shell .gn-assistant-sidebar h1 {
  font-size: 18px !important;
  line-height: 24px !important;
}

.gn-app-shell .gn-assistant-chat__identity h2 {
  font-size: 15px !important;
  line-height: 20px !important;
}

.gn-app-shell .gn-assistant-chat__identity p,
.gn-app-shell .gn-assistant-list-state,
.gn-app-shell .gn-assistant-suggestions button,
.gn-app-shell .gn-assistant-error {
  font-size: 14px !important;
}

.gn-app-shell .gn-assistant-new,
.gn-app-shell .gn-assistant-conversation__title,
.gn-app-shell .gn-assistant-message__content,
.gn-app-shell .gn-assistant-composer textarea {
  font-size: 14px !important;
}

.gn-app-shell .gn-assistant-message__content {
  line-height: 1.58 !important;
}

.gn-app-shell .gn-assistant-empty p {
  font-size: 14px !important;
}

/* Chart labels: avoid tiny 9-10px analytical labels where the chart engine honors CSS. */
.gn-app-shell svg text, .gn-app-shell .dxc-title text, .gn-app-shell .dxc-legend text, .gn-app-shell .dxc-axis text, .gn-app-shell .main-svg text{
  font-size: 14px !important;
}

/* Keep laptop layouts usable after the type-scale increase. */
@media (max-width: 1366px) {
  :root {
    --gne-fs-page-title: 22px;
    --gne-fs-section-title: 17px;
  }

  .gn-app-shell .gn-assistant-message__content, .gn-app-shell .gn-assistant-composer textarea, .gn-app-shell table{
    font-size: 14px !important;
  }
}
