
/* The Folate Fix. Page layout only: everything reads system tokens. */

/* Head: the cover on the left, everything a buyer needs on the right.
   On a phone the title comes first, then the cover, then the facts and the retailers. */
.book-head{padding-block:clamp(1.25rem,.9rem + 1.6vw,2.25rem) var(--section)}
.book-head__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s6) clamp(2rem,1rem + 4vw,5rem);margin-top:var(--s5)}
.book-head__title>*+*{margin-top:var(--s3)}
.book-head__body>*+*{margin-top:var(--s5)}
/* The shared breadcrumb sets no cross-axis alignment, so the current page sits high. */
.crumbs{align-items:center}
.book-head .cover img{width:min(100%,11rem)}
@media (min-width:700px){
  .book-head__grid{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:auto 1fr;margin-top:var(--s6)}
  .book-head__cover{grid-column:1/span 5;grid-row:1/span 2;align-self:start}
  .book-head__title{grid-column:6/-1;grid-row:1}
  .book-head__body{grid-column:6/-1;grid-row:2}
  .book-head .cover{padding-block:clamp(2.5rem,1rem + 4vw,4.5rem)}
  .book-head .cover img{width:min(100%,17rem)}
}
.book-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:560px) and (max-width:699px),(min-width:1000px){.book-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Hand-off: a label, the retailer rows, then where you pay and who sells it. */
.handoff>*+*{margin-top:var(--s3)}
.handoff__note{font-size:var(--t-cap);line-height:1.55;color:var(--fg-3);max-width:var(--measure)}
.buy a span:last-child{flex:none;text-align:right}
.buy a .i{width:1.1rem;height:1.1rem;color:var(--fg)}
/* On a phone the price goes under the retailer's name and the arrow keeps the right edge. */
@media (max-width:479px),(min-width:700px) and (max-width:899px){
  .buy a{position:relative;flex-wrap:wrap;gap:.15rem 1rem;padding:.8rem 2rem .8rem 0}
  .buy a span:last-child{flex:1 1 100%;justify-content:flex-start;text-align:left}
  .buy a .i{position:absolute;right:0;top:50%;margin-top:-.55rem}
}

/* Who it is for: two readers and one caution, side by side. */
.who{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--gap)}
.who__reader{padding-top:var(--s4);border-top:2px solid var(--rule-strong)}
.who__reader>*+*{margin-top:var(--s2)}
.who__reader p{color:var(--fg-2)}
@media (min-width:640px){.who{grid-template-columns:repeat(2,minmax(0,1fr))}.who__caution{grid-column:1/-1}}
@media (min-width:1000px){.who{grid-template-columns:repeat(3,minmax(0,1fr))}.who__caution{grid-column:auto;align-self:start}}

/* What is inside: four plain entries on hairlines. */
.inside>li{padding-top:var(--s4);border-top:1px solid var(--rule)}
.inside>li>*+*{margin-top:var(--s2)}
.inside p{color:var(--fg-2);font-size:1rem;line-height:1.5}

/* The author: one greyscale portrait, two sentences. */
.bio__photo{aspect-ratio:4/5;max-width:30rem}
.bio__photo img{object-position:58% 50%}
@media (max-width:899px){.bio__photo{aspect-ratio:3/2;max-width:none}.bio__photo img{object-position:58% 30%}}

/* Ledger: a label on the left, rows on the right (the same pattern as the hub). */
.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__title{font-size:calc(var(--t-d2) * .8)}
.ledger__label>*+*{margin-top:var(--s3)}
@media (min-width:900px){
  .ledger{grid-template-columns:repeat(12,minmax(0,1fr))}
  .ledger__label{grid-column:1/span 4}
  .ledger__rows{grid-column:5/-1}
  .ledger__rows>.rows{border-top:0}
  .ledger__rows>.rows>.row:first-child{padding-top:.2rem}
}
.ledger .row__aside{pointer-events:none}
.ledger .row__aside b{font-size:1.0625rem;color:var(--fg)}
.research__all{margin-top:var(--s5)}
/* A text action that may run to two lines keeps its arrow beside the last word. */
.research__all .go{display:inline-block;min-height:0;padding-block:.6rem}
.research__all .go .i{display:inline-block;vertical-align:-.22em;margin-left:.35em}
.go__tail{white-space:nowrap}
.faq .note{margin-top:var(--s6)}
