/* Strona parafii – styl publiczny. Kolory zależą od okresu liturgicznego (data-theme na <html>). */

@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.54ef89211626.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-ext-400-normal.5cc4f1008b26.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.b770df7528a1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-ext-600-normal.b8128051a312.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.28a2cf182b19.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-ext-700-normal.762995b2bad6.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.a28521c77f4a.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-ext-800-normal.211c43d44d95.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("../fonts/lora-latin-600-normal.5ec93d4b0359.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("../fonts/lora-latin-ext-600-normal.7ac3cf55df28.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.e7ae818b8c7b.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-ext-400-italic.059c98dd80a1.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }

/* ---- Motywy ---------------------------------------------------------------------- */
:root, [data-theme="autumn"] {
  --accent: #b85c1e; --accent-ink: #fff; --accent-2: #e2a33b; --accent-soft: #fbeedd;
  --bg: #fdf9f3; --surface: #ffffff; --ink: #2c2420; --muted: #6f625a; --line: #eadfd2;
  --hero-1: #f7d9a8; --hero-2: #f3b77e; --hero-3: #fdf4e6;
}
[data-theme="spring"] {
  --accent: #2f8a52; --accent-2: #ec8fb2; --accent-soft: #e5f4e9;
  --bg: #f7fbf6; --ink: #1f2b23; --muted: #5a6a5f; --line: #dbe9de;
  --hero-1: #cfeeda; --hero-2: #fbd3e2; --hero-3: #f4fbf3;
}
[data-theme="summer"] {
  --accent: #1872ad; --accent-2: #f2b53a; --accent-soft: #e3f1fa;
  --bg: #f6fafd; --ink: #1b2733; --muted: #566676; --line: #d9e7f1;
  --hero-1: #bfe3f7; --hero-2: #ffe3a1; --hero-3: #f4fbff;
}
[data-theme="winter"] {
  --accent: #33639a; --accent-2: #8fbbe3; --accent-soft: #e6eef8;
  --bg: #f6f9fc; --ink: #1d2733; --muted: #5a6878; --line: #dce5ef;
  --hero-1: #dbe8f6; --hero-2: #f1f6fc; --hero-3: #ffffff;
}
[data-theme="advent"] {
  --accent: #5e4596; --accent-2: #e8a33a; --accent-soft: #eee9f8;
  --bg: #faf8fd; --ink: #241f30; --muted: #645d73; --line: #e3ddf0;
  --hero-1: #ded3f3; --hero-2: #f8dfb4; --hero-3: #fbf9ff;
}
[data-theme="christmas"] {
  --accent: #a8791c; --accent-2: #2e6b4c; --accent-soft: #fbf2dc;
  --bg: #fffdf7; --ink: #2a2418; --muted: #6d644f; --line: #efe5cc;
  --hero-1: #fbeac0; --hero-2: #fffaf0; --hero-3: #e3efe7;
}
[data-theme="lent"] {
  --accent: #6a58a6; --accent-2: #7f9a5b; --accent-soft: #efecf8;
  --bg: #faf9fc; --ink: #25222f; --muted: #625e70; --line: #e4e0ef;
  --hero-1: #e6e0f5; --hero-2: #e8f0dd; --hero-3: #fdfcff;
}
[data-theme="easter"] {
  --accent: #b9860c; --accent-2: #4f9b8f; --accent-soft: #fdf3d6;
  --bg: #fffdf6; --ink: #2a2516; --muted: #6b6450; --line: #f0e6c6;
  --hero-1: #fff0bd; --hero-2: #fde2c4; --hero-3: #e4f3ef;
}

/* ---- Podstawy ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  overflow-x: clip;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: "Lora", Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---- Przyciski ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent;
  background: var(--accent); color: var(--accent-ink, #fff); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--soft { background: var(--accent-soft); color: var(--accent); }
.btn--white { background: #fff; color: var(--ink); }
.btn--sm { padding: .45em .9em; font-size: .92rem; min-height: 36px; }
.btn--lg { padding: .9em 1.6em; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---- Nagłówek ---------------------------------------------------------------------- */
.topnote { background: var(--accent); color: #fff; text-align: center; padding: .45rem 1rem; font-weight: 600; font-size: .95rem; }
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Tło z rozmyciem na osobnej warstwie: backdrop-filter na samym nagłówku zamykałby w nim
   menu mobilne (position: fixed liczyłoby się od nagłówka, a nie od ekranu). */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.header__in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__mark { width: 42px; height: 42px; flex: none; color: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: "Lora", serif; font-weight: 600; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { font-size: .8rem; color: var(--muted); }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a, .nav button.nav__parent {
  display: block; padding: .5rem .62rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: .98rem;
  background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer;
}
.nav a:hover, .nav button.nav__parent:hover, .nav a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.nav li { position: relative; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: .4rem; list-style: none; margin: .3rem 0 0; box-shadow: 0 18px 40px -18px rgba(0,0,0,.25);
  display: none; }
.nav li:hover > .sub, .nav li:focus-within > .sub, .nav li.open > .sub { display: block; }
.nav .sub .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 .8rem; margin: 0; }
.nav .sub a { font-weight: 500; }
.nav__cta { margin-left: .4rem; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--nav-top, 68px) 0 0 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: 1rem 16px 6rem;
    display: none; z-index: 55; }
  .menu-open .nav { display: block; animation: slidein .2s ease; }
  .menu-open { overflow: hidden; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button.nav__parent { font-size: 1.15rem; padding: .8rem 1rem; width: 100%; text-align: left; }
  .nav .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; margin: 0; }
  .nav__cta { margin: .8rem 0 0; }
  .brand__name { font-size: 1rem; }
}

/* Dolny pasek na telefonie */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; color: var(--muted);
    text-decoration: none; font-size: .75rem; font-weight: 700; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a[aria-current] { color: var(--accent); }
  body { padding-bottom: 70px; }
}

/* ---- Hero ---------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 85% -10%, var(--hero-2), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, var(--hero-1), transparent 60%), var(--hero-3); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.2fr .9fr; gap: 2.5rem; align-items: center; padding: clamp(2.2rem, 6vw, 4.5rem) 0; }
.hero__kicker { display: inline-flex; gap: .5rem; align-items: center; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--line);
  padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--accent); margin-bottom: 1rem; }
.hero h1 { margin-bottom: .4em; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 38ch; }
.hero__orn { position: absolute; right: -40px; bottom: -30px; width: min(520px, 60vw); opacity: .55; color: var(--accent); pointer-events: none; }
.hero__orn--left { left: -60px; right: auto; top: -40px; bottom: auto; width: 260px; opacity: .3; color: var(--accent-2); }
.nextmass { background: var(--surface); border-radius: 22px; padding: 1.4rem 1.5rem; box-shadow: 0 25px 60px -30px rgba(40,30,10,.35); border: 1px solid var(--line); position: relative; z-index: 1; }
.nextmass__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--accent); }
.nextmass__time { font-family: "Lora", serif; font-size: 2.6rem; line-height: 1; margin: .35rem 0 .2rem; }
.nextmass__where { font-weight: 700; font-size: 1.1rem; }
.nextmass ul { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px dashed var(--line); }
.nextmass li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.nextmass li b { white-space: nowrap; }
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---- Sekcje i karty ---------------------------------------------------------------- */
.section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.section--alt { background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg)); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section__head h2 { margin: 0; }
.eyebrow { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--accent); margin-bottom: .2rem; font-family: "Nunito", sans-serif; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem 1.4rem; }
.card--accent { background: var(--accent-soft); border-color: transparent; }
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

/* Kościoły */
.church { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.church:hover { box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); transform: translateY(-2px); }
.church__img { aspect-ratio: 16/9; object-fit: cover; object-position: 50% 85%; width: 100%; background: var(--accent-soft); display: block; }
.church__img--empty { display: grid; place-items: center; color: var(--accent); }
.church__img--empty svg { width: 64px; opacity: .6; }
.church__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.church__city { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.church__name { font-family: "Lora", serif; font-size: 1.25rem; margin: 0; }
.church__addr { color: var(--muted); font-size: .95rem; }
.times { list-style: none; padding: 0; margin: .2rem 0; display: grid; gap: .3rem; }
.times li { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; padding: .35rem .7rem; background: var(--accent-soft); border-radius: 10px; }
.times b { font-size: 1.08rem; white-space: nowrap; }
.times small { display: block; color: var(--muted); font-size: .82rem; }
.notice { background: #fff6dc; border: 1px solid #f1d98e; color: #5b4808; border-radius: 12px; padding: .55rem .8rem; font-size: .93rem; font-weight: 600; }
.notice--pause { background: #eef3ff; border-color: #c9d6f5; color: #26407a; }
.church__actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .4rem; }

/* Mapa z panelem szczegółów */
.mapbox { position: relative; display: grid; grid-template-columns: 1fr 380px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 520px; }
.mapbox__map { min-height: 520px; z-index: 0; }
.mapbox__panel { border-left: 1px solid var(--line); padding: 1.3rem; overflow-y: auto; max-height: 620px; }
.mapbox__hint { display: grid; place-items: center; text-align: center; height: 100%; color: var(--muted); gap: .5rem; }
.mapbox__hint svg { width: 56px; color: var(--accent); }
.mapbox__list { list-style: none; padding: 0; margin: 1rem 0 0; text-align: left; width: 100%; }
.mapbox__list button { width: 100%; text-align: left; background: none; border: 0; padding: .6rem .7rem; border-radius: 10px; font: inherit; cursor: pointer; color: var(--ink); display: flex; justify-content: space-between; gap: .5rem; }
.mapbox__list button:hover { background: var(--accent-soft); }
.panel-close { display: none; }
@media (max-width: 860px) {
  .mapbox { grid-template-columns: 1fr; min-height: 0; }
  .mapbox__map { min-height: 380px; }
  .mapbox__panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .mapbox.has-selection .mapbox__panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 78vh; border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 50px -10px rgba(0,0,0,.3); background: var(--surface); padding-bottom: calc(1.3rem + env(safe-area-inset-bottom)); animation: sheet .25s ease; }
  .mapbox.has-selection .panel-close { display: inline-flex; position: absolute; right: 12px; top: 12px; }
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.pin { width: 38px; height: 46px; color: var(--accent); filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.pin.is-active { color: var(--accent-2); transform: scale(1.15); }
.leaflet-container { font: inherit; }
.mini-map { height: 320px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }

/* Nawigacja – menu wyboru */
.navmenu { position: relative; display: inline-block; }
.navmenu__list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.3); display: none; }
.navmenu.open .navmenu__list { display: block; }
.navmenu__list a { display: flex; gap: .6rem; padding: .55rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.navmenu__list a:hover { background: var(--accent-soft); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; z-index: 200; font-weight: 600; animation: sheet .2s; }

/* Strona kościoła */
.church-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: stretch; padding: 1.6rem 0 0; }
.church-hero__map { min-height: 340px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.church-hero__info { display: flex; flex-direction: column; gap: .8rem; }
.bigbtn { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; border: 0; cursor: pointer; width: 100%; font-family: inherit; text-align: left; }
.bigbtn small { display: block; font-weight: 600; opacity: .9; font-size: .85rem; }
.bigbtn svg { width: 34px; height: 34px; flex: none; }
.bigbtn--soft { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 860px) { .church-hero { grid-template-columns: 1fr; } .church-hero__map { min-height: 260px; order: -1; } }

/* Tabela mszy */
.mass-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mass-table th, .mass-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.mass-table th { background: var(--accent-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.mass-table tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .mass-table thead { display: none; }
  .mass-table, .mass-table tbody, .mass-table tr, .mass-table td { display: block; width: 100%; }
  .mass-table tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
  .mass-table td { border: 0; padding: .25rem 1rem; }
  .mass-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
}

/* Treść WYSIWYG */
.prose { font-size: 1.08rem; }
.prose > *:first-child { margin-top: 0; }
.prose img { border-radius: 14px; }
.prose blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 4px solid var(--accent-2); background: var(--accent-soft); border-radius: 0 14px 14px 0; font-family: "Lora", serif; font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5em .7em; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose h2, .prose h3 { margin-top: 1.4em; }

/* Bloki */
.block { margin: 0 0 2rem; }
.block--card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.1rem, 3vw, 2rem); }
.block--accent { background: var(--accent-soft); border-radius: 22px; padding: clamp(1.1rem, 3vw, 2rem); }
.quote { text-align: center; font-family: "Lora", serif; font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.6rem); padding: 1.5rem; position: relative; }
.quote__src { display: block; font-family: "Nunito", sans-serif; font-style: normal; font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #111 center/cover no-repeat; }
.video button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,.45)); border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 700; }
.video button span { display: grid; place-items: center; gap: .6rem; }
.video button svg { width: 76px; height: 76px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__note { font-size: .82rem; color: var(--muted); margin-top: .4rem; }

/* Dokumenty */
.doc { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; }
.doc__cover { width: 120px; aspect-ratio: 1/1.41; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 25px -12px rgba(0,0,0,.4); background: var(--accent-soft); display: grid; place-items: center; font-size: 2.4rem; }
.doc__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.epub-hint { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 520px) { .doc { grid-template-columns: 80px 1fr; } .doc__cover { width: 80px; } }
.reader { width: 100%; height: min(85vh, 1100px); border: 1px solid var(--line); border-radius: 18px; background: #525659; }

/* Aktualności */
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.post__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.post__img--poster { object-fit: contain; background: var(--accent-soft); padding: .5rem; }
.post__body { padding: 1rem 1.2rem 1.3rem; }
.post__date { font-size: .82rem; color: var(--muted); font-weight: 700; }
.post__title { font-family: "Lora", serif; font-size: 1.2rem; margin: .2rem 0 .4rem; color: var(--ink); }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent); padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }

/* Wydarzenia i kalendarz */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .7rem .9rem; text-decoration: none; color: inherit; }
.event__date { text-align: center; background: var(--accent); color: #fff; border-radius: 12px; padding: .35rem 0; line-height: 1.05; }
.event__date b { display: block; font-size: 1.5rem; }
.event__date span { font-size: .72rem; text-transform: uppercase; font-weight: 800; letter-spacing: .05em; }
.event__title { font-weight: 800; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--surface); border-radius: 18px; overflow: hidden; }
.cal th { padding: .5rem; font-size: .8rem; text-transform: uppercase; color: var(--muted); background: var(--accent-soft); }
.cal td { border: 1px solid var(--line); height: 108px; vertical-align: top; padding: .35rem; font-size: .85rem; }
.cal td.out { background: color-mix(in srgb, var(--bg) 70%, #eee); color: var(--muted); }
.cal td.today { box-shadow: inset 0 0 0 3px var(--accent-2); }
.cal__day { font-weight: 800; }
.cal a { display: block; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 5px; margin-top: 3px; text-decoration: none; font-weight: 700; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .cal-wrap { display: none; } }
@media (min-width: 761px) { .cal-list-mobile { display: none; } }

/* Galeria */
.albums .post__img { aspect-ratio: 4/3; }
.photos { columns: 4 220px; column-gap: .8rem; }
.photos a { display: block; margin-bottom: .8rem; border-radius: 14px; overflow: hidden; break-inside: avoid; }
.photos img { display: block; width: 100%; transition: transform .3s; }
.photos a:hover img { transform: scale(1.03); }

/* Formularze */
.form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input:not([type=checkbox]), .field textarea, .field select, .captcha input[type=text] {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; color: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.field--check { display: flex; gap: .6rem; align-items: flex-start; }
.field--check input { margin-top: .35rem; width: 20px; height: 20px; accent-color: var(--accent); }
.field--check label { font-weight: 500; }
.errorlist { color: #a32020; list-style: none; padding: 0; margin: .3rem 0 0; font-weight: 600; font-size: .92rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { border: 1.5px dashed var(--line); border-radius: 16px; padding: .9rem 1rem; margin: 0; }
.captcha legend { font-weight: 800; padding: 0 .4rem; }
.captcha__row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.captcha__img { border-radius: 10px; width: 100%; max-width: 312px; height: auto; image-rendering: pixelated; }
.captcha__side { flex: 1; min-width: 180px; display: grid; gap: .5rem; }
.captcha .hint { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }
.captcha__pow.is-done { color: #2c7a3f; font-weight: 700; }
.messages { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.messages li { padding: .8rem 1rem; border-radius: 14px; font-weight: 600; }
.messages .success { background: #e5f6ea; color: #1d5d2f; }
.messages .error { background: #fde8e8; color: #8b1c1c; }
.messages .info, .messages .warning { background: #fff6dc; color: #5b4808; }

/* Stopka */
.footer { margin-top: 3rem; background: color-mix(in srgb, var(--ink) 94%, var(--accent)); color: #eee6dc; padding: 3rem 0 2rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer h3 { color: #fff; font-size: 1.1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; opacity: .8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* Okruszki, nagłówek podstrony */
.pagehead { padding: 2.2rem 0 1.2rem; background: linear-gradient(180deg, var(--accent-soft), transparent); }
.pagehead__cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 24px; margin-top: 1rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--muted); }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.tile { display: block; padding: 1.2rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; transition: .2s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile small { display: block; font-weight: 500; color: var(--muted); margin-top: .3rem; }
.pager { display: flex; gap: .5rem; justify-content: center; margin: 2rem 0; }
.iban { font-family: ui-monospace, monospace; font-size: 1.1rem; letter-spacing: .03em; background: var(--surface); padding: .5rem .8rem; border-radius: 10px; border: 1px dashed var(--line); display: inline-block; }

/* Strony błędów */
.oops { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.oops__art { width: min(300px, 70vw); margin: 0 auto 1rem; color: var(--accent); }
.oops__code { font-family: "Lora", serif; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--accent); opacity: .18; margin: 0; }
.oops h1 { margin-top: -0.3em; }
.oops p { max-width: 52ch; margin-inline: auto; font-size: 1.12rem; }
.prayer { font-family: "Lora", serif; font-style: italic; background: var(--accent-soft); padding: 1rem 1.3rem; border-radius: 16px; max-width: 46ch; margin: 1.2rem auto; }
.found { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.wiggle { animation: wiggle 1.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wiggle { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .header, .footer, .tabbar, .topnote, .btn, .mapbox, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}

/* Slajder zdjęć kościoła (bez bibliotek: przewijanie z przyciąganiem) */
.slider { position: relative; border-radius: 22px; overflow: hidden; background: var(--accent-soft); }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; position: relative; }
.slider__slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.slider__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .6rem; font-size: .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.slider__btn--prev { left: 12px; } .slider__btn--next { right: 12px; }
.slider__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; }
.slider__dots button[aria-current] { background: #fff; }

/* Kafelki „Na skróty” */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: .8rem; }
.quick__tile { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.quick__tile:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.quick__ico { font-size: 1.7rem; }
.quick__tile small { color: var(--muted); font-size: .85rem; line-height: 1.3; }

/* Stopka – kolumny z bloków edytowanych w panelu */
.footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.footer__col .prose { font-size: .98rem; color: #eee6dc; }
.footer__col .prose a { color: #fff; }
.footer__col .prose ul { list-style: none; padding: 0; margin: 0; }
.footer__col .prose li { margin: .15rem 0; }
.footer__col .block { margin: 0; }
.footer__col .block--card, .footer__col .block--accent { background: rgba(255,255,255,.06); color: #eee6dc; }
.footer__bottom { align-items: center; }
.credit { display: inline-flex; align-items: center; gap: .4rem; background: #fff; color: #043f8c !important; padding: .25rem .65rem; border-radius: 999px; text-decoration: none; font-size: .8rem; opacity: 1; }
.credit span { color: #555; }
.credit b { font-weight: 800; letter-spacing: .02em; }
.credit i { color: #e52722; font-style: normal; }

/* Ikony w przyciskach zawsze w rozmiarze tekstu */
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.mapbox__panel { overflow-x: hidden; }
.mapbox__panel .btn-row .btn { flex: 1 1 auto; }

/* Baner zgody (tylko gdy Matomo z ciasteczkami) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); }
.consent p { margin: 0 0 .7rem; font-size: .95rem; }
@media (max-width: 760px) { .consent { bottom: 80px; } }

/* Kafelki z godziną / datą – zawsze ten sam rozmiar */
.event { grid-template-columns: 84px 1fr; min-height: 84px; }
.event__date { width: 84px; height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 4px; border-radius: 14px; line-height: 1.1; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.event__date b { font-size: 1.32rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.event__date span { display: block; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-top: 2px; opacity: .95; }
.event > span:last-child { min-width: 0; }

/* --- Druk ogłoszeń i intencji: jedna kartka A4 ------------------------------------ */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 11mm 12mm; }
  html, body { background: #fff !important; color: #000; font-size: 10.5pt; line-height: 1.38; }
  .header, .footer, .tabbar, .topnote, .pagehead, .no-print, aside, .btn, .btn-row, .skip, .consent { display: none !important; }
  main .wrap { display: block !important; width: 100% !important; margin: 0 !important; }
  .print-only { display: block; }
  .print-sheet { border: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 0; }
  .print-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1.5pt solid #000; padding-bottom: 3pt; margin-bottom: 6pt; font-size: 10pt; }
  .print-head b { font-family: "Lora", Georgia, serif; font-size: 12pt; }
  .print-head span:nth-child(2) { font-weight: 700; }
  .print-body { margin-top: 0 !important; font-size: 10.5pt; }
  .print-body p { margin: 0 0 4pt; orphans: 3; widows: 3; }
  .print-body h2, .print-body h3 { font-size: 11pt; margin: 6pt 0 2pt; break-after: avoid; }
  .print-body h4 { font-size: 10pt; margin: 4pt 0 1pt; break-after: avoid; }
  .print-body ul, .print-body ol { margin: 0 0 4pt; padding-left: 14pt; }
  .print-body li { margin: 0 0 1pt; }
  .print-body br + br { display: none; }
  .print-sheet--cols .print-body { columns: 2; column-gap: 8mm; column-rule: .5pt solid #bbb; font-size: 9.8pt; }
  .print-sheet--cols .print-body p { break-inside: avoid; }
  .print-sheet--cols .print-body h3 { break-before: auto; column-span: none; border-bottom: .5pt solid #999; }
  .print-sheet--cols .print-body li { break-inside: avoid; }
  .print-foot { margin-top: 6pt; padding-top: 3pt; border-top: .5pt solid #999; font-size: 8pt; color: #444; text-align: center; }
  a { color: #000; text-decoration: none; }
}

/* --- Hero ze zdjęciem (zdjęcia w tle zarządzane w panelu) --------------------------- */
.hero--photo { background: #1d1712; color: #fff; min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero--photo .hero__in { width: min(1180px, 100% - 32px); }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,14,10, calc(var(--overlay, 45) / 100 + .38)) 0%, rgba(20,14,10, calc(var(--overlay, 45) / 100 + .12)) 50%, rgba(20,14,10, calc(var(--overlay, 45) / 100 - .2)) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%); }
.hero--photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, var(--bg)); }
.hero--photo .hero__in { position: relative; z-index: 1; }
.hero--photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.hero--photo .hero__lead, .hero--photo .hero__lead p { color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero--photo .hero__kicker { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(8px); }
.hero__caption { font-family: "Lora", serif; font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: #ffe9c2; margin: -.2rem 0 .8rem; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.hero--photo .nextmass { background: rgba(255,255,255,.84); backdrop-filter: blur(14px) saturate(1.3); border-color: rgba(255,255,255,.6); color: var(--ink); }
.hero__credit { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: .72rem; color: rgba(255,255,255,.75); text-decoration: none; background: rgba(0,0,0,.28); padding: .15rem .55rem; border-radius: 999px; max-width: 70vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__credit:hover { color: #fff; }
@media (max-width: 860px) { .hero--photo { min-height: 0; } .hero--photo .hero__in { padding: 2.2rem 0 3rem; } }

/* Zdjęcie przebijające przez całą stronę – bardzo delikatnie, rozmyte */
body.has-photo::before { content: ""; position: fixed; inset: -60px; z-index: -1; pointer-events: none;
  background: var(--page-photo) center / cover no-repeat; filter: blur(60px) saturate(1.4) brightness(1.6); opacity: .10; }
body.has-photo { background: var(--bg); isolation: isolate; }
body.has-photo .section--alt { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
body.has-photo .pagehead { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 80%, transparent), transparent); }
@media (prefers-reduced-motion: reduce) { .hero__slide img { animation: none; } }

/* Szkliste okienko z tekstem – kolor dobierany do zdjęcia (--tone), płynna zmiana przy slajdach */
.hero__glass { position: relative; padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.2rem); border-radius: 26px;
  background: color-mix(in srgb, var(--tone, #2a1f17) 68%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background-color 1.6s ease; max-width: 640px; }
.hero__glass .hero__kicker { margin-bottom: .8rem; }
.hero__glass h1 { margin-bottom: .25em; }
.hero__glass .hero__lead { max-width: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero__glass { background: color-mix(in srgb, var(--tone, #2a1f17) 88%, transparent); }
}

/* „Słowo na dziś” – pasek pod nagłówkiem */
.word { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line);
  position: relative; z-index: 2; margin-top: -1px; }
.word::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.word__in { display: grid; grid-template-columns: auto auto 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 0; }
.word__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.word__icon svg { width: 22px; height: 22px; }
.word__meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.word__kicker { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.word__meta b { font-family: "Lora", serif; font-size: 1.05rem; }
.word__meta small { color: var(--muted); font-size: .8rem; }
.word__quote { font-family: "Lora", serif; font-style: italic; color: var(--muted); border-left: 2px solid var(--line); padding-left: 1.2rem; min-width: 0; }
.word__quote small { display: block; font-family: "Nunito", sans-serif; font-style: normal; font-weight: 700; font-size: .78rem; color: var(--accent); margin-top: .15rem; }
.word__go { font-weight: 800; color: var(--accent); white-space: nowrap; }
.word:hover .word__go { text-decoration: underline; }
@media (max-width: 860px) { .word__in { grid-template-columns: auto 1fr; } .word__quote { grid-column: 1 / -1; border-left: 0; padding-left: 0; } .word__go { display: none; } }

/* Strona czytań – układ jak w lekcjonarzu */
.lectio { padding: 1rem 0 2rem; }
.lectio__part { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.lectio__head { margin-bottom: .6rem; }
.lectio__head h2 { font-size: 1.3rem; margin: .1rem 0 0; color: var(--accent); }
.lectio__text { font-family: "Lora", Georgia, serif; font-size: 1.16rem; line-height: 1.75; }
.lectio__part--ps .lectio__text { font-style: italic; padding-left: 1rem; border-left: 3px solid var(--accent-soft); }
.lectio__part--gsp { background: var(--accent-soft); border-radius: 22px; padding: 1.6rem clamp(1rem, 3vw, 2rem); border: 0; margin-top: 1rem; }

/* Zdjęcia/plakaty w artykułach: nigdy nie powiększamy ponad naturalny rozmiar (bez rozmycia) */
.cover-natural { display: block; margin: 1.2rem 0; text-align: center; }
.cover-natural img { max-width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.4); cursor: zoom-in; }
.prose img { max-width: 100%; height: auto; }

img.brand__mark { object-fit: contain; border-radius: 8px; }

/* Przypis o źródle i prawach do tekstów czytań */
.lectio__source { margin-top: 2rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.5; color: var(--muted); }
.lectio__source p { margin: 0 0 .3rem; }
.lectio__source a { color: var(--muted); }

/* Odsłuchiwanie czytań (TTS) */
.tts { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 .5rem;
  padding: .6rem .8rem; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(8px); box-shadow: 0 10px 24px -18px rgba(0,0,0,.35); }
.tts[hidden] { display: none; }
.tts__rate { font-size: .85rem; color: var(--muted); display: inline-flex; gap: .3rem; align-items: center; }
.tts__rate select { font: inherit; padding: .25rem .4rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.lectio__head { display: grid; grid-template-columns: 1fr auto; column-gap: .8rem; align-items: end; }
.lectio__head .eyebrow, .lectio__head h2 { grid-column: 1; }
.tts__one { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 1.2rem; cursor: pointer; transition: transform .15s, border-color .15s; }
.tts__one:hover { transform: scale(1.08); border-color: var(--accent); }
.lectio__part.is-reading { box-shadow: inset 4px 0 0 var(--accent); padding-left: 1rem; transition: box-shadow .3s, padding .3s; }
.lectio__part--gsp.is-reading { box-shadow: 0 0 0 3px var(--accent); padding-left: clamp(1rem, 3vw, 2rem); }
@media (max-width: 760px) { .tts { top: 72px; } }
@media print { .tts, .tts__one { display: none !important; } }

.tts [hidden], .tts__one[hidden] { display: none !important; }

/* Pasek podglądu (szkice i niezapisane zmiany) */
.preview-bar { position: sticky; top: 0; z-index: 60; background: repeating-linear-gradient(45deg, #2a4b7c, #2a4b7c 14px, #2f548a 14px, #2f548a 28px); color: #fff; text-align: center; padding: .5rem 1rem; font-weight: 700; font-size: .95rem; }

/* --- Druk czytań: układ jak w lekcjonarzu ----------------------------------------------- */
@media print {
  .lectio { padding: 0 !important; width: 100% !important; }
  .lectio-print__head { text-align: center; border-bottom: 1.5pt solid #000; padding-bottom: 4pt; margin-bottom: 8pt; }
  .lectio-print__parish { font-size: 8.5pt; letter-spacing: .12em; text-transform: uppercase; }
  .lectio-print__day { font-family: "Lora", Georgia, serif; font-size: 15pt; font-weight: 600; margin: 2pt 0; }
  .lectio-print__meta { font-size: 8.5pt; color: #333; }
  .lectio { columns: 2; column-gap: 9mm; column-rule: .5pt solid #bbb; }
  .lectio-print__head, .lectio__source { column-span: all; }
  .lectio__part, .lectio__part--gsp { padding: 0 0 7pt !important; margin: 0 0 7pt !important; border: 0 !important; border-bottom: .5pt solid #ccc !important;
    background: none !important; border-radius: 0 !important; box-shadow: none !important; }
  .lectio__part--gsp { border: 1pt solid #000 !important; padding: 5pt 6pt !important; break-inside: avoid-column; }
  .lectio__head { display: block; margin-bottom: 2pt; break-after: avoid; }
  .lectio__head .eyebrow { font-size: 7.5pt; color: #000; letter-spacing: .1em; }
  .lectio__head h2 { font-size: 10.5pt; color: #000; margin: 0; font-style: italic; }
  .lectio__text { font-family: "Lora", Georgia, serif; font-size: 10pt; line-height: 1.38; }
  .lectio__part--ps .lectio__text { border-left: 1pt solid #999; padding-left: 5pt; }
  .lectio__source { font-size: 7pt; color: #444; margin-top: 6pt; padding-top: 3pt; border-top: .5pt solid #999; }
  .lectio__source a { color: #444; }
}

/* Odtwarzacz filmów (plik z serwera albo YouTube w trybie prywatnym) */
.player { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #111 center/cover no-repeat; box-shadow: 0 25px 60px -30px rgba(0,0,0,.6); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player--yt button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; cursor: pointer; color: #fff; font: inherit; font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.player--yt button span { display: grid; place-items: center; gap: .6rem; }
.player--yt button svg { width: 84px; height: 84px; transition: transform .2s; }
.player--yt button:hover svg { transform: scale(1.08); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard__img { position: relative; display: block; }
.vcard__play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* Karta-link do filmu lub galerii (wstawiana z edytora) */
.media-card { margin: 1.2rem 0; }
.media-card a { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; align-items: center; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding-right: 1rem; transition: transform .15s, box-shadow .15s; }
.media-card a:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(0,0,0,.4); }
.media-card img { width: 240px; height: 135px; object-fit: cover; border-radius: 0; display: block; margin: 0; }
.media-card__body { display: grid; gap: .25rem; padding: .7rem 0; }
.media-card__body strong { font-family: "Lora", serif; font-size: 1.12rem; color: var(--ink); }
.media-card__body span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.media-card__body small { color: var(--accent); font-weight: 800; }
.media-card--video img { position: relative; }
@media (max-width: 600px) { .media-card a { grid-template-columns: 1fr; padding: 0 0 .2rem; } .media-card img { width: 100%; height: auto; aspect-ratio: 16/9; } .media-card__body { padding: .6rem .9rem .8rem; } }

/* Aktualność bez zdjęcia, gdy w zestawie teł nic nie pasuje: ozdobnik okresu z krzyżem parafii */
.post__img--orn { position: relative; display: block; overflow: hidden;
  background: radial-gradient(260px 160px at 85% 10%, var(--hero-2), transparent 70%), radial-gradient(260px 160px at 0 100%, var(--hero-1), transparent 70%), var(--hero-3); }
.post__img--orn svg:first-child { position: absolute; right: -10%; bottom: -12%; width: 85%; height: 85%; color: var(--accent); opacity: .55; }
.post__logo { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); color: var(--accent);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.15)); }

/* Ilustracje zastępcze (święta i tematy) – kolory bieżącego motywu */
.post__img--ph { position: relative; display: grid; place-items: center; overflow: hidden; color: var(--accent);
  background: radial-gradient(240px 150px at 85% 0, var(--hero-2), transparent 70%), radial-gradient(240px 150px at 0 100%, var(--hero-1), transparent 70%), var(--hero-3); }
.post__img--ph svg { width: 78%; height: 78%; }
.post__ph-label { position: absolute; left: .7rem; bottom: .6rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--accent); padding: .2rem .55rem; border-radius: 999px; }
.consent__title { font-weight: 800; margin: 0 0 .3rem !important; }
.consent .btn-row { align-items: center; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* --- Ofiary: dane do przelewu, kopiowanie, kod QR ---------------------------------- */
.donate { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: flex-start; margin: .6rem 0; }
.donate__data { margin: 0; flex: 1 1 260px; display: grid; gap: .55rem; }
.donate__row { display: grid; gap: .15rem; }
.donate__row dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.donate__row dd { margin: 0; display: flex; align-items: center; gap: .5rem; }
.donate__val { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.copybtn { flex: none; margin-left: auto; width: 2.4rem; height: 2.4rem; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--accent); cursor: pointer; transition: background .15s, color .15s; }
.copybtn svg { width: 1.15rem; height: 1.15rem; }
.copybtn:hover, .copybtn:focus-visible { background: var(--accent-soft); }
.copybtn.is-done { background: var(--accent); color: #fff; border-color: var(--accent); }
.donate__bank { text-transform: none; letter-spacing: 0; }
.donate__ideal { flex-basis: 100%; margin: 0; }
.donate__qrs { display: flex; flex-wrap: wrap; gap: 1rem; }
.donate__qr { margin: 0; width: 170px; text-align: center; font-size: .78rem; line-height: 1.35; }
.donate__qr img { display: block; width: 150px; height: 150px; margin: 0 auto .4rem; border-radius: 10px; background: #fff; padding: 4px; image-rendering: pixelated; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.donate--compact { gap: .8rem; }
.donate--compact .donate__data { flex-basis: 100%; }
.donate--compact .iban { font-size: .95rem; padding: .3rem .55rem; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.donate .iban { white-space: nowrap; }
.donate--compact .copybtn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.donate--compact .donate__qr { width: 140px; text-align: left; }
.donate--compact .donate__qr img { width: 120px; height: 120px; margin: 0 0 .35rem; }
@media print { .donate .copybtn, .donate .btn { display: none !important; } }

/* Banner Dobrodzieja */
.sponsor { margin: 2rem auto 1rem; max-width: 960px; text-align: center; }
.sponsor__link { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px -22px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.sponsor__link:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -22px rgba(0,0,0,.5); }
.sponsor__img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--surface); }
.sponsor__cap { margin: .35rem 0 0; font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
@media print { .sponsor { display: none; } }
.hero__credit { overflow: visible; }
.hero__credit[data-tip]:not([data-tip=""])::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 6px); background: rgba(20,16,12,.92); color: #fff; padding: .3rem .6rem; border-radius: 8px; font-size: .74rem; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.hero__credit:hover::after, .hero__credit:focus-visible::after { opacity: 1; transform: none; }

/* Obrazy wstawione w edytorze: położenie i rozmiar */
.prose .img-center { text-align: center; }
.prose .img-center img { margin-inline: auto; }
.prose .img-left { float: left; margin: .3rem 1.2rem .8rem 0; max-width: 50%; }
.prose .img-right { float: right; margin: .3rem 0 .8rem 1.2rem; max-width: 50%; }
.prose .img-full img { width: 100% !important; }
.prose figure.image { margin: 1.2rem 0; } .prose figure.image figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .3rem; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) { .prose .img-left, .prose .img-right { float: none; max-width: 100%; margin: 1rem 0; } }

/* Komunikat w okienku */
.notice-pop { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30, 22, 14, .5); animation: notice-in .25s ease-out; }
.notice-pop[hidden] { display: none; }
.notice-pop__dlg { position: relative; background: var(--surface); border-radius: 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); border-top: 6px solid var(--accent); }
.notice-pop__img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.notice-pop__body { padding: 1.4rem 1.5rem 1.5rem; }
.notice-pop__body h2 { font-family: "Lora", serif; font-size: 1.55rem; margin: .2rem 0 .6rem; color: var(--ink); line-height: 1.25; }
.notice-pop__text { margin-bottom: 1rem; }
.notice-pop__text > :last-child { margin-bottom: 0; }
.notice-pop__x { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.notice-pop__x:hover { background: #fff; }
html.notice-open { overflow: hidden; }
@keyframes notice-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .notice-pop { animation: none; } }
@media print { .notice-pop { display: none !important; } }
.nl-joke { font-size: 3.4rem; line-height: 1; margin-bottom: .4rem; animation: nl-climb 1.6s ease-out both; }
@keyframes nl-climb { from { transform: translateY(40px); opacity: 0; } 60% { transform: translateY(-8px); opacity: 1; } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .nl-joke { animation: none; } }

/* Anioł Stróż: groźne linki i pliki */
.angel { text-align: center; padding: 2.5rem 0 3rem; min-height: 55vh; }
.angel__art { width: 170px; height: 150px; margin: 0 auto .6rem; display: block; }
.angel__halo { animation: halo 3s ease-in-out infinite; transform-origin: 80px 22px; }
.angel__wings { animation: wings 2.6s ease-in-out infinite; transform-origin: 80px 80px; }
@keyframes halo { 50% { transform: translateY(-3px); } }
@keyframes wings { 50% { transform: scaleY(1.06); } }
.angel h1 { font-family: "Lora", serif; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .3rem 0 .8rem; }
.angel__lead { font-size: 1.1rem; max-width: 36rem; margin: 0 auto .6rem; }
.angel__url { word-break: break-all; color: var(--muted); max-width: 36rem; margin: 0 auto; }
.angel__btns { justify-content: center; align-items: center; margin-top: 1.6rem; gap: 1.2rem; }
.devil-btn { position: relative; overflow: visible; opacity: .8; }
.devil-btn::before { content: "😈"; position: absolute; right: -9px; top: -4px; font-size: 1.05rem; z-index: -1; transform: rotate(18deg) translateY(6px); transition: transform .25s ease; }
.devil-btn:hover::before, .devil-btn:focus-visible::before { transform: rotate(12deg) translate(4px, -9px); }
.devil-btn:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .angel__halo, .angel__wings { animation: none; } }

/* Rekolekcje */
.retreat-card__author { font-weight: 700; color: var(--accent); margin: 0 0 .3rem; font-size: .92rem; }
.retreat-card__sum { margin: 0 0 .5rem; color: var(--ink); font-size: .95rem; }
.retreat-head__in { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: center; }
.retreat-head__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); }
.retreat-head__author { font-size: 1.05rem; margin: .2rem 0 .6rem; }
.retreat-intro { margin: 1.5rem 0; }
.narrow-ish { max-width: 920px; }
.lessons-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 .8rem; }
.lessons-bar h2 { margin: 0; font-family: "Lora", serif; }
.seg { display: inline-flex; background: var(--accent-soft); border-radius: 999px; padding: 3px; }
.seg a { padding: .35rem .9rem; border-radius: 999px; text-decoration: none; color: var(--accent); font-weight: 700; font-size: .9rem; }
.seg a[aria-current] { background: var(--accent); color: var(--accent-ink, #fff); }
.lessons { display: grid; gap: .8rem; }
.lesson-tile { display: grid; grid-template-columns: 168px 1fr; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .7rem; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.lesson-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -24px rgba(0,0,0,.35); }
.lesson-tile img, .lesson-tile__num { width: 168px; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); }
.lesson-tile__num { display: grid; place-items: center; font-family: "Lora", serif; font-size: 2.4rem; color: var(--accent); }
.lesson-tile__body { display: grid; gap: .15rem; }
.lesson-tile__body b { font-family: "Lora", serif; font-size: 1.15rem; color: var(--ink); }
.lesson-tile__meta { font-size: .8rem; font-weight: 700; color: var(--muted); }
.lesson-tile__sum { font-size: .94rem; color: var(--ink); }
.lesson-tile__author { font-size: .82rem; color: var(--accent); font-weight: 700; }
.lesson__img { width: 100%; border-radius: 18px; max-height: 460px; object-fit: cover; }
.lesson-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.lesson-nav a { flex: 1; max-width: 48%; background: var(--accent-soft); border-radius: 14px; padding: .7rem 1rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.lesson-nav a small { display: block; color: var(--accent); font-size: .8rem; }
.lesson-nav__next { text-align: right; margin-left: auto; }
/* Banerek rekolekcji na stronie głównej – wąski, ale wyraźny */
.retreat-promo { background: var(--accent); }
.retreat-promo__in { display: flex; align-items: center; gap: 1rem; max-width: var(--wrap, 1180px); margin: 0 auto; padding: .7rem 1rem; color: #fff; text-decoration: none; }
.retreat-promo img { width: 74px; height: 50px; object-fit: cover; border-radius: 10px; border: 2px solid rgba(255,255,255,.6); flex-shrink: 0; }
.retreat-promo__txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; flex: 1; min-width: 0; line-height: 1.3; }
.retreat-promo__kick { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: .1rem .5rem; border-radius: 999px; }
.retreat-promo__txt b { font-family: "Lora", serif; font-size: 1.12rem; }
.retreat-promo__txt span:not(.retreat-promo__kick) { opacity: .92; font-size: .94rem; }
.retreat-promo__txt small { opacity: .85; font-weight: 700; }
.retreat-promo__go { background: #fff !important; color: var(--accent) !important; flex-shrink: 0; }
.retreat-promo__in:hover .retreat-promo__go { transform: translateX(3px); }
@media (max-width: 760px) {
  .retreat-head__in { grid-template-columns: 1fr; }
  .retreat-head__img { order: -1; max-height: 220px; }
  .lesson-tile { grid-template-columns: 104px 1fr; gap: .7rem; }
  .lesson-tile img, .lesson-tile__num { width: 104px; }
  .lesson-tile__sum { display: none; }
  .retreat-promo__in { gap: .7rem; padding: .6rem 16px; }
  .retreat-promo img { width: 54px; height: 40px; }
  .retreat-promo__txt span:not(.retreat-promo__kick), .retreat-promo__txt small { display: none; }
  .retreat-promo__txt b { font-size: 1rem; }
}
.angel__report { margin-top: 1.6rem; font-size: .92rem; color: var(--muted); }
.angel__report .btn { margin-top: .5rem; }

/* Nagranie audio: mały odtwarzacz z tytułem i autorem (blok i edytor) */
.audio-card { position: relative; display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "ico cap dl" "ico player dl";
  align-items: center; gap: .15rem .8rem; max-width: 600px; margin: 1rem 0; padding: .65rem .9rem; background: var(--accent-soft);
  border: 1px solid var(--line); border-radius: 16px; }
.audio-card::before { content: "🎧"; grid-area: ico; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); font-size: 1.25rem; }
.audio-card figcaption { grid-area: cap; display: flex; flex-wrap: wrap; gap: 0 .6rem; align-items: baseline; line-height: 1.3; }
.audio-card figcaption strong { font-family: "Lora", serif; color: var(--ink); }
.audio-card figcaption span { font-size: .85rem; color: var(--accent); font-weight: 700; }
.audio-card audio { grid-area: player; width: 100%; height: 36px; margin: 0; }
.audio-card > a:not(.audio-card__dl) { grid-area: player; justify-self: start; }
.audio-card__dl { grid-area: dl; text-decoration: none; font-weight: 800; color: var(--accent); padding: .3rem .4rem; }
@media (max-width: 480px) { .audio-card { grid-template-columns: 36px 1fr auto; } .audio-card::before { width: 36px; height: 36px; font-size: 1rem; } }
.prose audio { width: 100%; max-width: 560px; display: block; }
