/* A single-screen gateway; the site header owns the only logo image. */
html body.site-page.academy-page {
  --shell-header: 56px;
  --shell-nav: 0px;
  --academy-footer: calc(42px + env(safe-area-inset-bottom, 0px));
  --academy-orange: #f8941c;
  --academy-blue: #8bc2ee;
  margin: 0;
  min-height: 100dvh;
  height: 100dvh;
  color: #e6e6e6;
  font: 400 16px/1.6 "Segoe UI", Arial, sans-serif;
}
.academy-page *,
.academy-page *::before,
.academy-page *::after { box-sizing: border-box; }
html body.site-page.academy-page > main {
  width: min(1120px, 100%);
  max-width: 1120px;
  min-height: 0;
  height: calc(100dvh - var(--shell-header) - var(--academy-footer));
  flex: 1 1 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(16px, 3vh, 28px);
  padding: 18px 28px 22px;
}
body.site-page.academy-page > .site-mark {
  flex: 0 0 var(--academy-footer);
  height: var(--academy-footer);
  min-height: 0;
  margin: 0;
  padding: 4px 14px calc(6px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  line-height: 1.4;
}
.academy-page a { -webkit-tap-highlight-color: transparent; }
.academy-page .site-header > .global-search { display: none !important; }
.academy-page a:focus-visible { outline: 2px solid var(--academy-orange); outline-offset: 4px; }
.academy-skip {
  position: fixed;
  inset: 10px auto auto 14px;
  z-index: 120;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #151515;
  background: var(--academy-orange);
  text-decoration: none;
}
.academy-skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden; }
.academy-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; padding: 8px 0 0; }
.academy-page [hidden] { display: none !important; }
.academy-tabs { display: flex; align-items: stretch; flex: none; gap: 4px; padding: 4px; border: 1px solid #ffffff18; border-radius: 13px; background: #171d25; }
.academy-tabs > button { position: relative; min-width: 100px; min-height: 42px; margin: 0; padding: 9px 18px; border: 0; border-radius: 9px; background: transparent; color: #aab2bd; font: 400 15px/1.4 "Segoe UI", Arial, sans-serif; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.academy-tabs > button::after { content: ''; position: absolute; right: 18px; bottom: 3px; left: 18px; height: 2px; border-radius: 2px; background: var(--academy-orange); transform: scaleX(0); transition: transform .2s ease; }
.academy-tabs > button[aria-selected=true] { color: #f0f0ed; background: #262b32; }
.academy-tabs > button[aria-selected=true]::after { transform: scaleX(1); }
.academy-tabs > button:hover { color: #f0f0ed; background: #ffffff06; }
.academy-tabs > button:focus-visible { outline: 2px solid var(--academy-orange); outline-offset: 2px; }
.academy-tabs > a { display:grid;place-items:center;min-height:42px;padding:7px 14px;border-radius:9px;color:#c6cbd2;text-decoration:none; }
.academy-tabs > a[aria-current=page],.academy-tabs > a:hover { color:#f0f0ed;background:#262b32; }
.academy-wordmark {
  display: flex;
  align-items: baseline;
  min-width: 0;
  margin: 0;
  color: #eee;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -1.8px;
}
.academy-brand-edge { color: #a8adb4; }
.academy-brand-core { color: var(--academy-orange); }
.academy-brand-name { color: #e7ebf1; }
.academy-learning { min-height: 0; align-self: center; height: 100%; max-height: 520px; }
.academy-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; height: 100%; min-height: 0; }
.academy-course {
  --course-accent: #f5b45e;
  position: relative;
  display: grid;
  grid-template-rows: minmax(110px, 1fr) auto 50px;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding: 20px 24px 14px;
  border: 1px solid #59637278;
  border-radius: 22px;
  background: #171d25;
  color: #e5e8ed;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.academy-course-hebrew { --course-accent: #8bc2ee; }
.academy-course-greek { --course-accent: #dcc89f; }
.academy-course:is(:hover, :focus-visible) { border-color: var(--course-accent); background: #1d242e; }
.academy-course:focus-visible { outline-color: var(--course-accent); }
.academy-course-copy { min-width: 0; }
.academy-course-kind { display: flex; align-items: center; gap: 7px; color: #a5afbc; font-size: 10px; line-height: 1.5; letter-spacing: 1.2px; }
.academy-course-kind > span { color: #626d7b; }
.academy-course h2 { margin: 9px 0 11px; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.25; font-weight: 400; letter-spacing: -.65px; color: #f1f1ed; }
.academy-card-brand { color: #aab0b8; }
.academy-card-brand > span { color: var(--academy-orange); }
.academy-course-copy > p { margin: 0; max-width: 280px; color: #aab4c2; font-size: 14px; line-height: 1.65; }
.academy-course-glyphs { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; min-height: 0; color: #8993a1; font-size: 53px; line-height: 1.55; }
.academy-course-glyphs::before { content: ''; position: absolute; width: min(160px, 80%); aspect-ratio: 1; border: 1px solid #69798c35; border-radius: 50%; pointer-events: none; }
.academy-course-glyphs > span { position: relative; display: block; }
.academy-course-glyphs > span:nth-child(2) { font-size: 1.3em; color: var(--course-accent); }
.academy-course-arabic .academy-course-glyphs { gap: 4px; font-family: 'Amiri', serif; font-size: 60px; }
.academy-course-arabic .academy-course-glyphs > span:nth-child(2) { font-size: 1em; color: #8993a1; }
.academy-course-arabic .academy-course-glyphs > span:first-child { font-size: 1.3em; color: var(--course-accent); }
.academy-course-hebrew .academy-course-glyphs { font-family: 'Noto Serif Hebrew', serif; }
.academy-course-greek .academy-course-glyphs { font-family: 'Noto Serif', serif; font-size: 55px; }
.academy-course-action { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; min-height: 44px; border-top: 1px solid #ffffff12; color: #c7cfd9; font-size: 13px; line-height: 1.4; }
.academy-action-arrow { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #7e89983d; border-radius: 50%; color: var(--course-accent); font-size: 20px; line-height: 1; transition: transform .2s ease, border-color .2s ease; }
.academy-course:hover .academy-action-arrow { transform: translate(2px, -2px); border-color: var(--course-accent); }

.academy-articles-panel { display: flex; flex-direction: column; align-self: stretch; min-width: 0; min-height: 0; gap: 14px; padding: 18px; border: 1px solid #59637278; border-radius: 22px; background: #171d25; }
.academy-articles-toolbar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: none; min-width: 0; }
:is(.academy-page,.article-library) .article-language-select { position: relative; width: 220px; max-width: 100%; margin: 0; }
:is(.academy-page,.article-library) .article-language-toggle, :is(.academy-page,.article-library) .article-language-options button { width: 100%; min-height: 44px; padding: 9px 14px; border: 1px solid #59637291; border-radius: 10px; background: #202630; color: #ddd; font: 400 15px/1.4 "Segoe UI", Arial, sans-serif; text-align: start; cursor: pointer; }
:is(.academy-page,.article-library) .article-language-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:is(.academy-page,.article-library) .article-language-toggle::after { content: '⌄'; color: #aab2bd; }
:is(.academy-page,.article-library) .article-language-toggle:is(:hover, [aria-expanded=true]) { border-color: var(--academy-orange); }
:is(.academy-page,.article-library) .article-language-options { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 20; width: 100%; max-height: min(300px, 50dvh); padding: 6px; overflow-y: auto; border: 1px solid #59637291; border-radius: 12px; background: #202630; box-shadow: 0 12px 28px #0008; scrollbar-width: thin; scrollbar-color: #777 #202630; }
:is(.academy-page,.article-library) .article-language-options button { border: 0; background: transparent; }
:is(.academy-page,.article-library) .article-language-options button:is(:hover, :focus-visible) { background: #ffffff09; color: var(--academy-orange); outline: none; }
:is(.academy-page,.article-library) .article-language-options button[aria-selected=true] { color: var(--academy-orange); }
:is(.academy-page,.article-library) .article-language-toggle:focus-visible, .academy-page .staff-article-add:focus-visible { outline: 2px solid var(--academy-orange); outline-offset: 2px; }
.academy-page .staff-article-add { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 9px 15px; border: 1px solid #59637291; border-radius: 10px; background: #232a33; color: #ddd; font: 400 14px/1.4 "Segoe UI", Arial, sans-serif; cursor: pointer; }
.academy-page .staff-article-add:hover { border-color: var(--academy-orange); }
.academy-article-status { flex: none; margin: 0; color: #b7c1ce; font-size: 14px; line-height: 1.6; }
.academy-article-status:empty { display: none; }
.academy-article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); align-content: start; gap: 10px; flex: 1 1 0; min-width: 0; min-height: 0; padding: 3px 5px 8px 3px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #6e7886 #171d25; }
.academy-article-list .article-public-link { display: flex; align-items: center; min-width: 0; min-height: 66px; padding: 14px 16px; border: 1px solid #ffffff20; border-radius: 12px; background: #1e252e; color: #e0e4e9; text-decoration: none; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; transition: border-color .2s ease, background-color .2s ease; }
.academy-article-list .article-public-link:is(:hover, :focus-visible) { border-color: var(--academy-orange); background: #252d37; }

@media (max-width: 850px) {
  html body.site-page.academy-page > main { padding-inline: 20px; }
  .academy-courses { gap: 12px; }
  .academy-course { padding-inline: 17px; }
  .academy-course-glyphs { gap: 8px; font-size: 42px; }
  .academy-course-arabic .academy-course-glyphs { font-size: 54px; }
  .academy-course-greek .academy-course-glyphs { font-size: 44px; }
}
@media (max-width: 700px) {
  html body.site-page.academy-page > main { gap: 16px; padding: 8px 16px 14px; }
  .academy-heading { flex-direction: column; align-items: flex-start; gap: 12px; padding: 3px 0 0; }
  .academy-wordmark { font-size: clamp(29px, 7.5vw, 38px); letter-spacing: -1.3px; }
  .academy-tabs { gap: 3px; padding: 3px; border-radius: 11px; }
  .academy-tabs > button { min-width: 90px; min-height: 38px; padding: 7px 17px; font-size: 14px; border-radius: 8px; }
  .academy-articles-panel { gap: 12px; padding: 12px; border-radius: 18px; }
  :is(.academy-page,.article-library) .article-language-select { flex: 1 1 180px; width: auto; }
  .academy-article-list { grid-template-columns: minmax(0, 1fr); }
  .academy-article-list .article-public-link { min-height: 58px; padding: 12px 13px; font-size: 15px; }
  .academy-learning { max-height: 550px; align-self: center; }
  .academy-courses { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .academy-course { grid-template-columns: 64px minmax(0, 1fr) 25px; grid-template-rows: minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
  .academy-course-glyphs { align-self: stretch; width: 64px; font-size: 40px; }
  .academy-course-glyphs::before { width: 62px; }
  .academy-course-glyphs > span:first-child, .academy-course-glyphs > span:last-child { display: none; }
  .academy-course-arabic .academy-course-glyphs > span:first-child { display: block; }
  .academy-course-arabic .academy-course-glyphs > span:nth-child(2) { display: none; }
  .academy-course-arabic .academy-course-glyphs { font-size: 48px; }
  .academy-course-hebrew .academy-course-glyphs { font-size: 34px; }
  .academy-course-greek .academy-course-glyphs { font-size: 39px; }
  .academy-course-kind { gap: 5px; letter-spacing: .7px; font-size: 9px; }
  .academy-course h2 { margin: 5px 0 7px; font-size: clamp(18px, 4.8vw, 24px); letter-spacing: -.5px; }
  .academy-course-copy > p { max-width: none; font-size: 12px; line-height: 1.5; }
  .academy-course-action { display: flex; justify-content: center; border: 0; min-height: 44px; }
  .academy-action-label { display: none; }
  .academy-action-arrow { width: 25px; height: 25px; flex-basis: 25px; font-size: 18px; }
}
@media (max-width: 380px) {
  html body.site-page.academy-page > main { padding-inline: 12px; }
  .academy-course { grid-template-columns: 52px minmax(0, 1fr) 22px; gap: 9px; padding: 10px 11px; }
  .academy-course-glyphs { width: 52px; }
  .academy-course-glyphs::before { width: 52px; }
  .academy-course h2 { font-size: 18px; }
  .academy-course-copy > p { font-size: 12px; }
  .academy-action-arrow { width: 22px; height: 22px; flex-basis: 22px; }
}
@media (max-height: 620px) and (max-width: 700px) {
  html body.site-page.academy-page > main { gap: 12px; padding-top: 4px; padding-bottom: 8px; }
  .academy-wordmark { font-size: 28px; }
  .academy-heading { gap: 8px; }
  .academy-courses { gap: 9px; }
  .academy-course { padding-block: 9px; }
  .academy-course h2 { margin-bottom: 5px; }
}
@media (max-height: 650px) and (min-width: 701px) {
  html body.site-page.academy-page > main { padding-top: 8px; padding-bottom: 12px; gap: 12px; }
  .academy-wordmark { font-size: 30px; }
  .academy-course { grid-template-rows: minmax(60px, 1fr) auto 44px; padding-block: 12px; gap: 10px; }
  .academy-course-glyphs::before { width: 105px; }
  .academy-course-glyphs { font-size: 36px; }
  .academy-course-arabic .academy-course-glyphs { font-size: 42px; }
  .academy-course-greek .academy-course-glyphs { font-size: 38px; }
  .academy-course h2 { font-size: 21px; margin-block: 5px; }
  .academy-course-copy > p { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .academy-course { animation: academy-card-arrive .4s cubic-bezier(.2, .7, .2, 1) both; }
  .academy-course:nth-child(2) { animation-delay: .07s; }
  .academy-course:nth-child(3) { animation-delay: .14s; }
  .academy-course:hover { transform: translateY(-3px); }
  @keyframes academy-card-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .academy-page *, .academy-page *::before, .academy-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
