:root {
  --lm-ink: #101828;
  --lm-muted: #475467;
  --lm-line: #d7dee9;
  --lm-soft: #f4f7fb;
  --lm-paper: #fff;
  --lm-blue: #1746b0;
  --lm-blue-strong: #12378a;
  --lm-cyan: #06788e;
  --lm-success: #067647;
  --lm-warning: #9a3412;
  --lm-danger: #b42318;
  --lm-shadow: 0 18px 55px rgb(16 24 40 / 8%);
  --lm-radius: 1.25rem;
  --lm-font: Vazirmatn, IRANSansX, Tahoma, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--lm-ink);
  background: var(--lm-paper);
  font-family: var(--lm-font);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

a { color: var(--lm-blue); text-underline-offset: .22em; }
a:hover { color: var(--lm-blue-strong); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #f6b73c;
  outline-offset: 3px;
  border-radius: .35rem;
}

[hidden] { display: none !important; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lm-skip-link {
  position: fixed;
  z-index: 10000;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  color: #fff;
  background: var(--lm-ink);
  border-radius: .6rem;
}

.lm-skip-link:focus { transform: translateY(0); }

.lm-site-header {
  position: relative;
  z-index: 80;
  border-bottom: 1px solid rgb(215 222 233 / 82%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.admin-bar .lm-site-header { top: 0; }

.lm-site-header__inner {
  width: min(100% - 2rem, 1220px);
  min-height: 5rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.lm-brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--lm-ink);
  text-decoration: none;
}

.lm-brand:hover { color: var(--lm-ink); }

.lm-brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: .85rem .85rem .25rem .85rem;
  color: #fff;
  background: linear-gradient(145deg, #2457d6, #12378a 68%, #06b6d4);
  box-shadow: 0 8px 22px rgb(36 87 214 / 22%);
  font: 800 .85rem/1 var(--lm-font);
  letter-spacing: .04em;
}

.lm-brand__custom,
.lm-brand__custom .custom-logo-link { display: inline-flex; }
.lm-brand__custom img { max-height: 3rem; width: auto; }

.lm-brand__text { display: grid; line-height: 1.2; }
.lm-brand__text strong { font-size: 1.12rem; letter-spacing: -.025em; }
.lm-brand__text small { margin-top: .25rem; color: var(--lm-muted); font-size: .75rem; }

.lm-primary-nav { justify-self: center; }
.lm-nav-list { display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.lm-nav-list a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: .55rem .85rem;
  color: #344054;
  border-radius: .7rem;
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.lm-nav-list a:hover,
.lm-nav-list .current-menu-item > a,
.lm-nav-list .current_page_item > a { color: var(--lm-blue); background: #eef4ff; }

.lm-account-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .9rem;
  color: #fff;
  background: var(--lm-ink);
  border: 1px solid var(--lm-ink);
  border-radius: .75rem;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}
.lm-account-link:hover { color: #fff; background: var(--lm-blue-strong); border-color: var(--lm-blue-strong); }

.lm-menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: .65rem;
  color: var(--lm-ink);
  background: #fff;
  border: 1px solid var(--lm-line);
  border-radius: .7rem;
  cursor: pointer;
}
.lm-menu-toggle i { width: 100%; height: 2px; display: block; margin: 4px 0; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.lm-menu-toggle[aria-expanded="true"] i:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.lm-menu-toggle[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.lm-menu-toggle[aria-expanded="true"] i:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.lm-main { min-height: 58vh; }
.lm-content-wrap,
.lm-page-template { width: min(100% - 2rem, 1180px); margin: clamp(2rem, 6vw, 5rem) auto; }
.lm-entry { max-width: 760px; margin: 0 auto 2rem; }
.lm-entry > header h1,
.lm-native-page-header h1 { margin: 0 0 1.25rem; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.2; letter-spacing: -.035em; }
.lm-entry > header a { color: inherit; text-decoration: none; }
.lm-entry__content,
.lm-native-content { overflow-wrap: anywhere; }
.lm-entry__content > * + *,
.lm-native-content > * + * { margin-block-start: 1.25rem; }
.lm-entry__content p,
.lm-native-content p { color: #344054; }
.lm-entry__image { margin: 1.5rem 0; }
.lm-entry__image img { display: block; border-radius: var(--lm-radius); }

.lm-site-footer { margin-top: clamp(4rem, 8vw, 8rem); color: #dce6f6; background: #0b1734; }
.lm-site-footer a { color: #eaf1ff; text-decoration: none; }
.lm-site-footer a:hover { color: #7ee3f2; text-decoration: underline; }
.lm-site-footer__top {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.lm-site-footer__top > div,
.lm-site-footer__top nav { display: flex; align-content: start; flex-direction: column; gap: .55rem; }
.lm-site-footer h2 { margin: 0 0 .45rem; color: #fff; font-size: 1rem; }
.lm-site-footer p { max-width: 34rem; margin: .4rem 0; color: #b6c4dc; font-size: .9rem; }
.lm-brand--footer { margin-bottom: .65rem; color: #fff !important; }
.lm-brand--footer .lm-brand__text small { color: #b6c4dc; }
.lm-site-footer__bottom {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
  padding: 1.15rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #9fb0cb;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: .82rem;
}
.lm-site-footer__bottom a { color: #dce6f6; }
.lm-site-footer__credit { color: #b6c4dc; white-space: nowrap; }
.lm-site-footer__credit strong { color: #fff; font-weight: 700; }
.lm-site-footer__support { display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.lm-site-footer__support strong { color: #fff; font-weight: 700; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity .qty {
  min-height: 3rem;
  padding: .65rem .75rem;
  border: 1px solid var(--lm-line);
  border-radius: .6rem;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit { min-height: 2.75rem; padding: .75rem 1rem; color: #fff; background: var(--lm-blue); border-radius: .65rem; }

@media (max-width: 900px) {
  .lm-site-header__inner { grid-template-columns: auto auto 1fr; min-height: 4.5rem; }
  .lm-menu-toggle { display: block; justify-self: start; order: 2; }
  .lm-brand { order: 1; }
  .lm-account-link { order: 3; justify-self: end; }
  .lm-primary-nav {
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    display: none;
    padding: .75rem 1rem 1.2rem;
    background: #fff;
    border-bottom: 1px solid var(--lm-line);
    box-shadow: 0 18px 35px rgb(16 24 40 / 12%);
  }
  .lm-primary-nav.is-open { display: block; }
  .lm-nav-list { width: min(100%, 1220px); margin-inline: auto; display: grid; }
  .lm-nav-list a { width: 100%; }
  .lm-site-footer__top { grid-template-columns: 1.5fr 1fr 1fr; }
  .lm-site-footer__top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .lm-site-header__inner { width: min(100% - 1rem, 1220px); gap: .55rem; }
  .lm-brand__text small { display: none; }
  .lm-account-link { padding-inline: .65rem; }
  .lm-site-footer__top { grid-template-columns: 1fr 1fr; }
  .lm-site-footer__top > div:first-child,
  .lm-site-footer__top > nav:last-child { grid-column: 1 / -1; }
  .lm-site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
  .lm-brand__text strong { font-size: 1rem; }
  .lm-brand__mark { width: 2.45rem; height: 2.45rem; }
  .lm-account-link span { display: none; }
  .lm-site-footer__top { grid-template-columns: 1fr; }
  .lm-site-footer__top > * { grid-column: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .lm-site-header,
  .lm-site-footer,
  .lm-account-link,
  .lm-menu-toggle { display: none !important; }
  .lm-main { min-height: 0; }
  a { color: #000; text-decoration: underline; }
}


/* === LingoMaster 5.8.16 Professional Header + Countdown Discount === */
.lm-top-banner {
  position: relative;
  z-index: 92;
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgb(255 255 255 / 14%) 0 1px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(100deg, #062b68 0%, #0b4aa2 42%, #075f75 100%);
  box-shadow: inset 0 -1px rgb(255 255 255 / 10%);
}
.lm-top-banner__inner {
  width: min(100% - 2rem, 1280px);
  min-height: 3.3rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
}
.lm-top-banner__close {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 78%);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lm-top-banner__close:hover { color: #fff; background: rgb(255 255 255 / 10%); }
.lm-top-banner__message { min-width: 0; display: flex; align-items: center; justify-content: center; gap: .55rem; text-align: center; }
.lm-top-banner__message strong { font-size: .9rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-top-banner__spark { color: #ffd166; font-size: 1rem; }
.lm-top-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.05rem;
  padding: .36rem .75rem;
  color: #07315f;
  background: #fff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 5px 20px rgb(3 20 45 / 18%);
}
.lm-top-banner__cta:hover { color: #062b68; background: #eef7ff; transform: translateY(-1px); }
.lm-top-banner__offer {
  direction: rtl;
  display: inline-flex;
  align-items: stretch;
  gap: .42rem;
  padding: .22rem;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: .72rem;
  background: rgb(0 16 42 / 16%);
  box-shadow: inset 0 1px rgb(255 255 255 / 5%);
}
.lm-discount-pill {
  min-width: 6.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .28rem .65rem;
  color: #082d64;
  background: linear-gradient(135deg, #ffe082 0%, #ffd166 55%, #ffc84a 100%);
  border-radius: .52rem;
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgb(0 0 0 / 14%);
}
.lm-discount-pill:hover { color: #061f48; transform: translateY(-1px); filter: brightness(1.03); }
.lm-discount-pill span { font-size: .78rem; font-weight: 950; }
.lm-discount-pill small { margin-top: .18rem; font-size: .53rem; font-weight: 800; color: rgb(8 45 100 / 72%); }
.lm-countdown { direction: ltr; display: flex; align-items: center; gap: .32rem; }
.lm-countdown > span {
  min-width: 2.8rem;
  display: grid;
  place-items: center;
  padding: .25rem .3rem .18rem;
  color: #fff;
  background: rgb(255 255 255 / 11%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: .5rem;
  line-height: 1.05;
}
.lm-countdown b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.lm-countdown small { margin-top: .18rem; font-size: .52rem; color: rgb(255 255 255 / 72%); }

.lm-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid #e8edf5;
  background: rgb(255 255 255 / 97%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 4px 22px rgb(15 23 42 / 4%);
}
.admin-bar .lm-site-header { top: 32px; }
.lm-site-header__inner {
  width: min(100% - 2rem, 1280px);
  min-height: 5.15rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: .8rem;
}
.lm-brand { gap: .62rem; flex-shrink: 0; }
.lm-brand__mark {
  width: 2.8rem;
  height: 2.8rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  padding: .18rem;
  border-radius: .9rem .9rem .3rem .9rem;
  background: linear-gradient(145deg, #1a5bd7, #11337f 70%);
  box-shadow: 0 9px 25px rgb(31 84 190 / 22%);
  font-size: .76rem;
}
.lm-brand__mark::after { content: ''; position: absolute; inset: auto -.4rem -.8rem auto; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #31c6df; opacity: .58; }
.lm-brand__mark span, .lm-brand__mark i { position: relative; z-index: 1; color: #fff; font-style: normal; font-weight: 900; }
.lm-brand__text strong { font-size: 1.08rem; }
.lm-brand__text small { color: #667085; font-size: .68rem; }

.lm-course-switcher { position: relative; }
.lm-course-switcher__button {
  min-height: 2.95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .62rem .82rem;
  color: #23324d;
  background: #f7f9fc;
  border: 1px solid #e4e9f2;
  border-radius: .78rem;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.lm-course-switcher__button:hover,
.lm-course-switcher__button[aria-expanded="true"] { color: var(--lm-blue); background: #eef4ff; border-color: #cbd9f6; }
.lm-course-switcher__button i { font-size: 1rem; font-style: normal; transition: transform .18s ease; }
.lm-course-switcher__button[aria-expanded="true"] i { transform: rotate(180deg); }
.lm-course-switcher__panel {
  position: absolute;
  inset: calc(100% + .65rem) auto auto 0;
  width: min(390px, 90vw);
  padding: .9rem;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgb(15 23 42 / 16%);
}
[dir="rtl"] .lm-course-switcher__panel { left: auto; right: 0; }
.lm-course-switcher__panel::before { content: ''; position: absolute; top: -.45rem; right: 2rem; width: .8rem; height: .8rem; transform: rotate(45deg); background: #fff; border-top: 1px solid #e3e8f0; border-left: 1px solid #e3e8f0; }
.lm-course-switcher__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .25rem .35rem .7rem; }
.lm-course-switcher__head strong { font-size: .92rem; }
.lm-course-switcher__head small { color: #7c8799; font-size: .72rem; }
.lm-course-switcher__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.lm-course-switcher__grid a {
  min-width: 0;
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  gap: .5rem;
  padding: .58rem;
  color: #28364f;
  background: #fafbfc;
  border: 1px solid #edf0f5;
  border-radius: .72rem;
  text-decoration: none;
}
.lm-course-switcher__grid a:hover { color: #123f9c; background: #f2f7ff; border-color: #cbd9f6; }
.lm-course-switcher__grid b { width: 2rem; height: 2rem; display: grid; place-items: center; color: #1746b0; background: #eaf1ff; border-radius: .55rem; font-size: .66rem; }
.lm-course-switcher__grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 750; }
.lm-course-switcher__all { display: block; margin-top: .65rem; padding: .6rem .4rem .15rem; color: var(--lm-blue); border-top: 1px solid #edf0f5; font-size: .78rem; font-weight: 800; text-decoration: none; }

.lm-header-search { position: relative; min-width: 0; }
.lm-header-search__form {
  min-height: 3.05rem;
  display: grid;
  grid-template-columns: 1.2rem 1fr auto;
  align-items: center;
  gap: .55rem;
  padding: 0 .9rem;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: .85rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lm-header-search:focus-within .lm-header-search__form { border-color: #84a8ef; box-shadow: 0 0 0 4px rgb(64 117 220 / 9%); background: #fff; }
.lm-header-search__icon { width: 1rem; height: 1rem; position: relative; display: block; border: 1.8px solid #697586; border-radius: 50%; }
.lm-header-search__icon::after { content: ''; position: absolute; width: .48rem; height: 1.8px; left: -.38rem; bottom: -.2rem; transform: rotate(-45deg); transform-origin: right center; background: #697586; border-radius: 2px; }
.lm-header-search input {
  width: 100%;
  min-width: 0;
  height: 2.7rem;
  padding: 0;
  color: #172033;
  background: transparent;
  border: 0;
  outline: 0 !important;
  box-shadow: none !important;
  font-size: .86rem;
}
.lm-header-search input::placeholder { color: #9199a6; }
.lm-header-search kbd { padding: .16rem .42rem; color: #7a8495; background: #f4f6f8; border: 1px solid #e0e5eb; border-bottom-width: 2px; border-radius: .38rem; font: 700 .7rem/1.1 var(--lm-font); }
.lm-search-results {
  position: absolute;
  z-index: 100;
  inset: calc(100% + .55rem) 0 auto;
  overflow: hidden;
  padding: .45rem;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: .9rem;
  box-shadow: 0 22px 60px rgb(15 23 42 / 15%);
}
.lm-search-results__title { padding: .45rem .55rem .3rem; color: #8b95a5; font-size: .68rem; font-weight: 800; }
.lm-search-result {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: .65rem;
  padding: .58rem;
  color: #263349;
  border-radius: .7rem;
  text-decoration: none;
}
.lm-search-result:hover, .lm-search-result.is-active { color: #1746b0; background: #f3f7fe; }
.lm-search-result__type { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; color: #1746b0; background: #eaf1ff; border-radius: .65rem; font-size: .62rem; font-weight: 900; }
.lm-search-result__copy { min-width: 0; display: grid; }
.lm-search-result__copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .81rem; }
.lm-search-result__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .08rem; color: #7b8493; font-size: .67rem; }
.lm-search-result__arrow { color: #9ba3af; font-size: .9rem; }
.lm-search-results__empty { padding: 1rem; color: #667085; text-align: center; font-size: .8rem; }

.lm-header-actions { display: flex; align-items: center; gap: .45rem; }
.lm-teacher-cta {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .55rem .75rem;
  color: #1746b0;
  background: #eef4ff;
  border: 1px solid #d9e5fb;
  border-radius: .78rem;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.lm-teacher-cta:hover { color: #103887; background: #e2ecff; border-color: #bdd0f5; }
.lm-header-action {
  width: 2.85rem;
  height: 2.85rem;
  position: relative;
  display: grid;
  place-items: center;
  color: #2f3b50;
  background: #fff;
  border: 1px solid #e2e7ee;
  border-radius: .78rem;
  text-decoration: none;
}
.lm-header-action:hover { color: #1746b0; background: #f7f9fc; }
.lm-cart-icon { width: 1.15rem; height: .82rem; position: relative; border: 1.7px solid currentColor; border-top: 0; border-radius: 0 0 .22rem .22rem; transform: translateY(-.08rem); }
.lm-cart-icon::before { content: ''; position: absolute; width: .45rem; height: .45rem; top: -.46rem; right: -.23rem; border-left: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: skewX(-15deg); }
.lm-cart-icon::after { content: '••'; position: absolute; top: .55rem; left: .08rem; letter-spacing: .28rem; font-size: .57rem; line-height: 1; }
.lm-cart-count { position: absolute; top: -.35rem; left: -.35rem; min-width: 1.2rem; height: 1.2rem; display: grid; place-items: center; padding: 0 .2rem; color: #fff; background: #d92d20; border: 2px solid #fff; border-radius: 999px; font-size: .58rem; }
.lm-login-pill, .lm-user-pill {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .48rem .72rem;
  color: #fff;
  background: #111d35;
  border: 1px solid #111d35;
  border-radius: .78rem;
  text-decoration: none;
}
.lm-login-pill { font-size: .78rem; white-space: nowrap; }
.lm-login-pill:hover, .lm-user-pill:hover { color: #fff; background: #163d88; border-color: #163d88; }
.lm-user-pill { max-width: 180px; }
.lm-user-pill__avatar { width: 2rem; height: 2rem; overflow: hidden; flex: 0 0 auto; border-radius: 50%; background: #fff; }
.lm-user-pill__avatar img { width: 100%; height: 100%; object-fit: cover; }
.lm-user-pill > span:last-child { min-width: 0; display: grid; line-height: 1.15; }
.lm-user-pill small { color: rgb(255 255 255 / 65%); font-size: .56rem; }
.lm-user-pill strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .18rem; font-size: .7rem; }

.lm-header-navline { border-top: 1px solid #f0f2f6; background: #fff; }
.lm-header-navline__inner { width: min(100% - 2rem, 1280px); min-height: 2.75rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lm-primary-nav { justify-self: auto; }
.lm-nav-list { gap: .05rem; }
.lm-nav-list a { min-height: 2.35rem; padding: .38rem .7rem; font-size: .78rem; font-weight: 750; }
.lm-header-quicklinks { display: flex; align-items: center; gap: .15rem; }
.lm-header-quicklinks a { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .5rem; color: #687385; border-radius: .5rem; font-size: .7rem; font-weight: 750; text-decoration: none; }
.lm-header-quicklinks a:hover { color: #1746b0; background: #f5f8fc; }
.lm-header-quicklinks span { font-size: .63rem; font-weight: 900; }
.lm-menu-toggle { display: none; }

@media (max-width: 1120px) {
  .lm-site-header__inner { grid-template-columns: auto minmax(250px, 1fr) auto; }
  .lm-course-switcher { display: none; }
  .lm-teacher-cta em { display: none; }
  .lm-teacher-cta { width: 2.85rem; padding: 0; justify-content: center; }
  .lm-brand__text small { display: none; }
}

@media (max-width: 900px) {
  .admin-bar .lm-site-header { top: 46px; }
  .lm-top-banner__inner { width: min(100% - 1rem, 1280px); grid-template-columns: auto 1fr auto; min-height: 3rem; gap: .5rem; }
  .lm-top-banner__message { justify-content: flex-start; }
  .lm-top-banner__offer { padding: .16rem; gap: .25rem; }
  .lm-discount-pill { min-width: auto; padding: .3rem .55rem; }
  .lm-discount-pill small { display: none; }
  .lm-countdown { display: none; }
  .lm-top-banner__cta { font-size: .68rem; }
  .lm-site-header__inner { width: min(100% - 1rem, 1280px); min-height: auto; padding: .6rem 0; grid-template-columns: auto 1fr auto; gap: .55rem; }
  .lm-brand { grid-column: 1; }
  .lm-brand__text { display: none; }
  .lm-header-search { grid-column: 1 / -1; grid-row: 2; }
  .lm-header-search__form { min-height: 2.85rem; }
  .lm-header-actions { grid-column: 3; grid-row: 1; }
  .lm-teacher-cta { display: none; }
  .lm-login-pill { width: 2.85rem; padding: 0; justify-content: center; }
  .lm-login-pill strong { display: none; }
  .lm-user-pill { width: 2.85rem; padding: .34rem; }
  .lm-user-pill > span:last-child { display: none; }
  .lm-user-pill__avatar { width: 2rem; height: 2rem; }
  .lm-menu-toggle { display: block; order: initial; }
  .lm-header-navline { position: static; border-top: 0; }
  .lm-header-navline__inner { width: 100%; min-height: 0; display: block; }
  .lm-primary-nav {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 120;
    display: none;
    padding: .65rem .75rem 1rem;
    background: #fff;
    border-top: 1px solid #eef1f5;
    border-bottom: 1px solid #dfe5ee;
    box-shadow: 0 22px 45px rgb(15 23 42 / 13%);
  }
  .lm-primary-nav.is-open { display: block; }
  .lm-nav-list { width: min(100%, 700px); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
  .lm-nav-list a { width: 100%; min-height: 2.7rem; padding: .55rem .7rem; background: #f8fafc; border: 1px solid #eef1f5; border-radius: .65rem; }
  .lm-header-quicklinks { display: none; }
  .lm-search-results { position: fixed; top: auto; left: .5rem; right: .5rem; width: auto; max-height: min(55vh, 430px); overflow-y: auto; }
}

@media (max-width: 620px) {
  .lm-top-banner__inner { grid-template-columns: auto 1fr; }
  .lm-top-banner__cta { display: none; }
  .lm-top-banner__message strong { font-size: .72rem; }
  .lm-top-banner__spark { display: none; }
  .lm-site-header__inner { gap: .42rem; }
  .lm-brand__mark { width: 2.55rem; height: 2.55rem; }
  .lm-header-action, .lm-menu-toggle, .lm-login-pill, .lm-user-pill { width: 2.55rem; height: 2.55rem; min-height: 2.55rem; }
  .lm-header-actions { gap: .3rem; }
  .lm-header-search kbd { display: none; }
  .lm-header-search__form { grid-template-columns: 1.15rem 1fr; padding: 0 .75rem; }
  .lm-header-search input { font-size: .78rem; }
  .lm-nav-list { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  .admin-bar .lm-site-header { top: 46px; }
}

@media print {
  .lm-top-banner { display: none !important; }
}
