

.home-ramadan {
  margin-block: 8px 28px;
}

.home-ramadan-card {
  padding: clamp(18px, 3vw, 28px);
  background: #F7F3EF;
  border-left: 4px solid #8B1026;
  border-radius: 8px;
  text-align: left;
}

.home-ramadan-card p {
  max-width: 72ch;
  margin: 0;
}

.home-ramadan-card p + p {
  margin-top: 8px;
}

.home-action-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-block: 12px 48px;
}

.home-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 4vw, 32px);
  background: #F7F3EF;
  border: 1px solid #e6d9db;
  border-top: 4px solid #8B1026;
  border-radius: 10px;
}

.home-action-card p {
  margin: 0 0 20px;
}

.home-action-card .button {
  margin-top: auto;
}

@media (max-width: 700px) {
  .home-action-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.featured-flyer { margin-top: 14px; }
.featured-flyer summary { cursor: pointer; font-weight: bold; }
.featured-flyer iframe {
  display: block;
  width: min(100%, 620px);
  height: min(70vh, 680px);
  margin: 12px auto 0;
  border: 0;
  background: #fff;
}
.featured .featured-flyer a { color: #fff; }

.home-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.calendar-month-section {
  padding-top: 20px;
}
.calendar-blurb {
  max-width: 640px;
  margin: 0 0 18px;
  color: #51464a;
}

.donate-banner.involved-image-banner {
  position: relative;
  width: 100%;
  padding: 0;
  height: calc(
    clamp(44px, 8vw, 84px) +
    clamp(44px, 8vw, 84px) +
    clamp(35.84px, 5.6vw, 62.72px) +
    34px
  );
  overflow: hidden;
}

.involved-image-banner > .involved-banner-image {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: max(100%, 640px);
  height: 100%;
  max-width: none;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center;
}

.involved-opportunities {
  max-width: 960px;
}

.involved-opportunities > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.involved-opportunities > ul > li {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e6d9db;
  border-top: 3px solid #8B1026;
  border-radius: 8px;
}

.involved-opportunities > ul > li > strong {
  display: block;
  margin-bottom: 4px;
  color: #8B1026;
  font-size: 1.1rem;
}

@media (max-width: 700px) {
  .involved-opportunities > ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.donate-banner {
  background: #8B1026;
  color: #fff;
  text-align: center;
  padding-block: clamp(44px, 8vw, 84px);
}
.donate-banner h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  text-transform: uppercase;
}
.donate-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 540px;
  margin: 22px auto 0;
}
.donate-divider::before,
.donate-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.donate-divider span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}
.donate-main {
  background: #F7F3EF;
  padding-block: 40px;
}
.donate-copy,
.donate-thanks {
  max-width: 760px;
  text-align: center;
}
.donate-copy .button {
  display: block;
  max-width: 440px;
  margin: 26px auto 0;
}
.donate-note {
  margin: 12px 0 0;
  font-size: 14px;
  font-style: italic;
}
.donate-thanks {
  padding-block: 40px 48px;
}
.donate-thanks p {
  margin-bottom: 0;
}

  :root { --burgundy: #8B1026; --cream: #F7F3EF; --border: #e6d9db; }
  * { box-sizing: border-box; }
  body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: #292426; font: 16px/1.65 Arial, sans-serif; }
  main { flex: 1; }
  a { color: var(--burgundy); text-underline-offset: .2em; }
  :focus-visible { outline: 3px solid #d89c45; outline-offset: 4px; }
  .wrap { width: min(100%, 1120px); margin-inline: auto; padding-inline: 24px; }
  header { background: var(--burgundy); color: #fff; }
  header a { color: #fff; text-decoration: none; }
  .header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 16px; }

  .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  }
.brand img { display: block; flex-shrink: 0; }
  nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  nav a:hover, nav a[aria-current] { text-decoration: underline; }
  .hero { color: #fff; background: linear-gradient(125deg, #302127, var(--burgundy)); padding-block: clamp(54px, 10vw, 116px); }
  .hero p { margin: 0 0 8px; }
  h1, h2 { margin: 0 0 12px; font-family: Georgia, serif; line-height: 1.12; }
  h1 { font-size: clamp(34px, 6vw, 62px); }
  h2 { color: var(--burgundy); font-size: clamp(25px, 3vw, 34px); }
  .actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-block: 26px; }
  .button { display: inline-block; padding: 12px 18px; border-radius: 6px; background: var(--burgundy); color: #fff; text-align: center; text-decoration: none; font-weight: bold; }
  .button:hover { background: #650c1b; }
  .columns { display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; padding-block: 20px 48px; }
  .card, .register, .page-heading { background: var(--cream); }
  .card { padding: 24px; border: 1px solid var(--border); border-radius: 10px; }
  .event-list { margin: 0; padding: 0; list-style: none; }
  .event-list li { padding-block: 12px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
  time { display: block; }
  .page-heading { padding-block: 38px; text-align: center; color: var(--burgundy); }
  .page-heading h1 { margin: 0; }
  .page { padding-block: 32px 54px; }
  .calendar-intro { text-align: center; max-width: 820px; margin: 0 auto 28px; }
  .calendar-intro p { margin: 9px 0; }
  .featured { background: var(--burgundy); color: #fff; border-radius: 10px; padding: 24px; margin-bottom: 28px; }
  .featured h2 { color: #fff; }
  .featured p { margin: 6px 0; }
  .home-featured .featured, .register { text-align: center; }
  .register { padding-block: 38px; }
  .register p { max-width: 660px; margin-inline: auto; }
  .calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .calendar-toolbar h2 { margin: 0; }
  .calendar-controls { display: flex; flex-wrap: wrap; gap: 8px; }
  .calendar-controls .button { padding: 8px 12px; font-size: 14px; }
  .calendar-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
  .calendar-grid th { padding: 8px 4px; background: var(--burgundy); color: #fff; }
  .calendar-grid td { height: 94px; vertical-align: top; padding: 7px; border: 1px solid var(--border); overflow-wrap: anywhere; }
  .calendar-grid .blank { background: var(--cream); }
  .day { display: inline-block; padding-inline: 7px; font-weight: bold; }
  .day[aria-current="date"] { border-radius: 5px; background: var(--burgundy); color: #fff; }
  .event summary { cursor: pointer; }
  .event p { margin: 6px 0 0; }
  .event-description { white-space: pre-wrap; overflow-wrap: anywhere; }
  .calendar-grid .event { margin-top: 6px; padding: 5px 6px; border-left: 3px solid var(--burgundy); background: var(--cream); font-size: 13px; line-height: 1.4; }
  .calendar-grid .event time { margin-top: 4px; }
  .calendar-agenda { display: none; }
  .calendar-agenda .event { padding: 12px 0; border-bottom: 1px solid var(--border); }
  address { margin-bottom: 18px; font-style: normal; }
  footer { padding-block: 24px; color: #fff; background: #30272a; text-align: center; }
  .skip { position: absolute; left: -9999px; }
  .skip:focus { left: 12px; top: 12px; z-index: 10; padding: 8px; background: #fff; }

  @media (max-width: 700px) {
  .wrap { padding-inline: 18px; }
  nav { font-size: 14px; }
  .columns, .actions { grid-template-columns: 1fr; gap: 14px; }

  .calendar-toolbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .calendar-controls { justify-content: center; }
  .calendar-grid { display: table; }
  .calendar-agenda { display: none; }

  .calendar-grid th {
    padding: 6px 1px;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .calendar-grid td { height: 64px; padding: 3px 2px; }
  .calendar-grid .day { padding-inline: 3px; font-size: 14px; }

  .calendar-grid .event {
    margin-top: 3px;
    padding: 2px;
    border-left-width: 2px;
    font-size: 12px;
    line-height: 1.3;
  }

  .calendar-grid .event summary {
    padding-block: 4px;
    overflow-wrap: anywhere;
  }
}

    .home-featured {
  margin-block: 28px;
}

.featured > h2 {
  margin-bottom: 20px;
}

.featured > article {
  background: #F7F3EF;
  color: #292426;
  border-radius: 8px;
  padding: 20px 24px;
}

.featured > hr {
  height: 14px;
  border: 0;
  margin: 0;
}

.featured > article > strong {
  display: block;
  color: #8B1026;
  font: bold 1.35rem/1.3 Georgia, serif;
  margin-bottom: 4px;
}

.featured > article time {
  color: #51464a;
}

.featured > article .featured-flyer summary {
  display: inline-block;
  cursor: pointer;
  background: #8B1026;
  color: #fff;
  border: 1px solid #8B1026;
  border-radius: 6px;
  padding: 8px 14px;
}

.featured > article .featured-flyer summary:hover {
  background: #650c1b;
}

.featured > article .featured-flyer a {
  color: #8B1026;
  }

.featured > .featured-intro {
  margin: 0 0 20px;
}

@media (max-width: 600px) {
  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
    max-width: 275px;
    margin: 8px auto 0;
  }

  header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
  }

  header .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  header .brand img {
    flex-shrink: 0;
  }
    .involved-image-banner {
  position: relative;
  overflow: hidden;
}
.involved-banner-image {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100%, 640px);
  height: 100%;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center;
}
.involved-banner-sizing {
  opacity: 0;
}
}

 :is(.home-featured, .calendar-featured-grid) .featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  text-align: left;
}

:is(.home-featured, .calendar-featured-grid) .featured > h2,
:is(.home-featured, .calendar-featured-grid) .featured > p {
  grid-column: 1 / -1;
  margin: 0;
}

:is(.home-featured, .calendar-featured-grid) .featured > hr {
  display: none;
}

:is(.home-featured, .calendar-featured-grid) .featured > article {
  min-width: 0;
  overflow-wrap: anywhere;
}

:is(.home-featured, .calendar-featured-grid) .featured > article:has(.featured-flyer[open]) {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  :is(.home-featured, .calendar-featured-grid) .featured {
    grid-template-columns: 1fr;
  }
}
