/* Only explicit blocks authored by the new MOST editor. */
[data-most-block] { box-sizing:border-box; }
.most-block-related,.most-block-accordion,.most-block-media { margin:28px 0; padding:20px; border:1px solid #cedbda; border-radius:10px; background:#f4f8f7; }
.most-block-related > strong { display:block; margin-bottom:12px; color:#197c86; font-size:16px; }
.most-block-related ul { margin:0; padding-left:22px; }
.most-block-related li+li { margin-top:10px; }
.most-block-related a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.most-block-accordion summary { cursor:pointer; font-weight:700; }
.most-block-accordion summary:focus-visible,[data-most-block="note"]:focus-visible { outline:3px solid #197c86; outline-offset:4px; }
.most-block-accordion__body { white-space:pre-wrap; margin-top:18px; }
.most-block-note { background:#e6efee; border-bottom:1px dashed #197c86; cursor:pointer; padding:1px 3px; }
.most-block-note__text { display:none; }
.most-block-gallery { margin:28px 0; }
.most-block-gallery__track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:0; position:relative; }
.most-block-gallery__track > figure { flex:0 0 100%; width:100%; min-width:0; margin:0; padding:0; scroll-snap-align:start; }
[data-most-block="gallery"] figure > a,[data-most-block="zoom"] figure > a { display:flex; justify-content:center; height:min(65vh,650px); overflow:hidden; cursor:zoom-in; }
[data-most-block="gallery"] img,[data-most-block="zoom"] img { width:100%; height:100%; max-height:100% !important; object-fit:contain; }
[data-most-block] figcaption { margin:10px 0; font-size:14px; line-height:1.5; color:#536261; text-align:center; }
.most-block-gallery__controls { display:flex; justify-content:center; align-items:center; gap:18px; }
.most-block-gallery__controls button,.most-reader-dialog button { min-width:44px; min-height:44px; padding:8px 14px; background:#edf3f2; border:1px solid #bacbca; border-radius:7px; cursor:pointer; color:#243333; }
.most-block-gallery__controls button:disabled { opacity:.4; cursor:default; }
.most-block-toc { position:sticky; top:90px; z-index:4; margin:18px 0; background:#fff; border:1px solid #cedbda; border-radius:8px; padding:12px 16px; font-size:16px; }
.most-block-toc summary { cursor:pointer; font-weight:700; }
.most-block-toc ol { max-height:45vh; overflow:auto; margin:12px 0 0; padding-left:22px; }
.most-block-toc li { padding:4px; }
.most-block-toc a[aria-current] { font-weight:700; color:#197c86; }
.most-block-toc__sub { margin-left:16px; }
.most-block-media iframe,.most-block-media video { display:block; width:100%; aspect-ratio:16/9; height:auto; min-height:250px; border:0; }
.most-block-media audio { width:100%; }
.most-reader-dialog { position:fixed; inset:0; width:min(1200px,96vw); max-width:96vw; max-height:94vh; padding:20px; border:0; border-radius:12px; color:#253536; background:#fff; }
.most-reader-dialog::backdrop { background:rgba(0,0,0,.75); }
.most-reader-dialog > p { white-space:pre-wrap; font-size:18px; line-height:1.6; }
.most-reader-dialog__bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.most-reader-dialog__stage { overflow:auto; max-height:72vh; }
.most-reader-dialog__stage img { display:block; margin:0 auto; }
.most-reader-dialog__caption { font-size:14px !important; margin:10px 0 0; }
@media(max-width:650px){.most-block-related,.most-block-accordion,.most-block-media{padding:15px}.most-block-toc{top:70px}.most-reader-dialog{padding:12px}.most-reader-dialog__bar button{font-size:13px;padding:7px}.most-block-media iframe{min-height:190px}}
@media(prefers-reduced-motion:reduce){.most-block-gallery__track{scroll-behavior:auto}}
