/*
 * Public website styles (spec 20.1, 21). Plain CSS served by Propshaft.
 *
 * Brand palette (spec 4, 21): brand green #9acd69, off-white canvas #f2f2f7.
 * Typeface: the device's own system font (owner, 23 November 2026). Montserrat
 * is not used on the website, /staff or the setup pages: it was only named
 * here, never served, so it showed on the few devices that had it installed
 * and made those pages look different from everyone else's.
 *
 * This is the guest-facing marketing site. The Capacitor app is Vue/Ionic and
 * never uses these styles.
 */

:root {
  --brand: #9acd69;
  --brand-ink: #1c2b12;
  --brand-dark: #6f9e43;
  --canvas: #f2f2f7;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --ink-muted: #6b6b70;
  --border: #e3e3e8;
  --badge-ink: #f5f5f7;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
  --max-width: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav__link {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-nav__link:hover {
  color: var(--ink);
  text-decoration: none;
  background: var(--canvas);
}

.site-nav__link.is-active {
  color: var(--brand-dark);
}

/* Main */
.site-main {
  min-height: calc(100vh - 64px - 60px);
}

/* Hero (landing) */
.hero {
  background: linear-gradient(160deg, #ffffff 0%, #eef4e6 100%);
  padding: 72px 0;
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ink-muted);
  margin: 0 0 16px;
  font-weight: 500;
}

.hero__body {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Store badges (App Store / Play Store CTAs, spec 20.1) */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--ink);
  color: var(--badge-ink);
  padding: 10px 18px;
  border-radius: 12px;
  min-width: 168px;
  text-align: left;
  transition: transform 0.12s ease;
}

.store-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.store-badge__store {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.store-badge__name {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card__body {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.feature-card__link {
  font-weight: 600;
}

/* Prayer teaser (guest-safe, spec 3.2, 25) */
.prayer-teaser {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.prayer-teaser__message {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.prayer-teaser__cta {
  color: var(--ink-muted);
  margin: 0;
}

/* Page (media / events) */
.page {
  padding: 48px 0 72px;
}

.page__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.page__intro {
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 560px;
}

/* Public group page (real-life#89) */
.page__eyebrow {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.page__body {
  margin: 0 0 40px;
  max-width: 640px;
}

.page__section-title {
  text-align: left;
}

.page__actions {
  justify-content: flex-start;
}

/* Media catalog */
.media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.media-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.media-item__kind {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.media-item__series {
  font-weight: 600;
  color: var(--ink);
}

.media-item__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.media-item__speaker {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 500;
}

.media-item__description {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.media-empty,
.events-empty {
  color: var(--ink-muted);
  font-size: 1.05rem;
  padding: 32px 0;
}

/* Events list */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.event__date-badge {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.event__date-badge-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event__date-badge-day {
  font-size: 1.5rem;
  font-weight: 800;
}

.event__body {
  flex: 1 1 auto;
  min-width: 0;
}

.event__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.event__time {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 500;
}

.event__location {
  margin: 0 0 4px;
  color: var(--ink-muted);
}

.event__description {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.site-footer__text {
  margin: 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 48px 0;
  }

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

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .event {
    flex-direction: column;
    gap: 12px;
  }

}


/* Email preferences, unsubscribe and the newsletter archive (real-life#179). */
.email-prefs {
  max-width: 640px;
}

.email-prefs__notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #eef4e6;
  color: #2f4a1a;
  font-weight: 600;
}

.email-prefs__lists {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.email-prefs__legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.email-prefs__list {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.email-prefs__list input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
}

.email-prefs__list b,
.email-prefs__list small {
  display: block;
}

.email-prefs__list small {
  color: var(--ink-muted);
}

.email-prefs__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.email-prefs__button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--badge-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.email-prefs__button--plain {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.newsletter-archive {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
}

.newsletter-archive li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.newsletter-archive span {
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Group Meeting (beta), real-life#209: /groups and the meeting room. */
.gm .page__title {
  margin-bottom: 20px;
}

.gm-message {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #e8f0fb;
  color: #17406f;
  font-weight: 600;
  max-width: 720px;
}

.gm-message--error {
  background: #fdecea;
  color: #8a1c13;
}

.gm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.gm-card__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.gm-card__lead {
  margin: 0 0 16px;
  color: var(--ink-muted);
  max-width: 60ch;
}

.gm-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.gm-form--narrow {
  max-width: 480px;
}

.gm-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.gm-field {
  margin: 0 0 16px;
}

.gm-field__label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.gm-field__note {
  font-weight: 500;
  color: var(--ink-muted);
}

.gm-field__hint {
  margin: 6px 0 12px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.gm-field__input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c4c4cc;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.gm-field__input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand-dark);
}

.gm-field__input--code {
  max-width: 12rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
}

.gm-field__input--area {
  min-height: 88px;
  resize: vertical;
}

.gm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.gm-button:hover {
  text-decoration: none;
}

.gm-button:focus-visible,
.gm-control:focus-visible,
.gm-tile__action:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.gm-button--primary {
  background: var(--church-button, var(--ink));
  color: #ffffff;
}

.gm-button--plain {
  background: transparent;
  color: var(--ink);
  border-color: #c4c4cc;
}

.gm-button--onDark {
  background: transparent;
  color: #f2f2f7;
  border-color: #6b7078;
}

.gm-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.gm-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}

.gm-who__name {
  margin: 0;
}

.gm-groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.gm-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gm-group__kind {
  margin: 0 0 2px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gm-group__state {
  margin: 0;
  color: var(--ink-muted);
}

.gm-group__sub {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.gm-codes,
.gm-past {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--canvas);
}

.gm-codes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.gm-codes__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
}

.gm-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  user-select: all;
}

.gm-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e3e3e8;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
}

.gm-tag--live {
  background: #dff0cd;
  color: #24400f;
}

.gm-tag--beta {
  background: #3a3f46;
  color: #f2f2f7;
}

.gm-past__meeting {
  border-radius: 10px;
  background: var(--surface);
  padding: 0 14px;
}

.gm-past__meeting + .gm-past__meeting {
  margin-top: 8px;
}

.gm-past__meeting summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

.gm-past__count {
  color: var(--ink-muted);
  font-weight: 500;
}

.gm-docs {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  display: grid;
  gap: 10px;
}

.gm-docs__item {
  overflow-wrap: anywhere;
}

.gm-docs__title {
  font-weight: 700;
}

.gm-docs__meta {
  margin-left: 8px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.gm-docs__verse {
  margin: 4px 0 0;
  white-space: pre-line;
}

.gm-docs__empty {
  margin: 0 0 12px;
  color: #b9bdc4;
}

.gm-goodbye {
  max-width: 560px;
}

/* The meeting room: the whole window, dark so faces lead. */
.gm-room-body {
  background: #16181b;
  color: #f2f2f7;
}

.gm-room {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
}

.gm-room a {
  color: #b9dd95;
}

.gm-room__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
}

.gm-room__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.gm-room__count {
  margin-left: auto;
  color: #b9bdc4;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Messages in the meeting are a toast: over the page, above the controls,
   gone by itself. It takes no room from the people or the Bible. */
.gm-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 5;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(92vw, 34rem);
  margin: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f2f2f7;
  color: #16181b;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  animation: gm-toast-in 0.18s ease-out;
}

.gm-toast[hidden] {
  display: none;
}

@keyframes gm-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* A leader's meeting link in the controls: the link, then Copy. */
.gm-linkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 0 0 0 14px;
  border-radius: 12px;
  background: #22252a;
}

.gm-linkbox__link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c9ccd2;
  font-size: 0.9rem;
  font-weight: 600;
  user-select: all;
}

.gm-linkbox__copy {
  flex: none;
}

.gm-room__panel {
  margin: auto;
  width: min(100% - 40px, 520px);
  padding: 28px;
  border-radius: var(--radius);
  background: #22252a;
  text-align: center;
}

.gm-room__panel-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
}

.gm-room__panel-lead {
  margin: 0 0 20px;
  color: #c9ccd2;
}

.gm-room__panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.gm-room__panel-foot {
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.gm-spinner {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 16px;
  border: 3px solid #4a4f57;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: gm-spin 0.9s linear infinite;
}

@keyframes gm-spin {
  to {
    transform: rotate(360deg);
  }
}

.gm-room__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  padding: 0 12px;
}

.gm-room__stage[hidden],
.gm-room__panel[hidden],
.gm-room__controls[hidden] {
  display: none;
}

.gm-room__tiles {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--gm-columns, 1), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
}

.gm-room__tiles[data-count="2"],
.gm-room__tiles[data-count="3"],
.gm-room__tiles[data-count="4"] {
  --gm-columns: 2;
}

.gm-room__tiles[data-count="5"],
.gm-room__tiles[data-count="6"],
.gm-room__tiles[data-count="7"],
.gm-room__tiles[data-count="8"],
.gm-room__tiles[data-count="9"] {
  --gm-columns: 3;
}

.gm-room__tiles[data-count="10"] {
  --gm-columns: 4;
}

.gm-tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #22252a;
  outline: 3px solid transparent;
  outline-offset: -3px;
}

.gm-tile.is-speaking {
  outline-color: var(--brand);
}

.gm-tile__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.gm-tile__initials {
  display: grid;
  place-items: center;
  width: clamp(56px, 22%, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #3a3f46;
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 800;
}

.gm-tile__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.gm-tile.has-video .gm-tile__video {
  display: block;
}

.gm-tile__video--mirror {
  transform: scaleX(-1);
}

.gm-tile__foot {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(15, 16, 18, 0.78);
  font-size: 0.875rem;
  font-weight: 600;
}

.gm-tile__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-tile__tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: #4a4f57;
  font-size: 0.75rem;
  font-weight: 700;
}

.gm-tile__muted {
  display: none;
  background: #f2f2f7;
  color: #16181b;
}

.gm-tile.is-muted .gm-tile__muted {
  display: inline-block;
}

.gm-tile__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}

.gm-tile__action {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 16, 18, 0.78);
  color: #f2f2f7;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.gm-room__side {
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  border-radius: 12px;
  background: #22252a;
}

.gm-room__side-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
}

.gm-room__side .gm-docs__meta {
  color: #b9bdc4;
}

.gm-room__side .gm-field__input {
  background: #16181b;
  color: #f2f2f7;
  border-color: #6b7078;
}

.gm-room__side .gm-field__note,
.gm-room__side .gm-field__hint {
  color: #b9bdc4;
}

.gm-share {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #2a2e34;
}

.gm-share__file {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px;
  color: #f2f2f7;
  font: inherit;
}

.gm-room__share-error {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #5a211b;
  font-weight: 600;
}

.gm-room__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.gm-room__controls-gap {
  flex: 1;
}

.gm-control {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #33383f;
  color: #f2f2f7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gm-control.is-off {
  background: #f2f2f7;
  color: #16181b;
}

.gm-control--end {
  background: #b3261e;
}

.gm-control--side {
  display: none;
}

@media (max-width: 860px) {
  .gm-doors {
    grid-template-columns: 1fr;
  }

  .gm-room__stage {
    grid-template-columns: 1fr;
    position: relative;
  }

  .gm-room__side {
    display: none;
    position: absolute;
    inset: 0 12px;
    z-index: 2;
  }

  .gm-room__side.is-open {
    display: flex;
  }

  .gm-control--side {
    display: inline-block;
  }

  .gm-room__tiles[data-count="3"],
  .gm-room__tiles[data-count="4"],
  .gm-room__tiles[data-count="5"],
  .gm-room__tiles[data-count="6"],
  .gm-room__tiles[data-count="7"],
  .gm-room__tiles[data-count="8"],
  .gm-room__tiles[data-count="9"],
  .gm-room__tiles[data-count="10"] {
    --gm-columns: 2;
  }

  .gm-room__controls-gap {
    display: none;
  }
}

.gm-group__link {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.925rem;
  overflow-wrap: anywhere;
}

/* The meeting's side panel: Shared and Bible tabs (real-life#209). The
   current tab is filled, never underlined. */
.gm-room__side {
  display: flex;
  flex-direction: column;
}

.gm-room__side > [role="tabpanel"] {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.gm-room__side > [role="tabpanel"][hidden] {
  display: none;
}

.gm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 12px;
  background: #16181b;
}

.gm-tabs__tab {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #c9ccd2;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gm-tabs__tab[aria-selected="true"] {
  background: #3a3f46;
  color: #ffffff;
}

.gm-tabs__tab:focus-visible,
.gm-docs__verse-button:focus-visible,
.gm-bible__text:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.gm-docs__verse-button {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #2a2e34;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gm-docs__verse-button .gm-docs__meta {
  margin-left: 0;
  color: #b9dd95;
}

#gm_panel_bible:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.gm-bible__pickers {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 8px;
}

.gm-bible__picker--wide {
  grid-column: 1 / -1;
}

.gm-bible__picker .gm-field__label {
  font-size: 0.8rem;
  color: #c9ccd2;
}

.gm-bible__state {
  margin: 0;
  color: #c9ccd2;
}

.gm-bible__state[hidden] {
  display: none;
}

.gm-bible__text {
  flex: 1;
  min-height: 8rem;
  overflow-y: auto;
  padding: 4px 4px 4px 0;
  font-size: 1.02rem;
  line-height: 1.65;
}

.gm-bible__heading {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.gm-verse {
  margin: 0;
  padding: 3px 8px;
  border-radius: 8px;
  scroll-margin-top: 8px;
}

.gm-verse.is-marked {
  background: #3d4a2c;
  color: #ffffff;
}

.gm-verse__number {
  color: #b9dd95;
  font-size: 0.72em;
  font-weight: 700;
}

.gm-bible__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gm-bible__nav .gm-button,
.gm-bible__share {
  padding: 0 10px;
  font-size: 0.9rem;
}

/* The lightbox: a shared image, video, sound or PDF over the page. */
.gm-lightbox {
  width: min(96vw, 1100px);
  max-width: none;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #16181b;
  color: #f2f2f7;
  overflow: auto;
}

.gm-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.gm-lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.gm-lightbox__title {
  flex: 1;
  min-width: 8rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Plain block layout on purpose: the picture's own size sets the height.
   A flexible body here came out with no height in Safari, which hid the
   picture (owner, 22 November 2026). */
.gm-lightbox__body {
  padding: 0 12px 12px;
  text-align: center;
}

.gm-lightbox__body img,
.gm-lightbox__body video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  max-height: calc(94dvh - 90px);
  margin: 0 auto;
  border-radius: 10px;
}

.gm-lightbox__body audio {
  display: block;
  width: min(100%, 520px);
  margin: 32px auto;
}

.gm-lightbox__body iframe {
  display: block;
  width: 100%;
  height: 78vh;
  height: calc(94dvh - 90px);
  border: 0;
  border-radius: 10px;
  background: #ffffff;
}

/* The meeting's layout choice (real-life#209): two icon buttons in the top
   bar, the current one filled. "Split" halves the screen: the people stack
   in a tighter grid and the side panel has room for the Bible. */
.gm-layout {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #22252a;
}

.gm-layout[hidden] {
  display: none;
}

.gm-layout__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #c9ccd2;
  cursor: pointer;
}

.gm-layout__button[aria-pressed="true"] {
  background: #3a3f46;
  color: #ffffff;
}

.gm-layout__button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

@media (min-width: 861px) {
  .gm-room__stage[data-layout="split"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .gm-room__stage[data-layout="split"] .gm-room__tiles[data-count="2"] {
    --gm-columns: 1;
  }

  .gm-room__stage[data-layout="split"] .gm-room__tiles[data-count="5"],
  .gm-room__stage[data-layout="split"] .gm-room__tiles[data-count="6"] {
    --gm-columns: 2;
  }

  .gm-room__stage[data-layout="split"] .gm-room__tiles[data-count="10"] {
    --gm-columns: 3;
  }

  .gm-room__stage[data-layout="split"] .gm-bible__text {
    font-size: 1.12rem;
  }
}

@media (max-width: 860px) {
  .gm-layout {
    display: none;
  }
}

/* The meeting's confirmation pop-up: never the browser's own box. */
.gm-confirm {
  width: min(92vw, 26rem);
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  background: #22252a;
  color: #f2f2f7;
}

.gm-confirm::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.gm-confirm__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.gm-confirm__body {
  margin: 0 0 20px;
  color: #c9ccd2;
}

.gm-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
