/* Rowaniteit Academy start page (index.html only): the look of the main site, rowaniteit.nl.
   Sky blue, frosted glass, white glossy buttons with a blue edge and a glow, a white gloss strip on top of every button and card.
   Loaded after daw.css and scoped to html.ah, so the lesson pages and the admin page keep their FL Studio look.
   The colours are the day palette of the main site (hoofdsite/index.html: __todPal). */

html.ah {
  color-scheme: light;
  /* the main site's fonts: Neue Haas Grotesk where installed, else Helvetica Neue / Arial. The headings use the licensed web copy (see NOTICE.md). */
  --ah-font: 'Haas Grotesk', 'Neue Haas Grotesk Display Pro', 'Neue Haas Grotesk Text Pro', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --ah-head: 'Neue Haas Grotesk', 'Haas Grotesk', 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --ah-ink: #0d3358;          /* text on glass */
  --ah-ink-soft: #2c4a68;
  --ah-spn: #3d5f80;          /* small text on glass */
  --ah-blue: #19bff2;         /* the blue edge of the glass buttons */
  --ah-glow: 80, 200, 255;
  --ah-green: #63cf2e;
  --ah-green-glow: 130, 230, 80;
  --ah-grey: #aeb4bb;
  --ah-grey-glow: 215, 225, 235;
  /* glass fill of buttons and cards (top to bottom: light, pale blue, pale blue, light) */
  --ah-fill: linear-gradient(180deg, rgba(247, 251, 255, .96) 0%, rgba(220, 236, 248, .95) 46%, rgba(207, 228, 244, .95) 54%, rgba(230, 242, 251, .95) 100%);
  --ah-fill-green: linear-gradient(180deg, rgba(248, 253, 244, .96) 0%, rgba(222, 242, 210, .95) 46%, rgba(205, 235, 188, .95) 54%, rgba(228, 246, 218, .95) 100%);
  --ah-fill-grey: linear-gradient(180deg, rgba(251, 252, 253, .96) 0%, rgba(233, 236, 239, .95) 46%, rgba(218, 222, 226, .95) 54%, rgba(239, 241, 243, .95) 100%);
  /* the glass "thickness": light bends in at the edges */
  --ah-refract: inset 0 7px 12px -5px rgba(70, 105, 140, .42), inset 0 -10px 14px -6px rgba(70, 105, 140, .38), inset 10px 0 12px -9px rgba(70, 105, 140, .3), inset -10px 0 12px -9px rgba(70, 105, 140, .3);
  /* small pill buttons (the bio button of the main site): white on top, blue below */
  --ah-pill: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, #e4f3fc 49%, #cde9f9 50%, #e0f3fd 100%);
  --ah-pill-h: linear-gradient(180deg, #fff 0%, #d8f0fd 49%, #b4e3fb 50%, #cdf0ff 100%);
  --ah-pill-a: linear-gradient(180deg, #a9dcf6 0%, #7cc8ee 49%, #55b6e6 50%, #7fcdf0 100%);
  --ah-pill-sh: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(120, 205, 245, .45), 0 1px 3px rgba(20, 100, 160, .25);
  --ah-pill-sh-h: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(120, 205, 245, .6), 0 0 8px rgba(80, 200, 255, .6);
  --ah-pill-green: linear-gradient(180deg, #fbfef7 0%, #e3f5d4 49%, #c5ebaa 50%, #e1f6d2 100%);
  --ah-focus: #0b5fa5;
}
html.ah ::selection { background: rgba(80, 200, 255, .45); color: #06233f; }

/* ---------- The sky: the main site's day scene, with real clouds drifting ----------
   body::before is the sky (gradient and glows). The clouds are drawn on a canvas by assets/home-clouds.js (the technique of the main site's clouds,
   in 2D): about 12 soft, shaded clouds at different depths that drift left to right, different on every visit. The script adds the canvas and class
   ah-canvas on <html> once the first frame is drawn. Until then, and when the picture or canvas is not available, body::after (four flat cloud
   pictures sliding slowly) stays as the fallback; with the class it is switched off, so there are never two sets of clouds. */
html.ah { background: #2a7fc6; scroll-padding-top: 76px; }
html.ah body {
  background: transparent; color: var(--ah-ink); font-family: var(--ah-font);
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
}
html.ah body::before, html.ah body::after { content: ''; position: fixed; z-index: -1; pointer-events: none; }
html.ah body::before {
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 20% 10%, rgba(255, 255, 255, .75), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(120, 220, 170, .55), transparent 65%),
    radial-gradient(ellipse 70% 50% at 70% 0%, rgba(120, 190, 255, .6), transparent 70%),
    linear-gradient(160deg, #5db4ee 0%, #2a7fc6 45%, #1b5c9e 100%);
}
html.ah body::after {
  inset: 0 -12%;
  background:
    url('home-cloud.webp') 12% 78% / 460px auto no-repeat,
    url('home-cloud.webp') 86% 62% / 380px auto no-repeat,
    url('home-cloud.webp') 56% 14% / 320px auto no-repeat,
    url('home-cloud.webp') 4% 22% / 300px auto no-repeat;
  opacity: .8;
  animation: ah-drift 150s ease-in-out infinite alternate;
}
@keyframes ah-drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(5%, 0, 0); } }
html.ah canvas.ah-clouds { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s ease; }   /* above body::before (later in the page), below the content */
html.ah.ah-canvas canvas.ah-clouds { opacity: 1; }
html.ah.ah-canvas body::after { display: none; }

/* ---------- Keyboard focus, links ---------- */
html.ah :focus-visible { outline: 3px solid var(--ah-focus); outline-offset: 2px; }
html.ah a { color: #0b6bb3; }
html.ah a:hover { color: #084f84; }
html.ah li::marker { color: var(--ah-blue); }

/* ---------- Top bar: a strip of frosted glass, like the title bar of the main site's window ---------- */
html.ah .topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(190, 226, 255, .52) 45%, rgba(150, 205, 250, .5));
  border-bottom: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 0 rgba(10, 40, 80, .4), 0 8px 24px rgba(5, 30, 70, .3), inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
html.ah .brand, html.ah .brand:hover { color: #0a2038; }
html.ah .brand-name {
  font-family: var(--ah-head); color: #0a2038;
  text-shadow: 0 0 10px #fff, 0 0 4px #fff, 0 1px 0 rgba(255, 255, 255, .8);
}
html.ah .brand-mark.cap svg { stroke: #1673b8; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9)) drop-shadow(0 0 5px rgba(255, 255, 255, .9)); }
@media (max-width: 760px) { html.ah .brand-name { display: block; } }   /* the lesson pages hide the name here to make room for the LCD; this page has room */
@media (max-width: 400px) { html.ah .brand-name { font-size: 15px; } }

/* ---------- Pill buttons in the top bar (Ask a question, Login / Logged in / Admin) ---------- */
html.ah .acct-btn {
  height: 32px; padding: 0 14px; gap: 7px; border-radius: 99px; border: 1.5px solid #35a4dd;
  color: var(--ah-ink); font: 600 13px/1.2 var(--ah-font); letter-spacing: .02em; text-transform: lowercase;
  background: var(--ah-pill); box-shadow: var(--ah-pill-sh);
  transition: background .15s, border-color .15s, box-shadow .15s, filter .15s;
}
html.ah .acct-btn:hover { color: var(--ah-ink); border-color: #1f8fcf; background: var(--ah-pill-h); box-shadow: var(--ah-pill-sh-h); }
html.ah .acct-btn[aria-expanded="true"], html.ah .acct-btn:active {   /* pressed / box open: the deeper blue */
  color: #06233f; border-color: #1778b3; background: var(--ah-pill-a); box-shadow: inset 0 2px 4px rgba(0, 60, 110, .35);
}
html.ah .acct-btn.in, html.ah .acct-btn.in:hover, html.ah .acct-btn.in[aria-expanded="true"], html.ah .acct-btn.in:active {   /* logged in (or Admin): the green of the academy button on the main site */
  color: #14400a; border-color: var(--ah-green); background: var(--ah-pill-green);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(120, 210, 70, .5), 0 0 10px rgba(var(--ah-green-glow), .55), 0 1px 3px rgba(20, 100, 40, .25);
}
html.ah .acct-btn.in:hover { filter: brightness(1.05) saturate(1.1); }
html.ah .acct-btn.in[aria-expanded="true"], html.ah .acct-btn.in:active { filter: brightness(.97); box-shadow: inset 0 2px 4px rgba(10, 80, 20, .35), 0 0 10px rgba(var(--ah-green-glow), .55); }
html.ah .acct-btn svg { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8)); }

/* ---------- The boxes under those buttons (login, ask a question): the glass card of the main site's pop-ups ---------- */
html.ah .acct-box {
  padding: 18px 20px 16px; border-radius: 22px; color: var(--ah-ink); font-size: 14px;
  border: 2.5px solid var(--ah-blue);
  background: linear-gradient(180deg, rgba(247, 251, 255, .98) 0%, rgba(220, 236, 248, .97) 46%, rgba(207, 228, 244, .97) 54%, rgba(230, 242, 251, .97) 100%);
  box-shadow: var(--ah-refract), 0 0 22px rgba(var(--ah-glow), .55), 0 10px 26px rgba(10, 40, 90, .45);
  isolation: isolate; overflow: hidden;
}
html.ah .acct-box::before {   /* the white gloss strip */
  content: ''; position: absolute; z-index: -1; pointer-events: none; left: 5%; right: 5%; top: 5px; height: 46px; border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .45)); filter: blur(1.4px);
}
html.ah .acct-box[hidden] { display: none; }
html.ah .ask-form label, html.ah .acct-form label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #2b5478; }
html.ah .acct-form input, html.ah .ask-form textarea {
  color: #0a2038; background: rgba(255, 255, 255, .9); border: 1.5px solid #8fb6d4; border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(40, 80, 120, .18);
}
html.ah .acct-form input { font: 600 16px var(--ah-font); letter-spacing: .12em; text-transform: uppercase; }
html.ah .ask-form textarea { font: 400 15px/1.45 var(--ah-font); }
html.ah .acct-form input::placeholder, html.ah .ask-form textarea::placeholder { color: #6e8196; letter-spacing: .04em; }
html.ah .acct-form input:focus, html.ah .ask-form textarea:focus {
  outline: none; border-color: var(--ah-blue); box-shadow: inset 0 2px 4px rgba(40, 80, 120, .18), 0 0 0 3px rgba(var(--ah-glow), .45);
}
html.ah .acct-note, html.ah .acct-msg, html.ah .acct-out p { color: var(--ah-spn); }
html.ah .acct-msg { color: var(--ah-ink); font-weight: 600; }
/* the buttons in the boxes: the big glossy blue button (Login, Send, Open the admin page) and a plainer one (Log out) */
html.ah .acct-go, html.ah .acct-logout {
  position: relative; height: 40px; padding: 0 22px; border-radius: 99px; text-transform: lowercase;
  font: 600 15px/1.2 var(--ah-font); letter-spacing: .01em; color: #0a2a48; overflow: hidden; isolation: isolate;
  border: 2px solid var(--ah-blue); background: var(--ah-fill);
  box-shadow: var(--ah-refract), 0 2px 6px rgba(20, 60, 110, .3);
  transition: box-shadow .2s, filter .2s, transform .2s cubic-bezier(.2, .8, .3, 1.2);
}
html.ah .acct-go::before {   /* gloss */
  content: ''; position: absolute; z-index: -1; pointer-events: none; left: 9%; right: 9%; top: 6%; height: 40%; border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .55)); filter: blur(1.2px);
}
html.ah .acct-go:hover, html.ah .acct-go:focus-visible {
  filter: brightness(1.08) saturate(1.15); transform: translateY(-1px);
  box-shadow: var(--ah-refract), inset 0 0 18px rgba(255, 255, 255, .55), 0 0 0 1px rgba(var(--ah-glow), .7), 0 0 18px rgba(var(--ah-glow), .9), 0 6px 12px rgba(20, 60, 110, .3);
}
html.ah .acct-go:active { transform: translateY(1px) scale(.99); filter: brightness(.96); box-shadow: var(--ah-refract), inset 0 3px 6px rgba(10, 50, 90, .35); }
html.ah .acct-go:disabled { opacity: .55; filter: grayscale(.4); cursor: default; transform: none; }
html.ah .acct-logout { background: var(--ah-pill); border: 1.5px solid #35a4dd; box-shadow: var(--ah-pill-sh); height: 34px; }
html.ah .acct-logout:hover { color: #0a2a48; background: var(--ah-pill-h); box-shadow: var(--ah-pill-sh-h); }
html.ah .acct-logout:active { background: var(--ah-pill-a); box-shadow: inset 0 2px 4px rgba(0, 60, 110, .35); }
/* the narrow, shouting capitals of the FL Studio look are not used here: normal lower case letters, like the buttons of the main site */
html.ah .acct-go .nar, html.ah .acct-logout .nar { width: auto; transform: none; text-transform: lowercase; letter-spacing: .01em; font-weight: 600; }

@media (max-width: 560px) {
  html.ah .acct-btn { min-width: 38px; height: 36px; padding: 0 11px; justify-content: center; }
  html.ah .acct-label {   /* icon only on a phone, but the name stays for screen readers (daw.css hides it completely) */
    display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  html.ah .acct-box { top: 68px; }
}

/* ---------- The page: one big sheet of glass, like the window of the main site ---------- */
html.ah .landing {
  position: relative; z-index: 1; width: calc(100% - 32px); max-width: 980px; margin: 30px auto 110px; padding: 38px 38px 42px; gap: 30px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(190, 226, 255, .42) 22%, rgba(150, 205, 250, .38));
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: 0 0 0 1px rgba(10, 40, 80, .55), 0 24px 60px rgba(5, 30, 70, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
html.ah .hero-text { gap: 8px; }
html.ah .kicker { font-family: var(--ah-font); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--ah-ink); }
html.ah h1 {
  font-family: var(--ah-head); font-weight: 700; text-transform: lowercase; color: var(--ah-ink); letter-spacing: -.015em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 0 12px rgba(255, 255, 255, .6);
}
html.ah .lead { color: var(--ah-ink); }
html.ah .landing h2 { font-family: var(--ah-head); font-weight: 700; text-transform: lowercase; color: var(--ah-ink); }
@media (max-width: 560px) {
  html.ah .landing { width: calc(100% - 20px); margin: 14px auto 100px; padding: 24px 16px 26px; gap: 24px; border-radius: 12px; }
}

/* ---------- Course cards and the Continue card: glossy glass buttons ---------- */
html.ah .course-card, html.ah .continue-card {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ah-ink);
  border: 3px solid var(--ah-blue); border-radius: 30px; padding: 24px 28px;
  background: var(--ah-fill);
  box-shadow: var(--ah-refract), 0 3px 8px rgba(20, 60, 110, .35);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1.2), box-shadow .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
html.ah .course-card:hover, html.ah .continue-card:hover { color: var(--ah-ink); background: var(--ah-fill); }
html.ah .course-card::before, html.ah .continue-card::before {   /* the white gloss strip along the top */
  content: ''; position: absolute; z-index: -1; pointer-events: none; left: 4%; right: 4%; top: 6px; height: min(36%, 58px); border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .5)); filter: blur(1.4px);
}
html.ah .course-card > *, html.ah .continue-card > * { position: relative; z-index: 1; }   /* the text stays above the shine */
html.ah .course-card::after, html.ah .continue-card::after {   /* the shine that sweeps over on hover */
  content: ''; position: absolute; z-index: 0; pointer-events: none; top: -20%; bottom: -20%; left: -45%; width: 28%; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-22deg);
}
html.ah .course-card:hover::after, html.ah .continue-card:hover::after,
html.ah .course-card:focus-visible::after, html.ah .continue-card:focus-visible::after { animation: ah-shine .9s ease-out; }
@keyframes ah-shine { from { left: -45%; opacity: 1; } to { left: 125%; opacity: 1; } }
html.ah .course-card:hover, html.ah .course-card:focus-visible, html.ah .continue-card:hover, html.ah .continue-card:focus-visible {
  filter: brightness(1.05) saturate(1.1); transform: translateY(-3px) scale(1.012);
  box-shadow: var(--ah-refract), inset 0 0 22px rgba(255, 255, 255, .55), 0 0 0 1px rgba(var(--ah-glow), .7), 0 0 26px rgba(var(--ah-glow), .9), 0 10px 18px rgba(20, 60, 110, .35);
}
html.ah .course-card:focus-visible, html.ah .continue-card:focus-visible { outline: 3px solid var(--ah-focus); outline-offset: 3px; }
html.ah .course-card:active, html.ah .continue-card:active { transform: translateY(1px) scale(.995); filter: brightness(.96); box-shadow: var(--ah-refract), inset 0 3px 6px rgba(10, 50, 90, .35); }

/* the Continue card is the main button of the page: it glows by itself */
html.ah .continue-card { animation: ah-glow 3.4s ease-in-out infinite; }
html.ah .continue-card:hover, html.ah .continue-card:focus-visible { animation: none; }
@keyframes ah-glow {
  0%, 100% { box-shadow: var(--ah-refract), 0 0 14px rgba(var(--ah-glow), .5), 0 3px 8px rgba(20, 60, 110, .35); }
  50% { box-shadow: var(--ah-refract), 0 0 30px rgba(var(--ah-glow), .95), 0 3px 8px rgba(20, 60, 110, .35); }
}
/* nothing to continue: a calm silver card */
html.ah .continue-card.wait { animation: none; border-color: var(--ah-grey); background: var(--ah-fill-grey); color: var(--ah-ink); box-shadow: var(--ah-refract), 0 3px 8px rgba(20, 60, 110, .3); }
html.ah .continue-card.wait:hover { background: var(--ah-fill-grey); }
html.ah .continue-card.wait .kicker { color: var(--ah-ink-soft); opacity: 1; }
html.ah .continue-card.wait p { color: var(--ah-spn); }
html.ah .continue-card.wait:hover { transform: none; filter: none; box-shadow: var(--ah-refract), 0 3px 8px rgba(20, 60, 110, .3); }

html.ah .course-card h2, html.ah .continue-card h2 { font-family: var(--ah-head); font-weight: 700; font-size: 25px; line-height: 1.15; color: var(--ah-ink); margin: 5px 0; }
html.ah .course-card p, html.ah .continue-card p { font-size: 15px; line-height: 1.5; color: var(--ah-spn); margin: 0; }
html.ah .continue-card .kicker { color: var(--ah-ink-soft); opacity: 1; }

/* the "OPEN →" label is a small pill, like the bio button on the main site */
html.ah .course-card .go, html.ah .continue-card .go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 20px; border-radius: 99px;
  font: 600 14px/1.2 var(--ah-font); letter-spacing: .02em; text-transform: lowercase; white-space: nowrap; color: var(--ah-ink);
  border: 1.5px solid #35a4dd; background: var(--ah-pill); box-shadow: var(--ah-pill-sh);
}
html.ah .continue-card .go { color: #06233f; border-color: #1778b3; background: var(--ah-pill-a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 4px rgba(20, 110, 170, .35), 0 1px 3px rgba(20, 100, 160, .3); }
html.ah .course-card:hover .go { border-color: #1f8fcf; background: var(--ah-pill-h); box-shadow: var(--ah-pill-sh-h); }
html.ah .continue-card.wait .go { display: none; }
@media (max-width: 900px) { html.ah .course-card .go { justify-self: start; } }
@media (max-width: 560px) {
  html.ah .course-card, html.ah .continue-card { padding: 20px 20px 22px; border-radius: 26px; gap: 14px; }
  html.ah .course-card h2, html.ah .continue-card h2 { font-size: 22px; }
  html.ah .continue-card .go { justify-self: start; }
}

/* ---------- Courses a student may not open: the card is hidden (assets/continue.js), a calm note takes its place when none are left ---------- */
html.ah .course-card[hidden], html.ah #no-courses[hidden] { display: none; }
html.ah #no-courses {
  position: relative; isolation: isolate; overflow: hidden; margin: 0; padding: 24px 28px; border-radius: 30px;
  border: 3px solid var(--ah-grey); background: var(--ah-fill-grey); color: var(--ah-ink-soft);
  font-size: 16px; line-height: 1.5; font-weight: 600;
  box-shadow: var(--ah-refract), 0 3px 8px rgba(20, 60, 110, .3);
}
html.ah #no-courses::before {   /* the white gloss strip, like the cards */
  content: ''; position: absolute; z-index: -1; pointer-events: none; left: 4%; right: 4%; top: 6px; height: min(36%, 44px); border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .5)); filter: blur(1.4px);
}
@media (max-width: 560px) { html.ah #no-courses { padding: 20px; border-radius: 26px; font-size: 15px; } }

/* ---------- The "not open yet" page (assets/locked.html, shown by api/gate.php for a lesson that is not open for the student) ---------- */
html.ah .locked-page { max-width: 720px; }
html.ah .locked-page h1 { text-wrap: balance; }
html.ah .locked-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 26px 28px 28px; border-radius: 30px; color: var(--ah-ink);
  border: 3px solid var(--ah-grey); background: var(--ah-fill-grey);
  box-shadow: var(--ah-refract), 0 3px 8px rgba(20, 60, 110, .3);
}
html.ah .locked-card::before {   /* the white gloss strip */
  content: ''; position: absolute; z-index: -1; pointer-events: none; left: 4%; right: 4%; top: 6px; height: 44px; border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .5)); filter: blur(1.4px);
}
html.ah .locked-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ah-spn); }
html.ah .locked-back {   /* a white glossy pill with the blue edge, like the "open" label of the cards */
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 22px; border-radius: 99px; text-decoration: none;
  font: 600 15px/1.2 var(--ah-font); letter-spacing: .01em; text-transform: lowercase; color: var(--ah-ink);
  border: 1.5px solid #35a4dd; background: var(--ah-pill); box-shadow: var(--ah-pill-sh);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
html.ah .locked-back:hover { color: var(--ah-ink); border-color: #1f8fcf; background: var(--ah-pill-h); box-shadow: var(--ah-pill-sh-h); }
html.ah .locked-back:active { background: var(--ah-pill-a); border-color: #1778b3; box-shadow: inset 0 2px 4px rgba(0, 60, 110, .35); }
@media (max-width: 560px) { html.ah .locked-card { padding: 22px 20px 24px; border-radius: 26px; } }

/* ---------- The floating Edit text / Admin bar: a small glass window ---------- */
html.ah .ec-bar {
  gap: 8px; padding: 8px 10px; border-radius: 22px; color: var(--ah-ink-soft); width: max-content;
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(205, 232, 252, .8) 40%, rgba(170, 215, 250, .78));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 1px rgba(10, 40, 80, .55), 0 12px 32px rgba(5, 30, 70, .45), inset 0 1px 0 rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
html.ah .ec-bar button, html.ah .ec-admin {
  height: 34px; padding: 0 18px; border-radius: 99px; border: 1.5px solid #35a4dd; color: var(--ah-ink);
  font: 600 14px/1.2 var(--ah-font); letter-spacing: .01em; text-transform: lowercase;
  background: var(--ah-pill); box-shadow: var(--ah-pill-sh);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
html.ah .ec-bar button:hover { color: var(--ah-ink); border-color: #1f8fcf; background: var(--ah-pill-h); box-shadow: var(--ah-pill-sh-h); }
html.ah .ec-bar button:active { background: var(--ah-pill-a); border-color: #1778b3; box-shadow: inset 0 2px 4px rgba(0, 60, 110, .35); }
html.ah .ec-toggle[aria-pressed="true"], html.ah .ec-toggle[aria-pressed="true"]:hover {   /* edit mode is on: the deeper blue */
  color: #06233f; border-color: #1778b3; background: var(--ah-pill-a); box-shadow: inset 0 2px 4px rgba(0, 60, 110, .35), 0 0 10px rgba(var(--ah-glow), .6);
}
html.ah .ec-admin, html.ah .ec-admin:hover {   /* Admin: green, like the academy button on the main site */
  color: #14400a; border-color: var(--ah-green); background: var(--ah-pill-green);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(120, 210, 70, .5), 0 0 10px rgba(var(--ah-green-glow), .5), 0 1px 3px rgba(20, 100, 40, .25);
}
html.ah .ec-admin:hover { filter: brightness(1.05) saturate(1.1); }
html.ah .ec-status { color: var(--ah-ink-soft); }
html.ah .ec-status.bad { color: #9b1c1c; font-weight: 600; }
/* edit mode: blue outlines instead of orange */
html.ah .ec-editing [contenteditable="true"] { outline: 1px dashed rgba(23, 120, 179, .7); }
html.ah .ec-editing [contenteditable="true"]:hover { outline-color: var(--ah-blue); background: rgba(255, 255, 255, .35); }
html.ah .ec-editing [contenteditable="true"]:focus { outline: 2px solid var(--ah-blue); background: rgba(255, 255, 255, .55); }
html.ah .ec-editing [data-edited] { outline-color: rgba(60, 160, 30, .8); }

/* ---------- The backdrop that fades in behind the page while a course is hovered (assets/landing-bg.js) ----------
   Still the blurred picture of the program the course is about, now seen through sky-blue glass. */
html.ah .cbg::after { background: radial-gradient(ellipse at 50% 30%, rgba(150, 210, 250, .62), rgba(34, 108, 180, .84)); }
html.ah .cbg-layer { filter: blur(5px) saturate(.9); }

/* ---------- Motion: nothing moves for people who asked for less ---------- */
@media (prefers-reduced-motion: reduce) {
  html.ah body::after { animation: none; }
  html.ah canvas.ah-clouds { transition: none; }
  html.ah .course-card, html.ah .continue-card, html.ah .acct-go, html.ah .acct-btn, html.ah .ec-bar button, html.ah .locked-back { transition: none; }
  html.ah .continue-card { animation: none; box-shadow: var(--ah-refract), 0 0 22px rgba(var(--ah-glow), .75), 0 3px 8px rgba(20, 60, 110, .35); }
  html.ah .course-card:hover, html.ah .course-card:focus-visible, html.ah .continue-card:hover, html.ah .continue-card:focus-visible { transform: none; }
  html.ah .course-card:hover::after, html.ah .continue-card:hover::after, html.ah .course-card:focus-visible::after, html.ah .continue-card:focus-visible::after { animation: none; }
  html.ah .acct-go:hover, html.ah .acct-go:focus-visible { transform: none; }
}
@media (hover: none) { html.ah .course-card:hover, html.ah .continue-card:hover { transform: none; } }
