/* Church Family Connect — gospel-oriented design system.
   Palette: deep maroon + gold + warm cream, echoing stained glass and
   liturgical vestments without leaning on any one denomination's marks. */

:root {
  --maroon: #7a1f2b;
  --maroon-dark: #5c1620;
  --gold: #c9a227;
  --gold-light: #e6c866;
  --cream: #fbf5ea;
  --cream-deep: #f3e9d6;
  --ink: #2b2320;
  --ink-soft: #6b5f56;
  --green: #1f4e45;
  --red: #a0332a;
  --blue: #2a4a6b;
  --line: #e6dcc8;
  --shadow: 0 10px 30px rgba(90, 60, 20, 0.12);
  --radius: 16px;
  /* "Refined Classic" typography (Sept 2026 visual redesign, Direction A
     of 3 mockups shown to and picked by the user) — a serif display face
     for headings and dashboard numbers, paired with a clean sans body
     face everywhere else. Deliberately its own axis from the color
     tokens above: every seasonal theme (see app.js's THEMES/applyTheme())
     only ever swaps --maroon/--gold/--cream and friends, never touches
     these, so the new typography (and the chrome built on it below —
     .sidebar, .stat-card .icon, etc.) applies under every seasonal
     palette without any theme-by-theme work. Loaded in index.html's
     <head> from Google Fonts (Fraunces + Work Sans); this file only
     references the family names. */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', ui-sans-serif, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  /* Sidebar chrome text — deliberately NOT a color-token (--ink etc.),
     since the sidebar's own background is always a dark, saturated tone
     under every seasonal theme (--maroon-dark ranges from near-black
     maroon to Baptism's dark blue) and a plain white-on-dark at partial
     opacity reads cleanly against all of them, the same way the Direction
     A mockup differentiates its active/inactive nav rows by opacity
     rather than hue. */
  --sidebar-ink: rgba(255, 255, 255, 0.74);
  --sidebar-ink-active: #ffffff;
  /* Theme-Reactive Tile Shapes (Section 13.19, Task #185) — a second,
     narrower-scoped radius/border-width pair, applied only to dashboard
     summary tiles (.stat-card) and Member Portal cards (.celebration-item)
     below. Defaults here match the classic preset exactly (16px radius,
     1px border — the same values --radius/border already used before
     this task), so a church that never touches its theme keeps today's
     exact look; applyTheme() (public/app.js) overwrites these two per
     the church's theme via public/tileShapes.js's resolveTileShape(). */
  --tile-radius: 16px;
  --tile-border-width: 1px;
  --tile-pad-x: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(201,162,39,0.10), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(122,31,43,0.06), transparent 45%);
}

a { color: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Top bar ---------- */
/* September 2026 (mobile-parity-research-member.md §6, Android-only APK —
   iOS members now rely on this same signed-in dashboard via web): unlike
   .admin-tabs and .sidebar, this never got a narrow-viewport treatment, so
   its four children (brand block, language switcher, "<Name> · Role" pill,
   Sign Out link) had no flex-shrink/wrap and would overflow or clip on an
   iPhone-width (375-430px) screen. flex-wrap here is the same cheap fix
   .admin-tabs already uses; the @media rule additionally drops the brand's
   subtitle line, which is pure decoration once space is tight. */
.topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 24px; gap: 10px 16px; background: var(--maroon); color: var(--cream);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; min-width: 0; }
.topbar .brand .mark { font-size: 22px; }
.topbar .brand small { display: block; font-weight: 400; font-size: 11px; color: var(--gold-light); letter-spacing: 0.08em; text-transform: uppercase; }
.topbar .who { display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.topbar .who .pill { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); padding: 4px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.topbar button.link { background: none; border: none; color: var(--gold-light); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 4px; white-space: nowrap; }
@media (max-width: 480px) {
  .topbar { padding: 12px 16px; }
  .topbar .brand small { display: none; }
}

/* Multi-Language Support (Enterprise Plan Section 13.5) — a compact
   native <select> in the topbar rather than a custom dropdown, so it
   works correctly with zero extra JS on every browser/OS's own font
   rendering for Tamil/Kannada/Hindi/Telugu script (a hand-rolled
   dropdown would need to get that right itself). */
.language-switcher {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: var(--cream);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.language-switcher option { color: #1a1a1a; }

/* Omni-search (Enterprise Plan Section 13.E) — topbar search across
   Families/Members/Announcements/Events. Positioned as the flexible
   middle child between .brand and .who so it grows on wide screens and
   shrinks first on narrow ones. */
.omni-search { position: relative; flex: 1; max-width: 420px; margin: 0 20px; }
.omni-search-input {
  width: 100%; padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12); color: var(--cream); font-size: 13.5px; font-family: inherit;
}
.omni-search-input::placeholder { color: rgba(251,245,234,0.65); }
.omni-search-input:focus { outline: none; border-color: var(--gold-light); background: rgba(255,255,255,0.18); }
.omni-search-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; color: var(--ink); border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22); max-height: 70vh; overflow-y: auto; z-index: 500;
  text-align: left;
}
.omni-result-group-label {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft); padding: 10px 14px 4px;
}
.omni-result-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; cursor: pointer; }
.omni-result-row:hover { background: var(--cream-deep); }
.omni-result-icon { font-size: 15px; line-height: 1.4; }
.omni-result-primary { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.omni-result-secondary { font-size: 12px; color: var(--ink-soft); }
.omni-result-empty { padding: 16px 14px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* ---------- Centered auth / onboarding screens ---------- */
.center-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }

.phone {
  width: 400px; max-width: 100%;
  background: #fff;
  border-radius: 28px;
  border: 10px solid var(--maroon-dark);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 640px;
}
.phone-notch { height: 22px; background: var(--maroon-dark); display: flex; align-items: center; justify-content: center; }
.phone-notch::after { content: ''; width: 60px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.35); }
.phone-body { flex: 1; padding: 28px 24px; display: flex; flex-direction: column; }

.gospel-mark { text-align: center; margin-bottom: 6px; }
.gospel-mark .cross { font-size: 40px; }
.gospel-title { text-align: center; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--maroon); margin: 6px 0 2px; }
.gospel-tagline { text-align: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 22px; font-style: italic; }
.verse { text-align: center; font-size: 15px; color: var(--gold); font-style: italic; margin: 14px 0 4px; line-height: 1.5; }
.verse cite { display: block; font-style: normal; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: 15px; background: var(--cream); color: var(--ink); font-family: inherit;
}
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.field .otp-row { display: flex; gap: 8px; }
.field .otp-row input { text-align: center; letter-spacing: 4px; font-size: 20px; font-weight: 700; }

/* Compact field variant — same .field markup, smaller footprint for
   dense panels (Greeting Team's own profile card, Secretary Data Entry
   context) where the full-size registration/login-style input is more
   space than the content needs. Opt-in via an extra class, so every
   other .field in the app (registration, login, church profile, etc.)
   is completely unaffected. */
.field-compact { margin-bottom: 10px; }
.field-compact label { margin-bottom: 4px; font-size: 11.5px; }
.field-compact input, .field-compact select, .field-compact textarea { padding: 8px 11px; font-size: 13.5px; border-radius: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 700; font-family: inherit; transition: transform 0.05s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--maroon); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--maroon-dark); }
.btn-gold { background: var(--gold); color: var(--maroon-dark); width: 100%; }
.btn-outline { background: transparent; border: 1.5px solid var(--maroon); color: var(--maroon); width: 100%; }
.btn-ghost { background: transparent; border: none; color: var(--maroon); text-decoration: underline; padding: 6px; font-weight: 600; }
/* "Refined Classic": the mockup's compact per-row action buttons (e.g.
   "Send Greeting" next to a Today's Celebrations row) are a fully
   pill-shaped chip -- .btn-sm's existing padding/font-size already
   matched almost exactly, so this is a one-line continuation of the
   same pass rather than a new pattern. Deliberately scoped to .btn-sm
   only (Draft Greeting, Approve/Reject, Download, PPT, etc.) -- full-size
   CTAs (.btn-primary/.btn-gold/.btn-outline at their default width, e.g.
   Save Changes, Sign In) keep the existing 10px radius, since a
   400px-wide fully-pill button reads oddly at that size and the mockup
   never showed one. */
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 999px; width: auto; flex-shrink: 0; }
.btn-danger { background: var(--red); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.stack { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }

.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: #fbe6e3; color: var(--red); border: 1px solid #f0bdb4; }
.alert-success { background: #e8f3ea; color: var(--green); border: 1px solid #bfe0c8; }
.alert-info { background: #fdf3d9; color: #8a6d10; border: 1px solid #f0dda1; }

.demo-badge {
  display: inline-block; background: var(--gold-light); color: var(--maroon-dark);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.role-tabs { display: flex; gap: 8px; margin-bottom: 18px; background: var(--cream-deep); padding: 4px; border-radius: 10px; }
.role-tabs button { flex: 1; padding: 8px; border: none; background: transparent; border-radius: 8px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--ink-soft); }
.role-tabs button.active { background: var(--maroon); color: #fff; }

/* Wider tab bar for full-page dashboards (Platform Admin) — same
   palette as .role-tabs but left-aligned, auto-width buttons. Wraps
   onto additional rows once there are more tabs than fit on one line
   (September 2026, Task #190 follow-up: the Custom Domains + Plans
   tabs pushed the count past what fit, which previously triggered an
   ugly native horizontal scrollbar via overflow-x — flex-wrap keeps
   every tab visible at once with no scrolling needed). */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 20px; background: var(--cream-deep); padding: 4px; border-radius: 10px; }
.admin-tabs button { padding: 9px 16px; border: none; background: transparent; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-soft); white-space: nowrap; }
.admin-tabs button.active { background: var(--maroon); color: #fff; }
.admin-tabs button:hover:not(.active) { background: rgba(0,0,0,0.04); }

.link-row { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Dashboard shell (secretary/admin/greeting team) ---------- */
/* "Refined Classic" (Sept 2026): the sidebar becomes a solid, deep-toned
   panel (--maroon-dark — already the darkest color token every seasonal
   theme defines, so Christmas/Easter/Advent/etc. all get a correctly-
   toned dark sidebar for free) instead of a bare white strip with a thin
   divider, with rounded nav rows and a gold inset accent on the active
   one, echoing the chosen mockup. Text uses --sidebar-ink/-active
   (see :root) rather than the ink tokens, since those assume a light
   background. */
.dash-wrap { flex: 1; display: flex; }
.sidebar { width: 232px; background: var(--maroon-dark); padding: 18px 12px; flex-shrink: 0; }
.sidebar .nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; font-size: 14px; font-weight: 500;
  color: var(--sidebar-ink); cursor: pointer; border-radius: 10px; margin-bottom: 2px;
}
.sidebar .nav-item:hover { background: rgba(255,255,255,0.06); color: var(--sidebar-ink-active); }
.sidebar .nav-item.active { color: var(--sidebar-ink-active); background: rgba(255,255,255,0.1); box-shadow: inset 3px 0 0 var(--gold); }
.sidebar .nav-item .badge { margin-left: auto; background: var(--gold); color: var(--maroon-dark); font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }

.main { flex: 1; padding: 26px 32px; overflow-x: auto; }
.main h1 { margin: 0 0 4px; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--maroon); }
.main .subtitle { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 22px; }

/* Secretary/Greeting Team/Admin portal on a phone — the fixed 220px
   sidebar previously squeezed .main into a ~170px column on a typical
   390px phone screen, wrapping every label onto 3-4 lines and pushing
   inputs (e.g. the Data Entry search box) wide enough to run off the
   right edge. Below this width the sidebar becomes a horizontally-
   scrollable strip across the top instead of a fixed-width side column
   — same nav items, same click behavior, no new JS/toggle state,
   just reflowed. */
@media (max-width: 860px) {
  .dash-wrap { flex-direction: column; }
  .sidebar {
    width: 100%; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 8px;
  }
  .sidebar .nav-item {
    flex-shrink: 0; white-space: nowrap; margin-bottom: 0;
    padding: 9px 12px; font-size: 13px;
  }
  .sidebar .nav-item.active { box-shadow: inset 0 -3px 0 var(--gold); }
  .main { padding: 16px; }
  .main h1 { font-size: 21px; }
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
/* Theme-Reactive Tile Shapes (Section 13.19) — dashboard summary tiles,
   the plan's own "highest visual impact" target, so this is the primary
   place --tile-radius/--tile-border-width apply. */
.stat-card { background: #fff; border: var(--tile-border-width) solid var(--line); border-radius: var(--tile-radius); padding: 16px var(--tile-pad-x); }
[data-tile-shape="soft"] .stat-card { text-align: center; }
/* "Refined Classic" icon chip — the markup is just a bare emoji glyph
   (see app.js's stat-card calls), so this turns it into a tinted rounded
   square purely with CSS, no markup change needed: fixed size + flex
   centering + a soft cream-deep tint (works under every seasonal theme,
   since --cream-deep is themed too, rather than hardcoding one hue that
   would look wrong once a church picks e.g. Baptism Blue). */
.stat-card .icon {
  width: 38px; height: 38px; border-radius: 11px; background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 2px;
}
.stat-card .num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 27px; font-weight: 600; color: var(--maroon); margin: 4px 0 2px; }
.stat-card .label { font-size: 11.5px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.stat-card.clickable { cursor: pointer; transition: transform 0.06s ease, box-shadow 0.15s ease; }
.stat-card.clickable:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--gold); }
.stat-card.filter-active { border-color: var(--gold); background: var(--cream-deep); box-shadow: var(--shadow); }
.admin-filter-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin: -10px 0 14px; }
.admin-filter-note button { background: none; border: none; color: var(--maroon); text-decoration: underline; cursor: pointer; font-size: 12.5px; padding: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
/* Briefly flashed by scrollToCard() (public/app.js) after jumping to a
   card from one of the Overview page's stat tiles — a visual "you are
   here" cue, since the scroll alone can be easy to miss. */
.card.scroll-highlight { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint, rgba(201, 162, 39, 0.25)); }
.card h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--maroon); display: flex; align-items: center; gap: 8px; }
.card h2 .count { font-size: 12px; background: var(--cream-deep); color: var(--ink-soft); padding: 2px 8px; border-radius: 999px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--ink-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.empty-row { color: var(--ink-soft); font-style: italic; padding: 18px 10px; text-align: center; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: var(--cream-deep); }

/* ---------- Compact Secretary Portal Tables (Sept 2026) ----------
   .density-toggle is the Comfortable/Compact segmented control (public/
   app.js's densityToggle()); .table-compact scopes shorter rows/smaller
   type to just the card that opts in, via secFamiliesView()/
   secMembersView() — the rest of the app (e.g. Reports tables) is
   unaffected. See app.js's loadTableDensity()/setTableDensity(). */
.density-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; flex-shrink: 0; background: var(--cream); }
.density-toggle button { border: none; background: none; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--ink-soft); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.density-toggle button.active { background: var(--maroon); color: #fff; }
.density-toggle button:not(.active):hover { color: var(--maroon); }

.table-compact table { font-size: 12px; }
.table-compact th { padding: 5px 8px; font-size: 10px; }
.table-compact td { padding: 4px 8px; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-decoration: none; }
.chip[href]:hover { filter: brightness(0.95); }
.chip-gold { background: #fdf3d9; color: #8a6d10; }
.chip-green { background: #e8f3ea; color: var(--green); }
.chip-red { background: #fbe6e3; color: var(--red); }
.chip-blue { background: #e7eef5; color: var(--blue); }
.chip-grey { background: var(--cream-deep); color: var(--ink-soft); }
.chip-maroon { background: #f1e2e4; color: var(--maroon); }

.action-row { display: flex; gap: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tabs button { padding: 9px 16px; border: none; background: none; font-weight: 700; font-size: 13px; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.active { color: var(--maroon); border-bottom-color: var(--gold); }

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.family-photo-frame { width: 100%; aspect-ratio: 4/3; background: var(--cream-deep); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--gold); margin-bottom: 14px; }

.member-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--maroon); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-wrap { position: relative; flex-shrink: 0; }
.profile-photo { width: 64px; height: 64px; font-size: 22px; }
.profile-photo-wrap .photo-edit-btn {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: #fff; border: 2px solid #fff; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.profile-photo-wrap .photo-remove-btn {
  position: absolute; left: -2px; top: -2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); color: #fff; border: 2px solid #fff; cursor: pointer; font-size: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.profile-field-label { color: var(--ink-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.member-row .info { flex: 1; }
.member-row .info .name { font-weight: 700; font-size: 13.5px; }
.member-row .info .meta { font-size: 12px; color: var(--ink-soft); }

/* Theme-Reactive Tile Shapes (Section 13.19) — the "selectively to
   Member Portal cards" half of the plan's scoping. This is a borderless
   list row (a divider, not a box), so the token that meaningfully
   applies here is the divider's own weight, not a corner radius that
   would have nothing to round — --tile-border-width is exactly the
   "bold dividers" half of the Modern preset's own description. */
.celebration-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: var(--tile-border-width) dashed var(--line); }
.celebration-item:last-child { border-bottom: none; }
.celebration-item .emoji { font-size: 20px; }

/* To-Do day-planner groups (Enterprise Plan Section 13.14) */
.todo-group { margin-bottom: 6px; }
.todo-group:last-child { margin-bottom: 0; }
.todo-group-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--maroon); padding: 12px 0 4px; border-top: 1px solid var(--line);
}
.todo-group:first-child .todo-group-label { border-top: none; padding-top: 0; }
.todo-group-count {
  display: inline-block; background: var(--cream-deep); color: var(--ink-soft); border-radius: 999px;
  padding: 1px 8px; font-size: 10.5px; margin-left: 4px;
}

/* Birthday & Anniversary PPT Generation modal (Enterprise Plan Section 13.8) */
.ppt-preview-photos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.ppt-avatar { width: 84px; height: 84px; font-size: 26px; }
.ppt-heart { font-size: 22px; }

.footer-note { text-align: center; padding: 14px; font-size: 11.5px; color: var(--ink-soft); }

textarea { resize: vertical; min-height: 70px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(43,35,32,0.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius); padding: 24px; width: 460px; max-width: 100%; max-height: 90vh; overflow-y: auto; }
/* "Refined Classic": h3 is used both as a modal's own title (e.g. "+ Add
   Family Member") and as a secondary section heading inside a .card that
   already has its own h2 (e.g. Reports' per-report card titles, the
   Integrations page's "Delivery Channels"/"SMS Provider" sub-headings) —
   a single rule covers both rather than scoping to .modal only, so no
   inline style="font-family:..." is needed anywhere those appear. */
.modal h3 { margin-top: 0; }
h3 { font-family: var(--font-display); font-weight: 600; color: var(--maroon); margin: 0 0 8px; }

.upload-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 24px; text-align: center; color: var(--ink-soft); cursor: pointer; }
.upload-drop:hover { border-color: var(--gold); background: var(--cream-deep); }

.progress-bar { height: 8px; background: var(--cream-deep); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.progress-bar > div { height: 100%; background: var(--gold); }

.landing-hero { text-align: center; max-width: 560px; }
.landing-hero .cross-big { font-size: 56px; }
.landing-hero h1 { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--maroon); margin: 6px 0 4px; }
.landing-hero p.tag { color: var(--ink-soft); font-style: italic; margin-bottom: 28px; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
@media (max-width: 520px) { .role-cards { grid-template-columns: 1fr; } }
.role-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; text-align: left; }
.role-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.role-card .emoji { font-size: 26px; }
.role-card .t { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--maroon); margin: 8px 0 2px; }
.role-card .d { font-size: 12.5px; color: var(--ink-soft); }

.scripture-strip { background: var(--maroon); color: var(--cream); padding: 8px 24px; text-align: center; font-size: 12px; font-style: italic; }

/* ---------- Church Theme picker (secretary overview) ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-card {
  position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px;
  cursor: pointer; transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.theme-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.theme-card.selected { box-shadow: var(--shadow); }
.theme-card-dots { display: flex; gap: 5px; margin-bottom: 8px; }
.theme-card-dots span { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,0.08); }
.theme-card-strip { width: 100%; height: 14px; border-radius: 5px; margin-bottom: 10px; }
.theme-card-name { font-size: 12.5px; font-weight: 700; }
.theme-card-shape { font-size: 10.5px; opacity: 0.72; margin-top: 1px; }
.theme-card-check { position: absolute; top: 10px; right: 10px; font-weight: 800; font-size: 14px; }

/* ---------- Integrations panel / Billing screen ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; }
.hint-text { font-size: 12px; color: var(--ink-soft); font-weight: 400; text-transform: none; letter-spacing: normal; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; }
.plan-card {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; text-align: center;
}
.plan-card.current { border-color: var(--gold); box-shadow: var(--shadow); }
.plan-card .plan-name { font-weight: 700; text-transform: capitalize; font-size: 15px; }
.plan-card .plan-price { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 23px; font-weight: 600; color: var(--maroon); margin: 6px 0; }
.plan-card .plan-limit { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }

/* ---------- Platform-Admin Church Features toggle switch (Sept 2026) ---------- */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; cursor: pointer; background: var(--line); border-radius: 999px; transition: background .15s; }
.switch .slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(18px); }
