/* ============================================================
   CANTUS — Design System
   Palette: Navy #1B2B4B | Gold #C9A84C | Ivory #FAF7F2 | Cream #F2EDE4
   Typography: Inter (body, UI) | Playfair Display (display, headings)
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --navy:      #1B2B4B;
  --navy-dark: #111d33;
  --navy-mid:  #243659;
  --gold:      #C9A84C;
  --gold-lt:   #dfc07a;
  --ivory:     #FAF7F2;
  --cream:     #F2EDE4;
  --cream-dk:  #e8e0d3;
  --sand:      #D9CFC2;
  --text:      #2c2c2c;
  --text-muted:#6b6b6b;
  --white:     #ffffff;

  /* Font families */
  --font-sans:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Font size scale (standardized) */
  --text-xs:   0.75rem;   /* 12px — labels, badges, captions */
  --text-sm:   0.875rem;  /* 14px — nav, buttons, small body */
  --text-base: 1rem;      /* 16px — body default */
  --text-md:   0.9375rem; /* 15px — form inputs, secondary text */
  --text-lg:   1.125rem;  /* 18px — subtitles, card titles */
  --text-xl:   1.25rem;   /* 20px — section subtitles */
  --text-2xl:  1.5rem;    /* 24px — page titles */
  --text-3xl:  1.75rem;   /* 28px — large headings */
  --text-4xl:  2rem;      /* 32px — stats, hero elements */
  --text-display: clamp(2.25rem, 5vw, 3.5rem);  /* Hero title */
  --text-display-sm: clamp(1.75rem, 3vw, 2.5rem); /* Section title */

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(27,43,75,.08);
  --shadow:    0 4px 20px rgba(27,43,75,.12);
  --shadow-lg: 0 12px 48px rgba(27,43,75,.18);

  --transition: 200ms ease;

  /* Single-line form controls (TextBox, DropDown, native select) share this height */
  --cantus-field-height: 2.75rem; /* 44px */
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  line-height: 1.2;
  color: var(--navy);
}

/* ── Layout ──────────────────────────────────────────────── */
.layout-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 80px;
}

.section--sm {
  padding-block: 48px;
}

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  --nav-utility-height: 52px;
  --nav-links-row-height: 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "logo utility"
    "logo links";
  column-gap: 32px;
  row-gap: 2px;
  align-items: center;
  padding-block: 8px 10px;
}

/* Desktop: logo spans both rows; margin puts its baseline on the nav links' baseline */
.nav-logo {
  grid-area: logo;
  align-self: end;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  flex-shrink: 0;
  line-height: 1;
  padding-left: 14px;
}

.nav-logo span {
  color: var(--gold);
}

.nav-utility {
  grid-area: utility;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-utility-height);
  min-width: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  flex: 1;
  min-height: var(--nav-links-row-height);
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}

.nav-auth-drawer {
  display: none;
}

.nav-auth-account {
  white-space: nowrap;
  color: rgba(255, 255, 255, .85) !important;
  background: transparent !important;
  border-color: transparent !important;
}
.nav-auth-account:hover,
.nav-auth-account:focus,
.nav-auth-account:focus-visible,
.nav-auth-account.active {
  color: var(--white) !important;
  background: rgba(255, 255, 255, .12) !important;
}

/* Admin dropdown in nav — match outline-white style */
.nav-auth .admin-dropdown-wrapper {
  position: relative;
  flex-shrink: 0;
}
.nav-auth .admin-dropdown-toggle {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.6);
}
.nav-auth .admin-dropdown-toggle:hover,
.nav-auth .admin-dropdown-toggle[aria-expanded="true"] {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
}
.nav-auth .admin-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--navy-mid, #243659);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 300;
}
.nav-auth .admin-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.85);
  font-size: var(--text-sm);
  text-decoration: none;
}
.nav-auth .admin-dropdown-menu a:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* Mobile menu toggle + drawer (desktop: drawer is inline links row) */
.nav-menu-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: var(--white);
}

.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.nav-menu-toggle-bars::before,
.nav-menu-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.nav-menu-toggle-bars::before { top: -7px; }
.nav-menu-toggle-bars::after { top: 7px; }

.nav-backdrop {
  display: none;
}

.nav-drawer {
  grid-area: links;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  gap: 0;
}

html.nav-scroll-lock,
html.nav-scroll-lock body {
  overflow: hidden;
}

@media (max-width: 960px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo utility";
    column-gap: 12px;
    row-gap: 0;
    padding-block: 6px;
    min-height: var(--nav-utility-height);
  }

  .nav-logo {
    align-self: center;
    padding-left: 0;
    margin-bottom: 0;
    font-size: calc(var(--text-2xl) + 5pt);
    line-height: 1.1;
  }

  .nav-utility {
    gap: 12px;
    min-height: 0;
  }

  .nav-auth-utility {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .nav-auth-utility .admin-dropdown-wrapper,
  .nav-auth-utility .nav-auth-logout-form {
    display: none;
  }

  .nav-auth-utility .nav-auth-account {
    max-width: min(48vw, 220px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    padding-inline: 8px;
  }

  .nav-auth-drawer {
    display: flex;
  }

  .nav-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--nav-utility-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-drawer {
    position: fixed;
    top: var(--nav-utility-height);
    right: 0;
    bottom: 0;
    left: auto;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, calc(100vw - 48px));
    max-width: 100%;
    padding: 16px 20px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--navy-mid);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    z-index: 260;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    gap: 20px;
  }

  .nav-drawer.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 0;
  }

  .nav-links a {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
  }

  .nav-auth {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-auth-account {
    justify-content: flex-start !important;
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  .nav-auth-logout-form {
    width: 100%;
  }

  .nav-auth-logout {
    width: 100%;
  }

  .nav-auth .admin-dropdown-wrapper {
    width: 100%;
  }

  .nav-auth .admin-dropdown-toggle {
    width: 100%;
    justify-content: center;
  }

  .nav-auth .admin-dropdown-menu {
    position: static;
    right: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}


/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,168,76,.35);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover:not(:disabled) {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover:not(:disabled) {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover:not(:disabled) {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding-inline: 12px;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--cream);
  color: var(--navy);
}

.btn-sm {
  padding: 6px 14px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: var(--text-base);
}

/* ── Home splash ─────────────────────────────────────────── */
.splash {
  position: relative;
  min-height: calc(100dvh - 64px);
  display: grid;
  place-items: center;
  padding: 64px 24px;
  background: radial-gradient(125% 120% at 50% 0%, #2a4270 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.splash-standalone {
  min-height: calc(100dvh - var(--nav-utility-height, 64px) - var(--nav-links-row-height, 48px));
}

.splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, 92vw);
  aspect-ratio: 1;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(201,168,76,.20) 0%, rgba(201,168,76,.06) 40%, transparent 70%);
  pointer-events: none;
  animation: splash-breathe 7s ease-in-out infinite;
}

.splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.splash-wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
  animation: splash-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-wordmark span { color: var(--gold); }

.splash-tagline {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 168, 76, 0.95);
  animation: splash-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.splash-ornament {
  position: relative;
  width: clamp(140px, 24vw, 220px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,.55), transparent);
  animation: splash-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.splash-ornament::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.splash-lead {
  max-width: 30ch;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .8);
  text-wrap: balance;
  animation: splash-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

@keyframes splash-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes splash-breathe {
  0%, 100% { opacity: .75; transform: translate(-50%, -55%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -55%) scale(1.06); }
}

.splash-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 46px;
  overflow: hidden;
  opacity: .8;
}

.splash-scroll-line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: splash-scroll-cue 2.4s ease-in-out infinite;
}

@keyframes splash-scroll-cue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-wordmark,
  .splash-tagline,
  .splash-ornament,
  .splash-lead { animation: none; opacity: 1; transform: none; }
  .splash-glow { animation: none; }
  .splash-scroll-line { animation: none; }
}

/* ── Home events ─────────────────────────────────────────── */
.events {
  padding-block: clamp(56px, 9vw, 96px);
  background: var(--ivory);
}

.events-inner {
  max-width: 720px;
}

.events-title {
  font-family: var(--font-serif);
  font-size: var(--text-display-sm);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  text-wrap: balance;
  margin-bottom: 40px;
}

.events-note {
  text-align: center;
  color: var(--text-muted);
}

.events-list {
  list-style: none;
}

.event-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  padding-block: 24px;
  border-top: 1px solid var(--cream-dk);
}

.event-row:last-child {
  border-bottom: 1px solid var(--cream-dk);
}

.event-date {
  text-align: center;
  line-height: 1;
  padding-top: 2px;
}

.event-date-day {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--navy);
}

.event-date-month {
  display: block;
  margin-top: 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.event-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.event-meta {
  margin-top: 5px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.event-desc {
  margin-top: 10px;
  font-size: var(--text-md);
  color: var(--text);
  line-height: 1.6;
  max-width: 60ch;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-display-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-lead {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.65);
  padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand span { color: var(--gold); }

.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  font-size: var(--text-sm);
  text-align: center;
  color: rgba(255,255,255,.35);
  padding-block: 28px;
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.auth-logo span { color: var(--gold); }

.auth-subtitle {
  text-align: center;
  font-size: var(--text-md);
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 20px;
  color: var(--sand);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-dk);
}

.auth-footer-text {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 20px;
}

.auth-footer-text a {
  color: var(--navy);
  font-weight: 600;
}

.auth-footer-text a:hover { color: var(--gold); }

/* ── Form Fields ─────────────────────────────────────────── */
.form-field {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--cream-dk);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

/* Single-line inputs match dropdown height project-wide */
.form-input:not(textarea) {
  height: var(--cantus-field-height);
  min-height: var(--cantus-field-height);
  padding-top: 0;
  padding-bottom: 0;
  line-height: calc(var(--cantus-field-height) - 3px);
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,43,75,.1);
}

.form-input::placeholder { color: var(--sand); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
  height: var(--cantus-field-height);
  min-height: var(--cantus-field-height);
  box-sizing: border-box;
}

/* ============================================================
   Syncfusion TextBox / DropDownList / ComboBox height lock
   Keeps single-line controls the same height as each other and
   as native selects / .form-input (side-by-side rows stay aligned).
   ============================================================ */
.e-control-wrapper.e-input-group:not(.e-multi-line-input),
.e-input-group.e-control-wrapper:not(.e-multi-line-input),
.e-float-input.e-control-wrapper:not(.e-multi-line-input),
.e-ddl.e-input-group,
.e-ddl.e-control-wrapper {
  height: var(--cantus-field-height) !important;
  min-height: var(--cantus-field-height) !important;
  box-sizing: border-box !important;
}

.e-control-wrapper.e-input-group:not(.e-multi-line-input) input.e-input,
.e-input-group:not(.e-multi-line-input) input.e-input,
.e-float-input:not(.e-multi-line-input) input.e-input,
.e-ddl.e-input-group input.e-input,
.e-ddl input.e-input {
  height: 100% !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: calc(var(--cantus-field-height) - 2px) !important;
  box-sizing: border-box !important;
}

.e-input-group:not(.e-multi-line-input) .e-input-group-icon,
.e-input-group:not(.e-multi-line-input) .e-ddl-icon,
.e-input-group:not(.e-multi-line-input) .e-clear-icon,
.e-ddl .e-input-group-icon,
.e-ddl .e-ddl-icon,
.e-ddl .e-clear-icon {
  min-height: calc(var(--cantus-field-height) - 2px) !important;
  height: 100% !important;
  line-height: calc(var(--cantus-field-height) - 2px) !important;
  margin: 0 !important;
}

/* Native <select> used as full-width form fields next to TextBox */
select.w-full:not([multiple]):not([size]),
select.rounded-lg.border:not([multiple]):not([size]) {
  height: var(--cantus-field-height);
  min-height: var(--cantus-field-height);
  padding-top: 0;
  padding-bottom: 0;
  line-height: calc(var(--cantus-field-height) - 3px);
  box-sizing: border-box;
}

.form-input-error { border-color: #dc3545; }
.form-error-msg {
  font-size: var(--text-sm);
  color: #dc3545;
  margin-top: 4px;
}

/* ── Badges / Tags ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-gold { background: rgba(201,168,76,.15); color: #8a6a1c; }
.badge-navy { background: rgba(27,43,75,.1); color: var(--navy); }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: var(--cream); color: var(--text-muted); }

/* Horizontal scroll for wide Syncfusion grids on small viewports */
.cantus-grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.cantus-admin-search-box {
  width: 100%;
  max-width: 280px;
}

@media (max-width: 640px) {
  .cantus-admin-search-box {
    max-width: none;
  }
}

.cantus-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Toolbar actions: grow with label text; keep icon from shrinking (fixed width was hiding/crowding long labels). */
.cantus-toolbar-row .equal-width-btn {
  min-width: 130px;
  width: auto;
  max-width: none;
  white-space: nowrap;
}

.cantus-toolbar-row .equal-width-btn .e-btn-icon {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cantus-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cantus-toolbar-row .e-btn,
  .cantus-toolbar-row .equal-width-btn {
    width: 100% !important;
    max-width: none;
  }
}

/* ── equal-width-btn (Syncfusion action buttons) ─────────── */
.equal-width-btn {
  width: 130px;
  justify-content: center;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 200ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e5e7eb;
  color: #1f2937;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}
.equal-width-btn:hover { background: #d1d5db; }

/* ── Page headers (member/manage areas) ──────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  color: var(--navy);
}

/* ── Cards (generic) ─────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-dk);
  overflow: hidden;
}

.card-body { padding: 24px; }
.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--cream-dk);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Alerts / Messages ───────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert-success { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.alert-error   { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.alert-info    { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
.alert-warning { background: #fef3c7; border-color: #fcd34d; color: #92400e; }

/* ── Ornamental divider ──────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: 24px;
  color: var(--gold);
  font-size: var(--text-md);
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding-block: 56px; }
}

@media (max-width: 640px) {
  .section { padding-block: 52px; }
  .container { padding-inline: 16px; }
  .auth-card { padding: 28px 20px; }
}

/* ── Blazor-specific ─────────────────────────────────────── */
.blazor-error-boundary {
  background: #b32121;
  color: white;
  padding: 1rem 1rem 1rem 3.7rem;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjYyNTIgMjU5Ljk2MSA1Mi43OTg1IDI2MC40MDcgNTIuMjY1OEMyNjEuMiA1MS40ODM3IDI2Mi4yOTYgNTEgMjYzLjUwNiA1MVpNMjYzLjU4NiA2Ni4wMTgzQzI2MC43MzcgNjYuMDE4MyAyNTkuMzEzIDY3LjEyNDUgMjU5LjMxMyA2OS4zMzcgMjU5LjMxMyA2OS42MTAyIDI1OS4zMzIgNjkuODYwOCAyNTkuMzcxIDcwLjA4ODdMMjYxLjc5NSA4NC4wMTYxIDI2NS4zOCA4NC4wMTYxIDI2Ny44MjEgNjkuNzQ3NUMyNjcuODYgNjkuNzMwOSAyNjcuODc5IDY5LjU4NzcgMjY3Ljg3OSA2OS4zMTc5IDI2Ny44NzkgNjcuMTE4MiAyNjYuNDQ4IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzWk0yNjMuNTc2IDg2LjA1NDdDMjYxLjA0OSA4Ni4wNTQ3IDI1OS43ODYgODcuMzAwNSAyNTkuNzg2IDg5Ljc5MjEgMjU5Ljc4NiA5Mi4yODM3IDI2MS4wNDkgOTMuNTI5NSAyNjMuNTc2IDkzLjUyOTUgMjY2LjExNiA5My41Mjk1IDI2Ny4zODcgOTIuMjgzNyAyNjcuMzg3IDg5Ljc5MjEgMjY3LjM4NyA4Ny4zMDA1IDI2Ni4xMTYgODYuMDU0NyAyNjMuNTc2IDg2LjA1NDdaIiBmaWxsPSIjRkZFNTAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PC9zdmc+");
  background-repeat: no-repeat;
  background-position: 1rem center;
  background-size: 1.8rem;
}

.blazor-error-boundary::after { content: "An error has occurred." }

/* Validation */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: var(--text-sm); margin-top: 4px; }

h1:focus { outline: none; }

/* ── Member concerts buttons — black text ─ */
.max-w-5xl .e-btn.btn-black-text,
.max-w-5xl .e-btn.btn-black-text * {
  color: #000 !important;
}

/* Syncfusion date/time picker popups (when used outside dialogs).
   Prefer native <input type="date|time"> inside SfDialog — see docs §11.6. */
.e-datepicker.e-popup-wrapper,
.e-datetimepicker.e-popup-wrapper,
.e-timepicker.e-popup-wrapper,
.e-datepicker.e-popup-wrapper.e-popup-open,
.e-datetimepicker.e-popup-wrapper.e-popup-open,
.e-timepicker.e-popup-wrapper.e-popup-open,
.e-datepick-mob-popup-wrap,
.e-datetime-mob-popup-wrap,
.e-timepicker-mob-popup-wrap {
  z-index: 100000 !important;
  background-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Dialogs with date pickers: don't clip the calendar popup */
.e-dialog.concert-edit-dialog,
.e-dialog.concert-edit-dialog .e-dlg-content,
.e-dialog.board-rte-dialog,
.e-dialog.board-rte-dialog .e-dlg-content {
  overflow: visible !important;
}

/* Concert/calendar edit: date needs room for dd.MM.yyyy; time is narrower */
.concert-datetime-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 22rem;
}
.concert-date-field {
  flex: 1 1 11.5rem;
  min-width: 11.5rem;
}
.concert-date-with-picker {
  position: relative;
}
.concert-date-with-picker .form-input {
  padding-right: 2.5rem;
}
/* Calendar button — same role as the clock icon on type=time */
.concert-date-cal-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.concert-date-cal-btn:hover { color: var(--navy, #1b2b4b); }
/* Native date input kept in layout so showPicker() works; not for clicking */
.concert-date-native-sr {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  pointer-events: none;
}
.concert-time-field {
  flex: 0 0 8rem;
  width: 8rem;
}

/* Tailwind preflight / stacking can leave calendar chrome without readable content */
.e-datepicker.e-popup-wrapper .e-calendar,
.e-datetimepicker.e-popup-wrapper .e-calendar,
.e-timepicker.e-popup-wrapper {
  background-color: #fff !important;
  color: #374151 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.e-datepicker.e-popup-wrapper .e-calendar .e-header,
.e-datepicker.e-popup-wrapper .e-calendar .e-title,
.e-datepicker.e-popup-wrapper .e-calendar th,
.e-datepicker.e-popup-wrapper .e-calendar .e-content span.e-day,
.e-datepicker.e-popup-wrapper .e-calendar .e-footer-container,
.e-datepicker.e-popup-wrapper .e-calendar .e-btn,
.e-datetimepicker.e-popup-wrapper .e-calendar .e-header,
.e-datetimepicker.e-popup-wrapper .e-calendar .e-title,
.e-datetimepicker.e-popup-wrapper .e-calendar th,
.e-datetimepicker.e-popup-wrapper .e-calendar .e-content span.e-day,
.e-timepicker.e-popup-wrapper .e-list-item {
  color: #374151 !important;
  font-size: 14px !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.e-datepicker.e-popup-wrapper .e-calendar .e-icons,
.e-datetimepicker.e-popup-wrapper .e-calendar .e-icons {
  color: #6b7280 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Syncfusion dialogs — fit narrow viewports (width is often inline from component) */
@media (max-width: 900px) {
  .e-dlg-container .e-dialog {
    max-width: calc(100vw - 24px) !important;
  }
}

@media (max-width: 640px) {
  .e-dlg-container .e-dialog {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin: 10px !important;
  }

  .e-dialog .e-dlg-content {
    max-height: min(75dvh, calc(100dvh - 120px)) !important;
    overflow-y: auto !important;
  }
}

/* ── Upload dialog — override Syncfusion 500px max-height cap ─ */
.e-dialog.upload-dialog {
  max-height: 95vh !important;
  height: auto !important;
}
.e-dialog.upload-dialog .e-dlg-content {
  max-height: none !important;
  overflow: visible !important;
}

/* Manage calendar: allow horizontal scroll + shorter month cells on phones */
.cantus-schedule-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Calendar Event Schedule — show description in cells ─ */
/* Month view: room for title + location + time (3 lines) + cell padding */
.calendar-event-schedule .e-schedule .e-month-view .e-work-cells {
  min-height: 200px !important;
  height: auto !important;
  vertical-align: top !important;
  padding-bottom: 8px !important;
  box-sizing: border-box !important;
}
.calendar-event-schedule .e-schedule .e-month-view .e-work-cells:has(.e-appointment) {
  background-color: #dbeafe !important;
}
.calendar-event-schedule .e-schedule .e-month-view .e-appointment,
.calendar-event-schedule .e-schedule .e-month-view .e-appointment.cantus-cal-appt,
.calendar-event-schedule .e-schedule .e-month-view .e-appointment-wrap {
  overflow: visible !important;
  height: auto !important;
  min-height: 72px !important;
  max-height: none !important;
  margin-bottom: 6px !important;
  box-sizing: border-box !important;
}
.calendar-event-schedule .e-schedule .e-month-view .e-appointment .e-appointment-details,
.calendar-event-schedule .e-schedule .e-month-view .e-appointment .e-inner-wrap,
.calendar-event-schedule .e-schedule .e-month-view .e-appointment .cantus-cal-event {
  overflow: visible !important;
  white-space: normal !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
}
.calendar-event-schedule .e-schedule .e-month-view .e-content-wrap,
.calendar-event-schedule .e-schedule .e-month-view .e-content-table,
.calendar-event-schedule .e-schedule .e-month-view .e-content-table tbody tr,
.calendar-event-schedule .e-schedule .e-month-view .e-date-header-wrap table tbody td {
  height: auto !important;
}

/* Vertical / agenda appointment sizing (unchanged intent) */
.calendar-event-schedule .e-schedule .e-vertical-view .e-day-wrapper .e-appointment,
.calendar-event-schedule .e-schedule .e-vertical-view .e-all-day-appointment-wrapper .e-appointment {
  overflow: visible !important;
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
}
.calendar-event-schedule .e-schedule .e-appointment .e-appointment-details,
.calendar-event-schedule .e-schedule .e-appointment-details,
.calendar-event-schedule .e-schedule .e-appointment .e-inner-wrap {
  overflow: visible !important;
  white-space: normal !important;
  display: block !important;
  height: auto !important;
}
.calendar-event-schedule .e-schedule .e-appointment .e-subject,
.calendar-event-schedule .e-schedule .e-appointment-details .e-subject {
  white-space: normal !important;
  overflow: visible !important;
}

/* Event cell: title / location / time — black text for readability */
.cantus-cal-event {
  color: #000 !important;
  line-height: 1.25;
  padding: 1px 0;
}
.cantus-cal-event-title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #000 !important;
}
.cantus-cal-event-line {
  font-size: 0.75rem;
  color: #000 !important;
  margin-top: 1px;
}
/* Tooltip: Syncfusion popup is dark — keep light text (do not inherit black event text) */
.cantus-cal-tooltip,
.cantus-cal-tooltip * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.e-tooltip-wrap:has(.cantus-cal-tooltip),
.e-schedule-event-tooltip.e-tooltip-wrap,
.e-popup.e-schedule-event-tooltip {
  background: #1e293b !important;
  background-color: #1e293b !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
  max-width: min(280px, calc(100vw - 24px)) !important;
  opacity: 1 !important;
}
.e-tooltip-wrap:has(.cantus-cal-tooltip) .e-tip-content,
.e-schedule-event-tooltip .e-tip-content {
  background: transparent !important;
  color: #fff !important;
}
.e-tooltip-wrap:has(.cantus-cal-tooltip) .e-arrow-tip-inner,
.e-schedule-event-tooltip .e-arrow-tip-inner {
  border-color: #1e293b !important;
}
.e-tooltip-wrap:has(.cantus-cal-tooltip) .e-arrow-tip-outer,
.e-schedule-event-tooltip .e-arrow-tip-outer {
  border-color: #0f172a !important;
}

/* High-contrast schedule chrome (no light-gray labels) */
.calendar-event-schedule .e-schedule,
.calendar-event-schedule .e-schedule .e-header-cells,
.calendar-event-schedule .e-schedule .e-work-cells,
.calendar-event-schedule .e-schedule .e-time-cells,
.calendar-event-schedule .e-schedule .e-date-header,
.calendar-event-schedule .e-schedule .e-header-day,
.calendar-event-schedule .e-schedule .e-header-date,
.calendar-event-schedule .e-schedule .e-time-slots,
.calendar-event-schedule .e-schedule .e-work-hours,
.calendar-event-schedule .e-schedule .e-resource-left-td,
.calendar-event-schedule .e-schedule .e-agenda-view,
.calendar-event-schedule .e-schedule .e-agenda-item,
.calendar-event-schedule .e-schedule .e-date-header-wrap,
.calendar-event-schedule .e-schedule .e-other-month,
.calendar-event-schedule .e-schedule .e-other-month .e-date-header,
.calendar-event-schedule .e-schedule .e-toolbar-item .e-tbar-btn,
.calendar-event-schedule .e-schedule .e-toolbar-item .e-tbar-btn-text,
.calendar-event-schedule .e-schedule .e-tbar-btn .e-icons,
.calendar-event-schedule .e-schedule .e-date-range,
.calendar-event-schedule .e-schedule .e-schedule-toolbar .e-toolbar .e-toolbar-item .e-tbar-btn {
  color: #000 !important;
}

.calendar-event-schedule .e-schedule .e-appointment,
.calendar-event-schedule .e-schedule .e-appointment.cantus-cal-appt,
.calendar-event-schedule .e-schedule .e-vertical-view .e-appointment,
.calendar-event-schedule .e-schedule .e-month-view .e-appointment,
.calendar-event-schedule .e-schedule .e-agenda-view .e-appointment {
  background: #fff8dc !important;
  background-color: #fff8dc !important;
  background-image: none !important;
  border: 1px solid #1a1a1a !important;
  color: #000 !important;
  box-shadow: none !important;
}
.calendar-event-schedule .e-schedule .e-appointment,
.calendar-event-schedule .e-schedule .e-appointment *,
.calendar-event-schedule .e-schedule .e-appointment.cantus-cal-appt,
.calendar-event-schedule .e-schedule .e-appointment.cantus-cal-appt * {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

@media (max-width: 640px) {
  /* Month grid: keep columns readable via horizontal scroll */
  .cantus-schedule-wrap {
    margin-inline: -0.25rem;
  }
  .calendar-event-schedule .e-schedule:has(.e-month-view) {
    min-width: 560px;
  }

  .calendar-event-schedule .e-schedule .e-month-view .e-header-cells,
  .calendar-event-schedule .e-schedule .e-month-view .e-header-day {
    font-size: 0.65rem !important;
    letter-spacing: -0.02em;
    padding-inline: 2px !important;
  }

  .calendar-event-schedule .e-schedule .e-month-view .e-work-cells {
    min-height: 96px !important;
  }

  /* Mobile month: title only — full details in tooltip */
  .calendar-event-schedule .e-schedule .e-month-view .cantus-cal-event-line {
    display: none !important;
  }
  .calendar-event-schedule .e-schedule .e-month-view .cantus-cal-event-title {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .calendar-event-schedule .e-schedule .e-month-view .e-appointment,
  .calendar-event-schedule .e-schedule .e-month-view .e-appointment.cantus-cal-appt,
  .calendar-event-schedule .e-schedule .e-month-view .e-appointment-wrap {
    min-height: 28px !important;
    height: auto !important;
    margin-bottom: 3px !important;
    padding: 2px 3px !important;
  }

  .calendar-event-schedule .e-schedule-toolbar-container .e-toolbar-items,
  .calendar-event-schedule .e-schedule-toolbar .e-toolbar-items {
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: auto !important;
  }
}

/* ── Contact messages admin grid — unread rows ─ */
.e-grid .e-row.contact-msg-unread .e-rowcell {
  font-weight: 600;
}

/* ── Contact message view dialog — long body ─ */
.contact-message-dialog-body {
  max-height: 65vh;
  overflow-y: auto;
}

/* ── Admin log detail dialog ─ */
.admin-log-detail {
  max-height: 70vh;
  overflow-y: auto;
}

/* ── Syncfusion file upload — Icelandic browse + drop hint (.cantus-uploader-is on SfUploader) ─ */
.cantus-uploader-is .e-file-drop {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  min-height: 1.25rem;
}
.cantus-uploader-is .e-file-drop::before {
  content: "Draga skrár hingað";
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Stjórnarfundargerðir (sanitized HTML) */
.board-minute-html p { margin: 0.5em 0; }
.board-minute-html ul, .board-minute-html ol { margin: 0.5em 0; padding-left: 1.5em; }
.board-minute-html h1, .board-minute-html h2, .board-minute-html h3 { margin: 0.75em 0 0.35em; }
.board-minute-html table { border-collapse: collapse; width: 100%; margin: 0.75em 0; }
.board-minute-html th, .board-minute-html td { border: 1px solid #e5e7eb; padding: 0.35em 0.5em; }

/* Admin logs — in-page loading overlay (avoids Syncfusion body-portal nav bugs) */
.admin-logs-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0.5rem;
}
.admin-logs-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.admin-logs-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top-color: var(--navy, #1e3a5f);
  border-radius: 50%;
  animation: admin-logs-spin 0.75s linear infinite;
}
@keyframes admin-logs-spin {
  to { transform: rotate(360deg); }
}
#admin-logs-root .admin-logs-detail-dialog.e-dialog {
  position: absolute;
}

/* Admin notification config alert (missing recipients / fallback) */
.admin-notify-config-alert {
  background: #fff8e6;
  border-bottom: 1px solid #f0d78c;
  color: #5c4a12;
  font-size: 0.875rem;
}
.admin-notify-config-alert-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}
.admin-notify-config-alert-text a {
  margin-left: 0.35rem;
  text-decoration: underline;
  font-weight: 600;
  color: inherit;
}
.admin-notify-config-alert-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 6px;
  color: inherit;
  opacity: 0.75;
}
.admin-notify-config-alert-close:hover { opacity: 1; }

/* Choir schedule event cards (manage + member) */
.choir-schedule-item {
  background: var(--cream);
  border: 1px solid var(--cream-dk);
  border-radius: 0.4rem;
  padding: 0.9rem 1.1rem;
  color: #111;
  box-shadow: 0 4px 14px rgba(27, 43, 75, 0.08), 0 1px 2px rgba(27, 43, 75, 0.04);
}
.choir-schedule-item.is-cancelled {
  opacity: 0.72;
  background: var(--cream-dk);
}

/* Email field with live validity indicator */
.cantus-email-field {
  position: relative;
}
.cantus-email-field .e-input-group,
.cantus-email-field .e-control-wrapper {
  width: 100%;
}
.cantus-email-indicator {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 2;
}
.cantus-email-indicator.is-valid {
  color: #166534;
  background: #dcfce7;
}
.cantus-email-indicator.is-invalid {
  color: #991b1b;
  background: #fee2e2;
}
.cantus-email-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #b91c1c;
}
.cantus-email-field-native {
  position: relative;
}
.cantus-email-field-native input {
  padding-right: 2.25rem;
}


