/* Shared by every BlueSpring entry point, including overlays and provider views. */
@font-face {
  font-family: "Hager Scale";
  src: url("../assets/fonts/HagerScale-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Hager Scale";
  src: url("../assets/fonts/HagerScale-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Hager Scale";
  src: url("../assets/fonts/HagerScale-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --font: "Hager Scale", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: var(--font);
  font-synthesis: none;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

button, input, textarea, select, option, optgroup {
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0;
}

.be-wordmark, .lp-cyber {
  letter-spacing: 0 !important;
  text-shadow: none;
  transform: none;
}

/* The large, light headings carry the hierarchy; controls stay quiet. */
body :is(h1, h2, .bsx-question, .bsx-card-title, .bsx-live-brand strong,
  .bsx-live-overview > strong, .bsx-panel-view-title h2,
  .ep-brand strong, .ep-capacity strong, .hero__value strong,
  .source-card__value) {
  font-family: var(--font);
  font-weight: 300 !important;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

body :is(h3, h4, h5, h6) {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.bsx-shell .bsx-question {
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.15;
  max-width: 24ch;
}

.bsx-shell .bsx-main.has-context .bsx-question {
  font-size: clamp(27px, 2.3vw, 34px);
  line-height: 1.2;
}

.bsx-shell.is-login .bsx-question {
  font-size: clamp(38px, 4vw, 50px);
  max-width: 18ch;
}

.bsx-shell.is-login .bsx-answer-form { margin-top: 28px; }
.bsx-shell .bsx-login-input { min-height: 46px; font-size: 17px; line-height: 1.5; }
.bsx-shell .bsx-input { font-size: 20px; line-height: 1.45; }
.bsx-shell .bsx-guidance { font-size: 17px; line-height: 1.55; }
.bsx-card-title { font-size: clamp(25px, 2vw, 29px); }
.bsx-card-kicker { margin-bottom: 6px; font-size: 12px; line-height: 1.4; letter-spacing: 0.025em; }
.bsx-card-head { gap: 14px; padding-bottom: 6px; }
.bsx-settings-head strong { font-size: 21px; font-weight: 300; }
.bsx-settings-row { font-size: 14px; line-height: 1.5; }
.bsx-settings-select { min-height: 40px; font-size: 15px; line-height: 1.4; }
.bsx-history-head h2 { font-size: 28px; }
.bsx-history-message-content { font-size: 15px; line-height: 1.6; }
.bsx-flex-contracts .bsx-flex-setting-group h3 { font-size: 14px; line-height: 1.4; }
.bsx-flex-setting-choice { font-size: 14px; line-height: 1.3; }

/* A little bold for meaningful selection and inline emphasis, not every label. */
body :is(button[aria-pressed="true"], [aria-current="page"],
  .bsx-option.is-selected, .bsx-flex-setting-choice.is-selected,
  .ep-nav-item.is-active, .nav__item.is-active) {
  font-weight: 700 !important;
}
body :is(p, li, .bsx-assistant-copy) > :is(strong, b) { font-weight: 700; }

.ep-question h1, .ep-context-head h1, .ep-login-card h1 {
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ep-intro, .ep-question > p:last-child { line-height: 1.6; }
.ep-field input, .ep-field select, .ep-field textarea { font-size: 16px; line-height: 1.4; }
.ep-chart-heading h2, .ep-section-heading h2, .ep-form-section-head h2 { font-size: 26px; line-height: 1.25; }
.ep-brand small, .ep-kicker, .eyebrow { letter-spacing: 0.06em; }
.topbar h1 { font-size: clamp(30px, 3vw, 40px); }
.hero__value strong { letter-spacing: -0.025em; }
.bsx-live-overview > strong small, .source-card__value small { font-weight: 400; }

/* Technical identifiers, code, logs and protocol measurements keep fixed columns. */
code, pre, kbd, samp, .mono { font-family: var(--mono); }

@media (max-width: 820px) {
  .demo-banner { height: 64px; padding: 8px 12px; line-height: 1.35; }
  .demo-banner + .shell { padding-top: 64px; }
  .bsx-live-brand { gap: 24px; }
  .bsx-shell .bsx-question { font-size: 32px; }
  .bsx-shell .bsx-main.has-context .bsx-question { font-size: 28px; }
  .bsx-shell.is-login .bsx-question { font-size: 38px; }
  .bsx-card-title { font-size: 25px; }
  .bsx-shell .bsx-input { font-size: 18px; }
  .bsx-shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    font-size: max(16px, 1em);
  }
  .ep-question h1, .ep-context-head h1, .ep-login-card h1 { font-size: 36px; }
}
