/*
Theme Name: Al Kawthar Community Centre
Theme URI: https://alkawthar.ca
Author: Ghadeer
Description: Custom WordPress theme for Al Kawthar Community Centre, Calgary.
Version: 1.5.0
Text Domain: alkawthar
*/

/*
 * Al Kawthar visual system — warm, dignified and community-centred.
 * Colors are intentionally centralized here so Phase 2 can map them into a child theme.
 */
:root {
  --cedar: #123e35;
  --burgundy: #762936;
  --cream: #f8f4ea;
  --sand: #e8ddc8;
  --gold: #c6a15b;
  --charcoal: #262626;
  --white: #fff;
  --muted: #6c706a;
  --line: #dcd4c5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; background: var(--cream); color: var(--charcoal); font-family: var(--sans); }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.site-shell { overflow-x: hidden; }
.site-header-group { position: relative; z-index: 100; background: var(--cream); }
.header-scroll-sentinel { display: block; width: 1px; height: 1px; position: absolute; top: 24px; left: 0; pointer-events: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; width: 100%; background: var(--cream); box-shadow: 0 1px 0 rgba(18,62,53,.08); }
.site-shell > .site-header { top: 0; }
.site-shell > .site-header + .hero { padding-top: 123px; }
.section-wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.announcement { min-height: 34px; padding: 8px 24px; background: var(--burgundy); color: var(--white); display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .02em; }
.announcement button { border: 0; padding: 0 0 2px; color: var(--white); background: transparent; border-bottom: 1px solid var(--gold); margin-left: 10px; }
.announcement-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.site-header { min-height: 103px; padding: 12px max(32px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--cream); border-bottom: 1px solid var(--line); position: fixed; inset: 0 0 auto; z-index: 100; transition: min-height .25s ease, padding .25s ease; }
.site-header.scrolled { height: 85px; min-height: 85px; padding-top: 6px; padding-bottom: 6px; }
.site-header.scrolled .brand img { width: 58px; height: 58px; }
.site-header.scrolled .brand b { font-size: 20px; }
.site-header.scrolled .brand small { margin-top: 3px; font-size: 10px; }
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: shrink-header-on-scroll linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 120px;
  }
}
@keyframes shrink-header-on-scroll {
  from { height: 103px; min-height: 103px; padding-top: 12px; padding-bottom: 12px; }
  to { height: 85px; min-height: 85px; padding-top: 6px; padding-bottom: 6px; }
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--cedar); text-decoration: none; min-width: 230px; }
.brand img { width: 85px; height: 85px; object-fit: cover; mix-blend-mode: multiply; transition: width .25s ease, height .25s ease; }
.brand b { display: block; font: 700 23px/1 var(--serif); letter-spacing: -.02em; }
.brand small { display: block; margin-top: 5px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.brand i { font-style: normal; text-transform: none; letter-spacing: 0; margin-left: 4px; color: var(--burgundy); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links button, .nav-links a { color: var(--charcoal); border: 0; background: transparent; padding: 11px 10px; font-size: 12px; text-decoration: none; }
.nav-links button:hover, .nav-links a:hover, .nav-links button.active { color: var(--burgundy); }
.nav-links .support-link { color: var(--white); background: var(--burgundy); padding: 13px 18px; margin-left: 10px; border-radius: 2px; }
.nav-links .support-link:hover { color: var(--white); background: var(--cedar); }
.menu-toggle { display: none; background: transparent; border: 0; width: 40px; padding: 8px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--cedar); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 70px; padding-top: 74px; position: relative; align-items: center; }
.hero-copy { padding: 35px 0 60px; }
.eyebrow { margin: 0 0 18px; color: var(--burgundy); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; color: var(--cedar); font: 700 clamp(48px, 7vw, 85px)/.93 var(--serif); letter-spacing: -.055em; }
h1 em { color: var(--burgundy); font-style: italic; }
.hero-lede { max-width: 430px; margin: 29px 0 16px; color: var(--cedar); font: 22px/1.3 var(--serif); }
.hero-body { max-width: 450px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.button-row { display: flex; align-items: center; gap: 23px; margin-top: 30px; }
.button, .outline-button { border: 0; padding: 15px 20px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.button.primary { color: var(--white); background: var(--burgundy); }
.button.primary:hover { background: var(--cedar); }
.text-button { color: var(--burgundy); padding-left: 0; background: transparent; }
.button span, .outline-button span { margin-left: 10px; font-size: 16px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 64px; color: var(--muted); font: italic 12px var(--serif); }
.gold-rule { width: 33px; height: 1px; background: var(--gold); }
.prayer-panel-wrap { min-width: 0; }
.prayer-card { grid-column: auto; margin: 0; align-self: center; color: var(--white); background: var(--cedar); padding: 22px 24px 20px; max-width: 420px; border-radius: 12px; box-shadow: 0 12px 28px rgba(18,62,53,.16); }
.prayer-top, .prayer-date, .fasting { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prayer-card h2 { margin: 0; font: 18px var(--sans); line-height: 1.1; }
.prayer-date-picker input { width: 140px; padding: 7px 8px; color: var(--white); border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: rgba(255,255,255,.16); font: 13px var(--sans); }
.prayer-date-picker input:focus { outline: 2px solid var(--gold); outline-offset: 3px; }
.prayer-date { padding: 12px 0 8px; border-bottom: 1px solid rgba(255,255,255,.2); font: 13px var(--serif); color: rgba(255,255,255,.82); }
.clock { margin: 10px 0 8px; color: var(--gold); font: 15px var(--serif); }
.clock small { display: inline; margin-left: 6px; color: rgba(255,255,255,.52); font: 10px var(--sans); letter-spacing: .05em; }
.prayer-times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.prayer-times div { padding: 8px; border: 0; border-radius: 8px; background: rgba(38,38,38,.25); text-align: center; }
.prayer-times span, .fasting small { display: block; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.prayer-times b { display: block; margin-top: 4px; font: 15px var(--serif); }
.prayer-times .highlight { background: rgba(198,161,91,.2); }.prayer-times .highlight b { color: var(--gold); }
.fasting { padding: 11px 0 0; }
.fasting b { display: block; margin-top: 4px; font: 13px var(--serif); }
.prayer-note { margin: 13px 0 0; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.45; }
.prayer-status { margin: 12px 0 0; color: rgba(255,255,255,.65); font-size: 11px; }.prayer-error { color: #f0c8a1; }
.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 75px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px max(32px, calc((100% - 1180px) / 2)); }
.info-strip div { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--cedar); font: 13px var(--serif); border-right: 1px solid var(--line); }
.info-strip div:last-child { border: 0; }.info-strip span { color: var(--burgundy); font-size: 19px; }
.section-space { padding-top: 98px; padding-bottom: 98px; }.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 35px; }.section-heading.centered { display: block; text-align: center; }h2 { color: var(--cedar); font: 700 clamp(34px, 4vw, 51px)/1 var(--serif); letter-spacing: -.04em; }.section-heading h2 { margin-bottom: 0; }.outline-button { background: transparent; color: var(--burgundy); border: 1px solid var(--burgundy); }.outline-button:hover { color: var(--white); background: var(--burgundy); }.demo-label { margin: -17px 0 22px; color: var(--burgundy); font-size: 9px; letter-spacing: .12em; font-weight: bold; }.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.event-card { background: var(--white); border: 1px solid var(--line); }.event-image { height: 195px; position: relative; overflow: hidden; }.event-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }.event-category { position: absolute; top: 14px; right: 14px; padding: 6px 9px; background: var(--cream); color: var(--burgundy); font-size: 9px; font-weight: bold; text-transform: uppercase; }.event-date { position: absolute; bottom: 0; left: 0; width: 60px; padding: 10px; background: var(--burgundy); color: var(--white); text-align: center; }.event-date b { display: block; font: 28px var(--serif); line-height: 1; }.event-date small { font-size: 9px; letter-spacing: .14em; }.event-content { padding: 18px 19px 20px; }.event-meta { margin-bottom: 12px; color: var(--burgundy); font-size: 10px; line-height: 1.4; }.event-content h3 { min-height: 50px; margin-bottom: 15px; color: var(--cedar); font: 22px/1.05 var(--serif); }.event-location { min-height: 30px; color: var(--muted); font-size: 10px; line-height: 1.5; }.event-content button, .light-link { padding: 0; border: 0; background: transparent; color: var(--burgundy); font-size: 11px; font-weight: bold; }.event-content button span { margin-left: 8px; }.story-section { color: var(--white); background: var(--cedar); padding: 90px 0; background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(198,161,91,.03) 36px, transparent 37px); }.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 130px; }.story-section h2 { max-width: 440px; color: var(--white); }.story-section p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }.story-section .story-lede { color: var(--white); font: 22px/1.4 var(--serif); }.light-link { margin-top: 20px; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 8px; }.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.pillar { position: relative; min-height: 195px; padding: 23px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.pillar:hover { background: var(--white); }.pillar-number { color: var(--gold); font: 13px var(--serif); }.pillar h3 { margin: 29px 0 9px; color: var(--cedar); font: 22px var(--serif); }.pillar p { max-width: 230px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.pillar-arrow { position: absolute; top: 22px; right: 23px; color: var(--burgundy); }.programs-section { padding: 88px 0; background: var(--sand); }.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; }.programs-grid > div:first-child p { max-width: 390px; color: var(--muted); font-size: 14px; line-height: 1.7; }.programs-grid .button { margin-top: 16px; }.program-list { border-top: 1px solid rgba(18,62,53,.25); }.program-list button { display: flex; align-items: center; width: 100%; padding: 17px 0; color: var(--cedar); text-align: left; background: transparent; border: 0; border-bottom: 1px solid rgba(18,62,53,.25); font: 21px var(--serif); }.program-list button span { width: 45px; color: var(--burgundy); font: 11px var(--sans); }.program-list button b { margin-left: auto; color: var(--burgundy); font: 15px var(--sans); }.program-list button:hover { padding-left: 8px; color: var(--burgundy); }.heading-aside { max-width: 280px; color: var(--muted); font: 14px/1.6 var(--serif); }.mosaic { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 15px; }.mosaic > div { min-height: 280px; position: relative; overflow: hidden; background: var(--sand); }.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); }.mosaic span { position: absolute; left: 15px; bottom: 13px; color: var(--white); font-size: 9px; text-shadow: 0 1px 3px var(--charcoal); }.mosaic-tall { height: 370px; }.mosaic-card { display: flex; flex-direction: column; justify-content: center; padding: 30px; background: var(--cedar) !important; color: var(--white); }.mosaic-card .quote-mark { position: static; color: var(--gold); font: 55px var(--serif); }.mosaic-card p { font: 22px/1.25 var(--serif); }.mosaic-card small { color: var(--gold); font-size: 10px; }.involved-section { padding: 80px 0; color: var(--white); background: var(--burgundy); }.involved-section h2 { color: var(--white); }.involved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }.involved-card { min-height: 195px; padding: 24px; text-align: left; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.3); }.involved-card:hover { background: var(--cedar); border-color: var(--gold); }.involved-card > span { color: var(--gold); font-size: 22px; }.involved-card h3 { margin: 28px 0 8px; font: 24px var(--serif); }.involved-card p { max-width: 230px; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.5; }.involved-card b { color: var(--gold); font-size: 11px; }.contact-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }.contact-copy { max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.7; }.contact-details { display: flex; gap: 55px; margin: 32px 0; }.contact-details small { display: block; color: var(--burgundy); font-size: 9px; letter-spacing: .14em; }.contact-details strong { display: block; margin-top: 8px; color: var(--cedar); font: 19px var(--serif); }.contact-details span { display: block; max-width: 150px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }.map-placeholder { height: 365px; position: relative; overflow: hidden; background: var(--sand); }.map-grid { position: absolute; inset: -30%; opacity: .35; background-image: linear-gradient(27deg, transparent 48%, var(--cedar) 49%, transparent 50%), linear-gradient(87deg, transparent 48%, var(--cedar) 49%, transparent 50%); background-size: 105px 82px; transform: rotate(-14deg); }.map-pin { position: absolute; top: 40%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); background: var(--burgundy); font-size: 22px; box-shadow: 0 0 0 9px rgba(118,41,54,.15); }.map-caption { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 5px; padding: 12px 15px; background: var(--white); color: var(--cedar); font-size: 11px; }.map-caption span { color: var(--muted); font-size: 9px; }.site-footer { padding: 60px 0 20px; background: var(--cedar); color: var(--white); }.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr 1fr; gap: 40px; }.footer-brand img { width: 62px; height: 62px; margin-bottom: 17px; mix-blend-mode: screen; filter: grayscale(1) brightness(0) invert(1); }.footer-brand p { max-width: 210px; color: rgba(255,255,255,.7); font: 17px/1.35 var(--serif); }.footer-brand small { color: var(--gold); font-size: 9px; }.site-footer h4 { margin: 5px 0 18px; color: var(--gold); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }.site-footer button { display: block; padding: 0; margin: 0 0 12px; color: rgba(255,255,255,.75); border: 0; background: transparent; font-size: 11px; text-align: left; }.site-footer button:hover { color: var(--gold); }.footer-arabic { text-align: right; }.footer-arabic span { color: var(--gold); font: 22px var(--serif); }.footer-arabic p { color: rgba(255,255,255,.6); font: 13px var(--serif); }.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.5); font-size: 9px; }
@media (max-width: 1024px) { .section-wrap { width: min(100% - 40px, 720px); }.site-header { padding-left: 20px; padding-right: 20px; }.nav-links { display: none; position: absolute; top: 83px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: var(--cream); border-bottom: 1px solid var(--line); }.nav-links.open { display: flex; }.nav-links button, .nav-links a { text-align: left; }.nav-links .support-link { margin: 8px 0 0; }.menu-toggle { display: block; }.hero { grid-template-columns: minmax(0, 1fr) minmax(190px, 42%); gap: 18px; padding-top: 30px; }.hero-copy { padding-bottom: 30px; }.prayer-panel-wrap { width: 100%; }.prayer-card { grid-column: 1; margin: 0; max-width: 100%; }.info-strip { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 17px 20px; }.info-strip div:nth-child(2) { border: 0; }.events-grid, .pillars-grid { grid-template-columns: repeat(2, 1fr); }.story-grid, .programs-grid, .contact-section { grid-template-columns: 1fr; gap: 40px; }.mosaic { grid-template-columns: 1fr 1fr; }.mosaic-tall { height: 300px; grid-row: span 2; }.mosaic-card { min-height: 300px !important; }.footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }.footer-arabic { display: none; } }
@media (max-width: 560px) { .section-wrap { width: calc(100% - 32px); }.announcement { justify-content: flex-start; flex-wrap: wrap; padding: 8px 16px; }.announcement > span:not(.announcement-dot) { display: none; }.site-header { min-height: 75px; }.brand img { width: 43px; height: 43px; }.brand b { font-size: 18px; }.brand small { font-size: 8px; }.brand i { display: none; }.nav-links { top: 75px; }.hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }.hero-copy { min-width: 0; padding-top: 20px; }.hero-lede { font-size: 18px; }.hero-body { font-size: 12px; }.button-row { flex-wrap: wrap; gap: 10px; }.hero-note { margin-top: 28px; }.prayer-card { margin: 0; padding: 14px 10px; }.prayer-card h2 { font-size: 18px; }.prayer-date-picker input { width: 140px; padding: 7px 8px; }.prayer-times { grid-template-columns: repeat(2, 1fr); gap: 10px; }.prayer-times b { font-size: 15px; }.clock small { display: block; margin: 3px 0 0; }.info-strip { margin-top: 48px; grid-template-columns: 1fr 1fr; }.info-strip div { font-size: 11px; border-right: 0; }.section-space { padding-top: 65px; padding-bottom: 65px; }.section-heading { display: block; }.section-heading .outline-button { margin-top: 22px; }.events-grid, .pillars-grid, .involved-grid { grid-template-columns: 1fr; }.story-section, .programs-section, .involved-section { padding: 65px 0; }.story-grid { gap: 15px; }.programs-grid { gap: 30px; }.mosaic { grid-template-columns: 1fr; }.mosaic-tall { grid-row: auto; height: 290px; }.mosaic > div { min-height: 245px; }.contact-section { gap: 35px; }.contact-details { gap: 24px; }.map-placeholder { height: 300px; }.footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }.footer-brand { grid-column: span 2; }.footer-bottom { flex-direction: column; margin-top: 35px; } }
/* Interior page layouts */
.page-hero { padding-top: 84px; padding-bottom: 82px; max-width: 1180px; }
.page-hero h1 { max-width: 820px; }
.page-hero > p:last-child { max-width: 650px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.content-section { padding-top: 92px; padding-bottom: 92px; }
.split-content, .contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split-content h2, .contact-page-grid h2 { margin-top: 0; }
.split-content > div:last-child { color: var(--muted); font-size: 15px; line-height: 1.8; }
.split-content > div:last-child p { margin-bottom: 22px; }
.cedar-section, .involved-section { padding: 92px 0; background: var(--cedar); color: var(--white); }
.cedar-section h2, .involved-section h2 { color: var(--white); }
.value-grid, .program-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 38px; }
.value-card { padding: 25px 20px; border: 1px solid rgba(255,255,255,.2); min-height: 190px; }
.value-card span { color: var(--gold); font-size: 24px; }.value-card h3 { font: 22px var(--serif); }.value-card p { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.6; }
.timeline-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }.timeline { border-top: 1px solid var(--line); }.timeline div { display: grid; grid-template-columns: 90px 1fr; gap: 22px; padding: 21px 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.6; }.timeline b { color: var(--burgundy); font: 23px var(--serif); }
.cta-band { padding: 58px 0; background: var(--burgundy); color: var(--white); }.cta-band .section-wrap { display: flex; justify-content: space-between; gap: 30px; align-items: center; }.cta-band h2 { color: var(--white); margin-bottom: 0; }.cta-band .button { background: var(--cream); color: var(--burgundy); }
.sand-section { padding: 82px 0; background: var(--sand); }.program-cards { grid-template-columns: repeat(3, 1fr); }.program-card { background: var(--white); border: 1px solid var(--line); padding: 24px; min-height: 220px; }.program-card h3 { color: var(--cedar); font: 25px var(--serif); }.program-card p { min-height: 70px; color: var(--muted); font-size: 13px; line-height: 1.6; }.program-card button { padding: 0; border: 0; color: var(--burgundy); background: transparent; font-size: 12px; font-weight: bold; }.program-card button span { margin-left: 8px; }.moments-placeholder h2 { margin-bottom: 35px; }.placeholder-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.placeholder-photo-grid div { min-height: 210px; display: grid; place-items: end start; padding: 18px; color: var(--white); background: linear-gradient(135deg, var(--cedar), var(--burgundy)); font: 18px var(--serif); }
.contact-page-grid { padding-bottom: 105px; }.contact-page-grid > div > p:not(.eyebrow), .contact-copy { color: var(--muted); line-height: 1.7; }.contact-page-grid .contact-details { display: flex; flex-direction: column; gap: 24px; margin: 35px 0; }.contact-form-wrap { padding: 34px; background: var(--white); border: 1px solid var(--line); }.contact-form-wrap form { display: flex; flex-direction: column; gap: 17px; }.contact-form-wrap label { display: flex; flex-direction: column; gap: 7px; color: var(--cedar); font-size: 12px; font-weight: bold; }.contact-form-wrap input, .contact-form-wrap select, .contact-form-wrap textarea { width: 100%; padding: 13px; color: var(--charcoal); border: 1px solid var(--line); background: var(--cream); font: 14px var(--sans); }.contact-form-wrap input:focus, .contact-form-wrap select:focus, .contact-form-wrap textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }.actual-map { position: relative; height: 330px; overflow: hidden; background: var(--sand); }.actual-map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75); }.actual-map .map-caption { position: absolute; left: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 5px; max-width: 280px; padding: 14px 16px; color: var(--cedar); background: var(--white); text-decoration: none; box-shadow: 0 8px 20px rgba(38,38,38,.12); }.actual-map .map-caption b { font-size: 14px; }.actual-map .map-caption span { color: var(--muted); font-size: 12px; line-height: 1.4; }.form-note { color: var(--muted); font-size: 10px; }.success-message { padding: 22px; color: var(--cedar); background: var(--sand); line-height: 1.6; }.success-message button { margin-top: 10px; }
@media (min-width: 561px) and (max-width: 1024px) {
  .section-wrap { width: calc(100% - 28px); max-width: none; }
  .page-hero { width: calc(100% - 28px); max-width: none; }
  .site-header { padding-left: 14px; padding-right: 14px; }
  .hero { gap: 28px; }
  .info-strip { padding-left: 14px; padding-right: 14px; }
  .content-section, .cedar-section, .sand-section, .involved-section { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1024px) { .page-hero { padding-top: 60px; padding-bottom: 55px; }.split-content, .contact-page-grid, .timeline-section { grid-template-columns: 1fr; gap: 35px; }.value-grid { grid-template-columns: repeat(2, 1fr); }.program-cards { grid-template-columns: repeat(2, 1fr); }.placeholder-photo-grid { grid-template-columns: 1fr 1fr; }.cta-band .section-wrap { align-items: flex-start; flex-direction: column; } }
@media (max-width: 560px) { .page-hero { padding-top: 48px; padding-bottom: 45px; }.page-hero > p:last-child { font-size: 15px; }.content-section, .cedar-section { padding-top: 65px; padding-bottom: 65px; }.value-grid, .program-cards, .placeholder-photo-grid { grid-template-columns: 1fr; }.value-card { min-height: auto; }.program-card p { min-height: auto; }.contact-form-wrap { padding: 22px 17px; }.timeline div { grid-template-columns: 70px 1fr; gap: 12px; } }
@media (min-width: 1025px) {
  .announcement, .nav-links button, .nav-links a, .button, .outline-button, .event-content button, .light-link, .program-card button { font-size: 14px; }
  .eyebrow, .event-category, .event-date small, .event-meta, .event-location, .fasting small, .prayer-times span, .clock small { font-size: 12px; }
  .hero-body { font-size: 16px; }
  .form-note { font-size: 12px; }
}
/* Footer refinement: use the approved white-backed logo and larger readable type. */
.site-footer { font-size: 16px; }
.site-footer .footer-brand img {
  object-fit: cover;
  background: var(--white);
  mix-blend-mode: normal;
  width: 88px;
  padding-right: 5px;
  height: 88px;
  margin-bottom: 17px;
  display: block;
  filter: none !important;
}
.site-footer .footer-brand p { font-size: 16px; line-height: 1.45; }
.site-footer .footer-brand small { display: block; font-size: 14px; line-height: 1.4; }
.site-footer .footer-grid > div > a, .site-footer .footer-grid > div > button { font-size: 14px; }
.site-footer .footer-bottom { font-size: 14px; }
@media (max-width: 560px) {
  .site-footer .footer-brand p { font-size: 15px; }
  .site-footer .footer-brand small { font-size: 12px; }
  .site-footer .footer-bottom { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* WordPress integration */
html { scroll-padding-top: 110px; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px){ body.admin-bar .site-header { top: 46px; } }
.site-shell { overflow-x: clip; }
.site-header-group { min-height: 103px; }
.site-header.scrolled + * { }
.custom-logo-link { display:flex; align-items:center; text-decoration:none; }
.brand-logo-fallback { width:85px; height:85px; display:grid; place-items:center; background:var(--white); color:var(--cedar); border:1px solid var(--line); font:700 26px/1 var(--serif); transition:.25s ease; }
.site-header.scrolled .brand-logo-fallback { width:58px; height:58px; font-size:20px; }
.brand .custom-logo { width:85px; height:85px; object-fit:contain; mix-blend-mode:multiply; transition:width .25s ease,height .25s ease; }
.site-header.scrolled .brand .custom-logo { width:58px; height:58px; }
.site-footer .custom-logo { width:88px; height:88px; object-fit:contain; background:var(--white); mix-blend-mode:normal; filter:none!important; }
.site-footer .brand-logo-fallback { width:88px; height:88px; margin-bottom:17px; background:var(--white); }
.site-header-spacer { height:103px; }
.site-header.scrolled ~ .site-header-spacer { height:85px; }
.screen-reader-text,.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wp-content p { line-height:1.75; }
.wp-content a { color:var(--burgundy); }
.wp-content img { height:auto; }
.event-card a.event-link { display:inline-flex; align-items:center; color:var(--burgundy); text-decoration:none; font-size:12px; font-weight:700; }
.event-card a.event-link span { margin-left:8px; }
.event-image.no-image { background:linear-gradient(135deg,var(--sand),var(--cream)); }
.event-image.no-image:after { content:'Al Kawthar'; position:absolute; inset:0; display:grid; place-items:center; color:var(--cedar); font:italic 24px var(--serif); opacity:.65; }
.event-detail-wrap { padding-top:80px; padding-bottom:100px; }
.event-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:56px; align-items:start; }
.event-detail-meta { padding:24px; background:var(--sand); border:1px solid var(--line); }
.event-detail-meta div { padding:12px 0; border-bottom:1px solid rgba(38,38,38,.12); }
.event-detail-meta div:last-child { border-bottom:0; }
.event-detail-meta small { display:block; color:var(--burgundy); font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin-bottom:5px; }
.event-detail-meta strong { color:var(--cedar); font:18px var(--serif); }
.event-featured { margin:28px 0; width:100%; max-height:520px; object-fit:cover; }
.archive-events { padding-top:70px; padding-bottom:100px; }
.archive-events .events-grid { margin-top:35px; }
.empty-state { padding:35px; border:1px solid var(--line); background:var(--white); color:var(--muted); }
.announcement.dynamic { position:relative; z-index:110; }
.site-header-group.has-announcement .site-header { top:34px; }
body.admin-bar .site-header-group.has-announcement .site-header { top:66px; }
@media(max-width:782px){ body.admin-bar .site-header-group.has-announcement .site-header { top:80px; } }
.site-header-group.has-announcement { min-height:137px; }
.menu-toggle { z-index:102; }
.nav-links.open { z-index:101; }
.prayer-card button { font:inherit; }
.prayer-status[hidden] { display:none; }
.contact-form-shortcode { min-height:220px; }
.contact-form-shortcode .form-placeholder { padding:24px; background:var(--sand); border:1px dashed var(--gold); color:var(--muted); line-height:1.6; }
.map-placeholder.actual-map iframe { border:0; }
.post-updates-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.update-card { background:var(--white); border:1px solid var(--line); padding:24px; }
.update-card time { color:var(--burgundy); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.update-card h3 { margin:12px 0; color:var(--cedar); font:24px/1.1 var(--serif); }
.update-card p { color:var(--muted); font-size:14px; line-height:1.65; }
.update-card a { color:var(--burgundy); text-decoration:none; font-weight:700; font-size:12px; }
.page-template-default .site-main,.single-post .site-main { padding-top:60px; padding-bottom:90px; }
.nav-links .current-menu-item > a,.nav-links a[aria-current="page"] { color:var(--burgundy); }
@media(max-width:1024px){
  .event-detail-grid { grid-template-columns:1fr; }
  .post-updates-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:560px){
  .site-header-group,.site-header-group.has-announcement { min-height:82px; }
  .site-header-spacer { height:82px; }
  .brand .custom-logo,.brand-logo-fallback { width:58px; height:58px; }
  .post-updates-grid { grid-template-columns:1fr; }
}
.program-list a { display:grid; grid-template-columns:45px 1fr 24px; align-items:center; width:100%; padding:18px 4px; border:0; border-bottom:1px solid var(--line); color:var(--cedar); background:transparent; text-align:left; text-decoration:none; font:20px var(--serif); }
.program-list a span { color:var(--burgundy); font:11px var(--sans); }.program-list a b { color:var(--burgundy); font:16px var(--sans); }.program-list a:hover { color:var(--burgundy); }
.involved-card { text-decoration:none; }
.brand-copy { text-decoration:none; color:inherit; }
.announcement a { color:var(--white); text-decoration:none; border-bottom:1px solid var(--gold); margin-left:10px; }


/* =========================================================
   v1.2.0 — Gutenberg layout fidelity + 1024 tablet breakpoint
   Keeps the v0 layout while allowing block-level editing.
   ========================================================= */
.gutenberg-page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.gutenberg-page-content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}
.gutenberg-page-content .wp-block-group,
.gutenberg-page-content .wp-block-image,
.gutenberg-page-content .wp-block-buttons,
.gutenberg-page-content .wp-block-shortcode {
  box-sizing: border-box;
}
.gutenberg-page-content .section-wrap {
  width: min(1180px, calc(100% - 64px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.gutenberg-page-content .story-section,
.gutenberg-page-content .programs-section,
.gutenberg-page-content .involved-section,
.gutenberg-page-content .cedar-section,
.gutenberg-page-content .sand-section,
.gutenberg-page-content .cta-band,
.gutenberg-page-content .info-strip {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.gutenberg-page-content .wp-block-heading,
.gutenberg-page-content p {
  margin-top: 0;
}

/* Hero: always preserve the original two-column desktop composition. */
.gutenberg-home .hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 420px !important;
  gap: 70px !important;
  align-items: center !important;
  padding-top: 74px;
}
.gutenberg-home .hero > .hero-copy,
.gutenberg-home .hero > .wp-block-shortcode,
.gutenberg-home .hero .prayer-panel-wrap {
  min-width: 0;
}
.gutenberg-home .hero .prayer-panel-wrap {
  width: 100%;
  max-width: 420px;
  justify-self: end;
}
.gutenberg-home .hero .prayer-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
}
.gutenberg-home .hero-note {
  display: flex !important;
  align-items: center;
  gap: 12px;
}
.gutenberg-home .hero-note p { margin: 0; }
.gutenberg-home .gold-rule { flex: 0 0 33px; }

/* Gutenberg buttons inherit the v0 button styling instead of core defaults. */
.gutenberg-page-content .wp-block-button.button,
.gutenberg-page-content .wp-block-button.outline-button,
.gutenberg-page-content .wp-block-button.text-button,
.gutenberg-page-content .wp-block-button.light-link {
  padding: 0;
  border: 0;
  background: transparent;
}
.gutenberg-page-content .wp-block-button.button .wp-block-button__link {
  border: 0;
  border-radius: 2px;
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.gutenberg-page-content .wp-block-button.button.primary .wp-block-button__link {
  background: var(--burgundy);
  color: var(--white);
}
.gutenberg-page-content .wp-block-button.button.primary .wp-block-button__link:hover { background: var(--cedar); }
.gutenberg-page-content .wp-block-button.text-button .wp-block-button__link {
  padding: 12px 0;
  background: transparent;
  color: var(--burgundy);
  text-decoration: none;
}
.gutenberg-page-content .wp-block-button.outline-button .wp-block-button__link {
  padding: 14px 20px;
  border: 1px solid var(--burgundy);
  border-radius: 0;
  background: transparent;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.gutenberg-page-content .wp-block-button.outline-button .wp-block-button__link:hover {
  background: var(--burgundy);
  color: var(--white);
}
.gutenberg-page-content .story-section .wp-block-button.light-link .wp-block-button__link {
  padding: 0 0 8px;
  border-radius: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

/* Events heading retains the original horizontal layout. */
.gutenberg-home .section-heading {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}
.gutenberg-home .section-heading.centered {
  display: block !important;
  text-align: center;
}
.gutenberg-home .section-heading .wp-block-buttons { flex: 0 0 auto; }

/* Pillars are editable Groups, but keep the exact 3 x 2 visual grid. */
.gutenberg-home .pillars-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.gutenberg-home .pillars-grid > .pillar {
  min-width: 0;
  min-height: 195px;
  margin: 0 !important;
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gutenberg-home .pillar .pillar-number {
  margin: 0;
  color: var(--gold);
  font: 13px var(--serif);
}
.gutenberg-home .pillar h3 {
  margin: 29px 0 9px;
  color: var(--cedar);
  font: 22px var(--serif);
}
.gutenberg-home .pillar > p:last-child {
  max-width: 230px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.pillar-arrow { display: none !important; }

/* Programs: informational rows only — no arrows or clickable row links. */
.gutenberg-home .programs-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 120px !important;
  align-items: start;
}
.gutenberg-home .program-list {
  display: block !important;
  border-top: 1px solid rgba(18,62,53,.25);
}
.gutenberg-home .program-list .program-row {
  display: grid !important;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin: 0 !important;
  padding: 17px 0;
  border-bottom: 1px solid rgba(18,62,53,.25);
}
.gutenberg-home .program-list .program-number {
  width: auto;
  margin: 0;
  color: var(--burgundy);
  font: 11px var(--sans);
}
.gutenberg-home .program-list h3 {
  margin: 0;
  color: var(--cedar);
  font: 21px var(--serif);
}

/* Community moments: restore the original 3-piece mosaic. */
.gutenberg-home .editable-mosaic {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr .9fr;
  gap: 15px !important;
}
.gutenberg-home .editable-mosaic > .wp-block-group {
  position: relative;
  min-width: 0;
  min-height: 280px;
  margin: 0 !important;
  overflow: hidden;
  background: var(--sand);
}
.gutenberg-home .editable-mosaic .mosaic-tall { height: 370px; }
.gutenberg-home .editable-mosaic figure,
.gutenberg-home .editable-mosaic .wp-block-image { width: 100%; height: 100%; margin: 0; }
.gutenberg-home .editable-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65); }
.gutenberg-home .editable-mosaic .mosaic-card {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background: var(--cedar) !important;
  color: var(--white);
}
.gutenberg-home .editable-mosaic .quote-mark { margin: 0; color: var(--gold); font: 55px var(--serif); }
.gutenberg-home .editable-mosaic .mosaic-card > p:not(.quote-mark) { font: 22px/1.25 var(--serif); }
.gutenberg-home .editable-mosaic .mosaic-card small { color: var(--gold); font-size: 10px; }

/* Get involved cards are editable Groups while retaining v0 styling. */
.gutenberg-home .involved-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 15px !important;
}
.gutenberg-home .involved-grid > .involved-card {
  min-width: 0;
  min-height: 195px;
  margin: 0 !important;
  padding: 24px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
}
.gutenberg-home .involved-card .involved-icon { margin: 0; color: var(--gold); font-size: 22px; }
.gutenberg-home .involved-card h3 { margin: 28px 0 8px; color: var(--white); font: 24px var(--serif); }
.gutenberg-home .involved-card > p:last-child { max-width: 230px; margin: 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.5; }

/* Contact section and map remain side by side on desktop. */
.gutenberg-home .contact-section {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 100px !important;
  align-items: center;
}
.gutenberg-home .contact-section > .wp-block-shortcode { margin: 0; }

/* Interior Gutenberg pages preserve original v0 layouts. */
.gutenberg-page .page-hero { padding-top: 84px; padding-bottom: 82px; }
.gutenberg-page .split-content,
.gutenberg-page .contact-page-grid,
.gutenberg-page .timeline-section {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 80px !important;
  align-items: start;
}
.gutenberg-page .value-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px !important;
  margin-top: 38px;
}
.gutenberg-page .value-card {
  min-width: 0;
  min-height: 190px;
  margin: 0 !important;
  padding: 25px 20px;
  border: 1px solid rgba(255,255,255,.2);
}
.gutenberg-page .value-card .value-icon { margin: 0; color: var(--gold); font-size: 24px; }
.gutenberg-page .value-card h3 { margin: 20px 0 10px; color: var(--white); font: 22px var(--serif); }
.gutenberg-page .value-card > p:last-child { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.6; }
.gutenberg-page .timeline { display: block !important; border-top: 1px solid var(--line); }
.gutenberg-page .timeline .timeline-row {
  display: grid !important;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 22px;
  margin: 0 !important;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.gutenberg-page .timeline .timeline-row h3 { margin: 0; color: var(--burgundy); font: 23px var(--serif); }
.gutenberg-page .timeline .timeline-row p { margin: 0; color: var(--muted); line-height: 1.6; }
.gutenberg-page .program-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px !important;
}
.gutenberg-page .program-card { min-width: 0; margin: 0 !important; }
.gutenberg-page .editable-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px !important;
}
.gutenberg-page .editable-photo-grid figure { margin: 0; height: 240px; overflow: hidden; }
.gutenberg-page .editable-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.gutenberg-page .contact-page-grid > .wp-block-group { min-width: 0; }
.gutenberg-page .contact-form-wrap { margin: 0 !important; }

/* Desktop type sizing starts above the requested 1024px tablet boundary. */
@media (min-width: 1025px) {
  .gutenberg-page-content .wp-block-button.button .wp-block-button__link,
  .gutenberg-page-content .wp-block-button.outline-button .wp-block-button__link { font-size: 14px; }
}

/* Tablet mode begins at 1024px, including the header toggle. */
@media (max-width: 1024px) {
  .section-wrap,
  .gutenberg-page-content .section-wrap {
    width: calc(100% - 40px) !important;
    max-width: none !important;
  }
  .site-header { padding-left: 20px; padding-right: 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100% !important;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(18,62,53,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: left; }
  .nav-links .support-link { margin: 8px 0 0; }
  .menu-toggle { display: block; flex: 0 0 40px; }

  .gutenberg-home .hero {
    grid-template-columns: minmax(0,1fr) minmax(280px, 40%) !important;
    gap: 28px !important;
    padding-top: 42px;
  }
  .gutenberg-home .hero .prayer-panel-wrap { max-width: 100%; }
  .gutenberg-home .events-grid,
  .gutenberg-home .pillars-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gutenberg-home .story-grid,
  .gutenberg-home .programs-grid,
  .gutenberg-home .contact-section,
  .gutenberg-page .split-content,
  .gutenberg-page .contact-page-grid,
  .gutenberg-page .timeline-section {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .gutenberg-home .editable-mosaic { grid-template-columns: 1fr 1fr !important; }
  .gutenberg-home .editable-mosaic .mosaic-tall { height: 300px; grid-row: span 2; }
  .gutenberg-home .editable-mosaic .mosaic-card { min-height: 300px; }
  .gutenberg-page .value-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gutenberg-page .program-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gutenberg-page .editable-photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 50px 35px; }
  .site-footer .footer-arabic { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 700px) {
  .section-wrap,
  .gutenberg-page-content .section-wrap { width: calc(100% - 32px) !important; }
  .site-header { min-height: 75px; }
  .brand { min-width: 0; }
  .brand .brand-copy { display: none; }
  .nav-links { top: 100% !important; }
  .gutenberg-home .hero {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-top: 28px;
  }
  .gutenberg-home .hero .prayer-panel-wrap { justify-self: stretch; max-width: none; }
  .gutenberg-home .hero .prayer-card { max-width: none; }
  .gutenberg-home .section-heading { display: block !important; }
  .gutenberg-home .section-heading .wp-block-buttons { margin-top: 22px; }
  .gutenberg-home .events-grid,
  .gutenberg-home .pillars-grid,
  .gutenberg-home .involved-grid,
  .gutenberg-page .value-grid,
  .gutenberg-page .program-cards,
  .gutenberg-page .editable-photo-grid { grid-template-columns: 1fr !important; }
  .gutenberg-home .editable-mosaic { grid-template-columns: 1fr !important; }
  .gutenberg-home .editable-mosaic .mosaic-tall { grid-row: auto; height: 290px; }
  .gutenberg-home .editable-mosaic > .wp-block-group { min-height: 245px; }
  .gutenberg-page .page-hero { padding-top: 48px; padding-bottom: 45px; }
  .gutenberg-page .timeline .timeline-row { grid-template-columns: 70px minmax(0,1fr); gap: 12px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 30px; }
  .site-footer .footer-brand,
  .site-footer .footer-arabic { grid-column: 1 / -1; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer .footer-brand,
  .site-footer .footer-arabic { grid-column: auto; }
}

/* Final footer presentation — transparent white logo, stacked links, no legacy image filters. */
.site-footer {
  background: var(--cedar);
  color: var(--white);
  padding: 64px 0 0;
  font-size: 16px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.3fr;
  gap: 70px;
  align-items: start;
}
.site-footer .footer-brand { max-width: 280px; }
.site-footer .footer-logo-link { display: inline-block; margin-bottom: 24px; }
.site-footer .footer-brand img.footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent !important;
  object-fit: contain;
  mix-blend-mode: normal !important;
  filter: none !important;
}
.site-footer .footer-brand p {
  margin: 0;
  max-width: 250px;
  color: rgba(255,255,255,.92);
  font: 17px/1.55 var(--serif);
}
.site-footer .footer-column h4,
.site-footer h4 {
  margin: 6px 0 22px;
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-footer .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.site-footer .footer-links a {
  display: block;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
}
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible { color: var(--gold); }
.site-footer .footer-arabic { display: block; text-align: right; padding-top: 1px; }
.site-footer .footer-arabic span { display: block; margin-bottom: 7px; color: var(--gold); font: 22px/1.45 var(--serif); }
.site-footer .footer-arabic p { margin: 0; color: rgba(255,255,255,.82); font: 15px/1.55 var(--serif); }
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 58px;
  padding-top: 22px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.62);
  font-size: 14px;
}
.site-footer .footer-legal { display: flex; align-items: center; gap: 7px; }
.site-footer .footer-legal a { color: inherit; text-decoration: none; }
.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible { color: var(--gold); }
@media (max-width: 1024px) {
  .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 50px 35px; }
  .site-footer .footer-arabic { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 700px) {
  .site-footer { padding-top: 48px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 30px; }
  .site-footer .footer-brand,
  .site-footer .footer-arabic { grid-column: 1 / -1; }
  .site-footer .footer-brand img.footer-logo { width: 105px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 45px; gap: 12px; }
}
@media (max-width: 480px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer .footer-brand,
  .site-footer .footer-arabic { grid-column: auto; }
}


/* =========================================================
   v1.3 — Gutenberg layout restoration
   Keep Gutenberg editable while preventing WordPress global
   constrained-layout rules from collapsing the v0 composition.
   ========================================================= */
.gutenberg-home .wp-block-group.hero,
.gutenberg-home .wp-block-group.story-grid,
.gutenberg-home .wp-block-group.pillars-grid,
.gutenberg-home .wp-block-group.programs-grid,
.gutenberg-home .wp-block-group.editable-mosaic,
.gutenberg-home .wp-block-group.involved-grid,
.gutenberg-home .wp-block-group.contact-section,
.gutenberg-page .wp-block-group.split-content,
.gutenberg-page .wp-block-group.contact-page-grid,
.gutenberg-page .wp-block-group.timeline-section,
.gutenberg-page .wp-block-group.value-grid,
.gutenberg-page .wp-block-group.program-cards,
.gutenberg-page .wp-block-group.editable-photo-grid {
  max-width: none !important;
}

/* Gutenberg's constrained-layout selector can set max-width on direct children.
   These sections are theme-controlled grids, so their direct children must fill
   the grid tracks rather than collapse to the editor content width. */
.gutenberg-home .hero > *,
.gutenberg-home .story-grid > *,
.gutenberg-home .pillars-grid > *,
.gutenberg-home .programs-grid > *,
.gutenberg-home .editable-mosaic > *,
.gutenberg-home .involved-grid > *,
.gutenberg-home .contact-section > *,
.gutenberg-page .split-content > *,
.gutenberg-page .contact-page-grid > *,
.gutenberg-page .timeline-section > *,
.gutenberg-page .value-grid > *,
.gutenberg-page .program-cards > *,
.gutenberg-page .editable-photo-grid > * {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* DESKTOP: preserve the original v0 composition. */
@media (min-width: 1025px) {
  .gutenberg-page-content > .section-wrap,
  .gutenberg-page-content .section-wrap {
    width: min(1180px, calc(100% - 64px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gutenberg-home .hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 70px !important;
    align-items: center !important;
  }
  .gutenberg-home .hero > .hero-copy { grid-column: 1 !important; }
  .gutenberg-home .hero > .wp-block-shortcode,
  .gutenberg-home .hero > .prayer-panel-wrap { grid-column: 2 !important; }
  .gutenberg-home .hero .prayer-panel-wrap,
  .gutenberg-home .hero .prayer-card { width: 100%; max-width: 420px; }

  .gutenberg-home .story-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 130px !important;
    align-items: start !important;
  }

  .gutenberg-home .pillars-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  .gutenberg-home .programs-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 120px !important;
    align-items: start !important;
  }

  .gutenberg-home .editable-mosaic {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr .9fr !important;
    gap: 15px !important;
  }

  .gutenberg-home .involved-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 15px !important;
  }

  .gutenberg-home .contact-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 100px !important;
    align-items: center !important;
  }

  .gutenberg-home .section-heading:not(.centered) {
    display: flex !important;
    justify-content: space-between !important;
    align-items: end !important;
    gap: 30px !important;
  }

  .gutenberg-page .split-content,
  .gutenberg-page .contact-page-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 80px !important;
  }
  .gutenberg-page .timeline-section {
    display: grid !important;
    grid-template-columns: .8fr 1.2fr !important;
    gap: 80px !important;
  }
  .gutenberg-page .value-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 16px !important;
  }
  .gutenberg-page .program-cards,
  .gutenberg-page .editable-photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 16px !important;
  }
}

/* TABLET: menu switches at 1024px, but layouts remain useful and do not
   immediately collapse into one narrow column. */
@media (min-width: 769px) and (max-width: 1024px) {
  .gutenberg-home .hero {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(300px, 40%) !important;
    gap: 28px !important;
  }
  .gutenberg-home .story-grid,
  .gutenberg-home .programs-grid,
  .gutenberg-home .contact-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 42px !important;
  }
  .gutenberg-home .pillars-grid,
  .gutenberg-home .involved-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  .gutenberg-home .editable-mosaic {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .gutenberg-page .split-content,
  .gutenberg-page .contact-page-grid,
  .gutenberg-page .timeline-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
}

/* MOBILE is where the major sections intentionally stack. */
@media (max-width: 768px) {
  .gutenberg-home .hero,
  .gutenberg-home .story-grid,
  .gutenberg-home .programs-grid,
  .gutenberg-home .contact-section,
  .gutenberg-page .split-content,
  .gutenberg-page .contact-page-grid,
  .gutenberg-page .timeline-section {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .gutenberg-home .pillars-grid,
  .gutenberg-home .involved-grid,
  .gutenberg-page .value-grid,
  .gutenberg-page .program-cards,
  .gutenberg-page .editable-photo-grid {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   v1.4 — native Gutenberg columns
   Major side-by-side sections now use wp:columns/wp:column,
   so WordPress itself understands the intended layout.
   ========================================================= */
.gutenberg-home .wp-block-columns,
.gutenberg-page .wp-block-columns,
.gutenberg-home .pillars-grid,
.gutenberg-home .involved-grid,
.gutenberg-home .editable-mosaic,
.gutenberg-page .value-grid,
.gutenberg-page .program-cards,
.gutenberg-page .editable-photo-grid {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .gutenberg-home .hero.wp-block-columns,
  .gutenberg-home .story-grid.wp-block-columns,
  .gutenberg-home .programs-grid.wp-block-columns,
  .gutenberg-home .contact-section.wp-block-columns,
  .gutenberg-page .split-content.wp-block-columns,
  .gutenberg-page .contact-page-grid.wp-block-columns,
  .gutenberg-page .timeline-section.wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: min(1180px, calc(100% - 64px)) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .gutenberg-home .hero.wp-block-columns { gap: 70px !important; align-items: center !important; }
  .gutenberg-home .hero > .hero-copy { flex: 1 1 0 !important; min-width: 0 !important; }
  .gutenberg-home .hero > .prayer-panel-wrap { flex: 0 0 420px !important; width: 420px !important; }
  .gutenberg-home .story-grid.wp-block-columns { gap: 130px !important; }
  .gutenberg-home .story-grid > .wp-block-column { flex: 1 1 0 !important; }
  .gutenberg-home .programs-grid.wp-block-columns { gap: 120px !important; }
  .gutenberg-home .programs-grid > .wp-block-column { flex: 1 1 0 !important; }
  .gutenberg-home .contact-section.wp-block-columns { gap: 100px !important; align-items: center !important; }
  .gutenberg-home .contact-section > .wp-block-column { flex: 1 1 0 !important; }
  .gutenberg-page .split-content.wp-block-columns,
  .gutenberg-page .contact-page-grid.wp-block-columns { gap: 80px !important; }
  .gutenberg-page .timeline-section.wp-block-columns { gap: 80px !important; }
  .gutenberg-page .split-content > .wp-block-column,
  .gutenberg-page .contact-page-grid > .wp-block-column,
  .gutenberg-page .timeline-section > .wp-block-column { flex: 1 1 0 !important; min-width: 0 !important; }
  .gutenberg-home .pillars-grid,
  .gutenberg-home .involved-grid,
  .gutenberg-home .editable-mosaic,
  .gutenberg-page .value-grid,
  .gutenberg-page .program-cards,
  .gutenberg-page .editable-photo-grid { width: 100% !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gutenberg-home .hero.wp-block-columns,
  .gutenberg-home .story-grid.wp-block-columns,
  .gutenberg-home .programs-grid.wp-block-columns,
  .gutenberg-home .contact-section.wp-block-columns,
  .gutenberg-page .split-content.wp-block-columns,
  .gutenberg-page .contact-page-grid.wp-block-columns,
  .gutenberg-page .timeline-section.wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 32px !important;
  }
  .gutenberg-home .hero > .prayer-panel-wrap { flex: 0 0 38% !important; }
}

@media (max-width: 768px) {
  .gutenberg-home .wp-block-columns,
  .gutenberg-page .wp-block-columns {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
  .gutenberg-home .wp-block-column,
  .gutenberg-page .wp-block-column { flex-basis: 100% !important; width: 100% !important; }
}

/* =========================================================
   v1.5 — authoritative Gutenberg layout rules
   Every visual multi-column section is now made from native
   Columns/Column blocks. These rules intentionally come last.
   ========================================================= */
.gutenberg-home .wp-block-columns,
.gutenberg-page .wp-block-columns {
  box-sizing: border-box;
  min-width: 0;
}
.gutenberg-home .wp-block-column,
.gutenberg-page .wp-block-column { min-width: 0; }

/* Full-width section wrappers keep the original 1180px design canvas. */
.gutenberg-home .section-wrap,
.gutenberg-page .section-wrap {
  width: min(1180px, calc(100% - 64px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1025px) {
  /* Core split sections */
  .gutenberg-home .hero.wp-block-columns,
  .gutenberg-home .story-grid.wp-block-columns,
  .gutenberg-home .programs-grid.wp-block-columns,
  .gutenberg-home .contact-section.wp-block-columns,
  .gutenberg-page .split-content.wp-block-columns,
  .gutenberg-page .contact-page-grid.wp-block-columns,
  .gutenberg-page .timeline-section.wp-block-columns,
  .gutenberg-home .moments-heading.wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  .gutenberg-home .hero.wp-block-columns { gap: 70px !important; align-items:center !important; }
  .gutenberg-home .hero > .hero-copy { flex:1 1 0 !important; }
  .gutenberg-home .hero > .prayer-panel-wrap { flex:0 0 420px !important; }
  .gutenberg-home .story-grid.wp-block-columns { gap:130px !important; }
  .gutenberg-home .programs-grid.wp-block-columns { gap:120px !important; align-items:start !important; }
  .gutenberg-home .programs-grid > .wp-block-column { flex:1 1 0 !important; width:auto !important; }
  .gutenberg-home .contact-section.wp-block-columns { gap:100px !important; align-items:center !important; }
  .gutenberg-page .split-content.wp-block-columns,
  .gutenberg-page .contact-page-grid.wp-block-columns { gap:80px !important; }
  .gutenberg-page .timeline-section.wp-block-columns { gap:80px !important; }

  /* 3 x 2 community pillars */
  .gutenberg-home .pillars-grid { display:block !important; border:0 !important; }
  .gutenberg-home .pillars-row.wp-block-columns {
    display:flex !important; flex-flow:row nowrap !important; gap:0 !important; margin:0 !important;
    border-left:1px solid var(--line); border-top:1px solid var(--line);
  }
  .gutenberg-home .pillars-row + .pillars-row { border-top:0; }
  .gutenberg-home .pillars-row > .pillar {
    flex:1 1 33.333% !important; width:33.333% !important; margin:0 !important;
    min-height:195px; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  }

  /* Warmth in every gathering — three pieces side by side */
  .gutenberg-home .moments-heading.wp-block-columns { gap:40px !important; align-items:flex-end !important; }
  .gutenberg-home .editable-mosaic.wp-block-columns {
    display:flex !important; flex-flow:row nowrap !important; gap:15px !important; align-items:stretch !important;
  }
  .gutenberg-home .editable-mosaic > .wp-block-column { margin:0 !important; min-height:370px !important; }
  .gutenberg-home .editable-mosaic figure,
  .gutenberg-home .editable-mosaic .wp-block-image { width:100% !important; height:100% !important; margin:0 !important; }
  .gutenberg-home .editable-mosaic img { width:100% !important; height:100% !important; object-fit:cover !important; }
  .gutenberg-home .editable-mosaic .mosaic-card { display:flex !important; flex-direction:column !important; justify-content:center !important; }

  /* Get involved — 3 equal cards */
  .gutenberg-home .involved-grid.wp-block-columns {
    display:flex !important; flex-flow:row nowrap !important; gap:15px !important;
  }
  .gutenberg-home .involved-grid > .involved-card { flex:1 1 33.333% !important; width:33.333% !important; }

  /* About values — 4 across */
  .gutenberg-page .value-grid.wp-block-columns {
    display:flex !important; flex-flow:row nowrap !important; gap:16px !important;
  }
  .gutenberg-page .value-grid > .value-card { flex:1 1 25% !important; width:25% !important; }

  /* Community programs — 3 cards per row */
  .gutenberg-page .program-cards { display:block !important; }
  .gutenberg-page .program-cards-row.wp-block-columns {
    display:flex !important; flex-flow:row nowrap !important; gap:16px !important; margin:0 0 16px !important;
  }
  .gutenberg-page .program-cards-row > .program-card { flex:1 1 33.333% !important; width:33.333% !important; }

  /* Community page image row */
  .gutenberg-page .editable-photo-grid.wp-block-columns {
    display:flex !important; flex-flow:row nowrap !important; gap:16px !important;
  }
  .gutenberg-page .editable-photo-grid > .wp-block-column { flex:1 1 33.333% !important; width:33.333% !important; }
  .gutenberg-page .editable-photo-grid figure { margin:0 !important; height:100% !important; }
  .gutenberg-page .editable-photo-grid img { width:100% !important; height:100% !important; min-height:210px; object-fit:cover !important; }
}

/* Tablet: header uses hamburger at 1024 and below, but layouts stay multi-column. */
@media (min-width: 769px) and (max-width: 1024px) {
  .gutenberg-home .section-wrap,
  .gutenberg-page .section-wrap { width:calc(100% - 40px) !important; max-width:none !important; }
  .gutenberg-home .wp-block-columns,
  .gutenberg-page .wp-block-columns { flex-direction:row !important; flex-wrap:nowrap !important; }
  .gutenberg-home .hero.wp-block-columns { gap:28px !important; }
  .gutenberg-home .hero > .prayer-panel-wrap { flex:0 0 38% !important; }
  .gutenberg-home .story-grid.wp-block-columns,
  .gutenberg-home .programs-grid.wp-block-columns,
  .gutenberg-home .contact-section.wp-block-columns,
  .gutenberg-page .split-content.wp-block-columns,
  .gutenberg-page .contact-page-grid.wp-block-columns,
  .gutenberg-page .timeline-section.wp-block-columns { gap:40px !important; }
  .gutenberg-home .pillars-row.wp-block-columns { display:flex !important; gap:0 !important; }
  .gutenberg-home .pillars-row > .pillar { flex:1 1 33.333% !important; width:33.333% !important; }
  .gutenberg-home .editable-mosaic.wp-block-columns { display:flex !important; gap:12px !important; }
  .gutenberg-home .involved-grid.wp-block-columns { display:flex !important; gap:12px !important; }
  .gutenberg-page .value-grid.wp-block-columns { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:16px !important; }
  .gutenberg-page .program-cards-row.wp-block-columns,
  .gutenberg-page .editable-photo-grid.wp-block-columns { display:flex !important; gap:14px !important; }
}

/* Mobile is the only point where major columns intentionally stack. */
@media (max-width: 768px) {
  .gutenberg-home .section-wrap,
  .gutenberg-page .section-wrap { width:calc(100% - 32px) !important; }
  .gutenberg-home .wp-block-columns,
  .gutenberg-page .wp-block-columns { display:flex !important; flex-direction:column !important; flex-wrap:nowrap !important; }
  .gutenberg-home .wp-block-column,
  .gutenberg-page .wp-block-column { width:100% !important; flex-basis:auto !important; }
  .gutenberg-home .pillars-row.wp-block-columns { gap:0 !important; }
  .gutenberg-home .pillars-row > .pillar { border-left:1px solid var(--line); }
  .gutenberg-home .editable-mosaic > .wp-block-column { min-height:245px !important; flex-basis:auto !important; }
  .gutenberg-page .program-cards-row.wp-block-columns { gap:16px !important; }
}
