/* Voxread book page header, 2026-10-20. */
html:has(.vx-bh){overflow-x:clip}
.vx-bh{--vx-ease:cubic-bezier(.23,1,.32,1);position:relative;isolation:isolate;display:flex;gap:2rem;align-items:flex-end;padding:1rem 0 2.5rem;margin-bottom:1.5rem}
.vx-bh::before{content:"";position:absolute;z-index:-1;top:-12rem;bottom:0;left:50%;width:100vw;margin-left:-50vw;pointer-events:none;
  background:radial-gradient(55% 70% at 30% 45%,color-mix(in oklab,var(--vx-c1) 42%,transparent),transparent 72%),
  radial-gradient(45% 60% at 75% 25%,color-mix(in oklab,var(--vx-c2) 28%,transparent),transparent 70%);
  -webkit-mask-image:linear-gradient(180deg,#000 55%,transparent);mask-image:linear-gradient(180deg,#000 55%,transparent)}
.vx-bh-cover{flex:none;width:220px;aspect-ratio:1;padding:0;border:0;border-radius:var(--vx-r-md);overflow:hidden;cursor:zoom-in;background:var(--muted);
  box-shadow:0 24px 48px -12px rgb(0 0 0/.45),0 0 0 1px var(--border);transition:transform .2s var(--vx-ease)}
.vx-bh-cover:active{transform:scale(.97)}

.vx-bh-cover img{display:block;width:100%;height:100%;object-fit:cover}
.vx-bh-text{min-width:0}
.vx-bh-title{font-size:clamp(2rem,5vw,3.5rem);line-height:1.05;letter-spacing:-.03em;font-weight:800;margin:0 0 .75rem;color:var(--foreground);text-wrap:balance}
.vx-bh-meta{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.875rem;color:color-mix(in oklab,var(--foreground) 85%,var(--muted-foreground))}
.vx-bh-meta .vx-dot{color:var(--muted-foreground);opacity:.6}
.vx-bh-meta .field,.vx-bh-meta .field__item{display:inline;margin:0}
.vx-bh-pill{font-size:.75rem;line-height:1.5;padding:.125rem .625rem;border-radius:var(--vx-r-pill);background:color-mix(in oklab,var(--foreground) 6%,transparent);border:1px solid var(--border)}
@media (max-width:640px){
  .vx-bh{flex-direction:column;align-items:center;text-align:center;gap:1.25rem}
  .vx-bh-cover{width:180px}
  .vx-bh-meta{justify-content:center}
  .vx-bh::before{background:radial-gradient(110% 60% at 50% 40%,color-mix(in oklab,var(--vx-c1) 48%,transparent),transparent 75%),radial-gradient(80% 40% at 80% 15%,color-mix(in oklab,var(--vx-c2) 28%,transparent),transparent 70%)}
}
.vx-lb{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:1rem;background:rgb(0 0 0/.8);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  opacity:0;visibility:hidden;transition:opacity .2s var(--vx-ease,ease),visibility 0s linear .2s}
.vx-lb.is-open{opacity:1;visibility:visible;transition:opacity .2s cubic-bezier(.23,1,.32,1)}
.vx-lb img{max-width:min(92vw,900px);max-height:86vh;width:auto;height:auto;border-radius:var(--vx-r-md);box-shadow:0 30px 80px #000;transform:scale(.94);transition:transform .25s cubic-bezier(.23,1,.32,1)}
.vx-lb.is-open img{transform:scale(1)}
.vx-lb-x{position:absolute;top:1rem;right:1rem;width:2.5rem;height:2.5rem;display:grid;place-items:center;border-radius:var(--vx-r-pill);border:1px solid rgb(255 255 255/.15);background:rgb(255 255 255/.08);color:#fff;cursor:pointer}
@media (hover:hover) and (pointer:fine){.vx-lb-x:hover{background:rgb(255 255 255/.16)}}
.vx-lb-x svg{width:1.125rem;height:1.125rem}
@media (prefers-reduced-motion:reduce){.vx-bh-cover,.vx-lb,.vx-lb img{transition:none!important}.vx-lb img{transform:none}}
/* Voxread 2026-10-22 (basecoat): genre pills use badge-outline; vx keeps pill shape. */
.vx-bh-meta .vx-bh-pill{border-radius:var(--vx-r-pill);font-weight:400}

/* 2026-10-22 width: one shared content column for title, description and player. */
.vx-bh,.vx-desc,.vxp{--vx-col:640px;max-width:var(--vx-col)}
.vx-bh{margin-inline:0}
.vx-bh-title{font-size:clamp(2rem,4.2vw,3rem);overflow-wrap:break-word}
@media (max-width:640px){.vx-bh,.vx-desc,.vxp{max-width:none}}

/* 2026-10-22 fullw: every child of .book-card is full width; horizontal padding lives only on the card. */
html body article.book-card{--vx-pad:1rem;padding-inline:var(--vx-pad);box-sizing:border-box}
@media (min-width:768px){html body article.book-card{--vx-pad:2rem}}
html body .book-card .vx-bh,html body .book-card .vx-tag,html body .book-card .vx-desc,html body .book-card .vx-desc-body,html body .book-card .vxp,html body .book-card .vx-ex,html body .book-card .vx-tag>span{max-width:none;width:100%;margin-inline:0;padding-inline:0;box-sizing:border-box}
html body .book-card .vx-tag>span{display:block}
@media (max-width:640px){html body .book-card .vx-ex-cards{margin-inline:calc(-1*var(--vx-pad));padding-inline:var(--vx-pad);scroll-padding-inline:var(--vx-pad)}}

/* 2026-10-22 space: 8px rhythm. Card top margin removed (was 64px on top of the page gap); padding on the card only. */
html body article.book-card{margin-block:0 48px;padding-block:24px}
@media (min-width:768px){html body article.book-card{padding-block:32px}}
html body .book-card .vx-bh{padding:0 0 24px;margin-bottom:0;gap:32px}
@media (max-width:640px){html body .book-card .vx-bh{gap:16px}}
html body .book-card .vx-bh-title{margin:0 0 8px}
html body .book-card .vx-tag{margin-bottom:0}
html body .book-card .vx-tag>span{font-size:1.125rem;line-height:1.5}
html body .book-card .vx-desc{margin-bottom:32px}
html body .book-card .vx-desc + .mb-10,html body .book-card .vx-tag + .mb-10{margin-bottom:48px}
html body .book-card .vx-tag + .mb-10{margin-top:32px}
html body .book-card .vx-ex{margin-top:0}

/* 2026-10-22 space: description hidden by default; quiet "Show more" link under the tagline expands it. */
html body .book-card .vx-desc{display:grid;grid-template-rows:auto 0fr;transition:grid-template-rows .3s cubic-bezier(.23,1,.32,1)}
html body .book-card .vx-desc.is-open{grid-template-rows:auto 1fr}
html body .book-card .vx-desc-body{min-height:0;overflow:hidden;max-height:none;visibility:hidden;transition:visibility 0s linear .3s}
html body .book-card .vx-desc.is-open .vx-desc-body{visibility:visible;transition:none}
html body .book-card .vx-desc-body::after{display:none}
html body .book-card .vx-desc-body>:first-child{padding-top:16px}
html body .book-card .vx-desc-toggle{justify-self:start;margin:4px 0 0!important;padding:4px 0!important;font-size:13px!important;color:var(--muted-foreground)!important;text-decoration:underline;text-decoration-color:color-mix(in oklab,var(--muted-foreground) 40%,transparent);text-underline-offset:3px;border-radius:var(--vx-r-sm)}
@media (hover:hover) and (pointer:fine){html body .book-card .vx-desc-toggle:hover{color:var(--foreground)!important}}
@media (prefers-reduced-motion:reduce){html body .book-card .vx-desc,html body .book-card .vx-desc-body{transition:none}}

/* 2026-10-22 showmore: also key off aria-expanded so a stale cached JS (old is-clamped toggle) still opens it. */
html body .book-card .vx-desc:has(> .vx-desc-toggle[aria-expanded="true"]){grid-template-rows:auto 1fr}
html body .book-card .vx-desc:has(> .vx-desc-toggle[aria-expanded="true"]) .vx-desc-body{visibility:visible;transition:none}
html body .book-card .vx-desc-body.is-clamped{max-height:none}
html body .book-card .vx-desc-toggle[hidden]{display:inline-flex}
