/* Acheron — dodatki WordPressa: podstrony, treść z edytora, galeria, lista nekrologów.
   Kolory i odstępy z tokenów w style.css. */

/* ---------- pasek administratora (tylko zalogowani) ---------- */
.admin-bar .nav { top: 32px; }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--nav) + 44px); }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- nagłówek podstrony: niższe hero ---------- */
.hero--page { min-height: clamp(440px, 62svh, 640px); }
.hero--page .hero__main { padding: calc(var(--nav) + 72px) 0 clamp(48px, 8vh, 88px); }
.hero--page .hero__text { gap: 22px; }
.hero--page h1 { max-width: 20ch; font-size: clamp(48px, 5.6vw, 84px); }
.hero--page .lead { max-width: 56ch; }
.hero--page::before {
  background:
    linear-gradient(90deg, rgba(13,17,19,.95) 0%, rgba(13,17,19,.82) 40%, rgba(13,17,19,.45) 75%, rgba(13,17,19,.35) 100%),
    linear-gradient(180deg, rgba(13,17,19,.75) 0%, rgba(13,17,19,0) 30%, rgba(13,17,19,.15) 60%, var(--night) 100%);
}
.page-back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--gold); text-decoration: none;
}
.page-back .ic { width: 16px; height: 16px; transition: transform .3s var(--slow); }
.page-back:hover { color: var(--gold-hi); }
.page-back:hover .ic { transform: translateX(-4px); }

/* pierwsza sekcja pod nagłówkiem podstrony: mniejszy odstęp, nagłówek ma już własny dół */
.hero--page + .sec { padding-top: clamp(48px, 7vh, 88px); }

/* ---------- treść z edytora ---------- */
.page-body { background: var(--night); }
.page-body--intro { padding-bottom: 0; }
.page-body--intro + .offer--page { margin-top: clamp(72px, 10vh, 120px); }
.prose { max-width: 70ch; color: var(--mist-2); font-size: 17.5px; line-height: 1.75; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--bone); font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin-top: 1.8em; }
.prose h2 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 400; }
.prose h3 { font-size: clamp(26px, 2.4vw, 32px); }
.prose h4 { font-size: 22px; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--bone); text-decoration-color: var(--gold); }
.prose a:hover { color: var(--gold-hi); }
.prose strong, .prose b { color: var(--bone); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: ''; position: absolute; left: -1.1em; top: .72em; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--gold); font-weight: 600; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 28px; border-left: 1px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--bone); }
.prose blockquote cite { display: block; margin-top: 10px; font-family: var(--font-text); font-style: normal; font-size: 14px; color: var(--mist); }
.prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.4em 0; }
.prose figure { margin: 2em 0; }
.prose img { border-radius: var(--r); }
.prose figcaption, .prose .wp-element-caption { margin-top: 10px; font-size: 14px; color: var(--mist); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--bone); font-weight: 600; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 56px; padding: 0 30px; border-radius: var(--r-btn); background: var(--action); color: var(--action-ink); font-weight: 700; text-decoration: none; }
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.prose .wp-block-gallery figure { margin: 0; }
.prose .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- galeria (zdjęcia z motywu) ---------- */
.ggrid { columns: 3 300px; column-gap: 20px; }
.prose + .ggrid { margin-top: 56px; }
.ggrid__it { break-inside: avoid; margin-bottom: 20px; }
.ggrid__btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: var(--night-2); cursor: zoom-in;
}
.ggrid__btn img { width: 100%; height: auto; filter: saturate(.86) brightness(.9); transition: transform 1.4s var(--slow), filter .7s var(--ease); }
.ggrid__btn::before { content: ''; position: absolute; inset: auto 0 0; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(9, 12, 14, .72), rgba(9, 12, 14, 0)); }
.ggrid__btn::after { content: ''; position: absolute; inset: 14px; z-index: 2; pointer-events: none; border: 1px solid rgba(233, 214, 174, .7); border-radius: 3px; opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .7s var(--slow); }
.ggrid__cap { position: absolute; left: 24px; bottom: 20px; z-index: 3; font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--bone); text-align: left; }
@media (hover: hover) and (pointer: fine) {
  .ggrid__btn:hover img { transform: scale(1.04); filter: saturate(1) brightness(1); }
  .ggrid__btn:hover::after { opacity: 1; transform: none; }
}
.ggrid__btn:focus-visible::after { opacity: 1; transform: none; }
.ggrid__it[hidden] { display: none; }

/* podstrona Galeria: wszystkie zdjęcia z filtrem kategorii */
.gfull__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 40px; }
.gfull__head h2 { margin: 0; }
.gfull__n { font-family: var(--font-body, inherit); font-size: .45em; color: var(--mist-2); vertical-align: middle; }
.gfull__filtr .seg__btn small { margin-left: 4px; font-size: 12px; opacity: .65; }
.gfull__more { margin-top: 56px; }
.ggrid.is-filtering .ggrid__it { animation: g-in .5s var(--slow) both; }
@keyframes g-in { from { opacity: 0; translate: 0 12px; } }

/* powiększenie w galerii: zdjęcie mieści się w oknie, strzałki po bokach */
.kl__stage { position: relative; }
.kl__nav { display: none; }
.kl__cap { display: none; margin: 0; color: var(--mist-2); font-size: 15px; text-align: center; }
.kl--nav .kl__stage img { width: auto; max-width: 100%; max-height: calc(100dvh - 210px); margin: 0 auto; object-fit: contain; }
.kl--nav .kl__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(8, 10, 12, .62); color: var(--bone); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.kl--nav .kl__nav:hover { background: var(--bone); color: var(--ink-dark); }
.kl__nav--prev { left: 0; }
.kl__nav--next { right: 0; }
.kl--nav .kl__cap { display: block; }
@media (max-width: 640px) {
  .kl--nav .kl__nav { top: auto; bottom: -64px; translate: none; }
  .kl--nav .kl__cap { padding: 0 64px; min-height: 52px; }
}

/* ---------- nekrologi: lista i pojedynczy ---------- */
.sec__head--tight { display: block; margin-bottom: 36px; }
.sec__head--tight h2 { font-size: clamp(34px, 3.4vw, 50px); }
.obit__name a, .orow__who h3 a { color: inherit; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--slow), color .2s; }
.obit__name a:hover, .orow__who h3 a:hover { color: var(--gold-hi); background-size: 100% 1px; }
/* ---------- archiwum: kalendarz, spis miesięcy, wyszukiwarka, lista ---------- */
.narch--after { border-top: 1px solid var(--line); background: var(--night-2); }
.narch__head { margin-bottom: 40px; }
.narch__grid { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.narch__side { position: sticky; top: calc(var(--nav) + 24px); display: flex; flex-direction: column; gap: 20px; }
.nav.is-hidden ~ main .narch__side { top: 24px; }

.nsearch { position: relative; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--night); transition: border-color .3s var(--ease); }
.nsearch:focus-within { border-color: var(--gold); }
.nsearch > .ic { position: absolute; left: 18px; color: var(--gold); pointer-events: none; }
.nsearch input { flex: 1; min-width: 0; min-height: 52px; padding: 0 8px 0 48px; border: 0; background: transparent; color: var(--bone); font: inherit; font-size: 16px; outline: 0; }
.nsearch input::placeholder { color: var(--mist); }
.nsearch input::-webkit-search-cancel-button { filter: invert(.7); }
.nsearch__go { margin: 4px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--gold); color: var(--action-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.nsearch__go:hover { background: var(--gold-hi); }
/* wyszukiwarka w nagłówku listy nekrologów, po prawej stronie tytułu */
.hero__tool { width: min(440px, 36vw); padding-top: 28px; }
.nsearch--hero { background: rgba(13, 17, 19, .72); backdrop-filter: blur(6px); }
.nsearch--hero .nsearch__label { position: absolute; left: 6px; bottom: calc(100% + 10px); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nsearch--hero input { min-height: 60px; font-size: 17px; }
.nsearch--hero .nsearch__go { min-height: 52px; padding: 0 24px; font-size: 15px; }
@media (max-width: 1023px) { .hero__tool { width: 100%; max-width: 520px; } }

.cal { padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--night); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal__title { font-size: 28px; line-height: 1.1; text-align: center; }
.cal__nav { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--bone); transition: border-color .3s var(--ease), background-color .3s var(--ease); }
a.cal__nav:hover { border-color: var(--gold); background: rgba(200, 184, 139, .08); }
.cal__nav.is-off { opacity: .25; }
.cal__nav .ic { width: 16px; height: 16px; }
.cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal__grid th { padding: 6px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.cal__grid abbr { text-decoration: none; }
.cal__grid td { padding: 2px; text-align: center; }
.cal__d { position: relative; display: grid; place-items: center; height: 42px; border-radius: 8px; font-size: 15px; font-variant-numeric: tabular-nums; color: rgba(198, 204, 205, .5); text-decoration: none; }
.cal__d.is-we { color: rgba(198, 204, 205, .38); }
.cal__d.has { color: var(--bone); font-weight: 700; background: rgba(200, 184, 139, .1); box-shadow: inset 0 0 0 1px var(--gold-dim); transition: background-color .25s var(--ease), color .25s var(--ease); }
.cal__d.has::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.cal__d.has i { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--gold-hi); }
a.cal__d.has:hover { background: rgba(200, 184, 139, .22); }
.cal__d.is-today { box-shadow: inset 0 0 0 1px var(--bone); }
.cal__d.has.is-today { box-shadow: inset 0 0 0 1px var(--bone), inset 0 0 0 2px var(--gold-dim); }
.cal__d.is-sel { background: var(--gold); color: var(--ink-dark); }
.cal__d.is-sel::after { background: var(--ink-dark); }
.cal__d.is-sel i { color: var(--ink-dark); }
.cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mist); }
.cal__key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }
.cal__key--has { background: rgba(200, 184, 139, .18); box-shadow: inset 0 0 0 1px var(--gold-dim); }
.cal__key--today { margin-left: 8px; box-shadow: inset 0 0 0 1px var(--bone); }

.cal-years { border-top: 1px solid var(--line); }
.cal-years details { border-bottom: 1px solid var(--line); }
.cal-years summary { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; }
.cal-years summary::-webkit-details-marker { display: none; }
.cal-years summary b { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.cal-years summary span { flex: 1; font-size: 13px; color: var(--mist); }
.cal-years summary .ic { color: var(--gold); transition: transform .4s var(--slow); }
.cal-years details[open] summary .ic { transform: rotate(135deg); }
.cal-years ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 0 16px; }
.cal-years a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.cal-years a small { font-size: 11px; font-weight: 500; color: var(--mist); }
.cal-years a:hover { border-color: var(--gold); }
.cal-years a.is-here { background: var(--gold); border-color: var(--gold); color: var(--ink-dark); }
.cal-years a.is-here small { color: var(--ink-dark); }

.narch__main { min-width: 0; scroll-margin-top: calc(var(--nav) + 24px); }
.narch__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 18px; }
.narch__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 3.4vw, 52px); line-height: 1.05; }
.narch__title small { margin-left: 14px; font-family: var(--font-text); font-size: 15px; color: var(--mist); }
.narch__count { font-size: 15px; color: var(--mist); }
.narch__count a { color: var(--bone); }
.narch__count a:hover { color: var(--gold-hi); }
.orows--arch { margin-top: 0; }
/* lista obok kalendarza jest węższa: miejsce uroczystości schodzi pod imię */
.orows--arch .orow { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px 24px; padding-inline: 12px; }
.orows--arch .orow__date { grid-row: 1 / span 2; }
.orows--arch .orow__where { grid-column: 2 / 3; grid-row: 2; }
.orows--arch .orow__act { grid-column: 3; grid-row: 1 / span 2; }
/* nekrolog bez klepsydry: plan dnia na całą szerokość */
.obit:not(:has(.obit__kl)) { grid-template-columns: minmax(0, 1fr); }
.obit:not(:has(.obit__kl)) .obit__body { max-width: 760px; }
.narch__pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; }
.narch__pg { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 22px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; transition: border-color .3s var(--ease); }
.narch__pg span { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--font-display); font-size: 22px; }
.narch__pg small { font-family: var(--font-text); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.narch__pg .ic { color: var(--gold); }
.narch__pg:hover { border-color: var(--gold); }
.narch__pg--old { margin-left: auto; text-align: right; }
.narch__pg--old span { align-items: flex-end; }

/* ---------- pojedynczy nekrolog ---------- */
.obit__note { font-style: italic; }
.obit__route { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--gold); text-decoration: none; }
.obit__route .ic { width: 13px; height: 13px; transition: transform .3s var(--slow); }
.obit__route:hover { color: var(--gold-hi); }
.obit__route:hover .ic { transform: translateX(3px); }
.obit__ask { display: flex; gap: 12px; margin-top: 20px; padding: 16px 18px; border: 1px solid var(--gold-dim); border-radius: var(--r); background: rgba(200, 184, 139, .06); font-size: 15px; line-height: 1.55; color: var(--bone); }
.obit__ask .ic { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--gold); fill: none; stroke-width: 1.2; }

/* niższy nagłówek: tytuł i skrót, bez pustego tła */
.hero--compact { min-height: 0; }
.hero--compact .hero__main { padding: calc(var(--nav) + 44px) 0 36px; }
.hero--compact .hero__text { gap: 16px; }
.hero--compact .hero__side { display: none; } /* pionowy napis rozpychał nagłówek w górę */
.hero--compact h1 { font-size: clamp(40px, 4.4vw, 64px); max-width: none; }
.hero--compact .hsum { margin-top: 4px; padding-top: 18px; }

/* jedna sekcja w dwóch kolumnach: klepsydra (przypięta) | informacje */
.hero--page + .nsingle { padding: clamp(36px, 5vh, 56px) 0 clamp(56px, 8vh, 88px); }
.nsingle__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.nsingle--nokl .nsingle__grid, .nsingle__grid:not(:has(.nsingle__kl)) { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.nsingle__kl { position: sticky; top: calc(var(--nav) + 24px); display: flex; flex-direction: column; gap: 28px; }
.nsingle__kl .obit__mat { padding: 16px; }
.nsingle__txt { border: 1px solid var(--line); border-radius: var(--r); background: var(--night-2); }
.nsingle__txt summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; }
.nsingle__txt summary::-webkit-details-marker { display: none; }
.nsingle__txt summary .ic { width: 18px; height: 18px; color: var(--gold); transition: transform .4s var(--slow); }
.nsingle__txt[open] summary .ic { transform: rotate(135deg); }
.nsingle__txt p { padding: 0 16px 16px; font-size: 15px; line-height: 1.7; color: var(--mist-2); }

.nsingle__info { display: flex; flex-direction: column; gap: 24px; }
.nsingle__info .obit__ask, .nsingle__info .obit__act { margin-top: 0; }
.nblock { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.nblock:first-child { padding-top: 0; border-top: 0; }
.nblock__h { margin-bottom: 16px; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.15; }
.nsingle__info .obit__plan { gap: 14px; }

.nperson--foto { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 24px; align-items: start; }
.nperson--foto > .nblock__h { grid-column: 1 / -1; }
.nperson__photo { grid-row: span 2; margin: 0; padding: 6px; background: var(--cream); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(116, 71, 15, .28); }
.nperson__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nperson--foto .nfacts, .nperson--foto .nperson__mem { grid-column: 2; }
.nfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.nfacts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); }
.nfacts dd { margin: 2px 0 0; font-size: 15.5px; color: var(--bone); }
.nperson__mem { margin-top: 16px; font-family: var(--font-display); font-size: 20px; line-height: 1.5; color: var(--bone); }
.nperson__mem p + p { margin-top: .6em; }

.nrest__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; }
.nrest__place { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--bone); }
.nrest__place .ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.nrest .more { margin: 0; }
.nrest__map { margin-top: 12px; height: 220px; }
/* niska mapa: przycięcie także od dołu, żeby miejsce wypadło na środku widocznej części */
.nrest__map iframe { height: calc(100% + 2 * var(--crop)); }
.nrest__map .loc__pin { top: 50%; }

/* sąsiednie nekrologi: jeden wąski pas */
.nnext { padding: 24px 0; border-top: 1px solid var(--line); background: var(--night-2); }
.nnext__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.nnext__a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .3s var(--ease); }
.nnext__a .ic { flex: none; color: var(--gold); }
.nnext__a > span { display: flex; flex-direction: column; min-width: 0; }
.nnext__a small { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.nnext__a b { overflow: hidden; font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.nnext__a b span { font-style: italic; font-weight: 400; font-size: .7em; color: var(--gold); }
.nnext__a--prev { flex-direction: row-reverse; text-align: right; }
.nnext__a--prev > span { align-items: flex-end; }
a.nnext__a:hover { border-color: var(--gold); }
.nnext__a.is-off { border-color: transparent; }
.nnext__cal { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nnext__cal .ic { width: 16px; height: 16px; color: var(--gold); }
.nnext__cal:hover { border-color: var(--gold); }

@media (max-width: 1023px) {
  .nsingle__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 760px; }
  .nsingle__kl { position: static; }
}
@media (max-width: 720px) {
  .nfacts { grid-template-columns: minmax(0, 1fr); }
  .nperson--foto { grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; }
  .nperson--foto .nperson__mem { grid-column: 1 / -1; }
  .nnext__in { grid-template-columns: minmax(0, 1fr); }
  .nnext__a.is-off { display: none; }
  .nnext__a--prev { flex-direction: row; text-align: left; }
  .nnext__a--prev > span { align-items: flex-start; }
  .nnext__cal { justify-self: center; order: 3; }
}
@media (max-width: 639px) {
  .hero--compact .hero__main { padding: calc(var(--nav) + 28px) 0 28px; }
  .hero--compact h1 { font-size: 38px; }
}

/* ---------- stronicowanie ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--mist-2);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--bone); }
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--ink-dark); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ---------- wpisy (gdyby klient pisał aktualności) ---------- */
.entries { border-top: 1px solid var(--line-strong); max-width: 860px; }
.entry { padding: 32px 0; border-bottom: 1px solid var(--line); }
.entry-date { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.entry__title { margin: 8px 0 10px; font-size: clamp(30px, 3vw, 40px); }
.entry__title a { text-decoration: none; }
.entry__title a:hover { color: var(--gold-hi); }
.entry p:last-child { color: var(--mist-2); }

/* ---------- oferta na podstronie ---------- */
.offer--page { padding-top: clamp(72px, 10vh, 120px); }

@media (max-width: 1180px) {
  .narch__grid { gap: 40px; }
  .orows--arch .orow__act { flex-direction: column; align-items: flex-end; }
}
@media (max-width: 1023px) {
  .hero--page { min-height: 0; }
  .narch__grid { grid-template-columns: 1fr; }
  .narch__side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .narch__side .nsearch { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .narch__side { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .hero--page .hero__main { padding: calc(var(--nav) + 40px) 0 48px; }
  .hero--page h1 { font-size: 42px; }
  .ggrid { columns: 1; }
  .cal { padding: 16px 12px 14px; }
  .cal__d { height: 40px; font-size: 14px; }
  .narch__pager { flex-direction: column; }
  .narch__pg--old { margin-left: 0; }
  .orows--arch .orow { grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; padding-inline: 0; }
  .orows--arch .orow__date { grid-row: auto; padding-right: 12px; }
  .orows--arch .orow__date b { font-size: 34px; }
  .orows--arch .orow__where { grid-column: 1 / -1; grid-row: auto; }
  .orows--arch .orow__act { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; }
  .prose { font-size: 16.5px; }
}

/* ---------- skrót w nagłówku nekrologu: wiek, data śmierci, pogrzeb ---------- */
.hsum { display: flex; flex-wrap: wrap; gap: 0; margin: 6px 0 0; padding-top: 22px; border-top: 1px solid var(--gold-dim); max-width: 860px; }
.hsum__it { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; flex: 1 1 0; min-width: 0; padding: 4px 28px 4px 0; }
.hsum__it + .hsum__it { padding-left: 28px; border-left: 1px solid var(--line); }
.hsum__ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--gold-dim); border-radius: 50%; color: var(--gold); background: rgba(200, 184, 139, .06); }
.hsum__ic .ic { width: 22px; height: 22px; stroke-width: 1.3; }
.hsum dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.hsum dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 25px; line-height: 1.15; color: var(--bone); white-space: nowrap; }
.hsum dd small { display: block; font-family: var(--font-text); font-size: 13.5px; line-height: 1.4; color: var(--mist); white-space: normal; }
@media (max-width: 720px) {
  .hsum { flex-direction: column; gap: 14px; }
  .hsum__it, .hsum__it + .hsum__it { padding: 0; border-left: 0; }
  .hsum dd { font-size: 22px; }
}

/* ---------- znicze: licznik przy przycisku ---------- */
.candle__n { display: inline-grid; place-items: center; min-width: 26px; height: 22px; margin-left: 2px; padding: 0 7px; border-radius: 999px; background: rgba(200, 184, 139, .14); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.candle__n[hidden] { display: none; }
.candle[aria-pressed="true"] .candle__n { background: var(--gold); color: var(--ink-dark); }
.candle[aria-pressed="true"] { cursor: default; }
.candle.is-busy { pointer-events: none; }
