/* ============ Books: review pages, the index, the homepage shelf ============ */
/* Generated by tools/build_books.py; builds on styles.css and episode.css (.arthero, .article). */

/* --- Review hero: headline | the book --- */
.bookhero { position: relative; color: #fff; padding: 128px 0 76px; overflow: hidden; }
.bookhero__inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.bookhero__inner--solo { grid-template-columns: 1fr; }
.bookhero__title { margin-bottom: 0; }
.bookhero__title span { display: block; margin-top: 14px; font-size: .6em; font-weight: 700;
  letter-spacing: -.01em; color: var(--rose-soft); }
.bookhero__media { margin: 0; justify-self: center; }
.bookhero__cap { margin-top: 14px; text-align: center; font-size: 12.5px; letter-spacing: .04em; color: var(--muted-dark); }
.bookhero__media img { width: auto; max-width: 100%; max-height: 500px; border-radius: var(--radius);
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, .75); }

/* --- Review page: article + sticky book panel --- */
.bookhero__meta { margin-top: 18px; font-size: 14.5px; color: var(--muted-dark); letter-spacing: .01em; }
.review { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 72px; max-width: 1120px; margin: 0 auto; }
.review > .bookart { max-width: none; margin: 0; padding: 56px 0 72px; min-width: 0; }
.review__aside { padding: 56px 0 72px; }
.review__sticky { position: sticky; top: 96px; display: grid; gap: 26px; }
.review__card { padding: 26px 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; }
.review__cover { display: block; width: 136px; height: auto; margin: 0 auto 18px; border-radius: 3px;
  filter: drop-shadow(0 14px 16px rgba(40, 10, 28, .3)); }
.review__title { font-family: var(--f-head); font-weight: 800; font-size: 18px; line-height: 1.25; color: var(--ink); }
.review__author { margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.review__buy { width: 100%; justify-content: center; }
.review__stores { margin-top: 12px; font-size: 13px; color: var(--muted); }
.review__stores a { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(120, 80, 100, .3); }
.review__stores a:hover { color: var(--rose-deep); }
.review__give { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; font-size: 12.5px;
  line-height: 1.5; color: var(--muted); }
.review__give a { color: var(--rose-deep); font-weight: 600; }
.review__toc-title { font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; }
.review__toc ol { list-style: none; }
.review__toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.35;
  color: var(--muted); text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.review__toc a:hover, .review__toc a:focus-visible { color: var(--rose-deep); border-left-color: var(--rose); }

/* --- The review column (on top of .article) --- */
.bookart h2 { scroll-margin-top: 96px; }
.bookart > h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--rose); }
.article ul.takeaways { list-style: none; margin: 0 0 26px; counter-reset: tk; display: grid; gap: 12px; }
.article ul.takeaways li { counter-increment: tk; position: relative; margin: 0; padding: 16px 18px 16px 60px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: 16.5px; line-height: 1.6; }
.article ul.takeaways li::before { content: counter(tk); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--rose); color: #fff; font: 800 14px/28px var(--f-head); text-align: center; }
.bookart { padding-top: 56px; }
.bookart > p:first-child { font-size: 20px; line-height: 1.6; color: var(--ink); }
.bookart h2 { font-size: 28px; font-weight: 800; }
.bookart code { font-size: .82em; background: #fff3cd; color: #6b4300; padding: 2px 6px; border-radius: 4px; }
.bookart blockquote.todo { font-family: var(--f-body); font-weight: 400; font-size: 15.5px; line-height: 1.6;
  background: #fff8e1; border-left-color: #d9a300; padding: 16px 20px; border-radius: 0 10px 10px 0; }
.bookart figure img { width: auto; max-width: 100%; max-height: 640px; margin: 0 auto; border-radius: var(--radius); }
.bookart .fine { font-size: 14px; line-height: 1.6; color: var(--muted); }
.bookart .fine a { color: var(--rose-deep); }

/* Meet the author: an editorial portrait floated into the text, credited in its caption */
.author-wrap { display: flow-root; }
.article .author-fig { float: left; width: 210px; margin: 6px 30px 12px 0; }
.article .author-fig--duo { width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article .author-fig__one { margin: 0; }
.article .author-fig__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  border-radius: 12px; box-shadow: 0 22px 40px -22px rgba(40, 10, 28, .6); }
.article .author-fig figcaption { margin-top: 10px; text-align: left; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.article .author-fig figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.author-fig__name { display: block; margin-bottom: 2px; font-family: var(--f-head); font-weight: 700; font-size: 14px;
  letter-spacing: -.005em; color: var(--ink); }

/* The author on the show: episode card */
.article .epinline { display: flex; gap: 22px; align-items: center; margin: 30px 0 8px; padding: 16px; border-radius: var(--radius);
  background: radial-gradient(120% 120% at 88% 0%, var(--plum) 0%, var(--plum-2) 70%); color: #fff; text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease; }
.article .epinline:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.epinline__thumb { position: relative; flex: 0 0 220px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.article .epinline__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.epinline__play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(199, 91, 134, .94); display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .5); }
.epinline__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-right: 8px; }
.epinline__eyebrow { font-family: var(--f-head); font-weight: 700; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rose-soft); }
.epinline__title { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.3; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.epinline__cta { font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--rose-soft); }

/* Beyond the Book */
.btb { margin: 46px 0; padding: 30px 32px 12px; background: var(--bg-soft); border: 1px solid var(--line);
  border-top: 3px solid var(--rose); border-radius: var(--radius); }
.article .btb h2 { margin: 0 0 4px; font-size: 24px; }
.article .btb .btb__asof { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.article .btb li { font-size: 16.5px; }
.article .btb .btb__online { font-size: 15px; margin: 4px 0 18px; }
.article .btb__online a { color: var(--rose-deep); font-weight: 600; }

/* Get your copy: the Falcone link block in Media CFO dress */
.buy { display: flex; gap: 28px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px; margin: 8px 0 18px; box-shadow: var(--shadow); }
.buy__cover { width: 120px; flex: 0 0 120px; height: auto; border-radius: 4px;
  box-shadow: 0 16px 32px -12px rgba(40, 10, 28, .55); }
.buy__body { flex: 1; min-width: 0; }
.article .buy__title { font-family: var(--f-head); font-weight: 800; font-size: 21px; line-height: 1.25;
  color: var(--ink); margin: 0 0 4px; }
.article .buy__meta { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.buy__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.article .buy__btns a { text-decoration: none; }
.article .buy__btns .btn--accent { color: #fff; }
.article .buy__btns .btn--ghost { color: var(--text); padding: 12px 20px; }

/* Where the proceeds go */
.give { background: radial-gradient(120% 120% at 88% 0%, var(--plum) 0%, var(--plum-2) 70%); color: #fff;
  border-radius: var(--radius); padding: 30px 32px 22px; margin: 0 0 30px; }
.article .give p:not(.give__eyebrow) { color: var(--muted-dark); font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; }
.article .give__eyebrow { font-family: var(--f-head); font-weight: 700; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rose-soft); margin-bottom: 8px; }
.article .give .give__head { font-family: var(--f-head); font-weight: 800; font-size: 21px; line-height: 1.3; color: #fff; }
.give__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.article .give__links a { color: var(--rose-soft); font-family: var(--f-head); font-weight: 700; font-size: 14.5px;
  text-decoration: none; border-bottom: 1px solid rgba(232, 155, 186, .4); padding-bottom: 2px; }
.article .give__links a:hover { color: #fff; }

/* --- Disclosure page --- */
.dcl { padding-top: 48px; }
.dcl-lead { margin: 0 0 40px; padding: 30px 32px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fbeff4 0%, #f6e3ec 100%); border: 1px solid #f0d3e1; }
.article .dcl-lead .give__eyebrow { color: var(--rose-deep); }
.article .dcl-lead p:not(.give__eyebrow) { font-size: 19px; line-height: 1.6; color: var(--ink); }
.dcl-sec { padding: 6px 0 10px; }
.dcl-sec + .dcl-sec { border-top: 1px solid var(--line); }
.article .dcl-sec h2 { margin-top: 30px; }
.article .dcl-sec ul { list-style: none; margin-left: 0; }
.article .dcl-sec li { position: relative; padding-left: 30px; }
.article .dcl-sec li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--rose); font-weight: 800; }
.give--page { margin: 40px 0 34px; padding: 34px 36px 26px; }
.article .give--page p:not(.give__eyebrow) { font-size: 16px; }
.article .give--page strong { color: #fff; }
.article .give--page strong > a { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 12px 24px;
  border-radius: 100px; background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%); color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(162, 58, 102, .6); }
.article .give--page strong > a::after { content: "→"; }
.give__logo { display: block; height: 44px; width: auto; margin-bottom: 18px; }

/* --- Overview: two columns of horizontal cards, every card the same size --- */
.booklist { padding: 48px 0 110px; }
.booklist__count { font-family: var(--f-head); font-weight: 700; font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); padding-bottom: 14px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.booklist__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.booklist__grid > li { min-width: 0; }
.bookitem { display: flex; gap: 24px; height: 100%; min-height: 248px; padding: 22px 24px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: box-shadow .25s ease, transform .2s ease, border-color .2s ease; }
.bookitem:hover, .bookitem:focus-visible { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.bookitem:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.bookitem__cover { flex: 0 0 124px; height: 186px; display: flex; align-items: flex-start; justify-content: center; }
.bookitem__cover img { width: 100%; height: 100%; object-fit: contain; object-position: center top;
  filter: drop-shadow(0 12px 14px rgba(40, 10, 28, .28)); }
.bookitem__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bookitem__title, .bookitem__logline, .bookitem__excerpt { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.bookitem__title { -webkit-line-clamp: 2; font-family: var(--f-head); font-weight: 800; font-size: 20px; line-height: 1.2;
  letter-spacing: -.01em; color: var(--ink); }
.bookitem__logline { -webkit-line-clamp: 2; margin-top: 10px; font-family: var(--f-head); font-weight: 600; font-size: 15px;
  line-height: 1.35; color: var(--rose-deep); }
.bookitem__excerpt { -webkit-line-clamp: 3; margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.bookitem__meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-size: 13px; }
.bookitem__author { margin-top: 3px; font-size: 14px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookitem__cta { flex: 0 0 auto; font-family: var(--f-head); font-weight: 700; font-size: 13.5px; color: var(--rose-deep); }
.bookitem:hover .bookitem__title { color: var(--rose-deep); }

/* --- Homepage shelf: intro on the left, a row of identical cover tiles on the right --- */
.shelf { background: var(--bg-soft); overflow: hidden; padding: 96px 0; }
.shelf__inner { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: center; }
.shelf__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.1;
  letter-spacing: -.02em; color: var(--ink); margin: 4px 0 14px; }
.shelf__lede { font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }
.shelf__controls { display: flex; gap: 10px; margin-top: 30px; }
.shelf__btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(120, 80, 100, .3); background: #fff;
  color: var(--ink); font-size: 18px; cursor: pointer; transition: border-color .2s ease, color .2s ease, opacity .2s ease; }
.shelf__btn:hover:not(:disabled) { border-color: var(--rose); color: var(--rose); }
.shelf__btn:disabled { opacity: .35; cursor: default; }
.shelf__viewport { position: relative; min-width: 0; }
.shelf__viewport::after { content: ""; position: absolute; top: 0; right: 0; bottom: 30px; width: 90px; pointer-events: none;
  background: linear-gradient(90deg, rgba(250, 246, 248, 0), var(--bg-soft) 85%); }
.shelf__track, .shelf__row { list-style: none; display: grid; gap: 28px; }
.shelf__track { grid-auto-flow: column; grid-auto-columns: 172px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 12px 90px 4px 4px; }
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track > li { scroll-snap-align: start; }
.shelf__row { grid-template-columns: repeat(auto-fill, 172px); }
.shelf__track:focus-visible, .shelf__btn:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
.shelf__progress { height: 3px; margin: 26px 90px 0 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.shelf__progress span { display: block; height: 100%; width: 10%; border-radius: 2px; background: var(--rose); transition: width .2s ease; }
@media (prefers-reduced-motion: no-preference) { .shelf__track { scroll-behavior: smooth; } }

.bookcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.bookcard__cover { position: relative; display: block; aspect-ratio: 2 / 3; margin-bottom: 14px; }
.bookcard__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 14px 16px rgba(40, 10, 28, .3)); transition: transform .25s ease; }
.bookcard:hover .bookcard__cover img, .bookcard:focus-visible .bookcard__cover img { transform: translateY(-4px); }
.bookcard__none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px;
  text-align: center; border-radius: 3px; background: var(--plum); color: #fff; font-family: var(--f-head); font-weight: 800; }
.bookcard__title { font-family: var(--f-head); font-weight: 800; font-size: 15.5px; line-height: 1.25; letter-spacing: -.01em;
  margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bookcard:hover .bookcard__title { color: var(--rose-deep); }
.bookcard__author { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Preview builds only (never in production output) */
.pvbar { position: fixed; left: 16px; bottom: 16px; z-index: 300; max-width: min(460px, calc(100% - 32px));
  background: #fff8e1; color: #3d2a00; border: 1px solid #e0b000; border-radius: 12px; box-shadow: var(--shadow);
  font: 14px/1.5 var(--f-body); }
.pvbar summary { cursor: pointer; padding: 10px 16px; }
.pvbar ul { margin: 0; padding: 0 18px 12px 36px; }

@media (max-width: 1024px) {
}
@media (max-width: 820px) {
  .bookhero { padding: 108px 0 48px; }
  .bookhero__inner { grid-template-columns: 1fr; gap: 32px; }
  .bookhero__media img { max-height: 380px; }
}
@media (max-width: 680px) {
  .buy { flex-direction: column; padding: 24px; }
  .btb, .give { padding-left: 22px; padding-right: 22px; }
  .article .give .give__head { font-size: 18px; }
}

@media (max-width: 960px) { .booklist__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .bookitem { gap: 16px; min-height: 0; padding: 16px; }
  .bookitem__cover { flex-basis: 88px; height: 132px; }
  .bookitem__title { font-size: 17px; }
  .bookitem__logline { font-size: 14px; -webkit-line-clamp: 3; }
  .bookitem__excerpt { -webkit-line-clamp: 2; font-size: 13.5px; }
}
@media (max-width: 560px) {
  .article .author-fig { width: 128px; margin-right: 18px; }
  .article .author-fig--duo { float: none; width: 100%; max-width: 300px; margin: 0 0 18px; }
}
@media (max-width: 1060px) {
  .review { grid-template-columns: minmax(0, 1fr); max-width: var(--read); }
  .review__aside { display: none; }
}
@media (max-width: 560px) {
  .article ul.takeaways li { padding: 14px 14px 14px 52px; font-size: 15.5px; }
  .article ul.takeaways li::before { left: 14px; top: 13px; }
}
@media (max-width: 560px) {
  .article .epinline { flex-direction: column; align-items: stretch; gap: 14px; }
  .epinline__thumb { flex-basis: auto; }
}
@media (max-width: 900px) {
  .shelf { padding: 72px 0; }
  .shelf__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shelf__controls { display: none; }
  .shelf__viewport { margin-right: -24px; }
  .shelf__track { grid-auto-columns: 40%; gap: 18px; padding-right: 48px; }
  .shelf__viewport::after { width: 48px; }
  .shelf__progress { margin-right: 48px; }
  .shelf__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
}
