/* Grimsby Central Mosque: components.
   Every value comes from tokens.css (generated from tokens.json).
   Layout idea: a calm paper page; deep green bands for giving and the footer;
   photos set in pointed arches like the mihrab; one gilt star lattice as ornament. */
[hidden] { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dome); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--paper); border-radius: 2px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--band-ink); box-shadow: 0 0 0 2px var(--band); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--dome); text-wrap: balance; margin: 0; }
h1 { font-size: 42px; line-height: 48px; }
h2 { font-size: 30px; line-height: 38px; }
h3 { font-size: 22px; line-height: 30px; }
h4 { font-family: var(--font-sans); font-size: 17px; line-height: 26px; font-weight: 700; color: var(--ink); margin: 0; }
p { margin: 0; }
[lang="ar"] { font-family: var(--font-arabic); }
.tabular { font-variant-numeric: tabular-nums; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--dome); color: var(--on-dome); padding: 8px 16px; border-radius: var(--radius-sm); z-index: 50; }
.skip-link:focus { top: 12px; color: var(--on-dome); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--measure-page) + 2 * var(--space-5));
  margin-inline: auto;
  padding-left: max(var(--space-5), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-5), env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--sunk { background: var(--surface-sunk); }
.band { background: var(--band); color: var(--band-ink); }
.band h1, .band h2, .band h3 { color: var(--band-ink); }
.band a:not(.btn) { color: var(--band-ink); }
.band a:not(.btn):hover { color: var(--gilt-on-band); }

.stack { display: flex; flex-direction: column; gap: var(--space-5); }
.stack--s { gap: var(--space-3); }
.stack--l { gap: var(--space-7); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: start; }
.split--media-left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split > * { min-width: 0; }

.prose { max-width: var(--measure-text); display: flex; flex-direction: column; gap: var(--space-4); }
.prose > h2 { margin-top: var(--space-5); }
.prose > h3 { margin-top: var(--space-3); }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--space-2); }
.prose li::marker { color: var(--gilt); }
.lead { font-size: 20px; line-height: 32px; color: var(--ink); max-width: var(--measure-text); }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; line-height: 24px; }

.eyebrow {
  font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brick); margin: 0;
}
.band .eyebrow { color: var(--gilt-on-band); }

/* Section heading with a short gilt rule */
.heading { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.heading::after { content: ""; width: 56px; height: 2px; background: var(--gilt); order: 3; }
.heading--center { align-items: center; text-align: center; }

/* ---------- Header and navigation ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 76px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 54px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--font-display); font-size: 21px; line-height: 24px; color: var(--dome); }
.brand__org { font-size: 12px; line-height: 16px; letter-spacing: 0.04em; color: var(--ink-muted); }

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__group > summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-pill);
  font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__group > summary:hover { color: var(--dome); background: var(--surface-sunk); }
.nav__link[aria-current="page"], .nav__group.is-current > summary { color: var(--dome); box-shadow: inset 0 -2px 0 var(--gilt); border-radius: 0; }
.nav__group { position: relative; }
.nav__group > summary { list-style: none; }
.nav__group > summary::-webkit-details-marker { display: none; }
.nav__group > summary svg { transition: transform 0.15s ease; }
.nav__group[open] > summary svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised); padding: var(--space-2); list-style: none; margin: 0;
  display: flex; flex-direction: column;
}
.nav__sub a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--surface-sunk); color: var(--dome); }
.nav__toggle { display: none; }

@media (max-width: 1200px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--ink); font: 600 15px/20px var(--font-sans); cursor: pointer;
  }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--space-4) max(var(--space-5), env(safe-area-inset-right, 0px)) var(--space-6) max(var(--space-5), env(safe-area-inset-left, 0px));
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.is-open .nav__menu { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .nav__group > summary { width: 100%; justify-content: space-between; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__link[aria-current="page"], .nav__group.is-current > summary { box-shadow: none; }
  .nav__sub { position: static; border: 0; box-shadow: none; background: transparent; padding: 0 0 var(--space-2) var(--space-4); }
  .nav__menu .btn { margin-top: var(--space-5); width: 100%; }
}
@media (min-width: 1201px) { .nav__menu { display: flex; align-items: center; gap: var(--space-3); } }
@media (min-width: 1201px) { .nav__link, .nav__group > summary { padding: 8px 9px; } .site-header__inner { gap: var(--space-4); } .brand__name, .brand__org { white-space: nowrap; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--radius-pill);
  font: 600 16px/20px var(--font-sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--dome); color: var(--on-dome); }
.btn--primary:hover { background: var(--dome-hover); color: var(--on-dome); }
.btn--secondary { background: transparent; color: var(--dome); border-color: var(--dome); }
.btn--secondary:hover { background: var(--dome); color: var(--on-dome); }
.btn--on-band { background: var(--band-ink); color: var(--band); }
.btn--on-band:hover { background: var(--gilt-on-band); color: var(--band); }
.btn--ghost-band { background: transparent; color: var(--band-ink); border-color: var(--band-muted); }
.btn--ghost-band:hover { border-color: var(--band-ink); color: var(--band-ink); background: rgba(255, 255, 255, 0.06); }
.btn--small { min-height: 38px; padding: 8px 16px; font-size: 15px; }
.btn svg { flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Arch frame (the mihrab) ---------- */
.arch {
  position: relative; aspect-ratio: 5 / 6; width: 100%; max-width: 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V52C0 25 21 9 50 0c29 9 50 25 50 52v68z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V52C0 25 21 9 50 0c29 9 50 25 50 52v68z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: var(--surface-sunk);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: relative; padding: 10px; }
.arch-frame::before {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V52C0 25 21 9 50 0c29 9 50 25 50 52v68' fill='none' stroke='black' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V52C0 25 21 9 50 0c29 9 50 25 50 52v68' fill='none' stroke='black' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background: var(--gilt);
}
.arch-caption { margin-top: var(--space-3); font-size: 15px; line-height: 22px; color: var(--ink-muted); text-align: center; }

/* ---------- Star lattice (eight-point khatam) ---------- */
.lattice { position: relative; isolation: isolate; }
.lattice::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.13;
  background: var(--gilt-on-band);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='black' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='black' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px repeat;
}
.lattice--paper::before { background: var(--gilt); opacity: 0.12; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-8) var(--space-8); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.hero h1 { font-size: 56px; line-height: 60px; letter-spacing: -0.01em; }
.hero__media { max-width: 440px; justify-self: end; width: 100%; }
.page-hero { padding-block: var(--space-8) var(--space-7); }
.page-hero__inner { display: flex; flex-direction: column; gap: var(--space-4); }
.page-hero__inner > * { max-width: 820px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8); align-items: center; }
.page-hero__media { margin: 0; width: 100%; max-width: 230px; justify-self: end; }

/* ---------- Photo gallery (small arches) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.gallery figcaption { font-size: 15px; line-height: 22px; color: var(--ink-muted); text-align: center; }

/* ---------- Card photo ---------- */
.card__media { margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.breadcrumb { font-size: 14px; line-height: 20px; color: var(--ink-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-muted); }

/* ---------- Prayer board ---------- */
.prayer-board {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.prayer-board__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-4); }
.prayer-board__date { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.prayer-board__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); }
.prayer {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: var(--space-3) var(--space-2); border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper);
}
.prayer__ar { font-family: var(--font-arabic); font-size: 24px; line-height: 34px; color: var(--dome); }
.prayer__en { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.prayer__time { font-size: 26px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.prayer__jamaah { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.prayer--next { background: var(--dome); border-color: var(--dome); }
.prayer--next .prayer__ar, .prayer--next .prayer__en, .prayer--next .prayer__time, .prayer--next .prayer__jamaah { color: var(--on-dome); }
.prayer--next::after { content: "Next"; margin-top: 4px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dome); }
.prayer-board__empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.prayer-board__jumuah { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--dome); color: var(--on-dome); text-align: center; }
.prayer-board__jumuah .prayer__en, .prayer-board__jumuah .prayer__time, .prayer-board__jumuah .prayer__ar { color: var(--on-dome); }
.prayer-board__when { margin-top: var(--space-1); font-size: 13px; line-height: 18px; color: var(--on-dome); opacity: 0.9; }
.prayer-board__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: 15px; line-height: 22px; color: var(--ink-muted); }

.timetable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.timetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; line-height: 22px; min-width: 720px; }
.timetable th, .timetable td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.timetable thead th { position: sticky; top: 0; background: var(--surface-sunk); color: var(--ink); font-weight: 700; }
.timetable thead small { display: block; font-weight: 400; color: var(--ink-muted); }
.timetable tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.timetable tr.is-today { background: color-mix(in srgb, var(--dome) 10%, transparent); }
.timetable tr.is-friday th { color: var(--brick); }

/* ---------- Cards and tiles ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.card--sunk { background: var(--paper); }
.service-tile {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6) var(--space-5) var(--space-5); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-tile::before {
  content: ""; width: 28px; height: 34px; background: var(--gilt);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cpath d='M8 120V54C8 31 25 16 50 6c25 10 42 25 42 48v66' fill='none' stroke='black' stroke-width='9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cpath d='M8 120V54C8 31 25 16 50 6c25 10 42 25 42 48v66' fill='none' stroke='black' stroke-width='9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-tile:hover { border-color: var(--dome); color: var(--ink); transform: translateY(-2px); }
.service-tile h3 { color: var(--dome); }
.service-tile p { color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.service-tile .link-arrow { margin-top: auto; color: var(--dome); font-size: 15px; }

.event-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-raised);
}
.event-card__media { position: relative; min-height: 240px; background: var(--surface-sunk); }
.event-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.event-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--space-3); font-size: 15px; line-height: 22px; margin: 0; }
.event-meta dt { color: var(--ink-muted); font-weight: 600; }
.event-meta dd { margin: 0; }
.datestamp { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; padding: 8px 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); line-height: 1; }
.datestamp__month { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brick); }
.datestamp__day { font-family: var(--font-display); font-size: 32px; line-height: 38px; color: var(--dome); }
.datestamp__dow { font-size: 12px; color: var(--ink-muted); }
.event-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--space-5); align-items: center; padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.event-row:first-child { border-top: 1px solid var(--line); }
.event-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-row__meta { font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* ---------- Notice ---------- */
.notice { background: var(--notice); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--measure-text); }
.notice__title { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.notice--urgent { border: 1.5px solid var(--brick); }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.contact-lines li { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); align-items: baseline; }
.contact-lines a { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 19px; }

/* ---------- Lists, tables ---------- */
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; padding-bottom: var(--space-3); }
.price-table th, .price-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: 13px; line-height: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.price-table td { text-align: right; font-weight: 600; font-size: 19px; }
.price-table thead th + th { text-align: right; }
.price-table tbody th { font-weight: 500; }
.price-table tbody th small { display: block; color: var(--ink-muted); font-weight: 400; font-size: 14px; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2) var(--space-5); }
.tick-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tick-list li { position: relative; padding-left: 26px; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 10px; background: var(--gilt); transform: rotate(45deg); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: 0; }
.facts div { display: flex; flex-direction: column; gap: 4px; padding-top: var(--space-4); border-top: 2px solid var(--gilt); }
.facts dt { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 32px; color: var(--dome); }
.band .facts dt { color: var(--band-muted); }
.band .facts dd { color: var(--band-ink); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--dome); border-bottom: 2px solid var(--dome); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .faq__answer { padding: 0 0 var(--space-5); max-width: var(--measure-text); display: flex; flex-direction: column; gap: var(--space-3); color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); max-width: 720px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label, .field legend { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); padding: 0; }
.field .req { color: var(--brick); font-weight: 700; }
.field__help { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/24px var(--font-sans); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 11px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--dome); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field__error { font-size: 14px; line-height: 20px; color: var(--danger); font-weight: 600; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); align-items: start; font-size: 16px; line-height: 24px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--dome); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.hp { display: none; }

/* ---------- Giving ---------- */
.give-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.give-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--space-2); }
.amount {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-height: 64px; padding: 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: var(--paper); color: var(--dome); text-decoration: none; font-variant-numeric: tabular-nums;
}
.amount strong { font-size: 22px; line-height: 26px; }
.amount span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.amount:hover { border-color: var(--dome); background: var(--dome); color: var(--on-dome); }
.amount:hover span { color: var(--on-dome); }
.tabs { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunk); gap: 4px; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: var(--radius-pill); font: 600 15px/20px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--dome); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); list-style: none; margin: 0; padding: 0; }
.uses li { display: flex; gap: var(--space-3); align-items: center; padding-block: var(--space-3); border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; }
.uses li::before { content: ""; flex: none; width: 10px; height: 10px; transform: rotate(45deg); background: var(--gilt-on-band); }

/* ---------- Banner (featured event on home) ---------- */
.banner { border-bottom: 1px solid var(--line); background: var(--surface); }
.banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding-block: var(--space-3); }
.banner__text { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); align-items: baseline; }
.banner__text strong { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--dome); }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-ink); padding-block: var(--space-8) var(--space-6); }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { color: var(--gilt-on-band); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
.site-footer h2 { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gilt-on-band); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer address { font-style: normal; color: var(--band-muted); }
.site-footer__seal { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.site-footer__seal span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--band-ink); flex: none; }
.site-footer__seal img { width: 40px; height: 48px; object-fit: contain; }
.site-footer__seal strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 26px; }
.site-footer__base { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: 14px; line-height: 20px; color: var(--band-muted); }

/* ---------- Dark theme adjustments ---------- */
.brand__seal { display: contents; }
[data-theme="dark"] .brand__mark { background: var(--band-ink); border-radius: 50%; padding: 5px; width: 54px; height: 54px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split, .split--media-left, .page-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .page-hero__media { justify-self: start; max-width: 190px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__media { justify-self: start; max-width: 360px; }
  .grid--3, .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-card { grid-template-columns: minmax(0, 1fr); }
  .prayer-board__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 26px; }
  .wrap { padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); }
  .section { padding-block: var(--space-7); }
  .hero { padding-block: var(--space-6) var(--space-7); }
  .hero h1 { font-size: 38px; line-height: 44px; }
  h1 { font-size: 32px; line-height: 38px; }
  h2 { font-size: 26px; line-height: 32px; }
  .lead { font-size: 18px; line-height: 28px; }
  .grid--2, .grid--3, .give-grid, .form__row, .form__row--3, .uses, .tick-list--2, .facts { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .brand__org { display: none; }
  .page-hero__media { display: none; }
  .brand__name { font-size: 18px; line-height: 22px; }
  .event-row { grid-template-columns: 64px minmax(0, 1fr); }
  .event-row .btn { grid-column: 2; justify-self: start; }
  .give-card, .event-card__body { padding: var(--space-5); }
  .prayer__ar { font-size: 20px; line-height: 28px; }
  .prayer-board__empty { grid-template-columns: minmax(0, 1fr); }
  .prayer-board__jumuah { justify-self: start; }
  .hero__media { max-width: 300px; }
  .prayer__time { font-size: 22px; line-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Gift Aid callout on the Donate page */
.ga-callout { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); align-items: center; padding: var(--space-6); }
@media (max-width: 640px) { .ga-callout { grid-template-columns: minmax(0, 1fr); padding: var(--space-5); } }

/* ---------- Review mode (suggestions tool, /review/) ---------- */
.review-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000; width: min(760px, calc(100% - 24px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 12px 10px 18px; background: var(--band); color: var(--band-ink); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 15px; line-height: 22px; }
.review-bar__hint { color: var(--band-muted); }
.review-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.review-btn { appearance: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--band-ink); border-radius: var(--radius-pill); padding: 7px 14px; font: 600 14px/20px var(--font-sans); cursor: pointer; text-decoration: none; }
.review-btn:hover { background: rgba(255,255,255,.12); color: var(--band-ink); }
.review-btn--primary { background: var(--gilt-on-band); border-color: transparent; color: var(--band); }
.review-btn--primary:hover { background: #fff; color: var(--band); }
body.is-reviewing { padding-bottom: 96px; }
body.is-picking, body.is-picking * { cursor: crosshair !important; }
.review-hover { outline: 3px dashed var(--gilt) !important; outline-offset: 3px; }
.review-selected { outline: 3px solid var(--gilt) !important; outline-offset: 3px; }
.review-pinned { position: relative; outline: 2px solid color-mix(in srgb, var(--gilt) 60%, transparent); outline-offset: 3px; }
.review-pin { position: absolute; top: -12px; right: -12px; z-index: 5; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--brick); color: #fff; font: 700 13px/24px var(--font-sans); text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.review-dialog { position: fixed; inset: 0; z-index: 1001; display: grid; place-items: center; padding: 16px; background: rgba(10,20,12,.45); }
.review-dialog__box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.review-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 1002; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius-md); font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.review-steps { display: flex; flex-direction: column; gap: var(--space-3); padding-left: 1.3em; margin: 0; max-width: var(--measure-text); }
@media (max-width: 640px) { .review-bar__hint { display: none; } .review-bar { bottom: 10px; } }

/* Campaign cards (/campaigns/) */
.campaign { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-6); align-items: center; }
.campaign__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); max-width: 100%; }
.campaign__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .campaign { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

/* 'Where your money goes': the first item (biggest cost) spans the full row so 7 items sit evenly */
.uses .uses__wide { grid-column: 1 / -1; }
.timetable td strong { font-weight: 700; color: var(--ink); }
.timetable td .muted { font-size: 13px; }

/* Highlighted sentence inside a card (e.g. the Muslim burial section on Funeral Support) */
.callout-inline { margin: 0; padding: 10px 14px; border-left: 3px solid var(--gilt); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
