/* Shared across the learner and catalog style bundles. */
.has-academy-tabs { font-family: "Segoe UI", Roboto, Arial, "Noto Sans Devanagari", "Noto Sans Tamil", sans-serif; }
.academy-header {
  position: sticky; top: 0; z-index: 40; background: #1e1e26; color: white;
  font: 600 15px/1.35 "Segoe UI", Roboto, Arial, "Noto Sans Devanagari", "Noto Sans Tamil", sans-serif;
}
.academy-header *, .academy-header *::after { box-sizing: border-box; }
.academy-header-inner {
  max-width: 1152px; min-height: 64px; margin: auto; padding: 4px 24px;
  display: flex; align-items: center; gap: 20px;
}
.academy-header--workspace, .academy-player .academy-header { position: relative; }
.academy-header--workspace .academy-header-inner { max-width: none; }
.academy-header .academy-brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: #fff; text-decoration: none; font-size: 19px; font-weight: 750; letter-spacing: -.035em;
  white-space: nowrap;
}
.academy-header .academy-brand > span:first-child {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px;
  background: #008e85; border-radius: 10px;
}
.academy-header .academy-brand > span:first-child svg { width: 22px; height: 22px; }
.academy-header .academy-brand > span:last-child > span:first-child { color: #21c6ba; }
.academy-header .academy-brand > span:last-child > span:last-child { display: inline; }
.academy-header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.academy-header :is(a, button, select, summary):focus-visible { outline: 3px solid #24cbbd; outline-offset: 2px; }
.academy-nav { display: flex; align-items: center; gap: 4px; }
.academy-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px;
  color: #ececf0; border-radius: 10px; text-decoration: none; text-align: center;
}
.academy-nav svg { display: none; }
.academy-nav a:hover, .academy-nav a[aria-current] { color: white; background: #393941; }
.academy-account { position: relative; }
.academy-account summary {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px;
  padding: 6px 10px; cursor: pointer; list-style: none; border: 1px solid #66666e; border-radius: 10px;
}
.academy-account summary::-webkit-details-marker { display: none; }
.academy-account summary span { max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.academy-account svg { width: 20px; height: 20px; flex: none; }
.academy-account-panel {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 174px; max-width: min(260px, 85vw);
  padding: 6px; background: white; color: #202029; border: 1px solid #d3e2e0; border-radius: 12px;
  box-shadow: 0 5px 18px #15152626;
}
.academy-account-panel strong { display: block; padding: 7px 10px; overflow-wrap: anywhere; }
.academy-account-panel form { margin: 0; }
.academy-account-panel :is(a, button) {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 10px;
  color: #006b63; text-decoration: none; background: transparent; font: inherit; border: 0; border-radius: 7px; cursor: pointer;
}
.academy-account-panel :is(a, button):hover { background: #e9f8f7; }
.academy-header .lang-switch select { min-height: 44px; }
@media (max-width: 1023px) {
  .academy-header .lang-switch .lang-buttons { display: none; }
  .academy-header .lang-switch .lang-select { display: block; }
  .academy-account summary span { display: none; }
}
@media (max-width: 767px) {
  .academy-header-inner {
    min-height: 56px; gap: 6px; padding: 4px max(10px, env(safe-area-inset-right)) 4px max(10px, env(safe-area-inset-left));
  }
  .academy-header .academy-brand { gap: 6px; font-size: 17px; }
  .academy-header .academy-brand > span:last-child { font-size: inherit; }
  .academy-header .academy-brand > span:first-child { width: 32px; height: 32px; }
  .academy-header-tools { gap: 5px; }
  .academy-nav {
    position: fixed; inset: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch;
    gap: 3px; padding: 5px max(8px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border-top: 1px solid #cbdad9; background: #fff;
  }
  .academy-nav a {
    flex-direction: column; gap: 3px; min-height: 55px; min-width: 0; padding: 3px;
    font-size: 13px; line-height: 1.2; color: #474952; overflow-wrap: anywhere;
  }
  .academy-nav svg { display: block; width: 23px; height: 23px; flex-shrink: 0; }
  .academy-nav a:hover, .academy-nav a[aria-current] { background: #ddf6f2; color: #00645c; }
  .academy-nav a[aria-current] { font-weight: 700; }
  .has-academy-tabs { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  html:has(.has-academy-tabs) { scroll-padding-block: 64px calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 359px) {
  .academy-header .academy-brand > span:last-child > span:last-child { display: none; }
}
