/* Shared editorial layout. Source text and the source archive are preserved. */
.article-hero{padding-top:34px;padding-bottom:30px;gap:36px}
.article-hero h1{font-size:clamp(1.9rem,3.1vw,2.65rem);line-height:1.2;max-width:25ch;text-wrap:balance}
.article-cover{max-width:460px;width:100%;justify-self:end;max-height:360px;min-height:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:#eee9de}
.article-cover img{max-height:334px;object-fit:contain}
.editor-content{max-width:850px}
.editor-content :where(p,li){line-height:1.8}
.editor-content :where(h2,h3,h4){text-wrap:balance;scroll-margin-top:24px}
.editor-content h2{font-size:clamp(1.4rem,2.1vw,1.8rem);line-height:1.3}
.editor-content h3{font-size:clamp(1.2rem,1.8vw,1.45rem);line-height:1.35}
.editor-content :where(ul,ol){padding-left:24px;margin:16px 0 24px}
.editor-content li{padding:5px 0 5px 4px}
.editor-content li::marker{color:var(--wine)}
.editor-content blockquote{margin:24px 0;padding:16px 24px;border-left:3px solid var(--gold);background:#eee9de;font-family:var(--serif);font-size:1.15rem}
.editor-content table{font-size:15px;background:var(--white)}
.editor-content th{background:#eee9de;color:var(--wine);text-align:left}
.editor-content :where(td,th){vertical-align:top;line-height:1.6}
.editor-content .wp-block-table{overflow-x:auto}
.kat-page-layout{max-width:850px;margin:0 auto}
.kat-page-layout>.wp-block-group__inner-container{display:flow-root}
.kat-intro,.kat-section{display:flow-root;min-width:0}
.kat-intro{margin-bottom:30px}
.kat-section{margin:24px 0;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:28px 32px}
.kat-section>.wp-block-group__inner-container{display:flow-root}
.kat-page-layout .kat-section h2:first-child{margin:0 0 20px;font-size:clamp(1.35rem,2vw,1.7rem)}
.kat-page-layout .kat-section h3{margin-top:25px}
.kat-page-layout .kat-section :where(p,ul,ol):last-child{margin-bottom:0}
.kat-page-layout .kat-lead{font-size:1.08rem;line-height:1.85;color:#41493f;margin-top:0}
.kat-page-layout .kat-citation{font-size:13px;line-height:1.6;color:var(--muted);margin-top:-8px}
.kat-page-layout .kat-byline{font-size:15px;line-height:1.7;color:var(--muted);margin:0 0 22px}
.kat-page-layout .kat-detail{font-size:15px;line-height:1.7;margin:6px 0}
.kat-page-layout .kat-label{font:600 11px/1.5 var(--sans);letter-spacing:.07em;color:var(--muted);margin:22px 0 7px}
.kat-page-layout .kat-callout{padding:18px 22px;border-left:3px solid var(--gold);border-radius:0 8px 8px 0;background:#eee9de;font-size:16px;line-height:1.75}
.kat-page-layout .kat-source-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 22px;margin:18px 0 25px}
.kat-page-layout .kat-source-list li{padding:10px 12px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.65}
.kat-page-layout .kat-timeline{list-style:none;padding:0;margin:20px 0}
.kat-page-layout .kat-timeline li{position:relative;padding:9px 0 15px 22px;margin:0 0 0 4px;border-left:1px solid #cdb98f}
.kat-page-layout .kat-timeline li:before{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:var(--gold);left:-4px;top:19px}
body:not(.single-katedra_event) .kat-page-layout :where(.kat-intro,.kat-section)>.wp-block-group__inner-container>figure.wp-block-image{float:right;clear:right;width:36%;max-width:280px;margin:3px 0 20px 26px}
.kat-page-layout :where(.kat-intro,.kat-section)>figure.wp-block-image img,.kat-page-layout :where(.kat-intro,.kat-section)>.wp-block-group__inner-container>figure.wp-block-image img{width:100%;max-height:340px;object-fit:contain}
.kat-page-layout .wp-block-gallery{clear:both;padding-top:16px;margin:24px 0 8px}
.kat-page-layout .wp-block-gallery.has-nested-images{grid-template-columns:repeat(3,minmax(0,1fr))}
.kat-page-layout .wp-block-gallery.has-nested-images:not(:has(>figure:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}
.kat-page-layout .wp-block-gallery.has-nested-images figure.wp-block-image{border:1px solid var(--line);border-radius:7px;background:#f1ede4;padding:10px;transition:box-shadow .2s,border-color .2s}
.kat-page-layout .wp-block-gallery.has-nested-images figure.wp-block-image:hover{box-shadow:0 7px 20px #26322d16;border-color:#c8b88f}
.kat-page-layout .wp-block-gallery.has-nested-images img{height:195px!important;max-height:195px}
.kat-books .kat-section{padding:30px 34px;border-top:3px solid var(--gold)}
.kat-books .kat-section p{font-size:15px;margin:9px 0;line-height:1.75}
.kat-books .kat-section .kat-book-meta{font-size:13px;line-height:1.7;color:var(--muted);margin:7px 0}
body .kat-books .kat-section>.wp-block-group__inner-container>figure.wp-block-image{max-width:210px;width:32%;margin-bottom:22px}
.kat-church-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.kat-church-grid>.wp-block-group__inner-container{display:contents}
.kat-church-card{background:var(--white);border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:12px;padding:24px;min-width:0}
.kat-page-layout .kat-church-card h3{font-size:1.2rem;margin:0 0 18px}
.kat-page-layout .kat-schedule-line{font-size:15px;font-variant-numeric:tabular-nums;line-height:1.65;padding:9px 0;border-top:1px solid var(--line);margin:0}
.kat-church-card:hover{box-shadow:0 8px 24px #26332e0c}
.kat-reference-media{clear:both;margin:30px 0}
.kat-reference-media>.wp-block-group__inner-container{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:center}
.kat-reference-media .wp-block-gallery{display:contents!important}
body .kat-reference-media>.wp-block-group__inner-container>figure.wp-block-image,.kat-reference-media .wp-block-gallery figure.wp-block-image{float:none!important;clear:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:10px;border:1px solid var(--line);border-radius:8px;background:#eee9de}
.kat-reference-media figure.wp-block-image img{width:100%;height:180px!important;max-height:180px!important;object-fit:contain}
.kat-archive .kat-section{border-top:3px solid var(--gold)}
.kat-page-layout .service-form-section{clear:both;margin:25px 0 0;padding:24px;border-radius:9px;background:#f8f6f0}
.kat-page-layout .service-form-section h2{margin-top:0}
.kat-page-layout .deferred-embed{clear:both;border-radius:8px}
.article-toc{max-width:850px;border:1px solid var(--line);border-left:3px solid var(--gold);padding:12px 20px;border-radius:0 8px 8px 0;background:#eeeadf;margin-bottom:28px}
.article-toc summary{font-weight:600;font-size:14px}
.article-toc ul{margin:15px 0 3px;columns:2;column-gap:30px}
.article-toc li{break-inside:avoid;padding:4px 0;line-height:1.5}
.article-toc a{text-decoration:none}
.single-post .editor-content h2,.single-post .editor-content h3{clear:both}
.single-katedra_event .article-cover{max-height:500px}
.single-katedra_event .article-cover img{max-height:475px}
@media(max-width:680px){
 .article-hero{padding-top:28px;padding-bottom:24px;gap:20px}
 .article-hero h1{font-size:1.85rem;max-width:100%;margin-bottom:8px}
 .article-cover{justify-self:start;max-width:360px;margin:0 auto;max-height:300px}
 .article-cover img{max-height:274px}
 .kat-section{padding:22px 20px;margin:20px 0}
 .kat-page-layout .kat-section h2:first-child{font-size:1.4rem;margin-bottom:16px}
 .kat-page-layout .kat-lead{font-size:1rem}
 .kat-page-layout .kat-source-list,.kat-church-grid{grid-template-columns:1fr}
 .kat-church-card{padding:21px}
 .kat-reference-media>.wp-block-group__inner-container{grid-template-columns:repeat(2,minmax(0,1fr))}
 .kat-books .kat-section{padding:23px 20px}
 .kat-page-layout .wp-block-gallery.has-nested-images{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .kat-page-layout .wp-block-gallery.has-nested-images img{height:140px!important;max-height:140px}
 .kat-page-layout .wp-block-gallery.has-nested-images figure.wp-block-image{padding:6px}
 body:not(.single-katedra_event) .kat-page-layout :where(.kat-intro,.kat-section)>.wp-block-group__inner-container>figure.wp-block-image{float:none;clear:both;width:75%;max-width:230px;margin:18px auto}
 .kat-page-layout .service-form-section{padding:18px 14px}
 .article-toc ul{columns:1}
}
@media(prefers-reduced-motion:reduce){.kat-page-layout .wp-block-gallery figure.wp-block-image{transition:none}}
