/* Authored expandable text, shared by public content and editor previews. */
details.content-disclosure{margin:0;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text)}
details.content-disclosure>summary{position:relative;display:block;list-style:none;padding:17px 30px 17px 0;color:var(--text);font:inherit;font-size:14px;font-weight:700;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
details.content-disclosure>summary::-webkit-details-marker{display:none}
details.content-disclosure>summary::marker{content:""}
details.content-disclosure>summary::after{content:"";position:absolute;right:5px;top:calc(50% - 4px);width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .22s ease,border-color .22s ease}
details.content-disclosure[open]:not(.is-closing)>summary::after{transform:translateY(3px) rotate(225deg);border-color:var(--accent)}
details.content-disclosure>summary:hover{color:var(--text)}
details.content-disclosure>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:5px}
details.content-disclosure>.content-disclosure-body{display:flow-root;min-width:0;color:var(--muted);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
details.content-disclosure>.content-disclosure-body>:first-child{margin-top:0}
details.content-disclosure>.content-disclosure-body>:last-child{margin-bottom:0}
details.content-disclosure>.content-disclosure-body::after{content:"";display:block;height:18px}
details.content-disclosure>.content-disclosure-body img{max-width:100%;height:auto}
details.content-disclosure>.content-disclosure-body a{color:var(--accent)}
.disclosure-editor-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:var(--shadow)}
.disclosure-editor-dialog::backdrop{background:#050810c9;backdrop-filter:blur(5px)}
.disclosure-editor-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--border)}
.disclosure-editor-dialog h2{margin:0;font-size:18px;color:var(--text)}
.disclosure-editor-dialog header button{width:32px;min-height:32px;padding:0;border:1px solid var(--border);border-radius:8px;background:var(--bg2);color:var(--muted)}
.disclosure-editor-fields{display:grid;gap:14px;padding:20px 22px}
.disclosure-editor-fields label{display:grid;gap:7px;color:var(--muted);font-size:12px}
.disclosure-editor-fields input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--bg2);color:var(--text);font:inherit}
.disclosure-answer-editor{min-height:160px;max-height:36vh;overflow:auto;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--bg2);color:var(--text);font-size:14px;line-height:1.6;outline:none}
.disclosure-answer-editor:focus{border-color:var(--accent)}
.disclosure-editor-tools{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.disclosure-editor-tools button{width:auto;min-height:28px;padding:4px 9px;border:1px solid var(--border);border-radius:6px;background:var(--panel3);color:var(--text);font-size:12px}
.disclosure-editor-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:14px 22px;border-top:1px solid var(--border)}
.disclosure-editor-dialog footer button{width:auto;min-height:36px;padding:8px 14px;border:1px solid var(--border);border-radius:8px;background:var(--panel3);color:var(--text);font:inherit;font-size:12px;font-weight:600}
.disclosure-editor-dialog footer button[type=submit]{background:var(--accent-base);border-color:var(--accent-base);color:#fff}
.disclosure-editor-dialog [data-disclosure-delete]{margin-right:auto;color:var(--danger);background:transparent}
.disclosure-editor-dialog .disclosure-editor-hint{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.news-rich-toolbar [data-disclosure-insert]{width:auto;padding:0 10px;font-size:12px}
@media(prefers-reduced-motion:reduce){details.content-disclosure>summary::after{transition:none}}
