.website-editor-page {width:min(1560px,calc(100% - 3rem));padding-bottom:4rem}
.editor-header {width:min(1560px,calc(100% - 3rem));gap:1rem}.header-location{font-size:.8rem;color:var(--muted)}.environment-chip{font-size:.65rem;letter-spacing:.12em;border:1px solid var(--line);padding:.5rem .75rem;color:var(--gold);margin-left:auto}
.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:2.5rem 0 1.4rem}.editor-heading h1{margin:0;font:600 clamp(2.4rem,4vw,3.8rem)/1.05 "Playfair Display",serif;letter-spacing:-.035em}.editor-heading p:last-child{color:var(--muted);font-size:.9rem;line-height:1.6;margin-bottom:0}.eyebrow{margin:0 0 .6rem}
.editor-notice{display:flex;gap:1rem;align-items:center;padding:.9rem 1.1rem;background:#f8f4ea;border:1px solid #d9c9a7;font-size:.8rem;line-height:1.5}.editor-notice strong{color:#715520;white-space:nowrap}.editor-message{font-size:.83rem;min-height:1.3rem;color:var(--muted);line-height:1.5;margin:1rem 0}.editor-message.error{color:#a44943}
.editor-workspace{display:grid;grid-template-columns:300px minmax(0,1fr);border:1px solid var(--line);background:#fff;box-shadow:0 8px 30px #18202a08}.editor-sidebar{border-right:1px solid var(--line);padding:1.3rem;min-width:0;background:#fbfbfa}.editor-sidebar>label:first-child{margin-top:0}.document-summary{display:grid;gap:.45rem;padding:1.2rem 0}.document-summary>span:first-child{font-size:.63rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}.document-summary strong{font:600 1.35rem "Playfair Display",serif}.document-summary>span:last-child{font-size:.73rem;color:var(--muted)}.sidebar-tabs{display:flex;border-bottom:1px solid var(--line);gap:.2rem}.sidebar-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;padding:.8rem .45rem;font-size:.75rem;cursor:pointer}.sidebar-tabs button[aria-selected="true"]{border-color:var(--gold);color:#745824;font-weight:700}.sidebar-help,.field-help{font-size:.75rem;color:var(--muted);line-height:1.55}.field-help{margin:.5rem 0 1rem}.area-list{max-height:370px;overflow:auto;margin-top:.75rem;display:grid;gap:.4rem}.area-choice{text-align:left;border:1px solid transparent;background:transparent;padding:.7rem .65rem;font-size:.76rem;line-height:1.45;color:#545b64;cursor:pointer;overflow-wrap:anywhere}.area-choice[aria-pressed="true"]{background:#fff;border-color:#b99a60;color:#604619}.area-choice:hover{background:#eeeae2}.cover-thumbnail{width:100%;margin-top:.4rem}.search-preview{border-top:1px solid var(--line);padding-top:1.3rem;margin-top:1.5rem;overflow-wrap:anywhere}.search-preview span{font-size:.6rem;color:var(--muted);letter-spacing:.1em}.search-preview strong{display:block;margin:.7rem 0 .4rem;color:#315579;font-size:.92rem}.search-preview small{color:var(--green)}.search-preview p{font-size:.8rem;line-height:1.6;color:var(--muted)}
.editor-main{min-width:0}.editing-area-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.4rem 1.6rem;border-bottom:1px solid var(--line)}.editing-area-heading h2{font-size:1.3rem;line-height:1.4;overflow-wrap:anywhere}.save-state{font-size:.7rem;color:var(--muted);white-space:nowrap}.save-state.dirty{color:var(--amber)}.format-toolbar{display:flex;gap:.25rem;flex-wrap:wrap;padding:.6rem 1.2rem;background:#f9f9f7;border-bottom:1px solid var(--line)}.format-toolbar button{border:1px solid transparent;padding:.55rem .6rem;background:transparent;font-size:.66rem;cursor:pointer;color:#555c65}.format-toolbar button:hover,.format-toolbar button[aria-pressed="true"]{background:#eee9df;border-color:#d9c9a7;color:#604619}.toolbar-divider{border-left:1px solid var(--line);margin:.3rem .3rem}.rich-editor{padding:1.4rem 1.6rem;max-height:380px;overflow:auto;background:#fff}.rich-editor .tiptap{outline:none;min-height:150px;font-size:.96rem;line-height:1.75;overflow-wrap:anywhere}.rich-editor .tiptap h2{font-size:1.5rem;margin:1.6rem 0 .7rem}.rich-editor .tiptap h3{font:600 1.2rem "Playfair Display",serif}.rich-editor .tiptap a{color:#805f28;text-decoration:underline}.rich-editor .tiptap img{max-width:100%;height:auto}.rich-editor .tiptap table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:.8rem}.rich-editor .tiptap th,.rich-editor .tiptap td{border:1px solid #cfd0cb;padding:.5rem;white-space:normal}.rich-editor .tiptap blockquote{border-left:3px solid var(--gold);padding-left:1rem;color:var(--muted)}.rich-editor .tiptap:focus{box-shadow:inset 3px 0 #b99a60;padding-left:.7rem}.area-help{font-size:.73rem;line-height:1.5;color:var(--muted);margin:0;padding:0 1.6rem 1.2rem}.editor-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;padding:1rem 1.6rem;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.editor-actions button{font-size:.68rem;letter-spacing:.04em;margin:0}.editor-actions .primary-button{margin-left:auto}.preview-panel>header{padding:1.4rem 1.6rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.preview-panel h2{font-size:1.3rem}.preview-size-controls{display:flex;border:1px solid var(--line)}.preview-size-controls button{border:0;padding:.6rem .7rem;background:#fff;font-size:.62rem;cursor:pointer}.preview-size-controls button[aria-pressed="true"]{background:#eeeae2;color:#715520}.preview-stage{background:#e7e8e7;padding:1.1rem;overflow:auto;text-align:center}.preview-stage iframe{display:block;width:100%;height:740px;margin:auto;border:1px solid #d1d2cf;background:#fff}.preview-stage.mobile iframe{width:390px;max-width:100%;height:844px}.revision-list{padding:0;list-style:none;display:grid;gap:.8rem;max-height:620px;overflow:auto}.revision-list li{border:1px solid var(--line);background:#fff;padding:.85rem}.revision-list strong,.revision-list span{display:block;font-size:.75rem;line-height:1.5}.revision-list span{color:var(--muted);font-size:.68rem;margin:.3rem 0 .6rem}.revision-list button{font-size:.64rem}.empty-history{font-size:.8rem;color:var(--muted);line-height:1.6}.dialog-actions{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:flex-end;margin-top:1.5rem}.dialog-actions .primary-button{margin:0}dialog{border:1px solid var(--line);padding:2rem;width:min(520px,calc(100% - 2rem));background:#fff;color:var(--ink);box-shadow:var(--shadow)}dialog::backdrop{background:#181b1e99}dialog p{line-height:1.65;color:var(--muted);font-size:.9rem}button:focus-visible,a:focus-visible{outline:2px solid #8c6a2e;outline-offset:3px}
@media(max-width:950px){.editor-workspace{grid-template-columns:250px minmax(0,1fr)}.editing-area-heading{align-items:start;flex-direction:column}.preview-panel>header{flex-wrap:wrap}.editor-actions .primary-button{margin-left:0}}
@media(max-width:700px){.website-editor-page,.editor-header{width:calc(100% - 1.5rem)}.editor-header{min-height:78px}.brand{gap:.6rem}.brand img{width:38px;height:38px}.brand strong{font-size:.76rem}.brand small{font-size:.54rem}.header-location{display:none}.environment-chip{font-size:.56rem;padding:.4rem}.editor-heading{align-items:start;flex-direction:column;padding-top:1.8rem;gap:1rem}.editor-heading h1{font-size:2.6rem}.editor-notice{align-items:start;flex-direction:column;gap:.25rem}.editor-workspace{grid-template-columns:1fr}.editor-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:1rem}.area-list{max-height:170px}.editing-area-heading,.editor-actions,.preview-panel>header{padding:1rem}.format-toolbar{padding:.6rem}.rich-editor{padding:1rem;max-height:300px}.area-help{padding:0 1rem 1rem}.preview-stage{padding:.5rem}.preview-stage iframe{height:650px}.save-state{white-space:normal}.sidebar-tabs button{flex:1}.editor-actions button{flex:1 1 auto}.cover-thumbnail{max-width:320px}#article-fields{display:grid;grid-template-columns:1fr;gap:.15rem}}

.editor-heading-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}.editor-heading-actions button{margin:0;font-size:.7rem}.article-address{display:grid;gap:.4rem;min-width:0}.article-address span{font-size:.75rem;overflow-wrap:anywhere}#new-article-error{color:#9c3028}
.preview-help{font:400 .76rem/1.5 "DM Sans",sans-serif;color:var(--muted);margin:.5rem 0 0;max-width:430px}

.sidebar-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar-tabs button{padding:10px 6px}.builder-label{display:block;margin:20px 0 10px;color:#80632f;font-size:11px;font-weight:600;letter-spacing:.1em}.builder-add-grid,.builder-reorder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.builder-add-grid button,.builder-reorder button,.builder-outline-item,.builder-group{border:1px solid #d5c9b4;background:#fff;color:#282722;padding:10px;font:500 12px/1.4 "DM Sans",sans-serif;cursor:pointer;text-align:left;min-height:40px}.builder-add-grid button:hover,.builder-reorder button:hover,.builder-outline-item[aria-pressed="true"]{background:#f4ecd9;border-color:#a18349}.builder-add-grid button:disabled,.builder-reorder button:disabled,.builder-outline-item:disabled{opacity:.45;cursor:default}.builder-table-size{display:grid;grid-template-columns:1fr 1fr;gap:10px}.builder-table-size input{width:100%}.builder-outline{max-height:240px;overflow:auto;display:grid;gap:5px;margin:10px 0}.builder-outline-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.builder-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.builder-section-title .builder-label{margin:16px 0}.builder-group{font-size:10px;max-width:110px;padding:5px;min-height:30px}#builder-table-controls{border:1px solid #ded8cd;padding:12px;margin:20px 0}#builder-table-controls legend{font-size:11px;letter-spacing:.08em;color:#80632f}#builder-selected{display:block;font-size:13px}#build-panel>label{margin-top:14px}#build-panel :focus-visible{outline:2px solid #80632f;outline-offset:2px}

.editor-workspace[data-builder="true"] #format-toolbar,.editor-workspace[data-builder="true"] #rich-editor,.editor-workspace[data-builder="true"] #area-help{display:none}
@media(min-width:701px){.editor-workspace[data-builder="true"] .editor-sidebar{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);overflow:auto}.editor-workspace[data-builder="true"] .preview-stage iframe{height:calc(100vh - 160px);min-height:500px}}
@media(max-width:700px){#build-panel{max-height:430px;overflow:auto;padding-right:8px}}
