/*
Theme Name: Chrześcijaństwo
Theme URI: https://chrzescijanstwo.com
Author: chrzescijanstwo.com
Description: Spokojny, redakcyjny motyw dla portalu o chrześcijaństwie.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: chrzescijanstwo
*/

:root {
    --cz-ink: #172535;
    --cz-muted: #627080;
    --cz-border: #dbe2e8;
    --cz-surface: #ffffff;
    --cz-paper: #f5f7f8;
    --cz-navy: #17324d;
    --cz-green: #2d6a5a;
    --cz-green-soft: #e7f0ed;
    --cz-shadow: 0 12px 32px rgba(23, 37, 53, .07);
    --cz-radius: 8px;
    --cz-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cz-paper); color: var(--cz-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cz-navy); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--cz-green); }
button, input, select, textarea { font: inherit; }
button, .cz-button { cursor: pointer; }
:focus-visible { outline: 3px solid #86b8a9; outline-offset: 3px; }

.cz-skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .65rem 1rem; background: var(--cz-navy); color: #fff; }
.cz-skip-link:focus { top: 1rem; }
.cz-site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--cz-border); }
.cz-header-inner, .cz-container { width: min(calc(100% - 2rem), var(--cz-max)); margin: 0 auto; }
.cz-header-inner { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.cz-brand { display: inline-flex; align-items: baseline; gap: .45rem; color: var(--cz-ink); text-decoration: none; white-space: nowrap; }
.cz-brand-name { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; letter-spacing: 0; }
.cz-brand-note { color: var(--cz-muted); font-size: .72rem; }
.cz-nav { margin-left: auto; }
.cz-nav ul { display: flex; align-items: center; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.cz-nav a { color: var(--cz-ink); text-decoration: none; font-size: .94rem; font-weight: 650; }
.cz-nav a:hover { color: var(--cz-green); }
.cz-header-actions { display: flex; align-items: center; gap: .75rem; }
.cz-header-search .cz-site-search { display: flex; align-items: center; gap: .35rem; }
.cz-header-search input { width: 145px; min-height: 36px; padding: .35rem .55rem; border: 1px solid var(--cz-border); border-radius: 5px; }
.cz-header-search .cz-button { min-height: 36px; padding: .35rem .6rem; font-size: .82rem; }
.cz-account-link { padding: .48rem .75rem; border: 1px solid var(--cz-border); border-radius: 6px; text-decoration: none; font-size: .88rem; }
.cz-menu-toggle { display: none; border: 1px solid var(--cz-border); border-radius: 6px; background: #fff; padding: .55rem .7rem; color: var(--cz-ink); }

.cz-main { padding: 3.3rem 0 5rem; }
.cz-kicker { margin: 0 0 .6rem; color: var(--cz-green); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cz-page-header { max-width: 820px; margin-bottom: 2.4rem; }
.cz-page-header h1 { margin: 0 0 .65rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: 0; }
.cz-page-header p { max-width: 680px; margin: 0; color: var(--cz-muted); font-size: 1.07rem; }
.cz-breadcrumbs { margin-bottom: 1.25rem; color: var(--cz-muted); font-size: .83rem; }
.cz-breadcrumbs a { color: var(--cz-muted); }

.cz-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .85fr); gap: 1.5rem; align-items: stretch; margin-bottom: 4rem; }
.cz-hero-main, .cz-panel, .cz-card, .cz-article-shell, .cz-filter-panel, .cz-empty { border: 1px solid var(--cz-border); border-radius: var(--cz-radius); background: var(--cz-surface); box-shadow: var(--cz-shadow); }
.cz-hero-main { padding: clamp(1.5rem, 4vw, 3.4rem); background: var(--cz-navy); color: #fff; }
.cz-hero-main a { color: #fff; }
.cz-hero-main .cz-kicker { color: #a9d0c3; }
.cz-hero-main h1 { max-width: 800px; margin: 0 0 1rem; font-family: Georgia, serif; font-size: clamp(2.15rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: 0; }
.cz-hero-main p { max-width: 720px; margin: 0 0 1.5rem; color: #dbe6eb; font-size: 1.08rem; }
.cz-hero-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.cz-hero-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; }
.cz-hero-aside h2 { margin: 0 0 1rem; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.2; }
.cz-hero-aside p { margin: 0; color: var(--cz-muted); }

.cz-section { margin-top: 3.8rem; }
.cz-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.cz-section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.85rem; line-height: 1.15; letter-spacing: 0; }
.cz-section-heading a { font-size: .9rem; font-weight: 700; }
.home .cz-brand-name { font-size: 1.52rem; }
.cz-home-intro { max-width: 820px; margin-bottom: 2.9rem; }
.cz-home-intro h1 { max-width: 800px; margin: 0 0 .75rem; font-family: Georgia, serif; font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: 0; }
.cz-home-intro > p:last-child { max-width: 690px; margin: 0; color: var(--cz-muted); font-size: 1.1rem; }
.cz-home-editorial { margin-bottom: 3.8rem; }
.cz-home-editorial-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 1rem; }
.cz-home-editorial-side { display: grid; gap: 1rem; }
.cz-home-card { min-width: 0; padding: 1.25rem; border: 1px solid var(--cz-border); border-radius: var(--cz-radius); background: #fff; }
.cz-home-card a { text-decoration: none; }
.cz-home-card h3 { margin: .7rem 0 .65rem; font-family: Georgia, serif; font-size: 1.32rem; line-height: 1.2; }
.cz-home-card p { margin: 0; color: var(--cz-muted); }
.cz-home-card-topline { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--cz-muted); font-size: .78rem; }
.cz-home-card-author { margin-top: .9rem !important; font-size: .78rem; }
.cz-home-card-feature { display: flex; min-height: 330px; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 4vw, 2.8rem); background: var(--cz-navy); color: #fff; }
.cz-home-card-feature .cz-tag { background: #d9ebe5; color: #1f574a; }
.cz-home-card-feature .cz-home-card-topline time, .cz-home-card-feature p { color: #dbe6eb; }
.cz-home-card-feature h3 { max-width: 760px; font-size: clamp(2rem, 4vw, 3.35rem); }
.cz-home-card-feature h3 a { color: #fff; }
.cz-home-card-compact { display: flex; min-height: 0; flex-direction: column; justify-content: center; }
.cz-home-card-compact h3 { font-size: 1.42rem; }
.cz-home-latest-grid, .cz-home-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cz-home-latest-grid .cz-home-card { min-height: 235px; }
.cz-home-content-grid .cz-home-card { min-height: 220px; }
.cz-section-description { max-width: 620px; margin: .45rem 0 0; color: var(--cz-muted); font-size: .95rem; }
.cz-home-apologetics { padding: clamp(1.25rem, 3vw, 2rem); border-top: 3px solid var(--cz-green); background: #edf4f1; }
.cz-home-apologetics .cz-home-card { background: #fff; }
.cz-home-comment { min-height: 170px; padding: 1.15rem; border: 1px solid var(--cz-border); border-radius: var(--cz-radius); background: #fff; }
.cz-home-comment p { margin: 0 0 .65rem; color: var(--cz-muted); }
.cz-home-comment-author { color: var(--cz-ink) !important; font-weight: 800; }
.cz-home-comment-post { margin-bottom: 0 !important; font-size: .82rem; }
.cz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cz-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cz-card { display: flex; min-height: 220px; flex-direction: column; padding: 1.25rem; box-shadow: none; }
.cz-card:hover { border-color: #b5c9d2; }
.cz-card h3 { margin: .55rem 0 .6rem; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.2; }
.cz-card h3 a { text-decoration: none; }
.cz-card p { margin: 0; color: var(--cz-muted); }
.cz-card-meta { display: flex; flex-wrap: wrap; gap: .45rem .7rem; margin-top: auto; padding-top: 1rem; color: var(--cz-muted); font-size: .78rem; }
.cz-tag { display: inline-flex; width: fit-content; padding: .23rem .48rem; border-radius: 4px; background: var(--cz-green-soft); color: var(--cz-green); font-size: .72rem; font-weight: 800; }
.cz-status { display: inline-flex; width: fit-content; padding: .22rem .48rem; border: 1px solid var(--cz-border); border-radius: 4px; color: var(--cz-muted); font-size: .7rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.cz-status-ready { border-color: #a8cdbd; background: #edf7f1; color: #246044; }
.cz-status-research, .cz-status-draft, .cz-status-review { background: #f5f7f8; }
.cz-status-disputed { border-color: #d8b2a8; background: #fbf0ed; color: #824337; }

.cz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cz-stat { padding: 1rem; border-top: 3px solid var(--cz-green); background: #fff; }
.cz-stat strong { display: block; font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.cz-stat span { display: block; margin-top: .35rem; color: var(--cz-muted); font-size: .82rem; }
.cz-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.cz-category-link { min-height: 120px; padding: 1rem; border: 1px solid var(--cz-border); border-radius: 6px; background: #fff; text-decoration: none; }
.cz-category-link strong { display: block; margin-bottom: .3rem; line-height: 1.25; }
.cz-category-link span { color: var(--cz-muted); font-size: .82rem; }

.cz-article-shell { padding: clamp(1.25rem, 3vw, 2.8rem); }
.cz-article-header { max-width: 850px; margin-bottom: 1.8rem; }
.cz-article-header h1 { margin: .75rem 0 1rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: 0; }
.cz-article-meta { display: flex; flex-wrap: wrap; gap: .55rem .9rem; color: var(--cz-muted); font-size: .84rem; }
.cz-short-answer { margin: 1.8rem 0 2.2rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--cz-green); background: #eef5f2; }
.cz-short-answer h2 { margin: 0 0 .65rem; color: var(--cz-green); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.cz-short-answer p:last-child { margin-bottom: 0; }
.cz-source-note { margin: 1rem 0 1.5rem; padding: .75rem 1rem; border: 1px solid var(--cz-border); border-radius: 5px; background: #f8fafb; color: var(--cz-muted); font-size: .9rem; }
.cz-editorial-comment { max-width: 840px; margin-top: 2.5rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--cz-navy); background: #f1f5f7; }
.cz-editorial-comment h2 { margin: 0 0 .55rem; font-family: Georgia, serif; font-size: 1.35rem; }
.cz-editorial-comment p:last-child { margin-bottom: 0; }
.cz-prose { max-width: 840px; font-size: 1.03rem; }
.cz-prose h2 { margin: 2.4rem 0 .85rem; padding-top: 1.1rem; border-top: 1px solid var(--cz-border); font-family: Georgia, serif; font-size: 1.75rem; line-height: 1.2; }
.cz-prose h3 { margin: 1.6rem 0 .55rem; font-family: Georgia, serif; font-size: 1.25rem; }
.cz-prose p, .cz-prose ul, .cz-prose ol, .cz-prose blockquote { margin: 0 0 1rem; }
.cz-prose ul, .cz-prose ol { padding-left: 1.35rem; }
.cz-prose blockquote { padding: .8rem 1rem; border-left: 3px solid #9cb8b0; background: #f6f9f8; color: #42525c; }
.cz-prose img { border-radius: 6px; }
.cz-prose code { padding: .12rem .3rem; border-radius: 3px; background: #eef1f2; font-size: .9em; }
.cz-comments { max-width: 840px; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--cz-border); }
.cz-comments h2 { font-family: Georgia, serif; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { margin: 1rem 0; padding: 1rem; border: 1px solid var(--cz-border); border-radius: 6px; background: #fff; }
.comment-meta { color: var(--cz-muted); font-size: .82rem; }
.comment-content p { margin: .7rem 0; }
.cz-comment-actions { font-size: .8rem; }

.cz-filter-panel { margin-bottom: 1.5rem; padding: 1rem; box-shadow: none; }
.cz-filter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: .7rem; align-items: end; }
.cz-field label, .cz-form-card label, .cz-account-card label { display: block; margin-bottom: .3rem; font-size: .78rem; font-weight: 800; }
.cz-field input, .cz-field select, .cz-form-card input, .cz-account-card input, .cz-form-card textarea, .cz-account-card textarea { width: 100%; min-height: 42px; padding: .55rem .65rem; border: 1px solid #bdc9d0; border-radius: 5px; background: #fff; color: var(--cz-ink); }
.cz-field input:focus, .cz-field select:focus, .cz-form-card input:focus, .cz-account-card input:focus { border-color: var(--cz-green); outline: 2px solid #bddacf; outline-offset: 1px; }
.cz-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .55rem .85rem; border: 1px solid var(--cz-green); border-radius: 5px; background: var(--cz-green); color: #fff; font-weight: 750; text-decoration: none; }
.cz-button:hover { background: #245547; color: #fff; }
.cz-button-secondary { border-color: var(--cz-border); background: #fff; color: var(--cz-ink); }
.cz-button-secondary:hover { background: #f4f6f7; color: var(--cz-ink); }
.cz-question-list { display: grid; gap: .65rem; }
.cz-question-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--cz-border); border-radius: 6px; background: #fff; }
.cz-question-number { color: var(--cz-muted); font-family: Georgia, serif; font-size: 1.35rem; }
.cz-question-row h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.cz-question-row h2 a { text-decoration: none; }
.cz-question-row p { margin: .25rem 0 0; color: var(--cz-muted); font-size: .82rem; }
.cz-question-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.cz-unavailable { color: var(--cz-muted); font-size: .78rem; }
.cz-empty { padding: 1.5rem; box-shadow: none; }
.cz-empty h2 { margin-top: 0; font-family: Georgia, serif; }
.cz-term-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.75rem; }
.cz-term-card { padding: 1rem; border: 1px solid var(--cz-border); border-radius: 6px; background: #fff; text-decoration: none; }
.cz-term-card strong { display: block; line-height: 1.25; }
.cz-term-card span { color: var(--cz-muted); font-size: .82rem; }
.cz-pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.cz-pagination .page-numbers { padding: .4rem .65rem; border: 1px solid var(--cz-border); border-radius: 4px; background: #fff; text-decoration: none; }
.cz-pagination .current { background: var(--cz-navy); color: #fff; }

.cz-form-card, .cz-account-card { max-width: 520px; padding: 1.5rem; border: 1px solid var(--cz-border); border-radius: 8px; background: #fff; }
.cz-form-card p, .cz-account-card p { margin: 0 0 1rem; }
.cz-form-card .login-remember label { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.cz-form-card .login-remember input { width: auto; min-height: 0; }
.cz-notice { padding: .75rem; border-left: 3px solid var(--cz-green); background: var(--cz-green-soft); }
.cz-site-footer { padding: 2.5rem 0; border-top: 1px solid var(--cz-border); background: #fff; color: var(--cz-muted); }
.cz-footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.cz-footer-inner p { margin: 0; font-size: .86rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
    .cz-header-inner { gap: 1rem; }
    .cz-nav ul { gap: .75rem; }
    .cz-header-actions { margin-left: auto; }
    .cz-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cz-home-editorial-grid { grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); }
    .cz-home-latest-grid, .cz-home-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cz-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cz-filter-grid .cz-filter-submit { grid-column: span 2; }
}

@media (max-width: 700px) {
    .cz-main { padding-top: 2.1rem; }
    .cz-header-inner { min-height: 66px; }
    .cz-brand-note, .cz-header-search { display: none; }
    .cz-menu-toggle { display: inline-flex; }
    .cz-nav { position: absolute; left: 1rem; right: 1rem; top: calc(100% + 1px); display: none; padding: .75rem; border: 1px solid var(--cz-border); border-radius: 0 0 7px 7px; background: #fff; box-shadow: var(--cz-shadow); }
    .cz-nav.is-open { display: block; }
    .cz-nav ul { display: grid; gap: 0; }
    .cz-nav li a { display: block; padding: .7rem .5rem; }
    .cz-hero { grid-template-columns: 1fr; }
    .cz-hero-main h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
    .cz-grid, .cz-grid-2, .cz-stats, .cz-term-grid { grid-template-columns: 1fr; }
    .home .cz-brand-name { font-size: 1.25rem; }
    .cz-home-intro { margin-bottom: 2.2rem; }
    .cz-home-intro h1 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
    .cz-home-editorial-grid, .cz-home-latest-grid, .cz-home-content-grid { grid-template-columns: 1fr; }
    .cz-home-card-feature { min-height: 290px; }
    .cz-category-grid { grid-template-columns: 1fr 1fr; }
    .cz-section-heading { align-items: start; flex-direction: column; }
    .cz-filter-grid { grid-template-columns: 1fr; }
    .cz-filter-grid .cz-filter-submit { grid-column: auto; }
    .cz-question-row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .65rem; }
    .cz-question-status { grid-column: 2; justify-content: flex-start; }
    .cz-footer-inner { flex-direction: column; gap: .5rem; }
}
