/* Islamic Center of DeKalb — site styles
   Mobile-first. Most visitors are on a phone checking iqamah. */

:root {
	--green:      #0e4f3c;
	--green-deep: #083125;
	--green-soft: #e8f1ed;
	--gold:       #c9a227;
	--gold-soft:  #f6efd9;
	/* Gold is only 2.3:1 on cream, so it may never carry text on a light
	   background. This is the same hue darkened to 4.6:1 — AA for body text. */
	--gold-ink:   #8a6d12;
	--ink:        #16211d;
	--muted:      #5b6b64;
	--cream:      #faf8f3;
	--line:       #dfe5e1;
	--white:      #ffffff;
	--radius:     14px;
	--shadow:     0 10px 30px rgba(8, 49, 37, .10);
	--shadow-sm:  0 1px 2px rgba(8, 49, 37, .04), 0 4px 14px rgba(8, 49, 37, .06);
	--shadow-lift:0 6px 14px rgba(8, 49, 37, .10), 0 18px 40px rgba(8, 49, 37, .12);
	--wrap:       1140px;
	/* One vertical rhythm for every band on the site, so nothing runs together. */
	--gap-section: clamp(3rem, 6.2vw, 5rem);

	/* An eight-point lattice — the square-and-diamond grid under most Islamic
	   geometric work — drawn with gradients so it costs no request and no asset.
	   Kept at ~3% so it reads as paper texture, never as decoration. */
	--lattice:
		repeating-linear-gradient( 45deg, rgba(8,49,37,.030) 0 1px, transparent 1px 36px),
		repeating-linear-gradient(-45deg, rgba(8,49,37,.030) 0 1px, transparent 1px 36px),
		repeating-linear-gradient(  0deg, rgba(8,49,37,.020) 0 1px, transparent 1px 36px),
		repeating-linear-gradient( 90deg, rgba(8,49,37,.020) 0 1px, transparent 1px 36px);
	--lattice-light:
		repeating-linear-gradient( 45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 36px),
		repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 36px),
		repeating-linear-gradient(  0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 36px),
		repeating-linear-gradient( 90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 36px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background-color: var(--cream);
	/* Deliberately not background-attachment: fixed — a fixed repeating
	   gradient repaints on every scroll frame and stutters on a phone. */
	background-image: var(--lattice);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, .icd-h2 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 600;
	line-height: 1.14;
	color: var(--green-deep);
	margin: 0 0 .45em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 5vw, 3.15rem); letter-spacing: -.005em; }
h2, .icd-h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.2rem; line-height: 1.25; }

/* Lead-in paragraph: one clear step between a heading and body copy. */
.icd-lead,
.icd-prose > p:first-of-type {
	font-size: 1.12rem;
	line-height: 1.62;
	max-width: 62ch;
	color: #23312c;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Never plain --gold on a light background: it fails AA at 2.3:1. */
a:hover { color: var(--gold-ink); }
img { max-width: 100%; height: auto; }

.icd-wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.icd-section { padding: var(--gap-section) 0; }

/* ---------- section headings ---------- */
/* A short gold rule under every section heading: enough structure to tell the
   eye where a section starts, without another box or border. */
.icd-h2::after,
.icd-prose h2::after,
.icd-pagehead h1::after {
	content: "";
	display: block;
	width: 58px;
	height: 3px;
	margin-top: .6rem;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0));
}
.icd-band--dark .icd-h2::after,
.icd-pagehead h1::after { background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0)); }
.icd-cta .icd-h2::after { margin-inline: auto; background: linear-gradient(90deg, rgba(201,162,39,0), var(--gold), rgba(201,162,39,0)); }

/* ---------- divider ---------- */
/* A hairline with a single geometric lozenge at its centre — the quietest
   separator that still says "a new section begins here". */
.icd-divider {
	position: relative;
	height: 1px;
	margin: 0;
	background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.icd-divider::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 9px;
	height: 9px;
	margin: -5px 0 0 -5px;
	transform: rotate(45deg);
	background: var(--cream);
	border: 1px solid rgba(201, 162, 39, .55);
}

.icd-skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--gold); color: #000; padding: .6rem 1rem;
}
.icd-skip:focus { left: 0; }

/* ---------- buttons ---------- */
.icd-btn {
	display: inline-block;
	padding: .72rem 1.35rem;
	border-radius: 999px;
	background: var(--green);
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	border: 2px solid var(--green);
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.icd-btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; transform: translateY(-1px); }
.icd-btn--gold { background: var(--gold); border-color: var(--gold); color: #24200c; }
.icd-btn--gold:hover { background: #b08f1c; border-color: #b08f1c; color: #24200c; }
.icd-btn--ghost { background: transparent; color: var(--green); }
.icd-btn--ghost:hover { background: var(--green); color: #fff; }
.icd-btn--light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.75); color: #fff; }
.icd-btn--light:hover { background: #fff; color: var(--green-deep); border-color: #fff; }

/* ---------- top bar + header ---------- */
.icd-topbar {
	background: var(--green-deep);
	color: #cfe0d9;
	font-size: .82rem;
}
.icd-topbar .icd-wrap { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between; padding: .5rem 0; }
.icd-topbar a { color: #cfe0d9; text-decoration: none; }
.icd-topbar a:hover { color: var(--gold); }

.icd-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.icd-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: .8rem 0; }

.icd-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.icd-brand img, .icd-brand .custom-logo, .icd-brand__logo { width: 46px; height: auto; display: block; }
.icd-brand__text strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.22rem; color: var(--green-deep); line-height: 1.1; }
.icd-brand__text small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.icd-burger { display: block; background: none; border: 0; padding: .5rem; cursor: pointer; }
.icd-burger span { display: block; width: 24px; height: 2px; background: var(--green-deep); margin: 5px 0; transition: .2s; }
.icd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.icd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.icd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.icd-nav { display: none; width: 100%; padding-bottom: 1rem; }
.icd-nav.is-open { display: block; }
.icd-nav__list { list-style: none; margin: 0; padding: 0; }
.icd-nav__list li { border-top: 1px solid var(--line); }
.icd-nav__list a { display: block; padding: .75rem .2rem; text-decoration: none; font-weight: 500; color: var(--ink); }
.icd-nav__list a:hover, .icd-nav__list .is-current > a { color: var(--gold-ink); }
.icd-nav__cta { margin-top: .9rem; }

/*
 * The horizontal menu needs ~1120px: nine items plus the outbound timetable
 * link and the Donate button. At 900px it fitted in the plugin-free staging
 * preview but overflowed the real site, where a scrollbar takes 15px and the
 * viewport is 1085 — the Donate button was pushed off the right edge. Below
 * this width the burger is used instead.
 */
@media (min-width: 1120px) {
	.icd-header__inner { flex-wrap: nowrap; }
	.icd-burger { display: none; }
	.icd-nav { display: flex !important; align-items: center; gap: .9rem; width: auto; padding: 0; }
	.icd-nav__list { display: flex; gap: .95rem; }
	.icd-nav__list li { border: 0; }
	/* The menu carries an extra outbound item, so nothing may wrap mid-label. */
	.icd-nav__list a { padding: .3rem 0; font-size: .88rem; white-space: nowrap; }
	/* Keep the masjid's name on one line and let it shrink instead of colliding
	   with the menu at the awkward middle widths. */
	.icd-brand { flex: 0 0 auto; }
	.icd-brand__text strong { white-space: nowrap; font-size: 1.02rem; }
	.icd-brand__text small { font-size: .64rem; }
	.icd-nav__cta { margin: 0; padding: .5rem 1rem; }
}
@media (min-width: 1320px) {
	.icd-nav { gap: 1.4rem; }
	.icd-nav__list { gap: 1.3rem; }
	.icd-nav__list a { font-size: .95rem; }
}

/* Last-resort guard: no page may ever scroll sideways on a phone, whatever a
   plugin adds to the page. Individual wide things (the timetable, the widget)
   scroll inside their own containers instead. */
html, body { max-width: 100%; overflow-x: clip; }

/* ---------- hero ---------- */
.icd-hero { position: relative; color: #fff; overflow: hidden; }
.icd-hero__media {
	position: absolute; inset: 0;
	background: linear-gradient(rgba(8,49,37,.72), rgba(8,49,37,.86)),
	            var(--hero-image, radial-gradient(circle at 30% 20%, #17624a, #083125)) center/cover no-repeat;
}
/* A single pointed arch, drawn once as an inline SVG and held at 7% white.
   It is the shape of the masjid's own windows; at this contrast it reads as a
   watermark, not an ornament. */
.icd-hero::after,
.icd-pagehead::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' preserveAspectRatio='xMidYMax meet'%3E%3Cpath d='M14 256V104C14 46 54 8 100 8s86 38 86 96v152' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='3'/%3E%3Cpath d='M42 256V112C42 66 68 38 100 38s58 28 58 74v144' fill='none' stroke='%23ffffff' stroke-opacity='.11' stroke-width='2'/%3E%3C/svg%3E"),
		var(--lattice-light);
	background-repeat: no-repeat, repeat;
	background-position: right -40px bottom -30px, 0 0;
	background-size: auto 118%, auto;
}
.icd-hero__grid, .icd-pagehead .icd-wrap { position: relative; z-index: 1; }
/* Prayer times are the reason most people open this site, so they sit in the
   hero itself — above the fold on a phone, beside the welcome on a desktop. */
.icd-hero__grid { position: relative; display: grid; gap: 2rem; padding: 2.2rem 0 2.8rem; }
.icd-hero__salaam { font-size: 1.5rem; color: var(--gold); margin: 0 0 .5rem; }
.icd-hero h1 { color: #fff; margin-bottom: .5rem; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.icd-hero__sub { max-width: 44ch; margin: 0 0 1.4rem; color: #dbe8e2; }
.icd-hero__cta { display: flex; gap: .7rem; flex-wrap: wrap; margin: 0; }

@media (min-width: 940px) {
	.icd-hero__grid {
		grid-template-columns: 1fr minmax(404px, 440px);
		align-items: center;
		gap: 3rem;
		padding: 3rem 0 3.4rem;
	}
	/* Source order puts the times first for phones and screen readers;
	   on a wide screen the welcome sits to their left. */
	.icd-hero__intro { order: -1; }
}

/* ---------- prayer card ---------- */
.icd-prayer {
	background: var(--white);
	/* Declares its own colour: this card is placed inside the dark hero, and
	   must never inherit white text onto its white background. */
	color: var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.5rem;
	border-top: 4px solid var(--gold);
}
.icd-prayer, .icd-prayer p, .icd-prayer th, .icd-prayer td { color: var(--ink); }
.icd-prayer__date { color: var(--green-deep); }
.icd-prayer__hijri, .icd-prayer .icd-label { color: var(--muted); }
.icd-prayer a { color: var(--green); }
.icd-prayer__jumuah, .icd-prayer__jumuah strong { color: #fff; }
.icd-prayer__jumuah .icd-label { color: #b9d3c9; }
.icd-prayer__head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.icd-prayer__date { margin: 0; font-weight: 600; }
.icd-prayer__hijri { margin: 0; color: var(--muted); font-size: .9rem; }
.icd-label { display: block; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.icd-prayer__next { background: var(--green-soft); border-radius: 10px; padding: .6rem .9rem; min-width: 190px; }
.icd-prayer__next strong { display: block; font-size: 1.25rem; color: var(--green-deep); }
.icd-prayer__in { font-size: .85rem; color: var(--muted); }

.icd-prayer__table { width: 100%; border-collapse: collapse; }
.icd-prayer__table th, .icd-prayer__table td { text-align: left; padding: .62rem .5rem; border-bottom: 1px solid var(--line); }
.icd-prayer__table thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.icd-prayer__table tbody th { font-weight: 600; }
.icd-prayer__table td { font-variant-numeric: tabular-nums; }
.icd-prayer__table tr.is-next { background: var(--gold-soft); }
.icd-prayer__table tr.is-next th { color: var(--green-deep); }
.icd-prayer__jumuah { margin: 1rem 0 0; padding: .7rem .9rem; background: var(--green); color: #fff; border-radius: 10px; }
.icd-prayer__jumuah .icd-label { color: #b9d3c9; }
.icd-prayer__foot { margin: .9rem 0 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* ---------- layout blocks ---------- */
.icd-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .icd-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .icd-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.icd-tile {
	display: block; background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 1.4rem 1.35rem; text-decoration: none; color: inherit;
	box-shadow: var(--shadow-sm);
	/* A gold edge that is present but colourless until the tile is pointed at. */
	border-top: 3px solid rgba(201, 162, 39, .28);
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.icd-tile:hover { border-color: var(--line); border-top-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }
.icd-tile h3 { margin-bottom: .35rem; }
.icd-tile p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--muted); }

.icd-band {
	position: relative;
	background-color: var(--green-soft);
	background-image: var(--lattice);
	padding: var(--gap-section) 0;
	border-top: 1px solid #d6e4dd;
	border-bottom: 1px solid #d6e4dd;
}
.icd-band--dark { background-color: var(--green-deep); background-image: var(--lattice-light); color: #dbe8e2; border-color: rgba(255,255,255,.10); }
.icd-band--dark h2 { color: #fff; }
.icd-band__inner { display: grid; gap: 2rem; }
@media (min-width: 900px) { .icd-band__inner { grid-template-columns: 1fr 1.2fr; align-items: start; } }

.icd-split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .icd-split { grid-template-columns: 1.1fr .9fr; align-items: center; } }

.icd-quote {
	position: relative;
	background-color: var(--white); background-image: var(--lattice);
	border-left: 4px solid var(--gold);
	padding: 1.6rem 1.7rem; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow);
}
.icd-quote p { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; line-height: 1.48; margin: 0 0 .7rem; color: var(--green-deep); }
.icd-quote cite { font-size: .82rem; color: var(--muted); font-style: normal; letter-spacing: .04em; text-transform: uppercase; }

.icd-cta { text-align: center; }
.icd-cta p { max-width: 58ch; margin-inline: auto; }
.icd-cta p:last-child { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- programs ---------- */
/* A card is never narrower than 420px, because below that the poster and its
   text cannot sit side by side and the flyer becomes unreadable. */
.icd-programs {
	display: grid;
	gap: 1.1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.icd-program {
	background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.icd-program--here { border-color: rgba(201, 162, 39, .55); box-shadow: var(--shadow-sm), inset 3px 0 0 var(--gold); }
.icd-program h3 { margin-bottom: .4rem; }
.icd-program p { font-size: .93rem; line-height: 1.62; color: var(--muted); }
.icd-pill {
	display: inline-block; background: var(--gold-soft); color: #6b5410;
	font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
	padding: .2rem .6rem; border-radius: 999px; margin: 0 0 .5rem !important;
}
.icd-credit { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }
.icd-credit__stamp { opacity: .8; }
.icd-note { font-size: .88rem; color: var(--muted); }
.icd-lead { font-size: 1.12rem; }

/* ---------- iftar / ramadan ---------- */
.icd-banner {
	display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
	background: linear-gradient(100deg, var(--green-deep), var(--green));
	color: #fff; border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 2.2rem 0 1.1rem;
	box-shadow: var(--shadow);
}
.icd-banner p { margin: 0; }
.icd-banner strong { color: var(--gold); }

.icd-iftar { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.icd-iftar h3 { margin-top: 1.6rem; }
.icd-iftar__maghrib { background: var(--gold-soft); padding: .7rem 1rem; border-radius: 10px; }
.icd-iftar__split { display: grid; gap: .35rem; background: var(--green-soft); padding: .9rem 1.1rem; border-radius: 10px; }
.icd-iftar__cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.icd-nights { list-style: none; margin: .8rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.icd-nights li {
	background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
	padding: .3rem .8rem; font-size: .86rem; font-variant-numeric: tabular-nums;
}
.icd-nights li.is-last10 { border-color: var(--gold); background: var(--gold-soft); }
.icd-nights li span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6b5410; margin-left: .35rem; }

.icd-tk {
	background: #fff5f5; border-left: 3px solid #d05353; color: #7a2020;
	padding: .6rem .9rem; font-size: .86rem; border-radius: 0 8px 8px 0;
}

/* ---------- month table + calendar ---------- */
.icd-month__table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .9rem; }
.icd-month { overflow-x: auto; }
.icd-month__table caption { text-align: left; padding: .8rem 0; font-weight: 600; color: var(--green-deep); }
.icd-month__table th, .icd-month__table td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.icd-month__table thead th { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--green-soft); }
.icd-month__table tr.is-friday { background: #fdfbf3; }
.icd-month__table tr.is-today { background: var(--gold-soft); font-weight: 600; }
.icd-month__note { font-size: .85rem; color: var(--muted); }
.icd-month__official { margin-top: 1.5rem; }
.icd-month__official summary { cursor: pointer; font-weight: 600; color: var(--green); }
.icd-month__frame { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1rem; }

.icd-calendar__frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.icd-calendar__frame iframe { width: 100%; height: 680px; border: 0; display: block; }

/* ---------- interior pages ---------- */
.icd-pagehead {
	position: relative;
	overflow: hidden;
	background: linear-gradient(115deg, #072b21, var(--green-deep) 55%, #0c4433);
	color: #fff;
	padding: clamp(2.6rem, 5vw, 3.9rem) 0;
	border-bottom: 3px solid var(--gold);
}
.icd-pagehead h1 { color: #fff; margin: 0; }
/* The reading measure belongs to the prose, not to the page. Capping the whole
   column left every gallery, timetable and card grid squeezed into 78ch with a
   dead margin beside it; the measure now sits on the text itself and the
   layout blocks take the full column. */
.icd-prose { padding: clamp(2.4rem, 5vw, 3.4rem) 0 var(--gap-section); max-width: none; }
.icd-prose > p,
.icd-prose > ul,
.icd-prose > ol,
.icd-prose > dl,
.icd-prose > h2,
.icd-prose > h3,
.icd-prose > h4,
.icd-prose > blockquote,
.icd-prose > .icd-prayer,
.icd-prose > .icd-iftar,
.icd-prose > .icd-donate,
.icd-prose > .icd-widget,
.icd-prose > .icd-tk { max-width: 78ch; }
.icd-prose h2 { margin-top: 2.6rem; }
.icd-prose h3 { margin-top: 1.9rem; }
.icd-prose > :first-child { margin-top: 0; }
.icd-prose ul { padding-left: 1.2rem; }
.icd-prose li { margin-bottom: .45rem; }

.icd-contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .icd-contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.icd-contact__map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }

.icd-give { display: grid; gap: 1rem; margin: 1.8rem 0; }
@media (min-width: 760px) { .icd-give { grid-template-columns: repeat(3, 1fr); } }
.icd-give__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.icd-give__card h3 { margin-bottom: .3rem; }

/* ---------- footer ---------- */
.icd-footer { background: var(--green-deep); color: #b9cdc4; margin-top: 3rem; padding: 3rem 0 1.5rem; }
.icd-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .icd-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .icd-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.icd-footer h3 { color: #fff; font-size: 1.05rem; }
.icd-footer a { color: #d9e7e1; text-decoration: none; }
.icd-footer a:hover { color: var(--gold); }
/* `.icd-footer a` outranks `.icd-btn--gold`, which left the footer's Donate
   button as pale text on gold — 1.9:1. The button states its colour here. */
.icd-footer .icd-btn, .icd-footer .icd-btn:hover { color: #fff; }
.icd-footer .icd-btn--gold, .icd-footer .icd-btn--gold:hover { color: #24200c; }
.icd-footer ul { list-style: none; margin: 0; padding: 0; }
.icd-footer li { margin-bottom: .45rem; }
.icd-footer small { color: #8fa89e; }
.icd-footer__times { font-variant-numeric: tabular-nums; color: #fff; }
.icd-footer__base {
	border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem;
	display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .82rem;
}
.icd-footer__base p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- giving ---------- */
.icd-donate { margin: 2rem 0 1rem; }
.icd-donate__head h2 { margin-bottom: .2rem; }
.icd-donate__head p { color: var(--muted); margin-top: 0; }

.icd-donate__amounts { display: grid; gap: .9rem; margin: 1.4rem 0; }
@media (min-width: 620px) { .icd-donate__amounts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .icd-donate__amounts { grid-template-columns: repeat(4, 1fr); } }

.icd-amount {
	display: block; text-decoration: none; color: inherit;
	background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
	padding: 1.15rem 1.1rem;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.icd-amount:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.icd-amount__num {
	display: block; font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 2.1rem; font-weight: 700; color: var(--green-deep); line-height: 1;
}
.icd-amount__label { display: block; font-weight: 600; margin: .35rem 0 .25rem; }
.icd-amount__text { display: block; font-size: .87rem; color: var(--muted); }

.icd-donate__any { margin: 0 0 2rem; }

.icd-donate__monthly {
	background: var(--green-deep); color: #dbe8e2;
	border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.8rem;
}
.icd-donate__monthly h3 { color: #fff; margin-top: 0; }
.icd-donate__monthly strong { color: var(--gold); }

.icd-donate__ways { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.icd-donate__ways ul { padding-left: 1.1rem; }
.icd-donate__ways li { margin-bottom: .5rem; }

/* Persistent, unobtrusive ask. Phone-only so it never covers the timetable. */
.icd-givebar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	background: rgba(8, 49, 37, .97); color: #fff;
	padding: .6rem 1rem; box-shadow: 0 -6px 18px rgba(0,0,0,.16);
}
.icd-givebar span { font-size: .92rem; }
.icd-givebar .icd-btn { padding: .45rem 1.1rem; font-size: .88rem; }
body { padding-bottom: 4rem; }
@media (min-width: 900px) {
	.icd-givebar { display: none; }
	body { padding-bottom: 0; }
}

/* ---------- Masjidal timetable link ---------- */
.icd-widget {
	display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
	background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
	border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.1rem 0 0;
	box-shadow: var(--shadow-sm);
}
.icd-widget h3 { margin: 0 0 .2rem; }
.icd-widget p { margin: 0; max-width: 52ch; }

.icd-nav__external > a::after { content: ""; }
@media (min-width: 900px) {
	.icd-nav__external > a { color: var(--green); font-weight: 600; }
}

.icd-donate__assurance {
	background: var(--green-soft); border-left: 4px solid var(--green);
	padding: .75rem 1rem; border-radius: 0 10px 10px 0; margin-top: 1rem;
}
.icd-donate__assurance strong { color: var(--green-deep); }

/* ---------- programme artwork ---------- */
/* Flyers are portrait posters, mostly around 1500x2000. They used to be
   letterboxed into a 290px landscape band, which showed a thin strip of poster
   between two slabs of flat colour. Instead the poster now stands in its own
   column at its true proportions — nothing cropped, nothing letterboxed — and
   the programme's text sits beside it, the way it would on a noticeboard. */
.icd-program.has-art {
	display: grid;
	/* Wide enough that a 1500x2000 flyer can still be read, capped so a short
	   description is not left floating beside a poster twice its height. */
	grid-template-columns: clamp(140px, 34%, 205px) minmax(0, 1fr);
	grid-template-rows: auto auto 1fr auto;
	column-gap: 1.3rem;
	align-content: start;
	padding: 1.25rem;
	overflow: visible;
}
.icd-program.has-art > .icd-program__art {
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(8, 49, 37, .12), 0 12px 26px rgba(8, 49, 37, .13);
}
.icd-program__art img {
	display: block;
	width: 100%;
	height: auto;          /* the whole poster, at its own aspect ratio */
	object-fit: contain;
}
.icd-program.has-art > *:not(.icd-program__art) { grid-column: 2; padding-inline: 0; }
.icd-program.has-art > h3 { padding-top: 0; align-self: start; }

/* On a phone there is no room for two columns, so the poster leads and is
   capped so a 1500x2000 flyer does not push the text off the screen. */
@media (max-width: 619px) {
	.icd-program.has-art { display: block; }
	.icd-program.has-art > .icd-program__art {
		max-width: 230px;
		margin: 0 auto 1rem;
	}
}

/* ---------- photo gallery ---------- */
/* Every cell carries a fixed proportion, so the rows line up instead of each
   photograph setting its own height and tearing holes in the grid. The lead
   photograph takes a 2x2 block; `dense` back-fills any gap it leaves. */
.icd-gallery { margin: 1rem 0; }
.icd-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-flow: dense;
	gap: .6rem;
}
@media (min-width: 700px)  { .icd-gallery__grid { grid-template-columns: repeat(3, 1fr); gap: .8rem; } }
@media (min-width: 1000px) { .icd-gallery__grid { grid-template-columns: repeat(4, 1fr); } }

.icd-gallery__item {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: var(--green-soft);
	aspect-ratio: 1 / 1;
	box-shadow: var(--shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}
/* A hairline inside the corner radius gives the tile an edge on cream without
   a border that would fight the photograph. */
.icd-gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(8, 49, 37, .07);
	pointer-events: none;
}
.icd-gallery__item img {
	display: block; width: 100%; height: 100%;
	/* Biased above centre: in a group photograph the faces are in the top
	   half, so a centred crop is the one that cuts them. */
	object-fit: cover; object-position: center 38%;
	transition: transform .5s ease;
}
.icd-gallery__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.icd-gallery__item:hover img { transform: scale(1.045); }

/* The lead photograph carries the block; the rest sit around it. */
.icd-gallery__item.is-wide { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (min-width: 700px) {
	.icd-gallery__item { aspect-ratio: 4 / 3; }
	.icd-gallery__item.is-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
	.icd-gallery__item.is-wide img { object-position: center 42%; }
}

/* ---------- flyer wall ---------- */
/* Posters keep their own proportions and are laid out in columns, so nothing
   is cropped and no row is padded out to match the tallest flyer in it. */
.icd-flyers { display: block; columns: 2; column-gap: 1rem; }
@media (min-width: 760px)  { .icd-flyers { columns: 3; } }
@media (min-width: 1060px) { .icd-flyers { columns: 4; } }
.icd-flyer {
	break-inside: avoid; -webkit-column-break-inside: avoid;
	margin: 0 0 1rem; background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.icd-flyer img { display: block; width: 100%; height: auto; }
.icd-flyer figcaption { padding: .6rem .8rem; font-size: .82rem; line-height: 1.45; color: var(--muted); }

/* ---------- Masjidal embedded prayer widget ---------- */
/* The widget draws its own ~230px card and centres it, so the frame is given a
   white panel to sit on and a fixed height — an iframe cannot size itself to
   its content across origins. */
.icd-embed {
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border-top: 4px solid var(--gold);
	padding: 1rem .75rem .5rem;
	/* The widget's own card needs 340px of usable width. The panel is capped so
	   it does not stretch across the column, but the cap must leave 340px INSIDE
	   the padding — at 360px it left 336px and the frame scrolled by 4px. */
	max-width: 404px;
	margin-inline: auto;
}
.icd-embed__frame {
	position: relative;
	/* Measured, not guessed: the widget's own content is 497px tall at this
	   width. At 430px the "View monthly calendar" link and the Masjidal credit
	   were cut off the bottom. */
	min-height: 515px;
	/* Faint placeholder so the card never looks broken while the frame paints. */
	background:
		repeating-linear-gradient(
			var(--cream) 0 38px,
			#f1efe8 38px 39px
		) center / 100% auto no-repeat;
	border-radius: 8px;
	overflow: hidden;
}
.icd-embed__frame iframe {
	position: relative;
	width: 100%;
	height: 515px;
	border: 0;
	display: block;
}
.icd-embed__summary {
	margin: .4rem 0 .3rem;
	text-align: center;
	font-size: .9rem;
	color: var(--muted);
	border-top: 1px solid var(--line);
	padding-top: .7rem;
}
.icd-embed__summary strong { color: var(--green-deep); }

/* The widget's own card needs roughly 340px or its IQAMAH column is cut off.
   On a narrow phone the panel is widened towards the screen edges to give it
   that room, and the frame can scroll sideways as a last resort so a time is
   never silently clipped. */
.icd-embed__frame iframe { min-width: 340px; }
/* The sideways-scroll escape hatch is only needed where the card is narrower
   than the widget; above that it just draws a scrollbar across the hero. */
@media (max-width: 560px) {
	.icd-embed__frame { overflow-x: auto; }
}

@media (max-width: 560px) {
	.icd-embed {
		max-width: none;
		margin-inline: -.7rem;
		padding: .8rem .3rem .4rem;
	}
	.icd-embed__frame, .icd-embed__frame iframe { height: 525px; min-height: 525px; }
}

/* ---------- "Our masjid" — ICD's own photographs ---------- */
.icd-house { display: grid; gap: 1.6rem; }
@media (min-width: 900px) {
	.icd-house { grid-template-columns: .85fr 1.15fr; align-items: center; gap: 2.6rem; }
}
.icd-house__intro p:last-child { margin-bottom: 0; }
/* The masjid owns only two photographs, so they get a row of their own rather
   than being folded into the wider community grid where they would be lost. */
.icd-house .icd-gallery { margin: 0; }
.icd-house .icd-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.icd-house .icd-gallery__item.is-wide { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.icd-house .icd-gallery__item { aspect-ratio: 4 / 3; }

/* ---------- footer ornament ---------- */
.icd-footer { position: relative; background-image: var(--lattice-light); }
.icd-footer::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 3px;
	background: linear-gradient(90deg, rgba(201,162,39,0), var(--gold) 20%, var(--gold) 80%, rgba(201,162,39,0));
}
.icd-footer h3 { position: relative; padding-bottom: .5rem; }
.icd-footer h3::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 34px; height: 2px; border-radius: 1px;
	background: rgba(201, 162, 39, .65);
}

/* ---------- prayer card ---------- */
/* Lifted a little further off the hero photograph so it reads as the first
   thing on the page rather than a panel laid on top of it. */
.icd-prayer, .icd-embed { box-shadow: 0 10px 24px rgba(3, 24, 18, .22), 0 28px 60px rgba(3, 24, 18, .26); }

/* ---------- phone & tablet header ----------
   Below 1120px the burger is in charge, which now covers tablets as well as
   phones, so this menu has to be a real menu rather than a squashed desktop
   one: full-width rows, thumb-sized targets, and the masjid's name legible
   without crowding the button. */
@media (max-width: 1119px) {
	/*
	 * The header is a flex row, and flex-wrap defaults to nowrap — so the menu
	 * was being squeezed into the space left beside the logo (199px of a 375px
	 * screen) instead of dropping below it. The row must be allowed to wrap, and
	 * the menu must claim a whole line of its own.
	 */
	.icd-header__inner { gap: .75rem; padding: .65rem 0; flex-wrap: wrap; align-items: center; }
	.icd-nav { flex: 1 0 100%; }

	.icd-brand { gap: .6rem; min-width: 0; flex: 1 1 auto; }
	.icd-brand img,
	.icd-brand .custom-logo,
	.icd-brand__logo { width: 42px; }
	.icd-brand__text strong { font-size: 1.05rem; }
	.icd-brand__text small { font-size: .6rem; letter-spacing: .16em; }

	/* A proper 44px target, and a clear pressed state. */
	.icd-burger {
		width: 44px; height: 44px;
		display: grid; place-content: center;
		border-radius: 10px;
		flex: 0 0 auto;
	}
	.icd-burger:hover { background: var(--green-soft); }
	.icd-burger[aria-expanded="true"] { background: var(--green-soft); }

	/*
	 * A drawer down the right-hand side, which is the layout the masjid asked
	 * to keep. Taken out of the flex flow with position:fixed so it is a real
	 * panel rather than a menu squeezed into whatever space the logo left over.
	 */
	.icd-nav.is-open {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(82vw, 330px);
		margin: 0;
		padding: 1rem 1.15rem 2rem;
		background: var(--white);
		border-left: 1px solid var(--line);
		box-shadow: -18px 0 44px rgba(3, 24, 18, .22);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		z-index: 60;
		animation: icd-drawer .22s ease-out;
	}
	@keyframes icd-drawer {
		from { transform: translateX(100%); }
		to   { transform: translateX(0); }
	}
	@media (prefers-reduced-motion: reduce) {
		.icd-nav.is-open { animation: none; }
	}
	.icd-nav__list a {
		padding: .95rem .25rem;
		font-size: 1.02rem;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.icd-nav__list a::after {
		content: "›";
		color: var(--muted);
		font-size: 1.1rem;
		opacity: .55;
	}
	.icd-nav__external > a { color: var(--green); font-weight: 600; }
	/* Donate is the one action, so it reads as a button and spans the panel. */
	.icd-nav__cta {
		display: block;
		text-align: center;
		margin-top: 1rem;
		padding: .85rem 1rem;
		font-size: 1rem;
	}
}

/* Very small phones: the full name would wrap onto three lines. */
@media (max-width: 380px) {
	.icd-brand__text strong { font-size: .95rem; }
	.icd-brand img,
	.icd-brand .custom-logo,
	.icd-brand__logo { width: 38px; }
	.icd-topbar { font-size: .74rem; }
	.icd-topbar .icd-wrap { gap: .1rem .9rem; }
}

/* ---------- the masjid's own classes ---------- */
.icd-classes { margin-top: 1.6rem; }
.icd-class {
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius);
	padding: 1.25rem 1.35rem;
}
.icd-class h3 { margin: .1rem 0 .4rem; }
.icd-class p { margin: 0 0 .6rem; }
.icd-pill.is-live {
	background: var(--green-soft);
	color: var(--green-deep);
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}
.icd-pill.is-live::before {
	content: "";
	width: 7px; height: 7px; border-radius: 50%;
	background: #1f9d55;
}
.icd-class__facts { margin: .9rem 0; display: grid; gap: .45rem; }
.icd-class__facts > div { display: grid; grid-template-columns: 4.5rem 1fr; gap: .6rem; align-items: baseline; }
.icd-class__facts dt {
	font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted); font-weight: 600;
}
.icd-class__facts dd { margin: 0; font-size: .95rem; }
.icd-class__register { margin: 1rem 0 0 !important; font-size: .92rem; color: var(--muted); }
.icd-class__register .icd-btn { margin-top: .6rem; }

/* Phone and email sit together at the right of the top bar. */
.icd-topbar__contact { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
@media (max-width: 480px) {
	.icd-topbar .icd-wrap { flex-direction: column; align-items: flex-start; gap: .15rem; }
	.icd-topbar__contact { gap: .15rem .9rem; }
}

/* Flyer beside the class details. Portrait artwork (this one is 1024x1536),
   shown whole rather than cropped — a flyer with its dates sliced off is
   worse than no flyer. */
.icd-class.has-flyer {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}
@media (min-width: 620px) {
	.icd-class.has-flyer { grid-template-columns: clamp(150px, 32%, 230px) 1fr; }
}
.icd-class__flyer {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	background: var(--green-soft);
	border: 1px solid var(--line);
	transition: transform .18s ease, box-shadow .18s ease;
}
.icd-class__flyer:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.icd-class__flyer img { display: block; width: 100%; height: auto; }
@media (max-width: 619px) {
	.icd-class__flyer { max-width: 260px; margin-inline: auto; }
}

/* ---------- iftar sign-up ---------- */
.icd-signup { margin: 2rem 0; }
.icd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.icd-msg { border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.6rem; }
.icd-msg p { margin: .5rem 0 0; }
.icd-msg--ok { background: var(--green-soft); border-left: 4px solid var(--green); }
.icd-msg--ok strong { color: var(--green-deep); }
.icd-msg--warn { background: #fdf6e6; border-left: 4px solid var(--gold); }

.icd-form {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
}
.icd-form__row { display: grid; gap: 0 1.1rem; }
@media (min-width: 620px) { .icd-form__row { grid-template-columns: 1fr 1fr; } }

.icd-field { margin: 0 0 1.1rem; }
.icd-field label {
	display: block; font-size: .8rem; font-weight: 600; color: var(--green-deep);
	letter-spacing: .04em; margin-bottom: .35rem;
}
.icd-field label span {
	font-weight: 400; color: var(--muted); text-transform: uppercase;
	font-size: .65rem; letter-spacing: .12em; margin-left: .4rem;
}
.icd-field input, .icd-field select {
	width: 100%;
	padding: .7rem .8rem;
	font: inherit;
	font-size: .98rem;
	color: var(--ink);
	background: var(--cream);
	border: 1px solid var(--line);
	border-radius: 9px;
}
.icd-field input:focus, .icd-field select:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(14, 79, 60, .13);
	background: #fff;
}
.icd-signup .icd-btn { font-size: 1rem; padding: .8rem 1.6rem; }

/* the nights list on the Ramadan page */
.icd-nights-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
@media (min-width: 700px) { .icd-nights-grid { grid-template-columns: repeat(2, 1fr); } }
.icd-nights-grid li {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
	padding: .6rem .9rem; border-radius: 9px;
	background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
	font-size: .95rem;
}
.icd-nights-grid li.is-open { border-left-color: var(--line); }
.icd-night__date { font-variant-numeric: tabular-nums; color: var(--green-deep); font-weight: 600; }
.icd-night__who { color: var(--ink); text-align: right; }
.icd-night__open { color: var(--muted); font-style: italic; }

/* ---------- what's on ---------- */
.icd-whatson__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.icd-whatson__all { font-size: .92rem; font-weight: 600; white-space: nowrap; }
.icd-whatson__grid { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
@media (min-width: 860px) { .icd-whatson__grid { grid-template-columns: minmax(230px, .8fr) 1.6fr; align-items: start; } }

/* Jumu'ah is the one fixed point of the week, so it gets its own card. */
.icd-jumuah {
	background: linear-gradient(160deg, var(--green), var(--green-deep));
	color: #fff; border-radius: var(--radius); padding: 1.5rem;
	display: flex; flex-direction: column; justify-content: center;
	min-height: 100%;
}
.icd-jumuah__k { margin: 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.icd-jumuah__t {
	margin: .3rem 0 .1rem; font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 2.9rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
}
.icd-jumuah__d { margin: 0; font-weight: 600; color: #fff; }
.icd-jumuah__n { margin: .5rem 0 0; font-size: .85rem; color: #b9d3c9; }

.icd-events { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.icd-events li {
	display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; align-items: center;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: .8rem 1rem;
	transition: border-color .15s ease, transform .15s ease;
}
.icd-events li:hover { border-color: var(--gold); transform: translateX(2px); }
.icd-events li.is-today { border-left: 3px solid var(--gold); background: var(--gold-soft); }
.icd-events__date {
	text-align: center; line-height: 1;
	background: var(--green-soft); border-radius: 9px; padding: .45rem .2rem;
}
.icd-events__date strong { display: block; font-size: 1.25rem; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.icd-events__date em {
	display: block; font-style: normal; font-size: .64rem; letter-spacing: .12em;
	text-transform: uppercase; color: var(--muted); margin-top: .15rem;
}
.icd-events__body { min-width: 0; }
.icd-events__title { display: block; font-weight: 600; color: var(--ink); }
.icd-events__when { display: block; font-size: .84rem; color: var(--muted); margin-top: .1rem; }

/* ---------- Zelle / hadiya block ---------- */
.icd-zelle {
	display: inline-block;
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius);
	padding: 1.1rem 1.6rem;
	margin: 1.2rem 0;
	min-width: 16rem;
}
.icd-zelle p { margin: 0; }
.icd-zelle__k {
	font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
	color: var(--muted); font-weight: 600;
}
.icd-zelle__v {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 2rem; line-height: 1.1; color: var(--green-deep);
	font-variant-numeric: tabular-nums; margin: .2rem 0 .1rem !important;
}
.icd-zelle__n { font-size: .9rem; color: var(--muted); }

/* ---------- video wall ---------- */
.icd-videos { display: grid; gap: 1.2rem; margin: 1.4rem 0; }
@media (min-width: 700px) { .icd-videos { grid-template-columns: repeat(2, 1fr); } }
.icd-video { margin: 0; }
.icd-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--green-deep);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.icd-video__frame iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%; border: 0;
}
.icd-video figcaption { padding: .6rem .2rem 0; }
.icd-video figcaption strong { display: block; color: var(--green-deep); }
.icd-video figcaption span { display: block; font-size: .85rem; color: var(--muted); }

/* ---------- explicit close on the phone menu ---------- */
/* Hidden on desktop, where the menu is always open and has no close. */
.icd-nav__close { display: none; }

@media (max-width: 1119px) {
	/* Top-right of the drawer — where a thumb reaches and where the eye looks
	   first on a panel that slid in from the right. */
	.icd-nav.is-open .icd-nav__close {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: .4rem;
		margin: 0 0 .6rem auto;
		width: auto;
		min-height: 44px;
		padding: 0 1rem;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: var(--cream);
		color: var(--green-deep);
		font: inherit;
		font-size: .85rem;
		font-weight: 600;
		letter-spacing: .04em;
		text-transform: uppercase;
		cursor: pointer;
		/* Stays put while the list scrolls, so it can never be scrolled away. */
		position: sticky;
		top: 0;
		z-index: 2;
	}
	.icd-nav.is-open .icd-nav__close span { font-size: 1.5rem; line-height: 1; margin-top: -2px; }
	.icd-nav.is-open .icd-nav__close:hover,
	.icd-nav.is-open .icd-nav__close:focus-visible {
		background: var(--green-soft);
		border-color: var(--green);
		outline: none;
	}

	/* The burger's X, made unmistakable rather than a faint hairline. */
	.icd-burger[aria-expanded="true"] span { background: var(--green-deep); height: 2.5px; }
}

/* Dim the page behind the drawer, and let a tap anywhere on it close the menu. */
@media (max-width: 1119px) {
	body.icd-nav-open::after {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(3, 24, 18, .42);
		z-index: 55;
		animation: icd-fade .22s ease-out;
	}
	/*
	 * The drawer lives inside the sticky header, which has its own stacking
	 * context at z-index 50 — so the drawer's z-index can never lift it above a
	 * backdrop attached to <body>. The header itself has to be raised.
	 */
	body.icd-nav-open .icd-header { z-index: 60; }
	@keyframes icd-fade { from { opacity: 0; } to { opacity: 1; } }
	/* The page must not scroll behind an open drawer. */
	body.icd-nav-open { overflow: hidden; }
}
