/* Open Shelf: books family (books, the three book pages, the cancer resource pages, the Spanish page, the two
   unlinked upsell pages). Loaded after /os/css/site.css; uses its tokens and components and adds only these. */

/* ---------- calm reading for people in treatment: larger, plainer type ---------- */
body.bk-calm{font-size:calc(1.1875rem * var(--scale));line-height:1.6}
@media (min-width:1100px){body.bk-calm{font-size:calc(1.25rem * var(--scale))}}
.bk-calm .lede{font-size:calc(1.25rem * var(--scale));color:var(--ink)}
@media (min-width:1100px){.bk-calm .lede{font-size:calc(1.375rem * var(--scale))}}
.bk-calm .faq__a,.bk-calm .incl p,.bk-calm .small{font-size:calc(1.125rem * var(--scale));color:var(--ink)}
.bk-calm .faq summary{font-size:calc(1.3125rem * var(--scale))}
.bk-calm .ticks li{line-height:1.5}

/* ---------- breadcrumb ---------- */
.bk-crumb{font-family:var(--mono);font-size:calc(.8125rem * var(--scale));letter-spacing:.03em;color:var(--ink-2);margin-bottom:clamp(20px,3vw,36px)}
.bk-crumb ol{display:flex;flex-wrap:wrap;gap:0 10px;align-items:center}
.bk-crumb li{display:inline-flex;align-items:center;gap:10px}
.bk-crumb li+li::before{content:"/";opacity:.5}
.bk-crumb a{display:inline-flex;align-items:center;min-height:44px;color:inherit}

/* ---------- page hero with a book standing on its board ---------- */
.bk-hero{padding-top:calc(var(--nav-h) + clamp(28px,5vw,72px));padding-bottom:clamp(48px,7vw,104px)}
.bk-hero__grid{display:grid;gap:28px}
.bk-hero__copy{display:grid;gap:18px;align-content:start}
.bk-hero .h1{font-size:calc(2.25rem * var(--scale));line-height:1.04}
@media (min-width:720px){.bk-hero .h1{font-size:calc(3.125rem * var(--scale))}}
@media (min-width:1100px){.bk-hero .h1{font-size:calc(3.75rem * var(--scale))}}
.bk-sub{font-family:var(--serif-d);font-size:calc(1.375rem * var(--scale));line-height:1.3;color:var(--ink-2);text-wrap:balance}
@media (min-width:1100px){.bk-sub{font-size:calc(1.6875rem * var(--scale))}}
.bk-by{font-size:calc(1rem * var(--scale));color:var(--ink-2)}
.bk-by a{color:var(--ink)}
.bk-hero .guide__book{max-width:300px;justify-self:center;width:100%}
.bk-hero .guide__book .book{width:min(58%,190px)}
@media (min-width:900px){
  .bk-hero__grid{grid-template-columns:5fr 7fr;column-gap:72px;align-items:center}
  .bk-hero .guide__book{max-width:none}
  .bk-hero .guide__book .book{width:min(66%,300px)}
}

/* the price, said once and plainly */
.bk-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.bk-price b{font-size:calc(2.125rem * var(--scale));font-weight:520;letter-spacing:-.03em;font-variant-numeric:tabular-nums lining-nums;line-height:1}
.bk-price span{color:var(--ink-2);font-size:calc(1.03125rem * var(--scale))}
.bk-buy{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center}

/* ---------- books.html: the shelf in the hero, each book a link down the page ---------- */
.bk-mini{display:grid;justify-items:center;align-content:end;gap:0}
.bk-mini__row{display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:clamp(14px,3vw,34px);width:92%;padding-inline:4%}
.bk-mini__b{display:block;text-decoration:none;border-radius:4px}
.bk-mini__b .book{width:100%}
.bk-mini .vol__board{width:100%;margin:0;border-radius:3px}
.bk-mini__cap{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,3vw,34px);width:92%;padding:14px 4% 0;font-family:var(--mono);font-size:calc(.75rem * var(--scale));letter-spacing:.04em;text-transform:uppercase;color:var(--walnut);text-align:center;line-height:1.35}

/* one book per screen */
.bk-feat{display:grid;gap:28px;align-items:start}
.bk-feat__txt{display:grid;gap:18px;align-content:start}
.bk-feat .guide__book{max-width:260px;justify-self:center;width:100%}
.bk-feat .guide__book .book{width:min(60%,190px)}
.bk-feat__h a{text-decoration:none;border-bottom:1px solid var(--brass)}
.bk-feat__h a:hover{border-bottom-color:currentColor}
.bk-tags{display:flex;flex-wrap:wrap;gap:4px 18px;line-height:1.5;font-family:var(--mono);font-size:calc(.8125rem * var(--scale));letter-spacing:.04em;text-transform:uppercase;color:var(--walnut)}
.bk-tags li:not(:last-child)::after{content:"·";margin-left:18px;opacity:.6}
.bk-tags li{display:inline-flex}
.bk-incl{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.bk-incl summary{display:grid;grid-template-columns:1fr 28px;gap:16px;align-items:center;padding:16px 0;cursor:pointer;list-style:none;min-height:44px;font-weight:520}
.bk-incl summary::-webkit-details-marker{display:none}
.bk-incl summary i{width:28px;height:28px;position:relative}
.bk-incl summary i::before,.bk-incl summary i::after{content:"";position:absolute;left:6px;right:6px;top:50%;height:1.5px;background:currentColor;transition:transform var(--t) var(--ease)}
.bk-incl summary i::after{transform:rotate(90deg)}
.bk-incl[open] summary i::after{transform:rotate(0)}
.bk-incl .ticks{padding-bottom:20px;color:var(--ink-2)}
@media (min-width:900px){
  .bk-feat{grid-template-columns:4fr 8fr;column-gap:72px;align-items:center}
  .bk-feat .guide__book{max-width:none}
  .bk-feat .guide__book .book{width:min(70%,268px)}
  .bk-feat--flip .guide__book{order:2}
  .bk-feat--flip{grid-template-columns:8fr 4fr}
  .bk-incl{border:0}
  .bk-incl summary{display:none}
  .bk-incl .ticks{padding-bottom:0;grid-template-columns:1fr 1fr;column-gap:40px}
}

/* ---------- the safety line: plain, large, never folded ---------- */
.bk-care{display:grid;gap:12px;margin-top:28px;padding:22px 24px;border-left:3px solid var(--forest);background:#FBF8F1;border-radius:0 12px 12px 0;font-size:calc(1.1875rem * var(--scale));line-height:1.55;color:var(--ink);max-width:44em}
.bk-care b{font-weight:560}
.bk-care a{color:var(--forest);font-weight:520}
.bk-care .bk-buy a{min-height:44px}
@media (min-width:1100px){.bk-care{font-size:calc(1.25rem * var(--scale));padding:26px 30px}}
.bk-care--top{margin-top:0}

/* ---------- prose blocks ---------- */
.bk-prose{display:grid;gap:18px;max-width:42em}
.bk-prose p{text-wrap:pretty}
.bk-prose a:not(.btn){color:var(--forest)}
.tone-dusk .bk-prose a:not(.btn){color:var(--brass-lt)}
.tone-dusk .bk-prose p{color:var(--on-dusk)}
.bk-split{display:grid;gap:24px}
.bk-split>.head{margin-bottom:0}
@media (min-width:1024px){.bk-split{grid-template-columns:4fr 8fr;column-gap:72px;align-items:start}.bk-split>.head{margin-bottom:0}}

/* a quoted line from the book */
.bk-quote{display:grid;gap:12px;margin:8px 0 0;padding-left:22px;border-left:1px solid var(--brass)}
.bk-quote blockquote{margin:0}
.bk-quote figcaption{color:var(--walnut)}

/* ---------- editions and formats ---------- */
.bk-formats{width:100%;border-collapse:collapse;border-top:1px solid var(--ink)}
.bk-formats th,.bk-formats td{text-align:left;vertical-align:baseline;padding:16px 16px 16px 0;border-bottom:1px solid var(--rule)}
.bk-formats thead th{font-family:var(--mono);font-size:calc(.78125rem * var(--scale));letter-spacing:.06em;text-transform:uppercase;font-weight:400;color:var(--walnut);padding-block:12px}
.bk-formats tbody th{font-weight:540}
.bk-formats td{color:var(--ink-2)}
.bk-formats a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-weight:520}
@media (max-width:719px){
  .bk-formats thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .bk-formats,.bk-formats tbody,.bk-formats tr,.bk-formats th,.bk-formats td{display:block}
  .bk-formats tr{padding:14px 0;border-bottom:1px solid var(--rule)}
  .bk-formats th,.bk-formats td{border:0;padding:0}
  .bk-formats td a{min-height:44px}
}

/* ---------- the author, one dusk moment ---------- */
.bk-author{display:grid;gap:28px;align-items:center}
.bk-author__img{width:min(56%,220px);border-radius:14px;overflow:hidden;background:var(--dusk-2)}
.bk-author__img img{width:100%;height:auto}
.bk-author__txt{display:grid;gap:18px;max-width:40em}
.bk-author__txt p{color:var(--on-dusk-2)}
.bk-author__txt a:not(.btn){color:var(--brass-lt)}
.bk-creds{display:flex;flex-wrap:wrap;gap:8px}
.bk-creds li{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid rgba(239,232,218,.4);border-radius:999px;font-size:calc(.9375rem * var(--scale));color:var(--on-dusk)}
@media (min-width:900px){.bk-author{grid-template-columns:4fr 8fr;column-gap:72px}.bk-author__img{width:100%;max-width:360px}}

/* ---------- small print row under a page ---------- */
.bk-links{display:flex;flex-wrap:wrap;gap:4px 28px;margin-top:28px}

/* ---------- resource pages: answer rows and topic rails ---------- */
.bk-rows{border-top:1px solid var(--ink)}
.bk-rows>li{display:grid;gap:8px;padding:22px 0;border-bottom:1px solid var(--rule)}
.bk-rows p{color:var(--ink-2)}
.bk-calm .bk-rows p{color:var(--ink)}
@media (min-width:900px){.bk-rows--2{display:grid;grid-template-columns:1fr 1fr;column-gap:56px}.bk-rows--2>li:nth-child(2){border-top:0}}
.bk-cards{display:grid;gap:16px}
@media (min-width:900px){.bk-cards{grid-template-columns:repeat(3,1fr);gap:24px}}
.bk-card{display:grid;gap:12px;align-content:start;padding:clamp(22px,2.6vw,32px);background:#FBF8F1;border:1px solid var(--rule);border-radius:18px}
.bk-card p{color:var(--ink-2)}
.bk-calm .bk-card p{color:var(--ink)}
.bk-card .bk-buy{margin-top:auto}
.tone-linen .bk-card{background:var(--paper)}
.bk-urgent{border-top:1px solid rgba(239,232,218,.5)}
.bk-urgent>li{display:grid;gap:6px;padding:20px 0;border-bottom:1px solid var(--rule-dusk)}
.bk-urgent p{color:var(--on-dusk-2)}
.bk-urgent b{font-weight:540;font-size:calc(1.25rem * var(--scale));letter-spacing:-.01em}

/* ---------- quick reference tables ---------- */
.bk-ref{width:100%;border-collapse:collapse;border-top:1px solid var(--ink);font-size:calc(1.0625rem * var(--scale))}
.bk-ref caption{text-align:left;font-family:var(--mono);font-size:calc(.78125rem * var(--scale));letter-spacing:.06em;text-transform:uppercase;color:var(--walnut);padding-bottom:10px}
.bk-ref th,.bk-ref td{text-align:left;vertical-align:top;padding:14px 16px 14px 0;border-bottom:1px solid var(--rule)}
.bk-ref thead th{font-family:var(--mono);font-size:calc(.78125rem * var(--scale));letter-spacing:.06em;text-transform:uppercase;font-weight:400;color:var(--walnut)}
.bk-ref tbody th{font-weight:540}
@media (max-width:719px){
  .bk-ref thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .bk-ref,.bk-ref tbody,.bk-ref tr,.bk-ref th,.bk-ref td{display:block}
  .bk-ref tr{padding:14px 0;border-bottom:1px solid var(--rule)}
  .bk-ref th,.bk-ref td{border:0;padding:2px 0}
  .bk-ref td[data-l]::before{content:attr(data-l) ": ";font-family:var(--mono);font-size:calc(.75rem * var(--scale));letter-spacing:.05em;text-transform:uppercase;color:var(--walnut)}
}

/* ---------- phones ---------- */
@media (max-width:719px){
  .bk-hero{padding-bottom:40px}
  .bk-hero__grid{gap:22px}
  /* the cover is the first thing on a phone, large enough to read its title (council 29, IMG-03) */
  .bk-hero .guide__book{max-width:none}
  .bk-hero .guide__book .book{width:min(64vw,250px)}
  .bk-hero .vol__board{width:min(100%,330px)}
  .bk-crumb li:last-child{display:none}
  .bk-crumb{margin-bottom:8px}
  .bk-feat{gap:20px}
  .bk-feat .guide__book .book{width:min(42%,140px)}
  .bk-feat .vol__board{width:64%}
  .bk-mini__cap{font-size:calc(.75rem * var(--scale));letter-spacing:.02em}
  .bk-care{padding:18px 18px;font-size:calc(1.15625rem * var(--scale))}
  .bk-author__img{width:120px}
}

/* link lists on the resource pages (reuses .rec rows, one column) */
.bk-rec{padding:16px 0}
@media (min-width:900px){.bk-rec{grid-template-columns:1fr}.bk-rec .rec__dek{grid-column:auto}}
.bk-rec .rec__dek{color:var(--ink);font-size:calc(1.125rem * var(--scale));max-width:none}
.bk-rec a{color:var(--ink)}
a.bk-rec{display:grid;grid-template-columns:1fr 20px;align-items:center;gap:16px}
a.bk-rec::after{content:"→";font-family:var(--sans);color:var(--walnut)}
a.bk-rec:hover .rec__dek{text-decoration:underline;text-underline-offset:.2em}
.bk-sub-h{margin-top:16px}
@media (min-width:1024px){.bk-hero__grid--care{align-items:start}.bk-hero__grid--care .bk-care{margin-top:clamp(40px,6vw,96px)}}
.bk-n{font-family:var(--mono);font-weight:400;color:var(--walnut);margin-right:6px;font-size:.8em}
.bk-rules>li{padding:22px 0}
@media print{.foot,.bk-hero .bk-buy{display:none}.tone-dusk{background:none;color:var(--ink)}.sec{padding-block:18px}}
.bk-mini--2 .bk-mini__row,.bk-mini--2 .bk-mini__cap{grid-template-columns:repeat(2,1fr);width:72%;padding-inline:6%}
.bk-fmts{display:grid;gap:0;border-top:1px solid var(--ink)}
.bk-fmt{display:grid;gap:12px;padding:18px 0;border-bottom:1px solid var(--rule)}
.bk-fmt__l b{font-weight:540}
.bk-fmt__l span{color:var(--ink-2)}
@media (max-width:719px){.bk-fmt .btn{min-height:48px;padding:0 20px}}

/* the two unlinked "next step" pages */
.bk-next{display:grid;gap:14px;align-content:start}
.bk-next__url{font-family:var(--sans);font-size:calc(2.125rem * var(--scale));font-weight:520;letter-spacing:-.03em;line-height:1.1;color:var(--on-dusk);overflow-wrap:anywhere}
@media (min-width:1100px){.bk-next__url{font-size:calc(2.875rem * var(--scale))}}
.bk-laurel{color:var(--walnut)}
.tone-dusk .bk-prose strong{color:var(--on-dusk)}
.tone-dusk .small a{color:var(--brass-lt)}
/* calm type keeps dusk colours on dark sections */
.bk-calm .tone-dusk .lede,.bk-calm .tone-dusk .small,.bk-calm .tone-dusk .faq__a{color:var(--on-dusk-2)}
.bk-calm .tone-dusk .voice,.bk-calm .tone-dusk .bk-prose p.voice{color:var(--on-dusk)}
/* cancer pages: the phone bar carries one button (no Call), so it spans the bar */
.thumb--one{grid-template-columns:minmax(0,1fr)}
