/* ==========================================================================
   Blueprint workshop (/blueprint/): sign-up page and course.
   Loaded only on those pages. Uses the tokens from main.css.
   ========================================================================== */

/* -- Sign-up page ---------------------------------------------------------- */
.bp-hero { padding-block: var(--s-7) var(--s-8); }
.bp-hero__grid { display: grid; gap: var(--s-6); align-items: start; grid-template-areas: "text" "form" "media"; }
.bp-hero__text { grid-area: text; }
.bp-signup { grid-area: form; }
.bp-hero__media { grid-area: media; }
.bp-hero__sub { margin-top: var(--s-4); font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; }
.bp-hero__text .t-lead { margin-top: var(--s-2); max-width: 34rem; }
.bp-hero__meta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-small); font-weight: 500; }
.bp-hero__meta span { display: inline-flex; align-items: center; gap: var(--s-2); }
.bp-hero__meta span::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--lime); border: 1px solid var(--ink); }
.bp-closes { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--text-muted); }
.bp-signup__lead { margin: var(--s-2) 0 var(--s-5); }
.bp-signup .form-status [data-action]:empty { display: none; }
.bp-signup .form-status [data-action] { margin-top: var(--s-4); }
.bp-closed[hidden], [data-bp-open][hidden] { display: none; }
@media (min-width: 56.25em) {
  .bp-hero__grid { grid-template-columns: 1.1fr 0.9fr; grid-template-areas: "text form" "media form"; grid-template-rows: auto 1fr; column-gap: var(--s-8); row-gap: var(--s-6); }
  .bp-hero__media { align-self: start; }
}

/* The thread: objective → insight → strategy → communication → creative → measure */
.bp-thread { display: grid; gap: var(--s-3); }
.bp-thread__end { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border: 1px dashed var(--ink); border-radius: var(--radius-s); background: var(--white); }
.bp-thread__end strong { font-weight: 500; }
.bp-flow { display: grid; gap: var(--s-2); }
.bp-flow li { background: var(--ink); color: var(--white); border-radius: var(--radius-s); padding: var(--s-3) var(--s-4); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.bp-flow__n { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; }
.bp-flow li > span:last-child { font-size: var(--fs-small); color: #c9cdd1; text-align: right; }
.bp-flow li:first-child { box-shadow: inset 4px 0 0 var(--lime); }
@media (min-width: 56.25em) {
  .bp-thread { grid-template-columns: 9.5rem 1fr 9.5rem; align-items: stretch; }
  .bp-flow { grid-template-columns: repeat(4, 1fr); }
  .bp-flow li { flex-direction: column; justify-content: center; }
  .bp-flow li > span:last-child { text-align: left; }
  .bp-thread__end { align-content: center; }
}

.bp-two { display: grid; gap: var(--s-6); }
@media (min-width: 56.25em) { .bp-two { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); } .bp-two--sample { grid-template-columns: 1fr 1fr; align-items: center; } }
.bp-ticks { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.bp-ticks li { padding: var(--s-3) 0 var(--s-3) var(--s-6); border-bottom: 1px solid var(--line); position: relative; color: var(--text-muted); line-height: 1.5; font-size: 0.9375rem; }
.bp-ticks li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.75rem; height: 0.75rem; background: var(--lime); border: 1px solid var(--ink); }
.bp-ticks strong { color: var(--text); font-weight: 500; }
.bp-who { display: grid; border-top: 1px solid var(--ink); }
.bp-who li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; }

/* Sample blueprint preview */
.bp-sample { margin: 0; position: relative; }
.bp-sample__tag { position: absolute; top: calc(-1 * var(--s-3)); right: var(--s-4); z-index: 1; background: var(--lime); border: 1px solid var(--ink); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px var(--s-3); }
.bp-sample__doc { background: var(--white); border: 1px solid var(--ink); border-radius: var(--radius-s); padding: var(--s-5); box-shadow: 8px 8px 0 var(--paper-2); }
.bp-sample__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; margin: var(--s-4) 0 var(--s-3); }
.bp-sample__row { display: grid; grid-template-columns: 2rem 1fr; gap: var(--s-3); border-top: 1px solid var(--line); padding: var(--s-3) 0; font-size: var(--fs-small); }
.bp-sample__row > span { font-size: var(--fs-label); font-weight: 500; color: var(--text-muted); padding-top: 2px; }
.bp-sample__row strong { font-weight: 500; display: block; }
.bp-sample__row p { color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.bp-sample__more { border-top: 1px solid var(--line); padding-top: var(--s-3); font-size: var(--fs-label); color: var(--text-muted); }
.bp-sample figcaption { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--text-muted); }

/* -- Course shell ---------------------------------------------------------- */
.bp-course { padding-block: var(--s-6) var(--s-9); }
.bp-course__grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 56.25em) {
  .bp-course { padding-top: var(--s-7); }
  .bp-course__grid { grid-template-columns: 15.5rem minmax(0, 1fr); gap: var(--s-7); }
  .bp-side { position: sticky; top: calc(var(--header-h) + var(--s-5)); max-height: calc(100vh - var(--header-h) - var(--s-7)); overflow-y: auto; }
}

.bp-side__drawer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); }
.bp-side__drawer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 2.75rem; }
.bp-side__drawer summary::-webkit-details-marker { display: none; }
.bp-side__drawer summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.bp-side__drawer[open] summary::after { content: "–"; }
.bp-side__progress { font-size: var(--fs-label); color: var(--text-muted); margin-left: auto; }
@media (min-width: 56.25em) {
  .bp-side__drawer summary { cursor: default; pointer-events: none; }
  .bp-side__drawer summary::after { content: none; }
}
.bp-steps { padding: 0 var(--s-3) var(--s-3); display: grid; gap: var(--s-1); }
.bp-steps ol { display: grid; gap: var(--s-1); }
.bp-steps__part > span { display: block; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--text-muted); padding: var(--s-3) var(--s-2) var(--s-1); }
.bp-step { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-2); border-radius: var(--radius-s); text-decoration: none; color: var(--text); font-size: 0.9375rem; line-height: 1.3; min-height: 2.75rem; }
.bp-step:hover { background: var(--paper); }
.bp-step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bp-step small { display: block; font-size: var(--fs-label); color: var(--text-muted); margin-top: 2px; }
.bp-step__dot { width: 0.875rem; height: 0.875rem; border: 1.5px solid var(--ink); border-radius: 50%; flex: none; margin-top: 0.2rem; background: var(--white); }
.bp-step.is-done .bp-step__dot { background: var(--ink); }
.bp-step.is-current { font-weight: 500; background: var(--paper); }
.bp-step.is-current .bp-step__dot { box-shadow: 0 0 0 3px var(--lime); }
.bp-side__wb { display: inline-flex; margin-top: var(--s-4); font-size: var(--fs-small); }

.bp-main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: var(--s-5) var(--gutter) var(--s-6); display: grid; gap: var(--s-6); min-width: 0; }
@media (min-width: 56.25em) { .bp-main { padding: var(--s-7) var(--s-7) var(--s-6); } }
.bp-head h1 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; margin-top: var(--s-3); }
.bp-head .t-lead { margin-top: var(--s-4); max-width: var(--measure); }
.bp-idea { max-width: var(--measure); }
.bp-idea p + p { margin-top: var(--s-4); }

.bp-example { border-left: 4px solid var(--lime); background: var(--paper); padding: var(--s-4) var(--s-5); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.bp-example .prose { margin-top: var(--s-2); font-size: 0.9375rem; }
.bp-example ul { gap: var(--s-2); }

.bp-turn { border-top: 2px solid var(--ink); padding-top: var(--s-5); display: grid; gap: var(--s-6); }
.bp-turn__head .t-muted { margin-top: var(--s-2); }
.bp-turn__wb { white-space: nowrap; }

/* -- Exercises ------------------------------------------------------------- */
.bp-group { display: grid; gap: var(--s-4); min-width: 0; }
.bp-group__title { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.bp-group__title span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-muted); margin-left: var(--s-2); font-size: var(--fs-small); }
.bp-field { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.bp-field label { font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.bp-field .hint, .bp-formula .hint { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.45; }
.bp-in.textarea { min-height: 0; resize: vertical; background: var(--paper); border-color: transparent; border-bottom: 1.5px solid var(--field-border); border-radius: var(--radius-s) var(--radius-s) 0 0; line-height: 1.5; field-sizing: content; }
.bp-in.textarea:focus { background: var(--white); border-color: var(--ink); border-radius: var(--radius-s); }
.bp-grid { display: grid; gap: var(--s-4); }
@media (min-width: 40em) { .bp-grid { grid-template-columns: 1fr 1fr; } .bp-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.bp-formula { display: grid; gap: var(--s-3); }
.bp-formula__row { display: grid; gap: var(--s-2); }
.bp-formula__key { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; }
@media (min-width: 40em) { .bp-formula__row { grid-template-columns: 11rem 1fr; align-items: start; gap: var(--s-4); } .bp-formula__key { padding-top: 0.45rem; } }

.bp-checks { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.bp-checks legend { margin-bottom: var(--s-3); }
.bp-story { border-top: 1px solid var(--ink); padding-top: var(--s-4); }
.bp-story__title { display: flex; align-items: center; gap: var(--s-3); font-size: 1.0625rem; font-weight: 500; }
.bp-letter { width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white); font-size: var(--fs-label); font-weight: 500; border-radius: var(--radius-s); flex: none; }
.bp-alt { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.bp-alt__n { width: 1.75rem; height: 1.75rem; border: 1px solid var(--ink); border-radius: var(--radius-s); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-label); font-weight: 500; }
.bp-card { border: 1px solid var(--ink); border-radius: var(--radius-s); padding: var(--s-4); display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
@media (min-width: 40em) { .bp-card { padding: var(--s-5); } }
.bp-jobs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.bp-jobs legend { font-weight: 500; font-size: 0.9375rem; margin-bottom: var(--s-2); }
.bp-pill { position: relative; }
.bp-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.bp-pill span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-4); border: 1px solid var(--field-border); border-radius: 999px; font-size: var(--fs-small); }
.bp-pill input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.bp-pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.bp-month { border-top: 1px solid var(--ink); padding-top: var(--s-3); display: grid; gap: var(--s-3); align-content: start; }
.bp-month h4 { font-size: var(--fs-h3); font-weight: 500; margin-top: calc(-1 * var(--s-2)); }
.bp-month p { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.45; }
.bp-extra { background: var(--paper); padding: var(--s-4); border-radius: var(--radius-s); }
.bp-extra .bp-in.textarea { background: var(--white); }
.bp-extra .prose { font-size: 0.9375rem; }

.bp-save { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); color: var(--text-muted); }
.bp-save span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line); flex: none; }
.bp-save.is-saved span { background: var(--ink); box-shadow: 0 0 0 3px var(--lime); }

.bp-team { font-size: 0.9375rem; color: var(--text-muted); max-width: var(--measure); }
.bp-team strong { color: var(--text); font-weight: 500; }
.bp-test { border: 1.5px solid var(--ink); border-radius: var(--radius-s); padding: var(--s-4) var(--s-5); }
.bp-test .check { align-items: flex-start; }
.bp-test .label { display: block; margin-bottom: var(--s-1); }
.bp-test strong { font-weight: 500; font-size: 1.0625rem; line-height: 1.4; }
.bp-rule { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.bp-rule p { font-size: var(--fs-h3); font-weight: 500; margin-top: var(--s-2); }

.bp-pager { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: var(--s-5); }
.bp-pager .btn { max-width: 100%; }
@media (max-width: 39.99em) { .bp-pager { flex-direction: column-reverse; } .bp-pager .btn { width: 100%; justify-content: center; } }

/* -- One-page blueprint ---------------------------------------------------- */
.bp-sheet { border: 1px solid var(--ink); border-radius: var(--radius-s); padding: var(--s-5); display: grid; gap: var(--s-4); background: var(--white); }
@media (min-width: 40em) { .bp-sheet { padding: var(--s-6); } }
.bp-sheet__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); border-bottom: 2px solid var(--ink); padding-bottom: var(--s-3); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); flex-wrap: wrap; }
.bp-sheet__brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text); font-weight: 500; letter-spacing: 0.12em; }
.bp-sheet__brand svg { width: 0.8rem; height: auto; }
.bp-sheet__row { display: grid; gap: var(--s-2); border-top: 1px solid var(--line); padding-top: var(--s-3); }
@media (min-width: 40em) { .bp-sheet__row { grid-template-columns: 9rem 1fr; gap: var(--s-4); } }
.bp-sheet__label { font-weight: 500; display: flex; flex-direction: column; gap: 2px; }
.bp-sheet__edit { font-size: var(--fs-label); font-weight: 400; color: var(--text-muted); }
.bp-sheet__dates { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.bp-sheet__test { font-size: var(--fs-small); color: var(--text-muted); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.bp-sheet__test strong { color: var(--text); font-weight: 500; }
.bp-actions { margin-top: calc(-1 * var(--s-2)); }
.bp-send { border: 1.5px solid var(--ink); border-radius: var(--radius-s); padding: var(--s-5); display: grid; gap: var(--s-4); }
@media (min-width: 40em) { .bp-send { padding: var(--s-6); } }
.bp-send .form { gap: var(--s-4); }
.bp-cta { background: var(--ink); color: var(--white); border-radius: var(--radius-s); padding: var(--s-6); display: grid; gap: var(--s-4); justify-items: start; }
.bp-cta h2 { font-size: var(--fs-h3); font-weight: 500; }
.bp-cta p { color: #c9cdd1; max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) { .bp-in { transition: none; } }

/* -- Course-only header and footer ----------------------------------------- */
.bp-top { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--white); }
.bp-top__bar { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.bp-top__brand { flex: none; }
.bp-top__title { font-size: var(--fs-small); color: #c9cdd1; padding-left: var(--s-4); border-left: 1px solid #3a4146; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-top__right { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); flex: none; }
.bp-top__step { font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: #c9cdd1; }
.bp-top__link { color: var(--white); font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; }
.bp-top__progress { height: 3px; background: #262d32; }
.bp-top__progress span { display: block; height: 100%; background: var(--lime); }
@media (max-width: 39.99em) { .bp-top__title, .bp-top__link { display: none; } }
.bp-foot { background: var(--ink); color: #9aa1a7; font-size: var(--fs-small); }
.bp-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); }
.bp-foot__links { display: flex; gap: var(--s-5); align-items: center; }
.bp-foot a, .bp-foot button { color: #c9cdd1; font-size: inherit; }
@media (min-width: 56.25em) { .bp-side { top: calc(var(--header-h) + 3px + var(--s-5)); } }

/* -- Photos ---------------------------------------------------------------- */
.bp-photo { margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--paper); }
.bp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bp-photo--hero { aspect-ratio: 376 / 336; max-width: 22rem; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--lime); }
@media (max-width: 55.99em) { .bp-photo--hero { max-width: 16rem; } }
.bp-photo--who { margin-top: var(--s-6); max-width: 23.5rem; aspect-ratio: 376 / 336; }
.bp-head--img { display: grid; gap: var(--s-5); align-items: center; }
.bp-head--img .bp-photo { max-width: 15rem; aspect-ratio: 376 / 336; }
@media (min-width: 40em) { .bp-head--img { grid-template-columns: minmax(0, 1fr) 12.5rem; } .bp-head--img .bp-photo { max-width: none; } }
@media (min-width: 68.75em) { .bp-head--img { grid-template-columns: minmax(0, 1fr) 15rem; } }

/* -- Lesson rhythm: why, numbered parts, guidance ------------------------- */
.bp-why { margin-top: var(--s-4); font-size: var(--fs-lead); font-weight: 500; max-width: var(--measure); line-height: 1.5; padding-left: var(--s-4); border-left: 3px solid var(--lime); }
.bp-kicker { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--s-3); }
.bp-kicker span { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 0.6875rem; letter-spacing: 0; }
.bp-example .bp-kicker { margin-bottom: var(--s-2); }
.bp-turn__intro { margin-top: var(--s-1); font-size: 1.0625rem; line-height: 1.6; max-width: var(--measure); }
.bp-turn__head .t-small { margin-top: var(--s-2); }
.bp-group__intro { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; max-width: var(--measure); margin-top: calc(-1 * var(--s-2)); }
.bp-group__title + .bp-group__intro { margin-top: calc(-1 * var(--s-2)); }
.bp-in.textarea::placeholder, .bp-in.input::placeholder { color: #8d9399; font-style: italic; opacity: 1; }
.bp-in.textarea:focus::placeholder { color: #b3b8bc; }
.bp-stuck { background: var(--paper); border-radius: var(--radius-s); padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-4) + 2.25rem); font-size: 0.9375rem; position: relative; line-height: 1.5; }
.bp-stuck::before { content: "?"; position: absolute; left: var(--s-4); top: var(--s-3); width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-size: 0.8125rem; }

/* -- The finished blueprint document -------------------------------------- */
.bp-doc-tools { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.bp-doc-tools .link { font-size: var(--fs-small); margin-left: var(--s-2); }
.bp-doc { border: 1px solid var(--ink); border-radius: var(--radius-s); background: var(--white); padding: var(--s-5); display: grid; gap: 0; }
@media (min-width: 40em) { .bp-doc { padding: var(--s-7) var(--s-7) var(--s-6); } }
.bp-doc__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: var(--s-3); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.bp-sheet__brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text); font-weight: 500; letter-spacing: 0.12em; }
.bp-sheet__brand svg { width: 0.8rem; height: auto; }
.bp-doc__title { padding: var(--s-6) 0 var(--s-5); }
.bp-doc__title h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.bp-doc__title h2 .bp-doc__meta + .bp-doc__meta .bp-doc__val { color: var(--text-muted); font-weight: 300; font-size: 0.5em; align-self: flex-end; }
.bp-doc__meta { display: inline-flex; align-items: baseline; }
.bp-doc__meta + .bp-doc__meta { align-self: flex-end; }
.bp-doc__title p { margin-top: var(--s-2); color: var(--text-muted); }
.bp-doc__sec { display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s-3); border-top: 1px solid var(--ink); padding: var(--s-5) 0; break-inside: avoid; }
@media (min-width: 40em) { .bp-doc__sec { grid-template-columns: 3.5rem 1fr; gap: var(--s-4); } }
.bp-doc__num { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; padding-top: 0.35rem; }
.bp-doc__num::before { content: ""; display: block; width: 0.625rem; height: 0.625rem; background: var(--lime); border: 1px solid var(--ink); margin-bottom: var(--s-2); }
.bp-doc__body h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; }
.bp-doc__intro { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.55; margin-top: var(--s-1); max-width: var(--measure); }
.bp-doc__body dl { margin-top: var(--s-4); display: grid; gap: var(--s-4); }
.bp-doc__row { display: grid; gap: var(--s-1); }
@media (min-width: 40em) { .bp-doc__row { grid-template-columns: 11rem 1fr; gap: var(--s-4); } }
.bp-doc__row dt { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); padding-top: 0.2rem; }
.bp-doc__row dd { margin: 0; min-width: 0; }
.bp-doc__val { white-space: pre-line; line-height: 1.6; overflow-wrap: anywhere; }
.bp-doc__empty { color: #8d9399; font-size: var(--fs-small); font-style: italic; }
.bp-doc__empty .link { font-style: normal; }
.bp-doc__edit { display: none; }
.bp-doc.is-editing .bp-doc__edit { display: block; width: 100%; }
.bp-doc.is-editing .bp-doc__val, .bp-doc.is-editing .bp-doc__empty { display: none !important; }
.bp-doc.is-editing .bp-doc__meta { display: block; width: 100%; font-size: 1rem; letter-spacing: 0; }
.bp-doc.is-editing .bp-doc__title h2 { display: grid; gap: var(--s-2); }
.bp-doc__date { max-width: 100%; }
.bp-doc__foot { border-top: 2px solid var(--ink); padding-top: var(--s-4); font-size: var(--fs-small); color: var(--text-muted); }
.bp-doc__sec--checks .bp-grid { margin-top: var(--s-4); }

@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  .bp-top, .bp-foot, .cookie-banner, .cookie-modal, .skip-link, .bp-side, .bp-main > :not(.bp-doc) { display: none !important; }
  body, .bp-course, .on-paper { background: #fff !important; }
  .bp-course, .bp-course__grid, .bp-main, .container { padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; display: block !important; max-width: none !important; }
  .bp-doc { border: 0; padding: 0; font-size: 10pt; }
  .bp-doc__title { padding: 6mm 0 4mm; }
  .bp-doc__title h2 { font-size: 22pt; }
  .bp-doc__sec { padding: 4mm 0; grid-template-columns: 10mm 1fr; }
  .bp-doc__row { grid-template-columns: 38mm 1fr; gap: 4mm; }
  .bp-doc__body dl { gap: 2.5mm; margin-top: 3mm; }
  .bp-doc__empty .link { display: none; }
  .bp-doc__date { border: 0; border-bottom: 0.3mm solid #999; border-radius: 0; padding: 1mm 0; min-height: 0; }
}

/* -- Stage rhythm: Understand / Consider / Apply / Decide ------------------- */
.bp-rhythm { display: grid; gap: var(--s-2); margin-top: var(--s-4); counter-reset: r; }
.bp-rhythm li { display: grid; grid-template-columns: 2rem 7rem 1fr; gap: var(--s-3); align-items: baseline; padding: var(--s-3) 0; border-top: 1px solid var(--line); counter-increment: r; }
.bp-rhythm li::before { content: counter(r); width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 500; }
.bp-rhythm strong { font-weight: 500; }
.bp-rhythm span { color: var(--text-muted); font-size: 0.9375rem; }
@media (max-width: 39.99em) { .bp-rhythm li { grid-template-columns: 2rem 1fr; } .bp-rhythm span { grid-column: 2; } }
.bp-decide { border: 1.5px solid var(--ink); border-left: 6px solid var(--lime); border-radius: var(--radius-s); padding: var(--s-5); display: grid; gap: var(--s-5); background: var(--white); }
@media (min-width: 40em) { .bp-decide { padding: var(--s-6); } }
.bp-decide .bp-kicker { margin-bottom: 0; }
.bp-decide__note { font-size: var(--fs-small); color: var(--text-muted); margin-top: calc(-1 * var(--s-4)); }
.bp-decide .bp-field label { font-size: 1.0625rem; }
.bp-decide .bp-test { border-width: 1px; }
.bp-recap { display: grid; gap: var(--s-3); }
@media (min-width: 40em) { .bp-recap { grid-template-columns: repeat(3, 1fr); } }
.bp-recap__item { background: var(--paper); border-radius: var(--radius-s); padding: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.bp-recap__item p { font-size: 0.9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.bp-recap__empty { color: #8d9399; font-style: italic; }
.bp-recap__edit { font-size: var(--fs-small); color: var(--text-muted); justify-self: start; min-height: 2.75rem; display: inline-flex; align-items: center; }
.bp-stuck strong { font-weight: 500; margin-right: var(--s-1); }
.bp-doc__filter { border-top: 2px solid var(--ink); padding-top: var(--s-4); display: grid; gap: var(--s-2); break-inside: avoid; }
.bp-doc__filter h3 { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.bp-doc__filter .bp-doc__val { font-size: var(--fs-small); color: var(--text-muted); }

@media (max-width: 39.99em) {
  .bp-doc { padding: var(--s-4); }
  .bp-doc__sec { grid-template-columns: 1fr; gap: var(--s-1); }
  .bp-doc__num { display: flex; align-items: center; gap: var(--s-2); padding-top: 0; }
  .bp-doc__num::before { margin-bottom: 0; }
  .bp-doc__title h2 { font-size: 1.75rem; }
}
/* On phones the lesson photo would push the exercise down: keep the work first. */
@media (max-width: 39.99em) { .bp-head--img .bp-photo { display: none; } }
