/* Shared Author / Series hero content. Design System tokens only. */
.rs-hero-metrics{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 8px}
.rs-hero-metrics > span{display:inline-flex;align-items:baseline;gap:.4em;padding:7px 11px;border:1px solid var(--rs-border-default);border-radius:999px;font-size:13px;line-height:1.4;white-space:nowrap}
.rs-hero-metrics > span strong{font-size:inherit;font-weight:700}
.rs-hero-expand > summary{cursor:pointer;color:var(--rs-info);font-weight:650;list-style:none;display:inline-flex;align-items:center;gap:.35rem}
.rs-hero-expand > summary::-webkit-details-marker{display:none}
.rs-hero-expand > summary::before{content:'▸';display:inline-block;transition:transform .15s ease}
.rs-hero-expand[open] > summary::before{transform:rotate(90deg)}
.rs-hero-expand > summary:focus-visible{outline:2px solid var(--rs-border-focus);outline-offset:3px}
.rs-hero-expand__less,.rs-hero-expand[open] .rs-hero-expand__more{display:none}
.rs-hero-expand[open] .rs-hero-expand__less{display:inline}
.rs-author__intro:has(> .rs-hero-expand[open]) > .rs-author__bio-excerpt{display:none}
.rs-series__description:has(> .rs-hero-expand[open]) > .rs-series__description-excerpt{display:none}
@media(prefers-reduced-motion:reduce){.rs-hero-expand > summary::before{transition:none}}

/* Author hero: scale the decorative cover composition to the available covers. */
.rs-author__cover-ribbon--single{right:0;width:min(32%,340px);justify-content:center;opacity:.12}
.rs-author__cover-ribbon--single img{width:100%;height:100%;object-fit:contain;object-position:center right}
.rs-author__cover-ribbon--few img{width:auto;min-width:0;flex:1;object-fit:cover}
@media(max-width:639px){.rs-author__cover-ribbon--single{width:45%;opacity:.07}}

/* Override legacy module summary/span rules: only one toggle label is visible. */
.rs-author .rs-hero-expand > summary .rs-hero-expand__less,
.rs-series .rs-hero-expand > summary .rs-hero-expand__less{display:none}
.rs-author .rs-hero-expand[open] > summary .rs-hero-expand__more,
.rs-series .rs-hero-expand[open] > summary .rs-hero-expand__more{display:none}
.rs-author .rs-hero-expand[open] > summary .rs-hero-expand__less,
.rs-series .rs-hero-expand[open] > summary .rs-hero-expand__less{display:inline}
