/* EduMagnet luxury site chrome — shared by the library, SEO pages, studio, auth and play. */
.emgh-header,
header.emgh-header {
  position: relative;
  z-index: 40;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 46%),
    linear-gradient(108deg, #0A1433 0%, #141C52 38%, #2A1570 72%, #0E1B42 100%) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: 0 12px 32px rgba(8, 14, 40, .32) !important;
  color: #fff !important;
}
.emgh-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #C99212 0%, #F7BE28 18%, #FF6B9D 42%, #FFD21F 62%, #7DE8FF 82%, #F7BE28 100%);
  pointer-events: none;
}
.emgh-inner {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 78px;
  flex-wrap: nowrap;
  padding: 10px 28px;
}
.emgh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: "Baloo 2", Nunito, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.18);
}
.emgh-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.28);
}
.emgh-brand span {
  color: #FFD21F;
  font-weight: 600;
}
.emgh-context {
  margin: 0 auto 0 4px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 42ch;
}
.emgh-context strong {
  display: block;
  font-family: Nunito, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.emgh-context span {
  display: block;
  font-family: Nunito, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.emgh-nav {
  display: flex;
  gap: 8px 20px;
  align-items: center;
  margin-left: auto;
  flex: 0 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  font-size: 14px;
  font-weight: 600;
  font-family: Nunito, Arial, sans-serif;
}
html body .emgh-header .emgh-nav a,
html body .emgh-header .emgh-nav .emg-btn,
html body .emgh-header .emgh-nav button {
  color: #fff !important;
  text-decoration: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 6px 0 !important;
  min-height: 0 !important;
  font-family: Nunito, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  white-space: nowrap;
  position: relative;
  text-shadow: none !important;
  filter: none !important;
}
html body .emgh-header .emgh-nav a:hover,
html body .emgh-header .emgh-nav .emg-btn:hover,
html body .emgh-header .emgh-nav button:hover {
  color: #FFD21F !important;
  background: none !important;
  transform: none;
}
html body .emgh-header .emgh-nav a[aria-current="page"] {
  color: #fff !important;
  border-bottom: 0 !important;
}
html body .emgh-header .emgh-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #F7BE28, #FFD21F);
  box-shadow: 0 0 8px rgba(247, 190, 40, .55);
}
html body .emgh-header .emgh-nav a.emgh-cta,
html body .emgh-header .emgh-nav a.emgh-cta:hover {
  background: linear-gradient(180deg, #FFE27A 0%, #F7BE28 55%, #E0A417 100%) !important;
  color: #0B1B42 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
  box-shadow: 0 2px 0 #A67C0A, 0 8px 18px rgba(247, 190, 40, .38) !important;
  text-shadow: none !important;
}
html body .emgh-header .emgh-nav a.emgh-cta:hover {
  filter: brightness(1.06);
}
html body .emgh-header .emgh-nav .emg-icon-btn {
  padding: 7px 10px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08) !important;
  gap: 6px !important;
}
html body .emgh-header .emgh-nav .emg-icon-btn:hover {
  border-color: rgba(247,190,40,.85) !important;
  background: rgba(255,255,255,.14) !important;
  color: #FFD21F !important;
}
.emgh-header a:focus-visible,
.emgh-footer a:focus-visible,
header.emgh-header a:focus-visible {
  outline: 3px solid #FFD21F;
  outline-offset: 4px;
}

/* Site footer aligns with the full-width header. */
.emgh-footer {
  background: #0A1433;
  color: #fff;
  margin-top: 36px;
  font-family: Nunito, Arial, sans-serif;
  font-size: 14px;
  position: relative;
}
.emgh-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #C99212 0%, #F7BE28 25%, #FF6B9D 50%, #7DE8FF 75%, #F7BE28 100%);
}
.emgh-footer-inner {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.emgh-footer nav { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.emgh-footer a { color: #fff; text-decoration: none; font-size: 14px; }
.emgh-footer a:hover { color: #FFD21F; text-decoration: none; }

/* Play / studio / auth: the bar is already .emgh-header; don't keep the old inset card. */
html body .emgh-header.emg-top,
html body.emg-play-page .emgh-header.emg-top {
  margin: 0 0 0 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
html body.emg-play-page .emg-shell.emg-play-shell {
  min-height: 0;
  padding-top: 20px;
}

@media (max-width: 900px) {
  .emgh-inner { padding: 10px 24px; gap: 10px 16px; min-height: 70px; }
  .emgh-footer-inner { padding: 20px 24px; }
  .emgh-brand { font-size: 20px; }
  .emgh-context { display: none; }
}
@media (max-width: 720px) {
  .emgh-inner {
    flex-wrap: wrap;
    padding: 10px 24px 12px;
  }
  .emgh-brand { font-size: 20px; }
  .emgh-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 8px 16px;
    padding-bottom: 4px;
  }
  html body .emgh-header .emgh-nav a.emgh-cta,
  html body .emgh-header .emgh-nav a.emgh-cta:hover {
    padding: 9px 14px !important;
  }
}

/* Flush the bar to the window edges. */
body{margin:0;}
