/* ============================================================================
   BASIS POINTS — v38
   Loads AFTER theme.css. Everything here is additive or an override; nothing in
   theme.css needs to be deleted.

   1. Layout / whitespace corrections
   2. Logo grid  (Foundation page)
   3. Carousel   (3 rotating images, fully editable)
   4. Calculators — breakdown panel + advanced accordion
   5. The Course — dark canvas + typography system
   6. The Course — content components
   7. Quiz
   ========================================================================== */

/* ============================================================================
   1. LAYOUT / WHITESPACE
   The three-tile blocks were rendering at roughly a third of the container
   width, which left two-thirds of the viewport empty and squeezed headings
   like "Decision-first" and "Plain language" onto three lines each.
   ========================================================================== */

.bp-tiles,
.bp-grid-3,
.bp-section .bp-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: none;
  align-items: stretch;
}

.bp-tiles > .bp-tile,
.bp-grid-3 > .bp-tile {
  min-width: 0;
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-tile h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: none;
}

.bp-tile p { font-size: 15px; line-height: 1.6; margin: 0; }

/* the gap between a section heading and its grid was doing too much work */
.bp-section > h2 + .bp-tiles,
.bp-section > h2 + .bp-grid-3 { margin-top: 28px; }
.bp-section { padding-block: 64px; }
.bp-section + .bp-section { padding-top: 0; }

@media (max-width: 900px) {
  .bp-tiles, .bp-grid-3 { grid-template-columns: 1fr; gap: 14px; }
}

/* header sits taller — the old 70px read cramped against the wordmark */
.nav .wrap { height: 88px; }
.brand img { max-height: 46px; }

/* dropdowns must anchor to their trigger and sit above everything */
.nav-links li { position: relative; }
.nav-links .sub-menu,
.nav-links ul.children {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  min-width: 220px;
  margin-top: 10px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
}

/* ============================================================================
   2. LOGO GRID — Foundation page
   Left rail: heading, standfirst, anchor logo.
   Right: a ruled 3-column grid. Hairlines form the cells, exactly as speced.
   ========================================================================== */

.bp-logogrid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.6fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 56px 0;
}

.bp-logogrid__intro {
  padding: 48px 44px 48px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bp-logogrid__intro h2 {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.bp-logogrid__intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
  max-width: 42ch;
}

.bp-logogrid__anchor {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bp-logogrid__anchor img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

.bp-logogrid__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-logogrid__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 122px;
}

/* no double rules on the outer edges */
.bp-logogrid__cell:nth-child(3n) { border-right: 0; }
.bp-logogrid__items > .bp-logogrid__cell:nth-last-child(-n+3):nth-child(3n+1),
.bp-logogrid__items > .bp-logogrid__cell:nth-last-child(-n+3):nth-child(3n+1) ~ .bp-logogrid__cell {
  border-bottom: 0;
}

/* Optical sizing. Logos are normalized by visual weight, not pixel height —
   a wide wordmark and a round seal need different caps to read as equals. */
.bp-logogrid__cell img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .82;
  transition: opacity .25s ease, filter .25s ease;
}

.bp-logogrid__cell:hover img { filter: grayscale(0%); opacity: 1; }
.bp-logogrid__cell.is-tall img  { max-height: 72px; }
.bp-logogrid__cell.is-wide img  { max-height: 44px; }

/* dark canvas variant */
body.bp-dark .bp-logogrid__cell img,
.bp-dark .bp-logogrid__cell img { filter: grayscale(100%) invert(1) brightness(1.6); }

@media (max-width: 980px) {
  .bp-logogrid { grid-template-columns: 1fr; }
  .bp-logogrid__intro { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 0; }
  .bp-logogrid__cell { padding: 28px 16px; min-height: 100px; }
}

@media (max-width: 560px) {
  .bp-logogrid__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-logogrid__cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .bp-logogrid__cell:nth-child(2n) { border-right: 0; }
}

/* ============================================================================
   3. CAROUSEL — three rotating images, editable from the Customizer
   ========================================================================== */

.bp-carousel {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.bp-carousel__track { position: absolute; inset: 0; }

.bp-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .9s ease, transform 6s ease-out;
  pointer-events: none;
}

.bp-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.bp-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }

.bp-carousel__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 34px 28px;
  background: linear-gradient(to top, rgba(6, 8, 6, .92), rgba(6, 8, 6, .55) 55%, transparent);
  color: #fff;
}

.bp-carousel__caption .eyebrow { color: var(--accent); display: block; margin-bottom: 8px; }

.bp-carousel__caption h3 {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #fff;
}

.bp-carousel__caption p { font-size: 15px; line-height: 1.55; margin: 0; color: rgba(255,255,255,.82); max-width: 58ch; }

.bp-carousel__dots {
  position: absolute;
  right: 22px; bottom: 22px;
  display: flex; gap: 9px; z-index: 5;
}

.bp-carousel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}

.bp-carousel__dot.is-active { background: var(--accent); transform: scale(1.25); }

.bp-carousel__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(10,12,10,.42);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .25s, background .2s;
  z-index: 5;
}

.bp-carousel:hover .bp-carousel__nav { opacity: 1; }
.bp-carousel__nav:hover { background: rgba(10,12,10,.72); }
.bp-carousel__nav--prev { left: 18px; }
.bp-carousel__nav--next { right: 18px; }

@media (prefers-reduced-motion: reduce) {
  .bp-carousel__slide { transition: opacity .2s ease; transform: none; }
}

/* ============================================================================
   4. CALCULATORS — breakdown panel + advanced accordion
   ========================================================================== */

.bp-calc-adv { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; }

.bp-calc-adv > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  user-select: none;
}

.bp-calc-adv > summary::-webkit-details-marker { display: none; }
.bp-calc-adv > summary::after { content: "+"; margin-left: auto; font-size: 15px; color: var(--accent-text); }
.bp-calc-adv[open] > summary::after { content: "–"; }
.bp-calc-adv > summary:hover { color: var(--ink); }
.bp-calc-adv__body { padding-top: 12px; display: grid; gap: 12px; }
.bp-calc-adv__hint { font-size: 12.5px; line-height: 1.55; color: var(--gray); margin: 0 0 4px; }

/* --- "How this was calculated" --- */
.bp-calc-breakdown {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.bp-calc-breakdown > summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 20px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--bg2);
  display: flex; align-items: center;
}

.bp-calc-breakdown > summary::-webkit-details-marker { display: none; }
.bp-calc-breakdown > summary::after { content: "Show the math  +"; margin-left: auto; letter-spacing: .06em; color: var(--gray); }
.bp-calc-breakdown[open] > summary::after { content: "Hide  –"; }

.bp-bd-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
}

.bp-bd-col { padding: 22px 20px; border-right: 1px solid var(--line); }
.bp-bd-col:last-child { border-right: 0; }

.bp-bd-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 14px;
  font-weight: 500;
}

.bp-bd-col dl { margin: 0; }

.bp-bd-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 14.5px;
  border-bottom: 1px dotted var(--line);
}

.bp-bd-row dt { color: var(--gray); margin: 0; }
.bp-bd-row dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.bp-bd-row.is-credit dd { color: var(--accent-text); }
.bp-bd-row.is-total {
  border-bottom: 0;
  border-top: 1px solid var(--ink);
  margin-top: 6px;
  padding-top: 11px;
  font-size: 16px;
}
.bp-bd-row.is-total dt { color: var(--ink); font-weight: 600; }
.bp-bd-row.is-total dd { font-weight: 700; }

@media (max-width: 720px) {
  .bp-bd-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .bp-bd-col:last-child { border-bottom: 0; }
}

/* verdict readout: cheaper side reads green, costlier reads neutral */
.bp-calc-fill.is-cheaper { background: var(--accent); }
.bp-calc-fill.is-costlier { background: rgba(255,255,255,.22); }

/* ============================================================================
   5. THE COURSE — dark canvas
   ============================================================================

   v38.1 CORRECTION.

   The first build invented a parallel set of --c-* variables and then hand-
   recoloured a dozen hand-picked classes. Everything else on the page — the
   course title, "About Course", "What Will You Learn?", scenario headings,
   table headers, every element Tutor renders — kept the light palette's
   --ink: #10130c and went black-on-black.

   This version remaps the THEME'S OWN variables inside the dark scope. The
   theme already defines a full dark palette in functions.php; every rule in
   theme.css and every Tutor override already reads from these names, so
   flipping them here flips the entire page at once, including markup neither
   of us has seen.
   ========================================================================== */

/* v38.3: dark canvas removed. Lessons run on the site's normal light palette. */

/* Tutor's own containers and cards */
.tutor-course-spotlight-wrapper,
.tutor-lesson-wrapper,
.tutor-quiz-wrapper,
.tutor-lesson-content,
.tutor-course-topic-single-body,
.tutor-course-single-content-wrapper,
#tutor-single-entry-content,
.tutor-container,
.tutor-wrap {
  background: var(--bg);
  color: var(--text);
}

.tutor-card,
.tutor-course-details-widget,
.tutor-accordion-item,
.tutor-accordion-item-header,
.tutor-accordion-item-body {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

/* Anything Tutor hardcodes to a dark ink gets pulled back to light */
.tutor-fs-1, .tutor-fs-2,
.tutor-fs-3, .tutor-fs-4,
.tutor-fs-5, .tutor-fs-6,
.tutor-fs-7,
.tutor-color-black,
.tutor-color-secondary,
h1, h2,
h3, h4,
.tutor-course-name,
.tutor-course-title,
.tutor-segment-title {
  color: var(--ink);
}

.tutor-color-muted,
.tutor-color-gray,
.tutor-meta-value { color: var(--gray); }

hr,
.tutor-hr { border-color: var(--line); }


/* ---- reading surface ---- */
.bp-lesson {
  font-size: 18.5px;
  line-height: 1.75;
  color: var(--text);
  max-width: 72ch;
  margin-inline: auto;
  letter-spacing: .002em;
}

.bp-lesson p { margin: 0 0 1.25em; }
.bp-lesson strong { color: var(--ink); font-weight: 650; }
.bp-lesson em { color: var(--ink); }
.bp-lesson a { color: var(--accent-text); text-decoration-color: rgba(163,230,53,.45); }

.bp-lesson h2 {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(27px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 2.4em 0 .7em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}

.bp-lesson h2:first-of-type { border-top: 0; padding-top: 0; margin-top: .4em; }

.bp-lesson h3 {
  font-family: var(--f-disp);
  font-weight: 650;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 2em 0 .55em;
}

.bp-lesson__title {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: .1em 0 .7em;
  text-wrap: balance;
}

.bp-l-lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.01em;
  margin: 0 0 1.6em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--line);
}

/* lists */
.bp-lesson ul { list-style: none; padding-left: 0; margin: 0 0 1.5em; }
.bp-lesson ul > li { position: relative; padding-left: 26px; margin: 0 0 .75em; }
.bp-lesson ul > li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.bp-lesson ul > li > p { margin: 0; }
.bp-lesson ol { padding-left: 1.3em; margin: 0 0 1.5em; }
.bp-lesson ol > li { margin: 0 0 .75em; padding-left: 6px; }
.bp-lesson ol > li::marker { color: var(--accent); font-family: var(--f-mono); font-size: .85em; }

/* ============================================================================
   6. COURSE CONTENT COMPONENTS
   All built on the theme's variables, so they follow the palette automatically.
   ========================================================================== */

.bp-tablewrap { overflow-x: auto; margin: 2em 0; -webkit-overflow-scrolling: touch; }
.bp-tablewrap .bp-l-table { margin: 0; min-width: 480px; }

.bp-l-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 15.5px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.bp-l-table th {
  background: var(--bg2); font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gray);
  font-weight: 500; padding: 14px 16px; border: 0;
  border-bottom: 1px solid var(--line); text-align: left;
}
.bp-l-table td {
  padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line2);
  color: var(--text); vertical-align: top; font-variant-numeric: tabular-nums;
}
.bp-l-table tr:last-child td { border-bottom: 0; }
.bp-l-table.is-versus td:first-child,
.bp-l-table.is-versus th:first-child { border-right: 1px solid var(--line); }

/* key principle */
.bp-kp {
  margin: 2.2em 0; padding: 24px 26px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-left-width: 3px;
}
.bp-kp__label {
  display: block; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 10px;
}
.bp-kp p {
  margin: 0; font-size: 17.5px; line-height: 1.6; color: var(--ink);
  font-weight: 500; text-transform: none; font-family: var(--f-body); letter-spacing: 0;
}
.bp-kp p + p { margin-top: .7em; }

/* pull number */
.bp-pull {
  margin: 2.4em 0; padding: 30px 28px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
  display: grid; gap: 6px; text-align: center;
}
.bp-pull__fig {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(38px, 6vw, 62px); line-height: 1; letter-spacing: -.035em;
  color: var(--accent-text); font-variant-numeric: tabular-nums;
}
.bp-pull__cap { font-size: 15px; color: var(--gray); line-height: 1.5; max-width: 46ch; margin: 4px auto 0; }

/* stat row */
.bp-statrow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; margin: 2.2em 0; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.bp-statrow__item { background: var(--panel); padding: 22px 20px; }
.bp-statrow__lab { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-bottom: 9px; }
.bp-statrow__val { font-family: var(--f-disp); font-weight: 700; font-size: 27px; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.bp-statrow__sub { display: block; font-size: 13px; color: var(--gray); margin-top: 5px; }
.bp-statrow__item.is-good .bp-statrow__val { color: var(--accent-text); }
.bp-statrow__item.is-bad .bp-statrow__val { color: #f0876a; }

/* in-lesson chart */
.bp-chart { margin: 2.2em 0; display: grid; gap: 16px; }
.bp-chart__row { display: grid; gap: 7px; }
.bp-chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; }
.bp-chart__name { color: var(--text); }
.bp-chart__val { font-family: var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.bp-chart__track { height: 12px; border-radius: 100px; background: var(--line); overflow: hidden; }
.bp-chart__fill { height: 100%; border-radius: 100px; background: var(--accent); transition: width .8s cubic-bezier(.4,0,.2,1); }
.bp-chart__fill.is-muted { background: var(--faint); }
.bp-chart__fill.is-warn { background: #f0876a; }
.bp-chart__note { font-size: 13.5px; color: var(--gray); margin-top: 2px; }

/* do / don't */
.bp-dodont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 2.2em 0; }
.bp-dodont__col { border-radius: 14px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.bp-dodont__col h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; font-weight: 500; }
.bp-dodont__col.is-do h4 { color: var(--accent-text); }
.bp-dodont__col.is-dont h4 { color: #f0876a; }
.bp-dodont__col ul { list-style: none; padding: 0; margin: 0; }
.bp-dodont__col li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.bp-dodont__col li::before { display: none; }
.bp-dodont__col.is-do li::after { content: "→"; position: absolute; left: 0; top: 0; color: var(--accent-text); }
.bp-dodont__col.is-dont li::after { content: "×"; position: absolute; left: 2px; top: -1px; color: #f0876a; font-size: 17px; }
@media (max-width: 700px) { .bp-dodont { grid-template-columns: 1fr; } }

/* scenario */
.bp-scenario {
  margin: 2.6em 0; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; background: var(--panel);
}
.bp-scenario__head { padding: 22px 26px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.bp-scenario__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); display: block; margin-bottom: 7px; }
.bp-scenario__head h3 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 23px !important; color: var(--ink) !important; }
.bp-scenario__body { padding: 24px 26px; }
.bp-scenario__body > *:first-child { margin-top: 0; }
.bp-scenario__body > *:last-child { margin-bottom: 0; }
.bp-scenario__body h3 { margin-top: 1.4em; }

/* takeaway */
.bp-takeaway {
  margin: 2.4em 0; padding: 22px 24px; border-radius: 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel);
}
.bp-takeaway__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 9px; }
.bp-takeaway p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); font-weight: 500; }

/* quote */
.bp-l-quote {
  margin: 2.2em 0; padding: 22px 26px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 12px 12px 0;
  font-size: 18px; line-height: 1.6; color: var(--ink);
}

/* tool card */
.bp-toolcard {
  margin: 2.4em 0; display: grid; grid-template-columns: 1fr auto; gap: 20px;
  align-items: center; padding: 24px 26px; border-radius: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
}
.bp-toolcard__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); display: block; margin-bottom: 8px; }
.bp-toolcard h4 { font-family: var(--f-disp); font-size: 19px; font-weight: 650; letter-spacing: -.015em; color: var(--ink); margin: 0 0 6px; }
.bp-toolcard p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
@media (max-width: 640px) { .bp-toolcard { grid-template-columns: 1fr; } }

/* notes & planning — v38.1: the previous build set display:flex on the li,
   which turned the numbered ::before badge into a flex item and swallowed the
   counter. Back to block layout with the badge absolutely positioned. */
.bp-notes-list li {
  display: block;
  position: relative;
  padding: 18px 20px 18px 64px;
  min-height: 62px;
  line-height: 1.55;
}
.bp-notes-list li::before {
  left: 18px;
  top: 18px;
  transform: none;
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.bp-notes-list li { background: var(--panel); border-color: var(--line); color: var(--ink); }
.bp-notes-dl .btn-primary,
.bp-tool-callout { color: var(--ink); }
.bp-tool-callout { background: var(--accent-soft); border-color: var(--accent-border); }
.bp-tool-callout a { color: var(--accent-text); }

/* ============================================================================
   7. BUTTONS + QUIZ
   v38.1: the previous build set dark text on Tutor's already-dark-on-green
   buttons, which produced the green-on-green contrast failures.
   ========================================================================== */

.btn-primary,
.tutor-btn-primary,
.tutor-lesson-prev-next a,
.tutor-quiz-wrapper .tutor-btn-primary {
  background: var(--accent);
  color: #06120a !important;
  font-weight: 650;
  border: 0;
}

.btn-ghost,
.tutor-btn-outline-primary,
.tutor-btn-ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.tutor-btn-outline-primary:hover { border-color: var(--accent-border) !important; color: var(--accent-text) !important; }

/* --- quiz --- */
.tutor-quiz-wrapper,
.tutor-quiz-single-wrapper,
.quiz-attempt-details { background: var(--bg); color: var(--text); }

/* stock cartoon illustration */
.tutor-quiz-top-thumbnail,
.tutor-quiz-wrapper .tutor-quiz-top-thumbnail,
.tutor-quiz-wrapper > .tutor-card > .tutor-quiz-top-thumbnail,
.tutor-quiz-wrapper img[src*="quiz"],
.tutor-quiz-wrapper img[src*="placeholder"],
.tutor-quiz-attempt-details .tutor-quiz-top-thumbnail { display: none !important; }

.tutor-quiz-wrapper .tutor-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: none; padding: 34px;
}

.tutor-quiz-wrapper h3,
.tutor-quiz-title {
  font-family: var(--f-disp); font-weight: 700; font-size: 30px;
  letter-spacing: -.025em; color: var(--ink); margin-bottom: 8px;
}

.tutor-quiz-wrapper table {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 22px 0 26px;
}
.tutor-quiz-wrapper table td {
  padding: 15px 18px; border: 0; border-bottom: 1px solid var(--line2);
  color: var(--text); font-size: 15px; background: var(--panel);
}
.tutor-quiz-wrapper table td:first-child {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gray); width: 46%;
  background: var(--bg2); border-right: 1px solid var(--line);
}
.tutor-quiz-wrapper table tr:last-child td { border-bottom: 0; }
.tutor-quiz-wrapper table td svg { color: var(--accent-text); }

.tutor-quiz-question-wrapper,
.tutor-quiz-question {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px 30px; margin-bottom: 20px;
}
.tutor-quiz-question-title,
.tutor-quiz-question h4 {
  font-family: var(--f-disp); font-weight: 650; font-size: 21px;
  line-height: 1.35; letter-spacing: -.015em; color: var(--ink); margin-bottom: 20px;
}

.tutor-quiz-answer-single-option,
.tutor-quiz-answer-multiple-option,
.tutor-quiz-answer-wrap label {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 11px; background: transparent; cursor: pointer;
  font-size: 16px; line-height: 1.5; color: var(--text);
  transition: border-color .18s, background .18s, color .18s;
}
.tutor-quiz-answer-wrap label:hover {
  border-color: var(--accent-border); background: var(--accent-soft); color: var(--ink);
}
.tutor-quiz-answer-wrap input[type="radio"],
.tutor-quiz-answer-wrap input[type="checkbox"] {
  accent-color: var(--accent); margin-top: 3px; flex-shrink: 0; width: 17px; height: 17px;
}

.tutor-quiz-wrapper textarea,
.tutor-quiz-wrapper input[type="text"] {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 17px; color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
}
.tutor-quiz-wrapper textarea { min-height: 130px; resize: vertical; }
.tutor-quiz-wrapper textarea:focus,
.tutor-quiz-wrapper input[type="text"]:focus { outline: 0; border-color: var(--accent); }
.tutor-quiz-wrapper textarea::placeholder { color: var(--gray); }

.tutor-progress-bar { background: var(--line); border-radius: 100px; height: 6px; overflow: hidden; }
.tutor-progress-value { background: var(--accent); border-radius: 100px; }

.bp-quiz-feedback {
  border-radius: 12px; padding: 16px 20px; font-size: 15px; line-height: 1.6;
  margin-top: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--text);
}
.bp-quiz-feedback.is-right { border-color: var(--accent-border); background: var(--accent-soft); }
.bp-quiz-feedback.is-wrong { border-color: rgba(240,135,106,.36); background: rgba(240,135,106,.08); }
.bp-quiz-feedback__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 7px; color: var(--gray); }



/* ---- Foundation page: spacing for the auto-placed blocks ---- */
.bp-foundation-carousel { margin: 56px 0 8px; }
.bp-foundation-carousel + .bp-logogrid { margin-top: 40px; }

/* ============================================================================
   10. v38.4 — charts that actually render, and move
   The fill was a <span>, so height:100% did nothing on an inline box and every
   bar drew empty. It is a block now, and animates to width on scroll.
   ========================================================================== */

.bp-chart__track {
  position: relative;
  display: block;
  height: 14px;
  border-radius: 100px;
  background: #eceae2;
  overflow: hidden;
}

.bp-chart__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--accent);
  transition: width 1.1s cubic-bezier(.22,.61,.36,1);
  will-change: width;
}

.bp-chart[data-bp-reveal].is-in .bp-chart__fill { width: var(--w); }
.bp-chart__fill.is-muted { background: #c9ccc2; }
.bp-chart__fill.is-warn  { background: #ef7a5a; }

.bp-chart__head { margin-bottom: 8px; }
.bp-chart__name { color: var(--text); font-size: 15px; }
.bp-chart__val  { color: var(--ink); font-weight: 700; font-family: var(--f-mono); font-size: 14px; }
.bp-chart__row  { margin-bottom: 20px; }
.bp-chart__row:last-of-type { margin-bottom: 0; }

/* rows respond to the pointer so the block reads as a live thing */
.bp-chart__row:hover .bp-chart__fill { filter: saturate(1.25); }
.bp-chart__row:hover .bp-chart__val  { color: var(--accent-text); }

/* --- reveal on scroll --- */
[data-bp-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
[data-bp-reveal].is-in { opacity: 1; transform: none; }

/* --- stat cards: give them a surface and a hover --- */
.bp-statrow__item {
  transition: background .2s ease, transform .2s ease;
}
.bp-statrow__item:hover { background: #fbfbf9; transform: translateY(-2px); }

/* --- pull figure --- */
.bp-pull { border: 1px solid var(--line); }
.bp-pull__fig { line-height: 1.02; }

@media (prefers-reduced-motion: reduce) {
  [data-bp-reveal] { opacity: 1; transform: none; transition: none; }
  .bp-chart__fill { transition: none; }
}

/* ---- fill-in-the-blank: make the typed input obvious ---- */
.tutor-quiz-question input[type="text"],
.tutor-quiz-answer-wrap input[type="text"],
.quiz-attempt-answers input[type="text"] {
  display: inline-block;
  min-width: 220px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--accent);
  border-radius: 8px;
  background: #fbfbf9;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
}
.tutor-quiz-question input[type="text"]:focus {
  outline: 0;
  border-color: var(--accent);
  background: #fff;
}

/* ============================================================================
   11. v38.6 — list markers and spacing
   ========================================================================== */

/* Double bullets: the theme draws a ::before dot and the browser was still
   drawing the native ::marker. Kill the native one everywhere in a lesson. */
.bp-lesson ul,
.bp-lesson ol,
.tutor-lesson-content ul,
.tutor-course-topic-single-body ul {
  list-style: none !important;
  list-style-type: none !important;
}
.bp-lesson ul > li::marker,
.tutor-lesson-content ul > li::marker { content: "" !important; font-size: 0 !important; }
.bp-lesson ul > li { list-style: none !important; }

/* Do / Don't lists: one marker, aligned, with room to breathe */
.bp-lesson ul > li { padding-left: 26px; margin-bottom: .7em; }
.bp-lesson ul > li::before {
  content: "" !important;
  position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* Do's / Don'ts headings get separation from the block above */
.bp-lesson h2 + ul, .bp-lesson h3 + ul { margin-top: .9em; }

/* quiz: the fill-in-the-blank row */
.tutor-quiz-question .tutor-quiz-answer-wrap { margin-top: 8px; }
