/* ANOVA Educação — "Laboratório". No framework, no build step.
   Two complete themes. Palette rule that governs everything below:
   the gold (#e8b53f) reads as TEXT only on dark grounds (9.7:1); on light
   it appears exclusively as a FILL behind dark ink (8.7:1), and gold-toned
   text becomes bronze (--accent-text). Never put gold text on white. */
:root {
  --ink: #12212e;
  --ink-2: #45566a;
  --ink-3: #5f7185;
  --line: #e5e1d8;
  --line-2: #f0ece3;
  --bg: #ffffff;
  --bg-2: #faf7f1;      /* warm paper, keyed to the gold */
  --surface: #ffffff;
  --gold: #e8b53f;
  --gold-ink: #12212e;  /* ink that sits on gold fills */
  --accent: #123049;    /* structural accent: links, buttons, focus */
  --accent-text: #8a5f0f;
  --accent-soft: #f4ede0;
  --accent-line: #e0d4bb;
  --ok: #1c6b4a;
  --ok-soft: #e6f4ee;
  --warn: #8a5a12;
  --warn-soft: #fbf1e0;
  --err: #97321f;
  --err-soft: #fbeae6;
  --shadow: 0 1px 2px rgba(18,33,46,.05), 0 10px 30px rgba(18,33,46,.07);
  --radius: 10px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Light is the default for everyone, whatever the operating system says:
   dark applies only when the visitor asks for it with the header switch
   (which sets data-theme="dark"). No prefers-color-scheme rule by design. */
:root[data-theme="dark"] {
  --ink: #e7edf5;
  --ink-2: #a8bace;
  --ink-3: #8098b2;
  --line: #1e2c3c;
  --line-2: #182533;
  --bg: #0d1520;
  --bg-2: #111b27;
  --surface: #131e2b;
  --gold-ink: #131c27;
  --accent: #e8b53f;
  --accent-text: #e8b53f;
  --accent-soft: #1a2634;
  --accent-line: #33455a;
  --ok: #6fd3a4;
  --ok-soft: #12291f;
  --warn: #e3b25f;
  --warn-soft: #2a2114;
  --err: #f0907a;
  --err-soft: #2d1713;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 32px rgba(0,0,0,.45);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #12212e;
  --ink-2: #45566a;
  --ink-3: #5f7185;
  --line: #e5e1d8;
  --line-2: #f0ece3;
  --bg: #ffffff;
  --bg-2: #faf7f1;
  --surface: #ffffff;
  --gold-ink: #12212e;
  --accent: #123049;
  --accent-text: #8a5f0f;
  --accent-soft: #f4ede0;
  --accent-line: #e0d4bb;
  --ok: #1c6b4a;
  --ok-soft: #e6f4ee;
  --warn: #8a5a12;
  --warn-soft: #fbf1e0;
  --err: #97321f;
  --err-soft: #fbeae6;
  --shadow: 0 1px 2px rgba(18,33,46,.05), 0 10px 30px rgba(18,33,46,.07);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; }
h3, h4 { font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
.kicker {
  display: block; font: 600 .72rem/1 var(--mono); letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: .9rem;
}
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
small { font-size: .85rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line-2); }

/* header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
/* theme switch */
.theme-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center;
  cursor: pointer; flex: none; padding: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-line); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
/* Ordered explicitly so the theme switch stays reachable on phones instead of
   being hidden inside the collapsed menu. */
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 62px; flex-wrap: wrap;
}
.site-header .brand { order: 1; }
.site-header .nav { order: 2; }
.site-header .theme-toggle { order: 3; }
.site-header .nav-toggle { order: 4; }
.brand { color: var(--ink); display: flex; align-items: center; gap: .6rem; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: none; display: flex; }
.brand-mark .logo { flex: none; }
.brand-words { display: grid; gap: 1px; line-height: 1; }
.brand-words .w1 { font: 700 1.15rem/1 var(--font); letter-spacing: .02em; color: var(--ink); }
.brand-words .w2 { font: 400 .66rem/1 var(--font); letter-spacing: .28em;
                   text-transform: uppercase; color: var(--accent-text); }

/* One capelo per background: the dark-ground file appears only in dark theme.
   An <img> can't inherit currentColor, so the site swaps the whole file.
   Selectors are scoped to .brand-mark/.footer-brand so specificity ties with
   any local `.logo` rule and the theme override wins by source order. */
.brand-mark .logo-light, .footer-brand .logo-light { display: block; }
.brand-mark .logo-dark, .footer-brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand-mark .logo-light,
:root[data-theme="dark"] .footer-brand .logo-light { display: none; }
:root[data-theme="dark"] .brand-mark .logo-dark,
:root[data-theme="dark"] .footer-brand .logo-dark { display: block; }
.nav { display: flex; gap: 1.25rem; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink-2); font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }
.nav a.btn { color: var(--gold-ink); }
.nav a.btn:hover { color: var(--gold-ink); }
.nav-form { display: inline; }

/* hamburger: hidden on desktop */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .55rem;
              cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink);
                   margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  /* no sticky bar on mobile */
  .site-header { position: static; }
  .site-header .wrap { gap: .6rem; }
  .nav-toggle { display: block; margin-left: 0; }
  .site-header .theme-toggle { margin-left: auto; }
  .site-header .nav { order: 5; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch;
         gap: 0; padding: .25rem 0 .9rem; }
  .nav.open { display: flex; }
  .nav a, .nav .nav-form { padding: .55rem .25rem; border-top: 1px solid var(--line-2); }
  .nav a.btn { text-align: center; margin-top: .5rem; border-top: 0; }
}

/* buttons ----------------------------------------------------------------- */
/* Primary action is always the gold plate with dark ink: identical in both
   themes, 8.7:1 on light and 9.1:1 on dark. */
.btn {
  display: inline-block; padding: .62rem 1.15rem; border-radius: var(--radius);
  border: 1px solid var(--gold); background: var(--gold); color: var(--gold-ink);
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  text-align: center; transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.secondary {
  background: transparent; color: var(--accent); border-color: var(--accent-line);
}
.btn.secondary:hover { background: var(--accent-soft); filter: none; }
.btn.quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.quiet:hover { background: var(--bg-2); filter: none; }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.block { display: block; width: 100%; }
.btn[disabled], .btn.disabled {
  /* solid gray instead of translucent blue: keeps AA contrast when disabled */
  background: var(--line-2); border-color: var(--line); color: var(--ink-2);
  pointer-events: none;
}

/* cards ------------------------------------------------------------------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.4rem;
}
.cards { display: grid; gap: 1rem; }
.course-card {
  display: block; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.course-card:hover {
  border-color: var(--accent-line); box-shadow: var(--shadow);
  transform: translateY(-2px); text-decoration: none;
}
@media (prefers-reduced-motion: reduce) { .course-card:hover { transform: none; } }
.course-card .price { color: var(--accent-text); }
.course-card h3 { margin-bottom: .3rem; }
.course-card .price { font-weight: 650; white-space: nowrap; }
.card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }

/* course facts ------------------------------------------------------------- */
.meta {
  list-style: none; margin: .95rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .3rem .75rem; font-size: .84rem; color: var(--ink-3);
}
.meta li { display: flex; align-items: center; gap: .75rem; }
.meta li + li::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: .6; flex: none;
}
.card-status { margin-top: .85rem; }

/* badges ------------------------------------------------------------------ */
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.badge {
  font-size: .78rem; font-weight: 550; padding: .2rem .55rem;
  border-radius: 999px; background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.badge.r        { background: var(--accent-soft); color: var(--accent-text);
                  border-color: var(--accent-line); }
.badge.python   { background: var(--bg-2); color: var(--ink-2); border-color: var(--line); }
.badge.spss     { background: var(--bg-2); color: var(--ink-2); border-color: var(--line); }
.badge.articles { background: var(--warn-soft); color: var(--warn); border-color: #f0e0c4; }
.badge.cert     { background: var(--ok-soft); color: var(--ok); border-color: #cfe8dd; }
.badge.free     { background: var(--ok-soft); color: var(--ok); border-color: #cfe8dd; }
.badge.draft    { background: var(--err-soft); color: var(--err); border-color: #f2d3cc; }

/* status pills */
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: .15rem .6rem;
        border-radius: 999px; }
.pill.active { background: var(--ok-soft); color: var(--ok); }
.pill.grace  { background: var(--warn-soft); color: var(--warn); }
.pill.expired, .pill.cancelled, .pill.failed { background: var(--err-soft); color: var(--err); }
.pill.pending { background: var(--bg-2); color: var(--ink-2); }
.pill.paid { background: var(--ok-soft); color: var(--ok); }
.pill.refunded { background: var(--warn-soft); color: var(--warn); }

/* hero -------------------------------------------------------------------- */
/* The item characteristic curve behind the hero is drawn from the two
   parameter logistic model in main.js: the subject of the site as its
   own ornament. */
.hero-band { position: relative; overflow: hidden; background: var(--bg-2);
             border-bottom: 1px solid var(--line); }
.hero-curve { position: absolute; inset: auto 0 0 0; width: 100%; height: 132px;
              opacity: .42; pointer-events: none; }
/* padding-block only: a `padding` shorthand here would beat .wrap's
   horizontal padding (same specificity, later in the file) and the hero
   would run to the screen edges. */
.hero { position: relative; padding-block: 4rem 3.5rem; display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center; }
}
.hero h1 { max-width: 24ch; margin-bottom: .5em; }
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 50ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-facts { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.75rem;
              font-size: .85rem; color: var(--ink-2); }
.hero-facts b { display: block; font-size: 1.2rem; color: var(--ink);
                font-variant-numeric: tabular-nums; font-weight: 650; }

/* plan panel in the hero: the offer is legible in the first screen */
.offer { background: var(--surface); border: 1px solid var(--line);
         border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow); }
.offer h2 { font-family: var(--font); font-size: 1rem; font-weight: 650;
            letter-spacing: 0; margin-bottom: .2rem; }
.offer .sub { font-size: .86rem; color: var(--ink-3); margin-bottom: 1rem; }
.offer-row { display: flex; justify-content: space-between; align-items: baseline;
             gap: 1rem; padding: .72rem 0; border-top: 1px solid var(--line-2); }
.offer-row:first-of-type { border-top: 0; }
.offer-row .t { font-size: .93rem; }
.offer-row .t small { display: block; color: var(--ink-3); font-size: .78rem; }
.offer-row .v { font-weight: 650; white-space: nowrap;
                font-variant-numeric: tabular-nums; }
.offer-row.best .v { color: var(--accent-text); }
.offer .btn { margin-top: 1.1rem; }
.tag-best { display: inline-block; background: var(--gold); color: var(--gold-ink);
            font: 600 .65rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
            padding: .28rem .45rem; border-radius: 4px; margin-left: .4rem;
            vertical-align: .1em; }

/* section headers ---------------------------------------------------------- */
.sec-head { display: grid; gap: .35rem; margin-bottom: 1.75rem; max-width: 60ch; }
.sec-head p { margin: 0; color: var(--ink-3); font-size: .96rem; }
.sec-head h2 { margin: 0; }
.sec-rule { display: flex; align-items: center; gap: .9rem; margin: 2.5rem 0 1.1rem; }
.sec-rule h3 { margin: 0; font-size: 1.05rem; white-space: nowrap; }
.sec-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* how it works ------------------------------------------------------------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border: 1px solid var(--line); border-radius: var(--radius);
        background: var(--surface); padding: 1.35rem; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
           color: var(--accent-text); display: grid; place-items: center;
           font: 700 .82rem/1 var(--mono); margin-bottom: .85rem; }
.step h3 { font-size: 1rem; margin-bottom: .3rem; }
.step p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* curriculum -------------------------------------------------------------- */
.module { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem;
          overflow: hidden; }
.module > h4 {
  margin: 0; padding: .85rem 1.1rem; background: var(--bg-2);
  border-bottom: 1px solid var(--line); font-size: .98rem;
}
.lesson {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1.1rem; border-top: 1px solid var(--line-2); font-size: .95rem;
}
.lesson:first-child { border-top: 0; }
.lesson .t { flex: 1; min-width: 0; }
.lesson .dur { color: var(--ink-3); font-size: .85rem; font-variant-numeric: tabular-nums; }
.lesson.locked { color: var(--ink-3); }
.lesson.current { background: var(--accent-soft); }
.lesson a { color: inherit; }
.mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  font-size: .7rem; color: var(--ink-3);
}
.mark.done { background: var(--ok-soft); border-color: #cfe8dd; color: var(--ok); }
.mark.lock { border-style: solid; color: var(--ink-3); }
.mark.play { border-color: var(--accent); color: var(--accent); }

/* video ------------------------------------------------------------------- */
.video-frame {
  position: relative; padding-top: 56.25%; background: #0d1117;
  border-radius: var(--radius); overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.locked-note {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; background: var(--bg-2);
}

/* layout helpers ---------------------------------------------------------- */
.split { display: grid; gap: 2.5rem; }
.player-layout { display: grid; gap: 1.5rem; }
.sidebar { position: sticky; top: 80px; align-self: start; }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.buybox .price { font-size: 2rem; font-weight: 680; letter-spacing: -.02em; }

/* progress ---------------------------------------------------------------- */
.bar { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px;
              transition: width .25s ease; }

/* FAQ --------------------------------------------------------------------- */
details.faq { border-bottom: 1px solid var(--line-2); padding: .95rem 0; }
details.faq summary { cursor: pointer; font-weight: 550; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; color: var(--ink-3); margin-right: .6rem;
                              font-weight: 400; }
details.faq[open] summary::before { content: "\2212"; }
details.faq p { margin: .7rem 0 0; color: var(--ink-2); }

/* forms ------------------------------------------------------------------- */
label { display: block; font-size: .88rem; font-weight: 550; margin-bottom: .3rem;
        color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=file], select, textarea {
  width: 100%; padding: .6rem .75rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-soft); border-color: var(--accent);
}
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 1rem; }
.inline { display: flex; gap: .5rem; align-items: center; }
.inline label { margin: 0; font-weight: 400; }
.checkbox { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.checkbox input { width: auto; }
.checkbox label { margin: 0; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
           margin: 0 0 1rem; }
legend { font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: 0 .4rem; }

/* flash ------------------------------------------------------------------- */
.flash { padding: .8rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem;
         font-size: .93rem; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--err-soft); color: var(--err); }

/* tables ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line-2);
         vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3);
     font-weight: 600; white-space: nowrap; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* instructor -------------------------------------------------------------- */
.instructor { display: grid; gap: 1.5rem; align-items: start; }
.instructor .photo {
  width: 128px; height: 128px; border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--line); object-fit: cover;
  display: grid; place-items: center; color: var(--ink-3); font-size: .8rem; text-align: center;
}
.creds { list-style: none; padding: 0; margin: .5rem 0 0; }
.creds li { padding-left: 1rem; position: relative; color: var(--ink-2); margin-bottom: .3rem; }
.creds li::before { content: ""; position: absolute; left: 0; top: .7em;
                    width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* plans ------------------------------------------------------------------- */
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
        background: var(--surface); }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.plan .amount { font-size: 2rem; font-weight: 680; letter-spacing: -.02em; }

/* scroll to top ------------------------------------------------------------ */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--gold); color: var(--gold-ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}
.to-top:hover { filter: brightness(1.06); }
.to-top[hidden] { display: none; }

/* featured playlists ------------------------------------------------------- */
.featured-note { font-size: .9rem; color: var(--ink-2); margin: 0 0 .75rem; }
.cards.featured { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards.featured { grid-template-columns: repeat(2, 1fr); } }
.cards.featured .course-card h3 { font-size: 1.2rem; }

/* playlist sidebar --------------------------------------------------------- */
.playlist-list { max-height: 460px; overflow-y: auto; }
.playlist-list .lesson { text-decoration: none; color: inherit; }
.playlist-list .lesson:hover { background: var(--bg-2); text-decoration: none; }
.playlist-list .lesson.current { background: var(--accent-soft); font-weight: 600; }
.playlist-list .lesson .t { font-size: .9rem; line-height: 1.4; }
@media (max-width: 949px) { .playlist-list { max-height: none; } }

/* video cards (free playlist entries on the home page) --------------------- */
.video-card { display: block; color: inherit; }
.video-card:hover { text-decoration: none; }
.video-card .thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); margin-bottom: .75rem;
  transition: border-color .15s ease;
}
.video-card:hover .thumb { border-color: var(--gold); }
.video-card h4 { font-size: .98rem; margin: 0 0 .25rem; }
.video-card p { margin: 0; font-size: .85rem; color: var(--ink-3); }

/* lesson description in curriculum ---------------------------------------- */
.lesson .t small { display: block; color: var(--ink-3); font-size: .84rem;
                   line-height: 1.45; margin-top: .1rem; }

/* footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 0;
               font-size: .9rem; color: var(--ink-3); background: var(--bg-2); }
.footer-brand { display: flex; align-items: center; gap: .55rem; color: var(--ink);
                margin-bottom: 1.5rem; }
.site-footer a { color: var(--ink-2); }
.footer-cols { display: grid; gap: 1.5rem; margin-bottom: 1.75rem; }
.footer-cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
                  color: var(--ink-3); margin-bottom: .6rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: .35rem; }

/* admin ------------------------------------------------------------------- */
.admin-nav { background: #12212e; }
.admin-nav .wrap { display: flex; gap: 1.1rem; flex-wrap: wrap; padding-top: .6rem;
                   padding-bottom: .6rem; }
.admin-nav a { color: #b9c3d1; font-size: .9rem; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; text-decoration: none; }
.stat-grid { display: grid; gap: 1rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.stat .n { font-size: 1.8rem; font-weight: 680; letter-spacing: -.02em; }
.stat .l { font-size: .82rem; color: var(--ink-3); text-transform: uppercase;
           letter-spacing: .04em; }
.admin-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
             margin-bottom: .75rem; background: var(--bg); }
.admin-row.nested { background: var(--bg-2); }
.grid-2 { display: grid; gap: 1rem; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* responsive -------------------------------------------------------------- */
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .instructor { grid-template-columns: 128px 1fr; }
}
@media (min-width: 950px) {
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 340px; }
  .player-layout { grid-template-columns: 1fr 320px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 949px) {
  .sidebar { position: static; }
}
@media print {
  .site-header, .site-footer, .nav, .btn { display: none !important; }
}
