/* =============================================================================
   BRAND LANE ISLAMIC CENTER — main.css
   Masjid As-Sabireen, ISGH South Zone, Stafford, Texas.

   The entire stylesheet. §1 tokens and §2 fonts are the build contract's,
   VERBATIM and unchanged — the palette is already the client's and is already
   light. Everything from §3 down is the shared design system ported from
   addawah-theme / icgm-theme, class names verbatim from the dictionary in
   _redesign/ICGM-PLAN.md.

   IT STAYS LIGHT. The client said it three ways on 2026-11-16 — "light colors
   not dark overlays that hides the picture", "inviting and welcoming",
   "modern". Grounds here are white (--color-off-white) and cream
   (--color-cream). Contrast is carried by light surfaces with dark type on
   them, never by darkening a photograph until white type survives on it. A new
   dark band is a defect in this theme, not a style choice. The two dark
   surfaces that remain, .section--dark and .panel--dark, are the ones that were
   already published and are deliberate accents, not grounds.

   NO DECORATIVE ICONS. Type, the real photographs, the colour bands, the
   Islamic pattern tile and the Rawdah widgets' own client-made artwork do all
   the work. The only SVGs the theme keeps are the nav chevron, the hamburger
   and the close X — every one a control. Every icon-slot rule (.card__icon,
   .info-card__icon, .quick-link__icon, the top-bar and footer-contact glyphs,
   .app-stores__btn svg, .donor-contact svg, .mega-menu__link svg) is gone; see
   the note at the end of §27 for the one safety net that remains while the
   templates are brought in line.

   WCAG AA throughout. No horizontal overflow at 320/375/414/768/1024/1280.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS (contract §1 — verbatim)
   The brand block below is the contract's, derived from the client's logo, and
   is UNCHANGED — same values, same spelling. Everything after the "ADDED" rule
   is new: the shared scale/shape/motion tokens the component layer needs, which
   this file never had.
   -------------------------------------------------------------------------- */
:root{
  /* Brand — primary green (darkened lime from the BLIC logo; AA with white text) */
  --color-primary:        #55811C;
  --color-primary-light:  #89C538;
  --color-primary-lighter:#EEF6E2;
  --color-primary-dark:   #395712;

  /* Brand — secondary muted gold */
  --color-secondary:        #A98F45;
  --color-secondary-light:  #C7B37D;
  --color-secondary-lighter:#F4EFDE;
  --color-secondary-dark:   #816A2C;
  --color-gold-text:        #64511E; /* AA-safe brown-gold for TEXT (>=4.5:1 on white) */

  /* Neutrals — green-tinted */
  --color-white:    #FFFFFF;
  --color-off-white:#FBFCF9;
  --color-cream:    #F3F5EE;
  --color-gray-100: #F1F2ED;
  --color-gray-200: #E3E6DE;
  --color-gray-300: #CFD4C8;
  --color-gray-500: #85897F;
  --color-gray-700: #474B42;
  --color-gray-900: #1F221C;

  /* Semantic */
  --color-text:           #22251E;
  --color-text-secondary: #474B42;
  --color-text-muted:     #63675C; /* AA-safe on white */
  --color-heading:        #395712;
  --color-link:           #4E771A; /* one step darker than primary for AA on off-white */
  --color-link-hover:     var(--color-primary-dark);
  --color-cta:            var(--color-primary);
  --color-cta-hover:      var(--color-primary-dark);
  --color-cta-text:       #FFFFFF;
  --color-accent:         var(--color-secondary);
  --color-border:         #E2E5DC;
  --color-success:        #1E7A4D;
  --color-error:          #B23A2E;
  --color-error-lighter:  #FBEDEB;

  /* Layout / motion tokens */
  --container:1200px; --container-narrow:880px;
  --radius-sm:8px; --radius:12px; --radius-lg:20px; --radius-pill:999px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.03);
  --shadow:0 4px 16px rgba(0,0,0,.06),0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:0 18px 40px rgba(0,0,0,.10),0 8px 16px rgba(0,0,0,.05);
  --ease:cubic-bezier(.25,.1,.25,1);
  --t-fast:.2s var(--ease); --t:.3s var(--ease); --t-slow:.6s var(--ease);

  /* ---- ADDED 2026-11-16 (the shared system; nothing above was altered) ---- */

  /* Section rhythm. The contract's own figure was clamp(3.5rem,7vw,6.5rem);
     this is DESIGN-LANGUAGE §3's, which every other theme in the family now
     runs, and the extra air is the "modern" half of the brief. Revert this one
     line to go back to the tighter contract rhythm. */
  --space-section:clamp(4.5rem,8vw,7.5rem);
  --space-section-tight:clamp(2.25rem,4vw,3.25rem);

  /* Spacing scale — 8px steps (8/12/16/24/32/48/64/96) */
  --sp-1:.5rem;
  --sp-2:.75rem;
  --sp-3:1rem;
  --sp-4:1.5rem;
  --sp-5:2rem;
  --sp-6:3rem;
  --sp-7:4rem;
  --sp-8:6rem;

  /* Rhythm — one container width, one section padding, one grid gap.
     --container-pad is load-bearing for the widget floors in §16: it is what
     turns a viewport width into the Rawdah iframe's own width. 20px below a
     500px viewport, 4vw from there to 1000px, 40px above. */
  --container-pad:clamp(1.25rem,4vw,2.5rem);
  --pad-card:clamp(1.5rem,3vw,2rem);
  --gap:clamp(1.5rem,3vw,2rem);
  --gap-tight:clamp(.75rem,2vw,1.25rem);
  --space-block:clamp(2rem,4vw,3rem); /* air after a heading block */
  --quick-bar-h:62px;  /* bar height; also its overlap onto the hero */

  /* Display type scale */
  --fs-display-hero:clamp(2.4rem,5.2vw,4.2rem);
  --fs-display-xl:clamp(2.2rem,4.4vw,3.4rem);
  --fs-display-lg:clamp(1.9rem,3.4vw,2.9rem);
  --fs-display-md:clamp(1.45rem,2.4vw,1.95rem);
  --fs-display-sm:clamp(1.2rem,1.8vw,1.45rem);

  /* Body type */
  --fs-body:1.0625rem;
  --fs-lead:clamp(1.1rem,1.6vw,1.3rem);
  --fs-small:.9rem;
  --fs-eyebrow:.78rem;
  --lh-body:1.7;
  --lh-display:1.1;
  --lh-lockup:1.02; /* the ISNA two-line hero lockup — PLAN §4.2 */
  --measure:68ch;

  /* Shape + depth */
  --radius-card:18px;
  --shadow-card:0 10px 30px rgba(0,0,0,.07);
  --shadow-card-hover:0 18px 44px rgba(0,0,0,.12);

  /* Motion */
  --ease-out:cubic-bezier(.22,.61,.36,1);
  --t-zoom:700ms var(--ease-out);
  --t-reveal:620ms;
  --stagger:80ms;
}

/* -----------------------------------------------------------------------------
   2. FONTS (§2 — self-hosted woff2 in ../fonts/, font-display: swap)
   -------------------------------------------------------------------------- */
@font-face{ font-family:"DM Sans"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face{ font-family:"DM Sans"; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face{ font-family:"DM Sans"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face{ font-family:"DM Sans"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

@font-face{ font-family:"Cormorant Garamond"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face{ font-family:"Cormorant Garamond"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }

@font-face{ font-family:"Amiri"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/amiri-arabic-400-normal.woff2") format("woff2"); }
@font-face{ font-family:"Amiri"; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/amiri-arabic-700-normal.woff2") format("woff2"); }

/* -----------------------------------------------------------------------------
   3. RESET / BASE
   -------------------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{
  font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight:400; font-size:var(--fs-body);
  color:var(--color-text);
  line-height:var(--lh-body);
  background:var(--color-off-white);
  overflow-x:hidden; /* belt-and-braces: never horizontal scroll */
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img,svg,video,iframe{ max-width:100%; }
img,video{ height:auto; display:block; }
a{ color:var(--color-link); text-decoration:none; transition:color var(--t-fast); }
a:hover{ color:var(--color-link-hover); }
ul,ol{ margin:0; padding:0; }
li{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
input,textarea,select{ font-family:inherit; }
hr{ border:none; border-top:1px solid var(--color-border); margin:var(--sp-5) 0; }
body.no-js :target{ scroll-margin-top:120px; } /* JS sets scroll-padding-top instead; avoid additive stacking */
::selection{ background:var(--color-secondary-light); color:var(--color-gray-900); }

/* Visible focus ring: darker gold on light surfaces, lighter gold on dark ones */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--color-secondary-dark);
  outline-offset:2px;
  border-radius:2px;
}
.section--dark :focus-visible,
.panel--dark :focus-visible,
.site-footer :focus-visible,
.top-bar :focus-visible,
.app-banner :focus-visible,
.page-hero :focus-visible,
.quick-bar :focus-visible{
  outline-color:var(--color-secondary-light);
}
/* The home hero is LIGHT ground now (§15): its focus rings land on the light
   card, so they keep the dark-gold ring, and the quick bar above is the only
   part of it still on a translucent dark strip. A hero WITHOUT a card keeps the
   old strong wash (§15), and the dark gold would be about 1.2:1 on it — so that
   state, and only that state, takes the light ring. */
.hero:not(:has(.hero__card)) :focus-visible{ outline-color:var(--color-secondary-light); }

/* Body scroll lock while the mobile drawer is open (toggled by main.js) */
body.is-locked{ overflow:hidden; }

/* -----------------------------------------------------------------------------
   4. TYPOGRAPHY — Cormorant Garamond display scale over DM Sans body
   -------------------------------------------------------------------------- */
h1,h2,h3,.font-display{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-weight:700; color:var(--color-heading);
  line-height:var(--lh-display); letter-spacing:-.01em;
  margin:0 0 .5em;
}
h4,h5,h6{
  font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight:600; color:var(--color-heading); line-height:1.35; margin:0 0 .5em;
}
h1{ font-size:var(--fs-display-xl); }
h2{ font-size:var(--fs-display-lg); }
h3{ font-size:var(--fs-display-md); }
h4{ font-size:var(--fs-display-sm); }
h5{ font-size:1.05rem; }
h6{ font-size:.95rem; }
p{ margin:0 0 1.15rem; }
p:last-child{ margin-bottom:0; }
strong,b{ font-weight:600; }
small{ font-size:.85rem; }

/* Body measure — prose never runs wider than 68ch */
.lead,
.card__text,
.hero__subtitle,
.page-hero__subtitle,
.section-heading__subtitle,
.panel p,
.media-row__body p,
.list-row__text,
.section > .container > p,
.container--narrow > p{ max-width:var(--measure); }
.u-center > p,
p.u-center,
.section-heading--center .section-heading__subtitle{ margin-inline:auto; }

.lead{ font-size:var(--fs-lead); color:var(--color-text-secondary); line-height:1.75; }

blockquote{
  margin:var(--sp-4) 0; padding:var(--sp-3) var(--sp-4);
  border-left:3px solid var(--color-secondary);
  background:var(--color-secondary-lighter);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  color:var(--color-text-secondary);
}
blockquote cite{ display:block; margin-top:var(--sp-1); font-style:normal; font-size:.9rem; color:var(--color-gold-text); font-weight:600; }

/* The client's own Arabic only — the theme never adds any. This is also the
   theme's entire RTL mechanism and the only consumer of the shipped Amiri
   face. Never track joined script. */
.text-arabic,.arabic{
  font-family:"Amiri","Noto Naskh Arabic",serif;
  direction:rtl; line-height:1.9;
  letter-spacing:normal;
}
h2.text-arabic,h3.text-arabic{ color:var(--color-heading); }

/* -----------------------------------------------------------------------------
   5. EDITOR PROSE — what admin-typed content needs back after §3's reset
   Scope: the `page-content` class page.php passes to post_class(), i.e.
   everything the_content() prints. §3 zeroes ul/ol margins and sets
   li{list-style:none} for the theme's own list components; a client's typed
   <ul> would otherwise render as unindented paragraphs with no bullets. Also
   styles the alignment and caption classes the block editor emits without any
   template asking for them.
   -------------------------------------------------------------------------- */
.page-content ul{ margin:0 0 1.15rem; padding-left:1.5rem; list-style:disc outside; }
.page-content ol{ margin:0 0 1.15rem; padding-left:1.5rem; list-style:decimal outside; }
.page-content li{ list-style:inherit; margin-bottom:.4rem; }
.page-content ul ul{ list-style-type:circle; }
.page-content ul ul ul{ list-style-type:square; }
.page-content li > ul,
.page-content li > ol{ margin-block:.4rem; }
.page-content li:last-child{ margin-bottom:0; }

.page-content figure{ margin:0 0 1.15rem; }
.page-content img{ border-radius:var(--radius-card); }
.page-content figcaption,
.page-content .wp-caption-text{
  margin-top:.5rem; font-size:var(--fs-small);
  color:var(--color-text-muted); text-align:center;
}
.page-content .alignleft{ float:left; margin:.35rem var(--sp-4) var(--sp-3) 0; }
.page-content .alignright{ float:right; margin:.35rem 0 var(--sp-3) var(--sp-4); }
.page-content .aligncenter{ display:block; margin-inline:auto; }
.page-content::after{ content:""; display:block; clear:both; } /* contain the floats */
.page-content > *:last-child{ margin-bottom:0; }
.page-content table{ width:100%; border-collapse:collapse; margin:0 0 1.15rem; }
.page-content th,
.page-content td{ padding:var(--sp-2) var(--sp-3); border:1px solid var(--color-border); text-align:left; }
.page-content th{ background:var(--color-cream); color:var(--color-heading); font-weight:600; }

/* -----------------------------------------------------------------------------
   6. LAYOUT — container / section / grid
   One container width sitewide; never nest two containers.
   -------------------------------------------------------------------------- */
.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:var(--container-pad); }
.container--narrow{ max-width:var(--container-narrow); }

.section{ padding-block:var(--space-section); position:relative; }
.section--tight{ padding-block:var(--space-section-tight); }
.section--cream{ background:var(--color-cream); }
/* The lime primary is only ~4.2:1 on cream — darken plain links there for AA */
.section--cream a:not(.btn):not(.quick-bar__item):not(.list-row){ color:var(--color-primary-dark); }
.section--cream a:not(.btn):not(.quick-bar__item):not(.list-row):hover{ color:var(--color-primary-dark); text-decoration:underline; }

/* The ONE dark surface class that survives, and it is an accent band, not a
   ground. R1: do not add another, and never put one behind a photograph. */
.section--dark{ background:var(--color-primary-dark); color:var(--color-white); }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4,
.section--dark .panel__title{ color:var(--color-white); }
.section--dark p,.section--dark li{ color:rgba(255,255,255,.88); }
/* Plain links only — never override button or tile text colours on dark ground */
.section--dark a:not(.btn):not(.app-stores__btn):not(.quick-bar__item):not(.list-row){ color:var(--color-secondary-lighter); }
.section--dark a:not(.btn):not(.app-stores__btn):not(.quick-bar__item):not(.list-row):hover{ color:var(--color-white); }

/* Dark surfaces win over component defaults. Components further down set
   dark-on-light colours at the same specificity as `.section--dark p`, so these
   two-class selectors keep every one of them AA-readable on olive. */
.section--dark .section-heading__title,
.panel--dark .section-heading__title{ color:var(--color-white); }
.section--dark .section-heading__subtitle,
.panel--dark .section-heading__subtitle,
.section--dark .lead,
.panel--dark .lead,
.section--dark .small,
.panel--dark .small,
.section--dark .media-row__body p,
.panel--dark .media-row__body p{ color:rgba(255,255,255,.88); }
.section--dark .section-heading__eyebrow,
.panel--dark .section-heading__eyebrow{ color:var(--color-secondary-light); }

/* Patterned section — the Islamic tile, decorative only */
.section--patterned::before{
  content:""; position:absolute; inset:0; z-index:0;
  background-image:url("../images/patterns/islamic-pattern.svg");
  background-repeat:repeat; background-size:240px 240px;
  opacity:.04; pointer-events:none;
}
.section--dark.section--patterned::before{ opacity:.07; }
.section--patterned > *{ position:relative; z-index:1; }

/* --2 and --3 are auto-fit: their consumers (index.php, search.php, the three
   service cards) can carry a variable count, and there a row of 3 correctly
   becomes 2 then 1. --4 is NOT auto-fit — it would fit three tracks across a
   wide band of real widths and orphan the fourth item, which DESIGN-LANGUAGE
   §3 forbids outright. Explicit steps instead: 1 -> 2 (640px) -> 4 (1024px),
   both in §29 beside .gallery-grid's and .stats-grid's, which have the same
   four-item shape. */
.grid{ display:grid; grid-template-columns:1fr; gap:var(--gap); }
.grid--2{ grid-template-columns:repeat(auto-fit,minmax(min(100%,26rem),1fr)); }
.grid--3{ grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); }
.grid--4{ grid-template-columns:1fr; }

/* -----------------------------------------------------------------------------
   7. BUTTONS — fully round, 52px minimum, hover lift
   -------------------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  font-family:"DM Sans",system-ui,sans-serif; font-weight:600; font-size:1rem; line-height:1.25;
  padding:.85rem var(--sp-5); min-height:52px;
  border-radius:var(--radius-pill); border:2px solid transparent;
  text-align:center; cursor:pointer;
  -webkit-appearance:none; appearance:none;
  transition:background var(--t-fast),color var(--t-fast),border-color var(--t-fast),transform var(--t-fast),box-shadow var(--t-fast);
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn svg{ width:1.1em; height:1.1em; flex:none; } /* controls only — see the header's chevron/hamburger/X */

.btn--primary{ background:var(--color-cta); color:var(--color-cta-text); border-color:var(--color-cta); } /* 4.6:1 */
.btn--primary:hover{ background:var(--color-cta-hover); border-color:var(--color-cta-hover); color:var(--color-cta-text); box-shadow:var(--shadow-card); } /* 8.2:1 */

.btn--secondary{ background:var(--color-secondary); color:var(--color-gray-900); border-color:var(--color-secondary); } /* 5.1:1 */
.btn--secondary:hover{ background:var(--color-secondary-light); border-color:var(--color-secondary-light); color:var(--color-gray-900); box-shadow:var(--shadow-card); }

.btn--outline{ background:transparent; color:var(--color-primary); border-width:1.5px; border-color:var(--color-primary); }
.btn--outline:hover{ background:var(--color-primary); color:var(--color-white); }

/* A WHITE outline built for a dark ground. It is still correct on the inner
   .page-hero, which stays dark; §15 restyles it inside the light hero card,
   where a white outline would be an invisible button. */
.btn--ghost-light{ background:transparent; color:var(--color-white); border-width:1.5px; border-color:rgba(255,255,255,.65); }
.btn--ghost-light:hover{ background:var(--color-white); color:var(--color-primary-dark); border-color:var(--color-white); }

/* The loud CTA. Fill --color-secondary + --color-gray-900 label = 5.1:1 and
   self-contained, so it reads the same on every ground it lands on. */
.btn--donate{ background:var(--color-secondary); color:var(--color-gray-900); border-color:var(--color-secondary); font-weight:700; }
.btn--donate:hover{ background:var(--color-secondary-light); border-color:var(--color-secondary-light); color:var(--color-gray-900); box-shadow:var(--shadow-card); }

/* Red Event Registration button (Donations page — client instruction).
   --color-error #B23A2E with white text ~5.9:1; hover --color-primary-dark ~8.2:1. */
.btn--alert{ background:var(--color-error); color:var(--color-white); border-color:var(--color-error); }
.btn--alert:hover{ background:var(--color-primary-dark); border-color:var(--color-primary-dark); color:var(--color-white); box-shadow:var(--shadow-card); }

.btn--lg{ font-size:1.1rem; padding:1rem 2.25rem; min-height:56px; }
.btn--block{ display:flex; width:100%; }
.btn[disabled],.btn:disabled,.btn.is-loading{ opacity:.65; cursor:not-allowed; transform:none; box-shadow:none; }

/* -----------------------------------------------------------------------------
   8. SECTION HEADING — the one heading block, so titles align across sections
   The eyebrow is tracked caps and nothing else: the 32px gold rule the old
   ::before/::after drew was invented decoration and is gone.
   Markup (template-parts/components/section-heading.php):
     .section-heading[--center][--light] > p.section-heading__eyebrow
       + h2.section-heading__title + p.section-heading__subtitle
   -------------------------------------------------------------------------- */
.section-heading{ margin-bottom:var(--space-block); max-width:var(--measure); }
.section-heading--center{ margin-inline:auto; text-align:center; }
.section-heading__eyebrow,
.hero__eyebrow{
  display:block; margin:0 0 var(--sp-2);
  font-family:"DM Sans",system-ui,sans-serif;
  font-weight:500; font-size:var(--fs-eyebrow);
  letter-spacing:.14em; text-transform:uppercase;
}
.section-heading__eyebrow{ color:var(--color-gold-text); } /* 7.7:1 on white */
.section-heading__title{ margin:0 0 var(--sp-2); font-size:var(--fs-display-lg); }
.section-heading__subtitle{ font-size:1.08rem; color:var(--color-text-secondary); margin:0; }

/* Inside .media-row__body the column is flex with a gap — margins do not
   collapse there, they ADD to it. Zero the heading's own margin so the gap
   alone owns the rhythm. */
.media-row__body > .section-heading{ margin-bottom:0; }

.section-heading--light .section-heading__title{ color:var(--color-white); }
.section-heading--light .section-heading__subtitle{ color:rgba(255,255,255,.88); }
.section-heading--light .section-heading__eyebrow{ color:var(--color-secondary-light); }

/* -----------------------------------------------------------------------------
   9. CARDS — 18px radius, hairline border, soft shadow, hover lift
   NO .card__icon. The client's own service name in display type plus their own
   sentence is the card; a drawn glyph was invented decoration (R3).
   -------------------------------------------------------------------------- */
.card{
  position:relative; display:flex; flex-direction:column;
  background:var(--color-white); border:1px solid var(--color-border);
  border-radius:var(--radius-card); overflow:hidden;
  box-shadow:var(--shadow-card);
  transition:transform var(--t),box-shadow var(--t),border-color var(--t);
  height:100%;
}
.card:hover,.card:focus-within{ transform:translateY(-4px); box-shadow:var(--shadow-card-hover); border-color:var(--color-secondary-light); }
.card__body{ display:flex; flex-direction:column; gap:.6rem; padding:var(--pad-card); flex:1 1 auto; }
.card__title{ margin:0; font-size:var(--fs-display-sm); }
.card__text{ margin:0; color:var(--color-text-secondary); font-size:1rem; }
.card__link{
  margin-top:auto; align-self:flex-start;
  display:inline-flex; align-items:center; gap:.35rem;
  font-weight:600; font-size:.95rem; color:var(--color-gold-text);
  padding-top:var(--sp-1);
}
/* The plain arrow is the ONE affordance R3 allows. The alt-text syntax keeps
   the duplicate glyph out of the accessibility tree. */
.card__link::after{ content:"\2192"; content:"\2192" / ""; transition:transform var(--t-fast); }
.card__link:hover{ color:var(--color-primary-dark); }
.card__link:hover::after{ transform:translateX(4px); }
.card__badge{
  display:inline-flex; align-self:flex-start; align-items:center;
  padding:.3rem .75rem; border-radius:var(--radius-pill);
  font-family:"DM Sans",system-ui,sans-serif; font-size:.7rem; font-weight:600;
  letter-spacing:.06em; text-transform:uppercase;
  background:var(--color-secondary-lighter); color:var(--color-gold-text);
  border:1px solid var(--color-secondary-light);
}

/* Photo card (.card--photo) — 16:10 media with a quiet hover zoom.
   display:block is required: .card__media may sit on an <a>, and on an inline
   box neither aspect-ratio nor overflow:hidden applies. */
.card__media{ display:block; position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--color-gray-100); }
.card__media img{ width:100%; height:100%; object-fit:cover; transition:transform var(--t-zoom); }
.card:hover .card__media img,
.card:focus-within .card__media img{ transform:scale(1.04); }
img.card__media{ width:100%; object-fit:cover; }
.card--photo .card__media{ border-bottom:1px solid var(--color-border); }
.card--photo .card__body{ gap:.5rem; }

/* -----------------------------------------------------------------------------
   10. PANEL + SPLIT — the equal-height two-column band
   .split__main holds the wide thing (a widget frame, usually), .split__aside
   the narrow one. .panel is the padded rounded card they sit in.

   PORTED BUT NOT YET USED BY ANY TEMPLATE IN THIS THEME: `.split` /
   `.split__main` / `.split__aside`, `.panel` / `.panel__title` /
   `.panel--dark`, `.list-rows` / `.list-row*`, and `.stat*`. All are in the
   shared dictionary (_redesign/ICGM-PLAN.md) and all were carried over
   verbatim so this theme stays one studio's work, but no .php file in
   blic-theme puts any of them in a class attribute today — only in comments.
   Verified 2026-11-16 by grepping class="..." across all 51 templates.

   THEY ARE MARKED RATHER THAN DELETED on purpose. The rules are interleaved
   through roughly a thousand lines with LIVE ones that key on the same
   selectors — `.panel .rawdah-widget-container` zeroes the widget chrome,
   `.panel--dark .person__photo`, `.panel--dark .list-rows`, the focus ring at
   §4 — so excising them is a scattered edit across the whole file to save
   about a kilobyte gzipped: a poor trade against the chance of taking a live
   rule with them. A future page that uses `.split`/`.panel` works with no CSS
   written. If this theme is ever audited for weight, start here.
   -------------------------------------------------------------------------- */
.split{
  display:grid; grid-template-columns:1fr; gap:var(--gap);
  align-items:stretch;
}
.split__main,
.split__aside{ min-width:0; display:flex; flex-direction:column; gap:var(--gap-tight); }
.split__main > .panel,
.split__aside > .panel,
.split__main > .widget-frame,
.split__aside > .widget-frame{ flex:1 1 auto; }

.panel{
  display:flex; flex-direction:column; gap:var(--sp-3);
  padding:var(--pad-card);
  background:var(--color-white);
  border:1px solid var(--color-border);
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-card);
}
.panel__title{ margin:0; font-size:var(--fs-display-md); color:var(--color-heading); }
.panel > .widget-frame{ margin-top:auto; }

.panel--dark{
  background:var(--color-primary-dark);
  border-color:transparent;
  color:rgba(255,255,255,.88);
}
.panel--dark .panel__title,
.panel--dark h2,.panel--dark h3,.panel--dark h4{ color:var(--color-white); }
.panel--dark p,.panel--dark li{ color:rgba(255,255,255,.88); }
.panel--dark a:not(.btn){ color:var(--color-secondary-light); }
.panel--dark a:not(.btn):hover{ color:var(--color-white); }
/* A paragraph that is nothing but one link is a single-destination row, not a
   link inside a sentence — give it the 44px tap target. */
.panel--dark p > a:only-child{ display:inline-flex; align-items:center; min-height:44px; }

/* -----------------------------------------------------------------------------
   11. LIST ROWS — hairline typographic rows (services, contact details)
   Expected markup: .list-rows > .list-row (an <a> where it is a destination,
   a <div> where it is not) containing .list-row__name, .list-row__text, an
   optional .card__badge, and an optional decorative arrow marked
   aria-hidden="true". Rows with no arrow collapse that column to zero.
   -------------------------------------------------------------------------- */
.list-rows{ border-top:1px solid var(--color-border); container-type:inline-size; }
.list-row{
  display:grid; grid-template-columns:1fr; gap:.3rem var(--sp-4);
  width:100%; padding:var(--sp-3) var(--sp-2);
  border-bottom:1px solid var(--color-border);
  color:var(--color-text);
  transition:background var(--t-fast);
}
.list-row:hover,
.list-row:focus-visible{ background:var(--color-primary-lighter); }
.list-row__name{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif; font-weight:700;
  font-size:var(--fs-display-sm); line-height:1.2; letter-spacing:-.01em;
  color:var(--color-heading);
}
.list-row__text{ margin:0; color:var(--color-text-secondary); font-size:1rem; }
.list-row > [aria-hidden="true"]{
  display:inline-block; align-self:center; justify-self:start;
  color:var(--color-gold-text); font-size:1.15rem; line-height:1;
  transition:transform var(--t-fast);
}
.list-row:hover > [aria-hidden="true"]{ transform:translateX(4px); }

/* Name beside description only where the row itself is wide enough — a narrow
   list (contact details inside .split__aside) keeps the stacked layout. */
@container (min-width:34rem){
  .list-row{ grid-template-columns:minmax(10rem,18rem) 1fr auto; align-items:baseline; }
  .list-row > [aria-hidden="true"]{ align-self:center; justify-self:end; }
}

/* Rows on dark ground */
.panel--dark .list-rows,
.section--dark .list-rows{ border-top-color:rgba(255,255,255,.18); }
.panel--dark .list-row,
.section--dark .list-row{ border-bottom-color:rgba(255,255,255,.18); color:rgba(255,255,255,.88); }
.panel--dark .list-row:hover,
.section--dark .list-row:hover{ background:rgba(255,255,255,.08); }
.panel--dark .list-row__name,
.section--dark .list-row__name{ color:var(--color-white); }
.panel--dark .list-row__text,
.section--dark .list-row__text{ color:rgba(255,255,255,.88); }
.panel--dark .list-row > [aria-hidden="true"],
.section--dark .list-row > [aria-hidden="true"]{ color:var(--color-secondary-light); }
.panel--dark .card__badge,
.section--dark .card__badge{
  background:rgba(255,255,255,.12); color:var(--color-secondary-light);
  border-color:rgba(255,255,255,.28);
}

/* -----------------------------------------------------------------------------
   12. QUICK BAR + QUICK-LINK TILES
   .quick-bar is the hero-anchored destination row, TEXT ONLY. It works three
   ways: as the last child of .hero--tall, as a sibling that follows the hero
   (pulled onto its bottom edge), and standalone inside a .container with
   .quick-bar--boxed.
   .quick-links / .quick-link is the older tile grid, still emitted by 404.php.
   It keeps its styling MINUS the icon slot (R3).
   -------------------------------------------------------------------------- */
.quick-bar{
  width:100%;
  /* rgba of --color-primary-dark (#395712). This is the one translucent dark
     strip the design keeps, and it carries TEXT, which is why it is at .86:
     white stays >=4.8:1 on it even over a blown-out hero highlight. It is a
     62px rail at the hero's foot, not a band over the photograph. */
  /* LIGHT, not olive. This rail is new, and at rgba(57,87,18,.86) it was a dark
     band pulled onto the hero photograph — the exact thing the 2026-11-16 brief
     rules out ("light colors not dark overlays that hides the picture"). A near
     white rail reads as part of the page, keeps the photo visible through the
     hero above it, and gives the labels a far better ratio than white-on-olive
     did: --color-heading on rgba(255,255,255,.94) is 9.4:1. The boxed variant
     on 404.php, where there is no photograph, keeps its own ground. */
  background:rgba(255,255,255,.94);
  border-top:1px solid var(--color-border);
  border-top:1px solid rgba(255,255,255,.16);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.quick-bar__list{
  display:grid; grid-template-columns:repeat(2,1fr); /* 2x2 on mobile */
  width:100%; max-width:var(--container);
  margin-inline:auto; padding-inline:var(--container-pad);
  gap:0;
}
/* Never double-pad when a template nests the list inside a .container */
.container .quick-bar__list{ max-width:none; margin-inline:0; padding-inline:0; }
/* The markup is ul > li > a.quick-bar__item, so the <li> is the grid item: let
   the link fill its cell, or a wrapped label leaves the hover ground short. */
.quick-bar__list > li{ display:flex; }
.quick-bar__list > li > .quick-bar__item{ flex:1 1 auto; }

.quick-bar__item{
  display:flex; align-items:center; justify-content:center;
  gap:.4rem; min-height:calc(var(--quick-bar-h) - 2px); padding:var(--sp-2) var(--sp-3);
  text-align:center; color:var(--color-white);
  transition:background var(--t-fast),color var(--t-fast);
}
.quick-bar__item:hover,
.quick-bar__item:focus-visible{ background:rgba(255,255,255,.12); color:var(--color-white); }
.quick-bar__label{
  font-family:"DM Sans",system-ui,sans-serif; font-weight:600; font-size:.95rem;
  letter-spacing:.01em; line-height:1.3;
}

/* Attached to the hero: inside .hero--tall, or as the hero's next sibling.
   As a sibling it is pulled up by exactly its own height so it lands on the
   hero's bottom edge and the next section still starts below the hero. The
   negative margin means the hero must reserve --quick-bar-h in its own bottom
   padding — that reserve lives in §29 beside the breakpoint that switches the
   bar to a single row. */
.hero--tall > .quick-bar{ position:relative; z-index:2; }
.hero + .quick-bar,
.hero--tall + .quick-bar{ position:relative; z-index:2; margin-top:calc(var(--quick-bar-h) * -1); }

/* Standalone (404): a free-standing block takes the card radius like every
   other block, and a SOLID ground — there is no photo under it. */
.quick-bar--boxed{ background:var(--color-primary-dark); border-radius:var(--radius-card); overflow:hidden; }

/* The tile grid 404.php uses. No icon slot: the destination's own name is the
   tile (R3). */
.quick-links{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--gap-tight); }
.quick-link{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.5rem; text-align:center;
  padding:var(--sp-4) var(--sp-3); min-height:88px;
  background:var(--color-white);
  border:1px solid var(--color-border); border-radius:var(--radius-card);
  box-shadow:var(--shadow-card); color:var(--color-heading);
  font-weight:600; font-size:.95rem;
  transition:transform var(--t),box-shadow var(--t),border-color var(--t),color var(--t);
}
.quick-link:hover,
.quick-link:focus-visible{
  transform:translateY(-4px); box-shadow:var(--shadow-card-hover);
  border-color:var(--color-secondary-light); color:var(--color-primary-dark);
}

/* -----------------------------------------------------------------------------
   13. PERSON — circular portrait block. assets/images/people/ holds the three
   real photographs, which are client imagery: DESIGN-LANGUAGE §2 rule 1 allows
   a real photo exactly where an invented icon used to be.
   -------------------------------------------------------------------------- */
.person{ display:flex; flex-direction:column; align-items:center; gap:var(--sp-3); text-align:center; }
.person__photo{
  width:clamp(140px,22vw,210px); aspect-ratio:1; object-fit:cover;
  border-radius:var(--radius-pill);
  border:1px solid var(--color-primary);
  background:var(--color-primary-lighter);
  transition:transform var(--t);
}
.person:hover .person__photo{ transform:translateY(-4px); }
.section--dark .person__photo,
.panel--dark .person__photo{ border-color:rgba(255,255,255,.45); }
.person__name{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif; font-weight:700;
  font-size:var(--fs-display-sm); line-height:1.2; letter-spacing:-.01em;
  color:var(--color-heading);
}
.section--dark .person__name{ color:var(--color-white); }
.person__role{ margin:0; font-size:var(--fs-small); font-weight:600; letter-spacing:.02em; color:var(--color-gold-text); }
.section--dark .person__role{ color:var(--color-secondary-light); }

/* -----------------------------------------------------------------------------
   14. PAGE HERO (inner pages) + BREADCRUMBS
   This one stays DARK and that is not a contradiction of R1: there is no
   photograph under it to hide. Default = NO image: solid --color-primary-dark +
   the pattern ::before + a token-based ::after overlay. The home hero, which
   DOES carry a photograph, is §15 and is light.
   -------------------------------------------------------------------------- */
.page-hero{
  position:relative; isolation:isolate;
  background-color:var(--color-primary-dark);
  background-size:cover; background-position:center; background-repeat:no-repeat;
  padding-block:clamp(3.5rem,8vw,6rem);
  color:var(--color-white); overflow:hidden;
}
.page-hero::after{
  content:""; position:absolute; inset:0; z-index:-1;
  /* rgba fallback of --color-primary-dark (#395712), then the token-based mix */
  background:linear-gradient(180deg,rgba(57,87,18,.85),rgba(57,87,18,.93));
  background:linear-gradient(180deg,
    color-mix(in srgb, var(--color-primary-dark) 85%, transparent),
    color-mix(in srgb, var(--color-primary-dark) 93%, transparent));
}
.page-hero::before{
  content:""; position:absolute; inset:0; z-index:0;
  background-image:url("../images/patterns/islamic-pattern.svg");
  background-repeat:repeat; background-size:200px 200px;
  opacity:.07; pointer-events:none;
}
/* NO max-width here. This element also carries .container, both selectors are
   0,1,0 and this section comes after §6, so a narrow cap here would beat
   .container's 1200px while .container's own margin-inline:auto kept centring
   it — every page title would sit right of the prose under it. The strap line
   keeps its own measure through §4's max-width list, which caps the TEXT
   without moving the column. */
.page-hero__inner{ position:relative; z-index:1; }
.page-hero__title{ color:var(--color-white); margin:0 0 var(--sp-2); font-size:var(--fs-display-xl); }
.page-hero__subtitle{ color:rgba(255,255,255,.88); font-size:var(--fs-lead); margin:0; }

.breadcrumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:.45rem;
  font-size:.875rem; margin-bottom:var(--sp-3); color:rgba(255,255,255,.8);
}
.breadcrumbs__item{ color:rgba(255,255,255,.8); }
a.breadcrumbs__item:hover{ color:var(--color-white); }
.breadcrumbs__item a{ color:rgba(255,255,255,.8); }
.breadcrumbs__item a:hover{ color:var(--color-white); }
.breadcrumbs__sep{ color:rgba(255,255,255,.5); user-select:none; }
.breadcrumbs__current{ color:var(--color-white); font-weight:600; }
/* Breadcrumbs outside the hero (a light page) */
.breadcrumbs--light{ color:var(--color-text-muted); margin-top:var(--sp-3); }
.breadcrumbs--light .breadcrumbs__item,
.breadcrumbs--light .breadcrumbs__item a{ color:var(--color-text-muted); }
.breadcrumbs--light .breadcrumbs__item a:hover{ color:var(--color-primary-dark); }
.breadcrumbs--light .breadcrumbs__current{ color:var(--color-gold-text); }
.breadcrumbs--light .breadcrumbs__sep{ color:var(--color-gray-300); }

/* -----------------------------------------------------------------------------
   15. HOME HERO — the photograph stays visible, the words sit on a light card
   THE RECIPE, ported from nurulislam-theme §16 (client-approved there
   2026-10-23) because BLIC had the identical defect: a flat olive wash at .88
   alpha buried a photograph of the masjid — brick, domes, minarets — to make
   white type readable on it. The client's own words, 2026-11-16: "light colors
   not dark overlays that hides the picture".

   So the wash is gone and the contrast moved INSIDE a light card. Every
   requirement is then satisfied against a near-white ground, which is what
   makes "light colours, don't hide the picture" satisfiable at all — and it
   also means swapping the hero photograph can never break the text again.

   MEASURED CONTRAST, inside .hero__card. The card is rgba(255,255,255,.94), so
   its composite ground depends on the pixel behind it: over a blown-out
   highlight it is #FFF (L=1.000); over a black shadow it is the .94 grey
   (L=0.869), which is the WORST CASE for dark type and the second figure in
   each pair below.
     .hero__eyebrow         --color-gold-text #64511E      7.67:1 / 6.72:1
     .hero__display / h1    --color-heading   #395712      8.25:1 / 7.22:1
     .hero__display em      --color-gold-text #64511E      7.67:1 / 6.72:1
     .hero__subtitle        --color-text-secondary #474B42 8.93:1 / 7.81:1
     .btn--ghost-light label --color-heading               8.25:1 / 7.22:1
   Every row clears AA (4.5:1) at its worst case with margin, and the two
   display rows clear AAA. --color-primary (#55811C) is deliberately NOT used
   for text in here: it measures 4.62:1 on white but only 4.05:1 at the worst
   case, i.e. it would fail AA wherever the card happens to sit over a dark part
   of the building.

   NON-TEXT CONTRAST (SC 1.4.11, 3:1) for the two CTAs is below, beside each
   rule, because that is the trap this recipe hit on nurulislam-theme.

   WHY THE IMAGE MUST NOT CARRY TEXT, measured: banners/hero-home.jpg is
   596x335px. background-size:cover therefore upscales it about 2.4x at a
   1440px viewport and 3.2x at 1920px. A 3x upscale is too soft to carry type at
   any overlay strength, so the card is not only the client's preference, it is
   the only honest way to set words over this file. Replace the source with a
   >=1920px original when the client supplies one; nothing here needs to change
   when they do.
   -------------------------------------------------------------------------- */
.hero{
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; flex-direction:column; justify-content:center;
  min-height:clamp(32rem,72vh,44rem);
  /* The inherited colour belongs to the BASE (no-card) hero, which still puts
     white type on the strong wash below. .hero__card flips it back to the body
     colour for everything inside the light panel, so an unclassed string in
     either state is readable. */
  color:var(--color-white);
  background-color:var(--color-cream); /* light, not olive: it shows for the instant before the photo paints */
}
/* Tall variant: content sits on the bottom edge so the quick bar can attach */
.hero--tall{
  justify-content:flex-end;
  min-height:clamp(32rem,78vh,46rem);
}
.hero__bg{
  position:absolute; inset:0; z-index:-2;
  background-size:cover; background-position:center; background-repeat:no-repeat;
  animation:blic-kenburns 24s var(--ease) infinite alternate;
  will-change:transform;
}
img.hero__bg{ width:100%; height:100%; object-fit:cover; }
/* Pan amplitude kept small on purpose: see the 2.4x-3.2x upscale in the section
   comment. It matters less than it did — the text no longer sits on the image,
   so a soft upscale costs prettiness rather than legibility. */
@keyframes blic-kenburns{
  from{ transform:scale(1.02) translateY(0); }
  to{ transform:scale(1.05) translateY(-1%); }
}
/* TWO WASHES, AND WHY THE LIGHT ONE IS THE CONDITIONAL HALF.
   The base below is the OLD strong wash with white type over it — the state
   that is published today. The light scrim is applied only to a hero that
   actually contains a .hero__card, because that is the only hero whose contrast
   has somewhere else to live. Written this way round on purpose: the fallback
   of a browser without :has(), or of a template that has not been given a card
   yet, is the published look, which is legible. The other way round the
   fallback would be dark olive type on an unwashed photograph. */
.hero::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg,rgba(57,87,18,.80),rgba(57,87,18,.86));
}
.hero__display,
.hero__title{ color:var(--color-white); }
.hero__eyebrow{ color:var(--color-secondary-lighter); }
.hero__subtitle{ color:rgba(255,255,255,.9); }

/* ALMOST NOTHING, deliberately. The wash this replaces was
   linear-gradient(100deg, rgba(57,87,18,.88), rgba(57,87,18,.72)) — a flat
   olive sheet whose whole job was to make white type readable ON the
   photograph. The type now lives in .hero__card, so this gradient carries NO
   contrast duty at all and nothing here is allowed to grow back into one.
   What is left is a soft top edge, so the photograph does not butt hard against
   the white sticky header above it, and a whisper at the foot so the card's
   shadow and the translucent quick bar have somewhere to land. The middle of
   the frame, which is the building, is untouched.
   NOTE on the header: unlike nurulislam-theme's, this theme's .site-header is
   an OPAQUE white bar in normal flow (§17), so it needs no protection from the
   sky — which is exactly why these alphas are lighter than that theme's .52
   top stop. */
.hero:has(.hero__card)::after{
  background:linear-gradient(180deg,
    rgba(57,87,18,.30) 0%,
    rgba(57,87,18,.12) 16%,
    rgba(57,87,18,0) 38%,
    rgba(57,87,18,0) 74%,
    rgba(57,87,18,.14) 100%);
}
.hero__content{
  position:relative; z-index:1; max-width:44rem;
  padding-block:clamp(4rem,10vw,6rem);
}
/* The bottom value is the FLUSH-bar padding used below 768px. From 768px up the
   bar is pulled onto the hero by --quick-bar-h, so §29 replaces this
   padding-bottom with one that reserves the bar's height. */
.hero--tall .hero__content{ padding-block:clamp(5rem,12vw,7rem) clamp(2.5rem,6vw,4rem); }

/* THE CARD. Light panel, generous radius, soft shadow. It is what makes the
   bright image possible: every contrast requirement is satisfied INSIDE it,
   against a near-white ground, so the photograph behind it is left alone.
   backdrop-filter is progressive — where it is unsupported the .94 alpha still
   carries the contrast on its own, which is why the measured figures above are
   taken against the alpha and not against the blur. */
.hero__card{
  max-width:40rem;
  color:var(--color-text);
  padding:clamp(1.6rem,3.2vw,2.6rem);
  border-radius:clamp(18px,2.2vw,28px);
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(8px) saturate(1.1);
  backdrop-filter:blur(8px) saturate(1.1);
  box-shadow:0 28px 64px rgba(31,34,28,.26), 0 2px 8px rgba(31,34,28,.12);
}
/* ...but that shadow is sized to lift the card off a PHOTOGRAPH. page-hero.php
   has a second path: with no hero image it prints the same `.hero__card` inside
   `.section section--tight section--cream`, a flat band with nothing behind it,
   and a 64px/.26 drop there reads as a panel hovering over paper — the dated
   effect the 2026-11-16 brief argues against in the same breath as the dark
   overlays. On a flat ground the card needs only to be distinguished from it,
   which is what --shadow-card is for. The selector keys on `.section` because
   that is precisely the no-photograph path; the `.hero` path is untouched. */
.section .hero__card{ box-shadow:var(--shadow-card); }
.hero__card .hero__eyebrow{ color:var(--color-gold-text); }
.hero__card .hero__display,
.hero__card .hero__title{ color:var(--color-heading); }
.hero__card .hero__subtitle{ color:var(--color-text-secondary); }
/* The accent word's gold is tuned for a dark ground and would drop to ~1.9:1
   here, so inside the card it becomes the AA-safe text gold. */
.hero__card .hero__display em{ color:var(--color-gold-text); }

/* THE SECOND CTA, AND THE TRAP. .btn--ghost-light is a WHITE 1.5px outline
   built for a dark ground; on a near-white card it is an invisible button, and
   that is the exact defect nurulislam-theme shipped and had to fix. Inside the
   card it becomes the dark-outline ghost a light surface needs.
   Edge = rgba of --color-primary-dark at .70 — 3.82:1 against the card over a
   highlight and 3.56:1 at the worst case, so the control's boundary clears SC
   1.4.11's 3:1 either way. (nurulislam used .45, which measures 2.13:1 here and
   would not have cleared it; this is the one figure that was re-derived rather
   than ported.) The label is --color-heading at 8.25:1 / 7.22:1. */
.hero__card .btn--ghost-light{
  color:var(--color-heading);
  border-color:rgba(57,87,18,.70);
}
.hero__card .btn--ghost-light:hover,
.hero__card .btn--ghost-light:focus-visible{
  background:var(--color-primary-dark);
  border-color:var(--color-primary-dark);
  color:var(--color-white);
}
/* THE FIRST CTA. .btn--donate's fill + label pair is self-contained (5.1:1) and
   needs nothing here, but its border is the same gold as its fill, which is
   only 3.13:1 against white and 2.74:1 at the card's worst case — under the 3:1
   a control's boundary needs. The deeper gold of the same family fixes it:
   --color-secondary-dark #816A2C is 5.21:1 / 4.56:1 against the card ground and
   1.66:1 against the fill it encloses, so the pill gains a real edge while the
   fill and label keep their measured pair. The edge is NOT lightened on hover:
   the fill brightens and the border has to hold its edge through exactly the
   state the pointer is on it. */
.hero__card .btn--donate{ border-color:var(--color-secondary-dark); }
.hero__card .btn--donate:hover{ border-color:var(--color-secondary-dark); }

/* The H1. The tight lockup PLAN §4.2 takes from ISNA: a small eyebrow line,
   then the name in display type at line-height ~1.0. --lh-lockup is 1.02, which
   is what "tighten it" means for the existing "WELCOME TO THE" / "Brand Lane
   Islamic Center (BLIC)" pair — both strings are the client's and unchanged. */
.hero__display,
.hero__title{
  font-size:var(--fs-display-hero);
  /* The title is printed inside the padded .hero__card on every inner page, and
     search.php puts an arbitrary query in it. At 320px a single unbroken word
     at 38.4px overruns the card and pushes the page sideways. `anywhere` rather
     than `break-word` so a long run can break mid-word instead of refusing. */
  overflow-wrap:anywhere;
  font-weight:700;
  line-height:var(--lh-lockup); letter-spacing:-.028em;
  margin:0 0 var(--sp-3);
}
/* The one accent word, taken from the CLIENT's own headline — never a word we
   chose, and the templates do not have to use it. Weight and colour, not
   italic: a browser-synthesised oblique on Cormorant Garamond is acceptable,
   but keeping the accent to weight+colour matches the sibling themes. */
.hero__display em{
  font-style:normal; font-weight:800;
  color:var(--color-secondary-light);
}
.hero__subtitle{ font-size:var(--fs-lead); line-height:1.65; margin:0 0 var(--sp-5); }
.hero__actions{ display:flex; flex-wrap:wrap; gap:var(--sp-3); }

/* -----------------------------------------------------------------------------
   16. RAWDAH WIDGETS + MEASURED FRAME HEIGHTS
   Two kinds of frame, two height mechanisms, and — new on this theme — two
   different amounts of chrome.

   A. .widget-frame[data-widget="<key>"] — the plain iframe from
      template-parts/components/rawdah-widget.php. Keeps the card chrome. That
      iframe cannot resize itself at all, so the frame must be tall enough at
      every breakpoint: it gets the mobile value inline from
      blic_widget_min_height(), so the breakpoint overrides below need
      !important to win over that style attribute.
   B. .widget-frame--auto[data-widget-auto="<key>"] — the standalone loader from
      template-parts/components/rawdah-embed.php. NO CHROME AT ALL, and the
      min-height is not a fallback, it is the whole mechanism. Both are below.

   Never put overflow:hidden on either wrapper — content must not be clipped if
   it grows. Re-measure whenever a widget starts scrolling inside its frame.
   -------------------------------------------------------------------------- */
.widget-frame{ position:relative; width:100%; }
.rawdah-widget-container{
  width:100%; border-radius:var(--radius-card);
  background:var(--color-white); box-shadow:var(--shadow-card);
  border:1px solid var(--color-border);
}
.rawdah-widget-container iframe{ display:block; width:100%; border:none; border-radius:inherit; }
/* Inside a .panel the card chrome is already there — don't box a box */
.panel .rawdah-widget-container{ border:0; box-shadow:none; }
.rawdah-widget-placeholder{
  display:flex; align-items:center; justify-content:center;
  border:1px dashed var(--color-gray-300); border-radius:var(--radius-card);
  background:var(--color-cream); padding:var(--sp-6) var(--sp-4); text-align:center;
}
.rawdah-widget-placeholder__inner{ max-width:46ch; }
.rawdah-widget-placeholder__inner p{ margin:.25rem 0; color:var(--color-text-secondary); }
.small{ color:var(--color-text-muted); font-size:var(--fs-small); }

/* PATH-A FLOORS.
   Three keys live on this path by design — `prayer_table`, `donation` and
   `live_stream_inner` — and NONE of them gets a rule here. Their figures in
   blic_widget_min_height() are the pre-redesign map's guesses, not
   measurements, and no template in the redesign places them. Measure the real
   content at 335 / 688 / 1120 of FRAME width first, then add the key here and
   in inc/rawdah-integration.php together. A guessed !important floor would only
   make a wrong number harder to see.

   The two rules that DO belong here are for `events`, which is a path-B key.
   They are the transitional safety net: a placement that is still on the plain
   component (or one the office moves back to it for an `allow="payment"`
   reason) gets only the inline mobile figure, 695px, and event-5 needs 885px at
   tablet width — it would scroll inside its frame, which is the exact
   complaint this redesign answers. !important because they have to beat the
   inline style attribute. prayer and live_stream are flat, so their inline
   figures already cover every width and they need nothing. The arithmetic for
   696 and 1130 is in the path-B block below and applies identically. */
@media (min-width:696px){
  .widget-frame[data-widget="events"] iframe{ min-height:885px !important; }
}
@media (min-width:1130px){
  .widget-frame[data-widget="events"] iframe{ min-height:600px !important; }
}

/* -----------------------------------------------------------------------------
   THE SEAMLESS WIDGET — .widget-frame--auto, AND WHY IT HAS NO CHROME
   This is the client's main complaint, 2026-11-16: "make the widget also
   seamless without scroll and the awkward background make it fit into the page
   seamlessly".

   DIAGNOSED, do not re-derive: measured on the client's own account
   (accessId 3a3257c5-8101-4459-a987-40e21bd34801), every BLIC widget renders on
   a FULLY TRANSPARENT page — `html` and `body` both rgba(0,0,0,0) — and paints
   its OWN white rounded card with a soft shadow. The "awkward background" was
   never the widget: it was .rawdah-widget-container above adding a SECOND white
   background, border and shadow around that card, with two radii that do not
   agree. A card inside a card.

   So these frames get NOTHING: no background, no border, no shadow, no radius.
   The widget's own card then sits directly on the section ground and the
   section's colour shows around it, which is the whole of "seamless". DO NOT
   "FIX" A BOX BACK ONTO THESE FRAMES — if a widget here looks unboxed, that is
   the feature. (The one thing that would legitimately change this is Rawdah
   shipping a transparent-card widget; then the chrome comes back here and
   nowhere else.)

   AND NO SCROLLBAR. The loader (Rawdah's embeded.standalone.v1.js, printed
   inline by rawdah-embed.php) injects its own iframe, SEEDS IT AT AN INLINE
   height:150px, then grows it to the content height when the widget posts an
   {type:"iframeHeight"} message. A grown frame has no inner scrollbar, which is
   the other half of what the client asked for.

   WHY min-height IS THE LEVER, and not height or aspect-ratio. The loader
   writes an inline style.height, which beats any CSS height or aspect-ratio;
   min-height still constrains the used height, so it is the only thing that can
   raise the frame off the 150px seed. No !important is needed — the loader sets
   height, never min-height.

   WHY A FLOOR AT ALL. In live testing on nurulislam-theme (2026-10-14) the
   height message FREQUENTLY NEVER ARRIVED: frames sat at the 150px seed for 30+
   seconds with the content clipped. The message is best effort; the floor is
   the mechanism. Each floor below covers the MEASURED PEAK of its tier and is
   tall enough to show the whole widget with no message at all, so these figures
   must not be trimmed to "what it usually reports".

   WHY THE FLOOR IS ON BOTH THE WRAPPER AND THE IFRAME. The iframe is NOT in the
   served HTML — the loader injects it — so a floor on the iframe alone reserves
   nothing: the band would paint about 2px tall and jump to full height whenever
   the third-party script finally runs. The wrapper copy holds the space from
   first paint and can never clip, because the wrapper still grows with a taller
   iframe. Keep the two in step.

   MEASURED 2026-11-16, this account, by loading each template at a controlled
   FRAME width and reading document.body.scrollHeight:

     key          template                  335    688   1120   floor
     prayer       prayer-6                  603    603    603   655 flat
     events       event-5                   639    819    545   695 / 885 / 600
     live_stream  live-streaming-carousel      -      -    512   560 flat

   prayer-6 is a self-contained centred card and is FLAT at every width
   measured, so ONE figure covers all of them: 655 = 603 + 52px (8.6%).
   event-5 is TALLEST AT TABLET, because it goes two-up with tall cards there;
   885 = 819 + 66px (8.1%).
   live-streaming-carousel carries 11 real YouTube videos of the mosque's own —
   unlike Ad Dawah's account, this is genuine content; 560 = 512 + 48 (9.4%).

   THE BREAKPOINTS ARE VIEWPORT WIDTHS BUT THE WIDGET REFLOWS ON ITS OWN IFRAME
   WIDTH, so the two have to be converted. A full-container frame is
   `viewport - 2 x --container-pad - scrollbar`; --container-pad is 20px below a
   500px viewport, 4vw from there to 1000px, and 40px above (§1). With a 15px
   scrollbar:
     - event-5's tall two-up tier starts at 640 of FRAME width — measured, by
       a sweep across twelve frame widths; the table is in the path-B block
       below. That is a 712px viewport with a 15px classic scrollbar and a 696px
       viewport with an overlay scrollbar, so the tier is keyed at
       min-width:696px, the earlier of the two. Err tall; never err short.
     - the short desktop tier is keyed at min-width:1130px, NOT 1024px. At a
       1024px viewport the frame is only 1024 - 80 - 15 = 929px, which is inside
       the two-up zone that peaks at 819px — a 600px floor there would clip over
       200px. 1130px of viewport gives 1130 - 80 - 15 = 1035px of frame, past
       the 1024 the 545px figure was measured at. This is the same arithmetic
       addawah-theme uses for the same template.
   -------------------------------------------------------------------------- */
.widget-frame--auto .rawdah-widget-container{
  background:transparent;
  border:0;
  box-shadow:none;
  border-radius:0;
}
/* The loader's iframe sits inside its own <span data-rawdah-src>, one level
   deeper than the plain path's. That span inherits a 0 radius from the rule
   above, which is what we want here — nothing to pass down and nothing to
   clip, so no overflow:hidden goes on any of it. */
.widget-frame--auto .rawdah-widget-container > span[data-rawdah-src]{ display:block; }
.widget-frame--auto .rawdah-widget-container iframe{ border-radius:0; background:transparent; }

/* Base = the measured mobile tier (frame < 640px) */
.widget-frame--auto[data-widget-auto="prayer"],
.widget-frame--auto[data-widget-auto="prayer"] iframe{ min-height:655px; }
.widget-frame--auto[data-widget-auto="events"],
.widget-frame--auto[data-widget-auto="events"] iframe{ min-height:695px; }
.widget-frame--auto[data-widget-auto="live_stream"],
.widget-frame--auto[data-widget-auto="live_stream"] iframe{ min-height:560px; }
/* live_stream_inner is the FULL video listing (Rawdah `live-streaming`), not a
   card: eleven of the mosque's own YouTube videos, one per row on a phone.
   Swept on this account 2026-11-16:

     frame  285  343  375  480  640  688  760 | 800  860  960 1034 1120 1280
     px    5214 5046 4962 4878 4766 4766 4766 |2858 2858 2858 2802 2774 2746

   Two tiers, one column to frame 760 (max 5214, at the 285px frame a 320px
   viewport gives) and two columns from frame 800 (max 2858). The column switch
   is at a frame of 768. Converted as above: frame 768 arrives at an 851px
   viewport with a classic scrollbar and an 835px one with an overlay scrollbar,
   so the SHORT tier may only be keyed where both are certainly past it — 860px
   of viewport gives a 776px frame even with a 15px scrollbar. Below that the
   tall figure stands. 5400 = 5214 + 186 (3.6%) and 3000 = 2858 + 142 (5.0%);
   the slack is per-row title wrap over eleven cards, not a flat percentage. */
.widget-frame--auto[data-widget-auto="live_stream_inner"],
.widget-frame--auto[data-widget-auto="live_stream_inner"] iframe{ min-height:5400px; }

/* 696-1129px of viewport. event-5's two-up tier — the tallest it ever gets.
   prayer and live_stream are flat and need no entry here.

   696 IS MEASURED, NOT ESTIMATED. event-5 was swept across frame widths on this
   account (accessId 3a3257c5-) on 2026-11-16:

     frame  285  560  600  620 | 640  688  760  860  960 | 1034 1120 1280
     px     639  635  635  635 | 735  815  815  815  815 |  541  545  546

   Three clean tiers: one-up to frame 620 (max 639), two-up from frame 640 to
   960 (max 815), three-up from frame 1034 (max 545). So the two-up tier begins
   at a frame of 640 — the figure, it turns out, that the pre-measurement guess
   had already landed on, but for the wrong reason and applied to the wrong axis.

   Converting frame 640 to a viewport: a full-container frame is
   `viewport - 2 x --container-pad - scrollbar`, and --container-pad is 4vw
   through this range (§1), so frame = 0.92 x viewport - scrollbar. With a 15px
   classic scrollbar frame 640 arrives at a 712px viewport; with an overlay
   scrollbar (every touch device, and macOS by default) there is no 15px to
   subtract and it arrives at 640/0.92 = 696px. KEY ON THE EARLIER OF THE TWO.
   Keying at 712 would clip ~96px of the two-up tier on any overlay-scrollbar
   device between 696 and 712; keying at 696 only over-reserves ~180px of white
   space in that same narrow band on classic-scrollbar machines, and over-
   reserves nothing at all once the loader's height message arrives. Err tall;
   never err short. */
@media (min-width:696px){
  .widget-frame--auto[data-widget-auto="events"],
  .widget-frame--auto[data-widget-auto="events"] iframe{ min-height:885px; }
}

/* >=1130px of viewport, i.e. >=1024px of frame. See the arithmetic above for
   why this is not 1024. */
@media (min-width:1130px){
  .widget-frame--auto[data-widget-auto="events"],
  .widget-frame--auto[data-widget-auto="events"] iframe{ min-height:600px; }
}

/* >=860px of viewport = >=776px of frame, past live_stream_inner's two-column
   switch at a frame of 768 on either scrollbar. Nothing else changes here. */
@media (min-width:860px){
  .widget-frame--auto[data-widget-auto="live_stream_inner"],
  .widget-frame--auto[data-widget-auto="live_stream_inner"] iframe{ min-height:3000px; }
}

/* A widget inside a .panel: --pad-card would hand prayer-6 a 232px iframe at a
   320px viewport (320 - 40 of container pad - 48 of card pad), far below the
   ~290px where prayer-6 reflows to 856-880px on the accounts where that was
   measured, and the loader's frame would clip it. Let it bleed to the panel
   edges while .split is one column, so the iframe is never narrower than the
   container and the measured envelope above still holds. width:auto is
   load-bearing: .widget-frame sets width:100%, which stays 100% of the panel's
   CONTENT box no matter what the margins do, so the negative margins alone
   would move the frame without widening it. */
@media (max-width:1023.98px){
  .panel > .widget-frame--auto{
    width:auto; margin-inline:calc(-1 * var(--pad-card));
  }
}

/* -----------------------------------------------------------------------------
   17. HEADER — slim, sticky, compresses on scroll
   The only SVGs left in this section are the dropdown chevrons, the hamburger
   and the two close X buttons: every one a control, not decoration.
   -------------------------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:1000; width:100%;
  background:var(--color-white);
  border-bottom:1px solid var(--color-border);
  transition:box-shadow var(--t-fast);
}
.site-header.is-stuck{ box-shadow:var(--shadow); border-bottom-color:transparent; }

/* App banner */
.app-banner{
  background:var(--color-primary-dark); color:var(--color-white);
  font-size:.9rem; position:relative;
}
.app-banner > .container,
.app-banner .container{
  display:flex; align-items:center; justify-content:center; gap:var(--sp-2) var(--sp-3);
  flex-wrap:wrap; padding-block:.6rem; position:relative; text-align:center;
  padding-right:3.25rem; /* room for the absolute 44px close button at every width */
}
.app-banner__text{ margin:0; color:rgba(255,255,255,.92); max-width:none; }
.app-banner__btn{
  display:inline-flex; align-items:center;
  background:var(--color-secondary); color:var(--color-gray-900);
  font-weight:600; font-size:.82rem; padding:.55rem 1.1rem; min-height:44px;
  border-radius:var(--radius-pill); white-space:nowrap;
  transition:background var(--t-fast),color var(--t-fast);
}
.app-banner__btn:hover{ background:var(--color-secondary-light); color:var(--color-gray-900); }
.app-banner__close{
  position:absolute; right:.5rem; top:50%; transform:translateY(-50%);
  width:44px; height:44px;
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--color-white); border-radius:var(--radius-pill); line-height:1;
}
.app-banner__close:hover{ background:rgba(255,255,255,.14); }
.app-banner__close svg{ width:16px; height:16px; } /* the close X — a control */
.app-banner.is-hidden{ display:none; }

/* Top bar */
.top-bar{ background:var(--color-primary); color:var(--color-white); font-size:.875rem; }
.top-bar > .container,
.top-bar .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:.5rem var(--sp-3); flex-wrap:wrap; padding-block:.45rem; min-height:40px;
}
.top-bar a{ color:var(--color-white); }
.top-bar a:hover{ color:var(--color-white); text-decoration:underline; }
.top-bar__email{ display:inline-flex; align-items:center; gap:.45rem; }
.top-bar__links{ display:inline-flex; align-items:center; gap:1.1rem; flex-wrap:wrap; }
.top-bar__links > a{ display:inline-flex; align-items:center; gap:.4rem; }
.top-bar__phone{ display:inline-flex; align-items:center; gap:.45rem; font-weight:600; }
.top-bar__social{ display:inline-flex; align-items:center; gap:.65rem; }
.top-bar__social a{
  display:inline-flex; width:30px; height:30px; align-items:center; justify-content:center;
  border-radius:var(--radius-pill); background:rgba(255,255,255,.12);
  font-weight:600; font-size:.8rem; letter-spacing:.02em;
}
.top-bar__social a:hover{ background:var(--color-secondary); color:var(--color-gray-900); }

/* Main nav */
.main-nav{ position:relative; }
.main-nav > .container,
.main-nav .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--sp-3); padding-block:.65rem;
}
.main-nav__logo{ display:inline-flex; align-items:center; gap:.6rem; flex-shrink:0; }
.main-nav__logo img{ max-height:56px; height:clamp(46px,6vw,56px); width:auto; }
.main-nav__logo-text{
  font-family:"Cormorant Garamond",Georgia,serif; font-weight:700;
  font-size:1.35rem; color:var(--color-heading); line-height:1.1;
}
/* THE NAV FIT. Eight destinations — Home, About Us, Services, Events,
   Programs, Education, Live Stream, Donate — plus the logo. At .95rem/500 in
   DM Sans with .8rem of padding each side the row measures about 790px, and the
   logo takes 46-56px plus its gap, so the single row needs roughly 880px of
   container content box: 1024 - 2x40 - 15 = 929px clears it, 768 - 2x30.7 - 15
   = 691px does not. Hence 1024px for the hamburger breakpoint (§29), which is
   also where .split goes two-column. */
.main-nav__menu{ display:none; align-items:center; gap:.15rem; flex-wrap:wrap; }

.nav-item{ position:relative; }
.nav-item > a,
.nav-item__trigger{
  display:inline-flex; align-items:center; gap:.35rem;
  min-height:44px; padding:.55rem .8rem;
  font-weight:500; font-size:.95rem;
  color:var(--color-text); border-radius:var(--radius-sm);
  background:transparent; border:0; white-space:nowrap;
  transition:color var(--t-fast),background var(--t-fast);
}
.nav-item > a:hover,
.nav-item__trigger:hover,
.nav-item.is-open > .nav-item__trigger,
.nav-item.is-active > a,
.nav-item.current-menu-item > a{
  color:var(--color-primary-dark); background:var(--color-primary-lighter);
}
.nav-item__trigger svg{ width:.7em; height:.7em; flex:none; transition:transform var(--t-fast); } /* the chevron — a control */
.nav-item.is-open .nav-item__trigger svg,
.nav-item__trigger[aria-expanded="true"] svg{ transform:rotate(180deg); }
.nav-item__cta{ margin-left:.4rem; }
.nav-item__cta .btn{ min-height:44px; padding:.55rem 1.35rem; }
/* The pill is li.nav-item__cta > a.btn.btn--donate, so `.nav-item > a:hover`
   (0,2,1) beat `.btn--donate:hover` (0,1,1) and the loud gold turned pale teal
   on hover like an ordinary nav link. These win at (0,2,0)/(0,3,0). */
.nav-item__cta .btn--donate{ color:var(--color-gray-900); }
.nav-item__cta .btn--donate:hover,
.nav-item__cta .btn--donate:focus-visible{
  background:var(--color-secondary-light);
  border-color:var(--color-secondary-light);
  color:var(--color-gray-900);
}

/* Mega menu (dropdown) */
.mega-menu{
  position:absolute; top:calc(100% + 8px); left:0; z-index:60;
  min-width:280px; padding:var(--sp-3); border-radius:var(--radius-card);
  background:var(--color-white); box-shadow:var(--shadow-lg);
  border:1px solid var(--color-border);
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity var(--t-fast),transform var(--t-fast),visibility var(--t-fast);
}
.nav-item--has-mega.is-open .mega-menu,
.nav-item--has-mega:hover .mega-menu,
.nav-item--has-mega:focus-within .mega-menu{
  opacity:1; visibility:visible; transform:translateY(0);
}
.mega-menu__grid{ display:grid; grid-template-columns:1fr; gap:.2rem; }
.mega-menu__link{
  display:flex; align-items:center; gap:.6rem;
  padding:.6rem .75rem; border-radius:var(--radius-sm);
  color:var(--color-text); font-size:.93rem; font-weight:500;
}
.mega-menu__link:hover{ background:var(--color-primary-lighter); color:var(--color-primary-dark); }

/* Hamburger (<=1023px) */
.menu-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; border:1px solid var(--color-border);
  border-radius:var(--radius-sm); background:var(--color-white);
  color:var(--color-primary-dark);
}
.menu-toggle:hover{ background:var(--color-primary-lighter); }
.menu-toggle svg{ width:24px; height:24px; } /* the hamburger — a control */

/* Mobile drawer */
.mobile-drawer{ position:fixed; inset:0; z-index:1100; visibility:hidden; pointer-events:none; }
.mobile-drawer.is-open{ visibility:visible; pointer-events:auto; }
.mobile-drawer__overlay{
  position:absolute; inset:0; background:rgba(57,87,18,.55);
  opacity:0; transition:opacity var(--t);
}
.mobile-drawer.is-open .mobile-drawer__overlay{ opacity:1; }
.mobile-drawer__panel{
  position:absolute; top:0; right:0; height:100%; width:min(86vw,360px);
  background:var(--color-white); box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform var(--t);
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.mobile-drawer.is-open .mobile-drawer__panel{ transform:translateX(0); }
.mobile-drawer__header{
  display:flex; align-items:center; justify-content:space-between; gap:var(--sp-3);
  padding:var(--sp-3) 1.25rem; border-bottom:1px solid var(--color-border);
}
.mobile-drawer__header img{ max-height:44px; width:auto; }
.mobile-drawer__close{
  width:44px; height:44px; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--color-border); border-radius:var(--radius-sm);
  background:var(--color-white); color:var(--color-primary-dark);
}
.mobile-drawer__close:hover{ background:var(--color-primary-lighter); }
.mobile-drawer__close svg{ width:22px; height:22px; } /* the close X — a control */
.mobile-drawer__nav{ padding:.75rem var(--sp-3) 1.25rem; display:flex; flex-direction:column; gap:.1rem; }
.mobile-drawer__nav a,
.mobile-drawer__nav button{
  display:flex; align-items:center; justify-content:space-between; gap:.5rem;
  width:100%; min-height:48px; padding:.7rem .75rem;
  font-weight:500; font-size:1.02rem; text-align:left;
  color:var(--color-text); border-radius:var(--radius-sm);
  border-bottom:1px solid var(--color-gray-100);
}
.mobile-drawer__nav a:hover,
.mobile-drawer__nav button:hover{ background:var(--color-primary-lighter); color:var(--color-primary-dark); }
.mobile-drawer__nav button svg{ width:.85em; height:.85em; flex:none; transition:transform var(--t-fast); } /* the chevron — a control */
.mobile-drawer__nav button[aria-expanded="true"] svg{ transform:rotate(180deg); }
.mobile-drawer__submenu{ padding-left:var(--sp-3); margin:.1rem 0 .35rem; }
.mobile-drawer__submenu a{ font-size:.94rem; color:var(--color-text-secondary); min-height:44px; border-bottom:0; }
.mobile-drawer__submenu[hidden]{ display:none; }
.mobile-drawer__cta{ margin:var(--sp-3) 1.25rem var(--sp-4); }

/* -----------------------------------------------------------------------------
   18. FORMS
   -------------------------------------------------------------------------- */
.form{ display:flex; flex-direction:column; gap:1.15rem; }
.form__row{ display:grid; grid-template-columns:1fr; gap:1.15rem; }
.form__row--inline{ display:flex; gap:.6rem; align-items:stretch; flex-wrap:wrap; }
.form__group{ display:flex; flex-direction:column; gap:.4rem; }
.form__label{ font-weight:600; font-size:.92rem; color:var(--color-heading); }
.form__label .req{ color:var(--color-error); }
.form__input,.form__textarea,.form__select{
  width:100%; font-family:inherit; font-size:1rem; color:var(--color-text);
  min-height:48px; padding:.75rem var(--sp-3);
  border:1px solid var(--color-gray-300); border-radius:var(--radius-sm);
  background:var(--color-white);
  transition:border-color var(--t-fast),box-shadow var(--t-fast);
}
.form__input:focus,.form__textarea:focus,.form__select:focus{
  outline:3px solid transparent; outline-offset:2px; /* visible under forced-colors */
  border-color:var(--color-primary);
  box-shadow:0 0 0 3px var(--color-primary-lighter);
}
.form__textarea{ min-height:150px; resize:vertical; }
.form__input.is-invalid,.form__textarea.is-invalid,.form__select.is-invalid,
.form__input.has-error,.form__textarea.has-error,.form__select.has-error{
  border-color:var(--color-error);
  box-shadow:0 0 0 3px var(--color-error-lighter);
}
.form__consent{ display:flex; align-items:flex-start; gap:.6rem; font-size:.92rem; color:var(--color-text-secondary); }
.form__consent input[type="checkbox"]{ margin-top:.25rem; width:20px; height:20px; flex-shrink:0; accent-color:var(--color-primary); }
.form__consent.is-invalid{ color:var(--color-error); }
.form__hint{ font-size:.85rem; color:var(--color-text-muted); }
.form__error{ display:block; font-size:.85rem; color:var(--color-error); font-weight:500; min-height:1em; }
.form__submit{ align-self:flex-start; }
.form__honeypot{ position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }

.form-message{
  padding:.9rem 1.1rem; border-radius:var(--radius-sm); font-size:.95rem;
  margin-bottom:var(--sp-3); border:1px solid transparent;
}
.form-message--ok{ background:var(--color-primary-lighter); color:var(--color-primary-dark); border-color:var(--color-success); }
.form-message--err{ background:var(--color-error-lighter); color:var(--color-error); border-color:var(--color-error); }

/* Search form (searchform.php uses .form__row--inline + these) */
.search-form__input{
  flex:1 1 220px; min-width:0; font-family:inherit; font-size:1rem;
  min-height:48px; padding:.75rem var(--sp-3); color:var(--color-text);
  border:1px solid var(--color-gray-300); border-radius:var(--radius-sm);
  background:var(--color-white);
  transition:border-color var(--t-fast),box-shadow var(--t-fast);
}
.search-form__input:focus{ outline:3px solid transparent; outline-offset:2px; border-color:var(--color-primary); box-shadow:0 0 0 3px var(--color-primary-lighter); }
.search-form__submit{
  flex-shrink:0; background:var(--color-cta); color:var(--color-cta-text);
  font-weight:600; padding:.75rem 1.4rem; border-radius:var(--radius-sm); min-height:48px;
  transition:background var(--t-fast);
}
.search-form__submit:hover{ background:var(--color-cta-hover); }

/* -----------------------------------------------------------------------------
   19. INFO CARDS — contact details, donation categories (gold left rule, no icon)
   -------------------------------------------------------------------------- */
.info-cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); gap:var(--gap); }
.info-cards--3{ grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); }
.info-card{
  display:flex; flex-direction:column; gap:.55rem;
  padding:var(--pad-card); background:var(--color-white);
  border:1px solid var(--color-border); border-left:3px solid var(--color-secondary);
  border-radius:var(--radius-card); box-shadow:var(--shadow-card);
}
.info-card h3{ margin:0; font-size:var(--fs-display-sm); }
.info-card p{ margin:0; color:var(--color-text-secondary); }
.info-card a{ color:var(--color-primary-dark); font-weight:500; word-break:break-word; }
.info-card a:hover{ color:var(--color-primary-dark); text-decoration:underline; }
/* A paragraph that is nothing but one link is a single-destination row — give
   it the 44px tap target. The tel: and mailto: rows are the consumers. */
.info-card p > a:only-child{ display:inline-flex; align-items:center; min-height:44px; }
.info-card .btn{ margin-top:auto; align-self:flex-start; }

/* -----------------------------------------------------------------------------
   20. MEDIA ROW — a real photograph beside a text column
   -------------------------------------------------------------------------- */
.media-row{ display:grid; grid-template-columns:1fr; gap:var(--gap); align-items:center; }
.media-row__media{ border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-card); }
.media-row__media img{ width:100%; height:100%; object-fit:cover; }
.media-row__body{ display:flex; flex-direction:column; gap:var(--sp-3); align-items:flex-start; }
.media-row__body h2,.media-row__body h3{ margin-top:0; }

/* -----------------------------------------------------------------------------
   21. STATS — the number IS the graphic: no tile, no icon, no border.
   .counter[data-target] is animated by assets/js/main.js, which preserves any
   prefix/suffix. Only ever the client's own figures.
   Explicit column steps, not auto-fit: a four-item grid fitted three tracks
   across a wide band of real widths and orphaned the fourth. 1 -> 2 (480px) ->
   4 (1024px), both in §29.
   -------------------------------------------------------------------------- */
.stats-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap); }
.stat{ text-align:center; padding:var(--sp-2) var(--sp-1); }
.stat__num{
  display:block; margin-bottom:.35rem;
  font-family:"Cormorant Garamond",Georgia,serif; font-weight:700;
  font-size:clamp(2.6rem,5vw,3.6rem); line-height:1;
  color:var(--color-primary-dark); /* 8.2:1 on white */
}
.stat__label{
  font-family:"DM Sans",system-ui,sans-serif;
  font-size:.82rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  color:var(--color-text-secondary);
}
.section--dark .stat__num,
.panel--dark .stat__num{ color:var(--color-secondary-light); }
.section--dark .stat__label,
.panel--dark .stat__label{ color:rgba(255,255,255,.88); }
.counter{ font-variant-numeric:tabular-nums; }

/* -----------------------------------------------------------------------------
   22. GALLERY GRID — the four real photographs in assets/images/gallery/
   Explicit columns for the same four-item reason as §21: 1 -> 2 (640px) -> 4
   (1024px), both in §29.
   -------------------------------------------------------------------------- */
.gallery-grid{ display:grid; grid-template-columns:1fr; gap:var(--gap-tight); }
.gallery-grid__item{
  position:relative; display:block; overflow:hidden; border-radius:var(--radius-card);
  aspect-ratio:4/3; background:var(--color-gray-100); box-shadow:var(--shadow-card);
}
.gallery-grid__item img{ width:100%; height:100%; object-fit:cover; transition:transform var(--t-zoom); }
.gallery-grid__item:hover img,
.gallery-grid__item:focus-visible img{ transform:scale(1.04); }

/* -----------------------------------------------------------------------------
   23. STYLED LIST (numbered) + --check variant + .project-list
   .project-list is an alias of .styled-list--check, kept for parity with the
   sibling themes. The counter and the check are typographic markers, not icons.
   -------------------------------------------------------------------------- */
.styled-list,
.project-list{ display:flex; flex-direction:column; gap:var(--sp-3); counter-reset:blic-li; }
.styled-list li,
.project-list li{
  position:relative; display:flex; gap:.9rem; align-items:flex-start;
  color:var(--color-text-secondary);
}
.styled-list li::before,
.project-list li::before{
  counter-increment:blic-li;
  content:counter(blic-li);
  content:counter(blic-li) / ""; /* AT ignores the duplicate marker */
  flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:var(--radius-pill);
  background:var(--color-primary-lighter); color:var(--color-primary-dark);
  font-family:"DM Sans",sans-serif; font-weight:700; font-size:.9rem;
  margin-top:.15rem;
}
.styled-list--check li::before,
.project-list li::before{
  counter-increment:none;
  content:"\2713";
  content:"\2713" / ""; /* AT ignores the decorative glyph */
  background:var(--color-secondary-lighter); color:var(--color-gold-text);
  font-size:1rem;
}

/* -----------------------------------------------------------------------------
   24. DONOR CONTACT — highlight card for named contact blocks on service pages
   -------------------------------------------------------------------------- */
.donor-contact{
  background:var(--color-white);
  border:1px solid var(--color-border);
  border-left:3px solid var(--color-secondary);
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-card);
  padding:var(--pad-card);
}
.donor-contact h2,
.donor-contact h3{ margin:0 0 .6rem; }
.donor-contact p{ margin:0 0 .6rem; color:var(--color-text-secondary); }
.donor-contact p:last-child{ margin-bottom:0; }
.donor-contact a{
  display:inline-flex; align-items:center; gap:.4rem;
  min-height:44px; /* tap target for tel:/mailto: links */
  color:var(--color-primary-dark); font-weight:600; word-break:break-word;
}
.donor-contact a:hover{ color:var(--color-primary-dark); text-decoration:underline; }

/* -----------------------------------------------------------------------------
   25. FOOTER — no icon slots on any link
   -------------------------------------------------------------------------- */
.site-footer{ background:var(--color-primary-dark); color:rgba(255,255,255,.82); position:relative; }
.site-footer a{ color:rgba(255,255,255,.82); }
.site-footer a:hover{ color:var(--color-secondary-lighter); }

/* Newsletter strip (headings are <h2>) */
.newsletter{ background:var(--color-primary); padding-block:clamp(2rem,4vw,2.75rem); }
.newsletter > .container,
.newsletter .container{ display:grid; grid-template-columns:1fr; gap:var(--sp-4); align-items:center; }
.newsletter h2{ color:var(--color-white); font-size:clamp(1.5rem,2.6vw,1.9rem); margin:0 0 .35rem; }
.newsletter__intro{ color:var(--color-white); margin:0; }
.newsletter__intro p{ margin:0; color:var(--color-white); max-width:none; }
.newsletter__form{ display:flex; gap:.6rem; flex-wrap:wrap; }
.newsletter__input{
  flex:1 1 240px; min-width:0; font-family:inherit; font-size:1rem;
  min-height:48px; padding:.75rem var(--sp-3);
  border:1px solid rgba(255,255,255,.25); border-radius:var(--radius-pill);
  background:var(--color-white); color:var(--color-text);
}
.newsletter__input::placeholder{ color:var(--color-text-muted); }
.newsletter__input:focus{ outline:3px solid transparent; outline-offset:2px; box-shadow:0 0 0 3px rgba(255,255,255,.85); }

/* Footer main columns */
.footer-main{ padding-block:clamp(3rem,6vw,4.5rem); }
.footer-main > .container,
.footer-main .container{ display:grid; grid-template-columns:1fr; gap:var(--sp-5); }
.footer-col__title{
  color:var(--color-white);
  font-family:"DM Sans",sans-serif; font-size:1rem; font-weight:600;
  letter-spacing:.05em; text-transform:uppercase;
  margin:0 0 1.1rem; padding-bottom:.6rem; position:relative;
}
.footer-col__title::after{
  content:""; position:absolute; left:0; bottom:0;
  width:36px; height:2px; background:var(--color-secondary);
}
.footer-links{ display:flex; flex-direction:column; gap:.65rem; }
.footer-links a{ display:inline-flex; align-items:center; gap:.5rem; font-size:.95rem; }

/* Logo white chip (the lime wordmark needs it on the dark footer) */
.footer-logo{
  background:#fff; padding:.5rem .75rem; border-radius:var(--radius-sm);
  display:inline-block; margin-bottom:1.1rem;
}
.footer-logo img{ max-height:52px; width:auto; }
.footer-tagline{ color:rgba(255,255,255,.78); font-size:.95rem; margin:0 0 1.2rem; }

.app-stores{ display:flex; flex-wrap:wrap; gap:.6rem; }
.app-stores__btn{
  display:inline-flex; align-items:center; gap:.5rem;
  min-height:44px; padding:.5rem .95rem;
  background:rgba(255,255,255,.1); color:var(--color-white);
  border:1px solid rgba(255,255,255,.22); border-radius:var(--radius-sm);
  font-size:.85rem; font-weight:500;
  transition:background var(--t-fast),border-color var(--t-fast);
}
.app-stores__btn:hover{ background:rgba(255,255,255,.2); border-color:var(--color-secondary-light); color:var(--color-white); }

.footer-contact{ display:flex; flex-direction:column; gap:.75rem; }
.footer-contact a,
.footer-contact span,
.footer-contact address{
  display:flex; align-items:flex-start; gap:.55rem;
  color:rgba(255,255,255,.82); font-size:.95rem; font-style:normal; margin:0;
}
.footer-contact a{ min-height:44px; align-items:center; } /* tap target */
.footer-contact a:hover{ color:var(--color-secondary-lighter); }

/* Footer bottom */
.footer-bottom{ padding-block:1.4rem; }
.footer-bottom > .container,
.footer-bottom .container{
  display:flex; flex-direction:column; gap:.75rem;
  align-items:center; text-align:center;
}
.footer-bottom__legal{ color:rgba(255,255,255,.7); font-size:.85rem; margin:0; }
.footer-bottom__links{ display:flex; flex-wrap:wrap; gap:.4rem 1.25rem; justify-content:center; }
.footer-bottom__links a{ color:rgba(255,255,255,.78); font-size:.85rem; }
.footer-bottom__links a:hover{ color:var(--color-secondary-lighter); }

/* -----------------------------------------------------------------------------
   26. PAGINATION — keyed on WordPress's own output, not on theme classes.
   the_posts_pagination() (index.php, search.php) prints
     nav.navigation.pagination > h2.screen-reader-text + div.nav-links
   whose children are .page-numbers, with .current / .dots / .prev / .next.
   wp_link_pages() (index.php, page.php) prints div.page-links with
   .post-page-numbers children — a DIFFERENT class, so both are styled here.
   Without this block "Posts navigation" renders as visible body text.
   -------------------------------------------------------------------------- */
.pagination .nav-links{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:var(--gap-tight); justify-content:center;
  margin-top:var(--space-block);
}
.page-numbers,
.post-page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:48px; min-height:48px; padding:0 var(--sp-2);
  border:1px solid var(--color-border); border-radius:var(--radius-pill);
  color:var(--color-heading); font-weight:600; font-size:1rem;
  transition:background var(--t-fast),color var(--t-fast),border-color var(--t-fast);
}
a.page-numbers:hover,
a:hover > .post-page-numbers{
  background:var(--color-primary-lighter);
  border-color:var(--color-primary-lighter);
  color:var(--color-primary-dark);
}
.page-numbers.current,
.post-page-numbers.current{
  background:var(--color-primary-dark); border-color:var(--color-primary-dark);
  color:var(--color-white);
}
/* The ellipsis is not a destination — no pill chrome, no tap target */
.page-numbers.dots{
  min-width:auto; min-height:auto; padding:0 .25rem;
  border-color:transparent; color:var(--color-text-muted);
}
/* wp_link_pages(): "Pages:" is a bare text node, so it becomes its own item */
.page-links{
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--gap-tight);
  margin-top:var(--sp-4); font-weight:600; color:var(--color-heading);
}
.page-links > a{ display:inline-flex; }

/* -----------------------------------------------------------------------------
   27. UTILITIES
   -------------------------------------------------------------------------- */
.visually-hidden,
.screen-reader-text{ /* core emits .screen-reader-text — e.g. the pagination's own <h2> */
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.screen-reader-text:focus{
  position:static !important; width:auto; height:auto; margin:0;
  clip:auto; white-space:normal;
}
.skip-link{
  position:absolute; left:.5rem; top:-100px; z-index:2000;
  background:var(--color-primary-dark); color:var(--color-white);
  padding:.7rem 1.2rem; border-radius:var(--radius-sm); font-weight:600;
  transition:top var(--t-fast);
}
.skip-link:focus{ top:.5rem; color:var(--color-white); }
.u-center{ text-align:center; }
.u-flex-center{ display:flex; align-items:center; justify-content:center; gap:var(--sp-2); flex-wrap:wrap; }
/* A left-aligned button row, mirroring .hero__actions */
.u-actions{ display:flex; flex-wrap:wrap; gap:var(--sp-3); }
.u-mx-auto{ margin-inline:auto; }
.u-measure-sm{ max-width:32rem; }
.u-mb-0{ margin-bottom:0 !important; }
/* The one "air after a heading block" figure, so it cannot drift per template */
.u-mt-block{ margin-top:var(--space-block); }
.u-mb-block{ margin-bottom:var(--space-block); }
.u-mt-4{ margin-top:var(--sp-4); }
.u-mb-4{ margin-bottom:var(--sp-4); }
.u-mb-5{ margin-bottom:var(--sp-5); }
.is-hidden{ display:none !important; }

/* The R3 safety net that lived here was deleted on 2026-11-16, as its own
   comment instructed: every decorative SVG is gone and the only svg literals
   left in the theme are the nav chevron, the hamburger and the close buttons. */

/* -----------------------------------------------------------------------------
   28. MOTION — reveal, stagger, hero load-in
   assets/js/main.js adds .is-visible to every .reveal when it scrolls into
   view. .reveal--stagger goes on a PARENT (together with .reveal) and steps its
   children in 80ms increments; the steps are plain CSS here, so they work with
   the current main.js, and an inline --d (which front-page.php already uses)
   overrides them.
   -------------------------------------------------------------------------- */
.reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity var(--t-reveal) var(--ease-out),transform var(--t-reveal) var(--ease-out);
  transition-delay:var(--d,0s);
  will-change:opacity,transform;
}
.reveal--left{ transform:translateX(-28px); }
.reveal--right{ transform:translateX(28px); }
.reveal--scale{ transform:scale(.94); }
.reveal.is-visible{ opacity:1; transform:none; }

.reveal--stagger > *{
  opacity:0; transform:translateY(18px);
  transition:opacity var(--t-reveal) var(--ease-out),transform var(--t-reveal) var(--ease-out);
  transition-delay:var(--d,0s);
}
.reveal--stagger.is-visible > *,
.reveal--stagger > .is-visible{ opacity:1; transform:none; }
.reveal--stagger > *:nth-child(1){ --d:0ms; }
.reveal--stagger > *:nth-child(2){ --d:80ms; }
.reveal--stagger > *:nth-child(3){ --d:160ms; }
.reveal--stagger > *:nth-child(4){ --d:240ms; }
.reveal--stagger > *:nth-child(5){ --d:320ms; }
.reveal--stagger > *:nth-child(6){ --d:400ms; }
.reveal--stagger > *:nth-child(7){ --d:480ms; }
.reveal--stagger > *:nth-child(n+8){ --d:560ms; }

/* Hero load-in — on load, not on scroll; 120ms apart */
@keyframes blic-rise{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:none; }
}
.hero__eyebrow,
.hero__display,
.hero__title,
.hero__subtitle,
.hero__actions{ animation:blic-rise var(--t-reveal) var(--ease-out) both; }
.hero__eyebrow{ animation-delay:0ms; }
.hero__display,
.hero__title{ animation-delay:120ms; }
.hero__subtitle{ animation-delay:240ms; }
.hero__actions{ animation-delay:360ms; }
.hero--tall > .quick-bar,
.hero + .quick-bar{ animation:blic-rise var(--t-reveal) var(--ease-out) 480ms both; }

/* NO-JAVASCRIPT SAFETY NET. The `no-js` body class IS set on every request
   (inc/theme-setup.php) and an inline script strips it before paint, so these
   rules are live for that first moment and stay live for any visitor whose JS
   404s or throws. The @media (scripting:none) copy is the path for a visitor
   who has scripting switched off, where that remover never runs at all.
   The two branches must say the SAME thing: edit them together. Without
   either, a visitor with JS off would see empty sections, because .reveal
   starts at opacity:0 and only JS clears it. Showing the desktop nav row is
   not enough on its own: the absolutely positioned .mega-menu panels still
   contribute to the document's scrollable overflow (measured on the sibling
   themes: 181px of overflow on a 320px viewport) and their sub-links would be
   laid out off-screen with only :hover to open them. Static takes the box out
   of flow-overflow and drops the links inline. */
@media (scripting: none){
  .reveal,.reveal--left,.reveal--right,.reveal--scale,
  .reveal--stagger > *{ opacity:1 !important; transform:none !important; }
  .hero__eyebrow,.hero__display,.hero__title,.hero__subtitle,.hero__actions,
  .hero--tall > .quick-bar,.hero + .quick-bar{ animation:none; opacity:1; transform:none; }
  .main-nav__menu{ display:flex; flex-wrap:wrap; }
  .menu-toggle,.app-banner__close{ display:none; }
  .mega-menu{
    position:static; opacity:1; visibility:visible; transform:none;
    min-width:0; padding:0; border:0; box-shadow:none;
  }
}
body.no-js .reveal,
body.no-js .reveal--left,
body.no-js .reveal--right,
body.no-js .reveal--scale,
body.no-js .reveal--stagger > *{ opacity:1 !important; transform:none !important; }
body.no-js .hero__eyebrow,
body.no-js .hero__display,
body.no-js .hero__title,
body.no-js .hero__subtitle,
body.no-js .hero__actions,
body.no-js .hero--tall > .quick-bar,
body.no-js .hero + .quick-bar{ animation:none; opacity:1; transform:none; }
body.no-js .main-nav__menu{ display:flex; flex-wrap:wrap; }
body.no-js .menu-toggle{ display:none; }
body.no-js .mega-menu{
  position:static; opacity:1; visibility:visible; transform:none;
  min-width:0; padding:0; border:0; box-shadow:none;
}
/* The dismiss button needs JS; remove the inert control without it */
body.no-js .app-banner__close{ display:none; }

/* -----------------------------------------------------------------------------
   29. RESPONSIVE — 480 / 640 / 768 / 1024 / 1130 / 1280
   The min-/max-width pairs are deliberately non-overlapping (767.98 / 768 and
   1023.98 / 1024): at an exactly-equal pair BOTH queries match and the two
   branches fight, which is how a quick bar can end up flush AND overlapping at
   768px. 1024px is the nav-fit breakpoint — the arithmetic is in §17.
   640px is the two-up step for the three four-item grids (§6, §21, §22) AND the
   events widget's tall tier (§16); 1130px belongs to the widget alone and its
   arithmetic is in §16.
   -------------------------------------------------------------------------- */
@media (min-width:480px){
  .footer-bottom > .container,
  .footer-bottom .container{ flex-direction:row; justify-content:space-between; text-align:left; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .quick-links{ grid-template-columns:repeat(3,1fr); }
}

@media (min-width:640px){
  .grid--4,
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (min-width:768px){
  .newsletter > .container,
  .newsletter .container{ grid-template-columns:1fr 1fr; }
  .newsletter__form{ justify-content:flex-end; }
  .media-row{ grid-template-columns:1fr 1fr; }
  .media-row--reverse .media-row__media{ order:2; }
  .footer-main > .container,
  .footer-main .container{ grid-template-columns:repeat(2,1fr); }
  .info-cards--3{ grid-template-columns:repeat(3,1fr); }
  .styled-list--cols,
  .project-list--cols{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--sp-3) var(--sp-5); }

  /* Quick bar goes to one row of equal columns, whatever the item count */
  .quick-bar__list{ grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
  /* Hairline between items, whether or not the links are wrapped in <li> */
  .quick-bar__item + .quick-bar__item,
  .quick-bar__list > li + li > .quick-bar__item{ box-shadow:inset 1px 0 0 rgba(255,255,255,.16); }

  /* From here up the bar is pulled ONTO the hero by --quick-bar-h (§12), so the
     hero must reserve that height plus real clearance in its own bottom
     padding, or the translucent bar paints over the CTAs and swallows their
     clicks. Clearance = clamp(1rem,2vw,1.5rem), always more than the 3px focus
     outline-offset needs. */
  .hero--tall .hero__content{ padding-bottom:calc(var(--quick-bar-h) + clamp(1rem,2vw,1.5rem)); }
}

@media (min-width:1024px){
  .split{ grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
  .footer-main > .container,
  .footer-main .container{ grid-template-columns:1.4fr 1fr 1fr 1.3fr; }
  .grid--4,
  .gallery-grid,
  .stats-grid{ grid-template-columns:repeat(4,1fr); }
  .quick-links{ grid-template-columns:repeat(6,1fr); }

  /* The nav fits on one row from here (§17). Below this the hamburger and the
     drawer ARE the navigation, so the drawer must stay reachable. */
  .main-nav__menu{ display:flex; }
  .menu-toggle{ display:none; }
  .mobile-drawer{ display:none; }
}

@media (min-width:1280px){
  /* This also fixes the container's content width at 1200 - 64 = 1136px, which
     is close to the 1120px frame the >=1130px widget figures in §16 were
     measured against. */
  .container{ padding-inline:var(--sp-5); }
}

/* Touch layout runs up to the hamburger breakpoint — keep the 44px targets */
@media (max-width:1023.98px){
  .top-bar__phone,
  .top-bar__email{ min-height:44px; padding-block:.4rem; }
  .top-bar__links > a{ min-height:44px; padding-block:.4rem; }
  .top-bar__social a{ width:44px; height:44px; }
}

@media (max-width:767.98px){
  .grid--2,.grid--3{ grid-template-columns:1fr; }
  .info-cards,.info-cards--3{ grid-template-columns:1fr; }

  /* Keep click-to-call phone + email visible with >=44px tap targets; hide the
     other top-bar quick links and the social row */
  .top-bar__links > a:not(.top-bar__phone){ display:none; }
  .top-bar__social{ display:none; }
  .top-bar > .container,
  .top-bar .container{ justify-content:center; }

  /* Comfortable tap areas for small text links on touch screens */
  .card__link{ min-height:44px; align-items:center; }
  .breadcrumbs__item{ padding-block:.65rem; } /* 23.8 + 20.8 = 44.6px */
  .list-row{ padding-block:var(--sp-4); }

  /* The quick bar sits flush under a shorter hero rather than overlapping it,
     so the hero keeps its own smaller bottom padding from §15. */
  .hero + .quick-bar,
  .hero--tall + .quick-bar{ margin-top:0; }
}

@media (max-width:480px){
  .hero__actions .btn{ width:100%; }
  :root{ --quick-bar-h:58px; }
}

/* -----------------------------------------------------------------------------
   30. PRINT (lightweight, tokens only)
   -------------------------------------------------------------------------- */
@media print{
  .site-header,.site-footer,.app-banner,.skip-link,
  .mobile-drawer,.menu-toggle,.quick-bar,.pagination,
  /* Covers BOTH widget paths: the standalone loader injects its iframe inside
     .rawdah-widget-container too (in its own <span data-rawdah-src>), so a
     .widget-frame--auto prints the same way a plain .widget-frame does. */
  .rawdah-widget-container iframe{ display:none !important; }
  /* But path B's floor also sits on the WRAPPER, which would otherwise print as
     a 655-885px blank block on paper. The path-A floors are on the iframe only,
     so they need no equivalent. */
  .widget-frame--auto{ min-height:0 !important; }
  .reveal,.reveal--stagger > *{ opacity:1 !important; transform:none !important; } /* never print blank sections */
  body{ background:var(--color-white); color:var(--color-text); }
  a{ color:var(--color-text); text-decoration:underline; }
  .section--dark,.panel--dark,.page-hero,.hero{ background:var(--color-white); color:var(--color-text); }
  .hero__card{ background:var(--color-white); box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
  .section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4,
  .panel--dark .panel__title,
  /* .hero__display em is listed explicitly: §15 gives the accent word a gold
     that is ~1.6:1 on paper, and `.hero__display em` outranks `.hero__display`. */
  .page-hero__title,.hero__display,.hero__display em,.hero__title{ color:var(--color-heading); }
  .section--dark p,.section--dark li,.panel--dark p,.panel--dark li,
  .page-hero__subtitle,.hero__subtitle{ color:var(--color-text-secondary); }
  .page-hero::before,.page-hero::after,.hero::after,.section--patterned::before{ display:none; }
  .hero__bg{ display:none; }
}

/* -----------------------------------------------------------------------------
   31. PREFERS-REDUCED-MOTION — full off-switch
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0s !important;
    scroll-behavior:auto !important;
  }
  html{ scroll-behavior:auto; }
  .hero__bg{ animation:none !important; transform:none !important; }
  .hero__eyebrow,.hero__display,.hero__title,.hero__subtitle,.hero__actions,
  .hero--tall > .quick-bar,.hero + .quick-bar{ animation:none !important; opacity:1 !important; transform:none !important; }
  .reveal,.reveal--left,.reveal--right,.reveal--scale,
  .reveal--stagger > *{ opacity:1 !important; transform:none !important; }
  .card:hover,.btn:hover,.quick-link:hover,.person:hover .person__photo,
  .list-row:hover > [aria-hidden="true"],
  .card:hover .card__media img,
  .gallery-grid__item:hover img{ transform:none !important; }
}
