
:root {
  color-scheme: light dark;
  --navy: #0b2545;
  --bg: #f4f5f7;
  --surface: #fff;
  --text: #161b24;
  --text-2: #636a77;
  --text-3: #868d9a;
  --hairline: #e4e6eb;
  --fill: rgba(112, 120, 136, .12);
  --fill-strong: rgba(112, 120, 136, .22);
  --hover: rgba(11, 37, 69, .035);
  --tint: #143c6e;
  --tint-hover: #0e2f59;
  --on-tint: #fff;
  --tint-soft: rgba(23, 87, 166, .1);
  --tint-soft-hover: rgba(23, 87, 166, .17);
  --link: #1757a6;
  --gold: #8a6516;
  --gold-solid: #d9b262;
  --on-gold: #2b1f06;
  --red: #c4281c;
  --red-solid: #c4281c;
  --green: #1c7a4c;
  --green-solid: #2a9961;
  --ok-bg: #e6f3ec;
  --warn-bg: #fbf1dc;
  --err-bg: #fcebe9;
  --bar: rgba(255, 255, 255, .8);
  --bar-line: rgba(11, 37, 69, .1);
  --chevron: #c2c6ce;
  --segment: #fff;
  --focus: rgba(23, 87, 166, .5);
  --ease: cubic-bezier(.4, 0, .6, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080d;
    --surface: #131922;
    --text: #f3f5f8;
    --text-2: #a2a9b6;
    --text-3: #7f8795;
    --hairline: #262d3a;
    --fill: rgba(126, 136, 156, .2);
    --fill-strong: rgba(126, 136, 156, .34);
    --hover: rgba(255, 255, 255, .05);
    --tint: #2f6dc6;
    --tint-hover: #3a78d1;
    --tint-soft: rgba(96, 156, 245, .18);
    --tint-soft-hover: rgba(96, 156, 245, .28);
    --link: #86b7ff;
    --gold: #e3c078;
    --red: #ff6b5e;
    --red-solid: #d63a2d;
    --green: #4ccf90;
    --ok-bg: rgba(76, 207, 144, .14);
    --warn-bg: rgba(227, 192, 120, .14);
    --err-bg: rgba(255, 107, 94, .16);
    --bar: rgba(13, 18, 26, .8);
    --bar-line: rgba(255, 255, 255, .1);
    --chevron: #4d5564;
    --segment: #3a4352;
    --focus: rgba(134, 183, 255, .6);
  }
}
/* Anything set on the navy photographs (sign-in, the announcements banner) uses the wordmark's pale gold. */
.on-navy {
  --text: #fff;
  --text-2: rgba(255, 255, 255, .66);
  --surface: rgba(255, 255, 255, .08);
  --hairline: rgba(255, 255, 255, .14);
  --tint: #ecd197;
  --tint-hover: #f4dfb0;
  --on-tint: #0b1c33;
  --red: #ffb4ab;
  --err-bg: rgba(255, 107, 94, .2);
  --focus: rgba(236, 209, 151, .55);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--surface); }
.skip:focus { top: 8px; }
h1 { font-size: 2rem; line-height: 1.125; font-weight: 600; letter-spacing: -.012em; overflow-wrap: anywhere; }
h2 { font-size: 1.3125rem; line-height: 1.19; font-weight: 600; }
h3 { font-size: 1.0625rem; font-weight: 600; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar and tab bar: translucent, pinned, and kept still while pages cross-fade. */
.topbar, .tabbar {
  z-index: 10; background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.topbar { position: sticky; top: 0; border-bottom: 1px solid var(--bar-line); view-transition-name: topbar; }
.topbar-content {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1028px; min-height: 48px; margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; width: 28px; height: 28px; border-radius: 50%; }
.top-nav { display: none; }
.top-settings { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 50%; color: var(--text-2); }
.top-settings[aria-current] { color: var(--link); }
.tabbar {
  position: fixed; inset: auto 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--bar-line);
  padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left)); view-transition-name: tabbar;
}
.tabbar a {
  display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 52px; padding-top: 2px;
  color: var(--text-2); font-size: .625rem; font-weight: 500; line-height: 1.2; text-decoration: none;
}
.tabbar a[aria-current] { color: var(--link); }
.tab-icon { position: relative; display: block; height: 24px; }
.nav-badge {
  position: absolute; top: -4px; left: 15px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--gold-solid); color: var(--on-gold); font-size: .6875rem; font-weight: 600; line-height: 17px; text-align: center;
}

main {
  width: 100%; max-width: 1028px; margin: 0 auto;
  padding: 8px max(20px, env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
main.public, .previewing main { padding-bottom: 64px; }
.page-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin: 12px 0 20px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading p { margin-top: 6px; color: var(--text-2); }
.page-heading .eyebrow { margin: 0 0 2px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.page-heading .status { margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 44px; margin-bottom: -10px; color: var(--link); text-decoration: none; }
.back::before { content: ""; flex: none; width: 9px; height: 9px; margin-left: 3px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice { display: flex; align-items: baseline; gap: 10px; max-width: 560px; margin: 8px 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--ok-bg); }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); transform: translateY(-1px); }
.notice.error { background: var(--err-bg); }
.notice.error::before { background: var(--red); }
.notice.warning { margin: 0; background: var(--warn-bg); }
.notice.warning::before { background: var(--gold); }
.notice a, .footnote a, .empty a { color: var(--link); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.button:active { transform: scale(.97); }
.primary { background: var(--tint); color: var(--on-tint); }
.primary:hover { background: var(--tint-hover); }
.secondary { background: var(--fill); color: var(--link); }
.secondary:hover, .button.danger:hover { background: var(--fill-strong); }
.quiet { padding: 0 10px; background: none; color: var(--link); }
.quiet:hover, .more:hover { text-decoration: underline; }
.button.danger { background: var(--fill); color: var(--red); }
.button.danger.solid, .button.danger.solid:hover { background: var(--red-solid); color: #fff; }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.more { color: var(--link); font-size: .9375rem; text-decoration: none; white-space: nowrap; }

/* Grouped lists: white rounded groups on the gray page, with hairlines that start at the text. */
.group { overflow: hidden; border-radius: 18px; background: var(--surface); }
.group .group { border-radius: 0; background: none; }
.rows li, .cells > *, .fields > *, .field, .agenda { position: relative; }
.rows li + li::before, .cells > * + *::before, .fields > * + *::before, .agenda::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hairline); pointer-events: none;
}
/* Title and status share the first line, the details run beneath, and the chevron spans both. */
.rows a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px;
  min-height: 64px; padding: 11px 16px; text-decoration: none; transition: background-color .2s var(--ease);
}
.rows a:hover, a.cell:hover { background: var(--hover); }
.rows a:active, a.cell:active { background: var(--fill); }
.rows a:focus-visible, a.cell:focus-visible { outline-offset: -4px; }
.rows strong { font-weight: 600; overflow-wrap: anywhere; }
.rows .status { grid-area: 1 / 2; }
.rows .meta, .rows .sub { grid-area: 2 / 1 / 3 / 3; }
.rows a::after, a.cell.link::after {
  content: ""; flex: none; grid-area: 1 / 3 / 3 / 4; width: 8px; height: 8px; margin-right: 2px;
  border: solid var(--chevron); border-width: 2px 2px 0 0; transform: rotate(45deg);
}
.sub { overflow: hidden; color: var(--text-2); font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
/* Every part leads with a dot in its own gutter. Clipping the first gutter hides the dot at the start of each line. */
.meta { display: flex; flex-wrap: wrap; margin-left: -.9em; clip-path: inset(0 0 0 .9em); color: var(--text-2); font-size: .875rem; }
.meta span { position: relative; padding-left: .9em; overflow-wrap: anywhere; }
.meta span::before { content: "·"; position: absolute; left: 0; width: .9em; text-align: center; }
.empty { padding: 28px 16px; color: var(--text-2); font-size: .9375rem; text-align: center; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.pending { color: var(--gold); }
.status.confirmed, .status.open { color: var(--green); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.count { color: var(--text-2); font-weight: 400; }
.cell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 11px 16px; }
.cell dd { min-width: 0; color: var(--text-2); text-align: right; overflow-wrap: anywhere; }
.cell dd a { color: var(--link); text-decoration: none; }
.cell-text { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.cell-text strong { font-weight: 600; }
.cell-text span { color: var(--text-2); font-size: .9375rem; }
.cell-text small { color: var(--text-2); font-size: .8125rem; }
a.cell.link { color: var(--link); text-decoration: none; transition: background-color .2s var(--ease); }
a.cell.danger { color: var(--red); }
a.cell.danger::after { display: none; }

/* The verse is one quiet group: Arabic first, its reading beneath in the secondary color, and a short gold rule
   above the reference as the only ornament. */
.verse { margin: 0 0 28px; padding: 22px 20px 18px; text-align: center; }
.verse blockquote { display: grid; justify-items: center; gap: 8px; }
.verse-ar {
  font: 400 1.5rem/1.8 "Geeza Pro", "Noto Naskh Arabic", "Sakkal Majalla", "Traditional Arabic", "Segoe UI", serif;
  text-wrap: balance;
}
.verse-en { max-width: 32em; color: var(--text-2); font-size: .9375rem; line-height: 1.45; text-wrap: balance; }
.verse-en i { color: var(--text-3); font-style: normal; }
.verse figcaption { margin-top: 14px; color: var(--text-3); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.verse figcaption::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto 12px; background: var(--gold-solid); }
.dashboard-grid { display: grid; gap: 32px; align-items: start; }

.week-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 0 16px; }
.week-heading h2 { font-size: 1.0625rem; white-space: nowrap; }
.week-nav, .month-heading > div { display: flex; align-items: center; }
.arrow { display: grid; place-items: center; width: 40px; height: 44px; color: var(--link); }
.arrow::before { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; }
.arrow.previous::before { margin-left: 4px; transform: rotate(-135deg); }
.arrow.next::before { margin-right: 4px; transform: rotate(45deg); }
span.arrow { color: var(--chevron); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 6px 6px; }
.day { min-width: 0; }
.day h3 { font-weight: 400; }
.day h3 a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 4px 0 12px; text-decoration: none; }
.day h3 span { color: var(--text-2); font-size: .75rem; }
.day h3 strong { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 400; }
.is-today h3 strong { color: var(--link); font-weight: 600; }
.is-selected h3 strong { background: var(--text); color: var(--surface); font-weight: 600; }
.is-today.is-selected h3 strong { background: var(--tint); color: var(--on-tint); }
.dot { position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.event { display: none; }
.agenda::before { left: 0; }
.agenda h3 { padding: 14px 16px 4px; color: var(--text-2); font-size: .8125rem; letter-spacing: .02em; text-transform: uppercase; }
.disclosure { margin-top: 8px; }
.disclosure summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; color: var(--link); cursor: pointer; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.disclosure[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }

/* Forms: each field is a row in a group, with its label above its value. */
.form, .stack, .remove { display: grid; gap: 16px; max-width: 560px; }
.stack .section { margin-top: 16px; }
.remove { margin-top: 16px; }
.signout { max-width: 560px; margin-top: 32px; }
.signout button { display: block; width: 100%; min-height: 48px; padding: 11px 16px; border: 0; background: none; color: var(--link); transition: background-color .2s var(--ease); }
.signout button:hover { background: var(--hover); }
.signout button:active { background: var(--fill); }
.signout button:focus-visible { outline-offset: -4px; }
.group-title { margin: 8px 16px -8px; color: var(--text-2); font-size: .875rem; font-weight: 400; line-height: 1.3; }
.group-title span { margin-left: 4px; color: var(--text-3); }
legend.group-title { margin: 0 16px 8px; padding: 0; }
.footnote { margin: -8px 16px 0; color: var(--text-2); font-size: .8125rem; }
.footnote.centered { margin-top: 0; text-align: center; }
.footnote.problem { color: var(--red); }
.field { display: block; padding: 9px 16px 10px; cursor: text; }
.field > span { display: block; color: var(--text-2); font-size: .8125rem; line-height: 1.35; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-width: 0; min-height: 1.6em; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0;
  background: transparent; color: var(--text); font: inherit;
}
.field textarea { min-height: 4.5em; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer; }
.field.menu::after {
  content: ""; position: absolute; right: 19px; bottom: 19px; width: 8px; height: 8px;
  border: solid var(--text-3); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none;
}
.field:focus-within { border-radius: 12px; box-shadow: inset 0 0 0 2px var(--tint); }
.field input[type=file] { padding-top: 3px; font-size: .9375rem; }
::file-selector-button { margin-right: 12px; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--fill); color: var(--link); font: inherit; cursor: pointer; }
input::-webkit-date-and-time-value { text-align: left; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-pair .field + .field { border-left: 1px solid var(--hairline); }
.fields form .button { margin: 0 16px 12px; }
.form-actions { display: grid; gap: 10px; margin-top: 8px; }
.form-actions .button { min-height: 50px; font-size: 1.0625rem; font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 12px; }
.days label { position: relative; display: grid; place-items: center; }
.days input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.days span {
  display: grid; place-items: center; width: 100%; max-width: 44px; aspect-ratio: 1; border-radius: 50%;
  background: var(--fill); font-size: .8125rem; transition: background-color .2s var(--ease);
}
.days input:checked + span { background: var(--tint); color: var(--on-tint); font-weight: 600; }
.days input:focus-visible + span { outline: 4px solid var(--focus); outline-offset: 1px; }
.switch { cursor: pointer; }
.switch input {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 31px;
  background: var(--fill-strong); cursor: pointer; transition: background-color .2s var(--ease);
}
.switch input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .22); transition: transform .2s var(--ease);
}
.switch input:checked { background: var(--green-solid); }
.switch input:checked::after { transform: translateX(20px); }

.search { display: flex; align-items: center; gap: 6px; max-width: 560px; height: 40px; margin-bottom: 12px; padding: 0 10px; border-radius: 12px; background: var(--fill); color: var(--text-2); }
.search .icon { flex: none; width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); -webkit-appearance: none; appearance: none; }
.search:focus-within { box-shadow: 0 0 0 4px var(--focus); }
.segments { display: flex; max-width: 560px; margin-bottom: 16px; padding: 2px; border-radius: 10px; background: var(--fill); }
.segments a {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 0 8px; border-radius: 8px;
  font-size: .875rem; text-decoration: none; white-space: nowrap;
}
.segments a[aria-current] { background: var(--segment); font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.pagination { display: flex; gap: 8px; margin-top: 16px; }

.booking-layout { display: grid; align-items: start; gap: 20px; max-width: 420px; }
.month { padding: 6px 10px 12px; }
.month-heading { display: flex; align-items: center; justify-content: space-between; padding-left: 8px; }
.month-heading h2 { font-size: 1.0625rem; }
.booking-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; row-gap: 2px; text-align: center; }
.booking-weekday { padding: 2px 0 6px; color: var(--text-2); font-size: .6875rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.booking-day { display: grid; place-items: center; width: 100%; max-width: 44px; aspect-ratio: 1; border-radius: 50%; font-size: 1.1875rem; text-decoration: none; }
span.booking-day { color: var(--text-3); opacity: .5; }
a.booking-day:hover { background: var(--fill); }
.booking-day.is-today { color: var(--link); font-weight: 600; }
a.booking-day[aria-current] { background: var(--tint); color: var(--on-tint); font-weight: 600; }
.slot-picker { display: grid; gap: 16px; scroll-margin-top: 60px; }
.slot-picker .group-title { margin-top: 0; }
/* The visitor's picker. The date sits behind one row that opens the month; each part of day opens to its
   stretches, and a free stretch lists its start times as chips. Only one part of day is open at a time. */
.date-picker summary, .period summary { cursor: pointer; list-style: none; }
.date-picker summary::-webkit-details-marker, .period summary::-webkit-details-marker { display: none; }
.date-picker summary { color: var(--text); }
.date-picker[open] summary::after { bottom: 15px; transform: rotate(-135deg); }
.date-picker .month { margin-left: 16px; padding: 6px 10px 12px 0; border-top: 1px solid var(--hairline); }
.date-picker .month-heading { padding-left: 2px; }
.period { position: relative; }
.period + .period::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hairline); pointer-events: none; }
.period summary { min-height: 60px; transition: background-color .2s var(--ease); }
.period summary:hover { background: var(--hover); }
.period summary:focus-visible { outline-offset: -4px; }
.period summary .cell-text { flex: 1; }
.period summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: -4px 3px 0 0; border: solid var(--chevron); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.period[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.parts { margin-left: 16px; border-top: 1px solid var(--hairline); }
.parts li + li { border-top: 1px solid var(--hairline); }
.parts .cell { min-height: 44px; padding: 10px 16px 10px 0; font-size: .9375rem; }
.parts .cell > :first-child { color: var(--text-2); }
.starts { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; padding: 0 16px 14px 0; }
.starts a {
  display: grid; place-items: center; min-height: 44px; border-radius: 12px; background: var(--tint-soft); color: var(--link);
  font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease);
}
.starts a:hover { background: var(--tint-soft-hover); }
.starts a[aria-current] { background: var(--tint); color: var(--on-tint); font-weight: 600; }

.announcement-list { display: grid; gap: 16px; }
.announcement { border-radius: 22px; }
.announcement-copy { display: grid; gap: 8px; padding: 20px; overflow-wrap: anywhere; }
.announcement-copy h2 { font-size: 1.5rem; line-height: 1.17; }
.announcement-copy p { white-space: pre-wrap; }
.announcement-copy .button { justify-self: start; margin-top: 8px; }
.flyer { display: block; width: 100%; max-height: 560px; object-fit: contain; background: var(--fill); }
.community { max-width: 600px; }
/* The banner staff can switch off: the wordmark stays at the top, and the title, their one line and the way to
   book sit at the bottom where the photograph is darkened enough to read on. */
.community-hero {
  display: grid; grid-template-rows: 1fr; grid-auto-rows: auto; justify-items: start; min-height: 280px; margin: 12px 0 16px; padding: 22px 24px 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(6, 16, 30, .3), rgba(6, 16, 30, .06) 30%, rgba(6, 16, 30, .7) 68%, rgba(6, 16, 30, .92)),
    linear-gradient(90deg, rgba(6, 16, 30, .62), rgba(6, 16, 30, .3) 55%, rgba(6, 16, 30, 0) 85%),
    var(--navy) url('/court.jpg') center right / cover no-repeat;
}
.hero-wordmark { display: block; width: 148px; height: auto; margin-bottom: 40px; }
.hero-title { font-size: clamp(1.75rem, 9.5vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.012em; }
.hero-message { max-width: 30em; margin-top: 8px; color: rgba(255, 255, 255, .88); line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
.community-hero div { margin-top: 18px; }
.community-hero span.button { cursor: default; }
.banner-row { margin-bottom: 16px; }
.banner-sample { max-width: 560px; transition: opacity .2s var(--ease), filter .2s var(--ease); }
.banner-sample[data-off] { opacity: .32; filter: grayscale(1); }
.banner-sample .community-hero { margin-top: 0; }

/* Sign-in is the navy brand moment in either appearance: the prayer hall, a glass panel, the wordmark. */
.login { color-scheme: dark; background: linear-gradient(90deg, rgba(6, 16, 30, .9), rgba(6, 16, 30, .55) 40%, rgba(6, 16, 30, .08) 72%), #081424 url('/login-desktop.webp?v=3') center / cover no-repeat; }
main.login-layout { min-height: 100svh; display: grid; align-content: center; padding: 36px max(20px, env(safe-area-inset-right)) 36px max(20px, env(safe-area-inset-left)); }
.login-panel {
  width: min(100%, 384px); padding: 36px 28px 28px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px;
  background: rgba(9, 22, 41, .62); -webkit-backdrop-filter: saturate(160%) blur(30px); backdrop-filter: saturate(160%) blur(30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.login-wordmark { display: block; width: 212px; max-width: 80%; height: auto; margin: 0 auto 20px; }
.login-panel .group { border: 1px solid var(--hairline); }
.login-panel .notice { margin: 0 0 16px; }
.login-panel .form-actions { display: grid; }
.login-panel input:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; transition: background-color 99999s; }
@media (max-width: 600px), (max-width: 1024px) and (orientation: portrait) {
  .login { background-image: linear-gradient(180deg, rgba(6, 16, 30, .18), rgba(6, 16, 30, .1) 30%, rgba(6, 16, 30, .72) 56%, rgba(6, 16, 30, .94)), url('/login-mobile.webp?v=3'); background-position: center top; }
  main.login-layout { justify-items: center; align-content: end; padding: 24px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .login-panel { width: min(100%, 420px); padding: 30px 20px 20px; }
}

/* Preview shows the public page as visitors get it: no staff chrome, same column, under one floating bar. */
.previewing .topbar, .previewing .tabbar, .previewing .notice { display: none; }
.preview-bar {
  position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 560px; margin: 0 auto 4px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14), 0 0 0 1px var(--bar-line);
}
.preview-bar p { line-height: 1.2; }
.preview-bar strong { display: block; font-weight: 600; }
.preview-bar span { display: block; color: var(--text-2); font-size: .75rem; }
.preview-bar .actions { flex-wrap: nowrap; gap: 6px; }
.public-view { max-width: 560px; margin-inline: auto; }
.done { display: grid; justify-items: center; gap: 6px; max-width: 420px; margin: 16vh auto 0; text-align: center; }
.done p { margin-bottom: 20px; color: var(--text-2); }
.done .group { width: 100%; margin: 14px 0 24px; text-align: left; }
.done p + .group { margin-top: 0; }
.done img { width: 72px; height: 72px; margin-bottom: 14px; border-radius: 50%; }
.check { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--green-solid); }
.check::before { content: ""; width: 14px; height: 26px; margin-top: -6px; border: solid #fff; border-width: 0 4px 4px 0; border-radius: 2px; transform: rotate(45deg); }
/* Gold while a request waits, green once it is confirmed, a quiet cross when it is declined or canceled. */
.check.pending { background: var(--gold-solid); }
.check.pending::before { border-color: var(--on-gold); }
.check.declined, .check.canceled { position: relative; background: var(--fill-strong); }
.check.declined::before, .check.canceled::before, .check.declined::after, .check.canceled::after {
  content: ""; position: absolute; width: 28px; height: 4px; margin: 0; border: 0; border-radius: 2px; background: var(--text-2); transform: rotate(45deg);
}
.check.declined::after, .check.canceled::after { transform: rotate(-45deg); }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 359px) {
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .field-pair .field + .field { border-left: 0; }
  .field-pair .field + .field::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--hairline); }
  .days { gap: 2px; padding-inline: 8px; }
  .days span { font-size: .75rem; }
}
@media (min-width: 834px) {
  h1 { font-size: 2.5rem; line-height: 1.1; }
  main { padding: 24px 24px 80px; }
  .topbar-content { padding-inline: 24px; }
  .tabbar, .top-settings { display: none; }
  .top-nav { display: flex; align-items: center; gap: 2px; }
  .top-nav a { padding: 6px 12px; border-radius: 999px; color: var(--text-2); font-size: .875rem; text-decoration: none; transition: color .2s var(--ease); }
  .top-nav a:hover { color: var(--text); }
  .top-nav a[aria-current] { background: var(--fill); color: var(--text); }
  .nav-badge { position: static; display: inline-block; margin-left: 6px; }
  .page-heading { margin-bottom: 24px; }
  .verse { padding: 28px 32px 22px; }
  .verse-ar { font-size: 1.75rem; }
  .verse-en { font-size: 1rem; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .form-actions { display: flex; }
  .form-actions .button { min-width: 200px; }
  .footnote.centered { text-align: left; }
  .days { grid-template-columns: repeat(7, 44px); justify-content: start; gap: 8px; padding: 14px 16px; }
  .booking-layout { grid-template-columns: 380px minmax(0, 1fr); gap: 24px; max-width: 824px; }
  .community-hero { min-height: 340px; padding: 28px 32px 32px; }
  .hero-title { font-size: 3rem; line-height: 1.08; }
  .hero-message { font-size: 1.1875rem; }
  .hero-wordmark { width: 172px; }
  .week { padding: 0; border-top: 1px solid var(--hairline); }
  .day { min-height: 320px; padding: 10px 8px; }
  .day + .day { border-left: 1px solid var(--hairline); }
  .day h3 { margin-bottom: 10px; }
  .day h3 a { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; }
  .day h3 span { font-size: .875rem; }
  .day h3 strong, .is-selected h3 strong { width: 28px; height: 28px; background: none; color: inherit; font-size: .9375rem; font-weight: 400; }
  .is-today h3 strong, .is-today.is-selected h3 strong { background: var(--tint); color: var(--on-tint); font-weight: 600; }
  .dot, .week ~ .agenda { display: none; }
  .event { display: block; margin-bottom: 4px; padding: 6px 8px; border-radius: 8px; background: var(--tint-soft); color: var(--link); text-decoration: none; transition: background-color .2s var(--ease); }
  .event:hover { background: var(--tint-soft-hover); }
  .event.block { background: var(--fill); color: var(--text-2); }
  .event strong, .event small { display: block; overflow-wrap: anywhere; }
  .event strong { font-size: .8125rem; font-weight: 600; line-height: 1.3; }
  .event small { font-size: .75rem; }
}
