/* Governor House Sindh: refined typography.
   One professional typeface (Inter) and one compact, consistent type scale for every page.
   Loaded last so it settles sizes set in the older stylesheets. */

:root {
  --gh-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gh-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-xs: 11px;     /* labels, table headers, badges */
  --t-sm: 12px;     /* meta text, captions */
  --t-base: 13px;   /* body, tables, forms, menus */
  --t-md: 14px;     /* card titles */
  --t-lg: 16px;     /* section headings */
  --t-xl: 19px;     /* page titles */
  --t-num: 24px;    /* KPI figures */

  --bs-body-font-family: var(--gh-font-sans);
  --bs-body-font-size: var(--t-base);
}

html { font-size: 14px; }
body {
  font-family: var(--gh-font-sans) !important;
  font-size: var(--t-base);
  line-height: 1.55;
  letter-spacing: -0.003em;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}
button, input, select, textarea, .btn, .form-control, .form-select, .dropdown-menu, .swal2-popup, .select2-container, .dataTables_wrapper {
  font-family: var(--gh-font-sans) !important;
}
code, kbd, pre, samp, .ghc-ref, .font-monospace { font-family: var(--gh-font-mono) !important; }

/* Headings */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--gh-font-sans); font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; color: var(--gh-deep); }
h1, .h1 { font-size: 21px; }
h2, .h2 { font-size: 18px; }
h3, .h3 { font-size: 16px; }
h4, .h4 { font-size: 15px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 13px; }

/* Bootstrap size utilities, tamed */
.fs-1 { font-size: 24px !important; }
.fs-2 { font-size: 21px !important; }
.fs-3 { font-size: 18px !important; }
.fs-4 { font-size: 16px !important; }
.fs-5 { font-size: 14px !important; }
.fs-6 { font-size: 13px !important; }
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { font-size: 26px !important; font-weight: 600 !important; }
.small, small { font-size: var(--t-sm); }
.fw-bolder, .fw-bold { font-weight: 600 !important; }
.lead { font-size: 14px; font-weight: 400; }

/* Page header */
.gh-page-title, .ghc-heading h1 { font-size: var(--t-xl) !important; font-weight: 600 !important; letter-spacing: -0.015em; }
.gh-page-title i, .ghc-heading h1 i { font-size: 18px; }
.gh-page-subtitle, .ghc-hero .ghc-sub { font-size: var(--t-sm) !important; color: var(--gh-muted); font-weight: 400; }
.ghc-heading h2, .ghc-hero h2 { font-size: 17px !important; font-weight: 600 !important; }
.ghc-card-head h3 { font-size: var(--t-md) !important; font-weight: 600 !important; }

/* KPI and stat cards */
.gh-kpi-title, .ghc-kpi-label { font-size: var(--t-xs) !important; font-weight: 600 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gh-muted) !important; line-height: 1.4; }
.ghc-kpi-label { text-transform: none; letter-spacing: 0; font-size: var(--t-sm) !important; font-weight: 500 !important; }
.gh-kpi-value, .ghc-kpi-value { font-size: var(--t-num) !important; font-weight: 650 !important; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gh-stat-label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gh-muted); display: block; margin-bottom: 4px; }
.gh-stat-value { font-size: 18px; font-weight: 600; color: var(--gh-deep); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.gh-stat-value.is-nil { color: var(--gh-muted); font-weight: 500; }
.gh-stat-note { font-size: var(--t-sm); color: var(--gh-muted); margin-left: 4px; font-weight: 400; }

/* Sidebar */
.gh-brand-title { font-size: 14px !important; font-weight: 600 !important; }
.gh-brand-subtitle { font-size: 10px !important; font-weight: 500 !important; letter-spacing: 0.08em; }
.gh-nav-section-title { font-size: 10px !important; font-weight: 600 !important; letter-spacing: 0.1em; }
.gh-nav-link { font-size: var(--t-base) !important; font-weight: 500 !important; padding-top: 8px !important; padding-bottom: 8px !important; }
.gh-nav-link i { font-size: 15px !important; }
.ghc-office-card .ghc-title { font-size: var(--t-base) !important; font-weight: 600 !important; }

/* Top bar and ribbon */
.gh-topbar, .ghc-topbar { font-size: var(--t-base); }
.ghc-topbar .ghc-crumb { font-size: var(--t-sm) !important; }
.ghc-ribbon .ghc-ribbon-body { font-size: 12.5px !important; }

/* Buttons and forms */
.btn { font-size: var(--t-base) !important; font-weight: 500 !important; letter-spacing: 0; }
.btn-sm { font-size: var(--t-sm) !important; }
.btn-lg { font-size: var(--t-md) !important; }
.form-control, .form-select, .input-group-text { font-size: var(--t-base) !important; }
.form-control-sm, .form-select-sm { font-size: var(--t-sm) !important; }
.form-label, label { font-size: var(--t-sm); font-weight: 500; }
.badge, .ghc-pill { font-size: var(--t-xs) !important; font-weight: 600 !important; letter-spacing: 0.02em; }
.dropdown-item { font-size: var(--t-base); }

/* Tables */
.table, .ghc-table, table.dataTable { font-size: var(--t-base) !important; }
.table th, .ghc-table th, table.dataTable thead th {
  font-size: var(--t-xs) !important; font-weight: 600 !important; letter-spacing: 0.05em; text-transform: uppercase;
}
.table td .fw-bold, table.dataTable td .fw-bold, .table td strong { font-weight: 600 !important; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { font-size: var(--t-sm) !important; }

/* Chain-of-command widgets */
.ghc-step-title { font-size: var(--t-xs) !important; font-weight: 600 !important; }
.ghc-timeline .ghc-tl-head { font-size: var(--t-base) !important; font-weight: 600 !important; }

/* Numbers line up in every table and figure */
td, .gh-kpi-value, .ghc-kpi-value, .gh-stat-value { font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
  .gh-page-title, .ghc-heading h1 { font-size: 17px !important; }
  .gh-kpi-value, .ghc-kpi-value { font-size: 21px !important; }
}
