/* ============================================================
   DESIGN YOUR BEST SELF — Free Training Library
   Shared stylesheet for all lesson pages.
   Adapted from the Rob Cressy replay template.

   Brand:  Yellow #FBED20 · Gold #FFDC13 · Black #000000
   Type:   Oswald (headlines) · Roboto (body) · Roboto Mono (labels)

   HARD RULE: every text element on a dark background is WHITE.
   No gray body text anywhere. Yellow/gold are accents only.
   ============================================================ */

/* ---- Brand tokens -------------------------------------------------- */
:root {
  --yellow: #FBED20;
  --gold:   #FFDC13;
  --black:  #000000;
  --near-black: #0a0a0a;
  --panel:  #141414;
  --panel-2:#1c1c1c;
  --line:   #2a2a2a;
  --white:  #ffffff;
  --gold-tint: rgba(255,220,19,0.08);

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1120px;
  --sidebar-w: 300px;
  --masthead-h: 66px;
  --radius: 14px;
}

/* ---- Reset / base -------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }

/* Small uppercase gold kicker/label (mono) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--yellow);
}

/* ---- TOP UTILITY BAR ----------------------------------------------- */
.topbar {
  background: var(--near-black);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar__center { color: var(--yellow); }
.topbar__right { text-align: right; }
@media (max-width: 700px) { .topbar__center { display: none; } }

/* ---- MASTHEAD (sticky) --------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--masthead-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--white);
}
.brand__text small {
  color: var(--white);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}
@media (max-width: 560px) { .brand__text small { display: none; } }

/* ---- MOBILE COURSE-GUIDE TRIGGER (sticky, below masthead) ---------- */
.guide-toggle {
  display: none;
  position: sticky;
  top: var(--masthead-h);
  z-index: 55;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
}
.guide-toggle .gt-icon { color: var(--yellow); font-size: 1.1rem; }

/* ---- TWO-COLUMN LAYOUT --------------------------------------------- */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 34px;
}
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  position: sticky;
  top: calc(var(--masthead-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.content { flex: 1; min-width: 0; }

/* ---- COURSE GUIDE -------------------------------------------------- */
.guide {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}
.guide__head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--white);
  margin-bottom: 14px;
}
.guide__head .lesson-of { color: var(--yellow); }

/* Category block */
.cat { margin-bottom: 8px; }
.cat__head {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--near-black);
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.cat__head--static { cursor: default; }
.cat__name { flex: 1; min-width: 0; }
.cat__meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--yellow);
}
.cat__chevron { color: var(--yellow); font-size: 0.8rem; transition: transform 0.2s ease; }
.cat--open > .cat__head .cat__chevron { transform: rotate(180deg); }

/* Category body (lessons) */
.cat__body { display: none; padding: 8px 0 2px; }
.cat--open > .cat__body { display: block; }

.les {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.16s ease;
}
.les:hover { background: var(--panel-2); }
.les__badge {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.les__num { display: block; }
.les__check { display: none; color: var(--black); }
.les.is-done .les__badge { background: var(--yellow); border-color: var(--yellow); }
.les.is-done .les__num { display: none; }
.les.is-done .les__check { display: block; }
.les__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--white);
}
.les__status {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 2px;
}
/* Active lesson */
.les--active {
  background: var(--yellow);
}
.les--active:hover { background: var(--yellow); }
.les--active .les__badge { background: rgba(0,0,0,0.16); border-color: transparent; color: var(--black); }
.les--active .les__title { color: var(--black); font-weight: 700; }
.les--active .les__status { color: rgba(0,0,0,0.72); }

/* ---- SIDEBAR PROMO CARD -------------------------------------------- */
.promo {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--gold-tint), rgba(0,0,0,0));
  padding: 18px;
  text-align: center;
}
.promo__kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 14px;
}

/* ---- BUTTONS ------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--yellow);
  color: var(--black);
  padding: 14px 30px;
  border-radius: 999px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(251,237,32,0.25); }
.btn--block { display: block; width: 100%; text-align: center; }

/* ---- HERO ---------------------------------------------------------- */
.content .eyebrow { margin-bottom: 14px; }
.content h1 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  color: var(--white);
}

/* ---- VIDEO --------------------------------------------------------- */
.video-section { margin-top: 24px; }
.video-frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  box-shadow: 0 0 60px rgba(251,237,32,0.10);
  overflow: hidden;
  background: var(--near-black);
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #1c1c1c 0%, #000 75%);
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ---- LESSON CONTENT SECTIONS --------------------------------------- */
.lesson-body { margin-top: 30px; }
.sec { margin-bottom: 22px; }
.sec__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--yellow);
  margin-bottom: 12px;
}
.sec p { color: var(--white); }

/* ACTION — hero treatment, strongest weight */
.sec--action {
  border: 1px solid var(--gold);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-tint), rgba(0,0,0,0));
  padding: 24px 26px;
}
.sec--action .sec__label { color: var(--yellow); font-weight: 700; letter-spacing: 0.2em; }
.sec--action .action-intro { color: var(--white); margin-bottom: 16px; font-size: 1.04rem; }
.action-list { list-style: none; display: grid; gap: 14px; }
.action-list li {
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--white); font-size: 1.02rem;
}
.action-list li::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow); flex: none; margin-top: 9px;
}

/* REMINDERS — clean white bullet list */
.reminders { list-style: none; display: grid; gap: 12px; }
.reminders li {
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--white); font-size: 1.0rem;
}
.reminders li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--white); flex: none; margin-top: 9px;
}

/* RECOMMENDATIONS / LET'S CONNECT — standard */
.std-list { list-style: none; display: grid; gap: 12px; }
.std-list li {
  display: flex; gap: 14px; align-items: flex-start;
  color: var(--white); font-size: 1.0rem;
}
.std-list li::before {
  content: "\2013";
  color: var(--yellow); flex: none; font-weight: 700;
}
.std-list a { color: var(--gold); font-weight: 500; }
.std-list a:hover { color: var(--yellow); }

/* NEXT LEVEL — its own component, max 2 items */
.sec--next {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 22px;
}
.next-list { list-style: none; display: grid; gap: 10px; }
.next-list a {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); font-size: 1.0rem; font-weight: 500;
}
.next-list a .arrow { color: var(--yellow); font-family: var(--font-head); font-weight: 700; }
.next-list a:hover { color: var(--yellow); }

/* BOOK RECOMMENDATION — compact card at bottom of content */
.sec--books {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--near-black);
  padding: 18px 22px;
}
.book-list { list-style: none; display: grid; gap: 8px; }
.book-list li {
  display: flex; gap: 12px; align-items: baseline;
  color: var(--white); font-size: 0.98rem;
}
.book-list li::before { content: "\1F4D6"; flex: none; }
.book-list .b-title { color: var(--white); font-weight: 600; }
.book-list .b-author { color: var(--yellow); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; }

/* ---- CTA BANNER ---------------------------------------------------- */
.cta {
  margin: 40px 0 30px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-tint), rgba(0,0,0,0));
  padding: 34px 30px;
  text-align: center;
}
.cta h2 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 12px;
}
.cta p { color: var(--white); font-size: 1.02rem; max-width: 620px; margin: 0 auto 22px; }

/* ---- PREV / NEXT PAGER --------------------------------------------- */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 10px 0 20px;
}
.pager__btn {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 22px;
  border-radius: var(--radius);
  min-height: 84px;
  justify-content: center;
}
.pager__dir {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
}
.pager__ttl { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
/* Prev = outlined */
.pager__btn--prev {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--white);
  text-align: left;
}
.pager__btn--prev:hover { border-color: var(--gold); }
.pager__btn--prev .pager__dir { color: var(--yellow); }
/* Next = primary yellow */
.pager__btn--next {
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: var(--black);
  text-align: right;
}
.pager__btn--next:hover { background: var(--gold); border-color: var(--gold); }
.pager__btn--next .pager__dir { color: rgba(0,0,0,0.66); }
.pager__btn--next .pager__ttl { color: var(--black); }
/* Disabled state (start / coming soon) */
.pager__btn--disabled {
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--white);
  opacity: 0.72;
  cursor: default;
}
.pager__btn--disabled .pager__dir { color: var(--yellow); }

/* ---- FOOTER -------------------------------------------------------- */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 34px 24px;
}
.footer__tagline {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* ---- DRAWER OVERLAY (mobile) --------------------------------------- */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 70;
}
body.drawer-open .drawer-overlay { display: block; }

/* ---- RESPONSIVE ---------------------------------------------------- */
@media (max-width: 900px) {
  .guide-toggle { display: flex; }
  .layout { flex-direction: column; gap: 24px; padding-top: 22px; }
  .content { order: 1; width: 100%; }

  /* Sidebar becomes an off-canvas drawer */
  .sidebar {
    order: 2;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(340px, 86vw);
    z-index: 80;
    background: var(--black);
    border-right: 1px solid var(--line);
    padding: 20px 18px;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.26s ease;
  }
  body.drawer-open .sidebar { transform: translateX(0); }
  .sidebar__close {
    display: flex; align-items: center; justify-content: center;
    align-self: flex-end;
    width: 38px; height: 38px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--panel);
    color: var(--white); font-size: 1.2rem; cursor: pointer;
  }
}
@media (min-width: 901px) {
  .sidebar__close { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager__btn--prev, .pager__btn--next { text-align: left; }
  .sec--action { padding: 20px 18px; }
}

/* ---- ACCESSIBILITY ------------------------------------------------- */
a:focus-visible, button:focus-visible, .pager__btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
