/* Interior pages use their theme's typography and parish palette. */
body.pui-page {--pui-ink:var(--pmd-ink,#224a45);--pui-sheet:var(--pmd-surface,#faf7ef);--pui-rule:color-mix(in srgb,currentColor 25%,transparent);--pui-wash:color-mix(in srgb,var(--pui-ink) 7%,transparent);--pui-radius:.15rem}
body.pui-page.pfv-sebastian {--pui-ink:#ffe9c4;--pui-sheet:#1c2c45;--pui-rule:#6c7481;--pui-wash:#29394e}
body.pui-page:is(.pfv-anielska,.pfv-sniezna,.pfv-franciszek,.pfv-nmpzatybrze) {--pui-radius:.75rem}
body.pui-page .pui-page-icon {display:inline-block;vertical-align:middle;width:1.15em;height:1.15em;max-width:none;flex:none;color:var(--pui-ink)}
body.pui-page main article.type-page > h1.pui-titled {display:flex;align-items:center;gap:.44em;min-width:0;overflow-wrap:anywhere;line-height:1.12;margin-block:.36em .72em}
body.pui-page h1.pui-titled .pui-page-icon {width:.96em;height:.96em;box-sizing:content-box;padding:.18em;border:1px solid var(--pui-rule);border-radius:var(--pui-radius)}
body.pfv-anielska h1.pui-titled .pui-page-icon {border-radius:55% 55% 14% 14%;background:var(--pui-wash)}
body.pfv-jan h1.pui-titled .pui-page-icon {border:0;border-right:3px double var(--pui-rule);padding-inline:0 .35em;border-radius:0}
body.pfv-sniezna h1.pui-titled .pui-page-icon {border-radius:50%;background:var(--pui-wash);border:0}
body.pfv-wawrzyniec h1.pui-titled .pui-page-icon {border-radius:48% 48% 0 0;background:var(--pui-wash)}
body.pfv-quovadis h1.pui-titled .pui-page-icon {border-width:0 0 2px;border-radius:0}
body.pfv-sebastian h1.pui-titled .pui-page-icon {border-radius:50% 50% 15% 15%;background:var(--pui-wash)}
body.pfv-jerozolimski h1.pui-titled .pui-page-icon {border:0;border-left:3px solid var(--pui-rule);border-radius:0;padding-inline-start:.3em}
body.pfv-dwunastu h1.pui-titled .pui-page-icon {border:0;background:var(--pui-wash);border-radius:0}
body.pfv-franciszek h1.pui-titled .pui-page-icon {border:0;border-radius:50% 6% 50% 6%;background:var(--pui-wash)}
body.pfv-panteon h1.pui-titled .pui-page-icon {border-radius:50%;border-width:3px;border-style:double}
body.pfv-klemens h1.pui-titled .pui-page-icon {border-width:0 0 1px 1px;background:var(--pui-wash)}
body.pfv-sabina h1.pui-titled .pui-page-icon {border:0;padding-inline:0 .12em}
body.pfv-nmpzatybrze h1.pui-titled .pui-page-icon {border-radius:50% 50% 0 0;border-width:0 0 2px;background:var(--pui-wash)}

body.pui-page .entry-content :is(.parafeo-module > p,.parafeo-module > ul,.parafeo-module > ol) {max-inline-size:70ch}
body.pui-page .entry-content :is(.parafeo-module > h2,.parafeo-module > h3) {line-height:1.23;text-wrap:pretty}
body.pui-page .entry-content .parafeo-module > p + :is(h2,h3),
body.pui-page .entry-content .parafeo-module > :is(ul,ol) + h2 {margin-block-start:1.25em}
body.pui-page:not(.pfe-theme-pawel) .entry-content > img:first-child:has(+ [data-parafeo-module=sakramenty]) {width:min(100%,48rem);max-height:clamp(10rem,32vw,23rem);object-fit:cover;object-position:center;margin:0 0 clamp(1rem,2vw,1.7rem)}
body.pui-page.pui-rite-detail .entry-content .parafeo-module > ul {padding-inline-start:1.35em;margin-block:.55em 1.2em}
body.pui-page.pui-rite-detail .entry-content .parafeo-module > ul > li {padding-block:.15em;padding-inline-start:.16em}
body.pui-page.pui-rite-detail .entry-content .parafeo-module > ul > li::marker {color:var(--pui-ink)}
body.pui-page .entry-content .pfw-sacrament {border:0;border-inline-start:3px solid var(--pui-ink);background:var(--pui-wash);padding:.8rem 1.1rem;margin:1.25rem 0;max-width:70ch}
body.pui-page .entry-content .pfw-sacrament > :first-child {margin-top:0}
body.pui-page .entry-content .pfw-sacrament > :last-child {margin-bottom:0}
body.pui-page .entry-content .pui-office-action a {display:inline-flex;align-items:center;gap:.5rem;min-height:44px;text-decoration:underline;text-underline-offset:.19em;font-weight:650}

body.pui-page .entry-content :is(#dzisiejsze-msze,#kancelaria-dzisiaj) {display:grid;align-content:center;gap:.25rem;padding:.75rem 1rem;margin-block:.35rem 1.25rem;border:0;border-inline-start:3px solid var(--pui-ink);background:var(--pui-wash);color:inherit;border-radius:0 var(--pui-radius) var(--pui-radius) 0}
body.pui-page .entry-content .pfw-today .pfw-lines {font-variant-numeric:tabular-nums;line-height:1.28;font-size:clamp(1.25rem,2vw,1.65rem)}
body.pui-page .entry-content dl.pfw-schedule {margin:.55rem 0 1.5rem;border-block-end:1px solid var(--pui-rule);font-variant-numeric:tabular-nums}
body.pui-page .entry-content dl.pfw-schedule > div {display:grid;grid-template-columns:minmax(7em,.8fr) minmax(0,1.5fr);gap:.4rem 1rem;align-items:baseline;padding:.52rem .72rem;margin:0;border:0;border-block-start:1px solid var(--pui-rule)}
body.pui-page .entry-content dl.pfw-schedule > div > :is(dt,dd) {margin:0;padding:0;line-height:1.42;min-width:0;overflow-wrap:anywhere}
body.pui-page .entry-content dl.pfw-schedule > .pui-current-day {background:var(--pui-wash);box-shadow:inset 3px 0 var(--pui-ink)}
body.pui-page .entry-content .pui-current-day :is(dt,dd) {font-weight:700}

body.pui-page .entry-content .pui-months {display:flex;flex-wrap:wrap;gap:.24rem clamp(.5rem,2vw,1.4rem);border-block-end:1px solid var(--pui-rule);padding:0 0 .7rem;margin-bottom:1rem}
body.pui-page .entry-content .pui-months a {display:inline-flex;align-items:center;min-height:44px;max-width:100%;color:var(--pui-ink);font-size:1rem;line-height:1.35;font-weight:600;text-decoration:underline;text-underline-offset:.24em}
body.pui-page .entry-content .pui-months a:hover {text-decoration-thickness:2px}
body.pui-page .entry-content .pfw-calendar-month > h2 {scroll-margin-top:5rem}
body.pui-page .entry-content .pfw-agenda-date {font-variant-numeric:tabular-nums}
body.pui-page .entry-content .pfw-event-copy > :is(h3,p) {overflow-wrap:break-word}
body.pui-page .entry-content .pfw-event-copy .pfw-calendar-download {display:inline-flex;align-items:center;min-height:40px;line-height:1.35;text-decoration:underline;text-underline-offset:.2em;font-weight:600}

body.pui-page .entry-content .pfo-contact-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:clamp(.85rem,2vw,1.65rem);margin:.4rem 0 1.4rem;align-items:start}
body.pui-page .entry-content .pfo-contact-grid > section {position:relative;width:auto;max-width:100%;min-width:0;padding:.7rem .15rem 0;margin:0;border:0;border-block-start:2px solid var(--pui-rule);background:transparent;box-shadow:none}
body.pui-page .entry-content :is(.pfo-contact-grid,.pfo-parish-identifiers,#pfm-map) h2 > .pui-page-icon {width:1em;height:1em;margin-inline-end:.35em;vertical-align:-.06em}
body.pui-page .entry-content .pfo-contact-grid h2 {margin:.2rem 0 .7rem;font-size:clamp(1.18rem,2.1vw,1.55rem);line-height:1.22}
body.pui-page .entry-content .pfo-contact-grid p {margin:.32rem 0 .65rem;line-height:1.48;max-width:100%;overflow-wrap:anywhere}
body.pui-page .entry-content .pui-example-contact {cursor:text;color:inherit;text-decoration:none}
body.pui-page .entry-content .pfo-parish-identifiers {display:flex;align-items:baseline;flex-wrap:wrap;gap:.3rem 1.1rem;padding:.7rem 0;margin:.75rem 0;border-block:1px solid var(--pui-rule);background:transparent}
body.pui-page .entry-content .pfo-parish-identifiers > :is(h2,p) {margin:0}
body.pui-page .entry-content .pfo-parish-identifiers h2 {font-size:1.05em}
body.pui-page .entry-content .pfm-actions {display:flex;align-items:center;flex-wrap:wrap;gap:.25rem 1rem}
body.pui-page .entry-content .pfm-actions a,
body.pui-page .entry-content :is(.pfm-canvas button,#pfm-map button.pfpc-embed) {display:inline-flex;align-items:center;min-height:44px;max-width:100%;font:inherit;line-height:1.35;text-align:start}
body.pui-page .entry-content :is(.pfm-canvas button,#pfm-map button.pfpc-embed) {padding:.5rem .85rem;color:var(--pui-ink);border:1px solid var(--pui-rule);border-radius:var(--pui-radius);background:var(--pui-sheet);cursor:pointer}
body.pui-page .entry-content .pfm-actions a {text-underline-offset:.2em}
body.pui-page .entry-content :is(.pfm-canvas button,#pfm-map button.pfpc-embed):hover {text-decoration:underline;text-underline-offset:.18em}
body.pui-page .entry-content :is(.pui-months,.pfm-actions,#pfm-map,.pui-office-action) :is(a,button):focus-visible,
body.pui-page .context-nav a:focus-visible {outline:2px solid currentColor;outline-offset:3px}

body.pui-page .page-main .context-nav {align-self:start}
body.pui-page .page-main .context-nav a {min-height:44px;display:flex;align-items:center;min-width:0;line-height:1.3;text-underline-offset:.2em}
body.pui-page .page-main .context-nav a:hover {text-decoration:underline}
body.pui-page .pui-demo-field {display:block;margin-top:.22rem;font-family:inherit;font-weight:500;font-size:.84rem;line-height:1.45}
body.pui-o-parafii .entry-content .parafeo-module > .container:has(.simple-card.h-100) {container:pui-profile / inline-size}
body.pui-o-parafii .entry-content .parafeo-module .row:has(> div > .simple-card.h-100) {display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem 1.35rem;text-align:start;margin:0 0 1.25rem}
body.pui-o-parafii .entry-content .parafeo-module .row:has(> div > .simple-card.h-100) > div {width:auto;max-width:none;min-width:0;padding:0;margin:0!important}
body.pui-o-parafii .entry-content .parafeo-module .simple-card.h-100 {box-sizing:border-box;height:auto!important;min-height:0;margin:0;padding:.6rem 0 .75rem;box-shadow:none;background:transparent;border:0;border-top:1px solid var(--pui-rule);border-radius:0;overflow-wrap:anywhere;font-size:1rem;line-height:1.5}
body.pui-o-parafii .entry-content .parafeo-module .simple-card.h-100 h3 {margin:0 0 .34rem;font-size:1.09em;line-height:1.3}
body.pui-o-parafii .entry-content .parafeo-module .simple-card.h-100 p {margin:.24rem 0 .45rem;line-height:1.5}
@container pui-profile (min-width:30rem) {
    body.pui-o-parafii .entry-content .parafeo-module .row:has(> div > .simple-card.h-100) {grid-template-columns:repeat(2,minmax(0,1fr))}
    body.pui-o-parafii .entry-content .parafeo-module .row:has(> div > .simple-card.h-100) > .col-12 {grid-column:1/-1}
}
@container pui-profile (min-width:51rem) {
    body.pui-o-parafii .entry-content .parafeo-module .row:has(> div > .simple-card.h-100) {grid-template-columns:repeat(4,minmax(0,1fr))}
    body.pui-o-parafii .entry-content .parafeo-module .row:has(> div > .simple-card.h-100) > .col-md-6:not(.col-lg-3) {grid-column:span 2}
}
body.pui-narrative .entry-content :is(.parafeo-module > h2:first-child,.parafeo-module > img:first-child + h2,h2:first-child:only-of-type) {max-width:36ch;text-wrap:pretty;line-height:1.15}
body.pui-narrative .entry-content > h2:first-child + p,
body.pui-narrative .entry-content .parafeo-module > h2:first-child + p {max-width:61ch;line-height:1.63;font-size:1.1em}
body.pui-narrative .entry-content :where(blockquote,figure,.wp-block-table) {max-width:100%}
@media(max-width:700px) {
    body.pui-page .page-main .context-nav {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.8rem),1fr));gap:0 .8rem;padding-block:.6rem;margin-top:1.25rem}
    body.pui-page .page-main .context-nav h2 {grid-column:1/-1;margin:0 0 .15rem}
    body.pui-page .page-main .context-nav a {margin:0;padding:.4rem 0;border:0;border-bottom:1px solid var(--pui-rule)}
    body.pui-page .entry-content dl.pfw-schedule > div {grid-template-columns:minmax(0,.92fr) minmax(0,1.19fr);gap:.42rem .6rem;padding:.46rem .55rem}
    body.pui-page .entry-content .pfw-event .pfw-event-copy {min-width:0}
    body.pui-page .entry-content .pui-months {gap:0 .85rem}
}

