/* Base typography — replaces bootstrap's body/text reset */

/* ── Fonts ───────────────────────────────────────────────── */
@font-face {
  font-family: "hkgrotesk";
  src: url("../../fonts/hkgrotesk-light.woff2") format("woff2"),
       url("../../fonts/hkgrotesk-light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "hkgrotesk";
  src: url("../../fonts/hkgrotesk-regular.woff2") format("woff2"),
       url("../../fonts/hkgrotesk-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "hkgrotesk";
  src: url("../../fonts/hkgrotesk-medium.woff2") format("woff2"),
       url("../../fonts/hkgrotesk-medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "hkgrotesk";
  src: url("../../fonts/hkgrotesk-semibold.woff2") format("woff2"),
       url("../../fonts/hkgrotesk-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "hkgrotesk";
  src: url("../../fonts/hkgrotesk-bold.woff2") format("woff2"),
       url("../../fonts/hkgrotesk-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* ── Reset ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "hkgrotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--nc-body-font-size, 0.8125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--theme-text-primary, #1f2937);
  background: var(--theme-bg-canvas, #f3f6f9);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--theme-text-primary, inherit);
}

h1, .h1 { font-size: 1.5rem; }
h2, .h2 { font-size: 1.25rem; }
h3, .h3 { font-size: 1.1rem; }
h4, .h4 { font-size: 1rem; }
h5, .h5 { font-size: 0.875rem; }
h6, .h6 { font-size: 0.8125rem; }

p {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

a {
  color: var(--theme-primary, #3b5998);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

b, strong {
  font-weight: 600;
}

small, .small {
  font-size: 0.75rem;
}

.text-muted, .nc-text-muted {
  color: var(--theme-text-secondary, #64748b);
}

.nc-text-danger {
  color: var(--theme-danger, #f06548);
}

label {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--theme-text-primary, inherit);
}

img {
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--theme-primary, #3b5998);
  outline-offset: 2px;
}
