/*
  Windows font rendering correction layer.
  Chrome/Edge on Windows can render Manrope/Space Grotesk softer at small UI sizes.
  The OS-specific hook keeps macOS/iOS typography unchanged while using Windows-native
  hinted UI fonts for sharper dashboard, public selection, and organizer screens.
*/

html[data-os="windows"] {
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
}

html[data-os="windows"],
html[data-os="windows"] body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  font-synthesis-weight: none;
}

html[data-os="windows"] body,
html[data-os="windows"] input,
html[data-os="windows"] select,
html[data-os="windows"] textarea,
html[data-os="windows"] button {
  font-family: var(--font-body) !important;
}

html[data-os="windows"] h1,
html[data-os="windows"] h2,
html[data-os="windows"] h3,
html[data-os="windows"] h4,
html[data-os="windows"] h5,
html[data-os="windows"] h6,
html[data-os="windows"] .hero-title,
html[data-os="windows"] .title-company,
html[data-os="windows"] .class-meta-title,
html[data-os="windows"] .dash-brand-text,
html[data-os="windows"] .section-title,
html[data-os="windows"] .page-title,
html[data-os="windows"] .card-title {
  font-family: var(--font-head) !important;
  letter-spacing: 0 !important;
}

html[data-os="windows"] input,
html[data-os="windows"] select,
html[data-os="windows"] textarea,
html[data-os="windows"] button,
html[data-os="windows"] .btn,
html[data-os="windows"] .chip,
html[data-os="windows"] .badge,
html[data-os="windows"] .pill {
  text-rendering: geometricPrecision;
}

html[data-os="windows"] strong,
html[data-os="windows"] b,
html[data-os="windows"] [style*="font-weight:700"],
html[data-os="windows"] [style*="font-weight: 700"],
html[data-os="windows"] [style*="font-weight:800"],
html[data-os="windows"] [style*="font-weight: 800"] {
  font-weight: 700;
}
