/* Same-page article modal. The list stays in place underneath. */
html.gzm-article-modal-open, html.gzm-article-modal-open body { overflow: hidden; }
.gzm-article-modal { position: fixed; inset: 1rem; margin: auto; width: min(64rem, calc(100% - 2rem)); height: calc(100dvh - 2rem); max-width: none; max-height: none; padding: 0; border: 1px solid #728da0; border-radius: 12px; color: #142a3b; background: #faf9f6; box-shadow: 0 12px 45px #142a3b40; overflow: hidden; }
.gzm-article-modal[open] { display: flex; flex-direction: column; }
.gzm-article-modal::backdrop { background: #10251f99; }
.gzm-article-modal-bar { display: flex; align-items: center; flex: 0 0 auto; gap: .75rem; padding: .5rem .75rem; background: #e5edf2; border-bottom: 1px solid #c9d6df; }
.gzm-article-modal-bar h2 { flex: 1; min-width: 0; margin: 0; font: 700 .9rem/1.4 system-ui, sans-serif; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gzm-article-modal-direct { font: 400 .8rem/1.4 system-ui, sans-serif; max-width: 6rem; }
.gzm-article-modal-close { flex: 0 0 auto; min-height: 44px; min-width: 64px; padding: .5rem .75rem; border: 1px solid #728da0; border-radius: 6px; background: #fff; color: #142a3b; font: 700 1rem/1.4 system-ui, sans-serif; cursor: pointer; }
.gzm-article-modal-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1.5rem; scroll-padding-block: 1rem; overflow-wrap: anywhere; }
.gzm-article-modal-content article { max-width: 52rem; margin-inline: auto; }
.gzm-article-modal-content h1 { margin-top: 0; }
.gzm-article-modal-content img { max-width: 100%; height: auto; }
.gzm-article-modal :is(a, button, [tabindex]):focus-visible { outline: 3px solid #9a5e11; outline-offset: 3px; }
@media (max-width: 480px) { .gzm-article-modal { inset: .5rem; width: calc(100% - 1rem); height: calc(100dvh - 1rem); } .gzm-article-modal-bar { gap: .5rem; padding: .5rem; } .gzm-article-modal-content { padding: 1rem; } }

.gzm-article-modal-content article > header { position: static; display: block; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; }
