/* Fonts served from our own server (no Google request: privacy, GDPR). SIL Open Font License. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/young-serif-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/young-serif-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --cream: #fdfcfa;
  --sand: #f4f1ea;
  --paper: #ffffff;
  --ink: #17301f;
  --ink-soft: #4c5d50;
  --green: #1d5a2c;
  --red: #b3342a;
  --line: #e5dfd2;
  --field: #c9bea6;       /* borders of inputs and small controls */
  --green-tint: #e3efe6;  /* quiet green surfaces: notes, badges */
  --red-tint: #f7e4e1;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* 8-point star tile, the logo's green */
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23f4efe4' stroke-opacity='.22' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3Cpath d='M0 0l16 16M56 0L40 16M0 56l16-16M56 56L40 40'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* a card swinging out must never make the page scroll sideways */
body { font: 17px/1.65 Geist, system-ui, sans-serif; color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.5vw, 6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.4rem; }
p { text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 10vw, 128px); }
/* a plain fact line under a heading (ages, "new this year"); not a label above it */
.page-meta { margin-top: 10px; font-size: 1.02rem; font-weight: 500; color: var(--ink-soft); }
.section-title { font-size: 1.6rem; margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 24px; align-items: center; list-style: none; padding: 0; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--red); }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; font: 500 .95rem Geist, sans-serif; cursor: pointer; padding: 8px 14px; color: var(--ink); }
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; padding: 20px 16px 28px; background: var(--cream); border-bottom: 1px solid var(--line); gap: 16px; display: none; }
  .nav.open { display: flex; }
}

/* buttons: one solid style, secondary actions are plain links */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 6px; border: 0; background: var(--green); color: #fff; font: 500 .98rem Geist, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn:hover { background: #164a23; }
.btn:active { transform: translateY(1px); }
.btn.red { background: var(--red); }
.btn.red:hover { background: #982a22; }
.btn.ghost { background: none; color: var(--ink); padding-inline: 4px; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.btn.ghost:hover { text-decoration-color: var(--red); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero h1 .accent { color: var(--red); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; margin-top: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; border-top: 2px solid var(--ink); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts small { display: block; color: var(--ink-soft); font-size: .85rem; }
.facts strong { font-family: 'Young Serif', serif; font-size: 1.45rem; font-weight: 400; }
@media (max-width: 520px) { .facts strong { font-size: 1.15rem; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* pattern panel (stands in for photos) */
.arch { aspect-ratio: 4/5; border-radius: 999px 999px 4px 4px; background: var(--star) 0 0 / 56px 56px, var(--green); position: relative; overflow: hidden; }
.arch::after { content: attr(data-label); position: absolute; inset: auto 0 22px; text-align: center; color: var(--cream); font-family: 'Young Serif', serif; font-size: 1.15rem; }
.arch.red { background-color: var(--red); }
.arch.gold { background-color: #2f4a37; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch:has(img)::after { text-shadow: 0 2px 12px rgb(0 0 0 / .6); }

/* lists instead of card grids */
.grid { display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 2px solid var(--ink); }
.card { padding: 24px 0 28px; border-bottom: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
a.card h3 { transition: color .2s; }
a.card:hover h3 { color: var(--red); }
.card .more { margin-top: auto; font-weight: 500; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
a.card:hover .more { text-decoration-color: var(--red); }

/* index rows (programmes, giving) */
.rows { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.rows a { display: grid; grid-template-columns: 140px 1fr 1.4fr 32px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s, padding .25s var(--ease); }
.rows a:hover { background: var(--sand); padding-inline: 14px; }
.rows .k { color: var(--red); font-weight: 500; font-size: .95rem; }
.rows h3 { font-size: 1.7rem; grid-column: 2; }
.rows p { grid-column: 3; }
.rows .go { grid-column: 4; font-size: 1.3rem; transition: transform .25s var(--ease); }
.rows a:hover .go { transform: translateX(4px); color: var(--red); }
@media (max-width: 760px) { .rows a { grid-template-columns: 1fr 24px; gap: 4px 12px; } .rows .k, .rows h3, .rows p { grid-column: 1; } .rows .go { grid-column: 2; grid-row: 1 / span 3; align-self: center; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
/* "dark" kept as class name: now a sand band in the same palette */
.dark { background: var(--sand); }

.purpose-list { list-style: none; padding: 0; counter-reset: p; border-top: 2px solid var(--ink); }
.purpose-list li { counter-increment: p; display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.purpose-list li::before { content: counter(p); font-family: 'Young Serif', serif; color: var(--red); }

/* schedule */
.schedule { border-top: 2px solid var(--ink); }
.slot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.slot strong { font-size: 1.35rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--green); background: var(--green-tint); white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.soon { color: var(--red); background: var(--red-tint); }

/* forms */
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
input, select, textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--field); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgb(29 90 44 / .18); }
input:user-invalid { border-color: var(--red); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 4vw, 40px); position: relative; }
.success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 12px 0; }
.form-card.sent form { display: none; }
.form-card.sent .success { display: flex; animation: fade .4s var(--ease); }
.success-title:focus { outline: none; }
.success .fallback { font-size: .9rem; }
.form-card.saved .fallback { display: none; } /* saved on the site: no need for the phone/email fallback */
.check.send path { stroke-width: 3.5; stroke-dasharray: 130; stroke-dashoffset: 130; }
.check { width: 72px; height: 72px; }
.check circle { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 240; stroke-dashoffset: 240; }
.check path { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.sent .check circle { animation: draw .6s var(--ease) forwards; }
.sent .check path { animation: draw .4s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }

/* donate */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border-radius: 4px; border: 1px solid var(--field); background: #fff; font: 500 .95rem Geist, sans-serif; cursor: pointer; color: var(--ink); transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.purpose-note { margin-top: 16px; min-height: 3.2em; }
.bank { display: grid; }
.bank-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bank-line small { display: block; font-size: .8rem; color: var(--ink-soft); }
.bank-line code { font: 500 1rem ui-monospace, Menlo, monospace; word-break: break-all; }
.copy { flex: none; border: 1px solid var(--field); background: #fff; border-radius: 4px; padding: 6px 12px; font: 500 .85rem Geist, sans-serif; cursor: pointer; color: var(--ink); transition: all .2s; min-width: 84px; }
.copy:hover { border-color: var(--ink); }
.copy.done { background: var(--green); border-color: var(--green); color: #fff; }

.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 8px; filter: saturate(.6) sepia(.15); }

/* footer */
footer { background: var(--sand); padding: 64px 0 28px; border-top: 1px solid var(--line); }
footer .flogo { height: 54px; width: auto; margin-bottom: 36px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
footer .fh { font: 600 .9rem Geist, sans-serif; letter-spacing: 0; margin-bottom: 8px; }
footer a { text-decoration: none; display: block; padding: 2px 0; color: var(--ink-soft); }
footer a:hover { color: var(--red); }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }

.wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgb(23 48 31 / .5); transition: transform .2s; }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; fill: #fff; }

/* page hero */
.page-hero { padding-bottom: 32px; }
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); }
.crumb { font-size: .9rem; color: var(--ink-soft); margin-bottom: 20px; display: block; }

/* motion: kept for the hero and a few key headings */
/* hidden only once main.js has run (it sets .js on <html>), so the page never stays blank without JavaScript */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.kinetic .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .16em 0 .1em; margin-top: -.16em; } /* room for Ö, Ü, Ç and descenders */
.kinetic .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.kinetic.in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .kinetic .w > span { opacity: 1; transform: none; }
  /* keep the end states that animations would have drawn */
  .check circle, .check path { stroke-dashoffset: 0; }
  .read-progress { display: none; }
}
/* keyboard focus that stays visible where the default ring would be clipped or invisible */
.lang button:focus-visible { outline-offset: -3px; }
.map-off :focus-visible { outline-color: var(--cream); }

/* language switcher */
.lang { display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 7px 10px; font: 500 .82rem Geist, sans-serif; color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s; }
.lang button + button { border-left: 1px solid var(--line); }
.lang button:hover { color: var(--ink); background: var(--paper); }
.lang button[aria-pressed="true"] { background: var(--green); color: #fff; }
@media (min-width: 1081px) { .lang { order: 3; margin-left: 8px; } .nav { margin-left: auto; } }

/* "To confirm": text not on the original site, waiting for the association to check it.
   Delete the data-confirm attribute from an element once it is confirmed.
   For now they are hidden. To show them again with a yellow "To confirm" label for review, replace the next line with:
   [data-confirm] { outline: 2px dashed #c99a1e; outline-offset: 4px; position: relative; }
   [data-confirm]::after { content: "To confirm"; position: absolute; top: -12px; right: 6px; background: #f3d98a; color: #4a3a07; font: 600 .7rem/1 Geist, sans-serif; padding: 4px 7px; border-radius: 3px; } */
[data-confirm] { display: none !important; }
/* a split whose first column is hidden: let the remaining column use the width */
.split:has(> [data-confirm]:first-child) { grid-template-columns: minmax(0, 680px); }
.steps h3 { margin-bottom: 6px; }
.hadith { margin: 22px 0 0; padding: 0; }
.hadith p { font-family: 'Young Serif', serif; font-size: 1.05rem; line-height: 1.5; }
.hadith cite { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; color: var(--ink-soft); }

/* contact values in the body font (codes stay monospace) */
.bank-line .val { font-size: 1.02rem; font-weight: 500; }
.privacy { font-size: .85rem; color: var(--ink-soft); }
/* map that loads only after a click (Google sets cookies) */
.map-off { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: var(--star) 0 0 / 56px 56px, var(--green); color: var(--cream); filter: none; }
.map-off p { max-width: 34ch; font-size: .95rem; }
.map-off .btn { background: var(--cream); color: var(--green); }
.map-off a { color: var(--cream); font-size: .9rem; }
.bank-group { margin-block: 18px 6px; padding: 14px 16px; background: var(--sand); border-radius: 8px; }
.bank-head { font-size: 1.05rem; margin-bottom: 4px; }
.bank-group .bank-line { padding: 7px 0; border-bottom: 0; }
.bank-group .bank-line + .bank-line { border-top: 1px solid var(--line); }
.form-note { font-size: .95rem; font-weight: 600; color: var(--green); background: var(--green-tint); border: 1px solid #cfe0d4; border-radius: 4px; padding: 11px 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--green); }
.check-row input { padding: 0; }
/* Let grid columns shrink; long select options must not widen the page */
.split > *, .row > *, form > * { min-width: 0; }
select { width: 100%; text-overflow: ellipsis; }

/* registration form in steps */
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
fieldset + fieldset { margin-top: 10px; }
legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-family: 'Young Serif', serif; font-size: 1.2rem; }
.step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font: 600 .85rem Geist, sans-serif; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt > span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 8px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.opt strong { font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.opt small { font-size: .82rem; color: var(--ink-soft); font-weight: 400; line-height: 1.35; }
.opt:hover > span { border-color: var(--ink); }
.opt input:checked + span { border-color: var(--green); background: var(--sand); box-shadow: inset 0 0 0 1px var(--green); }
.opt input:checked + span strong { color: var(--green); }
.opt input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.btn.submit { justify-content: center; width: 100%; padding-block: 15px; font-size: 1.02rem; }
.sched-note { margin-top: 14px; padding: 10px 14px; background: var(--green-tint); border: 1px solid #cfe0d4; border-radius: 4px; font-size: .95rem; }
.sched-note strong { color: var(--green); }
.req { color: var(--red); font-weight: 700; }
.req-note { font-size: .82rem; color: var(--ink-soft); margin-top: -4px; }
.opt small.hi { color: var(--red); font-weight: 600; }
/* the transfer reference is what routes a donation: make it stand out */
.ref-box { display: grid; gap: 8px; padding: 14px 16px; background: var(--green-tint); border: 1px solid #cfe0d4; border-radius: 4px; }
.ref-box small { font-weight: 600; color: var(--green); font-size: .9rem; }
.ref-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ref-line code { font: 700 1.35rem ui-monospace, Menlo, monospace; letter-spacing: .02em; color: var(--ink); }

/* bank accounts: all visible at once, easy to read and copy on a phone */
.accounts { display: grid; gap: 14px; }
.acct { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 6px; box-shadow: 0 10px 24px -20px rgb(23 48 31 / .45); }
.acct header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.acct h3 { font-size: 1.15rem; }
.cur { font: 700 .78rem ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--green); background: var(--green-tint); padding: 4px 8px; border-radius: 4px; }
/* each row: label and Copy on one line, the value on its own full-width line below */
.acct .bank-line { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label btn" "value value"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 0; }
.acct .bank-line > div { display: contents; }
.acct .bank-line small { grid-area: label; }
.acct .bank-line code { grid-area: value; font-size: 1.02rem; word-break: normal; overflow-wrap: anywhere; }
.acct .bank-line .copy { grid-area: btn; }
.acct .bank-line:last-child { border-bottom: 0; }
.acct .bank-line.iban code { font-size: 1.18rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.acct .bank-line.iban .copy { background: var(--green); border-color: var(--green); color: #fff; }
.acct .bank-line.iban .copy:hover { background: #164a23; }
.cta-line { margin-top: 28px; font-size: 1.02rem; }
.cta-line a { font-weight: 600; color: var(--green); }
/* the pattern panel stands in for a photo; keep it modest on phones */
@media (max-width: 860px) { .split > .arch { max-width: 240px !important; } }
.lesson-times { margin-top: 28px; max-width: 520px; }
.card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.card-links .more { margin-top: 0; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.card-links .more:hover { text-decoration-color: var(--red); }
/* rows: fixed columns, so a hidden age label does not shift the title and text */
@media (min-width: 761px) { .rows a > h3 { grid-column: 2; } .rows a > p { grid-column: 3; } .rows a > .go { grid-column: 4; } }

/* headings promoted for a correct outline; they keep their previous look */
.step-title { font-size: 1.5rem; margin-bottom: 14px; }
.bank-head { font-size: 1.05rem; }
.form-title { font-size: 1.4rem; margin-bottom: 18px; }
.success-title { font-size: 1.5rem; }
/* touch targets: at least 44px tall */
.lang button, .menu-btn, .copy, .chip { min-height: 44px; }
/* browser surfaces in the site palette */
::selection { background: var(--green-tint); color: var(--ink); }
input, textarea, select { caret-color: var(--green); accent-color: var(--green); }
html { accent-color: var(--green); }
/* footer map: a plain link, no iframe or script */
/* compact account cards: tight rows, 2 per row when there is room */
.donate-split { grid-template-columns: minmax(280px, .72fr) 1.6fr; }
@media (max-width: 860px) { .donate-split { grid-template-columns: 1fr; } }
.accounts { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; gap: 12px; }
.acct { container-type: inline-size; padding: 12px 14px 4px; }
.acct header { padding-bottom: 6px; }
.acct h3 { font-size: 1.05rem; }
.acct .bank-line { padding: 7px 0; row-gap: 0; }
.acct .bank-line small { font-size: .78rem; }
.acct .bank-line code { font-size: .95rem; line-height: 1.35; }
.acct .bank-line .copy { min-height: 32px; min-width: 0; padding: 4px 12px; font-size: .8rem; position: relative; }
.acct .bank-line .copy::after { content: ""; position: absolute; inset: -6px -4px; } /* keeps a 44px touch area */
/* every IBAN on one line, sized to its card */
.acct .bank-line.iban code { font-size: clamp(.8rem, 5cqi, 1.12rem); letter-spacing: 0; white-space: nowrap; }
/* non-IBAN rows: button beside label + value instead of above the value */
.acct .bank-line:not(.iban) { grid-template-areas: "label btn" "value btn"; }
.donate-split .form-card { padding: 14px; }

/* ---------- Blog: archive ---------- */
.post-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 40px; border-top: 2px solid var(--ink); }
.post-item a { display: grid; align-content: start; gap: 8px; height: 100%; padding: 26px 0 30px; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-item h2 { font-size: 1.45rem; line-height: 1.18; transition: color .2s; }
.post-item a:hover h2 { color: var(--red); }
.post-item .more { font-weight: 500; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; }
.post-item a:hover .more { text-decoration-color: var(--red); }
.lead-item { grid-column: 1 / -1; }
.lead-item a { padding-block: 32px 40px; }
.lead-item h2 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 22ch; }
.lead-item p { font-size: 1.12rem; max-width: 62ch; }
.post-thumb { display: block; aspect-ratio: 16 / 8; overflow: hidden; border-radius: 10px; margin-bottom: 10px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { font-size: .88rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
.blog-empty { display: grid; justify-items: start; gap: 12px; padding: 40px 0; border-top: 2px solid var(--ink); }

/* ---------- Blog: single post, built for reading ---------- */
.blog-single .post-head, .blog-single .post-body, .blog-single .post-foot, .blog-single .post-nav, .blog-single .post-cover { width: min(760px, 100% - 32px); }
.post-head { padding-top: clamp(32px, 6vw, 72px); }
.post-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.1; margin-top: 4px; }
.post-head .post-meta { margin-top: 14px; font-size: .95rem; }
.post-cover { margin-top: 32px; margin-bottom: 0; }
.post-cover img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding-block: 36px 8px; }
.prose { font-size: clamp(1.08rem, 1rem + .35vw, 1.2rem); line-height: 1.75; color: var(--ink); max-width: 62ch; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child { font-size: 1.1em; color: var(--ink); }
.prose h2 { font-size: 1.55em; line-height: 1.2; margin-top: 2em; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.22em; line-height: 1.3; margin-top: 1.7em; scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--green); }
.prose strong { font-weight: 600; }
.prose blockquote { position: relative; margin-inline: 0; padding: .2em 0 .2em 1.6em; font-family: 'Young Serif', Georgia, serif; font-size: 1.22em; line-height: 1.5; }
.prose blockquote::before { content: "“"; position: absolute; left: 0; top: -.15em; font-size: 2.4em; line-height: 1; color: var(--green); }
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote cite { display: block; margin-top: .6em; font: 400 .7em Geist, sans-serif; color: var(--ink-soft); font-style: normal; }
.prose img { border-radius: 8px; height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: .5em; font-size: .82em; color: var(--ink-soft); }
.prose hr { border: 0; height: 22px; margin-block: 2.2em; background: center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%231d5a2c' stroke-width='1.4'%3E%3Crect x='6' y='6' width='12' height='12'/%3E%3Crect x='6' y='6' width='12' height='12' transform='rotate(45 12 12)'/%3E%3C/g%3E%3C/svg%3E"); }
.toc { margin-bottom: 32px; padding: 16px 20px; background: var(--sand); border-radius: 8px; max-width: 62ch; }
.toc-title { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.toc a { color: var(--ink-soft); text-decoration-color: var(--line); }
.toc a:hover { color: var(--red); }
.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; align-items: center; margin-top: 48px; padding: 28px 0 8px; border-top: 1px solid var(--line); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; padding-bottom: 72px; }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav a.next { text-align: right; }
.post-nav small { font-size: .8rem; color: var(--ink-soft); }
.post-nav span { font-family: 'Young Serif', serif; line-height: 1.3; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav a.next { text-align: left; } }
/* reading progress: a thin line under the header, driven by scrolling (no script) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: read-grow linear both; animation-timeline: scroll(root); }
  @keyframes read-grow { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .read-progress { display: none; } }
/* blog: long words, tables, code and embeds never push past the screen */
.post-head h1, .post-item h2, .prose { overflow-wrap: anywhere; }
.prose table, .prose pre { display: block; max-width: 100%; overflow-x: auto; }
.prose table { border-collapse: collapse; font-size: .92em; }
.prose th, .prose td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose pre { padding: 14px 16px; background: var(--sand); border-radius: 8px; font-size: .88em; }
.prose iframe, .prose video, .prose embed { max-width: 100%; }
.prose iframe, .prose video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* schedule: times first, then who can join as its own group */
.sched-note { margin-bottom: 4px; }
.who-title { margin-top: 26px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-weight: 600; font-size: .95rem; }

/* ---------- accessibility and touch (P2/P3) ---------- */
.nav-wrap { display: contents; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scroll-padding-top: 96px; }                     /* anchors and focused fields stay clear of the sticky header */
a, button, label, input, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.wa { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); right: calc(18px + env(safe-area-inset-right, 0px)); }
/* touch screens keep :hover after a tap; undo the hovers that move things */
@media (hover: none) {
  .rows a:hover { background: none; padding-inline: 0; }
  .rows a:hover .go, .btn:hover .arrow, .wa:hover { transform: none; }
}
.acct-hint { margin: 6px 0 2px; font-size: .85rem; color: var(--ink-soft); }
.bank-note { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }
.bank-note a { color: var(--green); font-weight: 600; }

/* ---------- Education dropdown in the main menu ---------- */
.has-sub { position: relative; }
.sub-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: 500 .95rem Geist, sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; min-height: 44px; }
.sub-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s var(--ease); }
.has-sub.open .sub-btn svg { transform: rotate(180deg); }
.has-sub.current .sub-btn, .sub-btn:hover { color: var(--red); }
.sub { list-style: none; padding: 0; margin: 0; display: none; }
.has-sub.open .sub { display: block; }
.sub a { display: block; padding: 10px 12px; border-radius: 6px; }
.sub a:hover { background: var(--sand); }
@media (min-width: 1081px) {
  .sub { position: absolute; top: calc(100% + 6px); left: -14px; z-index: 70; min-width: 230px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 36px -20px rgb(23 48 31 / .45); }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* keeps hover alive across the gap */
  .nav .sub a[aria-current] { text-decoration: none; background: var(--green-tint); color: var(--green); }
}
@media (min-width: 1081px) and (hover: hover) { .has-sub:hover .sub { display: block; } .has-sub:hover .sub-btn svg { transform: rotate(180deg); } }
@media (max-width: 1080px) {
  .has-sub { width: 100%; }
  .sub { margin-top: 4px; padding-left: 14px; border-left: 1px solid var(--line); }
  .sub a { padding: 8px 6px; }
}

/* Elementor pages: give editor-written text the same rhythm as the rest of the site */
.e-con:not(.ar) > .elementor-widget-text-editor :is(p + p, ul, ol) { margin-top: 1em; }
.e-con:not(.ar) > .elementor-widget-text-editor { line-height: 1.7; }
/* Elementor versions of the site's parts (schedule rows, crumb, notes) */
.elementor:not(:has(.ar)) .crumb { display: block; margin-bottom: 4px; }
.elementor:not(:has(.ar)) .e-con.schedule { border-top: 2px solid var(--ink); }
.elementor:not(:has(.ar)) .e-con.slot { border-bottom: 1px solid var(--line); }
.elementor:not(:has(.ar)) .e-con.slot .elementor-widget:last-child { text-align: right; flex: none; }
.elementor:not(:has(.ar)) .sched-note, .elementor:not(:has(.ar)) .who-title { margin-top: 14px; }
.elementor:not(:has(.ar)) .lead p { font-size: 1.15rem; color: var(--ink-soft); }
.elementor:not(:has(.ar)) .muted p { color: var(--ink-soft); }
/* required asterisk sits right after the label text, the field goes full width below */
label:has(> .req) { grid-template-columns: auto 1fr; column-gap: 4px; }
label:has(> .req) > :is(input, select, textarea) { grid-column: 1 / -1; }
.elementor:not(:has(.ar)) .muted a, .elementor:not(:has(.ar)) .crumb a { text-decoration: underline; text-underline-offset: 3px; }
.elementor:not(:has(.ar)) .e-con.slot .elementor-widget-text-editor { line-height: 1.4; }
/* Pages copied into Elementor (class "ar"): one container + one text block per section, so the wrappers stay out of the way */
.elementor .e-con.ar { display: block; padding: 0; margin: 0; max-width: none; width: 100%; }
.elementor .e-con.ar > .elementor-widget { width: 100%; margin: 0; line-height: inherit; color: inherit; font: inherit; }
/* Photo arches: the photo rises into the arch from the bottom and settles; while scrolling the photo drifts slightly. */
@media (prefers-reduced-motion: no-preference) {
  .arch img { scale: 1.1; }
  .js .arch.reveal img { scale: 1.3; clip-path: inset(100% 0 0 0); transition: scale 1.8s var(--ease), clip-path 1.3s .15s var(--ease); }
  .js .arch.reveal.in img { scale: 1.1; clip-path: inset(0); }
  @supports (animation-timeline: view()) {
    .arch img { animation: arch-drift linear both; animation-timeline: view(); }
    @keyframes arch-drift { from { translate: 0 -3%; } to { translate: 0 3%; } }
  }
}

/* Programme rows with a small photo in front */
.rows .ph { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--sand); align-self: center; }
.rows .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.rows a:hover .ph img { scale: 1.08; }
.rows a:has(> .ph) { grid-template-columns: 120px 140px 1fr 1.4fr 32px; }
@media (min-width: 761px) { .rows a:has(> .ph) > .k { grid-column: 2; } .rows a:has(> .ph) > h3 { grid-column: 3; } .rows a:has(> .ph) > p { grid-column: 4; } .rows a:has(> .ph) > .go { grid-column: 5; } }
@media (max-width: 760px) {
  .rows a:has(> .ph) { grid-template-columns: 84px 1fr 24px; }
  .rows a:has(> .ph) > .ph { grid-column: 1; grid-row: 1 / span 3; }
  .rows a:has(> .ph) > :is(.k, h3, p) { grid-column: 2; }
  .rows a:has(> .ph) > .go { grid-column: 3; }
}
/* Islamic star pattern in the corners of the hero and sand sections, fading out towards the text */
.hero, .dark { position: relative; isolation: isolate; }
.hero::before, .dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("pattern.svg") 0 0 / 140px 140px; opacity: .2;
  /* fixed sizes, so tall sections (forms) do not fill up with pattern */
  -webkit-mask: radial-gradient(circle 520px at 100% 0, #000, transparent), radial-gradient(circle 380px at 0 100%, #000, transparent);
  mask: radial-gradient(circle 520px at 100% 0, #000, transparent), radial-gradient(circle 380px at 0 100%, #000, transparent);
}
.dark::before { opacity: .16; }
@media (max-width: 760px) {
  .hero::before, .dark::before { background-size: 100px 100px; -webkit-mask: radial-gradient(circle 300px at 100% 0, #000, transparent); mask: radial-gradient(circle 300px at 100% 0, #000, transparent); }
}
/* Home hero: text left, illustrated arch right with two floating cards (homework hours, places) */
.hero-split { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-split h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.hero-text > .reveal { margin-top: 28px; }
.hero-text .facts { margin-top: 40px; }
.hero-art { position: relative; width: 100%; max-width: 400px; justify-self: end; }
.hero-art img { display: block; width: 100%; height: auto; }
.float-card { position: absolute; display: grid; gap: 2px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 32px -20px rgb(23 48 31 / .5); animation: bob 6s ease-in-out infinite; }
.float-card small, .fc-time span { color: var(--ink-soft); font-size: .82rem; }
.float-card strong { font-family: 'Young Serif', serif; font-size: 1.35rem; font-weight: 400; line-height: 1.2; }
.fc-time { left: -52px; top: 42%; }
.fc-places { right: -28px; bottom: 3%; gap: 8px; justify-items: start; animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (max-width: 1240px) { .fc-places { right: -8px; } .fc-time { left: -32px; } }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 320px; }
  .float-card { padding: 9px 12px; } .float-card strong { font-size: 1.1rem; }
  .fc-time { left: auto; right: -10px; top: 36%; } .fc-places { right: auto; left: -10px; bottom: 2%; }
}
/* Age seal on programme pages: an 8-point star next to the title */
.page-hero .wrap { position: relative; }
.age-seal { position: absolute; right: 16px; top: 50%; translate: 0 -50%; isolation: isolate; width: 148px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; color: var(--cream); }
.age-seal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--star) 0 0 / 40px 40px, var(--green); clip-path: polygon(50.0% 0.0%, 65.7% 12.1%, 85.4% 14.6%, 87.9% 34.3%, 100.0% 50.0%, 87.9% 65.7%, 85.4% 85.4%, 65.7% 87.9%, 50.0% 100.0%, 34.3% 87.9%, 14.6% 85.4%, 12.1% 65.7%, 0.0% 50.0%, 12.1% 34.3%, 14.6% 14.6%, 34.3% 12.1%); animation: seal-turn 60s linear infinite; }
.age-seal.red::before { background-color: var(--red); }
.age-seal.gold::before { background-color: #2f4a37; }
.age-seal strong { font-family: 'Young Serif', serif; font-weight: 400; font-size: 2.3rem; line-height: 1; }
.age-seal span { font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
@keyframes seal-turn { to { rotate: 1turn; } }
@media (min-width: 761px) { .page-hero .wrap:has(.age-seal) > :is(h1, .lead) { padding-right: 180px; } }
@media (max-width: 760px) { .age-seal { position: relative; right: auto; top: auto; translate: none; width: 112px; margin-top: 20px; } .age-seal strong { font-size: 1.8rem; } }
/* Partners in the footer: logos on equal white tiles */
.partners { margin-top: 44px; }
.partner-logos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
footer .partner-logos a { display: grid; place-items: center; height: 76px; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s, translate .2s var(--ease); }
footer .partner-logos a:hover { border-color: var(--green); translate: 0 -2px; }
.partner-logos img { max-height: 44px; width: auto; max-width: 180px; }
.partner-logos img.dark-logo { filter: brightness(0); opacity: .8; } /* Hisar's logo is white on their site */
@media (max-width: 520px) { .partner-logos { display: grid; grid-template-columns: 1fr 1fr; } footer .partner-logos a { height: 64px; padding: 10px 14px; } .partner-logos img { max-width: 100%; max-height: 36px; } }
/* MB WAY: the quickest way to give from Portugal, so it spans the full row above the bank accounts */
.acct.mbway { grid-column: 1 / -1; }
/* Photo arches: the label is only for an empty arch; on a photo it is noise */
.arch:has(img)::after { content: none; }
/* Home: short donate call-to-action, buttons on the right */
.donate-cta .hero-actions { justify-content: flex-end; margin-top: 0; }
@media (max-width: 860px) { .donate-cta .hero-actions { justify-content: flex-start; } }
#homework .schedule { border-top: 0; } #homework .schedule .who-title { margin-top: 0; }
@media (max-width: 860px) { .split > div > .arch { max-width: 260px !important; } }
@media (max-width: 860px) { .page-hero .split > .arch { justify-self: start !important; margin-top: 8px; } }
.split > .arch { width: 100%; }
/* Footer map: small tile, the map opens out below the columns on click */
.fmap-tile { display: grid; place-items: center; align-content: center; gap: 6px; width: 100%; max-width: 230px; height: 104px; margin-top: 12px; border: 0; border-radius: 8px; background: var(--star) 0 0 / 40px 40px, var(--green); color: var(--cream); font: 500 .88rem Geist, sans-serif; cursor: pointer; transition: translate .2s var(--ease), background-color .2s; }
.fmap-tile:hover { translate: 0 -2px; background-color: #164a23; }
.fmap-tile svg { width: 26px; height: 26px; fill: currentColor; }
footer a.fmap-link { font-size: .85rem; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.footer-map { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease), margin-top .5s var(--ease); }
.footer-map > div { overflow: hidden; }
.footer-map.open { grid-template-rows: 1fr; margin-top: 32px; }
.footer-map .map { display: block; aspect-ratio: 16 / 6; }
@media (max-width: 760px) { .footer-map .map { aspect-ratio: 4 / 3; } }
/* Softer corners: buttons, chips and the language switch are pills; fields and cards get rounder corners */
.btn, .menu-btn, .lang, .chip, .copy { border-radius: 999px; }
.lang button:first-child { padding-left: 13px; } .lang button:last-child { padding-right: 13px; }
input, select, textarea, .sched-note, .ref-box, .form-note { border-radius: 10px; }
.opt > span, .bank-group, .sub a, .rows .ph, .cur { border-radius: 12px; }
.cur { border-radius: 999px; }
.form-card, .map, .fmap-tile, footer .partner-logos a, .float-card { border-radius: 16px; }
/* WhatsApp button: two soft rings ripple out now and then to draw the eye (off with reduced motion) */
.wa::before, .wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; pointer-events: none; animation: wa-ring 4s ease-out infinite; }
.wa::after { animation-delay: .6s; }
.wa:hover::before, .wa:hover::after { animation-play-state: paused; opacity: 0; }
@keyframes wa-ring { 0% { scale: 1; opacity: .7; } 45%, 100% { scale: 1.75; opacity: 0; } }
/* Programme rows: line icons on a soft green tile instead of photos */
.rows .ph.ic { display: grid; place-items: center; width: 108px; aspect-ratio: 5 / 6; border-radius: 999px 999px 14px 14px; background: var(--green-tint); box-shadow: inset 0 0 0 1px #d5e3d8; }
.rows .ph.ic::before { content: ""; position: absolute; inset: 0; background: url("pattern.svg") center / 64px 64px; opacity: .13; }
.rows .ph.ic img { position: relative; inset: auto; width: 78%; height: auto; margin-top: 12%; object-fit: contain; transition: scale .5s var(--ease), rotate .5s var(--ease); }
.rows a:hover .ph.ic img { scale: 1.1; rotate: -4deg; }
@media (max-width: 760px) { .rows .ph.ic { width: 76px; } }
/* Partner tiles: three equal tiles, logos scaled to the same visual size */
.partner-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 210px)); }
footer .partner-logos a { width: 100%; height: 84px; padding: 14px 18px; }
.partner-logos img { max-width: 100%; max-height: 40px; object-fit: contain; }
.partner-logos img.dark-logo { max-height: 34px; } /* very wide logo: a little lower so it does not look bigger */
@media (max-width: 520px) { .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } footer .partner-logos a { height: 60px; padding: 8px 10px; } .partner-logos img { max-height: 30px; } .partner-logos img.dark-logo { max-height: 24px; } }
.partner-logos img[src*="camlica"] { max-width: 78%; } /* solid colour bars look heavy at full width */
.partner-logos img[src*="hulpmedet"] { max-height: 50px; } @media (max-width: 520px) { .partner-logos img[src*="hulpmedet"] { max-height: 36px; } }
/* Language switch: a green pill slides under the chosen language; the page fades out, the new one fades in */
.lang { position: relative; isolation: isolate; }
.lang button { position: relative; z-index: 1; background: none !important; transition: color .3s; }
.lang button[aria-pressed="true"] { color: #fff; }
.lang-thumb { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; border-radius: 999px; background: var(--green); pointer-events: none; }
.lang.ready .lang-thumb { transition: translate .35s var(--ease), width .35s var(--ease); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--green); }
html.lang-leaving body > *:not(header) { opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s; }
body > main { animation: lang-in .45s var(--ease); }
@keyframes lang-in { from { opacity: 0; translate: 0 6px; } }
/* Language switch, Apple style: light track, white raised thumb that springs to the chosen language */
.lang { padding: 3px; gap: 0; border: 0; background: #ecebe5; }
.lang button + button { border-left: 0; }
.lang button { color: var(--ink-soft); font-weight: 500; }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang-thumb { top: 3px; bottom: 3px; background: #fff; box-shadow: 0 3px 8px rgb(0 0 0 / .12), 0 3px 1px rgb(0 0 0 / .04), 0 0 0 .5px rgb(0 0 0 / .04); }
.lang.ready .lang-thumb { transition: translate .5s cubic-bezier(.3, 1.35, .5, 1), width .5s cubic-bezier(.3, 1.35, .5, 1), scale .2s ease; }
.lang:active .lang-thumb { scale: .96; }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
/* Language switch: green thumb, draggable */
.lang-thumb { background: var(--green); box-shadow: 0 3px 8px rgb(23 48 31 / .25), 0 1px 2px rgb(23 48 31 / .2); }
.lang button[aria-pressed="true"] { color: #fff; }
.lang { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.lang.dragging { cursor: grabbing; }
.lang.dragging .lang-thumb { transition: none !important; scale: 1.06; }
/* Phone menu: three lines that turn into a cross */
.menu-btn { width: 44px; padding: 0; display: none; place-items: center; }
.burger { display: grid; gap: 5px; width: 20px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: translate .3s var(--ease), rotate .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { translate: 0 -7px; rotate: -45deg; }
@media (max-width: 1080px) { .menu-btn { display: grid; } }
@media (max-width: 400px) { .lang button { padding-inline: 9px; } .lang button:first-child { padding-left: 11px; } .lang button:last-child { padding-right: 11px; } }
/* Programme rows slide in one after another */
.js .rows.reveal > li { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.js .rows.reveal.in > li { opacity: 1; translate: none; }
.js .rows.reveal.in > li:nth-child(2) { transition-delay: .1s; }
.js .rows.reveal.in > li:nth-child(3) { transition-delay: .2s; }
.js .rows.reveal.in > li:nth-child(4) { transition-delay: .3s; }
.post-thumb img { transition: scale .5s var(--ease); } .post-item a:hover .post-thumb img { scale: 1.04; }
/* No page cross-fade: the old page's headline fading out while the new one slides in looked like a double animation. */
/* Printing: never print half-revealed content */
@media print { .js .reveal, .kinetic .w > span, .js .rows.reveal > li { opacity: 1 !important; transform: none !important; translate: none !important; } .wa, .lang, .menu-btn { display: none !important; } }

/* Kinetic headlines are hidden until main.js has split them into words (no plain-text flash before the slide-in); fallback shows them after 1.5s. */
.js .kinetic:not(.k-ready) { opacity: 0; animation: k-show 0s 1.5s forwards; } /* opacity, not visibility: innerText of a hidden heading is empty */
@keyframes k-show { to { opacity: 1; } }

/* legal pages (privacidade.html, aviso-legal.html) */
footer .legal a { display: inline; padding: 0; margin-left: 2px; text-decoration: underline; text-underline-offset: 3px; }
.legal-doc { max-width: 720px; }
.legal-doc h2 { font-size: 1.3rem; margin-top: 44px; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); margin-top: 10px; }
.legal-doc ul { margin-top: 8px; padding-left: 22px; color: var(--ink-soft); }
.legal-doc .tbl { overflow-x: auto; margin-top: 14px; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.legal-doc th { color: var(--ink-soft); font-size: .82rem; font-weight: 600; border-bottom-color: var(--ink); }
.legal-doc .todo { background: #f3d98a; color: #4a3a07; padding: 0 4px; border-radius: 3px; }
.legal-doc .draft { background: var(--tint); border-radius: 8px; padding: 14px 16px; margin-top: 22px; color: var(--ink-soft); }
