/* === Varsity Learning brand integration === */

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Open+Sans:wght@400;600;700&display=swap');

[x-cloak] { display: none !important; }

:root {
  --md-primary-fg-color:        #0075C8;
  --md-primary-fg-color--light: #3399E0;
  --md-primary-fg-color--dark:  #005A9E;
  --md-accent-fg-color:         #B32025;
  --md-accent-fg-color--transparent: #B3202519;
  --vl-font-heading: "Alfa Slab One", Georgia, serif;
  --vl-font-body: "Open Sans", system-ui, sans-serif;
}

/* ── VL Custom Header ───────────────────────────────── */

.md-header.vl-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #fff !important;
  color: #1a1a2e;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow .3s;
}
.md-header.vl-header.vl-header--shadow {
  box-shadow: 0 4px 14px rgba(0,0,0,.14) !important;
}

.vl-header__bar {
  display: flex;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  height: 4rem;
  gap: 2rem;
}

.vl-header__logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.vl-header__logo img { height: 3rem; width: auto; }

.vl-header__nav { display: none; flex: 1; justify-content: center; align-items: center; gap: 1.75rem; }
@media (min-width: 768px) { .vl-header__nav { display: flex; } }
.vl-header__nav a {
  font-family: var(--vl-font-body);
  font-size: 15px; font-weight: 600;
  color: #1a1a2e; text-decoration: none;
  white-space: nowrap; transition: color .15s;
}
.vl-header__nav a:hover { color: #0075C8; }

.vl-header__actions { display: none; align-items: center; gap: .75rem; flex-shrink: 0; }
@media (min-width: 768px) { .vl-header__actions { display: flex; } }

.vl-search-btn { color: #1a1a2e !important; cursor: pointer; }
.vl-search-btn svg { fill: #1a1a2e; width: 1.25rem; height: 1.25rem; }
/* Hide the duplicate icon shipped inside partials/search.html — we use our own label */
.md-header.vl-header .md-search .md-search__icon[for="__search"] { display: none; }

.vl-classroom-btn {
  display: inline-block;
  background: #B32025;
  color: #fff !important;
  font-family: var(--vl-font-body);
  font-size: 15px; font-weight: 700;
  padding: .375rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: background .15s;
  white-space: nowrap;
}
.vl-classroom-btn:hover { background: #8e1a1e; }

.vl-hamburger {
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  padding: .5rem;
  color: #1a1a2e; background: none; border: none; cursor: pointer;
}
@media (min-width: 768px) { .vl-hamburger { display: none; } }

.vl-mobile-menu { background: #fff; border-top: 1px solid #e5e7eb; padding: .5rem 1.5rem .75rem; }
.vl-mobile-menu a {
  display: block;
  font-family: var(--vl-font-body);
  font-size: 15px; font-weight: 600;
  color: #1a1a2e; text-decoration: none;
  padding: .625rem 1rem; border-radius: .5rem;
  transition: background .15s, color .15s;
}
.vl-mobile-menu a:hover { background: #f0f7ff; color: #0075C8; }
.vl-mobile-cta { padding: .75rem 1rem 0; border-top: 1px solid #e5e7eb; margin-top: .5rem; }

/* Content offset for fixed 4rem header; tabs sit just below */
.md-container { margin-top: 4rem; }
.md-tabs { top: 4rem !important; z-index: 100; }

/* ── Content Typography (docs-sized, not marketing-sized) ─ */

.md-content article > h1 {
  font-family: var(--vl-font-heading);
  font-weight: normal;
  font-size: 1.875rem;   /* was 2.5rem — now 30px */
  line-height: 1.2;
  letter-spacing: .005em;
  color: #0E1627;
  margin-top: 1rem;
}
.md-content article > h2 {
  font-family: var(--vl-font-body);
  font-weight: 700;
  font-size: 1.375rem;   /* 22px — readable, not shouting */
  color: #0E1627;
  margin-top: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: .4rem;
}
.md-content article > h3 {
  font-family: var(--vl-font-body);
  font-weight: 700;
  font-size: 1.125rem;   /* 18px */
  color: #0E1627;
  margin-top: 1.5rem;
}
.md-content article > h4 {
  font-family: var(--vl-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: #0E1627;
}

.md-typeset .grid.cards > ul > li > p:first-child strong {
  font-family: var(--vl-font-heading);
  font-weight: normal;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

/* ── Info Admonition — VL blue ─────────────────────── */
.md-typeset .admonition.info,
.md-typeset details.info { border-color: #0075C8; }
.md-typeset .admonition.info > .admonition-title,
.md-typeset details.info > summary { background-color: rgba(0,117,200,.12); }
.md-typeset .admonition.info > .admonition-title::before,
.md-typeset details.info > summary::before {
  background-color: #0075C8;
  -webkit-mask-image: var(--md-admonition-icon--info);
          mask-image: var(--md-admonition-icon--info);
}
