/* Content belongs in the document; only short interactions use dialogs. */
#shop-main[hidden],#content-main[hidden],[data-content-page][hidden],#page-link-fallback[hidden]{display:none!important}
#content-main{max-width:1160px;padding-bottom:64px;min-height:65vh}
.page-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:18px 0;margin-bottom:36px}
.page-toolbar button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:24px;background:#fff;font-size:14px}
.page-toolbar button:hover{background:var(--sage)}
.page-link-feedback{margin-bottom:16px}.page-link-feedback p:empty{display:none}.page-link-feedback p{background:var(--sage);padding:12px 16px;border-radius:10px}
#page-link-fallback{display:grid;gap:8px;margin-top:12px}#page-link{font:inherit;width:100%;padding:14px;border:1px solid var(--line);border-radius:8px}
#content-main>.content-page{position:static;inset:auto;transform:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;display:block;width:100%;max-width:none;height:auto;max-height:none;overflow:visible}
#content-main .sheet-scroll,#content-main #product-content,#content-main #authors-content,#content-main #info-content{display:block;overflow:visible;height:auto;max-height:none;min-height:0;flex:none;padding:0;overscroll-behavior:auto}
#content-main .detail-grid{display:grid;grid-template-columns:minmax(250px,350px) minmax(0,1fr);gap:64px;align-items:start;padding:0}
#content-main .detail-cover{position:static;max-height:none;min-height:380px;padding:32px;border-radius:20px;background:#ecf0e4}
#content-main .detail-cover img{width:auto;height:auto;max-width:100%;max-height:440px;margin:auto;object-fit:contain}
#content-main .detail-info{padding:0;min-width:0}
#content-main h1{font-size:clamp(32px,3.3vw,49px);line-height:1.14;letter-spacing:-1.4px;margin:12px 0 24px;overflow-wrap:break-word}
#content-main .detail-info .price{font-size:25px}#content-main .description{font-size:16px;line-height:1.85}
#content-main .detail-footer{position:sticky;bottom:0;z-index:12;padding:16px 0;background:var(--paper);border-top:1px solid var(--line);margin-top:28px}
#content-main .detail-actions{padding:0;display:flex;align-items:center;gap:12px}#content-main #product-add{flex:1;max-width:480px;min-height:54px;margin-left:auto}
#content-main .detail-cart-status{padding:0 0 12px}#content-main .round-action{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px}
#content-main .related-books{margin-top:48px}.related-card>a{width:100%;display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:8px;padding:14px;min-height:44px}.related-card>a:hover{background:#f0f4ea}
#content-main .authors-overview,#content-main .author-profile{padding:0}.authors-dialog.content-page .authors-intro{padding:0 0 32px}.authors-dialog.content-page .author-profile-hero{padding:0 0 36px}.authors-dialog.content-page .author-biography{padding:28px 0}.authors-dialog.content-page .author-book-section{padding:0}.authors-dialog.content-page .authors-footer{position:static;padding:24px 0;border-top:1px solid var(--line);margin-top:32px;background:transparent}
#content-main .author-profile-copy h1{font-size:clamp(38px,4vw,60px)}#content-main .author-profile-copy .author-timeline-link{margin-top:16px}
#content-main .info-dialog{max-width:820px;margin-inline:auto}.info-dialog.content-page .sheet-footer{padding:28px 0;margin-top:32px}.content-page h1:focus{outline:none}
#content-main .timeline-cover,#content-main .cover-link{display:flex;align-items:center;justify-content:center}#content-main .timeline-title{display:block}
@media(max-width:700px){
 #content-main{width:calc(100% - 32px);padding-bottom:38px}.page-toolbar{padding:12px 0;margin-bottom:24px;gap:8px}.page-toolbar button{font-size:13px;padding:9px 12px}
 #content-main .detail-grid{grid-template-columns:minmax(0,1fr);gap:26px}#content-main .detail-cover{min-height:0;padding:24px;max-width:none}#content-main .detail-cover img{max-height:280px;max-width:100%;height:auto;width:auto}
 #content-main h1{font-size:34px;letter-spacing:-1px;margin-top:10px}#content-main .detail-info .price{font-size:24px}#content-main .description{font-size:16px;line-height:1.8}
 body[data-content-page="product"] #content-main{padding-bottom:132px}body[data-content-page="product"] .preview-bar{display:none}
 #content-main .detail-footer{position:fixed;bottom:calc(var(--nav-height,68px) + var(--safe-bottom,0px));left:0;right:0;padding:12px 16px;margin:0;box-shadow:0 -8px 25px #263e3410;background:#faf9f5f5;backdrop-filter:blur(14px)}
 #content-main .detail-actions{gap:8px}#content-main #product-add{min-height:50px}#content-main .detail-actions>[data-page-home]{display:none}#content-main .detail-cart-status{font-size:12px}
 #content-main .related-books{margin-top:32px}.related-card>a{padding:12px}#content-main .author-profile-copy h1{font-size:38px}
 .authors-dialog.content-page .author-profile-hero{padding:0 0 24px;gap:20px}.authors-dialog.content-page .author-biography{padding:24px 0}.authors-dialog.content-page .authors-intro{padding:0 0 24px}
}
@media(prefers-reduced-motion:reduce){#content-main *{scroll-behavior:auto}}
