
/* Courses and books: the page that sells. Page layout only: everything reads system tokens.
   Order: the leucovorin course with its Enroll button, the two series, the books, how enrolling works. */

/* ---- 1 · Opening: what is sold, and the one course to start with -------- */
.sell{padding-block:var(--section-tight)}
.sell__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s6) clamp(2rem,1rem + 4vw,5rem)}
.sell h1 .voice{display:block}
.sell__copy>*+*{margin-top:var(--s4)}
.sell__jump{display:flex;flex-wrap:wrap;gap:0 2rem}
.sell__label{margin-bottom:var(--s3)}
@media (min-width:1000px){
  /* The copy and the caution share the left column; the course keeps the right one. On a phone the course comes before the caution. */
  .sell__grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto 1fr;align-items:start}
  .sell__copy{grid-column:1;grid-row:1}
  .sell__feat{grid-column:2;grid-row:1/3}
  .sell__note{grid-column:1;grid-row:2}
}
/* PROMOTE .feat: one item with its facts and its action, the strongest object in its section (the same block as on the home page). */
.feat{display:grid;gap:var(--s4);box-shadow:inset 0 4px 0 var(--rule-strong),inset 0 0 0 1px var(--rule)}
.feat__title{font-family:var(--serif);font-weight:var(--display-wt);font-size:var(--t-d2);line-height:1.06;letter-spacing:-.008em}
.feat__sum{color:var(--fg-2)}
.feat__facts{font-size:var(--t-small);color:var(--fg-2)}
.feat__facts .sep{margin-inline:.5em;color:var(--fg-3)}
.feat__buy{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3) var(--s5);padding-top:var(--s4);border-top:1px solid var(--rule)}
.feat__price{font-family:var(--serif);font-size:2.25rem;line-height:1}
@media (max-width:479px){.feat__buy .btn{width:100%}}

/* ---- 2 · The series ----------------------------------------------------- */
/* The band label: a label on the 4-column side, one sentence on the 8-column side. */
.band-label{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s3) clamp(2rem,1rem + 4vw,5rem);margin-bottom:clamp(2rem,1.4rem + 2.6vw,3.5rem)}
@media (min-width:900px){
  .band-label{grid-template-columns:repeat(12,minmax(0,1fr));align-items:baseline}
  .band-label>:first-child{grid-column:span 4}
  .band-label>:last-child{grid-column:span 8}
}
/* Ledger: a labelled group of rows. On wide screens the label and its side note sit on the left,
   one sentence and the rows on the right. On a phone the side note follows the rows. */
.ledger{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s4) clamp(2rem,1rem + 4vw,5rem);padding-top:var(--s4);border-top:2px solid var(--rule-strong)}
.ledger+.ledger{margin-top:clamp(3rem,2rem + 4vw,5.5rem)}
.ledger__title{font-size:calc(var(--t-d2) * .8)}
.ledger__intro{color:var(--fg-2);max-width:var(--measure)}
.ledger__aside{font-size:var(--t-small);line-height:1.5;color:var(--fg-2)}
.ledger__aside>*+*{margin-top:var(--s3)}
.ledger__aside b{display:block;font-family:var(--serif);font-weight:var(--display-wt);font-size:1.375rem;line-height:1.2;color:var(--fg)}
/* A text action that may run to two lines keeps its arrow beside the last word. */
.ledger__aside .go{display:inline-block;min-height:0;padding-block:.6rem}
.ledger__aside .go .i{display:inline-block;vertical-align:-.22em;margin-left:.35em}
.go__tail{white-space:nowrap}
@media (min-width:900px){
  .ledger{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto 1fr;row-gap:var(--s5)}
  .ledger__title{grid-column:1/span 4;grid-row:1}
  .ledger__intro{grid-column:5/-1;grid-row:1}
  .ledger__rows{grid-column:5/-1;grid-row:2}
  .ledger__aside{grid-column:1/span 4;grid-row:2}
}
/* In a ledger the price column also says where the row leads. It is a label, not a second link:
   clicks fall through to the row's own link. */
.ledger .row__aside{flex-wrap:wrap;gap:.3rem .75rem;margin-top:.2rem;pointer-events:none;color:var(--fg-2)}
.ledger .row__aside b{color:var(--fg);font-size:1.0625rem}
.ledger .row__aside .tag{order:1}
.ledger .row__aside .row__out{order:2}
@media (min-width:760px) and (max-width:1179px){
  .ledger .row{grid-template-columns:minmax(0,1fr)}
  .ledger .row__aside{grid-column:1;grid-row:auto;align-self:auto;justify-content:flex-start;min-width:0}
}
@media (min-width:1180px){
  .ledger .row__aside{display:grid;grid-template-columns:auto auto;justify-content:end;justify-items:end;align-items:center;gap:.25rem .6rem;margin-top:0}
  .ledger .row__aside .tag{order:-1;grid-column:1}
  .ledger .row__aside .num{grid-column:2}
  .ledger .row__out{grid-column:1/-1}
}
/* A fact in a row's meta line never breaks in the middle ("No CME credit", a name). */
.ledger .row__meta .nb:nth-last-child(-n+2){white-space:nowrap}
@media (min-width:760px){.ledger .row__meta .nb{white-space:nowrap}}

/* ---- 3 · Books ---------------------------------------------------------- */
/* The book: the cover on the label column. The whole block is one link target, as a row is. */
.feature{position:relative;margin-bottom:clamp(3rem,2rem + 4vw,5.5rem)}
.feature__go::after{content:"";position:absolute;inset:0}
@media (max-width:899px){.feature .cover img{width:min(100%,11rem)}}
@media (min-width:640px) and (max-width:899px){.feature{grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:center}}

/* ---- 4 · How enrolling works -------------------------------------------- */
.how__side>*+*{margin-top:var(--s4)}
.how .note{margin-top:var(--s6)}
.how .note p+p{margin-top:.5rem}
.how__next{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s2) var(--s6);margin-top:var(--section-tight);padding-top:var(--s4);border-top:2px solid var(--rule-strong)}
