/* ==========================================================================
   Mukmin Perintis — theme stylesheet
   1. Tokens (mirror theme.json)   2. Base   3. Layout   4. Buttons
   5. Header & navigation          6. Heroes  7. Cards & loops
   8. Sections & components        9. Single entries   10. Footer
   11. WordPress adaptation layer  12. Utilities & motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--maroon: #6B1414;
	--maroon-2: #561010;
	--red: #C41E1E;
	--ink: #241414;
	--muted: #6E6363;
	--ivory: #FAF9F6;
	--sand: #F1ECE4;
	--line: #E6DED3;
	--night: #2A0D0D;
	--white: #FFFFFF;
	--serif: Georgia, 'Noto Serif', 'Times New Roman', serif;
	--sans: 'Helvetica Neue', Arial, system-ui, sans-serif;
	--arabic: Amiri, 'Traditional Arabic', 'Noto Naskh Arabic', serif;
	--radius: 10px;
	--radius-lg: 18px;
	--shadow: 0 1px 2px rgba(36, 20, 20, .06), 0 8px 24px rgba(36, 20, 20, .07);
	--shadow-lg: 0 18px 48px rgba(36, 20, 20, .16);
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 96px);
	--header-h: 76px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--maroon); color: var(--white); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow { font: 700 .78rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 .8rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.arabic, .is-style-arabic {
	font-family: var(--arabic);
	direction: rtl;
	text-align: right;
	font-size: 1.6em;
	line-height: 1.9;
	color: var(--maroon);
}

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow, .narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: rgba(255, 255, 255, .86); }
.section--night h2, .section--night h3 { color: var(--white); }
.section--maroon { background: var(--maroon); color: rgba(255, 255, 255, .9); }
.section--maroon h2, .section--maroon h3 { color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head > * { margin-bottom: 0; }
.section-head .section-title { margin: 0; }
.section-title { position: relative; }
.section-link { display: inline-flex; align-items: center; gap: .4rem; font: 700 .95rem var(--sans); text-decoration: none; white-space: nowrap; }
.section-link .icon { transition: transform .2s; }
.section-link:hover .icon { transform: translateX(3px); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split.reverse > :first-child { order: 2; } }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* 4. Buttons --------------------------------------------------------------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font: 700 .98rem/1 var(--sans); letter-spacing: .01em;
	padding: .95em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active, .wp-block-button__link:active { transform: translateY(1px); }
.btn-sm { padding: .7em 1.15em; font-size: .9rem; }
.btn-primary, .is-style-primary .wp-block-button__link, .wp-block-button:not([class*="is-style-"]) .wp-block-button__link { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(196, 30, 30, .28); }
.btn-primary:hover, .is-style-primary .wp-block-button__link:hover, .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover { background: var(--maroon); color: var(--white); }
.btn-ghost, .is-style-ghost .wp-block-button__link { background: transparent; color: var(--maroon); border-color: rgba(107, 20, 20, .35); }
.btn-ghost:hover, .is-style-ghost .wp-block-button__link:hover { border-color: var(--maroon); background: var(--maroon); color: var(--white); }
.btn-light, .is-style-light .wp-block-button__link { background: var(--white); color: var(--maroon); }
.btn-light:hover, .is-style-light .wp-block-button__link:hover { background: var(--sand); color: var(--maroon); }
.btn-outline-light, .is-style-outline-light .wp-block-button__link { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover, .is-style-outline-light .wp-block-button__link:hover { background: var(--white); color: var(--maroon); }
.wp-block-buttons, .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.6rem; }
.btn-row.center, .wp-block-buttons.center { justify-content: center; }

/* 5. Header & navigation --------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.topbar { background: var(--night); color: rgba(255, 255, 255, .72); font: 500 .78rem/1 var(--sans); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.topbar p { margin: 0; }
.topbar-reg { opacity: .7; margin-left: .6rem; padding-left: .6rem; border-left: 1px solid rgba(255, 255, 255, .25); }
.topbar-social { display: flex; gap: .2rem; }
.topbar-social a { color: inherit; display: inline-flex; padding: .45rem; border-radius: 50%; }
.topbar-social a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.topbar-social .icon { width: 15px; height: 15px; }
@media (max-width: 640px) { .topbar-reg, .topbar-social { display: none; } .topbar p { font-size: .72rem; } }

.header-main { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); background: var(--white); max-width: none; padding-inline: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled .header-main { box-shadow: 0 6px 24px rgba(36, 20, 20, .08); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 50px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 700 1.12rem var(--serif); color: var(--maroon); letter-spacing: .01em; }
.brand-text small { font: 500 .72rem var(--sans); color: var(--muted); letter-spacing: .04em; }
.brand-light .brand-text strong { color: var(--white); }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }
.brand-light img { filter: drop-shadow(0 0 0 transparent); }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav > ul > li { position: relative; display: flex; align-items: center; }
.nav > ul > li > a { display: block; padding: .6rem .85rem; font: 700 .97rem var(--sans); color: var(--ink); text-decoration: none; border-radius: 8px; }
.nav > ul > li > a:hover, .nav > ul > li.is-current > a { color: var(--red); }
.nav > ul > li.is-current > a { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.sub-toggle { background: none; border: 0; padding: .3rem; margin-left: -.55rem; color: var(--muted); cursor: pointer; display: inline-flex; }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav-item.is-open > .sub-toggle .icon { transform: rotate(180deg); }
.dropdown { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.dropdown a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font: 600 .95rem var(--sans); }
.dropdown a:hover { background: var(--sand); color: var(--maroon); }
.mega { position: absolute; top: calc(100% + 6px); left: -1rem; width: min(640px, 90vw); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.mega-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; padding: 1.4rem; }
.mega-label { font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.mega-links, .mega-series { list-style: none; margin: 0; padding: 0; }
.mega-links a { display: block; padding: .65rem .75rem; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mega-links a:hover { background: var(--sand); }
.mega-links strong { display: block; font: 700 .98rem var(--sans); color: var(--maroon); }
.mega-links span { display: block; font-size: .85rem; color: var(--muted); }
.mega-series a { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); font: 600 .92rem var(--sans); }
.mega-series a:hover { background: var(--sand); color: var(--maroon); }
.mega-series span { color: var(--muted); font-weight: 500; font-size: .8rem; }
@media (min-width: 1025px) {
	.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.is-open > .dropdown,
	.nav-item:hover > .mega, .nav-item:focus-within > .mega, .nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
	.nav-mobile-cta { display: none; }
}
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { background: none; border: 0; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--sand); color: var(--maroon); }
.nav-burger { display: none; }
.nav-burger .i-close, .nav-open .nav-burger .i-open { display: none; }
.nav-open .nav-burger .i-close { display: block; }
.search-panel { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(36, 20, 20, .08); }
.search-form { display: flex; align-items: center; gap: .75rem; padding-block: 1rem; }
.search-form input { flex: 1; min-width: 0; border: 0; border-bottom: 2px solid var(--line); padding: .7rem .2rem; font: 500 1.15rem var(--sans); background: transparent; color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--red); }
.search-form > .icon { color: var(--muted); }

@media (max-width: 1024px) {
	.nav-burger { display: inline-grid; }
	.hide-sm { display: none !important; }
	.nav { position: fixed; inset: calc(var(--nav-top, 110px)) 0 0 0; background: var(--white); margin: 0; padding: 1rem var(--gutter) 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; }
	.nav-open .nav { transform: none; visibility: visible; }
	.nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.nav > ul > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav > ul > li > a { flex: 1; padding: 1rem 0; font-size: 1.1rem; }
	.nav > ul > li.is-current > a { box-shadow: none; }
	.sub-toggle { margin: 0; padding: .8rem; }
	.dropdown, .mega { position: static; width: 100%; min-width: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 .8rem; border-radius: 0; }
	.nav-item.is-open > .dropdown, .nav-item.is-open > .mega { display: block; }
	.mega-inner { grid-template-columns: 1fr; padding: 0; gap: .8rem; }
	.nav-mobile-cta { display: flex; gap: .75rem; margin-top: 1.5rem; }
	.nav-mobile-cta .btn { flex: 1; }
	body.nav-open { overflow: hidden; }
}

/* 6. Heroes ---------------------------------------------------------------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); background: linear-gradient(180deg, var(--sand), var(--ivory)); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .35em; max-width: 22ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero--dark { background: radial-gradient(120% 140% at 85% 0%, #5a1414 0%, var(--night) 60%); border: 0; color: rgba(255, 255, 255, .8); }
.page-hero--dark h1 { color: var(--white); }
.page-hero--dark .lead { color: rgba(255, 255, 255, .72); }
.page-hero--dark .eyebrow { color: #F08A8A; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }

.hero { position: relative; isolation: isolate; color: var(--white); padding-block: clamp(80px, 12vw, 150px) clamp(56px, 8vw, 96px); overflow: hidden; background: var(--night); }
.hero-bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 8, 8, .92) 0%, rgba(42, 13, 13, .78) 45%, rgba(42, 13, 13, .35) 100%), linear-gradient(0deg, rgba(20, 6, 6, .6), transparent 50%); }
.hero h1 { color: var(--white); max-width: 15ch; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero .lead { color: rgba(255, 255, 255, .85); max-width: 38rem; }
.hero .eyebrow { color: #F4A6A6; }
.hero-search { display: flex; gap: .5rem; max-width: 560px; margin-top: 2rem; background: var(--white); border-radius: 999px; padding: .35rem .35rem .35rem 1.2rem; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; min-width: 0; border: 0; font: 500 1rem var(--sans); color: var(--ink); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.hero-chips a { color: var(--white); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: .35rem .85rem; font: 600 .85rem var(--sans); text-decoration: none; }
.hero-chips a:hover { background: var(--white); color: var(--maroon); }

.hero .chips { margin-top: 1.25rem; }
.hero .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: var(--white); }
.hero .chip span { color: rgba(255, 255, 255, .6); }
.hero .chip:hover, .hero .chip.is-active { background: var(--white); color: var(--maroon); }
.hero .chip.is-active { display: none; }
.hero .wp-block-search { margin-top: 2rem; max-width: 560px; }
.hero .wp-block-search__inside-wrapper { border: 0; box-shadow: var(--shadow-lg); padding: .35rem .35rem .35rem 1.2rem; }
.hero .wrap > *, .page-hero .wrap > * { position: relative; }

/* 7. Cards & loops --------------------------------------------------------- */
.cards { list-style: none; margin: 0; padding: 0; }
.cards.grid-3, .cards.grid-4 { display: grid; }
.card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.card-media img, .card-media a { display: block; width: 100%; height: 100%; }
.card-media img { object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.card-title { font-size: 1.18rem; margin: 0; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--maroon); }
.card-excerpt, .card-excerpt p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-date, .card-meta { margin-top: auto; padding-top: .4rem; font: 500 .82rem var(--sans); color: var(--muted); }
.card-kicker { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font: 700 .72rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.card-kicker a { color: var(--red); text-decoration: none; position: relative; z-index: 1; }
.card-kicker a:hover { text-decoration: underline; }
.kicker-type { background: var(--maroon); color: var(--white); padding: .3em .6em; border-radius: 4px; letter-spacing: .08em; }
.kicker-type--program { background: #1B3A5C; }
.card--video .card-media { position: relative; }
.card--video .card-media::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(196, 30, 30, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='white'/%3E%3C/svg%3E") center / 26px no-repeat; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); pointer-events: none; transition: transform .2s; }
.card--video:hover .card-media::after { transform: translate(-50%, -50%) scale(1.08); }
.cards.list { display: grid; gap: 1rem; }
.card--row { flex-direction: row; }
.card--row .card-media { width: min(38%, 260px); flex: none; aspect-ratio: auto; min-height: 150px; }
@media (max-width: 560px) { .card--row { flex-direction: column; } .card--row .card-media { width: 100%; aspect-ratio: 16 / 9; } }

/* Text covers: echo the organisation's quote graphics. */
.text-cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; width: 100%; height: 100%; min-height: 100%; padding: clamp(16px, 4%, 26px); color: var(--white); background: var(--maroon); overflow: hidden; isolation: isolate; text-decoration: none; }
.text-cover::before { content: ""; position: absolute; right: -18%; bottom: -38%; width: 75%; aspect-ratio: 1; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .07); z-index: -1; }
.text-cover::after { content: "\201C"; position: absolute; right: 6%; top: -6%; font: 700 9rem/1 var(--serif); color: rgba(255, 255, 255, .08); z-index: -1; }
.text-cover--v2 { background: linear-gradient(135deg, #A51919, var(--maroon-2)); }
.text-cover--v3 { background: var(--night); }
.text-cover--v4 { background: linear-gradient(160deg, #7d1b1b, #3a0f0f); }
.text-cover-label { font: 700 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #FFD2D2; }
.text-cover-title { font: 700 clamp(1rem, 2.2vw, 1.35rem)/1.25 var(--serif); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.text-cover-mark { font: 600 .7rem var(--sans); letter-spacing: .08em; color: rgba(255, 255, 255, .75); }

/* Spotlight (home): one large feature + ranked list. */
.spotlight { display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 960px) { .spotlight { grid-template-columns: 1.45fr 1fr; } }
.spotlight-main { position: relative; display: grid; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); min-height: 420px; color: var(--white); text-decoration: none; }
.spotlight-main > * { grid-area: 1 / 1; }
.spotlight-main .spot-media { margin: 0; }
.spotlight-main .spot-media img, .spotlight-main .spot-media .text-cover { width: 100%; height: 100%; object-fit: cover; }
.spotlight-main .spot-media .text-cover-title, .spotlight-main .spot-media .text-cover-mark, .spotlight-main .spot-media .text-cover-label { display: none; }
@media (max-width: 640px) { .spotlight-main { min-height: 300px; } }
.spotlight-main .spot-body { position: relative; z-index: 1; align-self: end; padding: clamp(20px, 3.5vw, 36px); background: linear-gradient(0deg, rgba(20, 6, 6, .92) 20%, rgba(20, 6, 6, 0)); }
.spotlight-main h3 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .5rem 0; }
.spotlight-main p { color: rgba(255, 255, 255, .78); margin: 0; }
.spotlight-main .card-kicker { color: #F7B4B4; }
.spotlight-main:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; display: grid; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.ranked li:first-child { padding-top: 0; }
.ranked li::before { content: counter(rank, decimal-leading-zero); font: 700 1.6rem/1 var(--serif); color: var(--red); opacity: .85; }
.ranked a { color: var(--ink); text-decoration: none; font: 700 1.08rem/1.35 var(--serif); }
.ranked a:hover { color: var(--maroon); text-decoration: underline; }
.ranked .card-kicker { margin-bottom: .35rem; }

/* Chips (series/topics filters). */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 .88rem var(--sans); text-decoration: none; }
.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.chip.is-active, .chip.is-active:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.chip span { font-weight: 500; color: var(--muted); font-size: .8rem; }
.chip.is-active span { color: rgba(255, 255, 255, .7); }
.page-hero--dark .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: var(--white); }
.page-hero--dark .chip span { color: rgba(255, 255, 255, .6); }
.page-hero--dark .chip.is-active, .page-hero--dark .chip:hover { background: var(--white); color: var(--maroon); }
.page-hero--dark .chip.is-active span, .page-hero--dark .chip:hover span,
.hero .chip.is-active span, .hero .chip:hover span { color: rgba(107, 20, 20, .7); }

/* Pagination */
.pagination, .wp-block-query-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: clamp(32px, 4vw, 48px); font: 700 .95rem var(--sans); }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; min-width: 42px; height: 42px; padding: 0 .9rem; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; }
.wp-block-query-pagination .page-numbers.current { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.wp-block-query-pagination-numbers { display: flex; gap: .4rem; }
.empty-state { padding: 2.5rem; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* 8. Sections & components ------------------------------------------------- */
/* Quote banner */
.quote-banner { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.quote-banner blockquote, .quote-banner .wp-block-quote { margin: 0; border: 0; padding: 0; }
.quote-banner blockquote p { font: 400 clamp(1.25rem, 2.6vw, 1.75rem)/1.55 var(--serif); font-style: italic; color: inherit; }
.quote-banner cite { display: block; margin-top: 1.2rem; font: 700 .85rem var(--sans); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #F4A6A6; }
.quote-banner::before { content: "\201C"; display: block; font: 700 5rem/0.6 var(--serif); color: var(--red); margin-bottom: .8rem; }

.quote-banner--light { color: var(--ink); }
.quote-banner--light::before { display: none; }
.quote-banner--light cite { color: var(--maroon); }
.quote-banner--light .is-style-arabic { text-align: center; direction: rtl; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section--night .section-link { color: #F4A6A6; }
.section--night .eyebrow, .section--maroon .eyebrow { color: #F4A6A6; }
.section-spacer { height: clamp(32px, 5vw, 64px); }
.media-logo { max-width: 360px; margin-inline: auto; }
.media-logo img { border-radius: var(--radius-lg); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.stat strong { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); color: var(--maroon); }
.stat span { font: 600 .85rem var(--sans); color: var(--muted); letter-spacing: .04em; }

/* Feature cards (vision, mission, audiences, programmes) */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.5vw, 28px); height: 100%; }
.feature h3 { margin-bottom: .4rem; }
.feature p:last-child { margin-bottom: 0; }
.feature p { color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(196, 30, 30, .1); color: var(--red); margin-bottom: 1rem; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature--dark { background: var(--maroon); border-color: var(--maroon); color: rgba(255, 255, 255, .85); }
.feature--dark h3, .feature--dark p { color: inherit; }
.feature--dark h3 { color: var(--white); }
.feature--dark .eyebrow { color: #F7B4B4; }
.photo-card { position: relative; display: grid; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; background: var(--night); color: var(--white); isolation: isolate; }
.photo-card > * { grid-area: 1 / 1; }
.photo-card .wp-block-image, .photo-card figure { margin: 0; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card .photo-card-body { position: relative; align-self: end; padding: 3rem 1.4rem 1.4rem; background: linear-gradient(0deg, rgba(20, 6, 6, .95) 0%, rgba(20, 6, 6, .8) 55%, rgba(20, 6, 6, 0) 100%); z-index: 1; }
.photo-card h3 { color: var(--white); margin-bottom: .25rem; }
.photo-card p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .95rem; }
.media-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Program list (CPT) */
.program-types { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.program-card { position: relative; display: grid; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); color: var(--white); text-decoration: none; isolation: isolate; }
.program-card > * { grid-area: 1 / 1; }
.program-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.program-card:hover img { transform: scale(1.05); }
.program-card .program-card-body { position: relative; align-self: end; padding: 3rem 1.4rem 1.4rem; background: linear-gradient(0deg, rgba(20, 6, 6, .95) 0%, rgba(20, 6, 6, .8) 55%, rgba(20, 6, 6, 0) 100%); }
.program-card h3 { color: var(--white); margin: 0 0 .3rem; }
.program-card p { color: rgba(255, 255, 255, .8); margin: 0; font-size: .93rem; }
.event-list { display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; }
.event-date { width: 70px; text-align: center; border-radius: 12px; background: var(--maroon); color: var(--white); padding: .6rem .3rem; font-family: var(--sans); }
.event-date strong { display: block; font: 700 1.7rem/1 var(--serif); }
.event-date span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.event h3 a { color: var(--ink); text-decoration: none; }
.event-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .88rem; }
.event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 640px) { .event { grid-template-columns: auto 1fr; } .event .btn { grid-column: 1 / -1; } }
.notice-card { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--white); border: 1px dashed rgba(107, 20, 20, .35); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.notice-card p { margin: 0; color: var(--muted); }

/* Team */
.team-grid { display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.member { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.member-photo { aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--sand), #e9e0d3); display: grid; place-items: end center; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-photo .member-initials { align-self: center; font: 700 2.6rem var(--serif); color: rgba(107, 20, 20, .7); }
.member-body { padding: 1rem 1rem 1.25rem; }
.member-role { font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 .35rem; }
.member-name { font: 700 1.02rem/1.3 var(--serif); margin: 0; }

/* Partners */
.partner-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.partner { display: flex; gap: 1.1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; }
.partner-logo { width: 86px; height: 86px; flex: none; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; }
.partner h3 { font-size: 1.08rem; margin: 0 0 .25rem; }
.partner p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.partner a { position: relative; z-index: 1; }

/* Topics & series */
.topic-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.topic { display: flex; flex-direction: column; gap: .25rem; padding: 1.3rem 1.4rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .2s; }
.topic:hover { border-color: var(--maroon); box-shadow: var(--shadow); color: var(--ink); }
.topic strong { font: 700 1.15rem var(--serif); color: var(--maroon); }
.topic span { font: 600 .82rem var(--sans); color: var(--muted); }
.topic p { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); }
.series-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.series { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 1.4rem; border-radius: var(--radius-lg); color: var(--white); text-decoration: none; background: var(--maroon); overflow: hidden; isolation: isolate; }
.series:nth-child(4n+2) { background: var(--night); }
.series:nth-child(4n+3) { background: linear-gradient(135deg, #A51919, var(--maroon-2)); }
.series:nth-child(4n+4) { background: #3a0f0f; }
.series::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 16px solid rgba(255, 255, 255, .07); z-index: -1; }
.series strong { font: 700 1.35rem/1.2 var(--serif); }
.series p { margin: .4rem 0 0; color: rgba(255, 255, 255, .88); font-size: .9rem; }
.series span { font: 700 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #FFD2D2; }
.series:hover { color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Donate & contact */
.donate-box { display: grid; gap: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
@media (min-width: 760px) { .donate-box.has-qr { grid-template-columns: 1fr auto; align-items: center; } }
.donate-rows { display: grid; gap: .9rem; margin: 0; }
.donate-rows div { display: grid; gap: .1rem; }
.donate-rows dt { font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.donate-rows dd { margin: 0; font: 700 1.2rem var(--serif); color: var(--ink); }
.donate-account { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.copy-btn { font: 700 .78rem var(--sans); padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory); color: var(--maroon); cursor: pointer; }
.copy-btn.is-done { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.donate-qr { text-align: center; }
.donate-qr img { width: 200px; border-radius: 12px; border: 1px solid var(--line); margin-inline: auto; }
.donate-qr p { font: 600 .8rem var(--sans); color: var(--muted); margin: .6rem 0 0; }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.contact-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.contact-card:hover { border-color: var(--maroon); color: var(--ink); box-shadow: var(--shadow); }
.contact-card .icon { width: 28px; height: 28px; color: var(--red); margin-bottom: .4rem; }
.contact-card strong { font: 700 1.05rem var(--serif); }
.contact-card span { color: var(--muted); font-size: .92rem; word-break: break-word; }

/* CTA band */
.cta-band { display: grid; gap: 1.5rem; align-items: center; background: var(--maroon); color: rgba(255, 255, 255, .86); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .06); z-index: -1; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } .cta-band .wp-block-buttons { margin-top: 0; } }
.cta-band h2 { color: var(--white); margin-bottom: .3rem; }
.cta-band p { margin: 0; }

/* Video embed (lite) */
.video-stage { background: var(--night); padding-block: clamp(20px, 3vw, 40px); }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; max-width: 1040px; margin-inline: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-embed button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video-embed button:hover img { opacity: 1; }
.video-embed .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.video-embed button:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-embed .play .icon { width: 36px; height: 36px; margin-left: 4px; }

/* Programme details panel */
.program-facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; display: grid; gap: .9rem; align-self: start; }
.program-facts div { display: flex; gap: .7rem; align-items: flex-start; }
.program-facts .icon { color: var(--red); margin-top: .15rem; }
.program-facts dl { margin: 0; }
.program-facts .btn { justify-content: center; }
.program-facts dt { font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.program-facts dd { margin: 0; font-weight: 600; }

/* 9. Single entries -------------------------------------------------------- */
.entry-header { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); }
.entry-title { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: .6rem 0 1rem; }
.entry-kicker, .entry-kicker a { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.entry-standfirst p { font-size: 1.2rem; color: var(--muted); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; font: 600 .9rem var(--sans); color: var(--muted); }
.entry-meta > * { margin: 0; }
.entry-meta > * + *::before { content: "·"; margin-right: 1.2rem; color: var(--line); }
.entry-media { margin: 0 auto clamp(28px, 4vw, 48px); max-width: 1040px; }
.entry-media img, .entry-media .text-cover { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.entry-media .text-cover { min-height: 260px; padding: clamp(24px, 4vw, 48px); }
.entry-media .text-cover-title { font-size: clamp(1.4rem, 3vw, 2.2rem); -webkit-line-clamp: 3; max-width: 26ch; }
.entry-content:not(.page-content) { font-size: 1.12rem; line-height: 1.8; }
.entry-content:not(.page-content) > * { margin-block: 0 1.2em; }
.entry-content:not(.page-content) h2 { font-size: 1.65rem; margin-top: 1.8em; }
.entry-content:not(.page-content) h3 { margin-top: 1.5em; }
.entry-content:not(.page-content) .wp-block-quote, .entry-content:not(.page-content) blockquote { margin: 2em 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--red); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content:not(.page-content) .wp-block-quote p { font: 400 1.3rem/1.6 var(--serif); font-style: italic; margin-bottom: .6rem; }
.entry-content:not(.page-content) .wp-block-quote cite { font: 700 .82rem var(--sans); font-style: normal; color: var(--maroon); letter-spacing: .04em; }
.entry-content:not(.page-content) .is-style-ayah, .entry-content:not(.page-content) .ayah { text-align: center; border: 0; background: var(--sand); border-radius: var(--radius-lg); padding: 1.6rem; }
.entry-content:not(.page-content) .ayah p { font: 400 1.15rem/1.65 var(--serif); font-style: normal; }
.entry-content:not(.page-content) .ayah cite { color: var(--muted); }
.entry-content:not(.page-content) .arabic, .entry-content:not(.page-content) .is-style-arabic { font-size: 1.75rem; margin-bottom: .6em; }
.entry-content:not(.page-content) .is-style-ayah p { font: 400 1.15rem/1.65 var(--serif); font-style: normal; }
.entry-content:not(.page-content) .is-style-ayah cite { color: var(--muted); }
.entry-content:not(.page-content) ul, .entry-content:not(.page-content) ol { padding-left: 1.3em; }
.entry-content:not(.page-content) li { margin-bottom: .4em; }
.entry-columns { display: grid; gap: 2rem; }
@media (min-width: 900px) { .entry-columns { grid-template-columns: 260px 1fr; max-width: calc(1040px + 2 * var(--gutter)); } }
.entry-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; font-size: 0; }
.tag-list a { font: 600 .85rem var(--sans); padding: .35rem .8rem; border-radius: 999px; background: var(--sand); color: var(--maroon); text-decoration: none; }
.tag-list a:hover { background: var(--maroon); color: var(--white); }
.tag-list .wp-block-post-terms__separator { display: none; }
.share { display: flex; align-items: center; gap: .4rem; font: 700 .8rem var(--sans); color: var(--muted); }
.share a, .share button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--maroon); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.share .icon { width: 17px; height: 17px; }
.related { padding-block: var(--section); background: var(--sand); margin-top: var(--section); }

/* 10. Footer --------------------------------------------------------------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .72); font-size: .95rem; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta h2 { color: var(--white); margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); max-width: 22ch; }
.footer-cta .eyebrow { color: #F4A6A6; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(40px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; max-width: 30ch; }
.site-footer h3 { font: 700 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer a.btn { text-decoration: none; }
.site-footer .btn-light, .site-footer .btn-light:hover, .site-footer .btn-outline-light:hover { color: var(--maroon); }
.footer-contact li, .footer-social a { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact .icon, .footer-social .icon { width: 18px; height: 18px; margin-top: .15rem; color: #F08A8A; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.2rem; }
.footer-bottom p { margin: 0; }

/* 11. WordPress adaptation layer ------------------------------------------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group, .wp-block-post-content { margin-block: 0; }
.page-content > .wp-block-group:first-child { margin-top: 0; }
.wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.wp-block-post-template.cards > li { margin: 0; }
.wp-block-post-featured-image { margin: 0; }
.wp-block-post-featured-image a { display: block; height: 100%; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-excerpt__excerpt { margin: 0; }
.wp-block-post-excerpt__more-text { display: none; }
.wp-block-image { margin: 0; }
.wp-block-image img { border-radius: inherit; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.wp-block-search.search-inline { margin-top: 1.5rem; max-width: 560px; }
.page-hero--center .wp-block-search.search-inline { margin-inline: auto; }
.wp-block-search__inside-wrapper { display: flex; gap: .5rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .3rem .3rem 1.1rem; }
.wp-block-search__input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1rem var(--sans); color: var(--ink); }
.wp-block-search__input:focus { outline: none; }
.wp-block-search__button { border: 0; border-radius: 999px; background: var(--red); color: var(--white); font: 700 .92rem var(--sans); padding: .75rem 1.3rem; cursor: pointer; margin: 0; }
.wp-block-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: .75rem; }
.wp-block-details summary { cursor: pointer; padding: 1rem 1.25rem; font: 700 1.02rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--red); font: 700 1.4rem/1 var(--sans); }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { padding: 0 1.25rem 1rem; margin: 0; }
.wp-block-list { padding-left: 1.2em; }
.wp-block-list.check-list { padding-left: 0; }
.wp-block-embed { margin: 0 0 1.5em; }
.wp-block-embed__wrapper { position: relative; }
.wp-block-embed.is-type-video .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius); }
.mukmin-ssr { pointer-events: none; }

/* Fluent Forms */
.fluentform .ff-el-group { margin-bottom: 1.1rem; }
.fluentform .ff-el-input--label label { font: 700 .9rem var(--sans); color: var(--ink); }
.fluentform .ff-el-form-control { border: 1px solid var(--line) !important; border-radius: 10px !important; padding: .8rem 1rem !important; font: 500 1rem var(--sans) !important; background: var(--white) !important; color: var(--ink) !important; }
.fluentform .ff-el-form-control:focus { border-color: var(--maroon) !important; box-shadow: 0 0 0 3px rgba(107, 20, 20, .12) !important; }
.fluentform .ff-btn-submit { background: var(--red) !important; border-radius: 999px !important; padding: .9rem 1.6rem !important; font: 700 1rem var(--sans) !important; border: 0 !important; }
.fluentform .ff-btn-submit:hover { background: var(--maroon) !important; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }

/* 12. Utilities & motion --------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal, .block-editor-page .reveal, .editor-styles-wrapper .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
