:root {
  --navy: #10243a;
  --navy-deep: #0b1a2b;
  --navy-soft: #1b3a5c;
  --blue: #1f4e89;
  --gold: #8d6428;
  --gold-bright: #e4c98a;
  --ivory: #f6f1e7;
  --paper: #fffcf8;
  --sand: #efe6d6;
  --ink: #17202b;
  --muted: #5c6a78;
  --line: rgba(16, 36, 58, 0.12);
  --shadow: 0 24px 60px rgba(16, 36, 58, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero :focus-visible,
.page-hero :focus-visible,
.quote :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-bright);
}

::selection {
  background: var(--gold-bright);
  color: var(--navy);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 50;
  background: var(--paper);
  color: var(--navy);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 241, 231, 0.92);
  border-top: 3px solid var(--gold-bright);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  height: 68px;
  width: 68px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 36, 58, 0.08);
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy);
}

.brand-place {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-button {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  color: var(--navy);
}

.nav-button-bars,
.nav-button-bars::before,
.nav-button-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-button-bars::before,
.nav-button-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-button-bars::before {
  top: -6px;
}

.nav-button-bars::after {
  top: 6px;
}

.nav-toggle:checked ~ .nav-button .nav-button-bars {
  background: transparent;
}

.nav-toggle:checked ~ .nav-button .nav-button-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-button .nav-button-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.nav a[aria-current="page"] {
  background: rgba(16, 36, 58, 0.06);
}

.nav-cta {
  margin-left: 0.3rem;
  background: var(--navy);
  color: var(--ivory) !important;
}

.nav-cta:hover {
  background: var(--navy-soft);
}

.nav-cta[aria-current="page"] {
  background: transparent;
  color: var(--navy) !important;
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(228, 201, 138, 0.18), transparent 42%),
    radial-gradient(ellipse at 100% 90%, rgba(47, 111, 173, 0.28), transparent 48%),
    var(--navy);
  padding: clamp(3.2rem, 6vw, 5.5rem) 0 clamp(3.4rem, 7vw, 5.8rem);
}

.hero-arch {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: min(460px, 52vw);
  color: rgba(228, 201, 138, 0.28);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.arabic {
  margin: 0 0 0.85rem;
  text-align: left;
}

.arabic span {
  display: inline-block;
  max-width: min(24rem, 100%);
  direction: rtl;
  font-family: var(--arabic);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.9;
  color: var(--gold-bright);
}

.hero h1,
.page-hero h1 {
  margin: 0.15rem 0 1rem;
  font-size: clamp(3.3rem, 7vw, 6.3rem);
  line-height: 0.92;
}

.hero h1 span,
.page-hero h1 span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gold-bright);
}

.hero .kicker,
.page-hero .kicker,
.quote .kicker {
  color: var(--gold-bright);
}

.lede {
  max-width: 38rem;
  margin: 0;
  color: rgba(246, 241, 231, 0.84);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold-bright);
  color: var(--navy);
}

.btn-gold:hover {
  background: #f0d7a6;
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, 0.72);
}

.btn-ghost:hover {
  background: rgba(255, 252, 248, 0.08);
}

.btn-navy {
  background: var(--navy);
  color: var(--ivory);
}

.btn-navy:hover {
  background: var(--navy-soft);
}

.btn-line {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.btn-line:hover {
  background: var(--navy);
  color: var(--ivory);
}

.prayer-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 28px;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.prayer-date {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.prayer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  align-items: baseline;
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--navy);
}

.prayer-when {
  white-space: nowrap;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.salah {
  background: var(--ivory);
  border-radius: 16px;
  padding: 0.7rem 0.7rem 0.75rem;
  border: 1px solid transparent;
  min-height: 104px;
}

.salah.is-next {
  background: var(--navy);
  color: var(--ivory);
}

.salah-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.salah.is-next .salah-name,
.salah.is-next .salah-adhan,
.salah.is-next .salah-meta {
  color: var(--gold-bright);
}

.salah-time {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.salah-meta,
.salah-adhan {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.jumuah-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: #f8efd8;
  color: var(--navy);
  font-weight: 600;
}

.jumuah-bar span {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 560;
}

.prayer-source {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.locator {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.locator-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.3rem 0;
}

.locator p,
.locator .locator-value {
  margin: 0;
}

.locator-value {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--navy);
}

.section {
  padding: clamp(3.5rem, 7vw, 6.2rem) 0;
}

.section-sand {
  background: var(--sand);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.program-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.program-stack {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.25rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  border-color: rgba(141, 100, 40, 0.45);
  box-shadow: var(--shadow);
}

.card-more {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-feature {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(228, 201, 138, 0.2), transparent 46%),
    var(--navy);
  color: var(--ivory);
  border-color: transparent;
  min-height: 100%;
}

.card-feature .kicker,
.card-feature .card-more {
  color: var(--gold-bright);
}

.card-feature p {
  color: rgba(246, 241, 231, 0.82);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.2rem;
  display: grid;
  gap: 1.35rem;
  border-left: 1px solid rgba(141, 100, 40, 0.45);
}

.timeline li {
  position: relative;
  padding-left: 1.4rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px var(--sand);
}

.section:not(.section-sand) .timeline li::before {
  box-shadow: 0 0 0 4px var(--ivory);
}

.timeline li.is-done::before {
  background: var(--navy);
}

.timeline h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.45rem;
}

.timeline p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-done {
  background: #e4f0e6;
  color: #1c5a34;
}

.pill-live {
  background: #f8efd8;
  color: #6d4a12;
}

.quote {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(228, 201, 138, 0.16), transparent 42%),
    var(--navy);
  color: var(--ivory);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.quote blockquote {
  margin: 0;
  max-width: 46rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.quote blockquote p {
  margin: 0;
}

.hero-quote {
  margin: 0;
  max-width: 44rem;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--ivory);
}

.page-hero .attribution {
  margin-top: 1rem;
}

.card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.55rem;
}

.locator a:not(.btn) {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.locator-grid .btn {
  white-space: nowrap;
}

[id] {
  scroll-margin-top: 6rem;
}

.quote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
}

.quote .btn {
  margin-top: 1.6rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.visit-grid h2 {
  margin-bottom: 0.7rem;
}

.visit-grid .text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visit-grid iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 16px;
  background: var(--sand);
}

.visit-panel p:last-child {
  margin-bottom: 0;
}

.visit-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.visit-list li {
  display: grid;
  gap: 0.1rem;
}

.visit-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visit-list strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  color: var(--navy);
}

.map-wrap {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--sand);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(228, 201, 138, 0.16), transparent 46%),
    var(--navy);
  padding: clamp(3rem, 6vw, 4.8rem) 0;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.page-hero .lede {
  max-width: 40rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.committee-list {
  margin-top: 1rem;
}

.method-grid,
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.method h3,
.detail-grid h3 {
  margin-bottom: 0.45rem;
}

.steps {
  list-style: none;
  margin: 0.4rem 0 1rem;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--ivory);
  font-size: 0.8rem;
  font-weight: 600;
}

.notice {
  background: #f8f1e3;
  border: 1px solid rgba(141, 100, 40, 0.35);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
}

.notice h2,
.notice h3 {
  font-size: 1.6rem;
  margin-bottom: 0.45rem;
}

.notice p:last-child,
.notice li:last-child {
  margin-bottom: 0;
}

.clean-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.clean-list li {
  margin: 0.35rem 0;
}

.clean-list li::marker {
  color: var(--gold);
}

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem 0.95rem;
}

.person span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.person strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 560;
  color: var(--navy);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 241, 231, 0.82);
  padding: 3.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 2rem;
}

.footer-brand {
  margin: 0 0 0.55rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.85rem;
}

.footer-label {
  margin: 0 0 0.7rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
  color: rgba(246, 241, 231, 0.62);
  font-size: 0.9rem;
}

.footer-base p {
  margin: 0;
}

@media (max-width: 979px) {
  .info-bar a {
    display: none;
  }

  .nav-button {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1.25rem 1.1rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(16, 36, 58, 0.08);
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0.15rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.08rem;
  }

  .nav-cta {
    margin: 0.85rem 0 0;
    border-bottom: 0;
    text-align: center;
  }

  .hero-grid,
  .board-grid,
  .program-layout,
  .split,
  .visit-grid,
  .method-grid,
  .detail-grid,
  .footer-grid,
  .locator-grid {
    grid-template-columns: 1fr;
  }

  .locator-grid .btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .prayer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-place {
    display: none;
  }

  .brand img {
    height: 56px;
    width: 56px;
  }

  .jumuah-bar {
    flex-direction: column;
    gap: 0.15rem;
  }

  .hero-actions .btn,
  .actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.info-bar {
  background: var(--navy-deep);
  color: var(--ivory);
}

.info-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 40px;
  font-size: 0.92rem;
}

.info-bar-inner > * {
  min-width: 0;
}

.info-bar p {
  margin: 0;
}

.info-bar a {
  color: inherit;
  text-decoration: none;
}

.info-bar a:hover {
  color: var(--gold-bright);
}

.board-section {
  padding: 1.6rem 0 1.15rem;
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: 1.35rem 2.1rem;
  align-items: start;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem 1.05rem 0.7rem;
  box-shadow: 0 18px 44px rgba(16, 36, 58, 0.08);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.board-title {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
}

.khutbah-title {
  margin: 0;
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  line-height: 1.02;
}

.khutbah-column .panel-head {
  margin-bottom: 0.85rem;
}

.up-next {
  text-align: right;
}

.up-next-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.up-next-iqamah,
.up-next-wait,
.board-note,
.fine-print,
.prayer-date,
.schedule-empty {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.up-next-wait {
  color: #8d3b32;
  font-weight: 600;
}

.board-download {
  width: 100%;
  min-height: 42px;
  margin: 0.75rem 0 0.35rem;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.board-sub {
  margin: 0.7rem 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.fine-print {
  margin-top: 0.8rem;
}

.table-scroll {
  overflow-x: auto;
}

.times,
.schedule-table,
.editor-table {
  width: 100%;
  border-collapse: collapse;
}

.times th,
.times td {
  padding: 7px 4px;
  text-align: left;
  font-weight: 450;
}

.times thead th,
.editor-table thead th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.times tbody th {
  font-weight: 600;
}

.times tr.is-next th,
.times tr.is-next td {
  background: #f8efd8;
}

.schedule-table {
  margin-top: 0.2rem;
}

.khutbah-column #khutbah-home {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.khutbah-column .schedule-empty {
  margin: 0;
  padding: 0.9rem 1rem;
}

.schedule-table th {
  background: var(--navy);
  color: var(--ivory);
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.schedule-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}

.schedule-table tr.is-past td {
  background: #f6f3ee;
  color: var(--muted);
}

.schedule-table td.is-open {
  color: var(--muted);
  font-style: italic;
}

.past-tag {
  display: inline-block;
  margin-left: 0.45rem;
  color: #6d4a12;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.cal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-toolbar h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.cal-label {
  padding: 0 0.15rem 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cal-day {
  min-height: 92px;
  padding: 0.45rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cal-day.is-empty {
  background: transparent;
  border-color: transparent;
}

.cal-day.is-friday {
  background: #f8efd8;
  border-color: rgba(141, 100, 40, 0.35);
}

.cal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--navy);
}

.cal-num {
  font-weight: 600;
}

.cal-names {
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field {
  display: block;
  margin: 0.8rem 0 0.35rem;
  font-weight: 600;
}

#admin-password,
.editor-table input,
.editor-card input,
.editor-card textarea {
  width: 100%;
  max-width: 28rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font: inherit;
}

.editor-table input,
.editor-card input,
.editor-card textarea {
  max-width: none;
}

.editor-card textarea {
  min-height: 7rem;
  resize: vertical;
}

.editor-table th,
.editor-table td {
  padding: 0.45rem;
  text-align: left;
  vertical-align: middle;
}

.text-button {
  padding: 0.4rem;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.admin-message {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
}

.admin-message.is-error {
  color: #8d3b32;
}

#admin-gate {
  max-width: 32rem;
}

#admin-form {
  margin-top: 0;
}

@media (max-width: 720px) {
  .panel-head,
  .cal-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .up-next {
    text-align: left;
  }

  .cal-day {
    min-height: 64px;
    padding: 0.3rem;
  }

  .cal-names {
    display: none;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 979px) {
  .board-grid {
    grid-template-columns: 1fr;
  }
}

.prose p + p {
  margin-top: 0.75rem;
}

.card .event-time {
  color: var(--navy);
  font-weight: 600;
}

.event-photo {
  display: block;
  width: calc(100% + 2.8rem);
  max-width: none;
  height: auto;
  object-fit: contain;
  background: white;
  margin: -1.35rem -1.4rem 1rem;
  border-radius: 22px 22px 0 0;
}

.events-earlier {
  margin: 2rem 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.events-more {
  margin: 1rem 0 0;
}

.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.4rem 0 0;
}

.banner-section {
  padding: 1.6rem 0 2.2rem;
}

.banner-stage {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  grid-template-areas:
    "slide slide slide"
    "prev dots next";
  align-items: center;
  justify-items: center;
  width: min(520px, calc(100% - 2.5rem));
  row-gap: 1rem;
  column-gap: 0.75rem;
}

.banner-stage.is-single {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "slide";
}

.banner-frame {
  grid-area: slide;
  width: 100%;
}

.banner-card {
  display: none;
}

.banner-card.is-active {
  display: block;
}

.banner-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(16, 36, 58, 0.14);
}

.banner-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(16, 36, 58, 0.16);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(16, 36, 58, 0.08);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.banner-arrow.is-prev { grid-area: prev; }
.banner-arrow.is-next { grid-area: next; }

.banner-arrow:hover,
.banner-arrow:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.banner-dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.banner-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d5cdb8;
  cursor: pointer;
}

.banner-dots button.is-active {
  width: 26px;
  background: var(--navy);
}

.editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.editor-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.editor-tabs button.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.editor-card {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.editor-card .field {
  margin: 0;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.banner-edit {
  grid-template-columns: 112px 1fr;
  align-items: start;
}

.banner-edit > img,
.editor-thumb {
  width: 112px;
  height: 148px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sand);
}

.file-button {
  position: relative;
  width: fit-content;
}

.file-button input,
.editor-card .file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  max-width: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.editor-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
}

@media (max-width: 720px) {
  .editor-grid,
  .banner-edit {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav-button,
  .quote .btn,
  .map-wrap,
  .visit-grid iframe {
    display: none !important;
  }

  body,
  .hero,
  .page-hero,
  .quote {
    background: white !important;
    color: black !important;
  }

  .prayer-card {
    box-shadow: none;
  }
}
