/*
Theme Name: SD NKK | Seminarium Duchowne
Theme URI: https://seminarium-duchowne.pl/
Author: SD NKK
Description: Lekki, autorski motyw Seminarium Duchownego NKK. Dwa motywy kolorystyczne, responsywność, edycja przez panel WordPress i integracja modułów.
Version: 2.4.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: sdnkk
License: GPL-2.0-or-later
*/
:root{color-scheme:light;--bg:#f8f6f1;--surface:#fffefa;--soft:#f0ece5;--text:#23282d;--muted:#505b61;--line:#dbd3cb;--brand:#781c33;--brand-strong:#62152a;--brand-on:#fff;--contrast:#171f29;--gold:#ad805d;--shadow:0 20px 70px #24191812;--content:1200px;--reading:77ch}
html[data-theme="dark"]{color-scheme:dark;--bg:#151b23;--surface:#1f2731;--soft:#29323c;--text:#f8f2ec;--muted:#d4cbd0;--line:#4b4a50;--brand:#f0b4c3;--brand-strong:#ffd3de;--brand-on:#22131b;--contrast:#fff7f2;--gold:#d6b08e;--shadow:0 20px 70px #0005}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--text);background:var(--bg);font-size:17px;line-height:1.73;overflow-wrap:break-word}a{color:var(--brand-strong);text-underline-offset:.2em}a:hover{text-decoration-thickness:2px}button,input,textarea,select{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--brand);outline-offset:4px}img{max-width:100%;height:auto}.wrap{width:min(calc(100% - 40px),var(--content));margin-inline:auto}.reading{max-width:var(--reading)}.skip-link{position:absolute;top:-100px;left:12px;background:var(--surface);color:var(--text);z-index:999;padding:12px}.skip-link:focus{top:12px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{position:relative;z-index:15;background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{min-height:96px;display:flex;align-items:center;gap:28px}.brand-link{display:flex;align-items:center;gap:13px;color:var(--text);text-decoration:none;min-width:0}.site-logo{height:70px;width:72px;object-fit:contain;flex:none}.brand-title{display:block;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1rem,1.6vw,1.38rem);line-height:1.12;font-weight:700}.brand-caption{font-size:.65rem;line-height:1.35;letter-spacing:.07em;color:var(--muted);display:block;margin-top:5px;max-width:270px}.site-navigation{margin-left:auto}.menu{list-style:none;display:flex;align-items:center;gap:clamp(9px,1.2vw,22px);padding:0;margin:0}.menu a{text-decoration:none;color:var(--text);font-size:.86rem;font-weight:600;padding:12px 2px;display:inline-block}.menu a:hover,.current-menu-item>a{color:var(--brand)}.header-actions{display:flex;align-items:center;gap:8px}.theme-toggle,.nav-toggle{background:transparent;color:var(--text);border:1px solid var(--line);border-radius:100px;min-width:44px;min-height:44px;padding:7px 12px;display:flex;align-items:center;justify-content:center}.nav-toggle{display:none}.theme-toggle span{font-size:20px}
.hero{position:relative;min-height:min(690px,75vh);display:flex;align-items:center;overflow:hidden;color:white;background:#1b1a19}.hero-bg{position:absolute;inset:0;background:center/cover no-repeat;transform:scale(1.01)}.hero:before{content:'';position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(17,15,21,.87),rgba(19,17,22,.48) 66%,rgba(15,15,20,.26))}.hero-inner{position:relative;z-index:2;padding-block:110px}.eyebrow{font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;font-weight:750;margin-bottom:20px;color:var(--gold)}.hero .eyebrow{color:#f3d5bb}.hero h1,.section-title,.article-heading{font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.025em;line-height:1.13}.hero h1{font-size:clamp(2.55rem,5.3vw,5.7rem);max-width:830px;margin:0 0 25px}.hero p{max-width:600px;font-size:clamp(1rem,1.4vw,1.19rem);line-height:1.7;color:#f7f0ea}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;text-decoration:none;border-radius:2px;font-size:.88rem;font-weight:750;transition:background-color .2s,transform .2s;border:1px solid transparent}.btn:hover{transform:translateY(-2px)}.btn-primary{background:#fff8f1;color:#242128}.btn-secondary{border-color:#f9efea99;color:#fff;background:#ffffff10}.btn-brand{background:var(--brand-strong);color:var(--brand-on)}.btn-brand:hover{background:var(--brand)}
.section{padding-block:clamp(68px,8vw,120px)}.section-soft{background:var(--soft)}.section-title{font-size:clamp(2rem,3.3vw,3.55rem);margin:0 0 22px}.intro-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(40px,6vw,95px);align-items:center}.text-justify p,.entry-content p{text-align:justify;hyphens:auto;overflow-wrap:break-word;max-width:var(--reading)}.intro-photo{aspect-ratio:5/4;width:100%;object-fit:cover;border-radius:2px}.tiny-rule{width:55px;height:2px;background:var(--brand);margin-bottom:24px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:46px}.feature-card{background:var(--surface);padding:30px;min-height:210px;border-top:2px solid var(--brand);box-shadow:var(--shadow)}.feature-no{font-family:Georgia,serif;font-size:.9rem;color:var(--brand);margin-bottom:12px}.feature-card h3{font-family:Georgia,serif;font-size:1.5rem;margin:0 0 12px;font-weight:500}.feature-card p{color:var(--muted);margin:0;font-size:.96rem}.split-ribbon{display:grid;grid-template-columns:1fr 1fr;align-items:center;background:var(--contrast);color:var(--bg)}.split-photo{width:100%;height:100%;min-height:430px;object-fit:cover}.split-content{padding:clamp(36px,6vw,90px)}.split-content h2{font-family:Georgia,serif;font-size:clamp(2rem,3vw,3.3rem);line-height:1.15;font-weight:500}.split-content p{max-width:55ch}.split-content a{color:inherit}
.article-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.article-card{background:var(--surface);border:1px solid var(--line)}.article-card img{aspect-ratio:16/10;object-fit:cover;display:block;width:100%}.article-card-body{padding:26px}.article-card h3{font-family:Georgia,serif;font-size:1.45rem;line-height:1.3;margin:0 0 12px}.article-card h3 a{text-decoration:none;color:var(--text)}.article-card p{font-size:.93rem;color:var(--muted)}.article-card time{font-size:.8rem;color:var(--muted)}.article-card .readmore{font-size:.87rem;font-weight:700}.page-shell{padding-block:65px 105px}.article-heading{font-size:clamp(2.3rem,4.5vw,4.3rem);margin:0 0 16px}.entry-content{max-width:var(--reading);margin-inline:auto}.entry-content h2,.entry-content h3{font-family:Georgia,serif;line-height:1.22;scroll-margin-top:20px}.entry-content h2{font-size:2rem;margin-top:2.1em}.entry-content h3{font-size:1.5rem;margin-top:1.7em}.entry-content img{height:auto}.entry-content blockquote{border-left:3px solid var(--brand);margin:35px 0;padding:12px 24px;background:var(--soft)}.entry-content a{word-break:break-word}.page-header{max-width:var(--reading);margin:0 auto 45px}.breadcrumbs{font-size:.8rem;color:var(--muted);margin-bottom:24px}.pagination{margin:45px 0}.pagination .page-numbers{padding:10px;border:1px solid var(--line)}
.site-footer{background:#191f28;color:#f6efe9;padding:70px 0 26px}.footer-columns{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:55px}.footer-brand{display:flex;gap:14px;align-items:center}.footer-brand img{width:70px;height:70px;object-fit:contain}.site-footer a{color:#f6efe9}.site-footer .brand-caption,.site-footer p{color:#ded7d5}.footer-nav{list-style:none;padding:0;margin:0}.footer-nav li{margin:8px 0}.footer-nav a{text-decoration:none;font-size:.9rem}.footer-title{font-family:Georgia,serif;font-size:1.25rem}.footer-bottom{border-top:1px solid #7778;margin-top:50px;padding-top:22px;display:flex;justify-content:space-between;gap:18px;font-size:.78rem;color:#d4d0d0}
@media(max-width:1030px){.header-inner{flex-wrap:wrap;min-height:80px}.site-navigation{order:4;width:100%;margin:0;display:none;padding-bottom:17px}.site-navigation.is-open{display:block}.menu{display:flex;flex-direction:column;align-items:stretch;gap:0}.menu a{padding:11px 0}.nav-toggle{display:flex}.header-actions{margin-left:auto}.site-logo{height:58px;width:62px}}
@media(max-width:760px){.wrap{width:min(calc(100% - 34px),var(--content))}.hero{min-height:600px}.hero-inner{padding-block:95px}.intro-grid,.split-ribbon{grid-template-columns:1fr}.split-photo{min-height:260px;max-height:350px}.feature-grid,.article-list{grid-template-columns:1fr}.footer-columns{grid-template-columns:1fr;gap:26px}.footer-bottom{flex-direction:column}.brand-caption{font-size:.58rem}.brand-title{font-size:1.01rem}.section{padding-block:68px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* SD NKK 1.1: stopka prawna i rekomendacja */
.site-footer .footer-title{margin:0 0 14px;font-weight:500}.site-footer .footer-about p{max-width:45ch}
.endorsement{display:flex;align-items:center;gap:20px;border-top:1px solid #ffffff29;margin-top:48px;padding:29px 0 30px}
.endorsement-symbol{width:55px;height:55px;flex:0 0 55px;display:grid;place-items:center;font-family:Georgia,serif;font-size:29px;border:1px solid #d3b1a0;color:#e2c1ae;border-radius:50%;line-height:1}
.endorsement-content{display:flex;flex-direction:column;align-items:start;gap:3px}.endorsement-eyebrow{font-size:.78rem;letter-spacing:.08em;color:#ded0ca}
.endorsement-name{font-family:Georgia,serif;font-size:clamp(1.05rem,1.7vw,1.4rem);text-decoration:none;font-weight:500}.endorsement-name:hover,.footer-legal a:hover{text-decoration:underline}
.footer-legal{display:flex;flex-wrap:wrap;column-gap:18px;row-gap:10px;border-top:1px solid #ffffff29;padding-top:27px}
.footer-legal a{font-size:.81rem;line-height:1.5;color:#eee4df;text-decoration:none;text-underline-offset:4px}
.footer-bottom{margin-top:25px;align-items:center;border-top:1px solid #ffffff29;line-height:1.5}
.footer-copyright{display:flex;flex-wrap:wrap;gap:7px 13px;align-items:center}.footer-copyright a{text-decoration:none}.footer-copyright a:hover{text-decoration:underline}.footer-reserved{color:#d4d0d0}
.footer-motto{font-family:Georgia,serif;letter-spacing:.16em;font-size:.9rem;color:#efe2d4}
/* SD NKK 1.1: graficzne wpisy i czytelna typografia */
.archive-intro{color:var(--muted);font-size:1.04rem;max-width:55ch}
.article-card{display:flex;flex-direction:column;overflow:hidden;border-radius:3px;box-shadow:0 9px 28px #1515150c;transition:border-color .2s,box-shadow .2s}
.article-card:hover{border-color:var(--brand);box-shadow:0 16px 40px #17121e1b}
.article-card .article-cover{display:block;overflow:hidden;aspect-ratio:16/10;background:var(--soft)}
.article-card .article-cover-image{width:100%;height:100%;object-fit:cover;aspect-ratio:16/10;transition:transform .35s;display:block}
.article-card:hover .article-cover-image{transform:scale(1.035)}
.article-card-body{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:25px 26px 27px}
.article-category{font-size:.69rem;letter-spacing:.12em;text-transform:uppercase;font-weight:750;color:var(--brand-strong);margin-bottom:9px}
.article-card time{font-size:.76rem;letter-spacing:.015em}
.article-card h3{margin:11px 0 14px;font-size:clamp(1.28rem,1.9vw,1.52rem);overflow-wrap:anywhere}
.article-card p{font-size:.94rem;line-height:1.7;margin:0 0 22px;text-align:justify;hyphens:auto;flex:1}
.article-card .readmore{display:inline-flex;gap:8px;align-items:center;text-decoration:none;border-top:1px solid var(--line);padding-top:13px;width:100%;margin-top:auto}
.article-card .readmore:hover{text-decoration:underline}
.single-head{text-align:center;max-width:850px;margin-bottom:38px}
.single-meta{font-size:.85rem;color:var(--muted)}
.single-cover{max-width:980px;margin:0 auto 55px}.single-cover img{width:100%;height:auto;max-height:600px;object-fit:cover;display:block}.single-cover figcaption{font-size:.8rem;color:var(--muted);margin-top:9px}
.single-article .entry-content{font-size:1.075rem;line-height:1.86}
.single-article .entry-content>p:first-child{font-size:1.16rem}
.single-article-footer{max-width:var(--reading);margin:60px auto 0;padding-top:24px;border-top:1px solid var(--line)}
.single-tags{font-size:.84rem;color:var(--muted)}.single-navigation{display:flex;justify-content:space-between;gap:24px;margin-top:25px}.single-navigation a{font-size:.91rem;max-width:46%}
@media(max-width:760px){.footer-legal{column-gap:12px;row-gap:12px}.endorsement{margin-top:25px}.single-navigation{flex-direction:column}.single-navigation a{max-width:100%}}
@media(prefers-reduced-motion:reduce){.article-card .article-cover-image{transition:none}}

/* SD NKK 1.2: compact, wholly local footer links */
.footer-columns{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) minmax(0,.9fr);gap:clamp(24px,4vw,70px)}
.site-footer .footer-title{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;font-size:.79rem;letter-spacing:.14em;text-transform:uppercase;font-weight:650}
.site-footer .footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:6px}
.site-footer .footer-nav li{margin:0;min-width:0}.site-footer .footer-nav a{font-size:.79rem;line-height:1.55;overflow-wrap:normal}
.site-footer .footer-about p,.site-footer .footer-columns p{font-size:.82rem;line-height:1.65}
.site-footer .footer-brand img{width:58px;height:58px}.site-footer .brand-title{font-size:1.12rem}.site-footer .brand-caption{font-size:.59rem}
.site-footer .endorsement{margin-top:30px;padding:19px 0;gap:12px}
.site-footer .endorsement-symbol{width:36px;height:36px;flex-basis:36px;font-size:19px}
.site-footer .endorsement-name{font-size:.99rem;font-weight:500}
.site-footer .endorsement-eyebrow{font-size:.69rem;letter-spacing:.04em}
.site-footer .footer-legal{padding-top:16px;gap:7px 18px}
.site-footer .footer-legal:empty{display:none}
.site-footer .footer-legal a{font-size:.74rem;line-height:1.6}
.site-footer .footer-bottom{padding-top:15px;margin-top:18px;font-size:.73rem}
@media(max-width:760px){.footer-columns{grid-template-columns:1fr;gap:22px}.site-footer{padding:42px 0 24px}.site-footer .footer-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer .endorsement{margin-top:22px}}

/* SD NKK 1.3 — rekomendacja NKK według zatwierdzonego znaku, bez fikcyjnych danych */
.site-footer .endorsement{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 text-align:center;gap:0;margin:36px 0 0;padding:24px 12px 27px;
 border-top:1px solid rgba(239,228,215,.19);border-bottom:1px solid rgba(239,228,215,.19);
 background:radial-gradient(ellipse at 50% 30%,rgba(159,87,99,.10),transparent 55%);
}
.site-footer .endorsement-heading{display:flex;align-items:center;justify-content:center;gap:19px;width:100%;max-width:780px;margin-bottom:14px}
.site-footer .endorsement-rule{height:1px;background:linear-gradient(90deg,transparent,rgba(210,180,155,.62));flex:1;max-width:135px}
.site-footer .endorsement-rule:last-child{transform:rotate(180deg)}
.site-footer .endorsement-eyebrow{color:#ddccc2;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;font-weight:600;line-height:1.5}
.site-footer .endorsement-mark{display:flex;align-items:center;justify-content:center;min-height:90px}
.site-footer .endorsement-mark img{display:block;height:83px;width:auto;max-width:83px;object-fit:contain;filter:none}
.site-footer .endorsement-name{font-family:Georgia,'Times New Roman',serif;font-size:clamp(.98rem,1.25vw,1.17rem);font-weight:400;line-height:1.45;color:#f0e7e1;margin-top:5px;letter-spacing:.008em}
.site-footer .footer-legal{border-top:0;justify-content:center;gap:10px 23px;padding:20px 0 0}
.site-footer .footer-legal a{font-size:.73rem;color:#e7e0da;text-decoration:none}
.site-footer .footer-legal a:hover{text-decoration:underline;text-underline-offset:4px}
.site-footer .footer-bottom{margin-top:21px;padding-top:17px}
@media(max-width:760px){.site-footer .endorsement{margin-top:24px;padding:22px 6px}.site-footer .endorsement-heading{gap:9px}.site-footer .endorsement-rule{max-width:55px}.site-footer .endorsement-eyebrow{font-size:.62rem;letter-spacing:.09em}.site-footer .endorsement-mark img{height:78px}.site-footer .footer-legal{justify-content:flex-start}}

/* SD NKK 1.4: coherent editorial footer, verified NKK logomark */
.site-footer{background:#171d27;color:#f3ede8;padding:50px 0 20px;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.site-footer .sdnkk-footer-wrap{max-width:1180px}
.site-footer .footer-columns{display:grid;grid-template-columns:1.5fr 1fr .9fr;gap:clamp(28px,5vw,80px);align-items:start}
.site-footer .footer-brand{gap:13px}.site-footer .footer-brand img{width:54px;height:60px;object-fit:contain;flex:0 0 auto}
.site-footer .brand-title{display:block;font-family:Georgia,serif;font-size:1.08rem;line-height:1.35;color:#fdf6ef;font-weight:600}
.site-footer .brand-caption{display:block;font-size:.64rem;letter-spacing:.035em;line-height:1.5;color:#ddd3cc}
.site-footer .footer-about p{max-width:42ch;margin:14px 0 0;line-height:1.6;font-size:.78rem;color:#dad1ca}
.site-footer .footer-title{font-family:system-ui,sans-serif;font-size:.71rem;letter-spacing:.14em;line-height:1.5;font-weight:700;color:#f3e5db;margin:9px 0 18px;text-transform:uppercase}
.site-footer .footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;list-style:none;margin:0;padding:0}
.site-footer .footer-nav li{margin:0}.site-footer .footer-nav a{display:inline-block;font-size:.8rem;line-height:1.5;color:#ded6d0;text-decoration:none}
.site-footer .footer-contact p{font-size:.8rem;color:#ded6d0;line-height:1.65;margin:0;max-width:32ch}
.site-footer .footer-contact-link{display:inline-block;font-size:.76rem;margin-top:10px;color:#e8c9b8;text-underline-offset:4px}
.site-footer a:hover{text-decoration:underline;text-underline-offset:4px;color:#fff}
.site-footer .endorsement{display:block;position:relative;margin:32px 0 0;padding:20px 12px;background:linear-gradient(100deg,rgba(109,44,60,.12),rgba(245,238,232,.015) 48%,rgba(109,44,60,.12));border-top:1px solid rgba(239,221,209,.23);border-bottom:1px solid rgba(239,221,209,.23)}
.site-footer .endorsement-inner{display:flex;justify-content:center;align-items:center;gap:24px;max-width:660px;margin:0 auto;text-align:left}
.site-footer .endorsement-mark{display:block;min-height:0;flex:0 0 auto}.site-footer .endorsement-mark img{display:block;height:76px;width:auto;max-width:66px;object-fit:contain;filter:none}
.site-footer .endorsement-copy{min-width:0}.site-footer .endorsement-eyebrow{margin:0 0 5px;color:#dbc5ba;font-size:.69rem;text-transform:uppercase;letter-spacing:.135em;line-height:1.5;font-weight:650}
.site-footer .endorsement-name{margin:0;color:#f7ede5;font:normal clamp(1.1rem,1.8vw,1.36rem)/1.3 Georgia,serif;letter-spacing:0}
.site-footer .footer-legal{display:flex;justify-content:center;flex-wrap:wrap;gap:9px 19px;margin:0;border:0;padding:19px 0 17px}.site-footer .footer-legal:empty{display:none}
.site-footer .footer-legal a{font-size:.73rem;color:#d9d2cf;text-decoration:none;line-height:1.6}
.site-footer .footer-bottom{margin:0;border-top:1px solid rgba(239,221,209,.23);padding-top:15px;display:flex;gap:20px;align-items:center;justify-content:space-between;color:#cec5bf;font-size:.7rem;line-height:1.5}
.site-footer .footer-motto{font:normal .78rem/1.4 Georgia,serif;letter-spacing:.16em;color:#e7d7c9;flex:0 0 auto}
@media(max-width:800px){.site-footer .footer-columns{grid-template-columns:1fr 1fr;gap:25px 22px}.site-footer .footer-about{grid-column:1/-1}}
@media(max-width:570px){.site-footer{padding-top:37px}.site-footer .footer-columns{grid-template-columns:1fr;gap:17px}.site-footer .footer-about{grid-column:auto}.site-footer .footer-nav{grid-template-columns:1fr 1fr}.site-footer .endorsement{margin-top:25px}.site-footer .endorsement-inner{gap:14px;justify-content:flex-start}.site-footer .endorsement-mark img{height:68px}.site-footer .endorsement-name{font-size:1.02rem}.site-footer .footer-legal{justify-content:flex-start}.site-footer .footer-bottom{flex-direction:column;align-items:flex-start;gap:8px}}

/* 1.5: footer architecture, navigation feedback, light/dark independent */
.site-footer{background:#151c27;color:#f6eee8;padding:52px 0 22px}
.site-footer .sdnkk-footer-wrap{max-width:1160px}
.site-footer .footer-columns{display:grid;grid-template-columns:1.4fr 1fr .9fr;gap:clamp(30px,5vw,70px);align-items:start}
.site-footer .footer-about p{font-size:.8rem;line-height:1.65;margin-top:12px;max-width:43ch}
.site-footer .footer-brand img{height:59px;width:58px}
.site-footer .footer-title{font-size:.7rem;margin:7px 0 18px;letter-spacing:.17em;font-weight:750}
.site-footer .footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px;list-style:none;padding:0;margin:0}
.site-footer .footer-nav li{min-width:0;margin:0}
.site-footer .footer-nav a,.site-footer .footer-nav-pending{font:400 .8rem/1.6 system-ui,sans-serif;color:#ede5df;text-decoration:none}
.site-footer .footer-nav-pending{color:#ada7a5}
.site-footer .footer-contact p{font-size:.81rem;max-width:30ch}
.site-footer .endorsement{display:block;border:1px solid rgba(218,194,181,.28);border-radius:0;padding:23px 30px;margin:38px auto 0;background:linear-gradient(115deg,#23202c,#1b202b 65%,#23202c)}
.site-footer .endorsement-inner{display:flex;align-items:center;justify-content:center;text-align:left;gap:25px;max-width:520px;margin:0 auto}
.site-footer .endorsement-mark{display:flex;align-items:center;justify-content:center;min-width:60px;min-height:80px}
.site-footer .endorsement-mark img{width:auto;height:76px;max-width:70px;object-fit:contain;filter:none}
.site-footer .endorsement-copy{min-width:0;max-width:400px}
.site-footer .endorsement-eyebrow{font:650 .67rem/1.6 system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#e6cbbb;margin:0 0 6px}
.site-footer .endorsement-name{font:400 clamp(1.08rem,1.65vw,1.38rem)/1.35 Georgia,serif;letter-spacing:0;margin:0;color:#fff2eb}
.site-footer .footer-legal{display:flex;justify-content:center;flex-wrap:wrap;gap:9px 21px;border:0;margin:0;padding:23px 0 18px}
.site-footer .footer-legal a{font-size:.74rem;color:#e9dfd9;text-decoration:none}
.site-footer .footer-legal a:hover,.site-footer .footer-nav a:hover{text-decoration:underline;text-underline-offset:4px}
.site-footer .footer-bottom{border-top:1px solid rgba(237,216,204,.24);padding-top:18px;margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:.71rem;color:#ded3cb}
.site-footer .footer-motto{font:400 .8rem Georgia,serif;letter-spacing:.13em;color:#f4e1d2}
.site-header .menu-pending{display:inline-block;padding:12px 2px;font-size:.84rem;color:var(--muted);opacity:.7}
@media(max-width:830px){.site-footer .footer-columns{grid-template-columns:1fr 1fr;gap:26px}.site-footer .footer-about{grid-column:1/-1}}
@media(max-width:560px){.site-footer .footer-columns{grid-template-columns:1fr;gap:19px}.site-footer .footer-about{grid-column:auto}.site-footer .endorsement{margin-top:27px;padding:20px 17px}.site-footer .endorsement-inner{gap:14px;justify-content:flex-start}.site-footer .endorsement-mark img{height:64px}.site-footer .endorsement-name{font-size:1.05rem}.site-footer .footer-legal{justify-content:flex-start}.site-footer .footer-bottom{flex-direction:column;align-items:flex-start}}

/* SD NKK 1.7: czytelna i responsywna nawigacja z submenu święceń niższych */
.site-header .wrap.header-inner{width:min(calc(100% - 48px),1320px);max-width:none;min-height:90px;gap:22px;flex-wrap:nowrap}
.site-header .brand-link{flex:0 0 auto;white-space:nowrap;gap:12px}
.site-header .brand-link>span{display:block;min-width:max-content}
.site-header .site-logo{width:60px;height:64px}
.site-header .brand-title{font-size:1.25rem;line-height:1.16;white-space:nowrap}
.site-header .brand-caption{font-size:.60rem;max-width:none;white-space:nowrap;letter-spacing:.025em}
.site-header .site-navigation{min-width:0;margin-left:auto}
.site-header .menu{gap:clamp(12px,1.25vw,21px);flex-wrap:nowrap}
.site-header .menu>li{position:relative;flex:0 0 auto}
.site-header .menu>li>a{white-space:nowrap;font-size:.81rem;font-weight:600;padding:14px 0}
.site-header .menu .sub-menu{list-style:none;position:absolute;left:-19px;top:calc(100% - 2px);min-width:225px;margin:0;padding:8px;background:var(--surface);border:1px solid var(--line);box-shadow:0 16px 35px #1112;border-radius:3px;display:none;z-index:50}
.site-header .menu .sub-menu li{margin:0}
.site-header .menu .sub-menu a{font-size:.84rem;display:block;padding:11px 12px;white-space:nowrap}
.site-header .menu .sub-menu a:hover,.site-header .menu .sub-menu a:focus-visible{background:var(--soft)}
.site-header .menu .menu-item-has-children>a:after{content:'⌄';font-size:.92rem;display:inline-block;margin-left:7px;font-weight:400}
.site-header .menu .menu-item-has-children:hover>.sub-menu,.site-header .menu .menu-item-has-children:focus-within>.sub-menu{display:block}
.site-header .header-actions{flex:0 0 auto}
@media(max-width:1380px){
 .site-header .wrap.header-inner{min-height:82px;gap:16px;flex-wrap:wrap}
 .site-header .site-navigation{display:none;order:4;width:100%;margin:0;padding-bottom:16px}
 .site-header .site-navigation.is-open{display:block}
 .site-header .nav-toggle{display:flex}
 .site-header .header-actions{margin-left:auto}
 .site-header .menu{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .site-header .menu>li{width:100%;border-bottom:1px solid var(--line)}
 .site-header .menu>li>a{display:block;padding:12px 0;white-space:normal}
 .site-header .menu .sub-menu{position:static;display:block;box-shadow:none;border:0;border-left:2px solid var(--brand);border-radius:0;background:transparent;margin:0 0 12px 12px;padding:0 0 0 15px;min-width:0}
 .site-header .menu .sub-menu a{padding:8px 0}
}
@media(max-width:570px){
 .site-header .wrap.header-inner{width:calc(100% - 28px);gap:8px}
 .site-header .site-logo{width:43px;height:48px}
 .site-header .brand-link{gap:8px}
 .site-header .brand-title{font-size:clamp(.83rem,3.5vw,1.06rem)}
 .site-header .brand-caption{font-size:.48rem;letter-spacing:0}
 .site-header .theme-toggle,.site-header .nav-toggle{min-width:38px;min-height:40px;padding:6px}
 .site-header .header-actions{gap:4px}
}

/* v1.8: czytelny panel kontaktu bez dublowania odnośników */
.site-footer .footer-contact-link{display:inline-block;margin-top:6px;font-size:.82rem;line-height:1.6}

/* SD NKK 1.9: spokojniejsze tytuły podstron; bez ingerencji w nagłówek hero strony głównej */
.page-shell .page-header{max-width:min(1040px,100%);margin-bottom:clamp(22px,3.5vw,42px)}
.page-shell .article-heading{font-size:clamp(1.9rem,3.1vw,3.05rem);line-height:1.17;letter-spacing:-.022em;overflow-wrap:break-word;hyphens:auto}
.page-shell .entry-content{max-width:min(1050px,100%)}
@media(max-width:650px){.page-shell .article-heading{font-size:clamp(1.75rem,7vw,2.3rem)}.page-shell{padding-block:40px 68px}}

/* SD NKK 2.0: moduł publikacji na dole strony głównej */
.sdnkk-latest{background:var(--bg);color:var(--text);padding:clamp(64px,7.5vw,108px) 0;overflow:clip}
.sdnkk-latest-inner{max-width:1240px}
.sdnkk-latest-heading{text-align:center;max-width:700px;margin:0 auto clamp(30px,4vw,54px)}
.sdnkk-latest-eyebrow{font-size:.7rem;font-weight:750;letter-spacing:.17em;color:var(--brand-strong);margin:0 0 13px}
.sdnkk-latest-heading h2{font:500 clamp(1.85rem,3.4vw,3.15rem)/1.15 Georgia,'Times New Roman',serif;letter-spacing:-.025em;margin:0 0 13px}
.sdnkk-latest-heading>p:last-child{font-size:.98rem;color:var(--muted);line-height:1.65;margin:0}
.sdnkk-latest-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(17px,2.4vw,26px);align-items:stretch}
.sdnkk-latest-grid.sdnkk-latest-count-1{grid-template-columns:minmax(0,690px);justify-content:center}
.sdnkk-latest-grid.sdnkk-latest-count-2{grid-template-columns:repeat(2,minmax(0,470px));justify-content:center}
.sdnkk-latest-card{min-width:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:5px;overflow:hidden;box-shadow:0 10px 35px #15121b0c;transition:box-shadow .24s,border-color .24s,transform .24s}
.sdnkk-latest-card:hover{border-color:var(--brand);box-shadow:0 16px 35px #15121b20;transform:translateY(-3px)}
.sdnkk-latest-photo{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--soft)}
.sdnkk-latest-photo img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .4s ease}
.sdnkk-latest-card:hover .sdnkk-latest-photo img{transform:scale(1.028)}
.sdnkk-latest-card-inner{padding:clamp(21px,2.2vw,30px);display:flex;flex-direction:column;flex:1;min-width:0}
.sdnkk-latest-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px 16px;margin-bottom:15px;font:600 .73rem/1.4 system-ui,sans-serif}
.sdnkk-latest-category{color:var(--brand-strong);text-transform:uppercase;letter-spacing:.09em}
.sdnkk-latest-meta time{color:var(--muted);font-weight:400}
.sdnkk-latest-card h3{font:500 clamp(1.25rem,1.7vw,1.65rem)/1.26 Georgia,'Times New Roman',serif;letter-spacing:-.01em;margin:0 0 15px;overflow-wrap:break-word;hyphens:auto}
.sdnkk-latest-count-1 .sdnkk-latest-card h3{font-size:clamp(1.45rem,2.2vw,1.95rem)}
.sdnkk-latest-card h3 a{color:var(--text);text-decoration:none}
.sdnkk-latest-card h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.sdnkk-latest-card-inner>p{color:var(--muted);font-size:.92rem;line-height:1.65;margin:0 0 25px;text-align:left;overflow-wrap:break-word}
.sdnkk-latest-more{display:inline-flex;align-items:center;gap:7px;margin-top:auto;font-size:.85rem;font-weight:700;color:var(--brand-strong);text-underline-offset:5px}
.sdnkk-latest-footer{text-align:center;margin-top:33px}
.sdnkk-latest-footer a{display:inline-flex;gap:12px;align-items:center;min-height:44px;padding:9px 4px;text-decoration:none;border-bottom:1px solid var(--brand);font-size:.9rem;font-weight:650;color:var(--text)}
.sdnkk-latest-kind-komunikaty .sdnkk-latest-card-inner{border-top:3px solid #9b364e}
.sdnkk-latest-kind-ogloszenia .sdnkk-latest-card-inner{border-top:3px solid #ae853c}
.sdnkk-latest-kind-listy-pasterskie .sdnkk-latest-card-inner{border-top:3px solid #8b73bb}
.sdnkk-latest-kind-listy-rektora .sdnkk-latest-card-inner{border-top:3px solid #648eb2}
.sdnkk-latest-kind-dokumenty .sdnkk-latest-card-inner{border-top:3px solid #5b9378}
.sdnkk-latest-kind-informacje .sdnkk-latest-card-inner{border-top:3px solid #6084b8}
@media(max-width:850px){.sdnkk-latest-grid,.sdnkk-latest-grid.sdnkk-latest-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.sdnkk-latest-grid,.sdnkk-latest-grid.sdnkk-latest-count-1,.sdnkk-latest-grid.sdnkk-latest-count-2{grid-template-columns:minmax(0,1fr)}.sdnkk-latest{padding:58px 0}.sdnkk-latest-card h3{font-size:1.48rem}.sdnkk-latest-heading{margin-bottom:30px}}
@media(prefers-reduced-motion:reduce){.sdnkk-latest-card,.sdnkk-latest-photo img{transition:none!important}.sdnkk-latest-card:hover{transform:none}}

/* SD NKK v2.1: czytelne menu rozwijane dla Formacji */
.site-navigation .menu>.menu-item-has-children{position:relative}
.site-navigation .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:50;list-style:none;margin:0;padding:9px;min-width:225px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 35px #0002}
.site-navigation .menu-item-has-children:hover>.sub-menu,.site-navigation .menu-item-has-children:focus-within>.sub-menu{display:block}
.site-navigation .sub-menu a{display:block;padding:9px 12px;line-height:1.5;white-space:normal}
@media(max-width:1030px){.site-navigation .sub-menu{position:static;display:block;box-shadow:none;border:0;border-left:2px solid var(--line);padding:0 0 0 16px;min-width:0}}

/* SD NKK 2.2: spokojna, uporządkowana stopka */
.site-footer .sdnkk-footer-top{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(250px,1.15fr) minmax(190px,.85fr);gap:clamp(25px,4vw,65px);align-items:start}
.site-footer .sdnkk-footer-column{min-width:0}.site-footer .sdnkk-footer-column .footer-title{margin:7px 0 19px}
.site-footer .sdnkk-footer-stack{display:flex;flex-direction:column;gap:15px;align-items:flex-start}
.site-footer .sdnkk-footer-stack a{font-size:.8rem;line-height:1.6;text-decoration:none;color:#e9ddd4}
.site-footer .sdnkk-footer-docs{border-top:1px solid rgba(236,213,197,.23);margin-top:27px;padding:20px 0;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px 23px}
.site-footer .sdnkk-footer-docs a{font-size:.74rem;line-height:1.6;color:#ded4cb;text-decoration:none;white-space:normal}
.site-footer .sdnkk-footer-docs a:focus-visible,.site-footer a:focus-visible{outline:2px solid #e8c3ad;outline-offset:4px}
.site-footer .footer-bottom{margin:0;gap:14px;padding-top:17px}
@media(max-width:850px){.site-footer .sdnkk-footer-top{grid-template-columns:1fr 1fr}.site-footer .footer-about{grid-column:1/-1}}
@media(max-width:570px){.site-footer .sdnkk-footer-top{grid-template-columns:1fr;gap:24px}.site-footer .footer-about{grid-column:auto}.site-footer .sdnkk-footer-docs{justify-content:flex-start;gap:12px 18px}}
/* Zewnętrzne linki: dialog bez nagłej nawigacji */
.sdnkk-exit-modal[hidden]{display:none!important}.sdnkk-exit-modal{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:20px}
.sdnkk-exit-backdrop{position:absolute;inset:0;background:rgba(8,14,24,.78);backdrop-filter:blur(5px)}
.sdnkk-exit-dialog{position:relative;width:min(100%,540px);max-height:min(90vh,800px);overflow:auto;padding:clamp(24px,4vw,39px);border:1px solid #d2b6aa;border-radius:12px;background:#fbf8f3;color:#1f2934;box-shadow:0 24px 90px #0007;outline:0}
.sdnkk-exit-symbol{height:44px;width:44px;border-radius:50%;display:grid;place-items:center;color:#75243c;background:#efe3df;font-size:22px}
.sdnkk-exit-eyebrow{font:700 .67rem/1.5 system-ui,sans-serif;letter-spacing:.15em;color:#7e3650;margin:19px 0 7px}
.sdnkk-exit-dialog h2{font:normal clamp(1.5rem,3vw,2rem)/1.25 Georgia,serif;color:#1c2733;margin:0 0 14px}
.sdnkk-exit-dialog p:not(.sdnkk-exit-eyebrow){font-size:.91rem;line-height:1.7;color:#3e4955}
.sdnkk-exit-target{overflow-wrap:anywhere;border-left:2px solid #8e4156;background:#f0ebe5;padding:9px 13px;font-size:.81rem!important}
.sdnkk-exit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}
.sdnkk-exit-actions button{padding:12px 17px;border-radius:5px;border:1px solid #7b2a42;background:transparent;color:#702940;cursor:pointer;font:600 .85rem/1.5 system-ui,sans-serif}
.sdnkk-exit-actions .sdnkk-exit-go{background:#782d44;color:#fff}
.sdnkk-exit-actions button:focus-visible{outline:3px solid #c2936d;outline-offset:3px}
@media(max-width:470px){.sdnkk-exit-actions{flex-direction:column}.sdnkk-exit-actions button{width:100%}}

/* v2.3: legal status without repeated institutional name */
.site-footer .sdnkk-legal-status{margin-top:17px;max-width:38ch;border-left:2px solid rgba(218,190,173,.43);padding-left:13px;color:#ded7d5}
.site-footer .sdnkk-legal-status summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;color:#e9d9cb;font-size:.78rem;line-height:1.5;font-weight:500;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(233,217,203,.45)}
.site-footer .sdnkk-legal-status summary::-webkit-details-marker{display:none}
.site-footer .sdnkk-legal-status summary:before{content:"+";font-family:Arial,sans-serif;font-size:1rem;line-height:1;font-weight:400;opacity:.85}
.site-footer .sdnkk-legal-status[open] summary:before{content:"−"}
.site-footer .sdnkk-legal-status summary:focus-visible{outline:2px solid #e9d9cb;outline-offset:5px;border-radius:2px}
.site-footer .sdnkk-legal-status p{margin:12px 0 0;color:#d3c8c0;font-size:.77rem;line-height:1.72;overflow-wrap:anywhere}

/* SD NKK v2.4: justowanie informacji prawnej i wyśrodkowanie podpisu rekomendacji */
.site-footer .sdnkk-legal-status p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}
.site-footer .endorsement-copy {
  text-align: center;
}
.site-footer .endorsement-eyebrow,
.site-footer .endorsement-name {
  text-align: center;
}
