/*
Theme Name: Miłosierdzie Sanktuarium
Theme URI: https://milosierdziebielsk.pl/
Description: Motyw parafii Miłosierdzia Bożego w Bielsku Podlaskim w układzie wzorowanym na stronie Diecezji Drohiczyńskiej: aktualności, ogłoszenia i liturgia, kolumna banerów, galeria. Zachowuje typ treści „Ogłoszenia” i szablony „Galeria” oraz „Godziny Mszy” z motywu Miłosierdzie Premium.
Version: 1.5.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: milosierdzie-sanktuarium
*/

:root {
  --blue: #003598;
  --blue-dark: #00266e;
  --navy: #363a55;
  --mercy-red: #c8102e;
  --ink: #111;
  --text: #2b2d35;
  --muted: #6b7080;
  --line: #dfe3ea;
  --chip-line: #cfd5e6;
  --soft: #edf0ff;
  --side: #eef1f5;
  --bg: #fff;
  --radius: 10px;
  --font: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased }
img { max-width: 100%; height: auto; display: block }
a { color: var(--blue); text-decoration: none }
a:hover { color: var(--blue-dark); text-decoration: underline }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; line-height: 1.25; margin: 0 0 .6em }
p { margin: 0 0 1em }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px }
.skip-link:focus { left: 8px }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s }
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(17, 24, 55, .08) }
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav tools";
  align-items: center; column-gap: 16px; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 12px; color: var(--blue); text-decoration: none }
.brand:hover { text-decoration: none; color: var(--blue) }
.brand-logo { max-height: 76px; width: auto }
.brand-mark { width: 44px; height: 60px; flex: none; color: var(--blue) }
.brand-text { display: flex; flex-direction: column; line-height: 1.1 }
.brand-kicker { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted) }
.brand-name { font-size: 21px; font-weight: 300; text-transform: uppercase; letter-spacing: .04em; margin: 3px 0 2px }
.brand-place { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 300 }

.header-tools { grid-area: tools; display: flex; justify-content: flex-end; gap: 6px }
.tool { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 6px }
.tool:hover { background: var(--side); color: var(--blue) }
.tool svg { width: 24px; height: 24px }
.menu-toggle { display: none }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; content: "" }
.menu-toggle .bars::before { position: absolute; top: -7px } .menu-toggle .bars::after { position: absolute; top: 7px }

.main-nav { grid-area: nav; justify-self: end }
.main-nav ul { list-style: none; margin: 0; padding: 0 }
.main-nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end }
.main-nav li { position: relative; display: flex; align-items: center }
.main-nav a { display: block; padding: 8px 8px; color: var(--ink); font-size: 15px; font-weight: 400; white-space: nowrap }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_ancestor > a { color: var(--blue); text-decoration: none }
.sub-toggle { width: 18px; height: 18px; margin-left: -10px; margin-right: 4px; border: 0; background: none; cursor: pointer; color: var(--ink); padding: 0 }
.sub-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: 2px auto 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) }
.main-nav ul ul {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px 0; background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 55, .14); border-top: 2px solid var(--blue);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 60
}
.main-nav ul ul ul { top: -10px; left: 100% }
.main-nav li:hover > ul, .main-nav li:focus-within > ul, .main-nav li.sub-open > ul { opacity: 1; visibility: visible; transform: none }
.main-nav ul ul li { display: block }
.main-nav ul ul a { padding: 8px 18px; white-space: normal; font-size: 14.5px }
.main-nav ul ul .sub-toggle { position: absolute; right: 8px; top: 10px; transform: rotate(-90deg) }

.site-search { background: var(--side); border-top: 1px solid var(--line); padding: 14px 0 }
.search-form { display: flex; gap: 8px; max-width: 640px }
.search-form input { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid var(--chip-line); border-radius: 4px; background: #fff }

/* ---------- Elementy wspólne ---------- */
.section-title { font-size: 22px; font-weight: 500; margin: 0 0 18px }
.section-title.underline { padding-bottom: 10px; border-bottom: 2px solid var(--blue) }
.chip { display: inline-block; font-size: 12px; line-height: 1.4; padding: 3px 8px; border: 1px solid var(--chip-line); border-radius: 4px; color: var(--navy); background: #fff; margin: 0 6px 6px 0; text-decoration: none }
a.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none }
.chip.solid { background: var(--blue); border-color: var(--blue); color: #fff }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin-bottom: 8px }
.meta time, time { font-size: 12px; color: var(--muted) }
.meta time { margin-left: auto }
.btn { display: inline-block; padding: 8px 18px; border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); background: #fff; font: 500 14px var(--font); cursor: pointer; text-decoration: none }
.btn:hover { background: var(--blue); color: #fff; text-decoration: none }
.more { margin: 22px 0 0 }
.empty { color: var(--muted) }
.thumb { display: block; overflow: hidden; background: var(--side); aspect-ratio: 16 / 10; margin-bottom: 12px }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s }
a.thumb:hover img { transform: scale(1.03) }
.thumb-empty { display: grid; place-items: center; height: 100%; color: var(--chip-line); font-size: 40px }

/* ---------- Strona główna ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.1fr) minmax(0, .72fr); gap: 36px; padding-top: 28px; padding-bottom: 36px; align-items: start }
.lead-post h3 { font-size: 22px; margin: 4px 0 10px }
.lead-post h3 a, .mini-post h3 a, .event h3 a, .list-item h2 a { color: var(--ink) }
.lead-post h3 a:hover, .mini-post h3 a:hover, .event h3 a:hover, .list-item h2 a:hover { color: var(--blue); text-decoration: none }
.lead-post p { font-size: 15px; color: var(--text) }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line) }
.mini-post h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.3 }

.event { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line) }
.event:first-of-type { padding-top: 0 }
.event h3 { font-size: 17px; margin: 2px 0 8px }
.event p { font-size: 14.5px; margin: 0 }
.datebox { background: var(--soft); border-radius: var(--radius); padding: 10px 6px; text-align: center; align-self: start; display: flex; flex-direction: column; color: var(--ink) }
.datebox strong { font-size: 22px; font-weight: 500; line-height: 1.1 }
.datebox .m, .datebox .n { font-size: 11px; color: var(--muted); text-transform: capitalize }
.mass-list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 8px 0 0; font-size: 14.5px }
.mass-list dt { color: var(--muted); font-size: 12px; margin-top: 6px }
.mass-list dt:first-child { margin-top: 0 }
.mass-list dd { margin: 0; font-weight: 500; color: var(--ink) }

.home-grid.no-side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) }
.col-events { display: grid; gap: 22px }
.parish-item h3 { font-size: 18px }
.parish-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px !important; font-size: 14px; font-weight: 500 }
.col-side { background: var(--side); padding: 16px; display: grid; gap: 14px }
.col-side .widget, .side-banners .widget { margin: 0 }
.col-side img, .side-banners img { width: 100%; height: auto }
.col-side .widget-title, .side-banners .widget-title { font-size: 14px; margin: 0 0 6px; color: var(--muted) }

.home-band { padding-top: 8px; padding-bottom: 36px }
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px }
.gallery-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--side); color: #fff; text-decoration: none }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s }
.gallery-tile:hover img { transform: scale(1.04) }
.gallery-tile:hover { text-decoration: none; color: #fff }
.gallery-tile .cap { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(0, 10, 40, .78)); font-weight: 500; font-size: 15px; line-height: 1.3 }
.gallery-tile .cap small { display: block; font-weight: 400; font-size: 12px; opacity: .85; margin-top: 2px }
.polecamy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 24px }
.polecamy-row img { max-height: 90px; width: auto }
.polecamy-row .widget { margin: 0 }

/* ---------- Podstrony i wpisy ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding-top: 28px; padding-bottom: 48px; align-items: start }
.page-full { padding-top: 28px; padding-bottom: 48px }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px }
.breadcrumbs a { color: var(--muted) }
.breadcrumbs .sep { margin: 0 4px }
.entry-title { font-size: 30px; font-weight: 500; margin-bottom: 20px }
.entry-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start }
.entry-figure { margin: 0 0 20px }
.entry-figure img { width: 100% }
.entry-lead .entry-figure { margin: 0 }
.entry-content { font-size: 17px; line-height: 1.7 }
.entry-content h2 { font-size: 24px; margin-top: 1.6em }
.entry-content h3 { font-size: 20px; margin-top: 1.4em }
.entry-content img { margin: 10px 0 }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--blue); color: var(--navy); font-style: italic }
.entry-content ul, .entry-content ol { padding-left: 1.3em }
.entry-content .wp-block-gallery { margin: 28px 0 }
.entry-content figcaption { font-size: 13px; color: var(--muted) }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px }
.post-nav span:last-child { text-align: right }

.side { display: grid; gap: 18px }
.side-box { background: var(--side); padding: 20px }
.side-title { font-size: 17px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--blue) }
.side-title a { color: var(--ink) }
.side-box p { font-size: 14.5px; margin: 0 }
.recent, .section-menu { list-style: none; margin: 0; padding: 0 }
.recent li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.35 }
.recent li:last-child { border-bottom: 0 }
.recent a { color: var(--ink); font-weight: 500 }
.recent a:hover { color: var(--blue) }
.recent time { display: block; margin-top: 3px }
.section-menu a { display: block; padding: 7px 0; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 15px }
.section-menu .current_page_item > a { color: var(--blue); font-weight: 500 }
.section-menu ul { list-style: none; padding-left: 14px; margin: 0 }
.side-banners { display: grid; gap: 14px }

.list { display: grid; gap: 26px }
.list-item { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line) }
.list-item .thumb { margin: 0 }
.list-item h2 { font-size: 20px; margin: 0 0 8px }
.list-item p { font-size: 15px; margin: 0 }
.archive-desc { color: var(--muted); margin-bottom: 20px }

.chips-nav { margin-bottom: 18px }
.grid-4 { margin-top: 6px }
.gallery-intro { margin-bottom: 20px }
.pagination { margin-top: 32px }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px }
.pagination .page-numbers { display: inline-block; min-width: 38px; padding: 7px 12px; text-align: center; border: 1px solid var(--chip-line); border-radius: 4px; color: var(--navy); font-size: 14px }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none }
.pagination .dots { border: 0 }

.mass-card { background: var(--soft); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px }
.mass-card h2 { font-size: 20px; margin-bottom: 8px }
.mass-card .mass-list { font-size: 16px; grid-template-columns: auto 1fr; gap: 6px 18px }
.mass-card .mass-list dt { font-size: 15px; margin: 0 }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 12px }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 20px }
.site-footer h3 { font-size: 16px; margin-bottom: 8px }
.site-footer p { font-size: 14.5px; color: var(--text) }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; color: var(--muted) }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px }
.footer-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0 }
.footer-menu a { color: var(--muted) }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; background: #9aa0ab; color: #fff; border-radius: 4px; font-size: 20px; opacity: 0; visibility: hidden; transition: opacity .2s; text-decoration: none }
body.scrolled .to-top { opacity: .85; visibility: visible }
.to-top:hover { opacity: 1; color: #fff; text-decoration: none; background: var(--blue) }

/* ---------- Responsywność ---------- */
@media (max-width: 1240px) {
  .main-nav a { padding: 8px 7px; font-size: 14.5px }
  .brand-name { font-size: 20px }
}
@media (max-width: 1180px) {
  .home-grid, .home-grid.no-side { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) }
  .col-side { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr) }
  .layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px }
}
@media (max-width: 960px) {
  :root { --header-h: 72px }
  .header-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand tools" "nav nav"; row-gap: 0; column-gap: 12px }
  .brand-mark { width: 34px; height: 46px }
  .brand-name { font-size: 18px }
  .brand-logo { max-height: 56px }
  .menu-toggle { display: inline-grid }
  .main-nav { justify-self: stretch; display: none; border-top: 1px solid var(--line); margin-top: 10px; max-height: calc(100vh - 90px); overflow-y: auto }
  .main-nav.is-open { display: block }
  .main-nav > ul { display: block }
  .main-nav li { flex-wrap: wrap }
  .main-nav a { flex: 1; padding: 12px 4px; border-bottom: 1px solid var(--line); white-space: normal }
  .sub-toggle { width: 44px; height: 44px; margin: 0; border-bottom: 1px solid var(--line) }
  .main-nav ul ul { position: static; display: none; width: 100%; min-width: 0; box-shadow: none; border-top: 0; padding: 0 0 0 16px; opacity: 1; visibility: visible; transform: none }
  .main-nav li:hover > ul, .main-nav li:focus-within > ul { display: none }
  .main-nav li.sub-open > ul { display: block }
  .main-nav ul ul .sub-toggle { position: static; transform: none }
  .layout { grid-template-columns: 1fr }
  .gallery-row { grid-template-columns: repeat(2, 1fr) }
  .footer-grid { grid-template-columns: 1fr 1fr }
}
@media (max-width: 720px) {
  .container { padding: 0 16px }
  .home-grid, .home-grid.no-side { grid-template-columns: 1fr; gap: 32px; padding-top: 20px }
  .col-side { grid-template-columns: 1fr 1fr }
  .news-grid { gap: 22px 16px }
  .entry-lead { grid-template-columns: 1fr }
  .entry-title { font-size: 25px }
  .list-item { grid-template-columns: 1fr; gap: 10px }
  .footer-grid { grid-template-columns: 1fr; gap: 12px }
  .brand-kicker { letter-spacing: .18em }
}
@media (max-width: 420px) {
  .news-grid { grid-template-columns: 1fr }
  .gallery-row { grid-template-columns: 1fr }
  .brand-place { display: none }
}

/* =====================================================================
   Styl „Sanktuarium” – połączenie z motywem Miłosierdzie Premium:
   złoto i krem, szeryfowe tytuły, zdjęcie sanktuarium, karty z cieniem.
   (Wybór stylu: Wygląd → Dostosuj → Wygląd strony parafii.)
   ===================================================================== */

/* Elementy używane tylko w stylu Sanktuarium */
.hero {
  position: relative; overflow: hidden; color: #fff; min-height: 500px; padding: 96px 0 140px;
  background:
    linear-gradient(90deg, rgba(28, 27, 23, .92) 0%, rgba(45, 42, 35, .74) 40%, rgba(77, 70, 56, .35) 66%, rgba(255, 248, 232, .08) 100%),
    var(--hero-img) right center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -72px; height: 150px;
  background: var(--bg); border-radius: 50% 50% 0 0 / 35% 35% 0 0; border-top: 2px solid var(--gold, #d9ad42)
}
.hero .container { position: relative; z-index: 2 }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--gold-2, #f4d36f); font-weight: 700; font-size: 14px; letter-spacing: .28em; text-transform: uppercase }
.eyebrow::before, .eyebrow::after { content: ""; width: 52px; height: 2px; background: var(--gold, #d9ad42) }
.hero h1 { font-family: var(--serif); color: #fff; font-weight: 700; font-size: clamp(52px, 7.4vw, 108px); line-height: .9; letter-spacing: -.04em; margin: 20px 0 12px; max-width: 820px; text-shadow: 0 18px 60px rgba(0, 0, 0, .32) }
.hero-place { color: var(--gold-2, #f4d36f); font-weight: 700; text-transform: uppercase; letter-spacing: .22em; font-size: clamp(15px, 1.8vw, 24px) }
.hero .lead { max-width: 680px; color: rgba(255, 255, 255, .9); font-size: clamp(17px, 1.8vw, 21px); margin: 18px 0 0 }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px }
.btn-gold, .btn-ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 13px 24px; border-radius: 9px; font: 700 14px var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none }
.btn-gold { background: linear-gradient(135deg, #d9ad42, #f4d36f); color: #18140b; box-shadow: 0 18px 45px rgba(217, 173, 66, .3) }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px) }
.btn-gold:hover, .btn-ghost:hover { text-decoration: none; filter: brightness(1.06) }
.btn-gold:hover { color: #18140b } .btn-ghost:hover { color: #fff }
.cta { border-radius: 24px; padding: 54px 24px; text-align: center; color: #fff; background: linear-gradient(135deg, #3c2b0d, #9a7119); box-shadow: 0 20px 70px rgba(96, 63, 18, .16) }
.cta h2 { font-family: var(--serif); color: #fff; font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 10px }
.cta p { margin: 0; opacity: .9 }
.page-band {
  padding: 44px 0 34px; border-bottom: 1px solid var(--line);
  background: linear-gradient(rgba(251, 246, 236, .80), rgba(251, 246, 236, .94)), url("assets/img/light-bg.jpg") center / cover no-repeat
}
.page-band .entry-title { margin: 6px 0 0 }

/* Paleta i typografia */
body.styl-sanktuarium {
  --gold: #d9ad42; --gold-2: #f4d36f;
  --blue: #8a6410; --blue-dark: #5f450a; --navy: #5b4a2a; --mercy-red: #b0172e;
  --ink: #2e2d29; --text: #3d3a34; --muted: #7d776d;
  --line: #eadfc9; --chip-line: #e3d2ad; --soft: #fbf1d8; --side: #f6eedd; --bg: #fbf6ec;
  --serif: Georgia, "Times New Roman", serif;
  --card-shadow: 0 20px 60px rgba(96, 63, 18, .10);
  background: var(--bg)
}
.styl-sanktuarium .section-title, .styl-sanktuarium .entry-title, .styl-sanktuarium .lead-post h3,
.styl-sanktuarium .side-title, .styl-sanktuarium .mass-card h2, .styl-sanktuarium .entry-content h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em }
.styl-sanktuarium .section-title { font-size: 28px }
.styl-sanktuarium .entry-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.08 }
.styl-sanktuarium .lead-post h3 { font-size: 26px }
.styl-sanktuarium .section-title.underline, .styl-sanktuarium .side-title { border-bottom-color: var(--gold) }

/* Nagłówek i logo */
.styl-sanktuarium .site-header { background: #fffdf8; border-bottom: 1px solid var(--line) }
.styl-sanktuarium .brand { color: #70501b }
.styl-sanktuarium .brand:hover { color: #70501b }
.styl-sanktuarium .brand-mark { color: #b8892a }
.styl-sanktuarium .brand-name { font-family: var(--serif); text-transform: none; font-weight: 700; letter-spacing: 0; font-size: 22px }
.styl-sanktuarium .brand-kicker { color: #b8892a; font-weight: 700 }
.styl-sanktuarium .main-nav ul ul { border-top-color: var(--gold); background: #fffdf8 }

/* Strona główna: kolumny jako karty nachodzące na zdjęcie */
.styl-sanktuarium .hero + .home-grid { position: relative; z-index: 3; margin-top: -86px; padding-top: 0 }
.styl-sanktuarium .col-news, .styl-sanktuarium .parish-panel {
  background: #fffdf8; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--card-shadow)
}
.styl-sanktuarium .col-side { background: transparent; padding: 0 }
.styl-sanktuarium .parish-links a { color: #8a6410 }
.styl-sanktuarium .thumb, .styl-sanktuarium .gallery-tile { border-radius: 14px }
.styl-sanktuarium .datebox { background: var(--soft); border: 1px solid #f0dfb3 }
.styl-sanktuarium .datebox strong { color: #70501b; font-family: var(--serif); font-weight: 700 }
.styl-sanktuarium .chip.solid { background: linear-gradient(135deg, #d9ad42, #f4d36f); border-color: #d9ad42; color: #18140b }
.styl-sanktuarium .mass-list dd { color: #70501b }
.styl-sanktuarium .btn { border-color: var(--gold); color: #70501b; border-radius: 9px; background: #fffdf8 }
.styl-sanktuarium .btn:hover { background: var(--gold); color: #18140b }

/* Podstrony */
.styl-sanktuarium .layout, .styl-sanktuarium .page-full { padding-top: 34px }
.styl-sanktuarium .entry { background: #fffdf8; border: 1px solid var(--line); border-radius: 22px; padding: 34px 38px; box-shadow: var(--card-shadow) }
.styl-sanktuarium .side-box { background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--card-shadow) }
.styl-sanktuarium .mass-card { background: #fff8e8; border: 1px solid #f0dfb3; border-left: 4px solid var(--gold) }
.styl-sanktuarium .entry-content blockquote { border-left-color: var(--gold); color: #5b4a2a }

/* Stopka */
.styl-sanktuarium .site-footer { background: linear-gradient(135deg, #57380c, #8d651c); border-top: 0; color: #fff }
.styl-sanktuarium .site-footer h3 { color: var(--gold-2); font-family: var(--serif) }
.styl-sanktuarium .site-footer p, .styl-sanktuarium .site-footer a, .styl-sanktuarium .footer-menu a { color: rgba(255, 255, 255, .9) }
.styl-sanktuarium .footer-bottom { border-top-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .75) }
.styl-sanktuarium .to-top { background: #b8892a }

@media (max-width: 960px) {
  .hero { min-height: 0; padding: 64px 0 120px }
  .styl-sanktuarium .hero + .home-grid { margin-top: -70px }
  .styl-sanktuarium .entry { padding: 24px 22px }
}
@media (max-width: 720px) {
  .hero { padding: 44px 0 104px }
  .eyebrow::before, .eyebrow::after { width: 28px }
  .styl-sanktuarium .col-news, .styl-sanktuarium .parish-panel { padding: 20px 18px; border-radius: 18px }
  .styl-sanktuarium .entry { padding: 20px 16px; border-radius: 16px }
  .page-band { padding: 26px 0 22px }
  .styl-sanktuarium .brand-name { font-size: 19px }
}

/* ---------- Dziś w parafii + Kalendarz parafialny ---------- */
.today-date { margin: 0 0 10px; font-size: 14.5px; color: var(--muted) }
.today-date strong { color: var(--ink); font-weight: 500 }
.day-masses, .day-events, .day-intentions { list-style: none; margin: 0; padding: 0 }
.day-masses > li, .day-events > li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4 }
.day-masses > li:first-child { border-top: 0 }
.day-time { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums }
.day-masses strong { font-weight: 500; color: var(--ink) }
.day-intentions li { position: relative; padding-left: 12px; margin-top: 3px; color: var(--text); font-size: 14px }
.day-intentions li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--chip-line) }
.day-events { margin-top: 6px }
.day-events > li { background: var(--soft); border: 0; border-radius: 8px; padding: 8px 10px; margin-top: 6px }
.day-events a { color: var(--ink); font-weight: 500 }
.day-hint { font-size: 13px; color: var(--muted); margin: 8px 0 0 }
.today-panel .parish-links { margin-top: 12px !important }

.cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 16px }
.cal-month { flex: 1; text-align: center; font-size: 24px; margin: 0; text-transform: capitalize }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px }
.cal-head { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: center; padding: 4px 0 }
.cal-cell { display: flex; flex-direction: column; gap: 3px; min-height: 108px; padding: 6px 7px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; overflow: hidden }
.cal-cell.empty { background: transparent; border-color: transparent }
.cal-cell:not(.has) { pointer-events: none }
a.cal-cell.has:hover { border-color: var(--blue); text-decoration: none; color: var(--text) }
.cal-cell.today { border: 2px solid var(--blue) }
.cal-day { font-weight: 700; font-size: 15px; color: var(--ink) }
.cal-cell.sunday .cal-day { color: var(--mercy-red) }
.cal-note { font-size: 11px; line-height: 1.25; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.cal-tag { display: inline-block; font-size: 11px; line-height: 1.3; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }
.cal-tag.intencje { background: var(--soft); color: var(--navy) }
.cal-tag.wydarzenie { background: var(--blue); color: #fff }
.cal-more { font-size: 11px; color: var(--muted) }
.cal-legend { margin: 10px 0 30px; display: flex; gap: 8px }
.cal-agenda { display: grid; gap: 14px }
.cal-daybox { display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 110px }
.cal-daybox.today { border: 2px solid var(--blue) }
.cal-daybox.past { opacity: .72 }
.cal-daybox:target { box-shadow: 0 0 0 3px var(--soft) }

.styl-sanktuarium .today-panel { background: #fffdf8; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--card-shadow) }
.styl-sanktuarium .today-date strong, .styl-sanktuarium .cal-month { font-family: var(--serif); font-weight: 700; color: #70501b }
.styl-sanktuarium .day-time { color: #8a6410 }
.styl-sanktuarium .day-events > li { background: #fff8e8 }
.styl-sanktuarium .cal-cell, .styl-sanktuarium .cal-daybox { background: #fffdf8 }
.styl-sanktuarium .cal-daybox { border-radius: 16px; box-shadow: var(--card-shadow) }
.styl-sanktuarium .cal-cell.today, .styl-sanktuarium .cal-daybox.today { border-color: var(--gold) }
.styl-sanktuarium .cal-tag.wydarzenie { background: linear-gradient(135deg, #b8892a, #d9ad42); color: #18140b }

@media (max-width: 720px) {
  .cal-grid { gap: 3px }
  .cal-cell { min-height: 46px; padding: 4px; align-items: center; justify-content: center }
  .cal-note, .cal-tag, .cal-more { display: none }
  .cal-cell.has::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue) }
  .styl-sanktuarium .cal-cell.has::after { background: var(--gold) }
  .cal-month { order: -1; flex-basis: 100% }
  .cal-daybox { grid-template-columns: 1fr; gap: 8px }
  .cal-daybox .datebox { flex-direction: row; gap: 8px; justify-content: center; align-items: baseline }
  .styl-sanktuarium .today-panel { padding: 20px 18px; border-radius: 18px }
}

/* ---------- Porządek Mszy ([godziny_mszy] z wtyczki „Ogłoszenia i intencje”) ---------- */
.msze-porzadek { display: grid; gap: 16px; margin: 4px 0 0 }
.msze-grupa h3 { font-size: 15px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px }
.msze-godziny { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.msze-godziny li { display: inline-flex; flex-direction: column; align-items: center; min-width: 78px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px }
.msze-godz { font-size: 22px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; line-height: 1.2 }
.msze-opis { font-size: 12px; color: var(--muted); text-align: center; max-width: 140px; line-height: 1.3 }
.msze-inne { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 4px 0 0; font-size: 15.5px }
.msze-inne dt { color: var(--muted) }
.msze-inne dd { margin: 0; font-weight: 500; color: var(--ink) }
.msze-uwagi { font-style: italic; color: var(--muted); margin: 0 }
.styl-sanktuarium .msze-godz { font-family: var(--serif); color: #70501b }
.styl-sanktuarium .msze-godziny li { background: #fffdf8; border-color: #f0dfb3; border-radius: 12px }
@media (max-width: 720px) { .msze-inne { grid-template-columns: 1fr; gap: 0 } .msze-inne dd { margin-bottom: 8px } }

/* Punkt ogłoszeń wskazany z kalendarza / panelu „Dziś w parafii” (…/#punkt-3) */
[id^="punkt-"] { scroll-margin-top: 120px }
[id^="punkt-"]:target { background: var(--soft); outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; animation: milo-punkt 2.4s ease-out }
.styl-sanktuarium [id^="punkt-"]:target { background: #fff3d6; outline-color: var(--gold) }
@keyframes milo-punkt { from { box-shadow: 0 0 0 10px rgba(217, 173, 66, .35) } to { box-shadow: 0 0 0 0 rgba(217, 173, 66, 0) } }

/* Przycisk kalendarza w panelu „Dziś w parafii” */
.today-cta { margin: 14px 0 0 }
.btn-calendar { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; padding: 10px 16px }
.btn-calendar svg { width: 18px; height: 18px }
.styl-sanktuarium .btn-calendar { background: linear-gradient(135deg, #d9ad42, #f4d36f); border-color: #d9ad42; color: #18140b; font-weight: 700 }
.styl-sanktuarium .btn-calendar:hover { filter: brightness(1.05); color: #18140b }
