/* Page publishing shares AETERNAE's existing palette and typography. */
.pages-index,.page-editor,.published-page{width:min(1120px,100%);margin:0 auto;padding:clamp(24px,5vw,72px) clamp(16px,4vw,48px);overflow-wrap:anywhere;box-sizing:border-box}
.page-heading{margin-bottom:36px}.page-heading h1{font-family:Georgia,serif;font-size:clamp(2.2rem,5vw,4.6rem);line-height:1.08;margin:12px 0 20px;font-weight:400}.page-heading>p{max-width:760px}.page-eyebrow{font-family:monospace;font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;color:var(--muted,#aaa69d)}
.page-summary{font-size:1.2rem;line-height:1.65;color:var(--muted,#aaa69d)}.page-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:20px 0}.page-actions>a:not(.button),.page-card-link,.page-release>a,.page-asset a,.page-preview-notice a{text-decoration:underline;text-underline-offset:4px}.page-actions>p{margin:0;max-width:48ch;color:var(--muted,#aaa69d);font-size:.85rem}
.page-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.page-card{border:1px solid var(--line,#363438);padding:24px;display:flex;flex-direction:column;gap:12px;min-width:0}.page-card h2{font-family:Georgia,serif;font-weight:400;font-size:1.65rem;margin:0}.page-card p{margin:0;line-height:1.6}.page-card-link{margin-top:auto}.page-meta,.page-hint{font-size:.82rem;line-height:1.6;color:var(--muted,#aaa69d)}
.page-empty,.page-notice,.page-preview-notice,.page-conflict{padding:20px 24px;border:1px solid var(--line,#363438);margin:24px 0}.page-notice{border-left:3px solid var(--red,#eb5360)}.page-error{background:#281419}.page-preview-notice{background:#1b1718}.page-conflict summary{cursor:pointer;font-weight:600}.page-conflict pre{white-space:pre-wrap;max-height:24rem;overflow:auto;border-top:1px solid var(--line,#363438);padding-top:16px}.page-empty h2{margin-top:0}
.page-edit-form fieldset{border:1px solid var(--line,#363438);padding:24px;margin:24px 0;min-width:0}.page-edit-form legend{padding:0 8px;font-size:1.1rem}.page-editor label{display:block;font-size:.9rem;margin:14px 0}.page-editor input:not([type=checkbox]):not([type=hidden]),.page-editor textarea,.page-editor select{display:block;box-sizing:border-box;width:100%;min-width:0;background:#111114;border:1px solid #514a4e;color:#f2ede4;padding:12px;margin-top:8px;font:inherit;border-radius:0}.page-editor textarea{line-height:1.6;resize:vertical}.page-editor select[multiple]{min-height:150px}.page-editor select option{padding:8px}.page-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}.page-confirm{display:flex!important;align-items:flex-start;gap:10px;line-height:1.6}.page-confirm input{margin-top:5px;flex-shrink:0;accent-color:#af2734}.page-editor button{border:1px solid #685159;padding:12px 18px;background:#24181b;color:#f2ede4;font:inherit;cursor:pointer}.page-editor button.button{background:var(--deep-red,#931f2c)}
.page-release,.page-history{border-top:1px solid var(--line,#363438);padding-top:28px;margin-top:40px}.page-history ol{padding:0;list-style:none}.page-history li{padding:18px 0;border-bottom:1px solid var(--line,#363438);display:flex;align-items:center;gap:12px 20px;flex-wrap:wrap}.page-history time{font-size:.8rem;color:var(--muted,#aaa69d)}.page-history form{margin-left:auto}.page-reading{font-size:1rem;line-height:1.85;min-width:0}.page-reading h2,.page-reading h3{font-family:Georgia,serif;font-weight:400;line-height:1.3;margin-top:1.6em}.page-reading p,.page-reading ul{margin:1em 0}.page-reading pre{overflow:auto;max-width:100%;padding:16px;background:#161619}.page-reading a{text-decoration:underline;text-underline-offset:3px}
.page-resources{display:grid;gap:24px;margin-top:36px}.page-asset{margin:0;min-width:0;border:1px solid var(--line,#363438);padding:16px}.page-asset img{display:block;width:100%;height:auto;max-height:720px;object-fit:contain}.page-asset audio{display:block;width:100%;max-width:100%;margin-bottom:16px}.page-asset figcaption{padding-top:12px;line-height:1.6}.page-asset figcaption p{color:var(--muted,#aaa69d);font-size:.9rem}.page-layout-article{max-width:850px}.page-layout-feature>.page-heading{padding-bottom:24px;border-bottom:1px solid var(--line,#363438)}.page-layout-feature>.page-reading{max-width:760px}.page-layout-feature .page-resources{grid-template-columns:repeat(2,minmax(0,1fr))}.page-layout-feature .page-asset:first-child{grid-column:1/-1;padding:0;border:0}.page-layout-resources .page-reading{max-width:760px}.page-layout-resources .page-resources{grid-template-columns:repeat(3,minmax(0,1fr))}.page-layout-resources .page-asset{background:#121214}
.page-editor :is(input,select,textarea,button,a,summary):focus-visible,.published-page a:focus-visible,.pages-index a:focus-visible{outline:2px solid #f4b8be;outline-offset:4px}
.page-pagination{display:flex;gap:16px 24px;align-items:center;flex-wrap:wrap;margin:28px 0;padding:18px 0;border-top:1px solid var(--line,#363438)}.page-pagination a{text-decoration:underline;text-underline-offset:4px}
@media(max-width:700px){.page-card-grid,.page-field-grid,.page-layout-resources .page-resources,.page-layout-feature .page-resources{grid-template-columns:1fr}.page-edit-form fieldset{padding:16px}.page-history li{display:block}.page-history form{margin-top:12px}.page-actions{align-items:flex-start}.page-actions .button{width:100%;text-align:center;box-sizing:border-box}.page-layout-feature .page-asset:first-child{grid-column:auto}.page-notice,.page-conflict,.page-preview-notice{padding:16px}}
@media print{.page-editor,.page-preview-notice{display:none}.published-page{max-width:none;padding:0}.page-resources{display:block}.page-asset{break-inside:avoid}}
