/* Three author compositions share native content and privacy-filtered book cards. */
.bys-view-switch{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;position:relative;z-index:2;margin:12px auto 20px;padding:4px;width:max-content;max-width:calc(100% - 40px);border:1px solid color-mix(in srgb,var(--bys-ink) 25%,transparent);border-radius:30px;background:var(--bys-bg);font:13px/1.4 system-ui,sans-serif;color:var(--bys-ink)}
.bys-view-switch a{padding:9px 15px;border-radius:24px;text-decoration:none;color:inherit}.bys-view-switch [aria-current=page]{background:var(--bys-ink);color:var(--bys-bg)}
.bys-site.bys-author-layout{--author-rule:color-mix(in srgb,var(--bys-ink) 22%,transparent);--author-soft:color-mix(in srgb,var(--bys-bg) 92%,var(--bys-ink));position:relative;isolation:isolate;overflow-x:clip}
.bys-author-layout>.bys-nav,.bys-author-layout>main,.bys-author-layout>.bys-footer{max-width:1164px;margin-inline:auto;position:relative;z-index:1}
.bys-author-layout>.bys-nav{padding:25px 38px;gap:20px;flex-wrap:wrap;border-bottom:1px solid var(--author-rule);font:13px/1.5 system-ui,sans-serif}
.bys-author-layout>.bys-nav nav{gap:24px}.bys-author-layout>main{display:block;padding:0}
.bys-author-layout .bys-section{width:100%;max-width:none;margin:0;padding:46px 38px;grid-column:auto;min-width:0}
.bys-author-layout h1{font-size:clamp(52px,7.5vw,94px);line-height:1.03;max-width:16ch;letter-spacing:-.045em;overflow-wrap:anywhere;text-wrap:balance;margin-bottom:26px}
.bys-author-layout h2{font-size:clamp(28px,3.4vw,42px);line-height:1.15;max-width:100%;letter-spacing:-.025em}
.bys-author-layout .bys-author-opening{display:block;padding-block:55px}
.bys-author-layout .bys-intro{font:400 18px/1.75 var(--bys-body,system-ui,sans-serif);max-width:48ch}
.bys-author-layout .bys-author-name .bys-actions{margin-top:25px;gap:14px;flex-wrap:wrap}
.bys-author-layout .bys-author-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:22px}
.bys-author-layout .bys-author-controls>.bys-author-portrait{margin:0;flex:0 0 auto}
.bys-author-layout .bys-author-name .bys-author-controls>.bys-actions{margin:0;gap:14px}
.bys-author-atmosphere .bys-author-controls{justify-content:center}
.bys-author-layout.bys-author-atmosphere .bys-author-controls>.bys-author-portrait{margin:0}
/* Imported portraits remain small. Larger portraits require the explicit editor setting. */
.bys-author-layout .bys-author-portrait{width:min(76px,var(--bys-portrait-cap,76px));max-width:76px;margin:25px 0 0}
.bys-author-layout .bys-author-portrait img.bys-portrait{width:100%;max-width:100%;height:auto;aspect-ratio:auto;object-fit:contain;border-radius:5px}
.bys-site.bys-author-layout .bys-section.bys-bio img.bys-author-photo{width:min(76px,var(--bys-portrait-cap,76px));max-width:76px;aspect-ratio:auto;height:auto!important;object-fit:contain;border-radius:5px}
.bys-author-layout.bys-author-portrait-large .bys-author-portrait{width:min(280px,var(--bys-portrait-cap,280px));max-width:280px}
.bys-site.bys-author-layout.bys-author-portrait-large .bys-section.bys-bio img.bys-author-photo{width:min(240px,var(--bys-portrait-cap,240px));max-width:240px}
.bys-site.bys-author-layout .bys-section.bys-bio{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start;justify-items:start;border-block:1px solid var(--author-rule)}
.bys-site.bys-author-layout .bys-section.bys-bio>div{width:100%;max-width:70ch;margin-inline:0;min-width:0}
.bys-site.bys-author-layout .bys-section.bys-bio:has(>img){grid-template-columns:minmax(0,1fr) 76px}.bys-author-layout .bys-bio>img{grid-column:2;grid-row:1;justify-self:end}.bys-author-layout .bys-bio>div{grid-column:1;grid-row:1}
.bys-site.bys-author-layout.bys-author-portrait-large .bys-section.bys-bio:has(>img){grid-template-columns:minmax(0,1fr) minmax(120px,240px)}
.bys-author-layout .bys-bio p{font-size:16px;line-height:1.85;overflow-wrap:anywhere}
.bys-author-layout .bys-section.bys-books>.bys-books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin-top:30px}
.bys-author-layout .bys-books article{min-width:0;text-align:left;display:flex;flex-direction:column}
.bys-author-layout .bys-books .bys-book-summary-link{display:block}
.bys-author-layout .bys-books .bys-cover{width:auto;max-width:100%;height:240px;object-fit:contain;margin:0 0 24px;box-shadow:5px 9px 18px #0002}
.bys-author-layout .bys-books h3{font-size:25px;line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere;margin:0}
.bys-author-layout .bys-books .bys-book-description{font:400 15px/1.75 var(--bys-body,system-ui,sans-serif);max-width:65ch;margin:16px 0}
.bys-author-layout .bys-books .bys-book-actions{display:flex;gap:10px 20px;flex-wrap:wrap;margin-top:auto;padding-top:18px}
.bys-author-layout .bys-books .bys-book-actions a{display:inline-flex;padding:10px 0;font:600 13px/1.4 system-ui,sans-serif;text-underline-offset:5px}
.bys-author-layout .bys-series-heading{font-size:20px;margin-top:30px}
.bys-author-layout .bys-newsletter,.bys-author-layout .bys-contact,.bys-author-layout .bys-events,.bys-author-layout .bys-links{border-top:1px solid var(--author-rule)}
.bys-author-layout .bys-footer{padding:26px 38px;border-top:1px solid var(--author-rule);text-align:left;font-size:13px}
.bys-author-layout .bys-author-featured{margin:0;min-width:0;text-align:center}.bys-author-featured .bys-cover{width:auto;max-width:100%;max-height:370px;object-fit:contain;margin:0 auto;box-shadow:8px 14px 22px #0003}.bys-author-featured figcaption{font:13px/1.5 system-ui,sans-serif;margin-top:20px}
/* Portfolio: author-led introduction beside a real featured book. */
.bys-author-layout.bys-author-portfolio.bys-author-has-featured .bys-author-opening{display:grid;grid-template-columns:1.2fr 1fr;gap:50px;align-items:center}
.bys-author-portfolio .bys-author-name h1{color:var(--bys-accent)}
.bys-author-portfolio .bys-bio{background:var(--author-soft)}
/* Atmosphere: centred author name over the selected existing artwork. */
.bys-author-layout>.bys-author-atmosphere-art{position:absolute;inset:0 0 auto;height:900px;z-index:0;overflow:hidden;pointer-events:none}
.bys-author-atmosphere-art img{width:100%;height:100%;object-fit:cover;object-position:center 45%}
.bys-author-atmosphere-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,color-mix(in srgb,var(--bys-bg) 66%,transparent),color-mix(in srgb,var(--bys-bg) 78%,transparent) 50%,color-mix(in srgb,var(--bys-bg) 66%,transparent)),linear-gradient(0deg,var(--bys-bg),transparent 70%)}
.bys-author-layout.bys-author-atmosphere .bys-author-opening{text-align:center;min-height:0;padding-block:40px 28px}
.bys-author-atmosphere .bys-author-name h1{margin-bottom:0}
.bys-author-atmosphere .bys-author-name .bys-intro{margin-top:22px}
.bys-author-layout.bys-author-atmosphere .bys-author-opening+.bys-books{padding-top:24px}
.bys-author-atmosphere .bys-author-name h1,.bys-author-atmosphere .bys-author-name .bys-intro{margin-inline:auto}.bys-author-atmosphere .bys-author-name .bys-actions{justify-content:center}.bys-author-atmosphere .bys-author-name .bys-button{border-radius:30px}
.bys-author-atmosphere .bys-author-name .bys-author-portrait{margin-inline:auto}
.bys-author-atmosphere .bys-bio{background:var(--author-soft)}
.bys-author-atmosphere .bys-books .bys-book-summary-link{padding-top:18px}.bys-author-atmosphere .bys-books .bys-cover{margin-inline:auto}
/* Author Index: compact author/sidebar and a numbered reading list. DOM order stays intact. */
.bys-author-layout.bys-author-index>main{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr);grid-template-rows:max-content max-content 1fr;align-items:start}
.bys-author-index>main>.bys-section{grid-column:1/-1}
.bys-author-layout.bys-author-index .bys-author-opening{grid-column:1;grid-row:1;padding-right:25px;padding-bottom:30px}
.bys-author-index .bys-author-opening h1{font-size:clamp(38px,4.4vw,58px);max-width:12ch}.bys-author-index .bys-intro{font-size:15px;line-height:1.8}
.bys-author-layout.bys-author-index .bys-bio{grid-column:1;padding-right:25px;padding-top:24px;border:0;display:block}.bys-author-index .bys-bio h2{font-size:27px}.bys-author-index .bys-bio p{font-size:14px}
.bys-author-layout.bys-author-index .bys-section.bys-books{grid-column:2;grid-row:1/span 3;border-left:1px solid var(--author-rule);align-self:stretch}
.bys-author-index .bys-books>h2{font-size:34px}.bys-author-layout.bys-author-index .bys-section.bys-books>.bys-books{display:block;counter-reset:author-books}
.bys-author-index .bys-books article{position:relative;display:block;padding:24px 0 26px 34px;border-top:1px solid var(--author-rule);counter-increment:author-books}
.bys-author-index .bys-books article:before{content:counter(author-books,decimal-leading-zero);position:absolute;top:26px;left:0;font:12px/1.4 system-ui,sans-serif;opacity:.65}
.bys-author-index .bys-books .bys-book-summary-link{display:grid;grid-template-columns:68px minmax(0,1fr);gap:20px;align-items:center}.bys-author-index .bys-books .bys-cover{max-width:68px;max-height:110px;height:auto;margin:0}.bys-author-index .bys-books h3{font-size:26px}
.bys-author-index .bys-books .bys-book-description,.bys-author-index .bys-books .bys-book-actions{margin-left:88px}.bys-author-index .bys-books .bys-book-actions{margin-top:0;padding-top:0}
/* Compact style previews use the same three clear compositions. */
.bys-mini-style[data-layout=author-portfolio]{flex-direction:row-reverse}.bys-mini-style[data-layout=author-atmosphere]{flex-direction:column;background:#224439!important}.bys-mini-style[data-layout=author-atmosphere]>i{width:85%;height:35%}.bys-mini-style[data-layout=author-index]{align-items:stretch!important}.bys-mini-style[data-layout=author-index]>i{width:28%;height:95%}
.bys-author-layout:not(.bys-author-index) .bys-section.bys-books>.bys-books:has(>article:only-child){grid-template-columns:minmax(0,1fr)}
.bys-author-layout:not(.bys-author-index) .bys-section.bys-books>.bys-books:has(>article:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){
 .bys-author-layout>.bys-nav{padding:22px 24px;gap:16px}.bys-author-layout>.bys-nav nav{gap:16px;font-size:12px}
 .bys-author-layout .bys-section,.bys-author-layout .bys-footer{padding:34px 24px}.bys-author-layout h1{font-size:clamp(45px,14vw,68px)}.bys-author-layout h2{font-size:31px}
 .bys-author-layout .bys-author-opening{padding-block:38px}.bys-author-layout .bys-intro{font-size:17px}
 .bys-author-layout.bys-author-portfolio.bys-author-has-featured .bys-author-opening{grid-template-columns:minmax(0,1fr);gap:32px}
 .bys-author-featured .bys-cover{max-height:280px}.bys-author-featured figcaption{margin-top:12px}
 .bys-author-layout .bys-author-portrait{width:min(60px,var(--bys-portrait-cap,60px));max-width:60px}
 .bys-site.bys-author-layout .bys-section.bys-bio img.bys-author-photo{width:min(60px,var(--bys-portrait-cap,60px));max-width:60px}
 .bys-site.bys-author-layout .bys-section.bys-bio:has(>img){grid-template-columns:minmax(0,1fr) 60px;gap:18px}
 .bys-author-layout.bys-author-portrait-large .bys-author-portrait{width:min(220px,var(--bys-portrait-cap,220px));max-width:220px}
 .bys-site.bys-author-layout.bys-author-portrait-large .bys-section.bys-bio img.bys-author-photo{width:min(160px,var(--bys-portrait-cap,160px));max-width:160px}
 .bys-site.bys-author-layout.bys-author-portrait-large .bys-section.bys-bio:has(>img){grid-template-columns:minmax(0,1fr);display:flex;flex-direction:column}.bys-author-layout.bys-author-portrait-large .bys-bio>img{align-self:start}
 .bys-author-layout .bys-section.bys-books>.bys-books,.bys-author-layout:not(.bys-author-index) .bys-section.bys-books>.bys-books:has(>article:nth-child(2):last-child){grid-template-columns:minmax(0,1fr);gap:32px}
 .bys-author-layout:not(.bys-author-index) .bys-books article{display:grid;grid-template-columns:96px minmax(0,1fr);gap:0 18px;align-items:start}
 .bys-author-layout:not(.bys-author-index) .bys-books .bys-book-summary-link{display:contents}
 .bys-author-layout:not(.bys-author-index) .bys-books .bys-cover{grid-row:1/span 3;grid-column:1;width:auto;max-width:96px;height:auto;max-height:160px;margin:0}
 .bys-author-layout:not(.bys-author-index) .bys-books h3,.bys-author-layout:not(.bys-author-index) .bys-books .bys-book-description,.bys-author-layout:not(.bys-author-index) .bys-books .bys-book-actions{grid-column:2}
 .bys-author-layout .bys-books h3{font-size:23px}.bys-author-layout .bys-books .bys-book-description{font-size:14px;margin-block:12px}.bys-author-layout .bys-books .bys-book-actions{padding-top:0;gap:8px 15px}
 .bys-author-layout.bys-author-atmosphere .bys-author-opening{padding-block:28px 18px;min-height:0}.bys-author-layout.bys-author-atmosphere .bys-author-opening+.bys-books{padding-top:20px}.bys-author-layout>.bys-author-atmosphere-art{height:700px}
 .bys-author-layout.bys-author-index>main{display:block}.bys-author-layout.bys-author-index .bys-author-opening,.bys-author-layout.bys-author-index .bys-bio,.bys-author-layout.bys-author-index .bys-section.bys-books{padding:34px 24px;border-left:0}.bys-author-layout.bys-author-index .bys-bio{padding-top:0}
 .bys-author-layout .bys-author-controls{gap:14px;margin-top:18px}
 .bys-author-layout.bys-author-portfolio .bys-author-opening,.bys-author-layout.bys-author-index .bys-author-opening{padding-bottom:22px}
 .bys-author-layout.bys-author-portfolio .bys-author-opening+.bys-books,.bys-author-layout.bys-author-index .bys-author-opening+.bys-books{padding-top:22px}
 .bys-author-index .bys-books .bys-book-summary-link{grid-template-columns:48px minmax(0,1fr);gap:16px}.bys-author-index .bys-books .bys-cover{max-width:48px;max-height:80px}.bys-author-index .bys-books article{padding-left:28px}.bys-author-index .bys-books .bys-book-description,.bys-author-index .bys-books .bys-book-actions{margin-left:64px}
}

/* Keep each book cover on the same gutter as its title and reading copy. A
   single book uses the available width as a compact cover-and-copy feature. */
@media(min-width:701px){
 .bys-author-layout.bys-author-atmosphere .bys-books .bys-cover{margin-inline:0}
 .bys-author-layout:not(.bys-author-index) .bys-section.bys-books>.bys-books:has(>article:only-child)>article{display:grid;grid-template-columns:minmax(140px,200px) minmax(0,1fr);column-gap:36px;grid-template-rows:max-content max-content minmax(0,1fr);align-items:start}
 .bys-author-layout:not(.bys-author-index) .bys-section.bys-books>.bys-books:has(>article:only-child) .bys-book-summary-link{display:contents}
 .bys-author-layout:not(.bys-author-index) .bys-section.bys-books>.bys-books:has(>article:only-child) .bys-cover{grid-column:1;grid-row:1/span 3;height:auto;max-height:300px;width:auto;max-width:100%;margin:0;justify-self:start}
 .bys-author-layout:not(.bys-author-index) .bys-section.bys-books>.bys-books:has(>article:only-child) :is(h3,.bys-book-description,.bys-book-actions){grid-column:2}
 .bys-author-layout:not(.bys-author-index) .bys-section.bys-books>.bys-books:has(>article:only-child) .bys-book-actions{grid-row:3;align-self:start;margin-top:0;padding-top:8px}
}

.bys-nav a:hover{text-decoration:underline;text-underline-offset:5px}.bys-nav a:focus-visible{outline:3px solid var(--bys-accent);outline-offset:5px}.bys-nav nav{display:flex;flex-wrap:wrap;gap:12px 24px}.bys-nav a{cursor:pointer}

/* A chosen feature is available in every author layout. */
.bys-author-has-featured.bys-author-atmosphere .bys-author-opening{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.55fr);align-items:center;gap:32px;text-align:left}
.bys-author-has-featured.bys-author-index .bys-author-featured .bys-cover{max-width:180px}
@media(max-width:640px){.bys-author-has-featured.bys-author-atmosphere .bys-author-opening{grid-template-columns:1fr;gap:24px;text-align:center}}
/* Background image strength: a chosen percentage sets the artwork layer's opacity, and the
   page-colour tint (::after) fades out as it rises, so 100% is the true image. The tint also
   carried the bottom blend into the page, so a chosen strength gives the picture its own
   bottom fade instead. */
.bys-author-layout.bys-art-custom>.bys-author-atmosphere-art{opacity:var(--bys-art-strength,1)}
.bys-author-layout.bys-art-custom>.bys-author-atmosphere-art::after{opacity:calc(1 - var(--bys-art-strength,1))}
.bys-author-layout.bys-art-custom>.bys-author-atmosphere-art img{mask-image:linear-gradient(#000 65%,transparent)}
