/* Shared project chrome, without reserving a navigation row. */
.project-detail #main{position:relative;margin-top:0;padding-top:0}
.project-back{position:absolute;top:16px;left:24px;z-index:6;display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;border-radius:0;background:none;color:#655d54;font-size:13px;font-weight:400;line-height:1.5;text-decoration:none;box-shadow:none}
.project-back:hover{color:#352619}
.project-back:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.project-detail .hb-opening{padding-top:0}
.project-detail .hb-hero{border-radius:0}
/* Covers start at y=0; spacing belongs to their content, not site chrome. */
.project-case-page>.story-section{margin:0 auto;border-top:0;width:100%;padding:72px max(32px,calc((100% - 1040px)/2)) 48px}
.project-case-page.easydiet-page>.ed-overview{padding:0}
.project-case-page .ed-hero{padding-top:80px;border-radius:0}
.project-case-page>.ed-overview>.project-meta,.project-case-page>.ed-overview>.source-note{width:min(1040px,calc(100% - 64px));margin-inline:auto}
.project-detail .project-reading{padding-top:48px}
@media(max-width:900px){
 .project-back{top:12px;left:20px}
 .project-case-page>.story-section{padding:72px 24px 32px}
 .project-detail .project-reading{padding-top:0}
}

.handmaiden-page .hm-cover-return{font-size:13px;font-weight:400;border:0;text-decoration:none;color:#cdabb2;min-height:44px;display:inline-flex;align-items:center}

/* Browser zoom reduces CSS viewport width: reserve narrow layouts for reading. */
@media(max-width:1199px){
 .project-detail #main .case-directory{display:none}
 .project-detail #main .case-layout,.project-detail #main .rr-reading-layout{display:block}
 .project-detail #main .case-layout>.case-content{width:100%;min-width:0}
 .project-detail .reset-restart-page .rr-reading-layout{margin-top:48px}
}

/* Handmaiden return stays visible beyond its cover. */
.handmaiden-page>.hm-cover-return{position:fixed;top:32px;left:clamp(24px,3.56vw,64px);z-index:20;min-height:0;padding:0 0 8px;font-size:14px;font-weight:500;line-height:1.5;color:#ffabb7;border-bottom:1px solid currentColor}
@media(max-width:760px){.handmaiden-page>.hm-cover-return{top:24px}}

/* Shared geometry used by Play and the return-link preview. */
.project-return-link{display:inline-flex;align-items:center;min-height:0;padding:0 0 8px;border:0;border-bottom:1px solid currentColor;border-radius:0;font-size:14px;font-weight:500;line-height:1.5;letter-spacing:normal;white-space:nowrap;text-decoration:none}
.project-detail .project-back.project-return-link{position:fixed;top:32px;left:clamp(24px,3.56vw,64px);z-index:20;min-height:0;padding:0 0 8px;border:0;border-bottom:1px solid currentColor;color:var(--ink);font-size:14px;font-weight:500;line-height:1.5}
.project-detail .project-back.project-return-link:hover{color:var(--blue)}
@media(max-width:760px){.project-detail .project-back.project-return-link{top:24px}}

/* Non-Play case return sits before the chapter list. */
.project-detail .case-directory.return-first .toc-home{display:inline-flex;margin:0 0 28px;padding-left:var(--space-24)}
.mobile-project-return{display:none}
@media(max-width:1199px){
 .project-detail .case-content>.mobile-project-return{display:inline-flex;margin:0 0 24px;padding:0 0 8px;border-bottom:1px solid currentColor;color:var(--muted);font-size:14px;font-weight:500;line-height:1.5;text-decoration:none}
 .project-detail .case-content>.mobile-project-return:hover{color:var(--ink)}
}
