@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* LearnTech responsive component
   Loaded after the page styles so old article content can safely reflow. */

/* Global typography — Poppins is the single typeface across every page. */
body,
button,
input,
textarea,
select,
.font-display,
.font-mono {
  font-family: 'Poppins', sans-serif !important;
}

/* Some older article templates define their own font in page-level styles.
   This selector makes Poppins consistent across article text, card text,
   buttons, labels and headings while leaving icon fonts untouched. */
body :not(i):not(.fa):not([class*="fa-"]) {
  font-family: 'Poppins', sans-serif !important;
}

/* Large headings are deliberately bold, uppercase and easy to scan. */
h1,
h2,
.article-body h1,
.article-body h2 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: .035em;
  text-transform: uppercase;
}

h1,
.article-body h1 {
  line-height: 1.14 !important;
}

h2,
.article-body h2 {
  line-height: 1.25 !important;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Keep every page comfortably inside the viewport. On larger screens the
   main content uses 90% of the page; on phones it uses 95% to give content a
   little more room without touching the screen edges. */
main {
  width: 90% !important;
  max-width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

main,
article,
section,
.article-body,
.grid > *,
.flex > * {
  min-width: 0;
}

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

img,
video,
canvas {
  height: auto;
}

/* Long URLs and code are the usual cause of text escaping a narrow screen. */
.article-body,
.article-body p,
.article-body li,
.article-body a,
article p,
article li,
article a {
  overflow-wrap: anywhere;
  word-break: normal;
}

pre,
code {
  max-width: 100%;
  overflow-wrap: anywhere;
}

pre {
  white-space: pre-wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  main {
    width: 95% !important;
    max-width: 95% !important;
  }

  .article-body h1,
  .article-body h2,
  .article-body h3,
  .article-body h4 {
    overflow-wrap: anywhere;
  }

  .article-body h1 { font-size: clamp(1.8rem, 9vw, 2.25rem); }
  .article-body h2 { font-size: clamp(1.4rem, 7vw, 1.7rem); padding-left: .75rem; }

  #mobileMenu {
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
  }

  .mobile-link { font-size: 1.55rem; text-align: center; }
  .hero-overlay { padding: 1.25rem; }
  .hero-overlay h3 { font-size: 1.35rem; line-height: 1.2; }
  .hero-overlay p { font-size: .9rem; line-height: 1.45; }
}
