/* Responsive presentation for the static donation pages. */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { overflow-x: hidden; }
body:not(.home) { background: #f3f1ea; }
body:not(.home) .entry-content table { background: #fcfbf6; }
body:not(.home) .entry-content td { font-family: 'Fira Sans', Arial, sans-serif; line-height: 1.5; }
body:not(.home) .entry-content td > strong:first-of-type { font-size: 1.15em; line-height: 1.3; }
.page-copy { color: #243b33; margin: 0 auto .8rem; max-width: 42rem; line-height: 1.45; }
.page-copy-title { display: block; font-family: 'Fira Sans', Arial, sans-serif; font-size: clamp(1.5rem, 2.7vw, 2rem); line-height: 1.2; }
.page-copy-intro { margin: .5rem auto .75rem; white-space: pre-line; font-size: clamp(1.15rem, 2.1vw, 1.4rem); line-height: 1.42; }
.payment-amounts { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: .15rem .55rem; margin: .4rem auto; }
.payment-amounts .coin-link { margin: 0 !important; }
body:not(.home) .entry-content .content-back { display: inline-flex; align-items: center; gap: .45rem; margin-top: .8rem; vertical-align: middle; color: #233d31; text-decoration: none; }
body:not(.home) .entry-content .content-back img { display: block; }
body:not(.home) .entry-content .content-back:hover span { text-decoration: underline; }
body:not(.home) .entry-content .content-back:focus-visible { outline: 3px solid #125e36; outline-offset: 3px; }
.content-heading { margin-top: .4rem; font-size: 1.14em; line-height: 1.3; }
.content-heading strong { font-weight: 700; }
.intro-copy { margin: 1.45rem 0 1rem; }
.content-image-group { margin: 1rem auto .4rem; }
.entry-content { width: min(100% - 2rem, 56rem); }
.entry-content figure { max-width: 100%; margin-inline: auto; }
.entry-content table { max-width: 100%; }
.entry-content td { max-width: 100%; padding-inline: .25rem; }
.entry-content img { max-width: 100%; height: auto; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.25rem, 1vw, .6rem); max-width: 36rem; margin: 1rem auto; }
.tile-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: .2rem; background: transparent; color: #173b24; text-decoration: none; font-weight: 600; }
.tile-grid a:hover, .tile-grid a:focus-visible { background: #f0f6eb; box-shadow: 0 7px 23px #192e2030; }
.tile-grid img { display: block; width: 100% !important; height: 100% !important; max-height: none; object-fit: cover; margin-bottom: 0; }
.tile-grid a { position: relative; container-type: inline-size; }
.tile-grid a::before { content: ''; position: absolute; inset: 0 0 auto; height: 43%; background: linear-gradient(#17130b8c, #17130b00); pointer-events: none; }
.tile-grid .tile-caption { position: absolute; z-index: 1; top: 5%; left: 3%; width: 94%; height: auto; margin: 0; overflow: visible; white-space: pre-line; overflow-wrap: anywhere; color: #fff8df; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.7rem, 9.5cqw, 2.2rem); font-weight: normal; line-height: 1.08; text-align: center; text-shadow: 0 2px 4px #16110bdd; pointer-events: none; }
.tile-grid [data-tile-key="home_kerkbalans"] { font-size: clamp(1.38rem, 8cqw, 1.85rem); }
.tile-photo { position: relative; display: inline-block; width: clamp(8rem, 32vw, 10rem); margin: .45rem .12rem; vertical-align: middle; line-height: 0; text-decoration: none; }
.tile-photo img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover; }
.tile-photo .tile-caption { position: absolute; top: 6%; left: 3%; width: 94%; white-space: pre-line; color: #fff8df; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1rem, 3.5vw, 1.45rem); font-weight: normal; line-height: 1.06; text-align: center; text-shadow: 0 2px 4px #16110bcc; pointer-events: none; }
.tile-photo [data-tile-key="kerkbalans"] { color: #ae211a; text-shadow: 0 1px 1px #fffd; }
.tile-photo [data-tile-key="trappen"] { font-size: clamp(.85rem, 2.8vw, 1.15rem); }
.tile-photo [data-tile-key="parochieblad"] { color: #251e16; text-shadow: 0 1px 2px #fffc; }
.federatieblad-tile { overflow: hidden; }
.federatieblad-tile img { transform: scale(1.42); }
.federatieblad-tile [data-tile-key="parochieblad"] { z-index: 1; top: auto; bottom: 4%; width: 94%; padding: .2rem 0; background: #21180dc9; color: #fff8df; font-size: clamp(1rem, 3vw, 1.2rem); text-shadow: 0 1px 3px #000; }
.federatieblad-cover { display: block; width: min(100%, 28rem); height: auto; margin: .75rem auto; }
.page-diverse-collectes .collecte-tegel { position: relative; display: inline-block; width: clamp(8rem, 37vw, 11rem); line-height: 0; vertical-align: middle; text-decoration: none; }
.page-diverse-collectes .collecte-tegel img { display: block; width: 100% !important; }
.page-diverse-collectes .collecte-tegel span { position: absolute; top: 5%; left: 0; width: 100%; white-space: pre-line; color: #fff5d8; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.75rem, 8.5vw, 2.25rem); font-weight: normal; line-height: .88; text-align: center; text-shadow: 0 1px 3px #20150988; pointer-events: none; }
.tile-grid .tile-caption, .tile-photo .tile-caption, .page-diverse-collectes .collecte-tegel span { font-weight: 700; overflow-wrap: anywhere; text-shadow: 0 2px 3px #120f0bee, 0 0 9px #120f0bcc; }
.tile-grid .tile-caption { font-size: 1.1rem; font-size: clamp(1rem, 12cqw, 2.05rem); overflow-wrap: normal; }
.tile-grid [data-tile-key="home_kerkbalans"] { font-size: 1rem; font-size: clamp(.9rem, 9.5cqw, 1.7rem); }
.tile-grid [data-tile-key="home_collectes"] { font-size: .95rem; font-size: clamp(.85rem, 8.9cqw, 1.55rem); }
.tile-grid [data-tile-key="home_vorming"] { font-size: 1rem; font-size: clamp(.9rem, 9.5cqw, 1.7rem); }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; width: min(100%, 40rem); margin: 1rem auto; }
.overview-grid .tile-photo { display: block; width: 100%; margin: 0; container-type: inline-size; }
.overview-grid .tile-caption { font-size: 1rem; font-size: clamp(.85rem, 12cqw, 1.45rem); overflow-wrap: normal; }
.overview-grid [data-tile-key="trappen"] { font-size: .85rem; font-size: clamp(.7rem, 8.8cqw, 1.15rem); }
@media (min-width: 720px) { .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vorming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .65rem; width: min(100%, 42rem); margin: 1rem auto; }
.vorming-card { padding: 1rem .6rem; border: 1px solid #c7d4c4; border-radius: .35rem; background: #f3f6ef; }
.vorming-card h2 { margin: 0 0 .8rem; color: #243b33; font: 700 clamp(1.2rem, 3vw, 1.55rem) 'Fira Sans', Arial, sans-serif; }
.vorming-card a { display: inline-block; padding: .55rem .8rem; border-radius: .3rem; background: #244934; color: #fff; font: 600 1rem 'Fira Sans', Arial, sans-serif; text-decoration: none; }
.vorming-card a:hover, .vorming-card a:focus-visible { background: #356b49; outline-offset: 3px; }
.tile-photo [data-tile-key="kerkbalans"], .tile-photo [data-tile-key="parochieblad"] { text-shadow: 0 1px 2px #fff, 0 0 7px #fff; }
.tile-grid a:focus-visible, .coin-link:focus-visible { outline: 3px solid #125e36; outline-offset: 4px; }
.coin-link { display: inline-flex; margin: .4rem; text-decoration: none; vertical-align: middle; border-radius: 50%; }
.coin { --coin: #a77f24; display: grid; place-items: center; position: relative; isolation: isolate; width: clamp(6.25rem, 23vw, 7.75rem); aspect-ratio: 1; border-radius: 50%; border: 4px double #ffffffa6; outline: 2px solid color-mix(in srgb, var(--coin), #222 27%); background: radial-gradient(circle at 32% 22%, #ffffff90, transparent 40%), var(--coin); box-shadow: inset 0 4px 5px #fff9, inset 0 -7px 10px #0003, 0 5px 9px #0003; color: #17201b; font-family: Georgia, serif; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 700; line-height: 1; }
.coin::before { content: ''; position: absolute; inset: 13%; z-index: -1; opacity: .14; background: url('../images/Favicon-kathedraal2.png') center / contain no-repeat; mix-blend-mode: multiply; }
.coin::after { content: ''; position: absolute; inset: 7%; border: 1px solid #ffffffa8; border-radius: 50%; }
.coin-link:hover .coin { transform: translateY(-2px); box-shadow: inset 0 4px 5px #fff9, inset 0 -7px 10px #0003, 0 8px 15px #0004; }
@media (min-width: 720px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 52rem; } }
@media (max-width: 420px) { .entry-content { width: min(100% - 1rem, 56rem); } .tile-grid a { min-height: 9rem; } .coin-link { margin: .25rem; } }
@media (prefers-reduced-motion: no-preference) { .coin { transition: transform .18s, box-shadow .18s; } }
/* Approved cathedral relief, reused for every exact amount. */
.coin {
  width: clamp(6.5rem, 23vw, 8rem);
  border: 0;
  outline: 0;
  background: url('../images/coin-master.png') center / contain no-repeat;
  box-shadow: none;
  color: #141414;
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  text-shadow: 0 1px 1px #fffb, 0 -1px 1px #0005;
}
.coin::before {
  content: '';
  z-index: 0;
  inset: 1.5%;
  background: var(--coin);
  opacity: .9;
  border-radius: 50%;
  mix-blend-mode: color;
}
.coin::after { display: none; }
.coin-label { position: relative; z-index: 1; white-space: nowrap; background: #ffffff0a; border-radius: .35rem; }
.coin-free .coin-label { white-space: normal; max-width: 70%; font-size: .74em; line-height: 1.05; }
.coin-link:hover .coin { box-shadow: none; filter: drop-shadow(0 6px 7px #0004); }
/* A small banknote for an amount chosen by the donor. */
.banknote-link { display: inline-flex; margin: .6rem; text-decoration: none; vertical-align: middle; border-radius: .7rem; }
.banknote { display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden;
  width: clamp(11.5rem, 48vw, 15rem); aspect-ratio: 2.05; border: 4px double #586331;
  border-radius: .65rem; color: #26321b; font: 700 clamp(1rem, 4vw, 1.35rem) Georgia, serif;
  background: radial-gradient(ellipse at 20% 15%, #ffffffe0, transparent 54%),
              repeating-linear-gradient(45deg, #b8bb66 0 2px, #cdd078 2px 5px);
  box-shadow: inset 0 0 0 5px #e2e3a2, inset 0 0 0 7px #66743c,
              inset 0 7px 13px #fff7, inset 0 -6px 12px #57633944, 0 5px 11px #0003;
}
.banknote::before { content: ''; position: absolute; inset: 8%; opacity: .17;
  background: url('../images/logo-kathedraal-origineel.png') center / contain no-repeat;
  filter: grayscale(1); mix-blend-mode: multiply; z-index: -1; }
.banknote::after { content: ''; position: absolute; inset: 11px; border: 1px solid #5969339c;
  border-radius: .25rem; pointer-events: none; }
.banknote .coin-label { background: #e9e9b6b8; padding: .2em .4em; border-radius: .3rem; }
.banknote-link:hover .banknote { filter: drop-shadow(0 6px 7px #0004); transform: translateY(-2px); }
.banknote-link:focus-visible { outline: 3px solid #125e36; outline-offset: 4px; }
/* Approved image assets, displayed at a touch-friendly size. */
.coin-link, .banknote-link {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; text-decoration: none; margin: .35rem;
}
.payment-coin-image { display: block; width: 8rem; width: clamp(6.5rem, 23vw, 8rem); height: auto; }
.banknote-image { display: block; width: 16rem; width: clamp(12rem, 50vw, 16rem); height: auto; }
.coin-link:hover .payment-coin-image, .banknote-link:hover .banknote-image { filter: drop-shadow(0 6px 7px #0004); transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) { .payment-coin-image, .banknote-image { transition: filter .18s, transform .18s; } }

/* Let the content use the available width on phones. */
@media (max-width: 719px) {
  body.home { background: #fcfbf7; }
  .payment-page .site-main { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .home .site-main { padding-top: .65rem; padding-bottom: .65rem; }
  .entry-content { width: calc(100% - 1rem); font-size: 1.125rem; line-height: 1.5; }
  .entry-content figure, .entry-content table { width: 100%; }
  .entry-content td { padding-inline: .5rem; }
  body:not(.home) .entry-content td { padding-top: .75rem; padding-bottom: .75rem; }
  .home .entry-content h1 { max-width: 23rem; margin: 0 auto .3rem; font-size: clamp(1.85rem, 7.4vw, 2.35rem); line-height: 1.1; }
  .home .entry-content h1 small { font-size: .62em; }
  .tile-grid { width: 100%; max-width: none; grid-auto-rows: 1fr; gap: .18rem .35rem; margin: .35rem auto .75rem; }
  .tile-grid a { min-height: 0; border-radius: .2rem; background: transparent; box-shadow: none; }
  .page-diverse-collectes .entry-content a[href="../kathedraal-rotterdam/index.html"] img,
  .page-diverse-collectes .entry-content a[href="../tweede-collecte/index.html"] img { width: clamp(8rem, 37vw, 11rem) !important; vertical-align: middle; }
  .payment-page .coin-link { margin: .15rem .25rem; }
  .payment-page .banknote-link { margin: .25rem; }
  .payment-page .payment-coin-image { width: 34vw; max-width: 9.5rem; width: clamp(7.5rem, 34vw, 9.5rem); }
  .payment-page .banknote-image { width: 72vw; max-width: 19rem; width: min(72vw, 19rem); }
}
@media (min-width: 900px) and (orientation: landscape) {
  .payment-page .entry-content { width: min(100% - 2rem, 68rem); }
  .payment-page .entry-content figure, .payment-page .entry-content table { width: 100%; max-width: 68rem; }
  .payment-page .payment-amounts { grid-template-columns: repeat(3, max-content); gap: .1rem .7rem; }
  .payment-page .payment-coin-image { width: 8rem; width: clamp(6.25rem, 12vh, 8rem); }
  .payment-page .banknote-image { width: 15rem; width: clamp(11rem, 22vh, 15rem); }
  .payment-page .page-copy { margin-bottom: .3rem; }
}

/* Een vaste bovenpositie en dezelfde ademruimte op alle pagina's. */
body.home .site-main, body:not(.home) .site-main {
  display: block;
  min-height: 0;
  padding: 2rem 0;
}
.site-main > article { width: 100%; margin: 0; }
body.home .entry-content, body:not(.home) .entry-content {
  width: 88vw;
  max-width: 56rem;
  margin: 0 auto;
}
body:not(.home) .entry-content figure,
body:not(.home) .entry-content table {
  width: 100%; min-width: 0; max-width: 100%; margin: 0 auto;
}
body:not(.home) .entry-content td {
  padding: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
}
body.home .entry-content h1 {
  max-width: 42rem;
  margin: 0 auto 1rem;
  color: #243b33;
  font-family: 'Fira Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  line-height: 1.2;
  white-space: pre-line;
}
.page-copy-title { white-space: pre-line; }
@media (max-width: 719px) {
  body.home .site-main, body:not(.home) .site-main { padding: 6vw 0; }
  body:not(.home) .entry-content td { padding: 1rem 4%; }
}

/* De homepage gebruikt hetzelfde paneel als de binnenpagina's. */
body.home { background: #f3f1ea; }
body.home .entry-content table { background: #fcfbf6; }
body.home .entry-content figure, body.home .entry-content table {
  width: 100%; min-width: 0; max-width: 100%; margin: 0 auto;
}
body.home .entry-content td { padding: 1.5rem; padding: clamp(1rem, 3vw, 2rem); }
body.home .entry-content h1, .page-copy-title {
  margin-top: var(--titel-boven, 8px);
  margin-bottom: var(--titel-onder, 12px);
}
.page-navigation { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; width: 100%; margin: 1rem auto 0; }
body:not(.home) .entry-content .page-navigation .content-back { margin: 0; }
.content-home { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border: 1px solid #789282; border-radius: .3rem; color: #233d31; background: #edf2e9; text-decoration: none; }
.content-home:hover, .content-home:focus-visible { background: #dce8d5; outline-offset: 3px; }
.content-home svg { display: block; }
@media (max-width: 719px) {
  body.home .entry-content td { padding: 1rem 4%; }
  .page-navigation { gap: 1.25rem; }
}

.page-navigation .content-home { width: 45px; height: 45px; }
.page-navigation .content-back { min-height: 45px; }

.tile-grid [data-tile-key="home_diaconie"] { font-size: 1rem; font-size: clamp(.9rem, 9.5cqw, 1.7rem); }
.overview-grid.parish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Vier kaarskeuzes: twee boven en twee onder op telefoon, tablet en desktop. */
.candles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 100%; max-width: 38rem; margin: 1rem auto; }
.candle-choice { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.candles-grid .coin-link, .candles-grid .banknote-link { display: flex; align-items: center; justify-content: center; margin: 0; width: 100%; height: 9rem; border-radius: 0; }
.candles-grid .payment-coin-image { width: 8rem; max-width: 100%; height: auto; }
.candles-grid .banknote-image { width: 100%; max-width: 16rem; height: auto; }
.candle-choice .candle-label { font-family: 'Fira Sans', Arial, sans-serif; font-size: 1.2rem; font-weight: 500; color: #233e34; line-height: 1.3; margin: .65rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 479px) {
 .candles-grid { gap: .8rem .6rem; }
 .candles-grid .coin-link, .candles-grid .banknote-link { height: 7rem; }
 .candles-grid .payment-coin-image { width: 7rem; }
 .candle-choice .candle-label { font-size: 1.1rem; }
}

.seasonal-card[hidden], [data-season-empty][hidden] { display: none !important; }
.seasonal-image { display: block; width: 100%; max-width: 14rem; aspect-ratio: 1; object-fit: cover; margin: 0 auto 1rem; }

/* Compacte regelafstand voor de bewerkbare teksten op afbeeldingen. */
.tile-grid .tile-caption, .tile-photo .tile-caption, .page-diverse-collectes .collecte-tegel [data-tile-key] { line-height: .95; }

.vorming-grid > a.linked-card { display:block; color:#243b33; text-decoration:none; }
.vorming-grid > a.linked-card:hover, .vorming-grid > a.linked-card:focus-visible { background:#e6eedf; outline:2px solid #356b49; outline-offset:3px; }

.community-choice-photo { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; background:#f3f6ef; margin-bottom:1rem; }

/* V57: foto-keuzes op alle schermen in twee compacte kolommen. */
.vorming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width:100%; max-width:32rem; gap:.7rem; }
.vorming-card { min-width:0; padding:.65rem .5rem; }
.vorming-card h2 { font-size:clamp(1rem,2.5vw,1.35rem); line-height:1.2; overflow-wrap:anywhere; }
.vorming-card p { font-size:1rem; line-height:1.35; overflow-wrap:anywhere; }
.vorming-card a { max-width:100%; box-sizing:border-box; font-size:1rem; overflow-wrap:anywhere; }
.vorming-card .community-choice-photo { width:100%; height:auto; aspect-ratio:1; object-fit:contain; margin:0 0 .65rem; }
.vorming-card a.formation-photo-link { display:block; padding:0; background:transparent; border-radius:0; }
.vorming-card a.formation-photo-link:focus-visible { outline:3px solid #356b49; }

/* V58: fototegels met bewerkbare titel, zonder losse links of onderschrift. */
.overview-grid.photo-choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; max-width:32rem; gap:.65rem; }
.photo-choice-grid .photo-choice { position:relative; display:block; aspect-ratio:1; overflow:hidden; border-radius:.2rem; background:#eeeae0; padding:0; }
.photo-choice-grid .choice-image { display:block; width:100%; height:100%; max-width:none; object-fit:cover; margin:0; }
.photo-choice-grid .tile-caption { position:absolute; top:.5rem; left:.35rem; right:.35rem; width:auto; margin:0; text-align:center; color:#fff7d3; font-family:Georgia,serif; font-weight:700; font-size:clamp(1rem,11cqw,1.8rem); line-height:1.05; text-shadow:0 2px 3px #120f0b,0 0 9px #120f0b; white-space:pre-line; }
.photo-choice-grid a:focus-visible { outline:3px solid #125e36; outline-offset:3px; }
