/* IALFM design layer on top of the Ollie theme, loaded as Additional CSS by import.php */
:root {
  --ialfm-green: #037A3D; --ialfm-bright: #02A651; --ialfm-night: #0B2E1C; --ialfm-gold: #C4AB57;
  --ialfm-sand: #F7F4EA; --ialfm-line: #E6E0CC; --ialfm-soft: #4A5A50;
  --ialfm-shadow: 0 1px 2px rgba(11, 46, 28, .06), 0 10px 30px rgba(11, 46, 28, .08);
}

/* Header */
.ialfm-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  /* no backdrop-filter here: it would trap the phone menu overlay (position:fixed) inside the header's 79px */
  border-bottom: 1px solid var(--ialfm-line); padding-block: 10px; }
.admin-bar .ialfm-header { top: 32px; }
.ialfm-header .ialfm-site-title a { font-weight: 800; font-size: 1.35rem; letter-spacing: .08em; color: var(--ialfm-night); text-decoration: none; }
.ialfm-header .wp-block-navigation { font-size: .98rem; font-weight: 500; gap: 1.6rem; }
.ialfm-header .wp-block-navigation-item__content:hover { color: var(--ialfm-green); }
.ialfm-header .wp-block-navigation__submenu-container { border-radius: 12px; border: 1px solid var(--ialfm-line) !important; box-shadow: var(--ialfm-shadow); padding: 8px 0; }
.ialfm-header-cta .wp-block-button__link { background: var(--ialfm-gold); color: var(--ialfm-night); font-weight: 700; padding: .6em 1.3em; border-radius: 999px; }
.ialfm-header-cta .wp-block-button__link:hover { background: var(--ialfm-night); color: #fff; }
@media (max-width: 600px) { .ialfm-header .ialfm-site-title { display: none; } }

/* Buttons everywhere: pill shaped */
.wp-element-button, .wp-block-button__link { border-radius: 999px; font-weight: 600; padding: .75em 1.6em; transition: background .2s, color .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; }

/* Small uppercase label above headings */
.ialfm-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem !important; font-weight: 700; color: var(--ialfm-gold); margin-bottom: .25rem !important; }

/* Hero */
.wp-block-cover.alignfull { margin-top: 0 !important; }
.wp-block-cover .wp-block-cover__background { background: linear-gradient(180deg, rgba(11, 46, 28, .55) 0%, rgba(11, 46, 28, .85) 100%) !important; opacity: 1 !important; }
.wp-block-cover h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.08; font-weight: 800; max-width: 16ch; margin-inline: auto; }
.wp-block-cover p { color: rgba(255, 255, 255, .88); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; margin-inline: auto; }
.wp-block-cover .ialfm-eyebrow { color: var(--ialfm-gold); }
.wp-block-cover .wp-block-button__link { background: var(--ialfm-gold); color: var(--ialfm-night); }
.wp-block-cover .is-style-outline .wp-block-button__link { background: transparent; color: #fff; }
.ialfm-hero-fallback { background: radial-gradient(circle at 20% 0%, #14553a, var(--ialfm-night) 70%); color: #fff; padding: 120px 24px; text-align: center; }
.ialfm-hero-fallback h1 { color: #fff; }

/* Full-width home sections */
.ialfm-band { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px) !important; margin-block: 0 !important; }
.ialfm-band > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-top: 0; }
.ialfm-band > .wp-block-columns, .ialfm-band > .ialfm-today { margin-top: 40px; }
.ialfm-band--sand { background: var(--ialfm-sand); }
.ialfm-band--white { background: #fff; }
.ialfm-band--night { background: var(--ialfm-night); color: #E9EFEA; }
.ialfm-band--night h2, .ialfm-band--night h3 { color: #fff; }
.ialfm-band--night a:not(.wp-block-button__link) { color: #fff; }
.ialfm-band--night .wp-block-column { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .12) !important; box-shadow: none !important; }
.ialfm-band--night .wp-block-button__link { background: var(--ialfm-gold); color: var(--ialfm-night); }

/* Cards */
.ialfm-cards { gap: 28px !important; margin-bottom: 28px !important; }
.ialfm-cards > .wp-block-column:not(:empty) {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ialfm-line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--ialfm-shadow); padding-bottom: 24px; transition: transform .25s ease, box-shadow .25s ease;
}
.ialfm-cards > .wp-block-column:not(:empty):hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 46, 28, .06), 0 18px 40px rgba(11, 46, 28, .14); }
.ialfm-cards > .wp-block-column > *:not(.wp-block-image) { margin-inline: 24px; }
.ialfm-cards > .wp-block-column > :first-child:not(.wp-block-image) { margin-top: 28px; }
.ialfm-cards > .wp-block-column:not(:empty):not(:has(.wp-block-image)) { border-top: 4px solid var(--ialfm-gold); }
.ialfm-cards .wp-block-image { margin: 0 0 20px; }
.ialfm-cards .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; display: block; }
.ialfm-flyers .wp-block-image { background: var(--ialfm-sand); }
.ialfm-flyers .wp-block-image img { aspect-ratio: 4 / 5; object-fit: contain; }
.ialfm-cards h3 { font-size: 1.3rem; font-weight: 700; margin: .2rem 0 .5rem; }
.ialfm-cards p { color: var(--ialfm-soft); }
.ialfm-cards .wp-block-buttons { margin-top: auto; padding-top: 12px; }
.ialfm-cards .wp-block-list { padding-left: 1.1em; color: var(--ialfm-soft); }
.ialfm-cards .wp-block-list li::marker { color: var(--ialfm-bright); }
.ialfm-plain .wp-block-column { padding-bottom: 28px; }
@media (max-width: 781px) { .ialfm-cards > .wp-block-column:empty { display: none; } }

/* Today's prayer times */
.ialfm-today__date { font-weight: 600; text-align: center; color: var(--ialfm-soft); margin-bottom: 20px; }
.ialfm-today__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.ialfm-today__grid div { background: #fff; border: 1px solid var(--ialfm-line); border-radius: 18px; padding: 22px 12px; text-align: center; box-shadow: var(--ialfm-shadow); }
.ialfm-today__grid span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ialfm-soft); margin-bottom: 6px; }
.ialfm-today__grid strong { font-size: 1.6rem; font-weight: 800; color: var(--ialfm-night); }
.ialfm-today__grid .is-next { background: var(--ialfm-green); border-color: var(--ialfm-green); transform: translateY(-4px); }
.ialfm-today__grid .is-next span, .ialfm-today__grid .is-next strong { color: #fff; }

/* Inner pages */
.wp-block-post-title { font-weight: 800; letter-spacing: -.01em; }
.wp-block-post-title::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--ialfm-gold); margin-top: 18px; }
.ialfm-cta { background: var(--ialfm-night); color: #E9EFEA; border-radius: 24px; padding: 40px clamp(20px, 4vw, 48px) !important; margin-block: 48px !important; }
.ialfm-cta h2 { color: #fff; margin-top: 0; }
.ialfm-cta .wp-block-button__link { background: var(--ialfm-gold); color: var(--ialfm-night); }
.wp-block-columns:not(.ialfm-cards) .wp-block-image img { border-radius: 18px; }

/* Tables and fold-out months */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--ialfm-line); border-radius: 14px; overflow: hidden; }
.wp-block-table thead { background: var(--ialfm-sand); border-bottom: 0; }
.wp-block-table th { font-weight: 700; color: var(--ialfm-night); }
.wp-block-table td, .wp-block-table th { border: 0; border-bottom: 1px solid var(--ialfm-line); padding: .7em .9em; }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table tbody tr:hover { background: #FBFAF4; }
.ialfm-prayer-table table { font-size: .9rem; min-width: 640px; }
.wp-block-details { border: 1px solid var(--ialfm-line); border-radius: 14px; padding: 14px 20px; margin-block: 12px; background: #fff; }
.wp-block-details[open] { box-shadow: var(--ialfm-shadow); }
.wp-block-details summary { font-weight: 700; cursor: pointer; color: var(--ialfm-night); }
.wp-block-details summary::marker { color: var(--ialfm-gold); }

/* Footer */
.ialfm-footer { background: var(--ialfm-night); color: #C9D6CD; padding: 72px clamp(16px, 4vw, 40px) 28px !important; margin-top: 0 !important; border-top: 4px solid var(--ialfm-gold); }
.ialfm-footer h3 { color: var(--ialfm-gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.ialfm-footer a { color: #fff; text-decoration: none; }
.ialfm-footer a:not(.wp-block-button__link):hover { color: var(--ialfm-gold); }
/* the footer's gold button: turn white on hover (the text-link hover above would make it gold on gold) */
.ialfm-footer .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #fff; color: var(--ialfm-night); }
.ialfm-footer ul { list-style: none; padding-left: 0; line-height: 2; }
.ialfm-footer .wp-block-button__link { background: var(--ialfm-gold); color: var(--ialfm-night); }
.ialfm-footer > .has-text-align-center { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; margin-top: 40px; font-size: .9rem; }

/* ---- Wide-screen section pages (v2_layout.py) ---- */
body { --ialfm-header-h: 78px; }
.admin-bar { --ialfm-admin: 32px; }
[id] { scroll-margin-top: calc(var(--ialfm-header-h) + var(--ialfm-jump-h, 96px) + 12px + var(--ialfm-admin, 0px)); }

/* title band */
.ialfm-titleband { background: var(--ialfm-sand); padding: 44px clamp(16px, 4vw, 40px) 28px !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.ialfm-titleband h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; margin: 0 0 .4rem; }
.ialfm-titleband h1::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--ialfm-gold); margin-top: 12px; }
.ialfm-titleband p { max-width: 82ch; color: var(--ialfm-soft); font-size: 1.05rem; margin-top: 14px; }

/* sticky section links */
.ialfm-jumpbar { position: sticky; top: calc(var(--ialfm-header-h) + var(--ialfm-admin, 0px)); z-index: 40; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--ialfm-line); padding: 10px clamp(16px, 4vw, 40px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.ialfm-jump { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 auto !important; overflow-x: auto; scrollbar-width: none; }
.ialfm-jump a { flex: none; padding: 6px 14px; border: 1px solid var(--ialfm-line); border-radius: 999px; background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--ialfm-green); text-decoration: none; }
.ialfm-jump a:hover { background: var(--ialfm-green); border-color: var(--ialfm-green); color: #fff; }

/* sections use the whole wide width */
.ialfm-section { padding: 36px 0 8px; margin-top: 0 !important; margin-bottom: 0 !important; }
.ialfm-section + .ialfm-section { border-top: 1px solid var(--ialfm-line); }
.ialfm-section > h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); font-weight: 800; margin: 0 0 16px; }
.ialfm-section > .ialfm-eyebrow + h2 { margin-top: 0; }
.ialfm-section p, .ialfm-section li { font-size: 1rem; line-height: 1.6; }
.ialfm-section .wp-block-list { margin-top: 0; }
.ialfm-section .wp-block-list li { margin-bottom: .3em; }
.ialfm-section .wp-block-columns { gap: 28px; margin-bottom: 20px; }
.ialfm-section h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 10px; }
main > .entry-content > .ialfm-section:last-child, .wp-block-post-content > .ialfm-section:last-child { padding-bottom: 56px; }

/* side panel */
.ialfm-aside { background: var(--ialfm-sand); border: 1px solid var(--ialfm-line); border-radius: 16px; padding: 22px 24px !important; }
.ialfm-aside .wp-block-list { padding-left: 1.1em; }
.ialfm-aside .wp-block-buttons { margin: 14px 0 8px; }
.ialfm-split { align-items: flex-start !important; }

/* compact tables */
.ialfm-compact table { font-size: .9rem; }
.ialfm-compact td, .ialfm-compact th { padding: .45em .7em !important; }
.ialfm-section .wp-block-table { margin: 0 0 16px; }

/* fold-outs laid out in a grid; an open one spans the row */
.ialfm-months { display: grid; gap: 10px 14px; align-items: start; margin-top: 8px; }
.ialfm-months--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ialfm-months--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ialfm-months > .wp-block-details { margin: 0 !important; }
.ialfm-months > .wp-block-details[open] { grid-column: 1 / -1; }
.ialfm-prayer-table table { min-width: 0; }
@media (max-width: 900px) { .ialfm-months--2, .ialfm-months--3 { grid-template-columns: 1fr; } }

/* cards inside sections */
.ialfm-section .ialfm-cards { gap: 20px !important; }
.ialfm-section .ialfm-cards > .wp-block-column > :first-child:not(.wp-block-image) { margin-top: 22px; }
.ialfm-section .ialfm-cards > .wp-block-column > *:not(.wp-block-image) { margin-inline: 22px; }
.ialfm-flyers .wp-block-image img { aspect-ratio: 3 / 4; }
.ialfm-gallery { gap: 12px !important; }
.ialfm-gallery > .wp-block-column { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.ialfm-gallery .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px !important; }

/* home: today's times inside the hero */
.ialfm-today--hero { max-width: 980px; margin: 18px auto 8px; }
.ialfm-today--hero .ialfm-today__date { color: rgba(255,255,255,.85); }
.ialfm-today--hero .ialfm-today__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ialfm-today--hero .ialfm-today__grid div { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); box-shadow: none; padding: 14px 6px; }
.ialfm-today--hero .ialfm-today__grid span { color: rgba(255,255,255,.8); }
.ialfm-today--hero .ialfm-today__grid strong { color: #fff; font-size: 1.3rem; }
.ialfm-today--hero .ialfm-today__grid .is-next { background: var(--ialfm-gold); border-color: var(--ialfm-gold); }
.ialfm-today--hero .ialfm-today__grid .is-next span, .ialfm-today--hero .ialfm-today__grid .is-next strong { color: var(--ialfm-night); }
@media (max-width: 700px) { .ialfm-today--hero .ialfm-today__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ialfm-band { padding: clamp(44px, 6vw, 72px) clamp(16px, 4vw, 40px) !important; }
.ialfm-band > .wp-block-columns, .ialfm-band > .ialfm-today { margin-top: 28px; }

/* header */
.ialfm-signin .wp-block-button__link { background: transparent !important; color: var(--ialfm-night) !important; border: 2px solid var(--ialfm-line) !important; }
.ialfm-signin .wp-block-button__link:hover { border-color: var(--ialfm-night) !important; }
@media (max-width: 600px) { .ialfm-signin { display: none; } }
.ialfm-flyers { align-items: flex-start !important; }

/* newsletter signup, embeds, committees */
.ialfm-subscribe { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.ialfm-subscribe input[type=email] { flex: 1 1 200px; padding: .7em 1em; border: 1px solid var(--ialfm-line); border-radius: 999px; font: inherit; }
.ialfm-subscribe button { border: 0; cursor: pointer; background: var(--ialfm-green); color: #fff; border-radius: 999px; padding: .7em 1.4em; font-weight: 600; }
.ialfm-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin-bottom: 14px; background: #000; }
.ialfm-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ialfm-fb { max-width: 500px; }
.ialfm-fb iframe { width: 100%; border-radius: 12px; }
.ialfm-committees td:nth-child(2) { color: var(--ialfm-soft); }
.ialfm-committees td:last-child, .ialfm-committees td:nth-child(3) { white-space: nowrap; }
.ialfm-footer .wp-block-buttons { gap: 8px; }

/* live cards from the portal plugin */
.ialfm-live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 8px 0 18px; }
.ialfm-live-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ialfm-live-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ialfm-line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--ialfm-shadow); transition: transform .25s, box-shadow .25s; }
.ialfm-live-card:hover { transform: translateY(-3px); }
.ialfm-live-card__img { display: block; background: var(--ialfm-sand); }
.ialfm-live-card__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.ialfm-live-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.ialfm-live-card__body h3 { font-size: 1.2rem; margin: 2px 0 8px; }
.ialfm-live-card__body p { margin: 0 0 8px; color: var(--ialfm-soft); font-size: .95rem; }
.ialfm-live-card__body p:last-child { margin-top: auto; padding-top: 6px; }
.ialfm-live-card__where { font-weight: 600; color: var(--ialfm-night) !important; }
.ialfm-campaign { border-top: 4px solid var(--ialfm-gold); }
.ialfm-progress { position: relative; height: 12px; border-radius: 999px; background: #EFEBDD; overflow: hidden; margin: 8px 0 6px; }
.ialfm-progress span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.ialfm-progress__pledged { background: #B9DCC7; }
.ialfm-progress__donated { background: var(--ialfm-green); }
.ialfm-progress__legend { font-size: .9rem !important; }
.ialfm-live-more { text-align: center; }
.ialfm-band .ialfm-live-grid { margin-top: 28px; }

/* contact form */
.ialfm-form { display: grid; gap: 14px; }
.ialfm-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ialfm-night); }
.ialfm-form input, .ialfm-form select, .ialfm-form textarea { font: inherit; font-weight: 400; padding: .7em .9em; border: 1px solid var(--ialfm-line);
  border-radius: 10px; background: #fff; width: 100%; box-sizing: border-box; }
.ialfm-form input:focus, .ialfm-form select:focus, .ialfm-form textarea:focus { outline: 2px solid var(--ialfm-green); outline-offset: 1px; border-color: transparent; }
.ialfm-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.ialfm-form__hp { position: absolute !important; left: -9999px; }
.ialfm-form__note { font-size: .88rem !important; color: var(--ialfm-soft); margin: 0 !important; }
.ialfm-form button { justify-self: start; border: 0; cursor: pointer; }
.ialfm-form__ok, .ialfm-form__err { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.ialfm-form__ok { background: #E4F3EA; color: #0B4A2A; }
.ialfm-form__err { background: #FBE9E7; color: #8A1F11; }
.ialfm-footer > .has-text-align-center a { color: #C9D6CD; text-decoration: underline; }

/* comfortable reading width for running text in sections */
.ialfm-section > p, .ialfm-section > .wp-block-list { max-width: 92ch; }

/* ================================================================ home: one-screen hero */
.ialfm-home-hero { min-height: min(calc(100svh - var(--ialfm-header-h) - var(--ialfm-admin, 0px)), 1000px) !important; padding: 28px clamp(16px, 4vw, 48px) 18px !important;
  align-items: stretch !important; }
.ialfm-home-hero .wp-block-cover__image-background { object-position: 50% 70%; }
.ialfm-home-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 24, 15, .82) 0%, rgba(6, 24, 15, .55) 50%, rgba(6, 24, 15, .15) 100%),
              linear-gradient(0deg, rgba(6, 24, 15, .7) 0%, rgba(6, 24, 15, 0) 30%); }
.ialfm-home-hero .wp-block-cover__inner-container { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center;
  gap: 18px; width: 100%; max-width: var(--wp--style--global--wide-size, 1320px) !important; margin: 0 auto; }
.ialfm-hero-cols { align-items: center !important; gap: clamp(20px, 3vw, 48px) !important; margin: 0 !important; }
.ialfm-home-hero h1 { font-size: clamp(1.9rem, 3.4vw, 3rem) !important; line-height: 1.1; max-width: 18ch; margin: 4px 0 10px !important; text-align: left; }
.ialfm-home-hero .ialfm-eyebrow { color: var(--ialfm-gold); text-align: left !important; }

/* prayer times in the hero */
.ialfm-home-hero .ialfm-today--hero { max-width: none; margin: 0 0 14px; }
.ialfm-today--hero .ialfm-today__date { text-align: left; color: rgba(255,255,255,.9); font-size: 1.05rem; margin-bottom: 12px; }
.ialfm-today--hero .ialfm-today__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ialfm-today--hero .ialfm-today__grid div { padding: 16px 6px; backdrop-filter: blur(4px); }
.ialfm-today--hero .ialfm-today__grid strong { font-size: clamp(1.15rem, 1.7vw, 1.55rem); }
.ialfm-today--hero .ialfm-today__grid .is-next { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(196, 171, 87, .35); }
.ialfm-today__next { margin: 12px 0 0 !important; font-weight: 700; color: var(--ialfm-green); }
.ialfm-today--hero .ialfm-today__next { color: var(--ialfm-gold); font-size: 1.15rem; text-align: left; }
.ialfm-home-hero .wp-block-buttons { justify-content: flex-start; }

/* Today at IALFM panel */
.ialfm-happening { background: rgba(255, 255, 255, .95); color: var(--ialfm-night); border-radius: 20px; padding: 22px 24px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border-top: 5px solid var(--ialfm-gold); text-align: left; }
.ialfm-happening__title { font-size: 1.35rem !important; margin: 0 0 12px !important; color: var(--ialfm-night) !important; }
.ialfm-happening ul { list-style: none; margin: 0; padding: 0; }
.ialfm-happening li { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--ialfm-line); font-size: .95rem; }
.ialfm-happening li:first-child { border-top: 0; }
.ialfm-happening__time { font-weight: 700; color: var(--ialfm-green); font-size: .88rem; }
.ialfm-happening__what a { color: var(--ialfm-night) !important; font-weight: 600; text-decoration: none; }
.ialfm-happening__what a:hover { color: var(--ialfm-green) !important; text-decoration: underline; }
.ialfm-happening small { color: var(--ialfm-soft); }
.ialfm-happening em { font-style: normal; font-size: .72rem; font-weight: 700; background: var(--ialfm-gold); color: var(--ialfm-night); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.ialfm-happening__sub { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .12em; color: var(--ialfm-soft) !important; margin: 14px 0 4px !important; }
.ialfm-happening__none { color: var(--ialfm-soft); margin: 0; }
.ialfm-happening__more { margin: 10px 0 0 !important; font-size: .9rem; }
.ialfm-happening__more a { color: var(--ialfm-green) !important; font-weight: 600; }

/* quick links along the bottom of the hero */
.ialfm-hero-quick { display: flex; flex-wrap: wrap; gap: 10px; }
.ialfm-hero-quick a { padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff !important; text-decoration: none; font-weight: 600; font-size: .95rem; backdrop-filter: blur(4px); }
.ialfm-hero-quick a:first-child { background: var(--ialfm-gold); border-color: var(--ialfm-gold); color: var(--ialfm-night) !important; }
.ialfm-hero-quick a:hover { background: #fff; color: var(--ialfm-night) !important; }

@media (max-width: 900px) {
  .ialfm-home-hero::before { background: linear-gradient(180deg, rgba(6, 24, 15, .78), rgba(6, 24, 15, .9)); }
  .ialfm-today--hero .ialfm-today__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ialfm-home-hero h1 { font-size: 1.7rem !important; }
}

.ialfm-home-hero .wp-block-column p, .ialfm-home-hero .ialfm-today__date, .ialfm-home-hero .ialfm-today__next { text-align: left !important; }
.ialfm-home-hero p { margin-inline: 0 !important; max-width: none !important; }

/* header on phones: Donate stays, Sign in moves into the menu */
.ialfm-nav-signin { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .ialfm-nav-signin { display: block !important; }
@media (max-width: 600px) {
  .ialfm-header-cta > .wp-block-button.ialfm-signin { display: none !important; }
  .ialfm-header-cta .wp-block-button__link { padding: .5em 1.1em; font-size: .95rem; }
  .ialfm-header .wp-block-site-logo img { width: 48px !important; }
}
.ialfm-nowrap { white-space: nowrap; }

/* announcements bar */
.ialfm-notices { position: relative; z-index: 60; }
.ialfm-notice { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--ialfm-gold); color: var(--ialfm-night);
  padding: 8px 48px 8px 16px; position: relative; font-weight: 600; font-size: .95rem; text-align: center; }
.ialfm-notice + .ialfm-notice { border-top: 1px solid rgba(0,0,0,.08); }
.ialfm-notice.is-urgent { background: #B3261E; color: #fff; }
.ialfm-notice p { margin: 0; }
.ialfm-notice a { color: inherit; text-decoration: underline; margin-left: 6px; }
.ialfm-notice button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit;
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* calendar subscribe buttons */
.ialfm-subscribe-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 18px; font-size: .92rem; }
.ialfm-subscribe-cal span { color: var(--ialfm-soft); margin-right: 4px; }
.ialfm-subscribe-cal a { padding: 6px 14px; border: 1px solid var(--ialfm-line); border-radius: 999px; background: #fff; font-weight: 600;
  color: var(--ialfm-green); text-decoration: none; }
.ialfm-subscribe-cal a:hover { background: var(--ialfm-green); color: #fff; border-color: var(--ialfm-green); }
.ialfm-band .ialfm-subscribe-cal { justify-content: center; }

/* header search */
.ialfm-search .wp-block-search__button { background: transparent !important; color: var(--ialfm-night) !important; border: 0; padding: 6px; }
.ialfm-search .wp-block-search__input { border-radius: 999px; border: 1px solid var(--ialfm-line); padding: 6px 14px; }
.ialfm-reports li { margin-bottom: .3em; }

/* ================================================================ compact layout (less scrolling) */
.ialfm-titleband { padding: 26px clamp(16px, 4vw, 40px) 16px !important; }
.ialfm-titleband h1 { font-size: clamp(1.8rem, 3vw, 2.4rem) !important; }
.ialfm-titleband h1::after { margin-top: 8px; }
.ialfm-titleband p { margin-top: 8px !important; font-size: 1rem; }
.ialfm-jumpbar { padding-top: 7px !important; padding-bottom: 7px !important; }
.ialfm-section { padding: 22px 0 4px; }
.ialfm-section > h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); margin-bottom: 10px; }
.ialfm-section p, .ialfm-section li { font-size: .96rem; line-height: 1.5; }
.ialfm-section p { margin-block: 0 .6em; }
.ialfm-section .wp-block-columns { gap: 22px; margin-bottom: 12px; }
.ialfm-section .ialfm-cards { gap: 14px !important; }
.ialfm-section .ialfm-cards > .wp-block-column > :first-child:not(.wp-block-image) { margin-top: 16px; }
.ialfm-section .ialfm-cards > .wp-block-column > *:not(.wp-block-image) { margin-inline: 18px; }
.ialfm-cards > .wp-block-column:not(:empty) { padding-bottom: 16px; }
.ialfm-cards h3 { font-size: 1.1rem; margin: 0 0 .35rem; }
.ialfm-cards p { font-size: .93rem; }
.ialfm-aside { padding: 16px 20px !important; }
.wp-block-details { padding: 10px 16px; margin-block: 6px; }
.ialfm-band { padding: clamp(30px, 4vw, 48px) clamp(16px, 4vw, 40px) !important; }
.ialfm-band > h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 4px; }
.ialfm-band > .wp-block-columns, .ialfm-band > .ialfm-today, .ialfm-band .ialfm-live-grid { margin-top: 18px !important; }
.wp-block-buttons { margin-block: 10px !important; }

/* program cards: wider, shorter pictures; text kept to three lines */
.ialfm-cards .wp-block-image img { aspect-ratio: 16 / 9; }
.ialfm-cards .wp-block-image { margin-bottom: 12px; }
.ialfm-band .ialfm-cards > .wp-block-column > p:not(.ialfm-eyebrow) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* event cards (live from the portal) side-on: flyer thumbnail beside the details */
.ialfm-live-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; }
.ialfm-live-card { flex-direction: row; }
.ialfm-live-card__img { flex: 0 0 132px; }
.ialfm-live-card__img img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; }
.ialfm-live-card__body { padding: 14px 16px; }
.ialfm-live-card__body h3 { font-size: 1.08rem; }
.ialfm-live-card__body p { font-size: .9rem; margin-bottom: 5px; }
.ialfm-campaign { flex-direction: column; }
.ialfm-live-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 500px) { .ialfm-live-grid { grid-template-columns: 1fr; } .ialfm-live-card__img { flex-basis: 104px; } }

/* ongoing-program flyers, same side-on layout */
.ialfm-flyers > .wp-block-column:not(:empty) { display: grid; grid-template-columns: 120px 1fr; align-content: start; column-gap: 0; }
.ialfm-flyers > .wp-block-column > .wp-block-image { grid-row: 1 / span 6; margin: 0 !important; background: var(--ialfm-sand); }
.ialfm-flyers > .wp-block-column > .wp-block-image img { aspect-ratio: auto; height: 100%; object-fit: cover; object-position: top; }
.ialfm-flyers > .wp-block-column > *:not(.wp-block-image) { margin: 0 14px !important; }
.ialfm-flyers > .wp-block-column > .ialfm-eyebrow { margin-top: 12px !important; }
.ialfm-flyers > .wp-block-column:not(:empty) { padding-bottom: 10px; }

/* prayer schedule: one line per time */
.ialfm-prayer-table td, .ialfm-prayer-table th { padding: .28em .6em !important; font-size: .86rem; white-space: nowrap; }
.ialfm-begin { color: var(--ialfm-soft); font-size: .82em; margin-right: 2px; }

/* committees as a compact list */
.ialfm-committee-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; }
.ialfm-committee { padding: 9px 0; border-top: 1px solid var(--ialfm-line); }
.ialfm-committee p { margin: 0 !important; }
.ialfm-committee__head { font-weight: 700; color: var(--ialfm-night); font-size: .95rem !important; }
.ialfm-committee__head span { font-weight: 400; font-size: .85rem; margin-left: 4px; }
.ialfm-committee__about { font-size: .86rem !important; color: var(--ialfm-soft); line-height: 1.4 !important; }
.ialfm-committee__join { font-size: .84rem !important; }
@media (max-width: 900px) { .ialfm-committee-list { grid-template-columns: 1fr; } }

/* footer: about a third of the height */
.ialfm-footer { padding: 30px clamp(16px, 4vw, 40px) 14px !important; }
.ialfm-footer h3 { margin: 0 0 8px !important; font-size: .78rem !important; }
.ialfm-footer p, .ialfm-footer li { font-size: .9rem; margin: 0 0 4px; }
.ialfm-footer ul { line-height: 1.55 !important; margin: 0; }
.ialfm-footer .wp-block-column:nth-child(2) ul { columns: 2; column-gap: 18px; }
.ialfm-footer .wp-block-column:nth-child(3) ul { columns: 2; column-gap: 18px; }
.ialfm-footer .wp-block-columns { gap: 28px; margin-bottom: 0; }
.ialfm-footer .wp-block-buttons { margin: 6px 0 !important; }
.ialfm-footer .wp-block-button__link { padding: .45em 1.1em; font-size: .88rem; }
.ialfm-footer > .has-text-align-center { margin-top: 16px !important; padding-top: 12px !important; font-size: .82rem !important; }
.ialfm-fb iframe { height: 460px; }

/* bands: live cards and tiles use the full wide width */
.ialfm-band > .ialfm-live-grid, .ialfm-band > .wp-block-html > .ialfm-live-grid, .ialfm-band .ialfm-live-grid { max-width: var(--wp--style--global--wide-size, 1320px) !important; margin-left: auto !important; margin-right: auto !important; }
.ialfm-band > .ialfm-tiles { max-width: var(--wp--style--global--wide-size, 1320px) !important; }

/* program tiles: small picture beside the text */
.ialfm-tiles > .wp-block-column:not(:empty) { display: grid; grid-template-columns: 128px 1fr; align-content: start; padding-bottom: 12px; }
.ialfm-tiles > .wp-block-column > .wp-block-image { grid-row: 1 / span 6; margin: 0 !important; }
.ialfm-tiles > .wp-block-column > .wp-block-image img { aspect-ratio: auto; height: 100%; min-height: 150px; object-fit: cover; }
.ialfm-tiles > .wp-block-column > *:not(.wp-block-image) { margin: 0 14px !important; }
.ialfm-tiles > .wp-block-column > :first-child:not(.wp-block-image), .ialfm-tiles > .wp-block-column > .wp-block-image + * { margin-top: 12px !important; }
.ialfm-tiles > .wp-block-column:not(:has(.wp-block-image)) { grid-template-columns: 1fr; }
.ialfm-tiles p:not(.ialfm-eyebrow) { -webkit-line-clamp: 2 !important; font-size: .9rem !important; }
.ialfm-tiles .wp-block-buttons { margin: 6px 14px 0 !important; }
.ialfm-tiles .wp-block-button__link { padding: .4em 1em; font-size: .85rem; }
@media (max-width: 781px) { .ialfm-tiles > .wp-block-column:empty { display: none; } }

/* side-on pictures fill their card's height instead of setting it */
.ialfm-tiles > .wp-block-column > .wp-block-image, .ialfm-flyers > .wp-block-column > .wp-block-image, .ialfm-live-card__img {
  position: relative; min-height: 140px; overflow: hidden; }
.ialfm-tiles > .wp-block-column > .wp-block-image img, .ialfm-flyers > .wp-block-column > .wp-block-image img, .ialfm-live-card__img img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; aspect-ratio: auto !important; object-fit: cover; }
.ialfm-flyers > .wp-block-column > .wp-block-image img, .ialfm-live-card__img img { object-position: top; }

/* phones: a wide schedule scrolls inside its box instead of widening the page */
.ialfm-months > .wp-block-details { min-width: 0; }
.ialfm-prayer-table { max-width: 100%; overflow-x: auto; }
@media (max-width: 900px) { .ialfm-months--2, .ialfm-months--3 { grid-template-columns: minmax(0, 1fr) !important; } }

/* home: events beside "never miss an event" */
.ialfm-events-row { align-items: flex-start !important; gap: 24px !important; }
.ialfm-events-row .ialfm-live-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); margin-top: 0 !important; }
.ialfm-stay { background: #fff !important; }
.ialfm-stay h3 { font-size: 1.05rem !important; margin: 0 0 6px !important; }
.ialfm-stay h3 + p { font-size: .9rem; color: var(--ialfm-soft); margin-bottom: 8px; }
.ialfm-stay .ialfm-subscribe-cal { margin: 0 0 16px; justify-content: flex-start !important; }
.ialfm-stay .ialfm-subscribe-cal span { display: none; }
.ialfm-stay .ialfm-subscribe { margin-bottom: 0; }
/* Sticky header: the outer <header> wrapper sticks (the inner group can't stick inside a wrapper of its own height),
   and the section-links bar sits directly beneath it. */
header.site-header { position: sticky; top: var(--ialfm-admin, 0px); z-index: 50; }
.ialfm-header { position: static !important; }
body { --ialfm-header-h: 93px; }
@media (max-width: 600px) { body { --ialfm-header-h: 81px; } }
@media (max-width: 782px) { .admin-bar { --ialfm-admin: 46px; } }
.ialfm-jumpbar { top: calc(var(--ialfm-header-h) + var(--ialfm-admin, 0px)) !important; }

/* Outline buttons on dark backgrounds (footer, dark bands, call-to-action boxes): white text and outline. */
.ialfm-footer .is-style-outline .wp-block-button__link,
.ialfm-band--night .is-style-outline .wp-block-button__link,
.ialfm-cta .is-style-outline .wp-block-button__link,
.ialfm-home-hero .is-style-outline .wp-block-button__link {
  color: #fff !important; border-color: rgba(255, 255, 255, .7) !important; background: transparent !important; }
.ialfm-footer .is-style-outline .wp-block-button__link:hover,
.ialfm-band--night .is-style-outline .wp-block-button__link:hover,
.ialfm-cta .is-style-outline .wp-block-button__link:hover {
  background: #fff !important; color: var(--ialfm-night) !important; }

/* ================================================================ Islamic decoration */
@font-face { font-family: 'Beiruti'; src: url(/wp-content/plugins/ialfm-site/fonts/beiruti.woff2) format('woff2'); font-weight: 200 900; font-display: swap; }
:root { --ialfm-arabic: 'Beiruti', 'Amiri', 'Traditional Arabic', 'Arabic Typesetting', serif; }
[lang="ar"] { font-family: var(--ialfm-arabic); }

/* geometric star lattice */
.ialfm-titleband, .ialfm-band--sand, .ialfm-band--hadith { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23B08D3C' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M32 0v9.4M32 54.6V64M0 32h9.4M54.6 32H64M0 0l16 16M64 0L48 16M0 64l16-16M64 64L48 48'/%3E%3C/g%3E%3C/svg%3E"); background-size: 64px 64px; }
.ialfm-footer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.06' stroke-width='1'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M32 0v9.4M32 54.6V64M0 32h9.4M54.6 32H64M0 0l16 16M64 0L48 16M0 64l16-16M64 64L48 48'/%3E%3C/g%3E%3C/svg%3E") !important; background-size: 64px 64px; }

/* ornamental dividers under titles and band headings */
.ialfm-titleband h1::after, .wp-block-post-title::after { width: 132px !important; height: 16px !important; border-radius: 0 !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='16'%3E%3Cg fill='none' stroke='%23B08D3C' stroke-width='1.2'%3E%3Cpath d='M0 8h50M82 8h50'/%3E%3Crect x='60' y='2' width='12' height='12'/%3E%3Crect x='60' y='2' width='12' height='12' transform='rotate(45 66 8)'/%3E%3C/g%3E%3Ccircle cx='66' cy='8' r='1.8' fill='%23B08D3C'/%3E%3C/svg%3E") no-repeat left center !important; }
.ialfm-band > h2::after { content: ""; display: block; width: 132px; height: 16px; margin: 10px auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='16'%3E%3Cg fill='none' stroke='%23B08D3C' stroke-width='1.2'%3E%3Cpath d='M0 8h50M82 8h50'/%3E%3Crect x='60' y='2' width='12' height='12'/%3E%3Crect x='60' y='2' width='12' height='12' transform='rotate(45 66 8)'/%3E%3C/g%3E%3Ccircle cx='66' cy='8' r='1.8' fill='%23B08D3C'/%3E%3C/svg%3E") no-repeat center; }
.ialfm-band > .ialfm-eyebrow::before, .ialfm-band > .ialfm-eyebrow::after { content: "۞"; margin: 0 8px; font-size: .9em; color: var(--ialfm-gold); }

/* Qur'anic line in title bands */
.ialfm-titleband .alignwide { position: relative; }
.ialfm-verse { margin: 12px 0 0; text-align: right; }
.ialfm-verse__ar { font-size: clamp(1.4rem, 2.4vw, 2rem) !important; line-height: 1.7 !important; color: var(--ialfm-gold) !important; margin: 0 !important; font-weight: 600; }
.ialfm-verse figcaption { font-size: .82rem; color: var(--ialfm-soft); font-style: italic; }
.ialfm-verse cite { font-style: normal; margin-left: 6px; color: var(--ialfm-gold); }
@media (min-width: 1000px) {
  .ialfm-verse { position: absolute; right: 0; top: 50%; transform: translateY(-50%); max-width: 44%; margin: 0; }
  .ialfm-titleband .alignwide > p { max-width: 52%; }
}

/* home: Bismillah above the title */
.ialfm-bismillah { font-family: var(--ialfm-arabic); font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important; color: var(--ialfm-gold) !important;
  text-align: left !important; margin: 0 0 4px !important; line-height: 1.6; }

/* arch (mihrab) tops */
.ialfm-happening { border-radius: 180px 180px 18px 18px / 64px 64px 18px 18px !important; padding-top: 34px !important; }
.ialfm-happening__title { text-align: center; }

/* hadith of the day */
.ialfm-band--hadith { background-color: #FBF7EC; }
.ialfm-hadith-row { align-items: center !important; gap: 36px !important; }
.ialfm-medallion-wrap { display: flex; justify-content: center; }
.ialfm-medallion { width: min(240px, 100%); height: auto; color: var(--ialfm-gold); }
.ialfm-medallion__text { font-family: var(--ialfm-arabic); fill: var(--ialfm-night); font-weight: 600; }
.ialfm-hadith { margin: 0; background: #fff; border: 1px solid var(--ialfm-line); border-top: 5px solid var(--ialfm-gold);
  border-radius: 180px 180px 16px 16px / 56px 56px 16px 16px; padding: 34px clamp(20px, 4vw, 48px) 24px; text-align: center; box-shadow: var(--ialfm-shadow); }
.ialfm-hadith__label { font-size: .75rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--ialfm-gold) !important; margin: 0 0 8px !important; }

.ialfm-hadith__ar { font-family: var(--ialfm-arabic); font-size: clamp(1.35rem, 2.2vw, 1.9rem) !important; line-height: 1.8 !important;
  color: var(--ialfm-night) !important; margin: 0 0 10px !important; }
.ialfm-hadith__en { margin: 0 auto 8px; padding: 0; border: 0; max-width: 60ch; }
.ialfm-hadith__en p { font-size: 1.08rem !important; font-style: italic; color: var(--ialfm-night); margin: 0 !important; }
.ialfm-hadith__ref { font-size: .85rem; color: var(--ialfm-gold); font-weight: 600; margin-bottom: 10px; }
.ialfm-hadith__note { font-size: .92rem !important; color: var(--ialfm-soft); max-width: 62ch; margin: 0 auto !important;
  padding-top: 10px; border-top: 1px dashed var(--ialfm-line); }
@media (max-width: 781px) { .ialfm-medallion { width: 150px; } .ialfm-hadith-row > .wp-block-column { flex-basis: 100% !important; } }
.ialfm-live-note { font-size: .82rem !important; color: var(--ialfm-soft); margin-top: 4px !important; }

/* space between the events list button and the calendar buttons */
.ialfm-live-more { margin: 14px 0 12px !important; }
.ialfm-section .ialfm-live-more { text-align: left; }

/* ================================================================ search button and "Ask IALFM" panel */
.ialfm-ask-open { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--ialfm-line); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: .9rem; color: var(--ialfm-night); cursor: pointer; }
.ialfm-ask-open:hover { border-color: var(--ialfm-night); }
@media (max-width: 1360px) { .ialfm-ask-open span { display: none; } .ialfm-ask-open { padding: 8px; } }
.ialfm-ask { width: min(760px, calc(100vw - 24px)); max-height: min(80vh, 720px); margin: 8vh auto auto; padding: 0; border: 0; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); background: #fff; color: var(--ialfm-night); }
.ialfm-ask::backdrop { background: rgba(11, 30, 20, .55); backdrop-filter: blur(3px); }
.ialfm-ask__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--ialfm-line); position: sticky; top: 0; background: #fff; }
.ialfm-ask__bar input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.1rem; background: transparent; }
.ialfm-ask__close { border: 1px solid var(--ialfm-line); background: var(--ialfm-sand); border-radius: 6px; font-size: .75rem; padding: 3px 8px; cursor: pointer; }
.ialfm-ask__ai { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px 0; font-size: .82rem; color: var(--ialfm-soft); }
.ialfm-ask__ai button { border: 0; cursor: pointer; padding: .55em 1.2em; border-radius: 999px; background: var(--ialfm-green); color: #fff; font-weight: 700; }
.ialfm-ask__ai button:disabled { opacity: .45; cursor: default; }
.ialfm-ask__answer { margin: 12px 18px 0; padding: 14px 16px; background: #FBF7EC; border: 1px solid var(--ialfm-line); border-left: 4px solid var(--ialfm-gold);
  border-radius: 10px; font-size: .98rem; line-height: 1.55; }
.ialfm-ask__answer p { margin: 0 0 .6em; } .ialfm-ask__answer p:last-child { margin-bottom: 0; }
.ialfm-ask__thinking { color: var(--ialfm-soft); font-style: italic; }
.ialfm-ask__results { list-style: none; margin: 8px 0 0; padding: 0 8px 4px; }
.ialfm-ask__results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
.ialfm-ask__results a:hover, .ialfm-ask__results a:focus { background: var(--ialfm-sand); outline: 0; }
.ialfm-ask__where { display: block; font-weight: 700; font-size: .95rem; color: var(--ialfm-green); }
.ialfm-ask__snip { display: block; font-size: .85rem; color: var(--ialfm-soft); }
.ialfm-ask__snip mark { background: #F3E7C2; color: inherit; padding: 0 1px; border-radius: 2px; }
.ialfm-ask__none { padding: 12px; color: var(--ialfm-soft); font-size: .9rem; }
.ialfm-ask__hint { font-size: .75rem; color: var(--ialfm-soft); margin: 4px 20px 12px; }
.ialfm-ask__hint kbd { border: 1px solid var(--ialfm-line); border-radius: 4px; padding: 0 5px; background: var(--ialfm-sand); }

/* home: hadith (2/3) + volunteer (1/3) */
.ialfm-band--hadith .ialfm-hadith-row { align-items: stretch !important; }
.ialfm-band--hadith .ialfm-hadith { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.ialfm-volunteer-card { height: 100%; box-sizing: border-box; background: var(--ialfm-night); color: #E9EFEA; border-top: 5px solid var(--ialfm-gold);
  border-radius: 180px 180px 16px 16px / 56px 56px 16px 16px; padding: 30px 26px 24px !important; text-align: center; }
.ialfm-volunteer-card h3 { color: #fff !important; font-size: 1.4rem !important; margin: 4px 0 8px !important; }
.ialfm-volunteer-card p { color: #D5E0D8 !important; font-size: .95rem; }
.ialfm-volunteer-card .ialfm-eyebrow { color: var(--ialfm-gold) !important; }
.ialfm-volunteer-card .wp-block-buttons { justify-content: center; }
.ialfm-volunteer-card .wp-block-button__link { background: var(--ialfm-gold) !important; color: var(--ialfm-night) !important; }
.ialfm-volunteer-card .is-style-outline .wp-block-button__link { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.ialfm-medallion-wrap--small .ialfm-medallion { width: 104px; color: var(--ialfm-gold); }
.ialfm-medallion-wrap--small .ialfm-medallion circle[fill="#fff"] { fill: var(--ialfm-night); }
.ialfm-medallion-wrap--small .ialfm-medallion__text { fill: #fff; }

/* home: three equal columns (YouTube, Facebook, never miss an event) */
.ialfm-three { align-items: stretch !important; }
.ialfm-three > .wp-block-column { flex-basis: 0 !important; flex-grow: 1 !important; padding: 20px 22px !important; }
.ialfm-three > .wp-block-column > * { margin-inline: 0 !important; }
.ialfm-three h3 { margin-top: 0 !important; }
.ialfm-three .ialfm-fb { max-width: none; }
.ialfm-three .ialfm-fb iframe { height: 360px; }
.ialfm-three .ialfm-subscribe-cal { justify-content: flex-start !important; margin-bottom: 12px; }
.ialfm-three .ialfm-subscribe-cal span { display: none; }

/* ================================================================ Spotlight popup */
.ialfm-spot { width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  display: none; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.ialfm-spot[open] { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.ialfm-spot--no-media[open] { grid-template-columns: 1fr; width: min(560px, calc(100vw - 24px)); }
.ialfm-spot::backdrop { background: rgba(8, 24, 16, .7); backdrop-filter: blur(3px); }
.ialfm-spot__media { background: #0B1A12; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.ialfm-spot__media iframe, .ialfm-spot__media video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.ialfm-spot__media img { width: 100%; height: 100%; max-height: calc(100vh - 40px); object-fit: contain; display: block; }
.ialfm-spot__cta { padding: 40px 34px 30px; display: flex; flex-direction: column; justify-content: center;
  background: #FBF7EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%23B08D3C' stroke-opacity='.12'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E"); }
.ialfm-spot__cta h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important; line-height: 1.15; margin: 4px 0 12px !important; color: var(--ialfm-night); }
.ialfm-spot__cta p { color: var(--ialfm-soft); font-size: 1rem; line-height: 1.55; margin: 0 0 16px; }
.ialfm-spot__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 0 !important; }
.ialfm-spot__buttons .wp-element-button { background: var(--ialfm-green); color: #fff; padding: .8em 1.6em; font-size: 1.05rem; text-decoration: none; }
.ialfm-spot__secondary { color: var(--ialfm-green); font-weight: 600; }
.ialfm-spot__close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ialfm-night); font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
@media (max-width: 800px) {
  .ialfm-spot[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .ialfm-spot__cta { padding: 24px 20px; }
  .ialfm-spot__media { min-height: 0; }
}

/* ================================================================ monthly prayer tables on phones
   Begin time sits above the iqamah time (narrower columns), and the Day column stays put while the row is swiped. */
@media (max-width: 600px) {
  .ialfm-prayer-table td, .ialfm-prayer-table th { padding: .3em .45em !important; font-size: .82rem; line-height: 1.25; }
  .ialfm-prayer-table .ialfm-begin { display: block; font-size: .78rem; margin: 0; }
  .ialfm-prayer-table td:first-child, .ialfm-prayer-table th:first-child { position: sticky; left: 0; z-index: 1;
    background: var(--wp--preset--color--base, #fff); box-shadow: 1px 0 0 var(--ialfm-line); }
}

/* Phones: 16px form text so iPhones don't zoom in on a tapped field; a thumb-sized menu button. */
@media (max-width: 781px) {
  input:not([type=checkbox]):not([type=radio]):not([type=submit]), select, textarea { font-size: 16px !important; }
  .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; justify-content: center; }
}

/* ================================================================ section links as arches
   Same mihrab top as "Today at IALFM" and the hadith card: a gold arch over a raised tile that lifts on hover. */
.ialfm-jumpbar { background: linear-gradient(#fff, #FBF7EC) !important; padding-top: 12px !important; padding-bottom: 10px !important;
  box-shadow: 0 6px 14px -12px rgba(11, 30, 20, .35); }
.ialfm-jump { gap: 12px; padding: 4px 2px 6px; justify-content: center; }
.ialfm-jump:has(a:nth-child(6)) { justify-content: flex-start; }
.ialfm-jump a { position: relative; padding: 20px 28px 11px; font-size: 1rem; font-weight: 700; letter-spacing: .01em; color: var(--ialfm-night);
  background: linear-gradient(180deg, #fff 0%, #FBF7EC 100%); border: 1px solid var(--ialfm-line); border-top: 3px solid var(--ialfm-gold);
  border-radius: 50% 50% 10px 10px / 30px 30px 10px 10px !important;
  box-shadow: 0 1px 0 #fff inset, 0 3px 0 rgba(176, 141, 60, .25), 0 8px 16px -8px rgba(11, 30, 20, .35);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
.ialfm-jump a::before { content: "✦"; margin-right: 8px; color: var(--ialfm-gold); font-size: .75em; vertical-align: .1em; }
.ialfm-jump a:hover, .ialfm-jump a:focus-visible { transform: translateY(-3px); background: var(--ialfm-green); border-color: var(--ialfm-green);
  border-top-color: var(--ialfm-gold); color: #fff; box-shadow: 0 3px 0 rgba(176, 141, 60, .6), 0 14px 22px -10px rgba(11, 30, 20, .5); outline: 0; }
.ialfm-jump a:hover::before, .ialfm-jump a:focus-visible::before { color: #F3E7C2; }
.ialfm-jump a:active { transform: translateY(0); }
@media (max-width: 600px) {
  .ialfm-jump { justify-content: flex-start; gap: 10px; }
  .ialfm-jump a { padding: 17px 20px 9px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .ialfm-jump a { transition: none; } .ialfm-jump a:hover { transform: none; } }

/* ================================================================ raised buttons (the arch shape itself is in the Heritage style)
   A light top edge, a gold-tinted base and a soft drop shadow, so buttons stand off the page and lift when pointed at. */
.wp-block-button__link, .wp-element-button, .ialfm-hero-quick a, .ialfm-subscribe-cal a, .ialfm-subscribe button {
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), 0 3px 0 rgba(22, 54, 42, .22), 0 10px 18px -10px rgba(11, 30, 20, .55);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease; }
.wp-block-button__link:hover, .wp-element-button:hover, .ialfm-hero-quick a:hover, .ialfm-subscribe-cal a:hover, .ialfm-subscribe button:hover,
.wp-block-button__link:focus-visible, .wp-element-button:focus-visible {
  transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), 0 4px 0 rgba(176, 141, 60, .55), 0 16px 24px -12px rgba(11, 30, 20, .6); }
.wp-block-button__link:active, .wp-element-button:active { transform: translateY(0); }
/* outline buttons: a gold arch line on top instead of a solid face */
.wp-block-button.is-style-outline .wp-block-button__link, .ialfm-signin .wp-block-button__link, .ialfm-subscribe-cal a {
  border-top: 3px solid var(--ialfm-gold) !important; box-shadow: 0 6px 14px -10px rgba(11, 30, 20, .45); }
.ialfm-hero-quick a { border-top: 2px solid var(--ialfm-gold); }
.ialfm-hero-quick a:first-child { border-top-color: #F3E7C2; }
/* bigger, easier-to-hit calls to action in page content */
.entry-content .wp-block-button__link, .wp-block-post-content .wp-block-button__link { padding: .85em 1.8em .75em; font-weight: 700; }
.ialfm-header-cta .wp-block-button__link { padding: .7em 1.4em .6em; border: 2px solid transparent; border-top: 3px solid transparent; }
.ialfm-header-cta .wp-block-button:not(.ialfm-signin) .wp-block-button__link { border-top-color: #F3E7C2; }
@media (prefers-reduced-motion: reduce) {
  .wp-block-button__link, .wp-element-button, .ialfm-hero-quick a { transition: none; }
  .wp-block-button__link:hover, .wp-element-button:hover, .ialfm-hero-quick a:hover { transform: none; }
}

/* ================================================================ top menu: an arch under the pointer and over the current page */
@media (min-width: 600px) {
  .ialfm-header .wp-block-navigation { gap: 0; }
  .ialfm-header .wp-block-navigation__container { flex-wrap: nowrap; }
  .ialfm-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
    padding: .5em .7em .4em; white-space: nowrap; border: 1px solid transparent; border-top: 3px solid transparent;
    border-radius: 50% 50% 6px 6px / 16px 16px 6px 6px; transition: background-color .15s, border-color .15s, color .15s; }
  .ialfm-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover {
    background: #FBF7EC; border-color: var(--ialfm-line); border-top-color: var(--ialfm-gold); color: var(--ialfm-green); }
  .ialfm-header .wp-block-navigation-item__content[aria-current="page"] {
    background: linear-gradient(#fff, #F3EDDD); border-color: var(--ialfm-line) !important; border-top-color: var(--ialfm-gold) !important;
    color: var(--ialfm-green); font-weight: 700; box-shadow: 0 6px 12px -10px rgba(11, 30, 20, .5); }
}
/* the phone menu: full-width arch rows, current page marked */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.2rem; font-weight: 600; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"] {
  color: var(--ialfm-green); border-top: 3px solid var(--ialfm-gold); border-radius: 50% 50% 6px 6px / 14px 14px 6px 6px;
  background: #FBF7EC; padding: .3em 1em; }

/* Below 1140px the eight menu links and the two header buttons don't fit on one row: use the ☰ menu there too.
   (From 1140 to 1359px they fit because the row is set tighter: see "audit of Oct 2026".) */
@media (min-width: 600px) and (max-width: 1139px) {
  .ialfm-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  .ialfm-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
  .ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
  .ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; }
}
.ialfm-header-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) { .ialfm-header-cta .wp-block-button__link { padding: .45em 1.05em .35em; font-size: .95rem; } }

/* ================================================================ section links wrap onto more lines instead of scrolling sideways
   (ialfm-site.php measures the bar into --ialfm-jump-h so jumping to a section lands below it) */
.ialfm-jump { flex-wrap: wrap !important; overflow: visible !important; justify-content: center !important; row-gap: 10px; }

/* ================================================================ phones: a compact pinned header with the ☰ menu
   (WordPress collapses the menu below 600px by itself). The section links are too tall to pin, so they scroll with the page. */
@media (max-width: 599px) {
  .ialfm-jumpbar { position: static !important; }
  [id] { scroll-margin-top: calc(var(--ialfm-header-h) + 12px); }
  .ialfm-jump { gap: 8px !important; row-gap: 8px !important; padding: 2px 0 4px; }
  .ialfm-jump a { padding: 10px 12px 6px; font-size: .85rem; border-radius: 50% 50% 8px 8px / 18px 18px 8px 8px !important; }
  .ialfm-jump a::before { margin-right: 5px; }
}

/* ================================================================ "page not found" and search results */
.ialfm-plain-page { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 7vw, 88px); }
.ialfm-plain-page h1 { margin-bottom: .4em; }
.ialfm-search-page { margin: 20px 0 28px; }
.ialfm-search-page .wp-block-search__input { border-radius: 10px; border: 1px solid var(--ialfm-line); padding: 12px 16px; font-size: 1.05rem; }
.ialfm-search-results .wp-block-post { padding: 18px 0; border-bottom: 1px solid var(--ialfm-line); }
.ialfm-search-results .wp-block-post-title a { color: var(--ialfm-green); text-decoration: none; }
.ialfm-jump--static { margin-top: 28px !important; }

/* ================================================================ footer credit: CloudYork */
.ialfm-footer .ialfm-credit { max-width: none !important; margin: 6px auto 0 !important; padding: 0; text-align: center; font-size: .72rem; }
.ialfm-credit a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 7px;
  color: rgba(255, 255, 255, .78) !important; text-decoration: none; }
.ialfm-credit svg { width: 22px; height: 15px; color: var(--ialfm-gold); transition: transform .35s ease; }
.ialfm-credit strong { font-weight: 700; letter-spacing: .02em; color: #fff;
  background: linear-gradient(100deg, #fff 0 40%, #F3E7C2 48%, #B08D3C 52%, #fff 60% 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: background-position .9s ease; }
.ialfm-credit a:hover svg, .ialfm-credit a:focus-visible svg { transform: translateY(-3px); }
.ialfm-credit a:hover strong, .ialfm-credit a:focus-visible strong { background-position: 0 0; }
@media (prefers-reduced-motion: reduce) { .ialfm-credit svg, .ialfm-credit strong { transition: none; } }

/* ================================================================ cookie notice and click-to-show embeds */
.ialfm-cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 16px 20px; background: #fff; color: var(--ialfm-night);
  border: 1px solid var(--ialfm-line); border-top: 4px solid var(--ialfm-gold); border-radius: 60px 60px 12px 12px / 22px 22px 12px 12px;
  box-shadow: 0 18px 40px -12px rgba(11, 30, 20, .45); font-size: .9rem; line-height: 1.45; }
.ialfm-cookie[hidden] { display: none; }
.ialfm-cookie p { margin: 0; flex: 1 1 320px; }
.ialfm-cookie a { color: var(--ialfm-green); }
.ialfm-cookie__buttons { display: flex; gap: 10px; flex: none; }
.ialfm-cookie .wp-element-button { padding: .6em 1.3em .5em; font-size: .9rem; background: var(--ialfm-green); color: #fff; border: 0; cursor: pointer; }
.ialfm-cookie .ialfm-cookie__no { background: transparent; color: var(--ialfm-night); border: 2px solid var(--ialfm-line); border-top: 3px solid var(--ialfm-gold); }
@media (max-width: 599px) { .ialfm-cookie { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .ialfm-cookie__buttons { width: 100%; } .ialfm-cookie__buttons .wp-element-button { flex: 1; } }

.ialfm-consent { position: relative; }
.ialfm-consent:not(.is-loaded) iframe { display: none; }
.ialfm-consent.is-loaded .ialfm-consent-ph { display: none; }
.ialfm-consent-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  min-height: 220px; padding: 24px; background: #FBF7EC; border: 1px dashed var(--ialfm-line); border-radius: 12px; }
.ialfm-consent-ph p { margin: 0; max-width: 32ch; font-size: .9rem; color: var(--ialfm-soft); }
.ialfm-embed.ialfm-consent:not(.is-loaded) { background: #FBF7EC; border: 1px dashed var(--ialfm-line); }
.ialfm-embed .ialfm-consent-ph { position: absolute; inset: 0; min-height: 0; border: 0; border-radius: 0; }
.ialfm-three .ialfm-fb .ialfm-consent-ph { min-height: 360px; }









































/* ================================================================ the building: ogee arches and the gold lattice
   Taken from the new IALFM interior: ogee arches (curved shoulders rising to a point) outlined in gold, set in a gold
   eight-pointed-star lattice, and the lit lattice minaret. Shapes are SVG backgrounds stretched to each element
   (strokes stay the same width), so they fit any size. Generated by building_css.py. */
:root {
  --og-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V100Z' fill='%231F5B42' fill-opacity='1'/%3E%3Cpath d='M1 99V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V99Z' fill='none' stroke='%23C9A54C' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --og-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V100Z' fill='%2316362A' fill-opacity='1'/%3E%3Cpath d='M1 99V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V99Z' fill='none' stroke='%23C9A54C' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --og-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V100Z' fill='%23B08D3C' fill-opacity='1'/%3E%3Cpath d='M1 99V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V99Z' fill='none' stroke='%23EBDDB0' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --og-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V100Z' fill='%23FFFFFF' fill-opacity='1'/%3E%3Cpath d='M1 99V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V99Z' fill='none' stroke='%23C9A54C' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --og-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V100Z' fill='%23FBF7EC' fill-opacity='1'/%3E%3Cpath d='M1 99V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V99Z' fill='none' stroke='%23C9A54C' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --og-darkline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V100Z' fill='%23FFFFFF' fill-opacity='0'/%3E%3Cpath d='M1 99V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V99Z' fill='none' stroke='%23FFFFFF' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --og-glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V100Z' fill='%23FFFFFF' fill-opacity='0.14'/%3E%3Cpath d='M1 99V52C1 31.68 20.6 24.06 33.34 16.44C42.16 12.38 47.06 7.3 50 1.2C52.94 7.3 57.84 12.38 66.66 16.44C79.4 24.06 99 31.68 99 52V99Z' fill='none' stroke='%23C9A54C' stroke-width='2' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --win-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V30C1 18.48 20.6 14.16 33.34 9.84C42.16 7.54 47.06 4.66 50 1.2C52.94 4.66 57.84 7.54 66.66 9.84C79.4 14.16 99 18.48 99 30V100Z' fill='%23F7F1E3' fill-opacity='1'/%3E%3Cpath d='M1 101V30C1 18.48 20.6 14.16 33.34 9.84C42.16 7.54 47.06 4.66 50 1.2C52.94 4.66 57.84 7.54 66.66 9.84C79.4 14.16 99 18.48 99 30V101' fill='none' stroke='%23C9A54C' stroke-width='3.5' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --win-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V30C1 18.48 20.6 14.16 33.34 9.84C42.16 7.54 47.06 4.66 50 1.2C52.94 4.66 57.84 7.54 66.66 9.84C79.4 14.16 99 18.48 99 30V100Z' fill='%23FFFDF8' fill-opacity='1'/%3E%3Cpath d='M1 101V30C1 18.48 20.6 14.16 33.34 9.84C42.16 7.54 47.06 4.66 50 1.2C52.94 4.66 57.84 7.54 66.66 9.84C79.4 14.16 99 18.48 99 30V101' fill='none' stroke='%23C9A54C' stroke-width='3.5' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --win-closed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V26C1 16.08 20.6 12.36 33.34 8.64C42.16 6.66 47.06 4.18 50 1.2C52.94 4.18 57.84 6.66 66.66 8.64C79.4 12.36 99 16.08 99 26V100Z' fill='%23FFFDF8' fill-opacity='1'/%3E%3Cpath d='M1 99V26C1 16.08 20.6 12.36 33.34 8.64C42.16 6.66 47.06 4.18 50 1.2C52.94 4.18 57.84 6.66 66.66 8.64C79.4 12.36 99 16.08 99 26V99Z' fill='none' stroke='%23C9A54C' stroke-width='3.5' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cap-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M1 100V100C1 60.48 20.6 45.66 33.34 30.84C42.16 22.94 47.06 13.06 50 1.2C52.94 13.06 57.84 22.94 66.66 30.84C79.4 45.66 99 60.48 99 100V100Z' fill='%23FFFDF8' fill-opacity='1'/%3E%3Cpath d='M1 101V100C1 60.48 20.6 45.66 33.34 30.84C42.16 22.94 47.06 13.06 50 1.2C52.94 13.06 57.84 22.94 66.66 30.84C79.4 45.66 99 60.48 99 100V101' fill='none' stroke='%23C9A54C' stroke-width='3.5' vector-effect='non-scaling-stroke' stroke-linejoin='round'/%3E%3C/svg%3E");
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg fill='none' stroke='%23C9A54C' stroke-opacity='.7' stroke-width='1.1'%3E%3Crect x='10.8' y='10.8' width='14.4' height='14.4'/%3E%3Crect x='10.8' y='10.8' width='14.4' height='14.4' transform='rotate%2845 18 18%29'/%3E%3Cpath d='M18 0V7.8M18 28.2V36M0 18H7.8M28.2 18H36M0 0L10.8 10.8M36 0L25.2 10.8M0 36L10.8 25.2M36 36L25.2 25.2'/%3E%3C/g%3E%3C/svg%3E");
  --lattice-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg fill='none' stroke='%23C9A54C' stroke-opacity='.16' stroke-width='1.1'%3E%3Crect x='10.8' y='10.8' width='14.4' height='14.4'/%3E%3Crect x='10.8' y='10.8' width='14.4' height='14.4' transform='rotate%2845 18 18%29'/%3E%3Cpath d='M18 0V7.8M18 28.2V36M0 18H7.8M28.2 18H36M0 0L10.8 10.8M36 0L25.2 10.8M0 36L10.8 25.2M36 36L25.2 25.2'/%3E%3C/g%3E%3C/svg%3E");
  --cartouche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M2 20 L8 2 H92 L98 20 L92 38 H8 Z' fill='%23FFFDF8' stroke='%23B08D3C' stroke-width='1.6' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M6.5 20 L11 6 H89 L93.5 20 L89 34 H11 Z' fill='none' stroke='%23C9A54C' stroke-width='.9' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --lattice-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg fill='none' stroke='%23B08D3C' stroke-opacity='.2' stroke-width='1.1'%3E%3Crect x='10.8' y='10.8' width='14.4' height='14.4'/%3E%3Crect x='10.8' y='10.8' width='14.4' height='14.4' transform='rotate%2845 18 18%29'/%3E%3Cpath d='M18 0V7.8M18 28.2V36M0 18H7.8M28.2 18H36M0 0L10.8 10.8M36 0L25.2 10.8M0 36L10.8 25.2M36 36L25.2 25.2'/%3E%3C/g%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-14 -14 28 28'%3E%3Cg fill='none' stroke='%23C9A54C' stroke-width='1.5'%3E%3Crect x='-9' y='-9' width='18' height='18'/%3E%3Crect x='-9' y='-9' width='18' height='18' transform='rotate%2845%29'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- buttons and section links: the element's own box is invisible; the ogee is painted behind the text */
.wp-block-button__link, .wp-element-button, .ialfm-hero-quick a, .ialfm-subscribe-cal a, .ialfm-subscribe button, .ialfm-jump a {
  position: relative; isolation: isolate; background: transparent !important; border-color: transparent !important;
  border-radius: 0 !important; box-shadow: none !important; padding-top: 1em !important; }
.wp-block-button__link::before, .wp-element-button::before, .ialfm-hero-quick a::before, .ialfm-subscribe-cal a::before,
.ialfm-subscribe button::before, .ialfm-jump a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ogee, var(--og-green)) center / 100% 100% no-repeat;
  filter: drop-shadow(0 3px 0 rgba(22, 54, 42, .18)) drop-shadow(0 8px 8px rgba(11, 30, 20, .22)); }
.wp-block-button__link, .wp-element-button, .ialfm-subscribe button { --ogee: var(--og-green); color: #fff; }
.wp-block-button__link:hover, .wp-element-button:hover, .ialfm-subscribe button:hover { --ogee: var(--og-night); color: #fff; }
/* outline buttons on light backgrounds */
.is-style-outline .wp-block-button__link, .ialfm-signin .wp-block-button__link, .ialfm-subscribe-cal a, .ialfm-cookie .ialfm-cookie__no {
  --ogee: var(--og-white); color: var(--ialfm-night) !important; }
.is-style-outline .wp-block-button__link:hover, .ialfm-signin .wp-block-button__link:hover, .ialfm-subscribe-cal a:hover, .ialfm-cookie .ialfm-cookie__no:hover {
  --ogee: var(--og-cream); color: var(--ialfm-green) !important; }
/* section links */
.ialfm-jump a { --ogee: var(--og-cream); color: var(--ialfm-night) !important; padding: 18px 24px 9px !important; }
.ialfm-jump a:hover, .ialfm-jump a:focus-visible { --ogee: var(--og-green); color: #fff !important; }
/* gold buttons: header Donate and every filled button on a dark background */
.ialfm-header-cta .wp-block-button:not(.ialfm-signin) .wp-block-button__link,
.ialfm-footer .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.ialfm-band--night .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.ialfm-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.ialfm-volunteer-card .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.ialfm-hero-quick a:first-child { --ogee: var(--og-gold); color: #0B2E1C !important; }
.ialfm-header-cta .wp-block-button:not(.ialfm-signin) .wp-block-button__link:hover,
.ialfm-footer .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.ialfm-band--night .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.ialfm-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.ialfm-volunteer-card .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.ialfm-hero-quick a:first-child:hover { --ogee: var(--og-white); color: var(--ialfm-night) !important; }
/* outline buttons on dark backgrounds */
.ialfm-footer .is-style-outline .wp-block-button__link, .ialfm-band--night .is-style-outline .wp-block-button__link,
.ialfm-cta .is-style-outline .wp-block-button__link, .ialfm-home-hero .is-style-outline .wp-block-button__link,
.wp-block-cover .is-style-outline .wp-block-button__link, .ialfm-volunteer-card .is-style-outline .wp-block-button__link {
  --ogee: var(--og-darkline); color: #fff !important; }
.ialfm-footer .is-style-outline .wp-block-button__link:hover, .ialfm-band--night .is-style-outline .wp-block-button__link:hover,
.ialfm-cta .is-style-outline .wp-block-button__link:hover, .ialfm-home-hero .is-style-outline .wp-block-button__link:hover,
.wp-block-cover .is-style-outline .wp-block-button__link:hover, .ialfm-volunteer-card .is-style-outline .wp-block-button__link:hover {
  --ogee: var(--og-white); color: var(--ialfm-night) !important; }
/* the hero's quick links: glass arches */
.ialfm-hero-quick a { --ogee: var(--og-glass); padding: 14px 20px 8px !important; }
.ialfm-hero-quick a:not(:first-child):hover { --ogee: var(--og-white); color: var(--ialfm-night) !important; }

/* ---------- top menu: an ogee behind the link under the pointer and the page you're on */
.ialfm-header .wp-block-navigation-item__content { position: relative; isolation: isolate; border-color: transparent !important;
  background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
.ialfm-header .wp-block-navigation-item__content::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--og-cream) center / 100% 100% no-repeat; opacity: 0; transition: opacity .15s; }
.ialfm-header .wp-block-navigation-item__content:hover::before, .ialfm-header .wp-block-navigation-item__content[aria-current="page"]::before { opacity: 1; }
@media (min-width: 600px) {
  .ialfm-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content { padding: .8em .8em .45em !important; }
}
}

/* ---------- page title band: the compact title-left / verse-right layout, on a very light lattice */
.ialfm-titleband { background: var(--ialfm-sand) var(--lattice-light) repeat left top / 36px 36px !important; }

/* ---------- feature cards: Hadith of the day is an arch window set into the lattice; Today at IALFM is the arch alone */
.ialfm-hadith, .ialfm-happening { position: relative; isolation: isolate; border: 0 !important; border-radius: 12px !important; }
.ialfm-hadith { background: var(--lattice-light) repeat left top / 36px 36px, #FBF8EF !important; border: 1.5px solid var(--ialfm-gold) !important; }
.ialfm-happening { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.ialfm-hadith::before, .ialfm-happening::before { content: ""; position: absolute; inset: 14px 14px 0; z-index: -1; pointer-events: none;
  background: var(--win-white) center / 100% 100% no-repeat; }
.ialfm-happening::before { inset: 0; background-image: var(--win-closed); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.ialfm-hadith { padding: clamp(78px, 9vw, 104px) clamp(34px, 6vw, 70px) 30px !important; }
.ialfm-happening { padding: 64px 30px 18px !important; }
@media (max-width: 600px) { .ialfm-hadith { padding: 70px 26px 24px !important; } .ialfm-happening { padding: 62px 24px 14px !important; } }


/* ---------- footer: the lattice, faint */
.ialfm-footer { background-image: var(--lattice-faint) !important; background-size: 36px 36px !important; }

/* ---------- campaign cards: the lit minaret (drawn by the ialfm_portal_campaigns shortcode) */
.ialfm-campaign .ialfm-live-card__body { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 18px; align-items: start; }
.ialfm-campaign .ialfm-live-card__body > * { grid-column: 2; }
.ialfm-campaign .ialfm-live-card__body > .ialfm-minaret { grid-column: 1; grid-row: 1 / span 8; width: 76px; height: auto; margin: 4px 0 0; }
/* the minaret replaces the bar; the legend explains the two golds */
.ialfm-campaign .ialfm-progress { display: none; }
.ialfm-progress__key { display: block; font-size: .78rem; color: var(--ialfm-soft); font-weight: 400; }

/* ---------- older rules drew borders/backgrounds on some of these with higher specificity; the ogee replaces them all */
html body .wp-block-buttons .wp-block-button .wp-block-button__link,
html body .ialfm-header-cta .ialfm-signin .wp-block-button__link,
html body .ialfm-subscribe-cal a, html body .ialfm-jump a, html body .ialfm-hero-quick a, html body .ialfm-cookie .wp-element-button {
  border-color: transparent !important; background-color: transparent !important; background-image: none !important; box-shadow: none !important; }
html body .ialfm-header .wp-block-navigation .wp-block-navigation-item__content,
html body .ialfm-header .wp-block-navigation .wp-block-navigation-item__content:hover,
html body .ialfm-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
  border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
/* the theme outlines "outline" buttons permanently; keep an outline only for keyboard focus */
html body .wp-block-button.is-style-outline .wp-block-button__link { outline: 0 !important; }
html body .wp-block-button__link:focus-visible, html body .wp-element-button:focus-visible, html body .ialfm-jump a:focus-visible,
html body .ialfm-hero-quick a:focus-visible, html body .ialfm-subscribe-cal a:focus-visible {
  outline: 2px solid var(--ialfm-gold) !important; outline-offset: 3px; }

/* the header's Become a member and Donate stay side by side */
.ialfm-header-cta { flex-wrap: nowrap !important; }
.ialfm-header-cta .wp-block-button__link { white-space: nowrap; }

/* ---------- every light box sits on the same light lattice as the title band */
.ialfm-cards > .wp-block-column:not(:empty), .ialfm-live-card, .ialfm-aside, .wp-block-details {
  background: var(--ialfm-box-veil), var(--lattice-light) repeat left top / 36px 36px, #FBF8EF !important; }

/* ---------- home hero: "Today at IALFM" runs the full height of the hero's left side, announcements at its foot */
.ialfm-hero-cols { align-items: stretch !important; }
.ialfm-hero-cols > .wp-block-column:last-child { display: flex; }
.ialfm-happening { display: flex; flex-direction: column; width: 100%; max-width: none !important; box-sizing: border-box; }
.ialfm-happening__notices { margin: auto -12px 0; padding: 12px 16px 12px; border: 1px solid #E4D3A0; border-left: 4px solid var(--ialfm-gold);
  border-radius: 10px; background: #FBF3DC var(--lattice-light) repeat left top / 36px 36px; }
.ialfm-happening .ialfm-happening__notices h3 { margin: 0 0 6px !important; font-size: .82rem !important; letter-spacing: .14em; text-transform: uppercase; color: #8A6A1F !important; }
.ialfm-happening__notices ul { list-style: none; margin: 0; padding: 0; }
.ialfm-happening__notices li { display: block !important; padding: 5px 0 5px 20px !important; border: 0 !important; position: relative;
  font-size: 1.08rem !important; line-height: 1.4; font-weight: 600; color: var(--ialfm-night); }
.ialfm-happening__notices li + li { border-top: 1px dashed #E4D3A0 !important; }
.ialfm-happening__notices li::before { content: "✦"; position: absolute; left: 0; top: 7px; font-size: .75rem; color: var(--ialfm-gold); }
.ialfm-happening__notices li.is-urgent { color: #9B2C1F; }
.ialfm-happening__notices li.is-urgent::before { content: "!"; font-weight: 800; font-size: .95rem; top: 4px; color: #9B2C1F; }
.ialfm-happening__notices a { color: var(--ialfm-green) !important; white-space: nowrap; font-weight: 700; }
.ialfm-happening__quiet { margin: 0; font-size: 1rem; color: var(--ialfm-night); }
@media (max-width: 781px) { .ialfm-hero-cols > .wp-block-column:last-child { display: block; } }

/* ---------- home hero title: a small first line, the place names joined by a large gold ampersand */
.ialfm-home-hero h1 .ialfm-hero-title__pre { display: block; font-size: .5em; font-weight: 500; letter-spacing: .04em; color: #E9DDBC; margin-bottom: .12em; }
.ialfm-home-hero h1 .ialfm-amp { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400;
  font-size: 1.45em; line-height: .6; color: var(--ialfm-gold); margin: 0 .04em; position: relative; top: .08em;
  text-shadow: 0 2px 12px rgba(201, 165, 76, .35); }

/* ---------- Today at IALFM: room from the arch's sides, dated section headings, times on one line */
.ialfm-happening { padding: 64px 40px 18px !important; }
.ialfm-happening .ialfm-happening__sub { margin: 12px 0 2px !important; font-size: .78rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ialfm-soft) !important; }
.ialfm-happening .ialfm-happening__sub:first-of-type { margin-top: 2px !important; }
.ialfm-happening .ialfm-happening__sub span { letter-spacing: .04em; color: var(--ialfm-gold); font-weight: 700; }
.ialfm-happening li { grid-template-columns: 128px minmax(0, 1fr) !important; }
.ialfm-happening__time { white-space: normal; font-size: .84rem !important; line-height: 1.35; }
.ialfm-happening__time > span { white-space: nowrap; }
.ialfm-happening__notices { margin-left: -18px !important; margin-right: -18px !important; }
@media (max-width: 600px) { .ialfm-happening { padding: 60px 24px 14px !important; } .ialfm-happening li { grid-template-columns: 124px minmax(0, 1fr) !important; } }

/* ---------- the hero's "Events & calendar" button: calendar icon and a gold count of what's coming up */
.ialfm-home-hero .wp-block-button__link .ialfm-cal-icon { vertical-align: -3px; margin-right: 7px; }
.ialfm-home-hero .wp-block-button__link .ialfm-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  margin-left: 8px; border-radius: 11px; background: var(--ialfm-gold); color: var(--ialfm-night); font-size: .78rem; font-weight: 800; line-height: 1; }
.ialfm-home-hero .wp-block-button__link:hover .ialfm-count { background: var(--ialfm-night); color: #fff; }

/* ---------- Hadith and Volunteer cards on the light lattice with a gold border; larger text so they fill their space */
.ialfm-volunteer-card { background: var(--ialfm-box-veil), var(--lattice-light) repeat left top / 36px 36px, #FBF8EF !important; border: 1.5px solid var(--ialfm-gold) !important;
  color: var(--ialfm-night) !important; }
.ialfm-volunteer-card h3 { color: var(--ialfm-night) !important; font-size: 1.7rem !important; }
.ialfm-volunteer-card p { color: var(--ialfm-night) !important; font-size: 1.1rem !important; line-height: 1.55; }
.ialfm-volunteer-card .ialfm-eyebrow { color: #8A6A1F !important; font-size: .85rem !important; }
.ialfm-volunteer-card .ialfm-medallion__text { fill: var(--ialfm-night) !important; }
.ialfm-volunteer-card .ialfm-medallion circle[fill="#fff"] { fill: #FFFDF8 !important; }
html body .ialfm-volunteer-card .is-style-outline .wp-block-button__link { --ogee: var(--og-white); color: var(--ialfm-night) !important; }
html body .ialfm-volunteer-card .is-style-outline .wp-block-button__link:hover { --ogee: var(--og-cream); color: var(--ialfm-green) !important; }
.ialfm-volunteer-card .wp-block-button__link { font-size: 1.05rem !important; }
.ialfm-hadith__label { font-size: .9rem !important; }
.ialfm-hadith__ar { font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important; }
.ialfm-hadith__en p { font-size: clamp(1.15rem, 1.6vw, 1.4rem) !important; line-height: 1.55; }
.ialfm-hadith__ref { font-size: 1.02rem !important; }
.ialfm-hadith__note { font-size: 1.1rem !important; line-height: 1.6; max-width: 58ch; }
.ialfm-hadith__en { max-width: 56ch !important; }

/* ---------- the masjid's name: two lines, same size; the second never wraps */
.ialfm-home-hero h1 .ialfm-hero-title__pre { font-size: 1em !important; font-weight: inherit !important; letter-spacing: normal !important; color: inherit !important; margin: 0 !important; }
.ialfm-home-hero h1 .ialfm-hero-title__line { display: block; white-space: nowrap; }
.ialfm-home-hero h1 .ialfm-amp { font-size: 1em !important; line-height: 1 !important; top: 0 !important; margin: 0 .06em !important; }
.ialfm-home-hero h1 { font-size: clamp(1.55rem, 4.6vw, 3.4rem) !important; line-height: 1.15 !important; }
@media (min-width: 782px) { .ialfm-home-hero h1 { font-size: clamp(1.9rem, 4.05vw, 3.4rem) !important; } }
@media (max-width: 599px) { .ialfm-home-hero h1 { font-size: clamp(1.3rem, 6.5vw, 2.2rem) !important; } }

/* the section bands behind the boxes stay plain, so the lattice appears once: inside the boxes */
.ialfm-band--sand, .ialfm-band--hadith { background-image: none !important; }
/* a box inside another box stays plain, so patterns never stack */
.ialfm-cards .wp-block-details, .ialfm-aside .wp-block-details, .ialfm-live-card .wp-block-details, .wp-block-details .wp-block-details,
.ialfm-cards .ialfm-aside, .ialfm-aside .ialfm-aside { background: #FFFDF8 !important; }

/* ---------- home: the "Building campaigns" strip of lit minarets */
.ialfm-band--campaigns { padding: 26px clamp(16px, 4vw, 40px) !important; margin: 0 !important; background: #FFFDF8; border-bottom: 1px solid var(--ialfm-line); }
.ialfm-band--campaigns > * { max-width: 1320px !important; margin-left: auto !important; margin-right: auto !important; }
.ialfm-campaign-strip { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 18px 28px; align-items: center; }
.ialfm-campaign-strip__head .ialfm-eyebrow { margin: 0 0 4px !important; }
.ialfm-campaign-strip__head h2 { font-size: clamp(1.4rem, 2vw, 1.8rem) !important; margin: 0 0 6px !important; }
.ialfm-campaign-strip__head p { margin: 0 0 8px !important; color: var(--ialfm-soft); font-size: 1rem; }
.ialfm-campaign-strip__all { font-weight: 700; color: var(--ialfm-green); }
.ialfm-campaign-strip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ialfm-campaign-mini { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--ialfm-night);
  background: var(--ialfm-box-veil), var(--lattice-light) repeat left top / 36px 36px, #FBF8EF; border: 1px solid var(--ialfm-line); border-top: 3px solid var(--ialfm-gold);
  border-radius: 12px; transition: transform .15s, box-shadow .15s; }
.ialfm-campaign-mini:hover, .ialfm-campaign-mini:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 26px -16px rgba(11, 30, 20, .5); }
.ialfm-campaign-mini .ialfm-minaret { flex: none; width: 40px; height: auto; }
.ialfm-campaign-mini__body { display: flex; flex-direction: column; min-width: 0; }
.ialfm-campaign-mini__body strong { font-size: 1.05rem; line-height: 1.25; }
.ialfm-campaign-mini__pct { font-size: 1.5rem; font-weight: 800; color: var(--ialfm-green); line-height: 1.2; margin-top: 2px; }
.ialfm-campaign-mini__amt { font-size: .88rem; color: var(--ialfm-soft); }
.ialfm-campaign-mini__go { font-size: .88rem; font-weight: 700; color: var(--ialfm-gold); margin-top: 4px; }
@media (max-width: 900px) { .ialfm-campaign-strip { grid-template-columns: 1fr; } }

/* ---------- readable text on the lattice: the pattern stays fully visible; each piece of text sits on its own light
   white highlight, in near-black */
:root { --ialfm-box-veil: linear-gradient(transparent, transparent); }
:where(.ialfm-cards > .wp-block-column, .ialfm-live-card__body, .ialfm-aside, .wp-block-details, .ialfm-volunteer-card, .ialfm-campaign-mini__body)
  :is(p, h2, h3, h4, li, summary, .ialfm-eyebrow):not(:empty):not(.wp-block-button):not(:has(> .wp-element-button, > .wp-block-button__link, > iframe, > img, > form, > input)) {
  width: fit-content; max-width: 100%; box-sizing: border-box; background: rgba(255, 255, 255, .86); padding: 2px 8px; border-radius: 6px;
  color: #141A16 !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
:where(.ialfm-cards > .wp-block-column, .ialfm-live-card__body, .ialfm-aside, .wp-block-details, .ialfm-volunteer-card) :is(ul, ol) { padding-left: 0; list-style-position: inside; }
.ialfm-volunteer-card :is(p, h3, .ialfm-eyebrow) { margin-left: auto !important; margin-right: auto !important; }
.ialfm-campaign-mini__body > * { width: fit-content; background: rgba(255, 255, 255, .86); padding: 1px 6px; border-radius: 5px; margin-bottom: 2px; }
.ialfm-cards p, .ialfm-live-card p, .ialfm-aside p, .ialfm-aside li, .wp-block-details p, .wp-block-details li,
.ialfm-campaign-mini__amt, .ialfm-progress__key, .ialfm-live-card__body small { color: #141A16 !important; }
.ialfm-live-card .ialfm-eyebrow, .ialfm-cards .ialfm-eyebrow, .ialfm-volunteer-card .ialfm-eyebrow { color: #7A5A12 !important; }
.ialfm-header { background: #FFFFFF !important; }

/* ---------- Donate page: the big "Donate online" panel, other ways to give in one row */
.ialfm-give { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 24px 40px; align-items: center;
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3.5vw, 44px); margin: 0 0 30px;
  background: var(--lattice-light) repeat left top / 36px 36px, #FBF8EF; border: 2px solid var(--ialfm-gold); border-radius: 16px;
  box-shadow: 0 18px 40px -24px rgba(11, 30, 20, .45); }
.ialfm-give__text > *, .ialfm-give__act .ialfm-give__url { width: fit-content; max-width: 100%; background: rgba(255, 255, 255, .88); padding: 2px 10px; border-radius: 6px; }
.ialfm-give .ialfm-eyebrow { color: #7A5A12 !important; margin: 0 0 6px !important; }
.ialfm-give h3 { font-size: clamp(1.9rem, 3vw, 2.6rem) !important; margin: 0 0 10px !important; color: var(--ialfm-night) !important; }
.ialfm-give__lead { font-size: 1.15rem; color: #141A16; margin: 0 0 14px !important; }
.ialfm-give__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #7A5A12; margin: 6px 0 6px !important; }
.ialfm-give__text > ul.ialfm-give__chips { background: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 8px !important; }
.ialfm-give__chips li { margin: 0 !important; padding: 6px 14px !important; background: #fff; border: 1px solid var(--ialfm-gold); border-radius: 999px; font-size: 1rem; font-weight: 600; color: #141A16; }
.ialfm-give__small { font-size: .9rem; color: #2B3A32; margin: 8px 0 0 !important; }
.ialfm-give__act { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.ialfm-give__act .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
.ialfm-give__act .wp-block-button, .ialfm-give__act .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
.ialfm-give__main .wp-block-button__link { font-size: 1.45rem !important; padding: 30px 20px 16px !important; }
.ialfm-give__act .is-style-outline .wp-block-button__link { font-size: 1.1rem !important; }
.ialfm-give__act .ialfm-give__url { align-self: center; font-size: .9rem; color: #2B3A32; margin: 0; }
.ialfm-give-other { margin-bottom: 8px !important; }
@media (max-width: 781px) { .ialfm-give { grid-template-columns: 1fr; } }

/* ---------- Donate: payment logos, and the "request a fundraiser" callout */
.ialfm-pay-logo { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 0 6px; border-radius: 12px; background: #fff;
  border: 1px solid var(--ialfm-line); box-shadow: 0 4px 10px -6px rgba(11, 30, 20, .35); }
.ialfm-pay-logo svg { width: 26px; height: 26px; }
.ialfm-give-other > .wp-block-column > .ialfm-pay-logo:first-child { margin-top: 24px; margin-left: 24px; }
.ialfm-fr-request { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin: 26px 0 8px;
  padding: 22px clamp(18px, 3vw, 32px); background: var(--lattice-light) repeat left top / 36px 36px, #FBF8EF; border: 1.5px solid var(--ialfm-gold); border-radius: 14px; }
.ialfm-fr-request > div:first-child > * { width: fit-content; max-width: 100%; background: rgba(255, 255, 255, .88); padding: 2px 10px; border-radius: 6px; }
.ialfm-fr-request .ialfm-eyebrow { color: #7A5A12 !important; margin: 0 0 4px !important; }
.ialfm-fr-request h3 { margin: 0 0 6px !important; font-size: 1.35rem !important; color: var(--ialfm-night) !important; }
.ialfm-fr-request p { margin: 0 !important; color: #141A16; font-size: 1.02rem; }
.ialfm-fr-request .wp-block-button__link { font-size: 1.15rem !important; padding: 22px 30px 12px !important; }
/* campaigns: at most three to a row, always filling it */
.ialfm-live-grid.ialfm-live-grid--3 { grid-template-columns: repeat(auto-fit, minmax(max(280px, calc((100% - 40px) / 3)), 1fr)) !important; }

/* ================================================================ Islamic calligraphy
   Aref Ruqaa (OFL, in ialfm-site/fonts) — the Ruq'ah hand. Faint gold dhikr in the corner of each box (behind the text),
   the home page's Bismillah, a small star before section headings, and "as-salamu alaykum" across the footer. */
@font-face { font-family: 'Aref Ruqaa'; src: url(/wp-content/plugins/ialfm-site/fonts/aref-ruqaa-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root { --ialfm-callig: 'Aref Ruqaa', var(--ialfm-arabic), serif; }

/* boxes: a phrase of dhikr in the lower corner */
.ialfm-cards > .wp-block-column:not(:empty), .ialfm-live-card, .ialfm-aside, .ialfm-give, .ialfm-fr-request { position: relative; isolation: isolate; overflow: hidden; }
.ialfm-cards > .wp-block-column:not(:empty)::after, .ialfm-live-card::after, .ialfm-aside::after, .ialfm-give::after, .ialfm-fr-request::after {
  content: "سبحان الله"; position: absolute; z-index: -1; right: 14px; bottom: 2px; pointer-events: none;
  font-family: var(--ialfm-callig); font-weight: 700; font-size: clamp(2.8rem, 3.9vw, 3.9rem); line-height: 1.2; direction: rtl;
  color: #A07C2C; opacity: .42; transform: rotate(6deg); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.ialfm-cards > .wp-block-column:nth-child(4n+2)::after, .ialfm-live-card:nth-child(4n+2)::after, .ialfm-fr-request::after { content: "الحمد لله"; }
.ialfm-cards > .wp-block-column:nth-child(4n+3)::after, .ialfm-live-card:nth-child(4n+3)::after { content: "الله أكبر"; }
.ialfm-cards > .wp-block-column:nth-child(4n+4)::after, .ialfm-live-card:nth-child(4n+4)::after, .ialfm-give::after { content: "بسم الله"; }
.ialfm-give::after { font-size: clamp(3.6rem, 5.4vw, 5.6rem); right: 22px; bottom: 6px; opacity: .3; }
/* cards whose image fills the top keep the phrase clear of the picture: it stays in the lower corner */
.ialfm-live-card { overflow: hidden; }

/* the home page's Bismillah in calligraphy */
.ialfm-bismillah { font-family: var(--ialfm-callig) !important; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem) !important; line-height: 1.5 !important; }

/* section headings: a small gold star before the title */
.ialfm-section > h2.wp-block-heading { display: flex; align-items: center; gap: 12px; }
.ialfm-section > h2.wp-block-heading::before { content: ""; flex: none; width: 26px; height: 26px; background: var(--star) center / contain no-repeat; }

/* footer: "as-salamu alaykum", large and faint */
.ialfm-footer::after { content: "السلام عليكم"; position: absolute; right: clamp(16px, 4vw, 48px); bottom: 10px; pointer-events: none;
  font-family: var(--ialfm-callig); font-weight: 700; font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1; direction: rtl;
  color: var(--ialfm-gold); opacity: .10; }

/* ---------- box titles on a cartouche: a cream plaque with angled ends, gold double outline and a star at each end */
:is(.ialfm-cards > .wp-block-column, .ialfm-live-card__body, .ialfm-aside) > h3.wp-block-heading,
.ialfm-live-card__body > h3, .ialfm-cards > .wp-block-column > .wp-block-group > h3 {
  position: relative; width: fit-content; max-width: 100%; box-sizing: border-box; box-shadow: none !important; border-radius: 0 !important;
  padding: 9px 40px 8px !important; background: var(--cartouche) center / 100% 100% no-repeat !important;
  color: var(--ialfm-night) !important; font-size: 1.28rem !important; letter-spacing: .01em;
  filter: drop-shadow(0 4px 6px rgba(11, 30, 20, .14)); }
:is(.ialfm-cards > .wp-block-column, .ialfm-live-card__body, .ialfm-aside) > h3.wp-block-heading::before,
:is(.ialfm-cards > .wp-block-column, .ialfm-live-card__body, .ialfm-aside) > h3.wp-block-heading::after,
.ialfm-live-card__body > h3::before, .ialfm-live-card__body > h3::after {
  content: ""; position: absolute; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; background: var(--star) center / contain no-repeat; }
:is(.ialfm-cards > .wp-block-column, .ialfm-live-card__body, .ialfm-aside) > h3.wp-block-heading::before, .ialfm-live-card__body > h3::before { left: 15px; }
:is(.ialfm-cards > .wp-block-column, .ialfm-live-card__body, .ialfm-aside) > h3.wp-block-heading::after, .ialfm-live-card__body > h3::after { right: 15px; }
.ialfm-live-card__body > h3 a { color: inherit !important; text-decoration: none; }

/* ================================================================ "Ask IALFM" chat window (ialfm-ask plugin) */
.ialfm-chat-open { position: fixed; right: 18px; bottom: 18px; z-index: 58; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 20px 20px 11px; color: #fff; font: 700 1rem/1 var(--wp--preset--font-family--heading, Georgia, serif);
  background: var(--og-green) center / 100% 100% no-repeat; filter: drop-shadow(0 8px 14px rgba(11, 30, 20, .35)); transition: transform .15s; }
.ialfm-chat-open:hover { transform: translateY(-2px); }
.ialfm-chat-open.is-open { background-image: var(--og-night); }
.ialfm-chat { position: fixed; right: 18px; bottom: 82px; z-index: 58; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: #FFFDF8; border: 1.5px solid var(--ialfm-gold); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(11, 30, 20, .55); }
.ialfm-chat[hidden] { display: none; }
.ialfm-chat__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: #fff;
  background: var(--lattice) repeat left top / 36px 36px, var(--ialfm-night); border-bottom: 2px solid var(--ialfm-gold); }
.ialfm-chat__head > div { flex: 1; display: flex; flex-direction: column; }
.ialfm-chat__head strong { font-size: 1.1rem; }
.ialfm-chat__head small { font-size: .78rem; color: #E9DDBC; }
.ialfm-chat__head button { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; cursor: pointer; font: inherit; }
.ialfm-chat__new { font-size: .78rem !important; padding: 5px 9px; }
.ialfm-chat__close { width: 32px; height: 32px; font-size: 1.3rem !important; line-height: 1; }
.ialfm-chat__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: var(--lattice-light) repeat left top / 36px 36px, #FBF8EF; }
.ialfm-chat__msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: .96rem; line-height: 1.5; box-shadow: 0 2px 6px -3px rgba(11, 30, 20, .3); }
.ialfm-chat__msg p { margin: 0 0 .5em; } .ialfm-chat__msg p:last-child { margin: 0; }
.ialfm-chat__msg.is-bot { align-self: flex-start; background: #fff; color: #141A16; border: 1px solid var(--ialfm-line); border-bottom-left-radius: 4px; }
.ialfm-chat__msg.is-bot a { color: var(--ialfm-green); font-weight: 600; }
.ialfm-chat__msg.is-user { align-self: flex-end; background: var(--ialfm-green); color: #fff; border-bottom-right-radius: 4px; }
.ialfm-chat__starters { display: flex; flex-wrap: wrap; gap: 7px; }
.ialfm-chat__starters[hidden] { display: none; }
.ialfm-chat__starters button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ialfm-gold); background: #fff; color: var(--ialfm-night);
  font: 600 .85rem/1.3 inherit; cursor: pointer; text-align: left; }
.ialfm-chat__starters button:hover { background: var(--ialfm-green); color: #fff; border-color: var(--ialfm-green); }
.ialfm-chat__typing { display: flex; gap: 4px; padding: 4px 0; }
.ialfm-chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ialfm-gold); animation: ialfm-dot 1s infinite ease-in-out; }
.ialfm-chat__typing span:nth-child(2) { animation-delay: .15s; } .ialfm-chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ialfm-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ialfm-chat__form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--ialfm-line); background: #fff; }
.ialfm-chat__form textarea { flex: 1; resize: none; border: 1px solid var(--ialfm-line); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 16px; line-height: 1.4; max-height: 120px; }
.ialfm-chat__form textarea:focus { outline: 2px solid var(--ialfm-gold); outline-offset: 0; }
.ialfm-chat__form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ialfm-green); color: #fff; display: grid; place-items: center; }
.ialfm-chat__form button:hover { background: var(--ialfm-night); }
.ialfm-chat__note { margin: 0; padding: 6px 12px 9px; font-size: .74rem; color: var(--ialfm-soft); background: #fff; }
.ialfm-chat__note a { color: var(--ialfm-green); }
@media (max-width: 599px) {
  .ialfm-chat { right: 8px; left: 8px; width: auto; bottom: 76px; height: calc(100vh - 150px); }
  .ialfm-chat-open { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ialfm-chat__typing span { animation: none; opacity: .7; } }
.ialfm-chat__err { white-space: pre-wrap; max-height: 200px; overflow: auto; font-size: .72rem; background: #FBE9E7; padding: 6px 8px; border-radius: 6px; margin: 4px 0 0; }
/* the chat button steps aside while the Spotlight popup (or search) covers the page, and on phones while the cookie notice is up */
body:has(dialog[open]) .ialfm-chat-open { display: none; }
@media (max-width: 599px) { body:has(#cookie-choices:not([hidden])) .ialfm-chat-open { display: none; } }

/* ================================================================ fixes from phone and tablet review (Oct 2026) */

/* 1. Arch windows: the arched top is a fixed-height cap over a plain body, so on tall (phone) cards the arch no longer
      stretches down through the text. --cap is the cap's height; text starts where the arch is already wide. */
.ialfm-hadith { --cap: clamp(84px, 11vw, 140px); --inset: 14px; padding-top: calc(var(--inset) + var(--cap) * .72) !important; }
.ialfm-happening { --cap: clamp(72px, 8vw, 104px); --inset: 0px; padding-top: calc(var(--cap) * .74) !important; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.ialfm-hadith::before, .ialfm-happening::before { inset: var(--inset) var(--inset) auto !important; height: var(--cap);
  background: var(--cap-white) center / 100% 100% no-repeat !important; filter: none !important; }
.ialfm-hadith::after, .ialfm-happening::after { content: ""; position: absolute; z-index: -1; pointer-events: none; top: calc(var(--inset) + var(--cap) - 1px); bottom: 0;
  left: calc(var(--inset) + (100% - 2 * var(--inset)) * .01 - 1.75px); right: calc(var(--inset) + (100% - 2 * var(--inset)) * .01 - 1.75px);
  background: #FFFDF8; border-left: 3.5px solid #C9A54C; border-right: 3.5px solid #C9A54C; }
.ialfm-happening::after { border-bottom: 3.5px solid #C9A54C; }

/* 2. The open menu on tablets: a centred 3×3 grid of equal arches (like the phone menu); the current page in green */
.ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: center !important; justify-content: flex-start !important; padding-top: clamp(70px, 12vh, 130px) !important; width: 100%; }
.ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 230px)); justify-content: center; gap: 22px 18px !important; width: 100%; }
.ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { display: block !important; width: 100%; }
.ialfm-header .wp-block-navigation__responsive-container.is-menu-open .ialfm-nav-signin { display: block !important; }
.ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block !important; width: 100% !important; box-sizing: border-box; text-align: center; white-space: nowrap;
  padding: 22px 10px 11px !important; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; border: 0 !important; }
.ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::before { opacity: 1; }
.ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"]::before { background-image: var(--og-green); }
.ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: #fff !important; }
body:has(.wp-block-navigation__responsive-container.is-menu-open) .ialfm-chat-open { display: none; }

/* 3. Tables: words never break in the middle; the Jumu'ah names stay on one line */
.wp-block-table td, .wp-block-table th { word-break: normal !important; overflow-wrap: normal !important; }
#jumuah table td:first-child, #jumuah table th:first-child { white-space: nowrap; }

@media (max-width: 600px) {
  /* 4. Event and campaign cards: a long title wraps, so it gets a plain highlighted title instead of the plaque */
  .ialfm-live-card__body > h3 { background: rgba(255, 255, 255, .88) !important; padding: 3px 8px !important; border-radius: 6px !important; filter: none;
    font-size: 1.2rem !important; line-height: 1.25; border-left: 3px solid var(--ialfm-gold); }
  .ialfm-live-card__body > h3::before, .ialfm-live-card__body > h3::after { display: none !important; }
  /* 5. A smaller chat button, and room at the end of the page so it never sits on the last line */
  .ialfm-chat-open { padding: 16px 14px 9px; font-size: .9rem; gap: 6px; }
  .ialfm-chat-open svg { width: 18px; height: 18px; }
  .ialfm-footer { padding-bottom: 76px !important; }
}

/* ================================================================ News (posts), topic pages, small fixes */
.ialfm-happening .ialfm-happening__quiet, .ialfm-happening .ialfm-happening__quiet a { color: #141A16 !important; }
.ialfm-happening .ialfm-happening__quiet a { color: var(--ialfm-green) !important; font-weight: 700; }
.ialfm-news-intro { font-size: 1.1rem; color: var(--ialfm-soft); margin: 0 0 22px !important; }
.ialfm-news-list .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; padding: 0; list-style: none; }
.ialfm-news-list .wp-block-post, .ialfm-news-item { position: relative; padding: 18px 20px; border: 1px solid var(--ialfm-line); border-top: 3px solid var(--ialfm-gold);
  border-radius: 12px; background: var(--lattice-light) repeat left top / 36px 36px, #FBF8EF; }
.ialfm-news-list .wp-block-post > *, .ialfm-news-item > * { width: fit-content; max-width: 100%; background: rgba(255, 255, 255, .88); padding: 2px 8px; border-radius: 6px; margin: 0 0 6px !important; }
.ialfm-news-list .wp-block-post-featured-image { padding: 0; width: 100%; margin: -18px -20px 12px !important; max-width: none; width: calc(100% + 40px); border-radius: 9px 9px 0 0; overflow: hidden; }
.ialfm-news-list .wp-block-post-title, .ialfm-news-item h3 { font-size: 1.25rem !important; line-height: 1.3; }
.ialfm-news-list .wp-block-post-title a, .ialfm-news-item h3 a { color: var(--ialfm-night); text-decoration: none; }
.ialfm-news-list .wp-block-post-title a:hover, .ialfm-news-item h3 a:hover { color: var(--ialfm-green); text-decoration: underline; }
.ialfm-news-date { font-size: .8rem !important; letter-spacing: .1em; text-transform: uppercase; color: #7A5A12 !important; font-weight: 700; }
.ialfm-news-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 10px 0 14px; }
.ialfm-news-back { margin: 0 0 10px !important; font-weight: 700; }
.ialfm-plain-page .wp-block-post-date.ialfm-news-date { margin: 0 0 18px; }
.ialfm-plain-page .wp-block-post-content { font-size: 1.08rem; line-height: 1.7; }
.ialfm-plain-page .wp-block-post-content h2 { margin-top: 1.4em; }
.wp-block-query-pagination { margin-top: 26px; gap: 14px; }

/* ---------- phones: the ☰ menu opens the same arch tiles as tablets, two to a row; a compact header row */
@media (max-width: 599px) {
  .ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px !important; }
  .ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.05rem; padding: 20px 6px 10px !important; }
  .ialfm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px !important; }
  .ialfm-header > .wp-block-group { gap: 8px; }
  .ialfm-header .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; }
}

/* ================================================================ audit of Oct 2026 */
/* Gold as text: the bright gold is for ornament and dark backgrounds; on light backgrounds text uses a darker gold (5.7:1 on white). */
:root { --ialfm-gold-text: #7A6418; }
.ialfm-eyebrow, .ialfm-happening .ialfm-happening__sub span { color: var(--ialfm-gold-text); }
.wp-block-cover .ialfm-eyebrow, .ialfm-home-hero .ialfm-eyebrow, .ialfm-footer .ialfm-eyebrow { color: var(--ialfm-gold); }
.ialfm-campaign-mini__go, .ialfm-hadith__label, .ialfm-verse cite, .ialfm-verse__ar { color: var(--ialfm-gold-text) !important; }
/* on dark backgrounds gold text is the lighter gold (5.5:1 or better on the night green) */
.ialfm-home-hero .ialfm-eyebrow, .wp-block-cover .ialfm-eyebrow, .ialfm-today--hero .ialfm-today__next { color: #D9BE6E !important; }
.ialfm-footer h3 { color: #D2B25E; }
.ialfm-footer a:not(.wp-block-button__link):hover { color: #D9BE6E; }
/* small gold badges: night green on the lighter gold */
.ialfm-home-hero .wp-block-button__link .ialfm-count, .ialfm-happening em { background: #C4AB57; color: #0B2E1C; }
/* the next prayer's tile: night green on the lighter gold (6.6:1), whatever the colour style */
.ialfm-today--hero .ialfm-today__grid .is-next { background: #C4AB57 !important; border-color: #C4AB57 !important; }
.ialfm-today--hero .ialfm-today__grid .is-next span, .ialfm-today--hero .ialfm-today__grid .is-next strong { color: #0B2E1C !important; }

/* Laptops (1140–1359px): the whole menu stays on one row, set a little tighter. */
@media (min-width: 1140px) and (max-width: 1359px) {
  html body .ialfm-header .wp-block-navigation .wp-block-navigation-item__content { padding-left: 5px !important; padding-right: 5px !important; font-size: .95rem; }
  .ialfm-header > .wp-block-group, .ialfm-header > .wp-block-group > .wp-block-group { gap: 12px !important; }
  .ialfm-header .wp-block-site-logo, .ialfm-header > .wp-block-group > .wp-block-group:first-child { flex: none; }
  .ialfm-header-cta { gap: 8px !important; }
  html body .ialfm-header-cta .wp-block-button__link { padding-left: .9em !important; padding-right: .9em !important; font-size: .9rem; }
}
/* The menu's own "Membership" entry is for phones, where the header's "Become a member" button is hidden. */
@media (min-width: 601px) { .ialfm-header .wp-block-navigation__responsive-container.is-menu-open .ialfm-nav-signin { display: none !important; } }

/* "Today at IALFM" in a narrow column (tablets, small laptops): the time sits above the title instead of squeezing it. */
.ialfm-happening { container-type: inline-size; }
@container (max-width: 330px) {
  .ialfm-happening li { grid-template-columns: minmax(0, 1fr) !important; gap: 1px !important; }
  .ialfm-happening__time br { display: none; }
  .ialfm-happening__time > span:not(:first-child)::before { content: " & "; }
}

/* Cookie notice: one short line and two small buttons on a phone. */
.ialfm-cookie__short { display: none; }
@media (max-width: 599px) {
  .ialfm-cookie { padding: 10px 12px !important; gap: 8px 10px !important; font-size: .84rem; line-height: 1.35; }
  .ialfm-cookie__long { display: none; }
  .ialfm-cookie__short { display: inline; }
  .ialfm-cookie p { flex: 1 1 100%; }
  html body .ialfm-cookie .wp-element-button { padding: .5em 1em .4em !important; font-size: .85rem; min-height: 40px; }
}

/* Easy targets for a finger: footer links and the credit line are at least 24px tall, the menu button 44px. */
.ialfm-footer a:not(.wp-block-button__link):not(.wp-block-social-link-anchor) { display: inline-block; min-height: 24px; line-height: 24px; }
.ialfm-footer .ialfm-credit { font-size: .78rem; }
.ialfm-credit a { min-height: 24px; }
.ialfm-header .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
