/* GIVI_FONT_IDENTITY_V1
   Visual-only typography layer.
   Primary: Inter
   Fallback: Segoe UI, Arial, sans-serif
   No route, database, business-rule, or data changes.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --givi-font-sans: "Inter", "Segoe UI", Arial, sans-serif;

  --givi-fw-regular: 400;
  --givi-fw-medium: 500;
  --givi-fw-semibold: 600;
  --givi-fw-bold: 700;
  --givi-fw-extrabold: 800;

  --givi-lh-tight: 1.15;
  --givi-lh-title: 1.22;
  --givi-lh-body: 1.50;
}

/* Global font authority */
html,
body,
button,
input,
select,
textarea,
table,
th,
td,
a,
label,
small {
  font-family: var(--givi-font-sans);
}

body {
  font-weight: var(--givi-fw-regular);
  line-height: var(--givi-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Main titles */
h1 {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-bold);
  line-height: var(--givi-lh-tight);
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-bold);
  line-height: var(--givi-lh-title);
  letter-spacing: -0.018em;
}

h3,
h4,
h5,
h6 {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-semibold);
  line-height: var(--givi-lh-title);
  letter-spacing: -0.01em;
}

/* Paragraphs / supporting copy */
p {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-regular);
}

/* Navigation and action controls */
nav,
.nav,
.navbar,
.sidebar,
button,
.btn,
[role="button"] {
  font-family: var(--givi-font-sans);
}

button,
.btn,
[role="button"] {
  font-weight: var(--givi-fw-semibold);
}

/* Tables */
table,
th,
td {
  font-family: var(--givi-font-sans);
}

th {
  font-weight: var(--givi-fw-semibold);
}

td {
  font-weight: var(--givi-fw-regular);
}

/* Common dashboard semantic classes: visual typography only */
.page-title,
.dashboard-title,
.section-title,
.card-title,
.panel-title,
.modal-title {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-bold);
  line-height: var(--givi-lh-title);
  letter-spacing: -0.018em;
}

.subtitle,
.page-subtitle,
.section-subtitle,
.card-subtitle,
.description,
.helper-text,
.hint,
.caption,
.muted,
.text-muted {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-regular);
}

.eyebrow,
.overline,
.kicker,
.section-label {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-bold);
  letter-spacing: 0.12em;
}

.kpi-value,
.metric-value,
.stat-value,
.number,
.numeric {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-bold);
  font-variant-numeric: tabular-nums;
}

.tooltip,
[role="tooltip"] {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-medium);
}

/* Keep form controls visually consistent */
input,
select,
textarea {
  font-weight: var(--givi-fw-regular);
}

input::placeholder,
textarea::placeholder {
  font-family: var(--givi-font-sans);
  font-weight: var(--givi-fw-regular);
}
