/* The Language Page chrome on the WIDA ACCESS practice studios (/wida-access/<studio>/ on thelanguagepage.com).
   functions/_lib/language-page-studios.js injects the markup and links this sheet; it mirrors the lab's top bar
   (ds.css .lab-top) under lp- class names so it cannot collide with a studio's own .top-link/.breadcrumb rules.
   The studio's colour and type tokens are set inline by the same module. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-0aa3443e.woff2) format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/atkinson-hyperlegible-ef295152.woff2) format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/fraunces-175f6e93.woff2) format("woff2");
}

.lp-skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font:
    700 1rem "Atkinson Hyperlegible",
    system-ui,
    sans-serif;
}
.lp-skip:focus {
  left: 0.75rem;
}

.lp-top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.5rem clamp(1rem, 3vw, 2.25rem);
  background: rgb(255 253 248 / 92%);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid rgb(29 43 88 / 10%);
  box-shadow: 0 10px 30px -24px rgb(8 14 37 / 40%);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  color: #0f172a;
}
.lp-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  color: #0f172a;
  text-decoration: none;
}
.lp-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}
.lp-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lp-wordmark {
  display: grid;
  line-height: 1.1;
}
.lp-wordmark strong {
  white-space: nowrap;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}
.lp-wordmark small {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
}
.lp-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.lp-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  font-size: 0.975rem;
  text-decoration: none;
  white-space: nowrap;
}
.lp-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.lp-link[aria-current] {
  color: var(--lp-skill, #075568);
  box-shadow: inset 0 -3px 0 var(--lp-skill, #075568);
}
.lp-top a:focus-visible,
.lp-crumbs a:focus-visible {
  outline: 3px solid var(--lp-skill, #075568);
  outline-offset: 2px;
}

.lp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem clamp(1rem, 3vw, 2.25rem) 0;
  font:
    400 0.95rem "Atkinson Hyperlegible",
    system-ui,
    sans-serif;
  color: #475569;
}
.lp-crumbs a {
  color: var(--lp-skill, #075568);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-crumbs [aria-current] {
  color: #0f172a;
  font-weight: 700;
}
#lp-studio:focus {
  outline: none;
}

@media (max-width: 860px) {
  .lp-top {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .lp-nav {
    width: 100%;
    overflow-x: auto;
  }
}
@media (max-width: 560px) {
  .lp-top {
    position: static;
  }
  .lp-wordmark small {
    display: none;
  }
}
@media print {
  .lp-top,
  .lp-crumbs,
  .lp-skip {
    display: none;
  }
}

/* The studio itself, in the lab's look: one calm canvas tinted by the skill, and the three single-colour hero
   banners (directions, word builder, reward shop) drawn in the skill colour instead of their own palettes. */
html body {
  background: linear-gradient(180deg, var(--primary-light, #e2f3f0) 0, #f8fafc 22rem);
}
html body .hero-card {
  background: linear-gradient(135deg, var(--primary-dark, #04404e) 0%, var(--primary, #075568) 100%);
}
/* The site-wide Save/Resume engine adds a floating Math Workbench link; a language studio has no use for it.
   !important (documented): the engine styles the link from its own sheet, loaded after this one. */
#nsr-workbench {
  display: none !important;
}
@media (max-width: 560px) {
  .lp-link[data-low] {
    display: none;
  }
}
