.member-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:24px;margin:24px 0 40px}.member-card{border:1px solid var(--border);background:var(--red-panel);border-radius:12px;padding:22px;min-width:0}.member-card img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:8px}.member-card h3{font:1.5rem/1.3 Georgia,serif;color:var(--gold-light);margin:18px 0 10px}.member-card p{overflow-wrap:anywhere}.member-title{font-size:.95rem;margin:10px 0}.member-title strong{display:block;color:var(--gold-light);font-size:.8rem;letter-spacing:.04em}.member-card a{display:inline-block;padding:12px 0}.member-hero{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:32px;align-items:start}.member-hero img{width:100%;height:auto;border-radius:12px}.member-backstory{max-width:70ch;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.portrait-preview{display:block;width:180px;height:180px;object-fit:cover;border-radius:12px;margin:16px 0}#crop-canvas{display:block;width:min(100%,320px);height:auto;margin:20px 0}#character-form label,.member-admin label{display:block;margin:18px 0 8px}#character-form input:not([type=checkbox]),#character-form textarea,.member-admin input,.member-admin textarea,#member-search{width:100%;max-width:100%;box-sizing:border-box}#character-form textarea,.member-admin textarea{font:inherit;padding:12px;background:var(--red-dark);color:var(--text-light);border:1px solid var(--border);border-radius:8px}#character-form small{display:block;color:var(--text-dim)}.consent{display:flex!important;gap:12px;align-items:start}#editor-status{white-space:pre-line}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}[hidden]{display:none!important}.member-admin{max-width:900px;margin:auto}.member-admin .actions{flex-wrap:wrap}@media(max-width:600px){.member-hero{grid-template-columns:1fr}.member-hero img{max-width:280px;margin:auto}.member-grid{grid-template-columns:1fr}.member-card{padding:20px}.actions{flex-wrap:wrap}}

.story-book{margin-top:40px;max-width:75ch}.story-chapter{border:1px solid var(--border);border-radius:10px;margin:16px 0;background:var(--red-panel)}.story-chapter summary{cursor:pointer;padding:20px;color:var(--gold-light);font-family:Georgia,serif;font-size:1.15rem;min-height:48px}.chapter-content{padding:0 22px 20px;line-height:1.8;overflow-wrap:anywhere}.chapter-content p{margin:0 0 1.2em}.story-credit{display:inline-block;font-size:.85rem;margin-top:24px;color:var(--text-dim)}@media print{.story-chapter::details-content{display:block}.story-book .actions{display:none}}

/* Consistent portrait frames and aligned story links across each card row. */
.member-card{display:flex;flex-direction:column}.member-card>div{flex:1}.member-card img{display:block;width:100%;height:auto;aspect-ratio:1 / 1;object-fit:cover;object-position:center;background:var(--red-dark)}.member-card>a{margin-top:auto;min-height:44px}

/* A neutral manuscript surface preserves authored colours against a stable background. */
.formatted-story{box-sizing:border-box;max-width:100%;min-width:0;padding:clamp(16px,4vw,32px);background:#fff;color:#111;font:1rem/1.5 Georgia,serif;border:1px solid var(--border);border-radius:8px;overflow-wrap:anywhere;overflow-x:auto;text-align:left}
.formatted-story p,.formatted-story h1,.formatted-story h2,.formatted-story h3,.formatted-story h4,.formatted-story h5,.formatted-story h6{font-family:inherit;color:inherit;letter-spacing:normal;white-space:pre-wrap;max-width:100%;margin:0 0 1em;text-transform:none}
.formatted-story h1{font-size:2em}.formatted-story h2{font-size:1.5em}.formatted-story h3{font-size:1.17em}
.import-preview{max-height:26rem;overflow:auto;white-space:pre-wrap;margin:16px 0}.import-preview .formatted-story{white-space:normal}#current-story-format{margin:20px 0;max-height:32rem;overflow:auto}textarea[readonly]{opacity:.8}
.story-markdown{line-height:1.8;overflow-wrap:anywhere;white-space:normal}.story-markdown p{margin:0 0 1.2em;white-space:pre-wrap}.story-markdown em{font-style:italic}.story-markdown strong{font-weight:700}.story-markdown hr{border:0;border-top:1px solid var(--border);width:40%;margin:2em auto}.story-markdown blockquote{border-left:2px solid var(--gold);padding-left:1em;margin:1em 0}.story-markdown pre{white-space:pre-wrap}
.story-downloads{margin:1.5rem 0;padding:1rem;border:1px solid var(--gold,#b99450);border-radius:.5rem}.story-downloads button{min-height:44px}.story-chapter>.formatted-story{margin:0}
@media print{
 body{background:white!important;color:black!important}body>header,body>nav,body>footer,.reading-options,.story-downloads,#main-content>p,.story-book>.actions{display:none!important}
 .page-shell,.member-profile,.story-book,.formatted-story,.chapter-content{max-width:none!important;width:auto!important;margin:0!important;padding:0!important;background:white!important;color:black!important;box-shadow:none!important;border:0!important}
 .member-hero img{max-width:100px!important;height:auto!important}.member-hero{display:block!important}.story-chapter{border:0!important;break-inside:auto!important}.story-chapter>summary{display:block!important;font-weight:bold;font-size:16pt;margin:1em 0}.story-chapter:has(>.formatted-story)>summary{display:none!important}.story-chapter .chapter-content:before{content:''}h1,h2,h3{break-after:avoid}p{orphans:3;widows:3}a{color:black!important}
}
.story-reading{padding:1rem 0}.story-reading label{display:block}.story-reading select{display:block;width:100%;max-width:100%;min-height:48px;font-size:1rem;margin:.5rem 0 1rem;padding:.65rem;background:#fff;color:#211a16;border-radius:.4rem}.story-reading button{min-height:44px}.story-chapter,.story-chapter p{scroll-margin-top:1rem}.story-downloads .actions{flex-wrap:wrap;gap:.6rem}.story-downloads a{display:inline-block;padding:.75rem 0}@media(max-width:600px){.story-downloads .actions{display:grid;grid-template-columns:1fr}.story-downloads button{width:100%}}@media print{.story-reading{display:none!important}}
