/* Native image blocks remain editable; only the presentation lives here. */
.ak-course-section{isolation:isolate;overflow:hidden;min-height:640px;display:flex;align-items:center}
.ak-course-section>.ak-course-photo{position:absolute;inset:0;z-index:-2;width:100%;height:100%;margin:0!important}
.ak-course-section>.ak-course-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 56%}
.ak-course-section:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(249,250,249,.98),rgba(249,250,249,.92) 32%,rgba(249,250,249,.65) 57%,rgba(249,250,249,0) 86%)}
.ak-course-section .ak-course-detail{width:72%;max-width:780px}
.ak-course-section .ak-course-label{display:flex;align-items:center;gap:18px}
.ak-course-section .ak-course-label:before{content:"";width:30px;height:1px;background:var(--ananke-accent,#b5a477)}
.ak-course-section .ak-course-detail>.ak-lead,.ak-course-section .ak-item p{color:#414741}
.ak-course-section#senior{background:#202923;color:#fff}
.ak-course-section#senior:before{background:linear-gradient(90deg,rgba(18,26,23,.96),rgba(18,26,23,.92) 30%,rgba(18,26,23,.76) 58%,rgba(18,26,23,.12) 100%)}
.ak-course-section#senior .ak-course-detail>.ak-lead,.ak-course-section#senior .ak-item p{color:#eef0eb}
.ak-course-section#senior .ak-item{border-color:rgba(229,220,192,.42)}
.ak-course-section#senior .ak-course-label{color:#ded3b3}
/* Both the photograph and the complete course change as one panel. */
.ak-course-switch--pinned{min-height:calc(var(--ak-course-height) + 110svh)}
.ak-course-switch--pinned .ak-course-switch-frame{position:sticky;top:var(--ak-course-top);height:var(--ak-course-height)}
.ak-course-switch--pinned .ak-course-section{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;min-height:0;padding:36px 0;background:var(--ananke-background,#fff);opacity:0;visibility:hidden;pointer-events:none;transition:none}
.ak-course-switch--pinned .ak-course-section.ak-paper{background:var(--ak-paper,#f5f5f1)}
.ak-course-switch--pinned .ak-course-section.is-course-current{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .45s ease}
.ak-course-switch--pinned .ak-course-detail>h2{font-size:30px;line-height:1.6}
.ak-course-switch--pinned .ak-course-label{margin-bottom:18px}
.ak-course-switch--pinned .ak-course-detail>.ak-lead{max-width:800px;margin-top:20px;font-size:15px;line-height:1.9}
.ak-course-switch--pinned :is(.ak-three-columns,.ak-two-columns){margin-top:28px!important;gap:32px}
.ak-course-switch--pinned .ak-item{padding-top:20px}
.ak-course-switch--pinned .ak-item h3{font-size:20px;margin-bottom:16px!important}
.ak-course-switch--pinned .ak-item p{font-size:14px;line-height:1.9}
/* Measure the complete panels before deciding whether the viewport can hold them. */
.ak-course-switch--measure{min-height:0}
.ak-course-switch--measure .ak-course-switch-frame{position:static;height:auto}
.ak-course-switch--measure .ak-course-section{position:relative;height:auto;visibility:visible}
/* Where pinning cannot fit, return to a quiet, text-only reading layout. */
.ak-course-switch--flow .ak-course-section>.ak-course-photo,.ak-course-switch--flow .ak-course-section:before{display:none}
.ak-course-switch--flow .ak-course-section{min-height:0;background:var(--ananke-background,#fff)}
.ak-course-switch--flow .ak-course-section#senior{background:var(--ak-paper,#f5f5f1);color:var(--ananke-text,#202020)}
.ak-course-switch--flow .ak-course-section .ak-course-detail{width:100%;max-width:none}
.ak-course-switch--flow .ak-course-section#senior .ak-course-label{color:inherit}
.ak-course-switch--flow .ak-course-section#senior .ak-course-detail>.ak-lead,.ak-course-switch--flow .ak-course-section#senior .ak-item p{color:var(--ak-muted,#62665f)}
.ak-course-switch--flow .ak-course-section#senior .ak-item{border-color:var(--ak-line,#dedfd9)}
@media(max-width:768px){
  .ak-course-section{min-height:0;padding-block:64px;scroll-margin-top:8px;background:var(--ananke-background,#fff)}
  .ak-course-section>.ak-course-photo,.ak-course-section:before{display:none}
  .ak-course-section#senior{background:var(--ak-paper,#f5f5f1);color:var(--ananke-text,#202020)}
  .ak-course-section#senior .ak-course-label{color:inherit}
  .ak-course-section#senior .ak-course-detail>.ak-lead,.ak-course-section#senior .ak-item p{color:var(--ak-muted,#62665f)}
  .ak-course-section#senior .ak-item{border-color:var(--ak-line,#dedfd9)}
  .ak-course-section .ak-course-detail{width:100%;max-width:620px}
}
@media(max-width:600px){
  .ak-course-section{padding-block:48px;min-height:0}
  .ak-course-section .ak-course-label{margin-bottom:24px}
  .ak-course-section .ak-course-detail>h2{font-size:clamp(22px,5.5vw,30px)}
  .ak-course-section .ak-course-detail>.ak-lead{font-size:14px;line-height:2;margin-top:24px}
  .ak-course-section :is(.ak-three-columns,.ak-two-columns){gap:24px;margin-top:32px!important}
  .ak-course-section .ak-item{padding-top:20px;border-top:1px solid rgba(65,71,65,.25)}
  .ak-course-section .ak-item h3{font-size:19px;margin-bottom:12px!important}
  .ak-course-section .ak-item p{font-size:14px;line-height:1.9}
}
@media(prefers-reduced-motion:reduce){.ak-course-switch .ak-course-section{transition:none!important;transform:none!important}}
@media print{
  .ak-course-section,.ak-course-section#senior{min-height:0;background:#fff!important;color:#000!important}
  .ak-course-section>.ak-course-photo,.ak-course-section:before{display:none}
  .ak-course-section .ak-course-detail{width:100%;max-width:none}
  .ak-course-section .ak-course-detail>.ak-lead,.ak-course-section .ak-item p,.ak-course-section#senior .ak-course-label,.ak-course-section#senior .ak-course-detail>.ak-lead,.ak-course-section#senior .ak-item p{color:#000!important}
  .ak-course-switch--flow .ak-course-section:not(.has-course-entered){opacity:1;transform:none}
  .ak-course-switch--pinned{min-height:0}
  .ak-course-switch--pinned .ak-course-switch-frame{position:static;height:auto}
  .ak-course-switch--pinned .ak-course-section{position:relative;height:auto;opacity:1;visibility:visible;transform:none;pointer-events:auto}
}
