/* Shared navigation: one compact header, and one native modal menu on every page. */
.site-header.academy-header,
.site-header.academy-header.is-scrolled {
  height: 64px;
  z-index: 40;
  background: #000;
  border-bottom: 1px solid rgba(244, 241, 237, .12);
  backdrop-filter: none;
}
.academy-header .academy-header__inner { gap: 30px; direction: ltr; }
.academy-header .academy-header__brand { flex: 0 0 48px; }
.academy-header .brand__logo,
.academy-header .brand__logo.brand__logo--actual { width: 48px; height: 48px; object-fit: contain; background: #000; }
.academy-header__links { display: flex; gap: 34px; margin-inline: auto; direction: rtl; }
.academy-header__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d8d3d0;
  font-size: 12px;
  transition: color 180ms ease;
}
.academy-header__links a:hover,
.academy-header__links a[aria-current] { color: #fff; }
.academy-header__links a[aria-current] { text-decoration: underline; text-underline-offset: 9px; text-decoration-color: #cf2549; }
.academy-header__actions { display: flex; align-items: center; gap: 18px; direction: ltr; }
.academy-header .academy-header__meeting {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  padding: 7px 17px;
  border: 1px solid #494242;
  background: transparent;
  color: #f4f1ed;
  box-shadow: none;
  font-size: 11px;
  direction: rtl;
}
.academy-header .academy-header__meeting:hover { border-color: #be2144; background: rgba(165,15,42,.13); }
.academy-header .academy-header__meeting > span { font-size: 18px; }
.academy-header__toggle,
.academy-menu__close {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.academy-header__toggle > span,
.academy-menu__close > span { width: 25px; height: 2px; background: currentColor; transition: transform 220ms ease, color 220ms ease; }
.academy-header__toggle > span:last-child { width: 18px; margin-left: auto; margin-right: 9.5px; }
.academy-header__toggle:hover,
.academy-menu__close:hover { color: #ea6a82; }
.academy-header__toggle[aria-expanded="true"] > span:first-child { transform: translateY(4.5px) rotate(45deg); }
.academy-header__toggle[aria-expanded="true"] > span:last-child { width: 25px; margin: 0; transform: translateY(-4.5px) rotate(-45deg); }
.academy-menu__close > span:first-child { transform: translateY(4.5px) rotate(45deg); }
.academy-menu__close > span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.academy-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100%);
  max-width: 100%;
  height: 100svh;
  max-height: 100svh;
  margin: 0;
  padding: 27px clamp(24px, 3vw, 45px) 32px;
  border: 0;
  border-left: 1px solid rgba(244,241,237,.15);
  border-radius: 0;
  color: #f4f1ed;
  background: #080808;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  direction: rtl;
}
.academy-menu::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); animation: academy-menu-backdrop-in 260ms ease both; }
.academy-menu.is-closing::backdrop { animation: academy-menu-backdrop-out 180ms ease both; }
.academy-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.academy-menu .academy-menu__top h2 { margin: 0; color: #b3a6aa; font-size: 14px; line-height: 1.7; font-weight: 500; }
.academy-menu__links { display: grid; }
.academy-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  gap: 18px;
  padding-block: 11px;
  border-bottom: 1px solid rgba(244,241,237,.11);
  color: #e5dfdc;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.6;
  transition: color 180ms ease, padding-inline 220ms ease;
}
.academy-menu__links a > span { font-size: 23px; color: #a3324a; transition: transform 220ms ease, color 180ms ease; }
.academy-menu__links a:hover,
.academy-menu__links a[aria-current] { color: #fff; padding-inline: 6px; }
.academy-menu__links a:hover > span,
.academy-menu__links a[aria-current] > span { color: #ee5c7c; transform: translate(-3px, 3px); }
.academy-menu__meeting { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding: 13px 17px; min-height: 49px; border: 1px solid #a52b47; background: #801329; color: #fff; font-size: 13px; }
.academy-menu__meeting:hover { background: #9d1734; }
.academy-menu__meeting > span { font-size: 23px; }
html.header-menu-open { overflow: hidden; }
/* The guide retains its reading progress beneath the same shared header. */
.guide-page { padding-top: 64px; }
.guide-page .guide-progress { position: fixed; z-index: 41; top: 62px; bottom: auto; inset-inline: 0; height: 2px; pointer-events: none; }
@keyframes academy-menu-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes academy-menu-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 680px) {
  .academy-header .academy-header__inner { gap: 12px; }
  .academy-header .academy-header__brand { flex-basis: 42px; }
  .academy-header .brand__logo,
  .academy-header .brand__logo.brand__logo--actual { width: 42px; height: 42px; }
  .academy-header__links { display: none; }
  .academy-header__actions { margin-left: auto; gap: 10px; }
  .academy-header .academy-header__meeting { padding-inline: 11px; gap: 10px; min-height: 40px; font-size: 10px; }
  .academy-menu { width: min(420px, calc(100% - 22px)); padding: 20px 24px 28px; }
  .academy-menu__top { margin-bottom: 15px; }
  .academy-menu__links a { min-height: 58px; font-size: 22px; }
}
@media (max-height: 640px) {
  .academy-menu { padding-top: 15px; padding-bottom: 22px; }
  .academy-menu__top { margin-bottom: 10px; }
  .academy-menu__links a { min-height: 48px; padding-block: 7px; font-size: 20px; }
  .academy-menu__meeting { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .academy-menu::backdrop,
  .academy-menu.is-closing::backdrop { animation: none; }
  .academy-header__toggle > span,
  .academy-menu__close > span,
  .academy-menu__links a,
  .academy-menu__links a > span { transition: none; }
}