/* THE KATIE LENDEL ACADEMY (KAT-104). The student page: katielendel.com/academy.
   Katie Lendel's own palette and type (assets/css/katie-brand.css): charcoal, ivory and champagne, Inter for reading,
   Bricolage Grotesque for display. Champagne on white is a mark, a rule or a fill, never small text; the small tint
   on light is --ac-champagne-ink. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-variable.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/bricolage-variable.woff2') format('woff2'); }

:root {
  --ac-white: #FFFFFF;
  --ac-ivory: #F6F3ED;
  --ac-ivory-deep: #EFEAE1;
  --ac-charcoal: #17191C;
  --ac-charcoal-hover: #2C2F34;
  --ac-slate: #5A5E66;
  --ac-champagne: #B79A63;
  --ac-champagne-hover: #A98C56;
  --ac-champagne-ink: #76603C;
  --ac-border: #DED7CC;
  --ac-border-firm: #C2B9AA;
  --ac-field: #7D766A;
  --ac-on-dark: #F6F3ED;
  --ac-on-dark-2: #D9D4CA;
  --ac-good: #2F6B4F;
  --ac-bad: #9B2C2C;
  --ac-radius: 10px;
  --ac-radius-lg: 16px;
  --ac-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ac-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --ac-wide: 1180px;
  --ac-gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ac-white); color: var(--ac-charcoal); font-family: var(--ac-body); font-size: 17px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ac-charcoal); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.ac-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ac-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ac-charcoal); color: var(--ac-on-dark); padding: 10px 16px; border-radius: var(--ac-radius); text-decoration: none; }
.ac-skip:focus { top: 12px; }

/* ---- the bar at the top ---- */
.ac-top { border-bottom: 1px solid var(--ac-border); background: var(--ac-white); position: sticky; top: 0; z-index: 20; }
.ac-top-in { max-width: var(--ac-wide); margin: 0 auto; padding: 14px var(--ac-gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ac-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
/* AcademyLounge's own logo, then "by" and Katie's wordmark, so every page says whose courses these are (Katie, 2026-11-20). */
.ac-brand-logo { width: 200px; height: auto; display: block; }
.ac-brand-by { display: flex; align-items: center; gap: 7px; padding-left: 14px; border-left: 1px solid var(--ac-border-firm); font-family: var(--ac-display); font-size: 14px; line-height: 1; color: var(--ac-slate); }
.ac-brand-by img { width: 92px; height: auto; display: block; }
.ac-me { position: relative; }
.ac-me-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 6px; border: 1px solid var(--ac-border); background: var(--ac-white); border-radius: 999px; cursor: pointer; }
.ac-me-btn:hover { border-color: var(--ac-field); }
.ac-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ac-charcoal); color: var(--ac-on-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.ac-me-name { font-size: 15px; font-weight: 500; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--ac-white); border: 1px solid var(--ac-border-firm); border-radius: var(--ac-radius); box-shadow: 0 12px 32px rgba(23, 25, 28, 0.12); padding: 6px; }
.ac-menu a, .ac-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; text-decoration: none; font-size: 15px; cursor: pointer; min-height: 44px; }
.ac-menu a:hover, .ac-menu button:hover { background: var(--ac-ivory); }
.ac-menu-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--ac-border); margin-bottom: 6px; font-size: 14px; color: var(--ac-slate); overflow-wrap: anywhere; }

.ac-preview { background: var(--ac-charcoal); color: var(--ac-on-dark); text-align: center; font-size: 14px; padding: 10px var(--ac-gutter); text-wrap: balance; }

.ac-main { flex: 1; width: 100%; outline: none; }
.ac-wrap { max-width: var(--ac-wide); margin: 0 auto; padding: 0 var(--ac-gutter); }
.ac-boot { padding: 120px 16px; text-align: center; color: var(--ac-slate); }

/* ---- type ---- */
.ac-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac-champagne-ink); margin: 0 0 10px; }
.ac-h1 { font-family: var(--ac-display); font-weight: 600; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
.ac-h2 { font-family: var(--ac-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.ac-keep { white-space: nowrap; }
.ac-h3 { font-family: var(--ac-display); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0; text-wrap: balance; }
.ac-lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ac-slate); margin: 14px 0 0; max-width: 60ch; }
.ac-meta { font-size: 14px; color: var(--ac-slate); }
.ac-rule { width: 56px; height: 3px; background: var(--ac-champagne); border: 0; margin: 20px 0; border-radius: 2px; }

/* ---- buttons ---- */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--ac-radius); border: 1px solid var(--ac-charcoal); background: var(--ac-charcoal); color: var(--ac-on-dark); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; line-height: 1.2; }
.ac-btn:hover { background: var(--ac-charcoal-hover); border-color: var(--ac-charcoal-hover); }
.ac-btn[disabled] { background: #E7E1D6; border-color: #E7E1D6; color: var(--ac-slate); cursor: default; }
.ac-btn-quiet { background: var(--ac-white); color: var(--ac-charcoal); border-color: var(--ac-field); }
.ac-btn-quiet:hover { background: var(--ac-ivory); border-color: var(--ac-charcoal); }
.ac-btn-done { background: var(--ac-white); color: var(--ac-good); border-color: var(--ac-good); }
.ac-btn-done:hover { background: #EEF5F1; border-color: var(--ac-good); }
.ac-btn-sm { min-height: 44px; padding: 9px 16px; font-size: 15px; }
.ac-btn-block { width: 100%; }
.ac-link { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ac-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ac-slate); }
.ac-back:hover { color: var(--ac-charcoal); text-decoration: underline; text-underline-offset: 3px; }
.ac-ico { width: 18px; height: 18px; flex: none; }

/* ---- the sign-in page ---- */
.ac-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ac-auth-art { background: var(--ac-charcoal); color: var(--ac-on-dark); padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; isolation: isolate; }
.ac-auth-art::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid #3A3D42; z-index: -1; }
.ac-auth-art::before { content: ''; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid #4A4436; z-index: -1; }
.ac-auth-brand { position: relative; z-index: 1; }
.ac-auth-logo { width: 260px; max-width: 100%; height: auto; display: block; }
.ac-auth-art .ac-auth-by { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-family: var(--ac-display); font-size: 15px; line-height: 1; color: var(--ac-on-dark-2); }
.ac-auth-by img { width: 110px; height: auto; display: block; }
.ac-auth-art .ac-eyebrow { color: var(--ac-champagne); }
.ac-auth-art .ac-h1 { color: var(--ac-on-dark); max-width: 12ch; }
.ac-auth-art p { color: var(--ac-on-dark-2); max-width: 38ch; margin: 18px 0 0; font-size: 18px; }
.ac-auth-art .ac-rule { margin: 24px 0 0; }
.ac-auth-note { font-size: 14px; color: var(--ac-on-dark-2); position: relative; z-index: 1; }
.ac-auth-form { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 6vw, 80px) var(--ac-gutter); background: var(--ac-white); }
.ac-auth-box { width: 100%; max-width: 400px; }
.ac-auth-box .ac-h2 { margin-bottom: 6px; }
.ac-auth-box form { margin-top: 26px; display: grid; gap: 18px; }
.ac-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.ac-field input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--ac-field); border-radius: var(--ac-radius); background: var(--ac-white); font-size: 17px; }
.ac-field input:focus-visible { outline: 3px solid var(--ac-charcoal); outline-offset: 1px; }
.ac-field .ac-hint { font-size: 14px; color: var(--ac-slate); margin-top: 6px; }
.ac-pw { position: relative; }
.ac-pw input { padding-right: 76px; }
.ac-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding: 0 10px; cursor: pointer; }
.ac-msg { border-radius: var(--ac-radius); padding: 12px 14px; font-size: 15px; }
.ac-msg-bad { background: #FBEFEF; color: var(--ac-bad); border: 1px solid #E8C4C4; }
.ac-msg-good { background: #EEF5F1; color: var(--ac-good); border: 1px solid #C6DDD0; }
.ac-msg-info { background: var(--ac-ivory); color: var(--ac-charcoal); border: 1px solid var(--ac-border); }
.ac-auth-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ac-border); font-size: 15px; color: var(--ac-slate); }

/* ---- the library ---- */
.ac-hero { background: var(--ac-ivory); border-bottom: 1px solid var(--ac-border); }
.ac-hero .ac-wrap { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(32px, 4vw, 52px); }
/* The Continue card runs the page's full width, so it ends where the course cards under it end (Katie, 2026-11-23: "make
   the top course full length so it ends or aligns where the bottom three videos end"). With three cards in a row, its
   picture is as wide as the first of them. */
.ac-resume { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 0; background: var(--ac-white); border: 1px solid var(--ac-border); border-radius: var(--ac-radius-lg); overflow: hidden; text-decoration: none; }
@media (min-width: 1030px) {
  .ac-resume { grid-template-columns: minmax(0, calc((100% - 48px) / 3)) minmax(0, 1fr); }
}
.ac-resume:hover { border-color: var(--ac-border-firm); box-shadow: 0 10px 28px rgba(23, 25, 28, 0.08); }
.ac-resume .ac-cover { width: 100%; align-self: stretch; }
.ac-resume .ac-cover img { object-fit: contain; }
.ac-resume-body { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.ac-resume-body .ac-btn { align-self: flex-start; margin-top: 8px; }
.ac-section { padding: clamp(36px, 5vw, 60px) 0 0; }
.ac-section:last-child { padding-bottom: clamp(48px, 6vw, 80px); }
.ac-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.ac-card { display: flex; flex-direction: column; background: var(--ac-white); border: 1px solid var(--ac-border); border-radius: var(--ac-radius-lg); overflow: hidden; text-decoration: none; min-width: 0; }
a.ac-card:hover { border-color: var(--ac-border-firm); box-shadow: 0 10px 28px rgba(23, 25, 28, 0.08); }
a.ac-card:hover .ac-cover img { transform: scale(1.02); }
.ac-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ac-card-body p { margin: 0; color: var(--ac-slate); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.ac-card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ac-slate); }
.ac-card-foot > span:first-child { text-wrap: pretty; }
.ac-card-go { font-weight: 600; color: var(--ac-charcoal); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ac-cover { position: relative; aspect-ratio: 16 / 9; background: var(--ac-charcoal); overflow: hidden; }
.ac-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ac-cover-type { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; color: var(--ac-on-dark); }
.ac-cover-type span { font-family: var(--ac-display); font-weight: 600; font-size: 22px; line-height: 1.15; max-width: 16ch; }
.ac-cover-type::before { content: ''; width: 40px; height: 3px; background: var(--ac-champagne); border-radius: 2px; margin-bottom: 12px; }
.ac-tag { position: absolute; right: 12px; top: 12px; background: var(--ac-white); color: var(--ac-charcoal); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.ac-locked .ac-cover img { filter: grayscale(1) brightness(0.62); }
.ac-lock { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--ac-white); display: flex; align-items: center; justify-content: center; }
.ac-locked .ac-card-body .ac-h3 { color: var(--ac-charcoal); }
.ac-bar { height: 6px; background: var(--ac-ivory-deep); border-radius: 999px; overflow: hidden; }
.ac-bar span { display: block; height: 100%; background: var(--ac-champagne); border-radius: 999px; }
.ac-progress { display: grid; gap: 6px; }
.ac-progress-words { font-size: 13px; color: var(--ac-slate); }
.ac-empty { background: var(--ac-ivory); border-radius: var(--ac-radius-lg); padding: 28px; color: var(--ac-slate); }

/* ---- a course ---- */
.ac-course-head { background: var(--ac-ivory); border-bottom: 1px solid var(--ac-border); }
.ac-course-head .ac-wrap { padding-top: 18px; padding-bottom: clamp(32px, 4vw, 52px); }
.ac-course-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 14px; }
.ac-course-top .ac-cover { border-radius: var(--ac-radius-lg); }
.ac-course-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ac-course-actions .ac-progress { min-width: 200px; flex: 1; max-width: 320px; }
.ac-dated { margin: 18px 0 0; max-width: 60ch; display: flex; align-items: flex-start; gap: 10px; background: var(--ac-white); border: 1px solid var(--ac-border); border-radius: var(--ac-radius); padding: 12px 16px; }
.ac-dated .ac-ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ac-champagne-ink); }
.ac-dated p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ac-slate); text-wrap: pretty; }
.ac-dated strong { color: var(--ac-charcoal); font-weight: 600; }
.ac-outline { padding: clamp(32px, 4vw, 52px) 0 clamp(48px, 6vw, 80px); max-width: 860px; }
.ac-part { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac-champagne-ink); margin: 34px 0 6px; }
.ac-part:first-child { margin-top: 0; }
.ac-total { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ac-slate); }
.ac-sec-title > .ac-meta { flex: none; }
@media (max-width: 560px) { .ac-sec-title { flex-direction: column; align-items: flex-start; gap: 4px; } }
.ac-sec { margin: 0 0 26px; }
.ac-sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 0 10px; border-bottom: 2px solid var(--ac-charcoal); }
.ac-lessons { list-style: none; margin: 0; padding: 0; }
.ac-lessons li { border-bottom: 1px solid var(--ac-border); }
.ac-lesson-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 4px; text-decoration: none; min-height: 56px; }
a.ac-lesson-row:hover { background: var(--ac-ivory); }
.ac-lesson-row .ac-n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ac-border-firm); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ac-slate); }
.ac-lesson-row.is-done .ac-n { background: var(--ac-good); border-color: var(--ac-good); color: var(--ac-white); }
.ac-lesson-row.is-here { background: var(--ac-ivory); box-shadow: inset 3px 0 0 var(--ac-champagne); }
.ac-lesson-title { font-weight: 500; overflow-wrap: anywhere; }
.ac-lesson-kind { font-size: 14px; color: var(--ac-slate); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ac-locked-note { margin-top: 26px; background: var(--ac-charcoal); color: var(--ac-on-dark); border-radius: var(--ac-radius-lg); padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.ac-locked-note p { margin: 6px 0 0; color: var(--ac-on-dark-2); max-width: 52ch; }
.ac-locked-note .ac-btn { background: var(--ac-champagne); border-color: var(--ac-champagne); color: var(--ac-charcoal); }
.ac-locked-note .ac-btn:hover { background: var(--ac-champagne-hover); border-color: var(--ac-champagne-hover); }
/* A course for sale (KAT-146): the locked note, with the price in its words and the ask-Katie link quiet under them. */
.ac-buy .ac-buy-ask { margin-top: 10px; font-size: 14px; }
.ac-buy .ac-buy-ask a { color: var(--ac-champagne); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* No word alone on a line at phone width: the heading and the copy share their lines out. */
.ac-buy h2 { text-wrap: balance; }
.ac-buy p { text-wrap: pretty; }
.ac-buy .ac-btn[disabled] { opacity: .75; cursor: progress; }
/* The ScaleLounge card under a lesson: the locked note's charcoal and champagne, so the two read as one family. */
.ac-cta { margin-top: 34px; background: var(--ac-charcoal); color: var(--ac-on-dark); border-radius: var(--ac-radius-lg); padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.ac-cta .ac-eyebrow { color: var(--ac-champagne); margin-bottom: 8px; }
.ac-cta .ac-h3 { color: var(--ac-on-dark); margin: 0; }
.ac-cta p:not(.ac-eyebrow) { margin: 8px 0 0; color: var(--ac-on-dark-2); max-width: 56ch; text-wrap: pretty; }
.ac-cta .ac-btn { background: var(--ac-champagne); border-color: var(--ac-champagne); color: var(--ac-charcoal); }
.ac-cta .ac-btn:hover { background: var(--ac-champagne-hover); border-color: var(--ac-champagne-hover); }

/* ---- a lesson ---- */
.ac-lesson { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 44px); padding: 18px 0 clamp(48px, 6vw, 80px); align-items: start; }
.ac-lesson-main { min-width: 0; }
.ac-player { background: var(--ac-charcoal); border-radius: var(--ac-radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.ac-player video, .ac-player iframe { width: 100%; height: 100%; border: 0; background: #000; }
.ac-part-label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-slate); margin: 24px 0 8px; }
/* A YouTube part's picture, until Play is pressed. Play stays inside the picture's clear middle at every width. */
.ac-yt-start { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ac-charcoal); cursor: pointer; }
.ac-yt-start img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 15%; min-width: 44px; max-width: 84px; aspect-ratio: 1; border: 2px solid var(--ac-champagne); border-radius: 50%; background: rgba(17, 19, 21, .85); color: var(--ac-ivory); display: flex; align-items: center; justify-content: center; }
.ac-yt-play .ac-ico { width: 58%; height: 58%; }
.ac-yt-start:hover .ac-yt-play { background: var(--ac-champagne); color: var(--ac-charcoal); }
.ac-yt-start:focus-visible { outline: 3px solid var(--ac-champagne); outline-offset: -3px; }
.ac-speed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin: 12px 0 0; }
.ac-speed-label { font-size: 14px; font-weight: 600; color: var(--ac-slate); margin-right: 4px; }
.ac-speed button { min-width: 56px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--ac-border-firm); border-radius: 999px; background: var(--ac-white); color: var(--ac-charcoal); font: 600 14px/1 var(--ac-body); cursor: pointer; }
.ac-speed button:hover { border-color: var(--ac-charcoal); }
.ac-speed button[aria-pressed="true"] { background: var(--ac-charcoal); border-color: var(--ac-charcoal); color: var(--ac-ivory); }
.ac-speed button:focus-visible { outline: 2px solid var(--ac-champagne); outline-offset: 2px; }
.ac-lesson-head { margin: 22px 0 0; }
.ac-lesson-time { margin: 8px 0 0; }
.ac-lesson-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 22px 0 0; padding: 16px 0; border-top: 1px solid var(--ac-border); border-bottom: 1px solid var(--ac-border); }
.ac-lesson-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-prose { margin-top: 26px; max-width: 68ch; overflow-wrap: anywhere; }
.ac-prose p { margin: 0 0 16px; }
.ac-prose h3 { font-family: var(--ac-display); font-weight: 600; font-size: 21px; margin: 28px 0 10px; }
.ac-prose ul, .ac-prose ol { margin: 0 0 16px; padding-left: 22px; }
.ac-prose li { margin: 0 0 6px; }
.ac-prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ac-files { margin-top: 26px; display: grid; gap: 10px; max-width: 68ch; }
.ac-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--ac-border); border-radius: var(--ac-radius); text-decoration: none; min-height: 56px; }
.ac-file:hover { border-color: var(--ac-field); background: var(--ac-ivory); }
.ac-file-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--ac-ivory); display: flex; align-items: center; justify-content: center; flex: none; }
.ac-file-name { font-weight: 600; overflow-wrap: anywhere; }
.ac-side { position: sticky; top: 92px; border: 1px solid var(--ac-border); border-radius: var(--ac-radius-lg); overflow: hidden; max-height: calc(100vh - 112px); display: flex; flex-direction: column; }
.ac-side-head { padding: 16px 18px; border-bottom: 1px solid var(--ac-border); background: var(--ac-ivory); }
.ac-side-head .ac-h3 { font-size: 17px; }
.ac-side-head .ac-progress { margin-top: 10px; }
.ac-side-list { overflow: auto; }
.ac-side-list .ac-sec-mini { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-slate); padding: 14px 18px 6px; }
.ac-side-list .ac-lesson-row { grid-template-columns: 30px minmax(0, 1fr); padding: 10px 14px; min-height: 48px; font-size: 15px; gap: 10px; }
.ac-side-list .ac-lesson-row .ac-n { width: 26px; height: 26px; font-size: 12px; }
.ac-side-toggle { display: none; }

/* ---- account ---- */
.ac-account { padding: 18px 0 clamp(48px, 6vw, 80px); max-width: 520px; }
.ac-account form { margin-top: 24px; display: grid; gap: 18px; }

/* ---- the foot ---- */
.ac-foot { border-top: 1px solid var(--ac-border); background: var(--ac-white); }
.ac-foot-in { max-width: var(--ac-wide); margin: 0 auto; padding: 22px var(--ac-gutter); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px; color: var(--ac-slate); }
.ac-foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ac-foot a { text-decoration: none; }
.ac-foot a:hover { text-decoration: underline; color: var(--ac-charcoal); }

.ac-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ac-charcoal); color: var(--ac-on-dark); padding: 12px 20px; border-radius: var(--ac-radius); font-size: 15px; z-index: 60; box-shadow: 0 12px 32px rgba(23, 25, 28, 0.2); max-width: calc(100% - 32px); }

@media (max-width: 960px) {
  .ac-lesson { grid-template-columns: minmax(0, 1fr); }
  .ac-side { position: static; max-height: none; }
  .ac-side-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; min-height: 44px; }
  .ac-side:not(.is-open) .ac-side-list { display: none; }
  .ac-side-head .ac-h3.ac-side-title { display: none; }
  .ac-course-top { grid-template-columns: minmax(0, 1fr); }
  .ac-course-top .ac-cover { order: -1; max-width: 560px; }
}
@media (max-width: 820px) {
  .ac-auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ac-auth-art { gap: 28px; padding-bottom: 40px; }
  .ac-auth-art .ac-h1 { font-size: 34px; }
  .ac-auth-logo { width: 220px; }
  .ac-auth-note { display: none; }
  .ac-auth-art::before, .ac-auth-art::after { opacity: .5; }
  .ac-resume { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ac-brand-logo { width: 150px; }
  .ac-brand-by { padding-left: 10px; gap: 5px; font-size: 13px; }
  .ac-brand-by img { width: 72px; }
  .ac-brand { gap: 10px; }
  .ac-me-name { display: none; }
  .ac-me-btn { padding: 6px; }
  .ac-lesson-row { grid-template-columns: 30px minmax(0, 1fr); }
  .ac-lesson-row .ac-lesson-kind { grid-column: 2; margin-top: -6px; }
  .ac-lesson-bar { flex-direction: column; align-items: stretch; }
  .ac-lesson-bar .ac-btn { width: 100%; }
  .ac-lesson-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ac-locked-note .ac-btn { width: 100%; }
  .ac-cta .ac-btn { width: 100%; }
}
@media (max-width: 400px) {
  .ac-brand-logo { width: 132px; }
  .ac-brand-by img { width: 62px; }
}
@media (max-width: 340px) { .ac-brand-by { display: none; } }
@media (prefers-reduced-motion: reduce) { .ac-cover img { transition: none; } }
