/* Neutral reading text, soft blue actions and compact teacher presentation. */
:root{--ui-link:var(--theme-ink,#e2e8f0);--ui-accent:#a9c7ed;--ui-action:#9bbce6;--ui-action-ink:#142238;--ui-soft:rgba(155,188,230,.08)}
:root[data-academy-theme="night"]{--ui-accent:#afc9f2;--ui-action:#9bbce6;--ui-action-ink:#142238;--ui-soft:rgba(155,188,230,.08)}
:root[data-academy-theme="light"]{--ui-accent:#2859a0;--ui-action:#315f9e;--ui-action-ink:#fff;--ui-soft:rgba(49,95,158,.055)}
:root[data-academy-theme="warm"]{--ui-accent:#355d83;--ui-action:#3a6087;--ui-action-ink:#fff;--ui-soft:rgba(58,96,135,.055)}
html body :where(a:not([class]):not([role="button"]):not(footer a)){color:var(--ui-link);text-decoration-thickness:1px;text-underline-offset:.22em;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent)}
html body :where(a:not([class]):hover:not(footer a)){text-decoration-color:currentColor}
html body :is(.study-notice,.course-public-guide,.lesson-content,.task-description) a:not(.btn):not(.button):not([role="button"]){color:var(--ui-accent)}
html body :is(.back-link,.top-back){color:var(--ui-link)}
html body .discovery-heading>a{color:var(--ui-accent)}
html body .header .nav-link.active:not(.auth-link){color:var(--ui-accent)}
html body .ui-link-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 18px;border:1px solid var(--theme-line,#424a70);border-radius:13px;background:var(--theme-panel,#1b1f39);color:var(--theme-ink,#f1f3ff);font-size:15px;font-weight:650;line-height:1.45;text-decoration:none;transition:background .15s,border-color .15s;box-sizing:border-box}
html body .ui-link-button:hover{border-color:var(--ui-accent);background:var(--theme-panel2,#252b48);text-decoration:none}
html body .ui-link-primary{background:var(--ui-action);color:var(--ui-action-ink);border-color:transparent}
html body .ui-link-primary:hover{background:var(--ui-action);filter:brightness(.96);color:var(--ui-action-ink)}
html body .ui-link-button img{width:22px;height:22px;object-fit:contain;flex-shrink:0}
.info-articles-lead .ui-link-button{margin:10px 0 18px}
html body .teacher-profile{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,1.3fr);gap:clamp(24px,5vw,60px);padding:clamp(22px,4vw,48px);margin:20px 0 0;border:1px solid var(--theme-line,#424a70);border-radius:24px;background:linear-gradient(135deg,var(--ui-soft),transparent 58%),var(--theme-bg,#101225);color:var(--theme-ink,#f1f3ff);scroll-margin-top:110px;text-align:left}
.teacher-portrait{min-width:0;align-self:start}
.teacher-portrait picture{display:block;max-width:320px;margin:0 auto;border-radius:22px;overflow:hidden;background:var(--theme-panel,#1b1f39);border:1px solid var(--theme-line,#424a70);box-shadow:10px 10px 0 var(--ui-soft)}
.teacher-portrait img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover}
.teacher-photo-caption{display:block;margin:20px auto 0;max-width:320px;font-size:13px;line-height:1.5;color:var(--theme-muted,#b2bad6);text-align:center}
.teacher-copy{min-width:0}
html body .teacher-kicker{color:var(--theme-muted,#b2bad6);font-size:10px;letter-spacing:.15em;font-weight:800;margin:0 0 14px;line-height:1.6}
html body .teacher-copy h2{font-size:clamp(30px,3.7vw,46px);line-height:1.13;letter-spacing:-.035em;font-weight:800;margin:0;color:var(--theme-ink,#f1f3ff)}
html body .teacher-role{font-size:13px;line-height:1.65;color:var(--theme-muted,#b2bad6);margin:15px 0 22px;font-weight:600}
html body .teacher-intro{font-size:16px;line-height:1.8;margin:0 0 26px;color:var(--theme-muted,#b2bad6)}
html body .teacher-copy h3{font-size:16px;line-height:1.4;margin:0 0 13px;color:var(--theme-ink,#f1f3ff)}
.teacher-help{list-style:none;margin:0 0 23px;padding:0;display:grid;gap:10px}
.teacher-help li{display:flex;align-items:flex-start;gap:11px;padding:12px 14px;border:1px solid var(--theme-line,#424a70);border-radius:12px;background:var(--theme-panel,#1b1f39);font-size:14px;line-height:1.6}
.teacher-help li>span{display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;width:22px;height:22px;border-radius:6px;background:var(--ui-soft);color:var(--ui-accent);font-size:18px}
.teacher-experience{border-top:1px solid var(--theme-line,#424a70);border-bottom:1px solid var(--theme-line,#424a70);margin:0 0 24px;padding:0}
.teacher-experience summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;min-height:56px;font-size:14px;font-weight:650;color:var(--theme-ink,#f1f3ff)}
.teacher-experience summary::-webkit-details-marker{display:none}
.teacher-experience summary>span{font-size:22px;color:var(--ui-accent)}
.teacher-experience[open] summary>span{transform:rotate(45deg)}
.teacher-experience ul{padding:0 0 0 19px;margin:0 0 18px;color:var(--theme-muted,#b2bad6);font-size:14px;line-height:1.8}
.teacher-experience li+li{margin-top:8px}
.teacher-experience p{font-size:14px;line-height:1.8;color:var(--theme-muted,#b2bad6);margin:0 0 20px}
.teacher-actions{display:flex;flex-wrap:wrap;gap:10px}
.teacher-socials{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:16px}
html body .teacher-socials a{display:inline-flex;align-items:center;gap:8px;min-height:44px;text-decoration:none;color:var(--theme-muted,#b2bad6);font-size:12px;font-weight:600}
html body .teacher-socials a:hover{color:var(--ui-accent)}
.teacher-socials img{width:20px;height:20px;object-fit:contain}
.teacher-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:320px;margin:24px auto 0;padding-top:22px;border-top:1px solid var(--theme-line,#424a70);text-align:center}
.teacher-stats strong{display:block;font-size:25px;line-height:1.4;color:var(--theme-ink,#f1f3ff)}
.teacher-stats span{display:block;font-size:10px;line-height:1.5;color:var(--theme-muted,#b2bad6);margin-top:4px}
#pricing{scroll-margin-top:115px}
#teacher{padding-top:24px;padding-bottom:48px;scroll-margin-top:100px}
#teacher .teacher-profile{margin-top:0}
@media(max-width:700px){html body .teacher-profile{grid-template-columns:1fr;padding:20px;gap:26px;border-radius:18px}.teacher-portrait picture{max-width:200px}.teacher-photo-caption{margin-top:14px;font-size:12px}.teacher-stats,.about .stats,.about-page .stats,#aboutStats{display:none!important}.teacher-copy h2 br{display:none}html body .teacher-copy h2{font-size:29px;line-height:1.2}.teacher-copy h2 br::after{content:' '}.teacher-actions{display:grid;grid-template-columns:1fr}.teacher-role{margin-bottom:18px!important}.teacher-help li{padding:11px;font-size:14px}.teacher-socials{gap:4px 16px}.teacher-socials a{font-size:12px!important}#pricing{scroll-margin-top:90px}}
@media(prefers-reduced-motion:reduce){.ui-link-button{transition:none!important}}

/* Home only: remove stacked section margins without changing card contents,
   the global palette, other pages, or the fixed-header anchor offsets. */
.academy-home > #app > #about {
  margin-bottom: 0;
  padding-bottom: 48px;
}

.academy-home > #app > #pricing {
  margin-top: 24px;
  margin-bottom: 0;
  padding-top: 32px;
  padding-bottom: 32px;
}

/* academy-responsive.css uses !important for the mobile footer padding. */
.academy-home > #app + .footer {
  padding-top: 36px !important;
}

@media (max-width: 768px) {
  .academy-home > #app > #about {
    padding-bottom: 28px;
  }

  .academy-home > #app > #pricing {
    margin-top: 16px;
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .academy-home > #app + .footer {
    padding-top: 24px !important;
  }
}
