/* Ethiopian Orthodox Tewahedo Medhanealem — site styles */
:root {
  --wine: #3d0f12;
  --wine-deep: #2a0a0c;
  --wine-light: #5c2226;
  --gold: #c6a04a;
  --gold-bright: #e4c56c;
  --cream: #f7f4ee;
  --cream-dark: #ebe5d9;
  --cream-warm: #fffaf0;
  --text: #1a1512;
  --text-muted: #5c5349;
  --white: #fff;
  --border: rgba(26, 21, 18, 0.12);
  --shadow: 0 10px 30px rgba(42, 10, 12, 0.08);
  --shadow-soft: 0 2px 10px rgba(42, 10, 12, 0.05);
  --radius: 10px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Noto Sans Ethiopic", system-ui, sans-serif;
  /* Language labels: green · yellow · red (EN / አማ / FR) */
  --lang-en: #078930;
  --lang-am: #fcdd09;
  --lang-fr: #da121a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream-warm);
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

::selection {
  background: rgba(198, 160, 74, 0.3);
}

a {
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 3px solid rgba(228, 197, 108, 0.92);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--wine);
  color: var(--cream);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wine);
  border-bottom: 1px solid rgba(198, 160, 74, 0.35);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Language: EN (green) · አማ (yellow) · FR (red) — text only, no flag */
.lang-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.lang-nav .lang-sep {
  color: rgba(247, 244, 238, 0.45);
  font-size: 0.8rem;
  user-select: none;
  padding: 0 0.1rem;
}

.lang-nav .lang-link {
  display: inline-block;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-body), "Noto Sans Ethiopic", system-ui, sans-serif;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: opacity 0.15s, filter 0.15s, text-decoration 0.15s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.lang-nav .lang-link.lang-en {
  color: var(--lang-en);
}

.lang-nav .lang-link.lang-am {
  color: var(--lang-am);
}

.lang-nav .lang-link.lang-fr {
  color: var(--lang-fr);
}

.lang-nav .lang-link:hover {
  filter: brightness(1.12);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-nav .lang-link[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 3px;
  filter: brightness(1.15);
}

.site-header.site-header--scrolled {
  background: var(--wine-deep);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--cream);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(228, 197, 108, 0.18), 0 6px 18px rgba(0, 0, 0, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  opacity: 0.88;
  font-weight: 400;
}

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

.nav-desktop a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: rgba(198, 160, 74, 0.2);
  color: var(--gold-bright);
}

.nav-desktop a:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--cream);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.25rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-mobile a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.nav-mobile a[aria-current="page"] {
  color: var(--gold-bright);
}

@media (max-width: 820px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-tools {
    margin-left: auto;
  }

  .site-header.nav-open .nav-mobile {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 58vh, 540px);
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--wine-deep) center / cover no-repeat;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(26, 7, 8, 0.88) 0%,
    rgba(26, 7, 8, 0.62) 55%,
    rgba(26, 7, 8, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.8vw, 4rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.05;
  max-width: 24ch;
}

.hero-content h1 .hero-welcome {
  display: block;
  font-size: 0.48em;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.22em;
  opacity: 0.92;
}

.hero-content h1 .hero-church {
  display: block;
  font-size: 0.78em;
  line-height: 1.12;
}

.hero-am {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 42ch;
  opacity: 0.95;
  margin: 0 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: var(--wine-deep);
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--cream);
  margin-left: 0.5rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-wine {
  border: 1px solid var(--wine);
  color: var(--wine);
  background: transparent;
}

.btn-outline-wine:hover {
  background: var(--wine);
  color: var(--cream);
}

/* Sections */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) 1.25rem 4.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--wine);
  margin: 0 0 0.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.page-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.08rem;
  max-width: 60ch;
}

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

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--wine);
  margin: 0 0 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--wine);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.hours-section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hours-card {
  max-width: 26rem;
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.hours-list li:last-child {
  border-bottom: 0;
}

.hours-list strong {
  color: var(--wine);
}

.contact-section {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem clamp(3rem, 6vw, 4.5rem);
  scroll-margin-top: 5.75rem;
}

.contact-form {
  max-width: 40rem;
  position: relative;
}

.contact-form__sent,
.contact-form__error {
  max-width: 40rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.contact-form__sent {
  background: #eef6ee;
  border: 1px solid rgba(7, 137, 48, 0.25);
  color: var(--wine-deep);
}

.contact-form__error {
  background: #fdf2f2;
  border: 1px solid rgba(148, 27, 47, 0.28);
  color: var(--wine-deep);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form p {
  margin: 0 0 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.contact-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.contact-form__check input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.contact-form__check label {
  display: inline;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}

.contact-form__note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form button.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact-form__honey {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  opacity: 0;
}

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

.figure-side {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  align-self: start;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.figure-side img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 22rem;
  object-fit: contain;
  display: block;
}

.home-misbak {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 4.5vw, 3.25rem) 1.25rem 0;
}

.home-misbak[hidden] {
  display: none;
}

.home-misbak__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
}

.home-misbak__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
}

.home-misbak__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--wine);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.home-misbak__cal {
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  font-size: 0.95rem;
}

.home-misbak__cal:hover {
  color: var(--gold);
}

.home-misbak__meta {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-misbak__kind {
  margin: 0 0 0.45rem;
  font-weight: 600;
  color: var(--wine);
}

.home-misbak__reading + .home-misbak__reading {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--cream-dark);
}

body:has(.home-misbak:not([hidden])) main[data-sanity-page="home"] {
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Home: full icon, no crop, height kept with the About us card. */
[data-sanity-page="home"] .figure-side {
  align-self: start;
  justify-self: center;
}

[data-sanity-page="home"] .figure-side img {
  max-height: 25.5rem;
}

/* “Our story” / parish video — responsive 16∶9, capped for comfortable viewing */
.story-video {
  width: 100%;
  max-width: min(100%, 800px);
  margin: 1rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wine-deep);
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow);
}

.story-video-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--wine-deep);
}

.story-video-inner iframe,
.story-video-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-video-inner video {
  object-fit: cover;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.service-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  color: var(--wine);
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.links-row a {
  color: var(--wine);
  font-weight: 600;
}

main a:not(.btn) {
  color: var(--wine);
  font-weight: 600;
}

main a:not(.btn):hover {
  color: var(--wine-light);
}

/* Events */
.event-section {
  margin-bottom: 2.5rem;
}

.event-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--wine);
  margin: 0 0 1rem;
  font-weight: 600;
}

.event-section .event-cards {
  margin-bottom: 0;
}

.event-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.event-card time {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  min-width: 5rem;
  padding: 0.45rem 0.5rem;
  background: var(--wine);
  border-radius: 6px;
  color: var(--cream);
  align-self: start;
}

.event-card--recurring time.event-card__schedule {
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.35;
  min-width: 6.5rem;
  padding: 0.55rem 0.45rem;
}

.event-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--wine);
}

.event-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.event-card__where {
  margin-top: 0.25rem;
}

.event-card__when {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.event-card__notes {
  margin-top: 0.55rem;
}

.event-card__extra {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

.event-card__extra-label {
  font-weight: 600;
  color: var(--wine);
}

.event-card__cta {
  margin-top: 0.85rem;
}

.event-card a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-card__cta a {
  text-decoration: none;
}

.sanity-events-msg {
  margin: 0;
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.sanity-events-msg--error {
  color: var(--wine);
}

/* Tewahedo month calendar (events page) */
.tewahedo-calendar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-top: 2.5rem;
}

.tewahedo-calendar__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--wine);
  margin: 0 0 1rem;
  font-weight: 600;
}

.tewahedo-calendar__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.tewahedo-calendar__btn-group {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--wine);
}

.tewahedo-calendar__btn-group button {
  background: var(--wine);
  color: var(--cream);
  border: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.tewahedo-calendar__btn-group button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.tewahedo-calendar__btn-group button:hover {
  background: var(--wine-light);
}

.tewahedo-calendar__btn-today {
  background: var(--wine-light);
  color: var(--cream);
  border: 1px solid var(--wine);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.tewahedo-calendar__btn-today:hover {
  filter: brightness(1.08);
}

.tewahedo-calendar__month-label {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wine);
  margin: 0;
  min-width: 10rem;
}

.tewahedo-calendar__toggle .is-active {
  background: var(--gold);
  color: var(--wine-deep);
}

.tewahedo-calendar__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

.tewahedo-calendar__grid {
  min-width: 520px;
}

.tewahedo-calendar__dow,
.tewahedo-calendar__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tewahedo-calendar__dow {
  border-bottom: 2px solid var(--cream-dark);
  margin-bottom: 2px;
}

.tewahedo-calendar__dow-cell {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0.35rem 0.2rem;
}

.tewahedo-calendar__cell {
  min-height: 5.5rem;
  border: 1px solid #e0dcd4;
  padding: 0.25rem 0.3rem 0.35rem;
  vertical-align: top;
  background: var(--white);
}

.tewahedo-calendar__cell--muted {
  background: #fafafa;
}

.tewahedo-calendar__cell--muted .tewahedo-calendar__daynum {
  color: #b8b3ab;
}

.tewahedo-calendar__cell--today {
  background: #fff9e1;
}

.tewahedo-calendar__daynum {
  display: block;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.tewahedo-calendar[data-calendar="ethiopian"] .tewahedo-calendar__daynum,
.tewahedo-calendar[data-calendar="ethiopian"] .tewahedo-calendar__month-label {
  font-family: "Noto Sans Ethiopic", sans-serif;
}

.tewahedo-calendar__cell-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tewahedo-calendar__banner {
  background: var(--wine);
  color: var(--cream);
  font-size: 0.65rem;
  line-height: 1.25;
  font-weight: 600;
  padding: 0.2rem 0.35rem;
  border-radius: 3px;
  text-align: left;
}

.tewahedo-calendar__dots {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--text);
}

.tewahedo-calendar__dots li {
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0.1rem 0 0;
}

.tewahedo-calendar__dot {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-top: 0.28em;
  border-radius: 50%;
  background: var(--lang-fr);
}

.tewahedo-calendar__list-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tewahedo-calendar__list-ul > li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.tewahedo-calendar__list-ul > li:last-child {
  border-bottom: 0;
}

.tewahedo-calendar__list-banner {
  margin-top: 0.35rem;
  background: var(--wine);
  color: var(--cream);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.tewahedo-calendar__list-dotline {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.tewahedo-calendar__list-dotline .tewahedo-calendar__dot {
  margin-top: 0.35em;
}

.tewahedo-calendar__list-panel {
  padding: 0.25rem 0 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--wine-deep);
  color: rgba(247, 244, 238, 0.85);
  padding: 2.75rem 1.25rem 2.25rem;
  margin-top: auto;
  border-top: 1px solid rgba(198, 160, 74, 0.35);
}

.footer-fine {
  max-width: 1100px;
  margin: 2.25rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(198, 160, 74, 0.18);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(247, 244, 238, 0.55);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.4rem 0;
}

.footer-links a {
  color: rgba(247, 244, 238, 0.92);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--cream);
}

.site-footer p,
.site-footer li {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Prose */
.prose p {
  margin: 0 0 1rem;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .header-inner {
    gap: 0.75rem;
    padding: 0.6rem 1rem;
  }

  .brand {
    gap: 0.65rem;
    min-width: 0;
  }

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

  .brand-text strong {
    font-size: 1.12rem;
  }

  .brand-text span {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding: 2.5rem 1rem 3rem;
  }

  .hero-content h1 {
    max-width: none;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .btn + .btn,
  .btn-ghost {
    margin-left: 0;
    margin-top: 0.65rem;
  }

  main {
    padding-inline: 1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .figure-side img,
  [data-sanity-page="home"] .figure-side img {
    max-height: 20rem;
  }

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

  .links-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .event-card time {
    width: fit-content;
    min-width: 5.5rem;
  }

  .tewahedo-calendar__toolbar {
    align-items: stretch;
  }

  .tewahedo-calendar__month-label {
    order: -1;
    flex-basis: 100%;
    text-align: left;
  }

  .footer-inner {
    max-width: 34rem;
  }

  .footer-fine {
    max-width: none;
    text-align: center;
  }
}

/* Nav dropdown (Resources → Links / Albums) */
.nav-item--dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.85;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"],
.nav-item--dropdown.is-current .nav-dropdown-toggle {
  background: rgba(198, 160, 74, 0.2);
  color: var(--gold-bright);
}

.nav-dropdown-toggle:hover {
  transform: translateY(-1px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: 6px;
  background: var(--wine-deep);
  border: 1px solid rgba(228, 197, 108, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  z-index: 40;
}

.nav-dropdown[hidden] {
  display: none;
}

.nav-dropdown a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  background: rgba(198, 160, 74, 0.22);
  color: var(--gold-bright);
  transform: none;
}

.nav-mobile-group {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0 0.15rem;
}

.nav-mobile-group__label {
  display: block;
  padding: 0.45rem 0 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.55);
}

.nav-mobile-group a {
  border-top: none;
  padding-left: 0.65rem;
}

/* Photo albums */
.album-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.album-grid__item {
  margin: 0;
}

.album-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease;
}

.album-card:hover,
.album-card:focus-visible {
  border-color: var(--gold);
}

.album-card__cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8e0d4;
}

.album-card__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.album-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem 1.15rem;
  flex: 1;
}

.album-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--wine);
  line-height: 1.2;
}

.album-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-card__meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.album-detail__nav {
  margin: 0 0 0.75rem;
}

.album-detail__back {
  color: var(--wine);
  font-weight: 600;
  text-decoration: none;
}

.album-detail__back:hover,
.album-detail__back:focus-visible {
  color: var(--gold);
}

.album-detail__back::before {
  content: "← ";
}

.album-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--wine);
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.album-detail__desc {
  max-width: 65ch;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.album-detail__desc p {
  margin: 0 0 0.85rem;
}

.album-detail__desc p:last-child {
  margin-bottom: 0;
}

.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-grid__item {
  margin: 0;
}

.photo-grid__btn {
  appearance: none;
  width: 100%;
  border: 1px solid var(--border);
  padding: 0;
  margin: 0;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.photo-grid__btn:hover,
.photo-grid__btn:focus-visible {
  border-color: var(--gold);
}

.photo-grid__btn img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e0d4;
}

.photo-grid__caption {
  display: block;
  padding: 0.65rem 0.85rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 7, 8, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox__figure {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: 90vh;
}

.photo-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
}

.photo-lightbox__caption {
  margin-top: 0.75rem;
  color: var(--cream);
  text-align: center;
  font-size: 1rem;
}

.photo-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

body.photo-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

/* Events spotlight */
.spotlight {
  background: var(--wine);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 2.5rem;
}

.spotlight__badge {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.spotlight__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.spotlight__text {
  margin: 0;
  max-width: 62ch;
  color: rgba(247, 244, 238, 0.86);
}

.spotlight__cta {
  margin: 1.35rem 0 0;
}

.spotlight__notes,
.spotlight__extra {
  margin: 0.7rem 0 0;
  max-width: 62ch;
  color: rgba(247, 244, 238, 0.86);
}

.spotlight__extra-label {
  font-weight: 600;
  color: var(--gold-bright);
}

.spotlight a:not(.btn) {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.spotlight .btn-primary {
  background: var(--gold-bright);
  color: var(--wine);
  border-color: transparent;
}

.spotlight .btn-primary:hover {
  filter: brightness(1.05);
}

/* Weekly bulletins, and document lists on Resources */
.bulletin-list,
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.doc-section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.doc-section .section-title {
  margin-bottom: 1.25rem;
}

.bulletin,
.doc-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.bulletin__body,
.doc-item__body {
  min-width: 0;
}

.bulletin__title,
.doc-item__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine);
  margin: 0;
}

.bulletin__meta,
.doc-item__meta {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bulletin__link,
.doc-item__link {
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
  color: var(--wine);
}

/* Graduation page */
.page-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.grad-hero {
  margin: 0 0 clamp(2.25rem, 5vw, 3rem);
}

.grad-hero img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.grad-hero figcaption {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.grad-section {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.grad-section .section-title {
  margin-bottom: 1.25rem;
}

.grad-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grad-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.grad-card__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.grad-card__photo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  object-position: top center;
  background: var(--cream-dark);
}

.grad-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wine);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.grad-card__school {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.grad-card__school img {
  flex: 0 0 auto;
  object-fit: contain;
}

.grad-card__meta {
  margin: 0;
  font-size: 0.92rem;
}

.grad-card__meta dt {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.grad-card__meta dd {
  margin: 0.1rem 0 0.7rem;
  color: var(--text);
}

.grad-card__meta dd:last-child {
  margin-bottom: 0;
}

/* Graduation address */
.address-intro {
  border-left: 3px solid var(--gold);
  padding: 0.1rem 0 0.1rem 1.25rem;
  margin: 0 0 1.75rem;
}

.address-intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--wine);
  margin: 0 0 0.6rem;
}

.address-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  max-width: 60ch;
}

.address-intro__meta {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.address-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.address-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 0.85rem;
  margin-bottom: -1px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.address-tab:hover {
  color: var(--wine);
}

.address-tab.is-active {
  color: var(--wine);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.address-panel {
  max-width: 72ch;
}

.address-panel p {
  margin: 0 0 1.1rem;
  line-height: 1.75;
}

.address-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--wine);
  margin: 2rem 0 0.85rem;
}

.address-note {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.9rem !important;
}

.grad-back {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .grad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .bulletin,
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Misbak readings on the calendar */
.tewahedo-calendar__reading {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(198, 160, 74, 0.7);
  background: #fdf6e3;
  color: var(--wine);
  font-family: inherit;
  font-size: 0.6rem;
  line-height: 1.2;
  font-weight: 600;
  padding: 0.2rem 0.3rem;
  border-radius: 3px;
  cursor: pointer;
}

.tewahedo-calendar__reading:hover,
.tewahedo-calendar__reading:focus-visible {
  background: var(--gold);
  color: var(--wine-deep);
}

.misbak {
  margin-top: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fdf9f1;
}

.misbak__summary {
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wine);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}

.misbak__cite {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.misbak__body,
.misbak-dialog__body {
  padding: 0 0.65rem 0.65rem;
}

.misbak__geez,
.misbak__am,
.misbak__en,
.misbak__fr {
  margin: 0 0 0.6rem;
  line-height: 1.85;
}

.misbak__geez {
  color: var(--wine);
}

.misbak__ref {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.misbak__body p:last-child,
.misbak-dialog__body p:last-child {
  margin-bottom: 0;
}

.misbak-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 7, 8, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.misbak-dialog[hidden] {
  display: none;
}

.misbak-dialog__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  max-width: 34rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.misbak-dialog__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.misbak-dialog__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--wine);
  margin: 0 0 1rem;
}

.misbak-dialog__body {
  padding: 0;
}

.misbak-dialog__close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 700px) {
  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 14rem;
  }

  .page-title,
  .page-sub,
  .spotlight__title,
  .spotlight__text {
    overflow-wrap: anywhere;
  }

  .spotlight,
  .bulletin,
  .doc-item,
  .event-card,
  .card {
    min-width: 0;
  }

  .bulletin,
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .address-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .address-tab {
    flex: 0 0 auto;
  }

  .tewahedo-calendar {
    padding: 0.9rem 0.7rem 1.1rem;
    overflow: hidden;
  }

  .tewahedo-calendar__toolbar {
    gap: 0.5rem;
  }

  .tewahedo-calendar__month-label {
    min-width: 0;
    font-size: 1.15rem;
  }

  .tewahedo-calendar__grid {
    min-width: 0;
  }

  .tewahedo-calendar__cell {
    min-height: 2.7rem;
    padding: 0.12rem 0.08rem 0.2rem;
  }

  .tewahedo-calendar__daynum {
    text-align: center;
    font-size: 0.72rem;
    margin-bottom: 0;
  }

  .tewahedo-calendar__dow-cell {
    font-size: 0.62rem;
    padding: 0.2rem 0;
  }

  .tewahedo-calendar__cell-body > * {
    display: none;
  }

  .tewahedo-calendar__cell-body:has(*)::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    margin: 0.2rem auto 0;
    border-radius: 50%;
    background: var(--gold);
  }

  .misbak-dialog__panel {
    padding: 1.25rem 1rem 1rem;
  }
}
