/*
  Scholars Network global styles
  ------------------------------
  Shared brand primitives live here first. Page-specific layouts can stay inline
  until they repeat enough to deserve a shared rule.
*/

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

* {
  margin: 0;
  padding: 0;
}

:root {
  --navy: #232C3B;
  --teal: #0B7EA2;
  --teal-lt: #005F81;
  --gold: #0EA1CD;
  --sky: #EBF8F8;
  --mist: #F3F8FA;
  --white: #FFFFFF;
  --gray: #64748B;
  --light: #EBF8F8;
  --border: #E3E3E3;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 70%, white);
  outline-offset: 3px;
}

::selection {
  background: var(--sky);
  color: var(--navy);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: clip;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.page-hero-inner:not(.centered),
.page-hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 3vw, 4rem);
}

.page-hero-inner > *,
.page-hero .hero-inner > * {
  min-width: 0;
}

.page-hero h1,
.page-hero .hero-headline-line {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: normal;
}

@media (max-width: 1024px) {
  .page-hero-inner:not(.centered),
  .page-hero .hero-inner {
    grid-template-columns: 1fr;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.calc-section .section-title {
  white-space: nowrap;
  text-wrap: normal;
}

a {
  color: inherit;
}

img,
svg,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.section-lead,
.calc-section-lead,
.benefits-lead-nowrap {
  margin-top: -0.5rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
  .calc-section .section-title {
    white-space: normal;
  }
}
