/* WaLink Pro typography system v7.0.0
   Font roles: Plus Jakarta Sans = brand/display/headings;
   Inter = body/controls/tables; Geist Mono = numeric and technical labels.
   Loaded last after all legacy and premium UI styles. Layout-only change. */
:root {
  --type-font-display: "Plus Jakarta Sans", sans-serif;
  --type-font-body: "Inter", sans-serif;
  --type-font-mono: "Geist Mono", monospace;
  --wl-font: var(--type-font-body);
  --wl-font-heading: var(--type-font-display);
  --wl-font-mono: var(--type-font-mono);
}
html, body, .walink-app-container, .walink-main-content,
.walink-navbar, .walink-nav-links, .walink-footer {
  font-family: var(--type-font-body);
}
/* Native controls often do not inherit the font set on body. */
button, input, select, textarea, optgroup, option,
fieldset, legend, label, output, progress, meter,
table, th, td, summary, details, dialog,
[role="button"], [role="textbox"], [role="combobox"],
[role="listbox"], [role="option"], [role="menu"],
[role="menuitem"], [contenteditable="true"],
.walink-btn, .walink-input, .walink-select, .walink-textarea,
.walink-label, .walink-nav-item, .walink-mono + span {
  font-family: var(--type-font-body);
}
/* Branding, all heading levels, card headers, modal titles, price display. */
h1, h2, h3, h4, h5, h6,
.walink-nav-title, .walink-brand-mark, .walink-card-title,
.wl3-title, .wl4-title, .wl5-title,
[class*="heading"], [class*="Heading"],
[class*="page-title"], [class*="card-title"],
[class*="modal-title"], [class*="section-title"],
[class*="stat-value"], [class*="kpi-value"] {
  font-family: var(--type-font-display);
  font-synthesis: none;
  letter-spacing: -.025em;
}
/* Quantities, IDs, URLs, code, debug data, counters, technical strings. */
code, pre, kbd, samp, .walink-mono,
.walink-badge-duty, .wl-mono,
[class*="mono"], [class*="code-block"],
[class*="code-value"], [class*="technical-value"],
[data-font="mono"] {
  font-family: var(--type-font-mono);
  font-variant-ligatures: none;
  letter-spacing: -.015em;
}
/* Explicit display opt-in for headings embedded in custom components. */
[data-font="display"] { font-family: var(--type-font-display); }
[data-font="body"] { font-family: var(--type-font-body); }
/* Keep text in controls legible on Android without changing zoom behavior. */
input, textarea, select { font-weight: inherit; }
button, select, option { font-synthesis: none; }
/* More tolerant typography at small widths; avoids text spilling from cards. */
.walink-nav-title, .walink-card-title, h1, h2, h3,
.walink-btn, .walink-nav-item { overflow-wrap: break-word; }
@media (max-width: 600px) {
  h1, h2, h3, .walink-nav-title { letter-spacing: -.02em; }
  input, textarea, select { font-size: max(16px, 1em); }
}

/* Shared, reusable WaWink type scale. Keep module-specific layouts intact. */
:root {
  --ww-type-page-title: clamp(1.55rem, 2.4vw, 2rem);
  --ww-type-section-title: 1.25rem;
  --ww-type-card-title: 1.0625rem;
  --ww-type-body: .9375rem;
  --ww-type-body-small: .875rem;
  --ww-type-caption: .8125rem;
}
.walink-card-title { font-size: var(--ww-type-card-title); line-height: 1.35; font-weight: 700; }
