/* Mightypreneur members area. Built for readers of every age: big type, big targets, clear contrast.
   Look (Rocco 2026-09-30): warm cream page, left sidebar menu with a black pill for the page you are on, white rounded
   cards with course pictures, orange accents. Brand: ink #0C1116, flame #FF7A3D -> #E0561C with near-black text on
   buttons, Plus Jakarta Sans (the logo font). */
:root {
  color-scheme: light;
  --bg: #F8F4EE;
  --surface: #FFFFFF;
  --cream-2: #F1EBE1;
  --ink: #0C1116;
  --ink-2: #1F262F;
  --muted: #5A6270;
  --line: #ECE4D8;
  --line-2: #DDD3C4;
  --field: #C9BFB0;
  --flame: #FF7A3D;
  --flame-lo: #E0561C;
  --flame-ink: #150A03;
  --link: #B4410F;
  --link-dark: #8F330B;
  --soft: #FFF1E8;
  --soft-line: #F6CDB5;
  --locked: #667080;
  --ok: #1D7A4F;
  --ok-soft: #E6F4EC;
  --warn: #9A6212;
  --warn-soft: #FFF4E0;
  --focus: #1A5FB4;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(70, 45, 20, .04), 0 10px 28px -20px rgba(70, 45, 20, .28);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: 2.2rem;
  --maxw: 120rem;   /* the page fills the screen up to this, then stays centered (Rocco 2026-09-30: "full screen / more centered") */
}

* { box-sizing: border-box; }
/* the page never scrolls sideways (Rocco 2026-09-30): long emails and links wrap, and anything too wide is cut off, not scrollable */
html { font-size: 125%; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; overflow-wrap: break-word; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 700; margin: 0 0 .6rem; }
h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; margin: 0 0 .5rem; }
h3 { font-size: 1.05rem; line-height: 1.35; font-weight: 700; margin: 0 0 .4rem; }
p { margin: 0 0 .9rem; }
b, strong { font-weight: 700; }
.lead { font-size: 1.05rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .95rem; margin-top: 1.2rem; }
code { font-size: .85em; background: var(--soft); padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.vh { left: -10000px; }   /* a table ignores width: 1px, so the screen-reader table (Your Commissions) sits off to the left instead of widening the page */
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.ico { width: 1.3rem; height: 1.3rem; flex: none; }

/* ───── app shell: sidebar left (wide screens), page right ───── */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: none; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar, .main { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.8rem var(--pad) .5rem; }
.main { flex: 1; padding: .8rem var(--pad) 2.5rem; }
footer.site { width: calc(100% - 2 * var(--pad)); max-width: calc(var(--maxw) - 2 * var(--pad)); margin: 0 auto; padding: 1.4rem 0 2.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (min-width: 900px) {
  .app { grid-template-columns: 13.5rem minmax(0, 1fr); }
  .sidebar { display: block; border-right: 1px solid var(--line); }
  .side-inner { display: flex; flex-direction: column; min-height: 100vh; padding: 1.7rem .9rem 1.3rem; }
  .app .mtop, .app .mnav { display: none; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  :root { --pad: 1.5rem; }
  .sidebar .logo { height: 1.45rem; }
  .sidenav a, .logout { padding: .75rem .85rem; gap: .7rem; }
}
@media (min-width: 1280px) {
  .app { grid-template-columns: 15rem minmax(0, 1fr); }
  .side-inner { padding-left: 1.1rem; padding-right: 1.1rem; }
}

.sidebar .brand { display: block; padding: .2rem .7rem 1.7rem; }
.sidebar .logo { display: block; height: 1.65rem; width: auto; max-width: 100%; }
.sidenav { display: flex; flex-direction: column; gap: .4rem; }
.sidenav a, .logout {
  display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; border-radius: 14px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 1rem; line-height: 1.3;
}
.sidenav a:hover, .logout:hover { background: var(--cream-2); color: var(--ink); }
.sidenav a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
.sidenav .ico, .logout .ico { width: 1.35rem; height: 1.35rem; }
.side-foot { margin-top: auto; padding-top: 1.6rem; }
.logout { color: var(--muted); font-size: .95rem; }

/* top bar: page title or breadcrumb on the left, help + your account on the right */
.tb-left { min-width: 0; }
.tb-left h1 { margin: 0; }
.ptitle .hello { margin: 0; color: var(--muted); font-weight: 500; }
.tb-right { display: flex; align-items: center; gap: .7rem; flex: none; }
/* My Courses: the little orange beta box under the title (Rocco 2026-10-04); help + account stay level with the title */
.ptitle .beta { display: inline-block; max-width: 100%; margin: .75rem 0 0; padding: .55rem 1rem; border: 2px solid var(--flame);
  border-radius: 14px; background: #FFE8D9; font-size: .85rem; line-height: 1.5; font-weight: 500; }
.ptitle .beta b { font-weight: 800; }
.ptitle .beta a { font-weight: 700; }
.topbar:has(.beta) { align-items: flex-start; }
.topbar:has(.beta) .tb-right { margin-top: .3rem; }
.iconbtn {
  width: 3rem; height: 3rem; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow);
}
.iconbtn:hover { color: var(--ink); border-color: var(--line-2); }
.iconbtn .ico { width: 1.45rem; height: 1.45rem; }
.me {
  display: flex; align-items: center; gap: .6rem; padding: .3rem 1.1rem .3rem .3rem; border-radius: 999px; min-height: 3rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: var(--shadow);
}
.me:hover { color: var(--ink); border-color: var(--line-2); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: 1.1rem; font-weight: 500; line-height: 1.35; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumb { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.crumbs .sep { width: 1.1rem; height: 1.1rem; color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* phones + tablets: logo bar and three big tabs at the top */
.mtop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.mtop .logo { display: block; height: 28px; width: auto; }
.acct { display: flex; gap: 1.1rem; font-size: .95rem; }
.acct a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.mnav { position: relative; display: flex; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 .5rem; }
.mnav > a, .mtools > summary {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .3rem .5rem;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 4px solid transparent; white-space: nowrap;
}
.mnav > a:hover, .mtools > summary:hover { color: var(--ink); }
.mnav > a[aria-current="page"], .mtools.on > summary { color: var(--ink); border-bottom-color: var(--flame-lo); }
.mnav > a > .ico, .mtools > summary > .ico { width: 1.45rem; height: 1.45rem; }
/* the Tools dropdown (Rocco 2026-10-02: "navigation should have some clean drop down to pick the tools"): the last tab
   opens a small list under the menu bar, on the right; a tap anywhere else or Escape closes it (portal.js) */
.mtools { flex: 1 1 0; display: flex; margin: 0; }
.mtools > summary { flex: 1 1 auto; list-style: none; cursor: pointer; }
.mtools > summary::-webkit-details-marker { display: none; }
.mtools > summary > span { display: inline-flex; align-items: center; gap: .15rem; }
.mtools .caret { width: 1rem; height: 1rem; stroke-width: 2.4; transition: transform .2s ease; }
.mtools[open] > summary { color: var(--ink); }
.mtools[open] .caret { transform: rotate(180deg); }
/* a translated page (Google Translate puts "translated-ltr" on <html>; "Herramientas", Bug Watch #121/#122): tabs share the
   width with smaller words instead of pushing the menu wider than the phone. English pages look the same as before. */
html[class*="translated-"] .mnav > a, html[class*="translated-"] .mtools,
html[class*="translated-"] .mtools > summary, html[class*="translated-"] .mtools > summary > span { min-width: 0; }
html[class*="translated-"] .mnav > a, html[class*="translated-"] .mtools > summary {
  white-space: normal; text-align: center; overflow-wrap: break-word; padding-left: .1rem; padding-right: .1rem; font-size: .78rem;
}
html[class*="translated-"] .mtools > summary > span { flex-wrap: wrap; justify-content: center; }
/* big phone text (iPhone zoom / bigger text, Android text size; Bug Watch #165, 350 px): the tab words, icons and side
   padding never grow past what fits in the menu bar's width, so Tools stays on the screen. Normal text is below the cap. */
.mnav { container-type: inline-size; }
.mnav > a, .mtools > summary { font-size: min(.92rem, 4.9cqi); padding-left: min(.3rem, 1.7cqi); padding-right: min(.3rem, 1.7cqi); }
.mnav > a > .ico, .mtools > summary > .ico { width: min(1.45rem, 8cqi); height: min(1.45rem, 8cqi); }
.mtools .caret { width: min(1rem, 5.4cqi); height: min(1rem, 5.4cqi); }
.mtools-list {
  position: absolute; z-index: 30; top: calc(100% + .45rem); right: .6rem; width: min(17rem, calc(100vw - 1.2rem));
  list-style: none; margin: 0; padding: .45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 2px 6px rgba(70, 45, 20, .06), 0 22px 44px -18px rgba(70, 45, 20, .45);
}
.mtools-list a {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 13px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.3;
}
.mtools-list a:hover { background: var(--cream-2); color: var(--ink); }
.mtools-list a[aria-current="page"] { background: var(--soft); }
.mtools-list a[aria-current="page"] .ti { background: var(--surface); }
.mtools-list .ti { width: 2.4rem; height: 2.4rem; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--soft); font-size: 1.2rem; }
@media (max-width: 359px) {
  .mnav { padding: 0 .2rem; }
  .mnav > a, .mtools > summary { padding-left: min(.15rem, 1cqi); padding-right: min(.15rem, 1cqi); font-size: min(.85rem, 4.9cqi); }
  /* big phone text (Android text size): tabs share by width and wrap a word instead of pushing Tools off the screen */
  .mnav > a, .mtools { flex: 1 1 auto; min-width: 0; }
  .mnav > a, .mtools > summary { white-space: normal; text-align: center; }
}
@media (max-width: 899px) {
  :root { --pad: 1.1rem; }
  .topbar { padding-top: 1.2rem; }
  .tb-right { display: none; }
  .crumbs { font-size: 1rem; }
  .crumb.here { display: none; }
  /* My Courses: the title moves under the MRL box (portal.py home), so its top-bar copy steps aside */
  .home-head, .topbar:has(.home-head) { display: none; }
}

/* ───── building blocks ───── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 1rem 0; box-shadow: var(--shadow); }
.notice { background: var(--soft); border-left: 6px solid var(--flame-lo); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.notice.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.notice.ok { background: var(--ok-soft); border-left-color: var(--ok); }
.notice input.copy { width: 100%; margin-top: .6rem; font-size: .85rem; min-height: 2.6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: linear-gradient(180deg, var(--flame) 0%, var(--flame-lo) 100%); color: var(--flame-ink);
  border: 2px solid transparent; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.25; text-align: center; text-decoration: none;
  padding: .8rem 1.4rem; min-height: 3.1rem; max-width: 100%; cursor: pointer; box-shadow: 0 10px 22px -14px rgba(224, 86, 28, .9);
}
.btn:hover { background: linear-gradient(180deg, #FF8B55 0%, #E86426 100%); color: var(--flame-ink); }
.btn.big { font-size: 1.12rem; min-height: 3.6rem; padding: 1rem 1.6rem; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--field); box-shadow: none; }
.btn.ghost:hover { border-color: var(--flame-lo); background: var(--soft); }
.linklike { background: none; border: 0; padding: .7rem 0; font: inherit; font-size: 1rem; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
form.inline { display: inline; }
.row { display: flex; gap: .7rem; flex-wrap: wrap; }

.bar-track { height: 12px; background: #EDE6DB; border-radius: 7px; overflow: hidden; margin: .6rem 0 .4rem; }
.bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--flame), var(--flame-lo)); border-radius: 7px; }
.count { color: var(--muted); font-size: .95rem; margin: 0; }
.kicker { color: var(--link); font-weight: 700; font-size: .85rem; margin: 0; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: 0 0 .9rem; padding: 0; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.meta li { display: inline-flex; align-items: center; gap: .4rem; }
.meta .ico { width: 1.2rem; height: 1.2rem; color: var(--flame-lo); }
.ph { display: grid; place-items: center; background: radial-gradient(120% 140% at 20% 10%, #1A2330 0%, #07090C 70%); }
.ph img { width: 30%; max-width: 5rem; height: auto; }

/* forms */
.form label { display: block; font-weight: 700; font-size: 1.05rem; margin: 1.1rem 0 .3rem; }
.form .hint { color: var(--muted); font-size: .95rem; margin: -.1rem 0 .45rem; }
.form input[type=email], .form input[type=password], .form input[type=text], .form input:not([type]), .form textarea {
  display: block; width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink); background: #fff;
  border: 2px solid var(--field); border-radius: 14px; padding: .8rem 1rem; min-height: 3.2rem;
}
.form textarea { min-height: 6.5rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--flame-lo); }
.form .btn { margin-top: 1.3rem; }
label.check { display: flex; align-items: center; gap: .7rem; font-weight: 400; margin: .8rem 0 0; cursor: pointer; }
label.check input { width: 1.5rem; height: 1.5rem; accent-color: var(--flame-lo); flex: none; margin: 0; }
fieldset { border: 0; padding: 0; margin: 1.1rem 0 0; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0; }
.account-form { max-width: 36rem; }

/* ───── log in: photo left, form right ───── */
.authshell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.authpic { display: none; }
.authside { display: flex; flex-direction: column; padding: 1.4rem 1.1rem 0; min-width: 0; }
.authside .brand { display: block; align-self: flex-start; }
.authside .logo { display: block; height: 34px; width: auto; }
.authmain { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.6rem 0 2rem; }
.auth { width: 100%; max-width: 28rem; margin: 0; padding: 2rem 1.7rem; }
.auth h1 { margin-top: 0; }
.authside footer.site { margin: 0; max-width: none; width: auto; }
@media (min-width: 900px) {
  .authshell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .authpic { display: block; position: relative; overflow: hidden; }
  .authpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
  .authside { padding: 2rem 3rem 0; }
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.1rem 2.5rem; min-height: 60vh; }
.wrap + footer.site { max-width: 41.8rem; }

/* ───── my courses ───── */
.continue { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem 1.7rem; padding: 1.1rem; align-items: center; margin-top: .6rem; }
.cpic { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream-2); }
.cpic .cover { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cpic:hover .cover { transform: scale(1.03); }
.playbtn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 3.7rem; height: 3.7rem; border-radius: 18px;
  display: grid; place-items: center; color: #fff; background: rgba(12, 17, 22, .8); border: 2px solid rgba(255, 255, 255, .28);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .6);
}
.playbtn .ico { width: 1.6rem; height: 1.6rem; margin-left: .15rem; }
.cmain { min-width: 0; }
.cmain h2 { font-size: 1.45rem; margin: 0 0 .2rem; }
.continue .course-name { font-weight: 700; color: var(--link); margin-bottom: .5rem; }
.continue .next-lesson { margin-bottom: 1.1rem; }
.quick { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.05rem 1.15rem; }
.quick h3 { font-size: 1rem; margin: 0 0 .7rem; }
.quick ol { list-style: none; margin: 0 0 .6rem; padding: 0; }
.quick li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .55rem; line-height: 1.4; font-size: .95rem; }
.qn {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; flex: none; display: grid; place-items: center; margin-top: .02rem;
  background: linear-gradient(150deg, var(--flame), var(--flame-lo)); color: var(--flame-ink); font-weight: 800; font-size: .82rem;
}
.qtip { margin: 0; font-size: .9rem; color: var(--muted); }
@media (min-width: 700px) {
  .continue { grid-template-columns: minmax(0, min(18rem, 60%)) minmax(0, 1fr); }   /* min(): a big browser font (rem) never squeezes the text + button out */
  .continue.has-quick .quick { grid-column: 1 / -1; }
}
@media (min-width: 1600px) {
  .continue.has-quick { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr) minmax(0, 17rem); gap: 1.2rem 1.4rem; }
  .continue.has-quick .quick { grid-column: auto; }
  .continue.has-quick { align-items: stretch; }
  .continue.has-quick .cpic { align-self: center; }
  .continue.has-quick .cmain { align-self: center; }
}
/* phones: "Welcome, <name>" + My Courses under the MRL box */
.ptitle.only-narrow { margin: 1.5rem 0 .1rem; }
.ptitle.only-narrow:first-child { margin-top: .4rem; }
.ptitle.only-narrow h1 { margin: 0; }
/* My Courses with a right column (HOME_SIDE in portal.py: the Your Commissions box). Under 1280px the column is simply
   the next block after the member's courses. Next to it the Start card is narrower: picture + text side by side, quick steps under. */
@media (min-width: 1280px) {
  .home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 18.5rem; grid-template-rows: auto auto 1fr; column-gap: 1.7rem; align-items: start; }
  .hm-top { grid-column: 1; grid-row: 1; min-width: 0; container-type: inline-size; }
  .hm-rest { grid-column: 1; grid-row: 2; min-width: 0; container-type: inline-size; }
  .hm-more { grid-column: 1; grid-row: 3; min-width: 0; }
  .home-side { grid-column: 2; grid-row: 1 / span 3; min-width: 0; }
  .hm-top .continue.has-quick { grid-template-columns: minmax(0, min(18rem, 60%)) minmax(0, 1fr); align-items: center; }
  .hm-top .continue.has-quick .quick { grid-column: 1 / -1; }
}
@container (max-width: 40rem) {
  .hm-top .continue, .hm-top .continue.has-quick { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .hm-rest .tabs { gap: 1.3rem; }
  .hm-rest .tabs .long { display: none; }
  .hm-rest .tabs .short { display: inline; }
}
/* big screens: the page fills the width, so the Start card gets a bigger picture, the quick steps move up beside the
   text, and the course cards stay about as big as before (4 in a row instead of 5 small ones) */
@container (min-width: 60rem) {
  .hm-top .continue, .hm-top .continue.has-quick { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); }
}
@container (min-width: 76rem) {
  .hm-top .continue.has-quick { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr) minmax(0, 25rem); gap: 1.2rem 1.6rem; align-items: stretch; }
  .hm-top .continue.has-quick .quick { grid-column: auto; }
  .hm-top .continue.has-quick .cpic, .hm-top .continue.has-quick .cmain { align-self: center; }
}
@container (min-width: 80rem) {
  .hm-rest .cgrid { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
}

h2.sec { margin: 2.2rem 0 1rem; }
.tabs { display: flex; gap: 2.2rem; border-bottom: 2px solid var(--line); margin: 2.1rem 0 1.3rem; overflow-x: auto; }
.tabs a {
  padding: .45rem .15rem .7rem; margin-bottom: -2px; border-bottom: 3px solid transparent;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 1.05rem; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--flame-lo); }
.tabs .short { display: none; }
.empty { color: var(--muted); padding: .6rem 0 1rem; }

.cgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 1.2rem; }
.ccard > a {
  display: flex; flex-direction: column; height: 100%; padding: .8rem .8rem 1rem; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ccard > a:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--soft-line); box-shadow: 0 18px 34px -20px rgba(70, 45, 20, .45); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--cream-2); margin-bottom: .95rem; }
.thumb .cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.pill { position: absolute; right: .6rem; bottom: .6rem; background: #fff; color: var(--ink); font-weight: 700; font-size: .8rem; line-height: 1.3; padding: .35rem .75rem; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); }
.pill.ok { background: var(--ink); color: #fff; }
.cgroup { display: block; margin: 0 .3rem .15rem; font-size: .78rem; font-weight: 700; color: var(--link); }
.ctitle { font-size: 1.08rem; margin: 0 .3rem .35rem; }
.cnext { margin: 0 .3rem .75rem; font-size: .88rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cnext b { color: var(--ink-2); font-weight: 600; }
.ccard .meta { margin: 0 .3rem .9rem; }
.cfoot { margin-top: auto; display: flex; align-items: center; gap: .9rem; border-top: 1px solid var(--line); padding: .85rem .3rem 0; }
.cfoot .bar-track { flex: 1; height: 10px; margin: 0; }
.go { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; font-size: .92rem; color: var(--link); white-space: nowrap; }
.go .ico { width: 1.1rem; height: 1.1rem; }

/* courses they do not have: small and grey */
.more { margin-top: 2.6rem; }
.more h2.sec { margin-bottom: .2rem; }
.lgroup { font-size: .9rem; color: var(--muted); margin: 1.1rem 0 .6rem; }
.lgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: .8rem; }
.lcard {
  display: flex; align-items: center; gap: .9rem; height: 100%; padding: .6rem .9rem .6rem .6rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--locked); text-decoration: none;
}
.lcard:hover { color: var(--ink); border-color: var(--line-2); }
.lthumb { width: 6.2rem; height: 3.5rem; flex: none; border-radius: 10px; object-fit: cover; filter: grayscale(1); opacity: .7; }
.lcard:hover .lthumb { filter: grayscale(.3); opacity: 1; }
.lbody { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.lname { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.lmeta { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; }
.lmeta .ico { width: .9rem; height: .9rem; }

/* ───── course page ───── */
.chero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem 1.9rem; padding: 1.1rem; align-items: center; margin-top: .6rem; }
.chero-pic { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream-2); }   /* the cover from My Courses, shown whole */
.chero-pic .cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.chero.locked .chero-pic .cover { filter: grayscale(1); opacity: .75; }
.chero-body { min-width: 0; }
.chero h1 { font-size: 1.6rem; margin: .15rem 0 .6rem; }
.courseprog .bar-track { max-width: 26rem; }
.courseprog .btn, .courseprog .notice { margin-top: 1rem; }
@media (min-width: 800px) { .chero { grid-template-columns: minmax(0, min(22rem, 60%)) minmax(0, 1fr); } }
@media (min-width: 900px) and (max-width: 1149px) { .chero { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }   /* menu on the left leaves less room */
/* big screens: picture + course details on the left, the lessons on the right; a long course (Days) flows into 2 columns */
@media (min-width: 1800px) {
  .main:has(> .chero) { display: grid; grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); column-gap: 1.7rem; align-items: start; }
  .main:has(> .chero) > * { grid-column: 1 / -1; }
  .main:has(> .chero) > .chero { grid-column: 1; grid-template-columns: minmax(0, 1fr); margin: .6rem 0 1rem; }
  .main:has(> .chero) > .clessons { grid-column: 2; margin: .6rem 0 1rem; }
}
@media (min-width: 2300px) {
  .clessons:has(> .unit + .unit) { columns: 2; column-gap: 2.6rem; }
  .clessons .unit { break-inside: avoid; }
}
.lockline { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; margin-bottom: .3rem; }
.lockline .ico { width: 1.3rem; height: 1.3rem; color: var(--locked); }
.lockcard .btn { margin-top: .3rem; }
.clessons { padding: 1.4rem 1.2rem; }
.clessons > h2 { padding: 0 .6rem; }
.unit + .unit { margin-top: 1.2rem; }
.sechead { font-size: 1.02rem; margin: 0 0 .35rem; padding: 0 .6rem; }

/* lesson lists: round marks joined by a thin line (check = done, orange ring = next, number = still to watch) */
.steps { --dot: 1.7rem; --px: .6rem; list-style: none; margin: 0; padding: 0; }
.steps.big { --dot: 2.1rem; --px: .8rem; }
.step { position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: calc(var(--px) + var(--dot) / 2 - 1px); top: 50%; height: 100%; width: 2px; background: var(--line-2); }
.step > a, .step > .row { position: relative; display: flex; align-items: center; gap: .85rem; padding: .5rem var(--px); border-radius: 12px; color: var(--ink); text-decoration: none; }
.steps.big .step > a, .steps.big .step > .row { padding-top: .7rem; padding-bottom: .7rem; }
.step > a:hover { background: var(--bg); color: var(--ink); }
.dot {
  position: relative; z-index: 1; width: var(--dot); height: var(--dot); flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line-2); color: var(--muted); font-size: .78rem; font-weight: 700;
}
.steps.big .dot { font-size: .88rem; }
.step.done .dot { background: var(--flame-lo); border-color: var(--flame-lo); color: #fff; }
.step.done .dot .ico { width: 70%; height: 70%; stroke-width: 3; }
.step.next .dot { border-color: var(--flame-lo); color: var(--link); }
.step.cur > a { background: var(--soft); }
.step.cur .st { font-weight: 700; }
.st { flex: 1; min-width: 0; line-height: 1.35; font-weight: 500; }
.steps.big .st { font-weight: 600; }
.len { flex: none; color: var(--muted); font-size: .85rem; font-weight: 500; }
.step.locked .row { color: var(--locked); }
.step.locked .dot { background: #F4F1EC; }
.step.locked .dot .ico { width: 55%; height: 55%; color: #8A93A0; }
.steps .more { color: var(--muted); padding: .4rem 0 0 calc(var(--px) + var(--dot) + .85rem); }

/* ───── lesson page: video + notes left, your progress right ───── */
.lessonpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; margin-top: .6rem; }
/* the video grows with the screen but never gets taller than the window; any extra width goes to "Your progress" */
@media (min-width: 1280px) { .lessonpage { grid-template-columns: minmax(0, calc((100vh - 9rem) * 16 / 9)) minmax(19rem, 1fr); align-items: start; } }
.lmain { min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 9; background: #07090C; border-radius: var(--radius); overflow: hidden; margin: 0 0 1.1rem; box-shadow: var(--shadow); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 0;
  width: 5rem; height: 5rem; border-radius: 22px; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(12, 17, 22, .78); border: 2px solid rgba(255, 255, 255, .3); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .7);
}
.bigplay:hover { background: var(--flame-lo); }
.bigplay .ico { width: 2.1rem; height: 2.1rem; margin-left: .2rem; }
.bigplay[hidden] { display: none; }
.player.soon { background: var(--soft); border: 2px dashed var(--soft-line); display: grid; place-items: center; text-align: center; padding: 1.2rem; box-shadow: none; }
.player.soon p { margin: 0; color: var(--ink); }
.linfo { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.lcourse { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.lc-pic { width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover; flex: none; }
.lc-title { font-weight: 700; margin: 0; line-height: 1.3; }
.lcourse .kicker { margin-top: .1rem; }
.lc-len { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; font-size: .9rem; }
.lc-len .ico { width: 1.2rem; height: 1.2rem; color: var(--flame-lo); }
.lesson-h1 { font-size: 1.6rem; margin: 0 0 .8rem; }
.notes { font-size: 1rem; max-width: 50rem; }
.notes h3 { margin-top: 1.2rem; }
.notes ul, .notes ol { padding-left: 1.4rem; }
.notes li { margin-bottom: .35rem; }
.linkbtn {
  display: inline-flex; align-items: center; gap: .45rem; margin: .35rem 0; padding: .65rem 1.1rem; min-height: 3rem;
  border: 2px solid var(--flame-lo); border-radius: 14px; background: var(--surface); color: var(--link-dark);
  font-weight: 700; text-decoration: none; line-height: 1.3;
}
.linkbtn:hover { background: var(--soft); color: var(--link-dark); }
.rawlink { overflow-wrap: anywhere; }
.donebox { margin: 2rem 0 1rem; }
.donebox.is-done { background: var(--ok-soft); border: 2px solid #BBDCC6; border-radius: var(--radius); padding: 1.2rem; }
.donemsg { color: var(--ok); font-weight: 700; font-size: 1.15rem; }
.donebox .inline { display: block; text-align: center; }
.prevnext { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: .6rem; }
.prevnext a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; text-decoration: none; padding: .7rem 0; }
.prevnext a:hover { text-decoration: underline; }
.prevnext .ico { width: 1.15rem; height: 1.15rem; }
.pcard { margin: 0; padding: 1.2rem .8rem 1rem; }
.pc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 .6rem .5rem; }
.pc-head h2 { font-size: 1.2rem; margin: 0; }
.pc-count { color: var(--muted); font-weight: 600; }
.plabel { font-size: .8rem; font-weight: 700; color: var(--muted); margin: .9rem 0 .15rem .6rem; }
.pc-head + .plabel { margin-top: .3rem; }
.pcard .st { font-size: .9rem; }

/* ───── members box (sidebar on wide screens, bottom of My Courses on phones) ───── */
.members { text-align: center; padding: 1.3rem .9rem; }
.side-foot .members { position: relative; overflow: hidden; margin: 0 0 .8rem; background: var(--cream-2); border: 0; box-shadow: none; border-radius: 22px; }
.side-foot .members::before, .side-foot .members::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(12, 17, 22, .07); pointer-events: none; }
.side-foot .members::before { width: 11rem; height: 11rem; right: -5rem; top: -5rem; }
.side-foot .members::after { width: 8rem; height: 8rem; left: -4rem; bottom: -3.5rem; }
.mcount { font-weight: 800; font-size: 1.9rem; line-height: 1; margin: .2rem 0 .2rem; letter-spacing: -.03em; }
.mlabel { font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
.online { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; background: var(--ok-soft); color: var(--ok); padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.live { width: .6rem; height: .6rem; border-radius: 50%; background: #22A06B; box-shadow: 0 0 0 3px rgba(34, 160, 107, .22); }
.faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem .3rem; }
.faces li { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 0; }
.faces img { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.faces span { font-size: .7rem; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.only-narrow { display: block; }
.only-narrow .members { margin-top: 2.4rem; }
.only-narrow .faces { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 900px) { .only-narrow { display: none; } }

/* ───── community ───── */
.feed { max-width: 46rem; }
.post h2 { margin-top: .9rem; }
.pinned { margin: 0; font-size: .9rem; font-weight: 700; color: var(--link); }
.pimg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin: .4rem 0 1rem; background: var(--soft); }
.pbanner { display: flex; align-items: center; justify-content: center; gap: .9rem; aspect-ratio: 16 / 5; border-radius: 14px; margin: .4rem 0 1rem;
  background: radial-gradient(120% 140% at 20% 10%, #1A2330 0%, #07090C 70%); color: #fff; font-weight: 800; font-size: 1.6rem; letter-spacing: .12em; }
.pbanner img { display: block; height: 2.6rem; width: auto; max-width: 80%; }
img.avatar { object-fit: cover; padding: 0; }
.pbody ol, .pbody ul { padding-left: 1.4rem; }
.phead { display: flex; align-items: center; gap: .8rem; }
.phead p { margin: 0; }
.avatar { width: 3rem; height: 3rem; border-radius: 50%; background: linear-gradient(150deg, var(--flame), var(--flame-lo)); color: var(--flame-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.avatar.sm { width: 2.3rem; height: 2.3rem; font-size: 1rem; background: #5E6776; color: #fff; }
.avatar.xs { width: 2.35rem; height: 2.35rem; font-size: 1rem; }
.avatar.xl { width: 6rem; height: 6rem; font-size: 2.4rem; }
.photo-card h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
.photo-row { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.photo-form { margin: 0 0 .4rem; }
.photo-form label.btn { cursor: pointer; }
.photo-form input:focus-visible + noscript, .photo-form:focus-within label.btn { outline: 3px solid var(--link, #1a5fb4); outline-offset: 2px; }
.photo-card .hint { margin: .4rem 0 0; }
.account-form + .account-form { margin-top: 1rem; }
.badge { display: inline-block; background: var(--soft); color: var(--link-dark); font-size: .8rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; vertical-align: middle; }
.who { margin: 0; }
.replies { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .4rem; }
.reply { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.reply p:last-child { margin-bottom: 0; }
.replyform label { margin-top: .8rem; }
/* likes, hearts and hugs under every post and reply (Rocco 2026-10-05: "like facebook"; members tap Like / Love / Hug) */
.rbar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .45rem; margin-top: -.6rem; }
.reacts { display: flex; align-items: center; gap: .4rem; width: fit-content; margin: 0; padding: .12rem .65rem .12rem .2rem; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 1px 3px rgba(70, 45, 20, .1); font-size: .85rem; font-weight: 700; line-height: 1.4; color: var(--muted); }
.reacts .remo { display: flex; }
.reacts .remo span { position: relative; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-left: -.45rem; border: 2px solid var(--surface);
  border-radius: 50%; font-size: .9rem; line-height: 1; }
.reacts .remo span:first-child { margin-left: 0; z-index: 2; }
.reacts .remo span:nth-child(2) { z-index: 1; }
.reacts .r-like { background: #E6EEFC; }
.reacts .r-heart { background: #FFE4EA; }
.reacts .r-hug { background: #FFF1CF; }
.reacts.big { padding: 0; border: 0; background: none; box-shadow: none; font-size: .95rem; }
.reacts.big .remo span { width: 1.9rem; height: 1.9rem; font-size: 1.12rem; }
.rbtns { display: flex; margin: 0 0 0 -.5rem; }
.rbtns button { font: inherit; font-size: .85rem; font-weight: 700; line-height: 1.3; color: var(--muted); background: none; border: 0; border-radius: 999px;
  padding: .45rem .5rem; cursor: pointer; }
.rbtns button:hover { background: var(--cream-2); color: var(--ink-2); }
.rbtns .e { display: none; }
.rbtns .rb-like[aria-pressed="true"] { color: #1B5FD9; }
.rbtns .rb-heart[aria-pressed="true"] { color: #C8213F; }
.rbtns .rb-hug[aria-pressed="true"] { color: #8F5B00; }
.rbar.big { display: block; margin: 0; }
.rbar.big .reacts { margin-bottom: .55rem; }
.rbar.big .rbtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin: 0; padding-top: .3rem; border-top: 1px solid var(--line); }
.rbar.big .rbtns button { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: .95rem; padding: .6rem .4rem; border-radius: 12px; }
.rbar.big .rbtns .e { display: inline; font-size: 1.15rem; line-height: 1; }
.rbar.big + .replies { margin-top: .3rem; }
.rbar.just [aria-pressed="true"] { animation: rpop .35s ease-out; }
@keyframes rpop { 40% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .rbar.just [aria-pressed="true"] { animation: none; } }
@media (max-width: 599px) {   /* phones: Like Love Hug + the count fit on one line under a reply */
  .rbtns { margin-left: -.38rem; }
  .rbtns button { font-size: .8rem; padding: .45rem .38rem; }
  .reacts { gap: .3rem; padding-right: .55rem; font-size: .8rem; }
  .reacts .remo span { width: 1.32rem; height: 1.32rem; margin-left: -.4rem; font-size: .8rem; }
}
/* ───── help ───── */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr)); gap: 1rem; }
.qa-grid .card { margin: 0; }
.qa h2 { font-size: 1.1rem; }
.qa p { margin: 0; }

/* ───── admin ───── */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; }
table.offers input { width: 100%; font: inherit; font-size: .92rem; padding: .5rem .6rem; border: 2px solid var(--field); border-radius: 10px; min-width: 7rem; }
ul.plain { padding-left: 1.2rem; }
.held { border-left: 6px solid var(--warn); }
details { margin: .5rem 0; }
summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }
details ol { font-size: .92rem; }

/* ───── pages made of one narrow column ─────
   Community, Your account, Partner Program, Admin and the MRL pages keep the width they were made for and sit in the
   middle of the wide page; the title in the top bar and the footer line up with them. Pages without --col stay full width.
   (Browsers without :has() keep these columns on the left, as before.) */
.content:has(> .main > .feed), .content:has(> .main > .pp-hero), .content:has(> .main > .pp-link) { --col: 46rem; }
.content:has(> .main > .account-form) { --col: 36rem; }
.content:has(> .main > .mrl), .app:has(.sidenav a[aria-current="page"][href$="/admin"]) > .content { --col: 67.6rem; }
.content:has(> .main > .mrl > .wiz) { --col: 44rem; }
.main { padding-inline: max(var(--pad), (min(100%, var(--maxw)) - var(--col, 100%)) / 2); }
.tb-left { padding-left: max(0px, (100% - var(--col, 100%)) / 2); }
.content > footer.site { width: min(100% - 2 * var(--pad), var(--col, 100%)); }

/* ───── phones ───── */
@media (max-width: 600px) {
  html { font-size: 118.75%; }
  h1 { font-size: 1.5rem; }
  .chero h1, .lesson-h1 { font-size: 1.4rem; }
  .card { padding: 1.1rem; }
  .continue, .chero { padding: .8rem; }
  .btn.big { width: 100%; }
  .tabs { gap: 1.1rem; }
  .tabs a { font-size: .95rem; }
  .tabs .long { display: none; }
  .tabs .short { display: inline; }
  .player { border-radius: 14px; }
  .bigplay { width: 3.6rem; height: 3.6rem; border-radius: 16px; }
  .bigplay .ico { width: 1.5rem; height: 1.5rem; }
  .pbanner { font-size: 1.05rem; gap: .6rem; }
  .pbanner img { height: 1.7rem; }
  .clessons { padding: 1rem .6rem; }
  .len { display: none; }
}
@media (max-width: 430px) {
  .acct a:first-child { display: none; }
}
.photo-card .linkbtn { border: 0; background: none; padding: .2rem 0; font-size: .95rem; text-decoration: underline; color: var(--muted, #5E6776); cursor: pointer; }
