/* Youth Foundation — public website pages (home, content pages /p/<slug>, gallery). Redesign 2026-10-15.
   Uses the tokens of tokens.css; the shell (safety bar, header, drawer, footer, quick exit) is styled in app.css (yf-* classes).
   Logical properties throughout so Arabic (RTL) needs no overrides except gradient directions. */

/* ---------- type + section rhythm ---------- */
.yf-main { overflow-x: clip; min-height: 100vh; min-height: 100dvh; } /* the footer starts below the screen while a page loads (no jump, CLS) */
.yf-section { padding-block: clamp(56px, 8vw, 104px); }
.yf-section-tight { padding-block: clamp(40px, 6vw, 72px); }
.yf-surface { background: var(--surface); }
.yf-tint { background: var(--accent-soft); }
.yf-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .8125rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.yf-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--yf-gold); }
html[lang="ar"] .yf-eyebrow { letter-spacing: 0; text-transform: none; font-size: .9375rem; }
.yf-h2 { font-family: var(--yf-serif); font-size: clamp(1.75rem, 3.4vw, 2.625rem); line-height: 1.14; letter-spacing: -.01em; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
html[lang="ar"] .yf-h2 { letter-spacing: 0; line-height: 1.3; font-family: var(--font-ar); }
.yf-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--text-2); margin: 0 0 20px; }
.yf-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.yf-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.yf-head-row .yf-head { margin-bottom: 0; }
.yf-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--accent-strong); text-decoration: none; white-space: nowrap; }
.yf-more:hover { text-decoration: underline; }
.yf-more .icon { width: 18px; height: 18px; transition: transform .18s ease; }
.yf-more:hover .icon { transform: translateX(3px); }
html[dir="rtl"] .yf-more:hover .icon { transform: scaleX(-1) translateX(3px); }
.yf-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.yf-btns .btn { white-space: normal; text-align: center; }
.btn-light { background: #fff; border-color: #fff; color: var(--yf-ink); }
.btn-light:hover { background: #f7eef6; border-color: #f7eef6; color: var(--yf-ink); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-warm { background: linear-gradient(135deg, var(--yf-gold-btn), var(--yf-gold-2)); border-color: #c9a24a; color: var(--yf-gold-ink); }
.btn-warm:hover { background: linear-gradient(135deg, #d4ad4f, #ecd27c); border-color: #b18b36; color: var(--yf-gold-ink); }
.yf-on-dark :focus-visible { outline-color: #fff; }

/* ---------- media slots: photo when approved, branded placeholder otherwise (never a broken image) ---------- */
.yf-media { position: relative; overflow: hidden; background-color: #4a2150; isolation: isolate; }
.yf-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .5s ease; }
.yf-media > img.is-loaded { opacity: 1; }
.yf-ph { background-image:
    radial-gradient(120% 90% at 12% 8%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(90% 80% at 92% 100%, rgba(241, 217, 138, .34) 0%, rgba(241, 217, 138, 0) 55%),
    linear-gradient(140deg, #6e3a72 0%, #5b2a5e 50%, #3a1a3d 100%); }
.yf-ph[data-tone="sage"] { background-image: radial-gradient(120% 90% at 12% 8%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 45%), radial-gradient(90% 80% at 92% 100%, rgba(91, 42, 94, .5) 0%, rgba(91, 42, 94, 0) 55%), linear-gradient(140deg, #9a6f9c 0%, #7a4c7e 55%, #573259 100%); }
.yf-ph[data-tone="blue"] { background-image: radial-gradient(120% 90% at 12% 8%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 45%), radial-gradient(90% 80% at 92% 100%, rgba(241, 217, 138, .26) 0%, rgba(241, 217, 138, 0) 55%), linear-gradient(140deg, #4a2150 0%, #3a1a3d 55%, #24102a 100%); }
.yf-ph[data-tone="warm"] { background-image: radial-gradient(120% 90% at 12% 8%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 45%), radial-gradient(90% 80% at 92% 100%, rgba(91, 42, 94, .4) 0%, rgba(91, 42, 94, 0) 55%), linear-gradient(140deg, #d8b35a 0%, #b08a3a 55%, #7e5f22 100%); }
.yf-ph[data-tone="plum"] { background-image: radial-gradient(120% 90% at 12% 8%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 45%), radial-gradient(90% 80% at 92% 100%, rgba(241, 217, 138, .3) 0%, rgba(241, 217, 138, 0) 55%), linear-gradient(140deg, #835487 0%, #643468 55%, #45224a 100%); }
/* logo mark watermark (heart in a rounded square), shown only while there is no photo */
.yf-ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/brand/logo-mark.png") center / clamp(48px, 24%, 108px) no-repeat; opacity: .5; }
.yf-media.has-photo::after { display: none; }
.yf-ph-hero::after { background-position: 82% 50%; background-size: clamp(140px, 26vw, 340px); opacity: .3; }
html[dir="rtl"] .yf-ph-hero::after { background-position: 18% 50%; }

/* ---------- home: hero ---------- */
.yf-hero { position: relative; color: #fff; min-height: clamp(540px, 80vh, 720px); display: grid; align-items: center; isolation: isolate; }
.yf-hero > .yf-media { position: absolute; inset: 0; z-index: -2; }
.yf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(38, 14, 42, .86) 0%, rgba(38, 14, 42, .66) 42%, rgba(38, 14, 42, .18) 100%), linear-gradient(0deg, rgba(38, 14, 42, .55) 0%, rgba(38, 14, 42, 0) 40%); }
html[dir="rtl"] .yf-hero::before { background: linear-gradient(270deg, rgba(38, 14, 42, .86) 0%, rgba(38, 14, 42, .66) 42%, rgba(38, 14, 42, .18) 100%), linear-gradient(0deg, rgba(38, 14, 42, .55) 0%, rgba(38, 14, 42, 0) 40%); }
@media (max-width: 719px) { .yf-hero::before, html[dir="rtl"] .yf-hero::before { background: linear-gradient(0deg, rgba(38, 14, 42, .9) 0%, rgba(38, 14, 42, .7) 55%, rgba(38, 14, 42, .55) 100%); } }
.yf-hero-inner { padding-block: clamp(72px, 10vw, 120px) clamp(112px, 12vw, 152px); }
.yf-hero-copy { max-width: 640px; }
.yf-hero .yf-eyebrow { color: var(--yf-warm); }
.yf-hero h1 { color: #fff; font-family: var(--yf-serif); font-size: clamp(2.375rem, 5.8vw, 4.25rem); line-height: 1.06; letter-spacing: -.015em; font-weight: 700; margin: 0 0 22px; text-wrap: balance; }
html[lang="ar"] .yf-hero h1 { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.25; font-size: clamp(2.25rem, 5.4vw, 3.75rem); }
.yf-hero p.yf-hero-sub { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.6; color: rgba(255, 255, 255, .9); margin: 0 0 32px; max-width: 34em; }
.yf-hero .btn-lg { min-height: 54px; padding: 14px 28px; font-weight: 700; }
.yf-hero-note { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .82); }
.yf-hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.yf-hero-note .icon { width: 16px; height: 16px; color: var(--yf-warm); }

/* promise cards overlapping the hero */
.yf-promise { position: relative; z-index: 2; margin-top: clamp(-88px, -7vw, -56px); }
.yf-promise-grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); background: var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(42, 18, 48, .14); border: 1px solid var(--border); }
.yf-promise-item { background: var(--surface); padding: 26px 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-content: start; }
.yf-promise-item .yf-ico { grid-row: span 2; }
.yf-promise-item h2 { font-size: 1rem; margin: 2px 0 0; font-weight: 700; }
.yf-promise-item p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.yf-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
.yf-ico .icon { width: 22px; height: 22px; }

/* our story (split) */
.yf-split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .yf-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .yf-split.is-reverse > :first-child { order: 2; } }
.yf-story-photo { position: relative; padding: 0 0 22px 22px; }
html[dir="rtl"] .yf-story-photo { padding: 0 22px 22px 0; }
.yf-story-photo::before { content: ""; position: absolute; inset: 22px 22px 0 0; border-radius: 28px; background: linear-gradient(140deg, var(--accent-soft), var(--sage-soft)); border: 1px solid var(--border); }
html[dir="rtl"] .yf-story-photo::before { inset: 22px 0 0 22px; }
.yf-story-photo .yf-media { aspect-ratio: 4 / 3.4; border-radius: 24px; box-shadow: 0 24px 60px rgba(42, 18, 48, .18); }
.yf-story-badge { position: absolute; inset-inline-end: -4px; bottom: 0; z-index: 2; background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: 280px; border: 1px solid var(--border); }
.yf-story-badge strong { display: block; font-size: 1.5rem; line-height: 1; color: var(--accent-strong); }
.yf-story-badge span { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.35; }
.yf-prose-lg p { font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }

/* impact band */
.yf-impact { background: var(--yf-deep); color: var(--yf-on-deep); position: relative; overflow: hidden; }
.yf-impact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(226, 191, 120, .16), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(255, 255, 255, .07), transparent 60%); pointer-events: none; }
.yf-impact .container { position: relative; }
.yf-impact .yf-eyebrow { color: var(--yf-warm); }
.yf-impact .yf-h2 { color: #fff; }
.yf-stats { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 40px 0 0; padding: 0; list-style: none; }
.yf-stats li { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 22px; }
.yf-stats strong { display: block; font-size: clamp(2.25rem, 4.6vw, 3.25rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 12px; }
html[lang="ar"] .yf-stats strong { letter-spacing: 0; }
.yf-stats span { display: block; font-size: .9375rem; line-height: 1.55; color: var(--yf-on-deep-2); max-width: 26ch; }

/* image cards (our work, page cards with images) */
.yf-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.yf-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; height: 100%; }
.yf-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: 0 22px 48px rgba(42, 18, 48, .14); border-color: var(--border-strong); }
.yf-card .yf-media { aspect-ratio: 4 / 3; }
.yf-card:hover .yf-media > img { transform: scale(1.04); }
.yf-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.yf-card-body h3 { margin: 0; font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.yf-card-body p { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.yf-card-body .yf-more { margin-top: auto; padding-top: 10px; }
.yf-card:focus-visible { outline-offset: 4px; }

/* videos */
.yf-dark { background: var(--yf-ink); color: var(--yf-on-deep-2); }
.yf-dark .yf-h2, .yf-dark h3 { color: #fff; }
.yf-dark .yf-lead { color: var(--yf-on-deep-2); }
.yf-dark .yf-eyebrow { color: var(--yf-warm); }
.yf-dark .yf-more { color: #fff; }
.yf-videos { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.yf-video { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.yf-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.yf-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.yf-video-play { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; border: 0; padding: 0; background: linear-gradient(0deg, rgba(38, 14, 42, .45), rgba(38, 14, 42, .05)); cursor: pointer; color: #fff; }
.yf-video-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 18px; }
/* see-through play button: the logo behind it stays visible; a white ring and arrow keep it clear on any background */
.yf-play { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .9); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transition: transform .2s ease, background-color .2s ease; }
.yf-play svg { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.yf-video-play:hover .yf-play, .yf-video-play:focus-visible .yf-play { background: rgba(255, 255, 255, .24); }
.yf-play svg { width: 26px; height: 26px; margin-inline-start: 4px; }
html[dir="rtl"] .yf-play svg { margin-inline-start: 0; margin-inline-end: 4px; transform: none; }
.yf-video-play:hover .yf-play { transform: scale(1.08); }
.yf-video-tag { position: absolute; inset-inline-start: 14px; bottom: 12px; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .9); background: rgba(38, 14, 42, .55); padding: 4px 10px; border-radius: 999px; }
.yf-video h3 { margin: 0; font-size: 1.0625rem; line-height: 1.4; font-weight: 650; }
.yf-video p { margin: 0; font-size: var(--fs-sm); }
.yf-yt-note { margin: 22px 0 0; font-size: var(--fs-sm); display: flex; gap: 8px; align-items: center; }
.yf-yt-note .icon { width: 16px; height: 16px; flex: none; }

/* gallery strip */
.yf-strip { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .yf-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.yf-strip .yf-media { aspect-ratio: 4 / 3; border-radius: 16px; }
.yf-strip .yf-media:hover > img { transform: scale(1.04); }

/* need help now */
.yf-help-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .yf-help-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.yf-lines { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.yf-line { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--text); }
.yf-line:hover { border-color: var(--accent); color: var(--text); box-shadow: var(--shadow); }
.yf-line .yf-ico { background: var(--accent); color: #fff; }
.yf-line strong { display: block; font-size: 1.25rem; letter-spacing: .01em; }
.yf-line span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.yf-line .grow { min-width: 0; }
.yf-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(22px, 3.4vw, 36px); box-shadow: 0 18px 48px rgba(42, 18, 48, .08); }
.yf-panel h3 { font-size: 1.25rem; margin: 0 0 18px; }
.yf-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.yf-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 14px; counter-increment: step; }
.yf-steps li::before { content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 750; display: grid; place-items: center; font-size: .9375rem; }
.yf-steps strong { font-size: 1rem; }
.yf-steps span { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.yf-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: var(--fs-sm); color: var(--text-2); margin: 0 0 12px; }
.yf-note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.yf-note p { margin: 0; }

/* get involved */
.yf-involve { position: relative; overflow: hidden; border-radius: 28px; color: #fff; isolation: isolate; }
.yf-involve > .yf-media { position: absolute; inset: 0; z-index: -2; }
.yf-involve::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(42, 18, 48, .92) 0%, rgba(74, 33, 80, .84) 55%, rgba(74, 33, 80, .55) 100%); }
html[dir="rtl"] .yf-involve::before { background: linear-gradient(260deg, rgba(42, 18, 48, .92) 0%, rgba(74, 33, 80, .84) 55%, rgba(74, 33, 80, .55) 100%); }
.yf-involve > .yf-ph::after { display: none; }
.yf-involve-inner { padding: clamp(32px, 6vw, 72px); display: grid; gap: 32px; }
@media (min-width: 980px) { .yf-involve-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; } }
.yf-involve .yf-h2 { color: #fff; }
.yf-involve .yf-lead { color: rgba(255, 255, 255, .86); margin: 0; }
.yf-involve .yf-eyebrow { color: var(--yf-warm); }
.yf-ways { display: grid; gap: 12px; }
.yf-way { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; backdrop-filter: blur(4px); transition: background .2s ease, transform .2s ease; }
.yf-way:hover { background: rgba(255, 255, 255, .18); color: #fff; transform: translateX(3px); }
html[dir="rtl"] .yf-way:hover { transform: translateX(-3px); }
.yf-way > .icon { width: 26px; height: 26px; color: var(--yf-warm); flex: none; }
.yf-way .grow { display: grid; gap: 2px; }
.yf-way strong { font-size: 1.0625rem; }
.yf-way .grow span { font-size: var(--fs-sm); color: rgba(255, 255, 255, .8); line-height: 1.5; }
.yf-way > .yf-way-go { width: 20px; height: 20px; color: #fff; opacity: .7; }
.yf-way:focus-visible { outline-color: #fff; }

/* partners */
.yf-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px clamp(28px, 5vw, 64px); list-style: none; margin: 0; padding: 0; }
.yf-partners li { display: grid; place-items: center; height: 72px; min-width: 96px; }
.yf-partners img { max-height: 64px; max-width: 160px; width: auto; height: auto; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.yf-partners li:hover img, .yf-partners li:focus-within img { filter: none; opacity: 1; }
.yf-partners-label { text-align: center; margin: 0 0 28px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .yf-partners-label { letter-spacing: 0; text-transform: none; }

/* ---------- content pages (/p/<slug>) ---------- */
.pg-banner { position: relative; color: #fff; isolation: isolate; min-height: clamp(280px, 38vw, 440px); display: grid; align-items: end; }
.pg-banner > .yf-media { position: absolute; inset: 0; z-index: -2; }
.pg-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(38, 14, 42, .88) 0%, rgba(38, 14, 42, .58) 48%, rgba(38, 14, 42, .42) 100%); } /* D-48: top .2 → .42 so breadcrumbs stay 4.5:1 on bright photos */
.pg-banner.is-plain { min-height: clamp(240px, 28vw, 340px); }
.pg-banner.is-plain::before { background: linear-gradient(0deg, rgba(38, 14, 42, .35) 0%, rgba(38, 14, 42, 0) 70%); }
.pg-banner-inner { padding-block: 40px clamp(36px, 5vw, 56px); }
.pg-banner h1 { color: #fff; font-family: var(--yf-serif); font-size: clamp(2.125rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0; max-width: 20ch; text-wrap: balance; overflow-wrap: anywhere; }
html[lang="ar"] .pg-banner h1, .pg-banner h1[dir="rtl"] { letter-spacing: 0; line-height: 1.3; font-family: var(--font-ar); }
.pg-banner .pg-kicker { margin: 14px 0 0; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 46em; overflow-wrap: anywhere; }
.pg-crumbs { margin: 0 0 18px; }
.pg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-sm); color: rgba(255, 255, 255, .94); } /* D-48: .8 measured 3.6:1 on the lightest banner area */
.pg-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.pg-crumbs li + li::before { content: "/"; opacity: .55; }
.pg-crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.pg-crumbs a:hover { text-decoration: underline; }
.pg-crumbs :focus-visible { outline-color: #fff; }
.pg-preview { background: var(--warn-soft); border-bottom: 1px solid var(--warn); color: var(--text); padding: 10px 16px; text-align: center; font-size: var(--fs-sm); }

.pg-layout { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 72px) 24px; }
.pg-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .pg-layout.has-toc { grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 64px; } }
.pg-content { max-width: 760px; width: 100%; margin-inline: auto; min-width: 0; }
.pg-layout.has-toc .pg-content { margin-inline: 0; }
.pg-toc { font-size: var(--fs-sm); }
.pg-toc-inner { position: sticky; top: calc(var(--yf-header-h) + 24px); max-height: calc(100vh - var(--yf-header-h) - 48px); overflow-y: auto; padding-inline-end: 4px; }
.pg-toc h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
html[lang="ar"] .pg-toc h2 { text-transform: none; letter-spacing: 0; font-size: .875rem; }
.pg-toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--border); display: grid; }
.pg-toc a { display: block; padding: 7px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--text-2); text-decoration: none; line-height: 1.4; }
.pg-toc a:hover { color: var(--accent-strong); }
.pg-toc a.is-active { color: var(--accent-strong); border-inline-start-color: var(--accent); font-weight: 650; }
.pg-toc-mobile { margin: 0 0 32px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.pg-toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pg-toc-mobile summary::-webkit-details-marker { display: none; }
.pg-toc-mobile summary::after { content: "+"; font-size: 1.25rem; color: var(--accent-strong); }
.pg-toc-mobile[open] summary::after { content: "\2212"; }
.pg-toc-mobile ol { margin: 0; padding: 0 18px 14px 36px; display: grid; gap: 6px; }
html[dir="rtl"] .pg-toc-mobile ol { padding: 0 36px 14px 18px; }
.pg-toc-mobile a { text-decoration: none; }
@media (min-width: 1100px) { .pg-toc-mobile { display: none; } }
@media (max-width: 1099px) { .pg-toc { display: none; } }

.pg-lead { font-size: clamp(1.125rem, 1.9vw, 1.3125rem); line-height: 1.7; color: var(--text); margin: 0 0 8px; }
.pg-lead p { margin: 0 0 16px; }
.pg-lead strong { font-weight: 600; }
.pg-section { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: calc(var(--yf-header-h) + 20px); min-width: 0; }
.pg-section:first-child { margin-top: 0; }
.pg-section > h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 750; margin: 0 0 20px; padding-top: 4px; overflow-wrap: anywhere; text-wrap: balance; }
html[lang="ar"] .pg-section > h2, .pg-section > h2[dir="rtl"] { letter-spacing: 0; }
.pg-section > h2::before { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--yf-plum), var(--yf-gold)); margin-bottom: 16px; }
.pg-section h3 { font-size: 1.25rem; margin: 28px 0 10px; line-height: 1.35; overflow-wrap: anywhere; }
.pg-section h4 { font-size: 1.0625rem; margin: 22px 0 8px; overflow-wrap: anywhere; }
.pg-section > :first-child, .pg-section > h2 + * { margin-top: 0; }
.pg-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); overflow-wrap: anywhere; }
.pg-prose > :last-child { margin-bottom: 0; }
.pg-prose + .pg-prose { margin-top: 16px; }
.pg-prose p { margin: 0 0 16px; }
.pg-prose strong, .pg-prose b { color: var(--text); font-weight: 650; }
.pg-prose ul, .pg-prose ol { padding-inline-start: 24px; margin: 0 0 18px; }
.pg-prose li { margin: 0; padding-inline-start: 4px; }
.pg-prose li + li { margin-top: 8px; }
.pg-prose li::marker { color: var(--accent); }
.pg-prose blockquote { margin: 24px 0; padding: 20px 24px; border-inline-start: 4px solid var(--accent); background: var(--surface); border-radius: 0 16px 16px 0; font-size: 1.125rem; color: var(--text); }
html[dir="rtl"] .pg-prose blockquote { border-radius: 16px 0 0 16px; }
.pg-prose h2, .pg-prose h3, .pg-prose h4 { color: var(--text); margin: 24px 0 10px; line-height: 1.35; }
.pg-prose h2 { font-size: 1.375rem; } .pg-prose h3 { font-size: 1.1875rem; } .pg-prose h4 { font-size: 1.0625rem; }
.pg-prose a, .pg-list a { color: var(--accent-strong); font-weight: 550; }
.tc { text-transform: capitalize; }

/* images: constrained, rounded, captioned; a single image next to the following text alternates sides on wide screens */
.pg-figure { margin: 28px 0; }
.pg-figure img { display: block; max-width: 100%; width: auto; height: auto; max-height: 460px; margin-inline: auto; border-radius: 18px; background: var(--surface-2); }
.pg-figure figcaption, .pg-gallery figcaption, .pg-media figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.pg-figure.is-logo img { max-height: 140px; border-radius: 8px; background: none; }
.pg-media { display: grid; gap: 20px 32px; margin: 28px 0; align-items: start; }
.pg-media figure { margin: 0; }
.pg-media figure img { display: block; max-width: 100%; height: auto; width: auto; max-height: 380px; border-radius: 18px; margin-inline: auto; background: var(--surface-2); }
.pg-media .pg-media-text > :first-child { margin-top: 0; }
@media (min-width: 760px) {
  .pg-media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pg-media.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .pg-media.is-flip figure { order: 2; }
  .pg-media figure img { margin-inline: 0; }
  .pg-media.is-small { grid-template-columns: 180px minmax(0, 1fr); }
  .pg-media.is-small.is-flip { grid-template-columns: minmax(0, 1fr) 180px; }
}
.pg-media.is-small figure img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; max-height: none; }
figure.is-pending { outline: 3px dashed var(--warn); outline-offset: 4px; border-radius: 18px; }
.pg-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 28px 0; }
.pg-gallery figure { margin: 0; }
.pg-gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.pg-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.pg-gallery button:hover img { transform: scale(1.04); }
.pg-gallery button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pg-cards img { aspect-ratio: auto; object-fit: contain; border-radius: 14px; background: var(--surface-2); }
.pg-cards a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 14px; }

.pg-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 24px 0; }
@media (min-width: 560px) { .pg-cards.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.pg-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(42, 18, 48, .1); border-color: var(--accent); }
.pg-card h3 { margin: 0 !important; font-size: 1.0625rem; line-height: 1.35; }
.pg-card p { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.6; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pg-card .yf-more { margin-top: auto; padding-top: 8px; font-size: .9375rem; }
.pg-stats { list-style: none; margin: 28px 0; padding: clamp(22px, 3vw, 32px); display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); background: var(--yf-deep); border-radius: 22px; color: var(--yf-on-deep-2); }
.pg-stats strong { display: block; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.05; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 8px; overflow-wrap: anywhere; }
.pg-stats span { font-size: var(--fs-sm); line-height: 1.5; display: block; }
.pg-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.pg-btns .btn { white-space: normal; text-align: center; }
.pg-faq { display: grid; gap: 10px; margin: 24px 0; }
.pg-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s ease; }
.pg-faq details[open] { border-color: var(--accent); }
.pg-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 650; list-style: none; display: flex; gap: 16px; justify-content: space-between; align-items: center; min-height: 56px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-size: 1.125rem; line-height: 1; }
.pg-faq details[open] summary::after { content: "\2212"; }
.pg-faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 14px; }
.pg-faq .ans { padding: 0 20px 18px; font-size: 1rem; }
.pg-videos { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 28px 0; }
.pg-cta-inline { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px 24px; margin: 28px 0; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 18px; }
.pg-cta-inline h3 { margin: 0 0 4px !important; font-size: 1.0625rem; }
.pg-cta-inline p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.pg-cta-inline .grow { min-width: 200px; }
.pg-table { margin: 24px 0; }
.pg-table td, .pg-table th { text-align: start; overflow-wrap: anywhere; }
.pg-list { margin: 0 0 18px; padding-inline-start: 24px; display: grid; gap: 8px; font-size: 1.0625rem; color: var(--text-2); }
.pg-list li::marker { color: var(--accent); }
.pg-end { margin-top: clamp(48px, 7vw, 88px); }
.pg-end .yf-involve-inner { grid-template-columns: 1fr; }
@media (min-width: 900px) { .pg-end .yf-involve-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.pg-notfound { text-align: center; padding-block: 96px; display: grid; gap: 16px; justify-items: center; }
.pg-notfound h1 { margin: 0; }
/* public 404 page (/public/404.html) */
.nf { padding-block: clamp(48px, 9vw, 96px); }
.nf .yf-btns { justify-content: center; }
.nf .yf-lead { max-width: 40rem; margin: 0; }
.nf-old { width: 100%; max-width: 36rem; margin-top: 8px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.nf-old h2 { font-size: var(--fs-md); margin: 0 0 6px; }
.nf-old p { margin: 0 0 8px; color: var(--text-2); }
.nf-old .nf-old-url { margin: 0; font-weight: 650; overflow-wrap: anywhere; word-break: break-word; }
.nf-more { margin: 4px 0 0; color: var(--text-2); }
.pg-loading { padding-block: 0; }
/* SEO-07 (layout shift, Lighthouse 2026-11-20: CLS 0.48–0.77 on /n/<slug>): a served article brings its "Related reading" links after
   #pg-root (api/src/functions/sitehead.js) for crawlers and readers without scripts. While the page script draws the article, its
   loading place keeps a screen of height, so those links (and the footer) start below the fold and never jump down on screen. Only
   while scripts run: without them, the links follow straight after. */
@media (scripting: enabled) {
  body[data-page="article"] #pg-root > .pg-loading { min-height: 100vh; }
}
/* Q-2b: the page's shape while its content comes (never a blank page with "Loading…") */
.pg-sk { height: 1.05rem; border-radius: 6px; margin-block: 14px; max-width: 46em; background: linear-gradient(90deg, rgba(91, 33, 92, .08) 25%, rgba(91, 33, 92, .15) 50%, rgba(91, 33, 92, .08) 75%) 0 0 / 200% 100%; animation: pg-sk 1.4s ease-in-out infinite; }
.pg-sk-short { max-width: 28em; }
.pg-sk-h1 { height: clamp(2.125rem, 5vw, 3.5rem); max-width: 14em; background: rgba(255, 255, 255, .28); animation: none; }
.pg-sk-body { padding-block: 40px 96px; }
@keyframes pg-sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .pg-sk { animation: none; } }

/* ---------- gallery page ---------- */
.gl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.gl-chips button { min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.gl-chips button:hover { border-color: var(--accent); color: var(--accent-strong); }
.gl-chips button[aria-pressed="true"] { background: var(--yf-deep); border-color: var(--yf-deep); color: #fff; }
.gl-grid { columns: 3 280px; column-gap: 16px; }
.gl-item { break-inside: avoid; margin: 0 0 16px; }
.gl-item button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); border-radius: 16px; overflow: hidden; cursor: zoom-in; position: relative; }
.gl-item img { display: block; width: 100%; height: auto; transition: transform .45s ease; }
.gl-item button:hover img { transform: scale(1.03); }
.gl-item button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gl-item figcaption { padding: 8px 4px 0; font-size: var(--fs-sm); color: var(--muted); }
.gl-item figcaption strong { color: var(--text); display: block; }
.gl-count { font-size: var(--fs-sm); color: var(--muted); margin: -12px 0 20px; }

/* lightbox (native <dialog>: focus stays inside, Esc closes) */
.yf-lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(24, 10, 26, .94); color: #fff; }
.yf-lb::backdrop { background: rgba(24, 10, 26, .94); }
.yf-lb-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.yf-lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 12px; }
.yf-lb-count { font-size: var(--fs-sm); color: rgba(255, 255, 255, .75); }
.yf-lb-stage { display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.yf-lb-stage img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.yf-lb-cap { text-align: center; padding: 14px 18px 22px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); min-height: 52px; }
.yf-lb button { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.yf-lb button:hover { background: rgba(255, 255, 255, .18); }
.yf-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.yf-lb button .icon { width: 22px; height: 22px; }
.yf-lb-prev, .yf-lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.yf-lb-prev { inset-inline-start: 12px; } .yf-lb-next { inset-inline-end: 12px; }
@media (max-width: 719px) { .yf-lb-stage { padding: 0 8px; } .yf-lb-prev, .yf-lb-next { top: auto; bottom: 14px; transform: none; } .yf-lb-cap { padding-inline: 72px; } }

@media (prefers-reduced-motion: reduce) { .yf-card:hover, .yf-way:hover, a.pg-card:hover { transform: none; } }
@media (max-width: 719px) {
  .gl-grid { columns: 2 140px; column-gap: 10px; }
  .gl-item { margin-bottom: 10px; }
  .gl-item button { border-radius: 12px; }
  .yf-ph-hero::after { display: none; }
}

/* ---------- home rebuild (D-27): our work in the UK (text + photo mosaic), services, six areas, vision + spotlight ---------- */
.yf-act { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .yf-act { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.yf-pillars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.yf-pillars li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.yf-pillars strong { display: block; font-size: 1.0625rem; margin-bottom: 2px; }
.yf-pillars span:not(.yf-ico) { display: block; color: var(--text-2); font-size: .9375rem; line-height: 1.55; }
.yf-act-close { margin: 18px 0 0; font-weight: 650; color: var(--accent-strong); }
.yf-mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 180px); }
.yf-mosaic > :first-child { grid-column: 1 / -1; grid-row: span 2; }
@media (min-width: 700px) { .yf-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); } .yf-mosaic > :first-child { grid-column: span 2; } }
.yf-mosaic > .yf-media, .yf-mosaic-item { border-radius: 18px; overflow: hidden; min-height: 0; }
.yf-mosaic-item { display: block; padding: 0; border: 0; cursor: zoom-in; background: none; position: relative; }
.yf-mosaic-item > .yf-media { position: absolute; inset: 0; }
.yf-mosaic-item:hover .yf-media > img { transform: scale(1.04); }
.yf-mosaic-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.yf-mosaic-more { margin: 20px 0 0; text-align: end; }
.yf-svc { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.yf-svc-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); text-decoration: none; color: var(--text); border-top: 3px solid var(--yf-gold); transition: transform .2s ease, box-shadow .2s ease; }
.yf-svc-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(42, 18, 48, .12); }
.yf-svc-card h3 { margin: 4px 0 0; font-size: 1.1875rem; }
.yf-svc-card p { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.6; }
.yf-svc-card .yf-more { margin-top: auto; padding-top: 6px; }
.yf-offer { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: offer; }
.yf-offer li { counter-increment: offer; position: relative; padding: 22px 22px 22px 76px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
html[dir="rtl"] .yf-offer li { padding: 22px 76px 22px 22px; }
.yf-offer li::before { content: counter(offer, decimal-leading-zero); position: absolute; inset-inline-start: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--yf-plum); color: var(--yf-gold-2); font-weight: 750; font-size: .875rem; }
.yf-offer strong { display: block; font-size: 1.0625rem; margin-bottom: 4px; }
.yf-offer span { color: var(--text-2); font-size: .9375rem; line-height: 1.55; }
.yf-vision { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .yf-vision { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; } }
.yf-ways-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.yf-ways-list li { padding-inline-start: 18px; border-inline-start: 3px solid var(--yf-gold); }
.yf-ways-list strong { display: block; }
.yf-ways-list span { color: var(--text-2); font-size: .9375rem; }
.yf-spotlight { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(24px, 3.5vw, 36px); background: linear-gradient(150deg, #5b2a5e 0%, #3a1a3d 100%); color: var(--yf-on-deep-2); box-shadow: 0 24px 60px rgba(42, 18, 48, .2); }
.yf-spotlight::after { content: ""; position: absolute; width: 180px; height: 180px; inset-inline-end: -40px; bottom: -40px; background: url("/assets/brand/logo-mark.png") center / contain no-repeat; opacity: .18; }
.yf-spotlight .yf-eyebrow { color: var(--yf-gold-2); }
.yf-spotlight h3 { color: #fff; font-family: var(--yf-serif); font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.25; margin: 0 0 12px; }
html[lang="ar"] .yf-spotlight h3 { font-family: var(--font-ar); }
.yf-spotlight p { margin: 0 0 20px; line-height: 1.65; position: relative; z-index: 1; }
.yf-spotlight .btn { position: relative; z-index: 1; }
.yf-spotlight :focus-visible { outline-color: #fff; }
/* Spotlight hero with its photo (GET public/spotlight) */
.yf-spot-media { margin: calc(-1 * clamp(24px, 3.5vw, 36px)) calc(-1 * clamp(24px, 3.5vw, 36px)) 20px; position: relative; z-index: 1; }
.yf-spot-media img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: center 20%; }
.yf-spot-media figcaption { font-size: .75rem; line-height: 1.4; padding: 6px clamp(24px, 3.5vw, 36px) 0; color: var(--yf-on-deep-2); opacity: .8; }
.yf-spotlight #spot-body p { margin: 0 0 14px; }
.yf-spotlight #spot-body a { color: var(--yf-gold-2); text-decoration: underline; text-underline-offset: 2px; }
.yf-spotlight #spot-body strong { color: #fff; }
.yf-spotlight.has-spotlight .yf-btns { margin-top: 20px; }
.yf-impact { background: linear-gradient(140deg, #3a1a3d 0%, #2a1230 100%); }

/* ---------- donate page (/public/donate.html, D-24) ---------- */
.dn-banner { min-height: clamp(260px, 30vw, 380px); }
.dn-layout { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .dn-layout { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); } .dn-card { position: sticky; top: calc(var(--yf-header-h) + 20px); } }
.dn-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--yf-gold); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 24px 60px rgba(42, 18, 48, .12); margin-top: clamp(-96px, -6vw, -40px); position: relative; z-index: 2; }
.dn-title { font-family: var(--yf-serif); font-size: 1.5rem; margin: 0 0 16px; }
html[lang="ar"] .dn-title { font-family: var(--font-ar); }
.dn-state { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--yf-plum-soft); margin-bottom: 18px; }
.dn-state h2 { font-size: 1.125rem; margin: 0 0 4px; }
.dn-state p { margin: 0; color: var(--text-2); }
.dn-state.is-soft { background: var(--surface-2); }
.dn-freq { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 0; padding: 4px; margin: 0 0 18px; background: var(--surface-2); border-radius: 999px; }
.dn-freq label, .dn-amounts label { position: relative; cursor: pointer; }
.dn-freq input, .dn-amounts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dn-freq span { display: block; text-align: center; padding: 10px 12px; border-radius: 999px; font-weight: 650; color: var(--text-2); min-height: 44px; line-height: 24px; }
.dn-freq input:checked + span { background: var(--yf-plum); color: #fff; box-shadow: var(--shadow); }
.dn-freq input:focus-visible + span, .dn-amounts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.dn-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 14px; }
.dn-legend { font-weight: 650; margin-bottom: 10px; padding: 0; }
.dn-amounts span { display: grid; place-items: center; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--border-strong); font-size: 1.125rem; font-weight: 750; color: var(--text); background: var(--surface); }
.dn-amounts label:hover span { border-color: var(--accent); }
.dn-amounts input:checked + span { border-color: var(--yf-plum); background: var(--yf-plum-soft); color: var(--yf-plum-text); box-shadow: inset 0 0 0 1px var(--yf-plum); }
.dn-other span { font-size: 1rem; }
.dn-pound { display: flex; align-items: center; gap: 8px; }
.dn-pound span { font-weight: 750; font-size: 1.125rem; }
.dn-monthly-note { font-size: var(--fs-sm); color: var(--text-2); background: var(--yf-plum-tint); border-inline-start: 3px solid var(--yf-gold); padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.dn-giftaid { border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin: 0 0 16px; background: var(--yf-plum-tint); }
.dn-giftaid .choice small { display: block; color: var(--muted); }
.dn-declaration { font-size: var(--fs-sm); color: var(--text-2); margin: 12px 0; line-height: 1.55; }
.dn-grid { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.dn-error { color: var(--danger); font-weight: 600; margin: 0 0 12px; }
.dn-secure { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); margin: 14px 0 0; }
.dn-secure .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.dn-why { display: grid; gap: clamp(36px, 5vw, 56px); min-width: 0; }
.dn-three { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.dn-three li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.dn-three h3 { margin: 0 0 4px; font-size: 1.1875rem; color: var(--yf-plum-text); }
.dn-three p { margin: 0; color: var(--text-2); line-height: 1.6; }
.dn-num { width: 40px; height: 40px; border-radius: 50%; background: var(--yf-plum); color: var(--yf-gold-2); display: grid; place-items: center; font-weight: 800; }
.dn-intl { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.dn-intl h2, .dn-other-ways h2 { font-size: 1.25rem; margin: 0 0 10px; }
.dn-intl p { margin: 0; color: var(--text-2); line-height: 1.65; }
@media (max-width: 999px) { .dn-card { margin-top: -40px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dn-amounts input:checked + span { color: var(--accent-strong); background: var(--accent-soft); } :root:not([data-theme="light"]) .dn-three h3 { color: var(--accent-strong); } }

/* ---------- /p/team cards, /p/partners logo wall, "photos from this page" ---------- */
.pg-team { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pg-person { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 18px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pg-person-photo { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; margin-bottom: 10px; background: linear-gradient(140deg, #6e3a72, #3a1a3d); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--yf-gold); display: grid; place-items: center; }
.pg-person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-person-initials { color: var(--yf-gold-2); font-weight: 750; font-size: 1.75rem; }
.pg-person h3 { margin: 0 !important; font-size: 1.125rem; }
.pg-person-role { margin: 0; color: var(--accent-strong); font-weight: 650; font-size: .9375rem; }
.pg-person-bio { margin-top: 8px; width: 100%; text-align: start; }
.pg-person-bio summary { cursor: pointer; text-align: center; font-weight: 650; color: var(--accent-strong); font-size: var(--fs-sm); min-height: 32px; }
.pg-person-bio .pg-prose { font-size: .9375rem; margin-top: 8px; }
.pg-logowall { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pg-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--text); text-align: center; }
a.pg-logo:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.pg-logo-img { height: 84px; display: grid; place-items: center; width: 100%; }
.pg-logo-img img { max-height: 84px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.pg-logo-name { font-size: var(--fs-sm); font-weight: 600; color: #3f2a44; line-height: 1.4; }
.pg-extras { border-top: 1px solid var(--border); padding-top: clamp(28px, 4vw, 44px); }
.pg-help { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--yf-plum-soft); border: 1px solid color-mix(in srgb, var(--yf-plum) 18%, transparent); margin-bottom: clamp(40px, 6vw, 72px); }
.pg-help .grow { flex: 1 1 280px; min-width: 0; }
.pg-help h2 { margin: 0 0 4px; font-family: var(--yf-serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: var(--yf-plum-text); }
html[lang="ar"] .pg-help h2 { font-family: var(--font-ar); }
.pg-help p { margin: 0; color: var(--text-2); }

/* ---------- website forms re-published from the old site (public-form.js: /p/<slug> inline, /f/<key>, staff preview) ---------- */
.pg-form { margin: 32px 0; }
.wf { position: relative; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--yf-gold); border-radius: 22px; padding: clamp(20px, 3.4vw, 36px); box-shadow: 0 18px 48px rgba(42, 18, 48, .08); min-width: 0; }
.wf-title { font-family: var(--yf-serif); font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.25; margin: 0 0 10px; }
html[lang="ar"] .wf-title, .wf[lang="ar"] .wf-step-title, .wf[lang="fa"] .wf-step-title { font-family: var(--font-ar); }
.wf-preview { margin: 0 0 12px; }
.wf-intro { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9375rem; margin: 0 0 18px; }
.wf-intro .icon, .wf-privacy .icon { width: 16px; height: 16px; flex: none; }
.wf-progress { margin-bottom: 20px; }
.wf-progress .steps { margin-bottom: 8px; }
.wf-step { min-width: 0; }
.wf-step > .wf-step-title { font-family: var(--yf-serif); font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.wf-step-title:focus { outline: none; }
.wf-fields > * + * { margin-top: 20px; }
.wf-fields > .field + .field { margin-top: 20px; }
.wf-field legend { font-size: var(--fs-base, 1rem); font-weight: 650; margin-bottom: 8px; }
.wf-req { color: var(--danger); margin-inline-start: 2px; font-weight: 700; }
.wf-label { font-weight: 650; margin: 0; }
.wf .choice span { overflow-wrap: anywhere; min-width: 0; }
.wf-field.field-error .choice, .wf-field.field-error .select, .wf-field.field-error .input, .wf-field.field-error .textarea { border-color: var(--danger); }
.wf-info { padding: 14px 18px; border-radius: 14px; background: var(--yf-plum-soft); color: var(--text); font-size: .9375rem; overflow-wrap: anywhere; }
.wf-info p { margin: 0; } .wf-info p + p { margin-top: 8px; }
.wf-info h3, .wf-info h4, .wf-info h5 { font-family: var(--yf-serif); font-size: 1.125rem; margin: 0; }
.wf-info h3 + p, .wf-info h4 + p { margin-top: 6px; color: var(--text-2); }
.wf-info hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.wf-info:has(> div > hr:only-child) { background: none; padding: 0; }
.wf-urgent { display: flex; gap: 12px; align-items: center; background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.wf-urgent > .icon { width: 22px; height: 22px; color: var(--danger); flex: none; }
.wf-urgent h5, .wf-urgent strong { color: var(--danger); font-size: 1.125rem; }
.wf-multi { min-height: 168px; padding-block: 6px; }
.wf-file { padding: 9px 10px; }
.wf-privacy { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .875rem; margin: 22px 0 0; }
.wf-privacy .icon { margin-top: 3px; }
.wf-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wf-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.wf-nav [data-wf-next], .wf-nav [data-wf-submit] { margin-inline-start: auto; min-width: 140px; justify-content: center; }
.wf-send-err { margin: 12px 0 0; }
.wf-summary { margin-bottom: 18px; }
.wf-summary ul { margin: 6px 0 0; padding-inline-start: 20px; }
.wf-summary p { margin: 0; }
.wf-done:focus { outline: none; }
.wf-done h3 { margin: 0 0 6px; }
.wf-codes { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; }
.wf-codes dt { color: var(--text-2); }
.wf-codes dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.wf-card-h { font-size: var(--fs-md); margin: 0 0 6px; }
.wf-big { font-size: var(--fs-lg); font-weight: 650; }
.wf-wrap { overflow-wrap: anywhere; }
.wf-closed .card { min-width: 0; }
.wf-page { padding-bottom: clamp(40px, 6vw, 72px); }
.wf-page .wf-card { margin-top: clamp(-72px, -5vw, -28px); position: relative; z-index: 2; }
/* D-48: the card overlaps the banner by up to 72px — the banner keeps that much extra room under its title, so the card never covers it */
#fm-root > .pg-banner .pg-banner-inner { padding-bottom: calc(clamp(36px, 5vw, 56px) + clamp(28px, 5vw, 72px)); }
.wf-page .wf-closed { background: var(--surface); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 18px 48px rgba(42, 18, 48, .08); }
.wf-external { margin: 24px 0; }
.wf-external .btn .icon { width: 16px; height: 16px; }

/* Sign-in hub (the only place sign-in options are listed) */
.signin-choice { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: var(--s-5) 0 var(--s-6); }
.signin-card { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border-radius: var(--r-lg); border: 2px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.signin-card:hover, .signin-card:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); transform: translateY(-1px); }
.signin-card.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.signin-card-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.signin-card-icon .icon { width: 26px; height: 26px; }
.signin-card-body { display: grid; gap: 6px; }
.signin-card-body strong { font-size: var(--fs-md); }
.signin-card-body span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.signin-card-go { margin-inline-start: auto; align-self: center; color: var(--accent); }
.signin-sub { font-size: var(--fs-lg); margin: 0 0 var(--s-2); }
.wf-langs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin: -6px 0 14px; }
.wf-langs .btn { min-height: 34px; padding: 4px 12px; font-size: .875rem; }
.wf-langs .btn.is-on { background: var(--yf-plum); border-color: var(--yf-plum); color: #fff; }
.wf-desc, .wf-step-desc { color: var(--text-2); font-size: .9375rem; margin: 0 0 18px; overflow-wrap: anywhere; }
.wf-desc p, .wf-step-desc p { margin: 0 0 8px; }
.wf .hint { overflow-wrap: anywhere; }

/* Forms and applications hub */
.fh-wrap { padding-block: var(--s-6) var(--s-8); }
.fh-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.fh-group + .fh-group { margin-top: var(--s-7); }
.fh-group h2 { font-size: var(--fs-lg); margin-bottom: var(--s-4); }
.fh-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.fh-card { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.fh-card:hover, .fh-card:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); transform: translateY(-1px); }
.fh-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.fh-body { display: grid; gap: 4px; min-width: 0; }
.fh-body strong { font-size: var(--fs-base); line-height: 1.35; }
.fh-body span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.fh-body em { font-style: normal; font-size: var(--fs-xs); color: var(--accent-strong); font-weight: 600; }
.fh-go { margin-inline-start: auto; align-self: center; color: var(--accent); flex: none; }
.pg-banner .yf-lead { color: rgba(255,255,255,.9); max-width: 62ch; }

/* =====================================================================================================
   Website looks (Q-14B, D-117). Every instance chooses its look in Settings → Website look; the pages and addresses are the same
   for every look. "Classic" = everything above (and the instance's own theme.css): nothing here applies to it. "Humanitarian" =
   warm and soft, one strong accent, generous space, rounded pictures and cards, Alexandria for headings and Readex Pro for text
   (both self-hosted, SIL OFL, no request to another site; a browser downloads them only when this look is on).
   Contrast (WCAG 2.2 AA): #2b2220 on #fffaf6 15.2:1 · #5f524d on #fffaf6 7.3:1 · white on accent #b23a2c 5.9:1 · accent text
   #8f2c21 on #fbe9df 7.5:1 · dark: #f5ece6 on #1c1715 15.6:1 · #f4a08b on #1c1715 8.6:1 · #1c1715 on #f08a74 7.3:1.
   ===================================================================================================== */
@font-face { font-family: "Alexandria"; src: url("/assets/h/fonts/alexandria-arabic-wght-normal.e8d8ca61d4.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; src: url("/assets/h/fonts/alexandria-latin-wght-normal.98ccec0bc3.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Readex Pro"; src: url("/assets/h/fonts/readex-pro-arabic-wght-normal.b5815b71c4.woff2") format("woff2"); font-weight: 160 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; src: url("/assets/h/fonts/readex-pro-latin-wght-normal.7074eeb987.woff2") format("woff2"); font-weight: 160 700; font-display: swap;
  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[data-look="humanitarian"] {
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Readex Pro", "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --yf-serif: "Alexandria", "Readex Pro", system-ui, sans-serif;
  --yf-plum: #b23a2c; --yf-plum-strong: #8f2c21; --yf-plum-soft: #fbe9df; --yf-plum-tint: #fff4ee; --yf-plum-text: #8f2c21;
  --yf-deep: #2e2321; --yf-ink: #2b2220; --yf-on-deep: #fbf3ee; --yf-on-deep-2: #ecdcd1;
  --look-radius: 20px; --look-radius-s: 12px;
  --look-shadow: 0 1px 2px rgba(80, 40, 30, .06), 0 10px 28px -14px rgba(80, 40, 30, .22);
}
:root[data-look="humanitarian"] body[data-shell="public"] {
  --bg: #fffaf6; --surface: #ffffff; --surface-2: #fbefe7; --surface-3: #f6e3d8; --border: #ecdcd1; --border-strong: #d9c2b5;
  --text: #2b2220; --text-2: #463935; --muted: #5f524d;
  --accent: #b23a2c; --accent-strong: #8f2c21; --accent-soft: #fbe9df; --on-accent: #ffffff; --focus: #1c6b78; --sage-soft: #fbefe7;
}
@media (prefers-color-scheme: dark) {
  :root[data-look="humanitarian"]:not([data-theme="light"]) body[data-shell="public"] {
    --bg: #1c1715; --surface: #2a2320; --surface-2: #261f1c; --surface-3: #332a26; --border: #43362f; --border-strong: #5a4a41;
    --text: #f5ece6; --text-2: #e2d5cc; --muted: #cdbfb6;
    --accent: #f08a74; --accent-strong: #f5a48f; --accent-soft: #33261f; --on-accent: #1c1715; --focus: #7fd0e0; --sage-soft: #261f1c;
    --yf-plum-soft: #33261f; --yf-plum-tint: #261f1c; --yf-plum-text: #f4a08b;
    --look-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-look="humanitarian"][data-theme="dark"] body[data-shell="public"] {
  --bg: #1c1715; --surface: #2a2320; --surface-2: #261f1c; --surface-3: #332a26; --border: #43362f; --border-strong: #5a4a41;
  --text: #f5ece6; --text-2: #e2d5cc; --muted: #cdbfb6;
  --accent: #f08a74; --accent-strong: #f5a48f; --accent-soft: #33261f; --on-accent: #1c1715; --focus: #7fd0e0; --sage-soft: #261f1c;
  --yf-plum-soft: #33261f; --yf-plum-tint: #261f1c; --yf-plum-text: #f4a08b;
  --look-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -16px rgba(0, 0, 0, .6);
}
/* type: Alexandria for headings in both languages, a clear hierarchy */
html[data-look="humanitarian"][lang] body[data-shell="public"] :is(h1, h2, h3, .yf-h2, .wf-title, .dn-title, .yf-brand-text strong) { font-family: var(--yf-serif); letter-spacing: 0; }
html[data-look="humanitarian"] body[data-shell="public"] :is(h1, h2) { font-weight: 700; }
html[data-look="humanitarian"] body[data-shell="public"] h3 { font-weight: 600; }
html[data-look="humanitarian"] body[data-shell="public"] .yf-brand-text strong { text-transform: none; }
html[data-look="humanitarian"] body[data-shell="public"] a { text-underline-offset: .25em; }
/* buttons, cards and pictures: rounded, one card style, a gentle shadow */
html[data-look="humanitarian"] body[data-shell="public"] .btn { border-radius: 999px; font-weight: 600; }
html[data-look="humanitarian"] body[data-shell="public"] :is(.card, .pg-card, .yf-card, .yf-svc-card, .gl-album, .yf-video-frame) { border-radius: var(--look-radius); box-shadow: var(--look-shadow); overflow: hidden; }
html[data-look="humanitarian"] body[data-shell="public"] :is(.pg-figure img, .pg-gallery img, .gl-item, .gl-item img, .pg-media img) { border-radius: var(--look-radius-s); }
/* the page head: a rounded foot */
html[data-look="humanitarian"] body[data-shell="public"] .pg-banner { border-radius: 0 0 clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px); overflow: hidden; }
/* the header: light and calm */
html[data-look="humanitarian"] body[data-shell="public"] .yf-header { box-shadow: none; border-bottom: 1px solid var(--border); }

/* =====================================================================================================
   Photo albums (Q-14B): /public/galleries.html — the albums of an instance's previous website, each with its pictures
   ===================================================================================================== */
.gl-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.gl-album { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg, 14px); overflow: hidden; }
.gl-album a { display: grid; color: inherit; text-decoration: none; }
.gl-album a:hover h2, .gl-album a:focus-visible h2 { text-decoration: underline; }
.gl-album-cover { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.gl-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-album-body { padding: 14px 16px 16px; }
.gl-album-body h2 { font-size: 1.125rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.gl-album-body p { margin: 0; color: var(--muted); font-size: .9375rem; }
.gl-back { margin: 0 0 16px; }

/* =====================================================================================================
   Videos (Q-14B): the click-to-load player shows the video's own preview picture, stored on this site (no request to YouTube
   before Play). A video that YouTube no longer has shows the branded picture and says so; there is nothing to play.
   ===================================================================================================== */
.yf-video-frame .yf-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.yf-video-frame .yf-video-play { z-index: 1; }
.yf-video.is-gone .yf-video-frame { display: grid; place-items: center; text-align: center; }
.yf-video-gone { position: relative; z-index: 1; margin: 0; padding: 10px 14px; max-width: 32ch; border-radius: 10px; background: rgba(20, 12, 10, .78); color: #fff; font-size: .9375rem; line-height: 1.45; }
.pg-prose .yf-video, .ar-body .yf-video { margin: 20px 0; }
