html.caf-news-popout-open { overflow: hidden; }
.caf-news-popout {
    box-sizing: border-box; width: min(52rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
    padding: 0; border: 1px solid #ddd; border-radius: .75rem; background: #fff; color: #182025;
    box-shadow: 0 .75rem 3rem #0004; overflow: hidden auto; overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
}
.caf-news-popout::backdrop { background: #111b; }
.caf-news-popout.is-source { width: min(34rem, calc(100vw - 2rem)); }
.caf-news-popout__top {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid #ddd;
}
.caf-news-popout__top button { min-width: 44px; min-height: 44px; padding: .25rem .65rem; font-size: 1.25rem; cursor: pointer; }
.caf-news-popout__navigation {
    display: flex; justify-content: space-between; gap: .5rem;
    padding: .35rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid #ddd;
}
.caf-news-popout__navigation[hidden] { display: none; }
.caf-news-popout__navigation button {
    min-height: 44px; padding: .25rem .65rem; border: 1px solid #63716c; border-radius: .35rem;
    background: #fff; color: #18372c; font: inherit; cursor: pointer;
}
.caf-news-popout__navigation button:disabled { cursor: default; opacity: .55; }
.caf-news-popout__navigation :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.caf-news-popout [data-title] {
    min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit;
    font: inherit; text-align: start; text-decoration: underline; overflow-wrap: anywhere;
    cursor: pointer; scroll-margin-top: 4.5rem;
}
.caf-news-popout__body { padding: clamp(1rem, 4vw, 2rem); overflow-wrap: anywhere; }
.caf-news-popout__body h2 { font-size: clamp(1.35rem, 4vw, 2.1rem); line-height: 1.2; margin: .75rem 0; }
.caf-news-popout__body a { text-decoration: underline; }
.caf-news-popout__body :focus-visible, .caf-news-popout__top :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.caf-news-popout__image { width: 100%; max-height: 21rem; object-fit: cover; border-radius: .4rem; }
.caf-news-popout [data-full-image]:not([hidden]) { display: block; }
.caf-news-comments-frame .caf-news-comments-pages { display: flex; flex-wrap: wrap; gap: 1rem; }
.caf-news-popout__body img { max-width: 100%; }
.caf-news-popout__article :is(table,pre) { display: block; max-width: 100%; overflow: auto; }
.caf-news-popout__discussion[hidden], .caf-news-popout [data-comments][hidden] { display: none !important; }
.caf-news-popout__comments-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .25rem .75rem; margin-top: .75rem; border-top: 1px solid #ddd; padding-top: .25rem;
}
.caf-news-popout__comments-bar button {
    min-height: 44px; padding: .35rem .65rem; border: 0; border-radius: .35rem;
    background: transparent; color: #18372c; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.caf-news-popout [data-comments-toggle] { scroll-margin-top: 4.5rem; }
.caf-news-popout [data-count] { color: #465059; font-size: .875rem; }
.caf-news-popout__comments {
    display: block; box-sizing: border-box; width: 100%; height: min(28rem, 55dvh);
    border: 1px solid #ddd; border-radius: .4rem; background: #fff;
}
html.caf-news-comments-document, .caf-news-comments-frame { overscroll-behavior: contain; }
.caf-news-comments-frame main {
    box-sizing: border-box; width: 100%; padding: clamp(.625rem, 3vw, 1rem);
    color: #182025; background: #fff; overflow-wrap: anywhere;
}
.caf-news-comments-frame :is(.comment-content, .comment-form, .comment-form input, textarea, img) {
    box-sizing: border-box; max-width: 100%;
}
.caf-news-comments-frame :is(.comment-reply-link, #cancel-comment-reply-link) {
    display: inline-flex; align-items: center; min-height: 44px;
}
.caf-news-card-comment-count { display: block; font-size: .8rem; }
.caf-comment-thread { margin: .5rem 0; padding: 0; list-style: none; }
.caf-comment-thread li { margin: 0; padding: .35rem 0; list-style: none; overflow-wrap: anywhere; }
.caf-comment-thread .children { margin-block: .15rem; padding-inline-start: clamp(.4rem, 2vw, 1.25rem); }
.caf-comment-thread .comment-body { position: relative; margin: 0; padding: .45rem .75rem; border: 0; }
.caf-comment-thread .comment-content,
.caf-comment-thread .wp-block-comment-content {
    width: fit-content; max-width: 100%; padding: .4rem .75rem; border-radius: .85rem;
    background: #f0f3f2; color: #182025;
}
.caf-comment-thread :is(.comment-content, .wp-block-comment-content) p { margin: 0; }
.caf-comment-thread :is(.comment-content, .wp-block-comment-content) p + p { margin-top: .4rem; }
.caf-comment-thread .comment-meta { margin-bottom: .2rem; }
.caf-comment-thread :is(.comment-author, .wp-block-comment-author-name) { font-weight: 650; }
.caf-comment-thread :is(.avatar, .wp-block-avatar img) {
    width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; vertical-align: middle;
}
.caf-comment-thread .comment-author .avatar { position: static; margin-inline-end: .4rem; }
.caf-comment-thread :is(.comment-metadata, .wp-block-comment-date, .reply) { font-size: .85rem; }
.caf-comment-thread .comment-metadata { margin-inline-start: 2.4rem; }
.caf-comment-thread .reply { margin-top: .1rem; }
.caf-comment-thread .comment-reply-link { display: inline-flex; align-items: center; min-height: 28px; }
.caf-comment-thread li[hidden], .caf-comment-editor[hidden] { display: none !important; }
.caf-comment-toggle, .caf-comment-more {
    min-height: 44px; padding: .35rem .8rem; border: 1px solid #63716c; border-radius: 1rem;
    background: #fff; color: #18372c; font: inherit; font-size: .9rem; text-align: start; cursor: pointer;
}
.caf-comment-toggle { width: 100%; margin-bottom: .5rem; }
.caf-comment-more { margin: .25rem 0 .65rem; }
.caf-comment-toggle:focus-visible, .caf-comment-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.caf-comment-editor textarea[name="comment"] { width: 100%; min-height: 4rem; box-sizing: border-box; }
