/* Global visual theme: edit these tokens to recolor every page. */
:root {
  --theme-page: #1d1a17;
  --theme-page-deep: #171411;
  --theme-surface: #28231f;
  --theme-surface-raised: #342e29;
  --theme-ink: #f3ede3;
  --theme-ink-soft: #c7bdb0;
  --theme-accent: #a98a66;
  --theme-accent-strong: #8f7254;
  --theme-line: rgba(169, 138, 102, 0.28);
  --theme-line-soft: rgba(205, 190, 171, 0.20);
  --theme-wash: rgba(205, 190, 171, 0.10);
  --theme-shadow: rgba(10, 8, 6, 0.28);
  --theme-button: #ddd0bd;
  --theme-button-end: #bda98f;
  --theme-button-ink: #2c251e;
  --theme-success: #94b48e;
  --theme-warning: #c9a86f;

  /* Legacy aliases keep every existing component on the global theme. */
  --bg: var(--theme-page);
  --panel: var(--theme-surface);
  --panel-soft: var(--theme-surface-raised);
  --text: var(--theme-ink);
  --muted: var(--theme-ink-soft);
  --gold: var(--theme-accent);
  --gold-soft: var(--theme-accent-strong);
  --line: var(--theme-line);
  --ok: var(--theme-success);
  --warn: var(--theme-warning);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, #1f3440 0, transparent 35%),
    radial-gradient(circle at 100% 20%, #403021 0, transparent 30%),
    linear-gradient(160deg, #081015 0%, #0d1418 55%, #0f171c 100%);
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1180px, 100% - 2.4rem);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(8, 14, 18, 0.72);
  border-bottom: 1px solid var(--theme-line-soft);
  padding-top: env(safe-area-inset-top);
}

.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand lang"
    "links links";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  min-height: 78px;
  padding: 0.35rem 0;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1rem;
}

.links {
  grid-area: links;
  display: flex;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.2rem 0;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}

.links a {
  flex-shrink: 0;
}

.links a {
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.links a.active,
.links a:hover {
  color: var(--text);
  background: var(--theme-wash);
}

.hero {
  padding: 4rem 0 1.5rem;
  display: grid;
  gap: 1.4rem;
}

.hero-with-lent {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  align-items: start;
  column-gap: 1.2rem;
}

.hero-main {
  display: grid;
  gap: 1.4rem;
}

.lent-rail {
  display: grid;
  justify-items: end;
  align-self: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border: 1px solid var(--line);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  max-width: 13ch;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 37, 45, 0.8), rgba(15, 21, 27, 0.84));
  box-shadow: 0 16px 40px var(--theme-shadow);
}

.photo-card {
  overflow: hidden;
  min-height: 460px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
}

.info-card {
  padding: 1.3rem;
  display: grid;
  gap: 1rem;
}

.info-card h3 {
  font-size: 2rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.metric {
  padding: 0.9rem;
  border: 1px solid var(--theme-line-soft);
  border-radius: 14px;
  background: var(--theme-shadow);
}

.metric .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
}

.metric .label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.3;
}

.section {
  padding: 2.2rem 0;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.section-sub {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 70ch;
}

.policy-grid {
  gap: 1.2rem;
}

.policy-card {
  padding: 1.35rem;
  display: grid;
  gap: 0.95rem;
}

.policy-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  line-height: 1.7;
}

.policy-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.policy-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--text);
}

.lent-countdown-card {
  border-radius: 22px;
  border: 1px solid var(--theme-line);
  background:
    radial-gradient(circle at 85% 20%, var(--theme-wash) 0, transparent 35%),
    radial-gradient(circle at 10% 0%, rgba(68, 138, 201, 0.16) 0, transparent 42%),
    linear-gradient(165deg, rgba(18, 29, 38, 0.9), rgba(11, 18, 24, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  padding: 1.2rem;
  display: grid;
  gap: 0.9rem;
  width: 100%;
}

.lent-countdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.lent-countdown-date {
  margin: 0;
  color: #e8dbc0;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.3;
}

.lent-countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.lent-countdown-unit {
  border: 1px solid var(--theme-line);
  border-radius: 14px;
  background: var(--theme-shadow);
  padding: 0.72rem 0.7rem;
  display: grid;
  gap: 0.18rem;
  min-height: 92px;
  align-content: center;
  text-align: center;
}

.lent-countdown-unit .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  line-height: 0.95;
  color: #f3e7cc;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.lent-countdown-unit span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.lent-countdown-cta {
  display: flex;
  justify-content: stretch;
  margin-top: 0.15rem;
}

.lent-countdown-cta .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.lent-countdown-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.lent-countdown-card-square {
  max-width: 420px;
  min-height: 420px;
  grid-template-rows: auto auto auto 1fr;
}

.lent-countdown-card-square .lent-countdown-head {
  align-items: flex-start;
}

.lent-countdown-card-square .lent-countdown-date {
  font-size: 0.82rem;
  line-height: 1.3;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story,
.practice,
.update {
  padding: 1.1rem 1.15rem;
}

.story h3,
.practice h3,
.update h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.story p,
.practice p,
.update p,
.story li,
.practice li,
.update li {
  color: var(--theme-ink-soft);
  line-height: 1.6;
}

.step-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.step-list li {
  padding-left: 0.15rem;
}

.mystery-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.mystery-pick {
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--theme-ink-soft);
  background: var(--theme-shadow);
  border: 1px solid var(--theme-line-soft);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.mystery-pick:hover,
.mystery-pick:focus-visible {
  border-color: var(--theme-line);
  color: var(--text);
  outline: none;
}

.mystery-pick.active {
  color: var(--theme-button-ink);
  background: linear-gradient(180deg, var(--theme-button), var(--theme-button-end));
  border-color: transparent;
}

.mystery-link {
  display: inline-block;
  width: 100%;
  color: var(--theme-ink-soft);
  background: var(--theme-shadow);
  border: 1px solid var(--theme-line-soft);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-weight: 600;
}

.mystery-link:hover,
.mystery-link:focus-visible {
  border-color: var(--theme-line);
  color: var(--text);
  outline: none;
}

.visualization-panel {
  margin-top: 1rem;
}

.mystery-image-wrap {
  margin: 0.6rem 0 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  background: var(--theme-shadow);
}

.mystery-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.mystery-image-credit {
  margin: 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  color: var(--theme-ink-soft);
  background: var(--theme-shadow);
}

.audio-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.audio-note {
  margin-top: 0.6rem;
  color: var(--theme-ink-soft);
  font-size: 0.9rem;
}

.meditation-hero {
  padding: 3.2rem 0 1.2rem;
  max-width: 1080px;
}

.meditation-hero h1 {
  margin-top: 0.55rem;
  margin-bottom: 0.45rem;
  font-size: clamp(2.25rem, 5.1vw, 3.9rem);
  line-height: 1.04;
  max-width: 22ch;
}

.meditation-hero .section-sub {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.mystery-hero-meta {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.68rem 0.82rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 27, 35, 0.88), rgba(11, 18, 25, 0.92));
}

.mystery-hero-progress {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.mystery-hero-ref {
  margin: 0.3rem 0 0;
  color: var(--theme-ink-soft);
  font-size: 0.95rem;
}

.meditation-top-controls {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  padding: 0.72rem;
  border: 1px solid var(--theme-line-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 33, 42, 0.72), rgba(13, 21, 29, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.meditation-top-controls:first-of-type {
  grid-template-columns: auto auto auto minmax(280px, 1fr);
  align-items: center;
}

.meditation-top-controls:nth-of-type(2) {
  width: fit-content;
  grid-template-columns: auto auto auto;
  align-items: center;
}

.meditation-top-controls .btn,
.meditation-top-controls select {
  min-height: 52px;
}

.meditation-top-controls:first-of-type a.btn {
  background: transparent;
  color: #d6d2c8;
}

#prev-mystery,
#next-mystery {
  background: var(--theme-wash);
}

#auto-timer-toggle {
  background: linear-gradient(180deg, var(--theme-button), var(--theme-button-end));
  color: var(--theme-button-ink);
  border-color: transparent;
}
#auto-timer-toggle.is-active {
  background: linear-gradient(180deg, #80dda0, #57c870);
  color: #0b3312;
  border-color: transparent;
  animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(87, 200, 112, 0.3); }
  50% { box-shadow: 0 0 12px rgba(87, 200, 112, 0.6); }
}

.meditation-top-controls label.btn {
  cursor: default;
  color: var(--theme-ink);
  background: var(--theme-wash);
}

.meditation-select {
  width: 100%;
  min-width: 280px;
  color: var(--text);
}

.meditation-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1rem;
}

.meditation-image-card {
  overflow: hidden;
}

.meditation-image-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.meditation-content {
  padding: 1.1rem 1.15rem;
  align-self: start;
}

.stage-badge {
  display: inline-block;
  border: 1px solid var(--theme-line);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.stage-text {
  margin-top: 0.85rem;
  color: var(--theme-ink);
  line-height: 1.65;
  font-size: 1.06rem;
}

.step-counter {
  margin-top: 0.4rem;
  color: #c9c7bf;
  font-size: 0.86rem;
}

.meditation-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(28, 25, 20, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--theme-wash);
}

.meditation-actions .btn {
  width: 100%;
  justify-content: center;
}

.start-guided-audio-btn {
  grid-column: 1 / -1;
  min-height: 58px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bead-progress {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(var(--bead-count, 12), minmax(0, 1fr));
  gap: 0.35rem;
}

.bead-dot {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bead-dot.on {
  background: linear-gradient(180deg, var(--theme-button), var(--theme-button-end));
  border-color: transparent;
}

.sound-status {
  margin: 0.8rem 0 0;
  color: var(--theme-ink-soft);
  font-size: 0.9rem;
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  background: var(--theme-shadow);
  padding: 0.6rem 0.7rem;
}

.prayer-live-panel {
  margin-top: 0.9rem;
  border: 1px solid var(--theme-line-soft);
  border-radius: 12px;
  background: var(--theme-shadow);
  padding: 0.8rem 0.9rem;
}

.prayer-live-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--theme-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prayer-live-text {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: var(--theme-ink);
  font-weight: 700;
}

.prayer-live-timer {
  margin: 0.2rem 0 0;
  color: var(--theme-ink-soft);
  font-size: 0.9rem;
}

.prayer-live-dots {
  display: inline-block;
  min-width: 2ch;
  letter-spacing: 0.15em;
}

.prayer-assist-panel {
  margin-top: 0.9rem;
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: var(--theme-shadow);
  padding: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.prayer-assist-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prayer-assist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
}

.prayer-assist-row,
.prayer-assist-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  color: var(--theme-ink-soft);
  font-size: 0.9rem;
}

.prayer-assist-select-row {
  grid-column: 1 / -1;
}

.prayer-assist-select {
  min-width: 170px;
}

.prayer-assist-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #cfa764;
}

.prayer-assist-btn {
  width: fit-content;
}

.mystery-source-panel {
  margin-top: 1rem;
  border: 1px solid var(--theme-line-soft);
  border-radius: 14px;
  background: var(--theme-shadow);
  padding: 0.85rem;
  display: grid;
  gap: 0.7rem;
}

.mystery-source-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  color: var(--gold);
  font-weight: 700;
}

.mystery-source-heading {
  margin: 0;
  font-size: 1.25rem;
}

.mystery-source-card {
  border: 1px solid var(--theme-line-soft);
  border-radius: 12px;
  background: rgba(9, 14, 20, 0.7);
  padding: 0.75rem 0.8rem;
}

.mystery-source-card h4 {
  margin: 0 0 0.45rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.mystery-source-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--theme-ink-soft);
}

.mystery-source-reflection {
  border-color: var(--theme-line);
  background: linear-gradient(180deg, rgba(66, 47, 19, 0.32), rgba(19, 23, 29, 0.65));
}

.mystery-source-link {
  width: fit-content;
}

.mini-grid {
  display: grid;
  gap: 1rem;
}

.mini-section {
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.75rem;
}

.mini-section h3 {
  font-size: 2rem;
  margin: 0;
}

.mini-item {
  border: 1px solid var(--theme-line-soft);
  border-radius: 12px;
  background: var(--theme-shadow);
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.mini-item h4 {
  margin: 0;
  font-size: 1.35rem;
  font-family: 'Cormorant Garamond', serif;
}

.mini-item p {
  margin: 0;
  color: var(--theme-ink-soft);
  line-height: 1.58;
}

.mini-reflection {
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: linear-gradient(180deg, rgba(77, 57, 24, 0.25), rgba(16, 21, 27, 0.45));
}

.source-grid {
  display: grid;
  gap: 1rem;
}

.source-card {
  padding: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.source-card h3 {
  margin: 0;
  font-size: 1.6rem;
}

.source-card h4 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
}

.source-meta {
  margin: 0;
  color: var(--theme-ink-soft);
  font-size: 0.86rem;
}

.source-card img {
  width: 100%;
  max-height: 860px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--theme-line);
  background: var(--theme-shadow);
}

.source-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.84rem;
  color: var(--theme-ink-soft);
  border: 1px solid var(--theme-line-soft);
  border-radius: 10px;
  background: var(--theme-shadow);
  padding: 0.7rem;
  max-height: 360px;
  overflow: auto;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  background: var(--theme-shadow);
}

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

.transcript-card {
  padding: 0.9rem;
}

.transcript-card h3 {
  margin-bottom: 0.6rem;
}

.transcript-card pre,
.transcript-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--theme-ink-soft);
  border: 1px solid var(--theme-line-soft);
  border-radius: 10px;
  background: var(--theme-shadow);
  padding: 0.7rem;
  max-height: 28rem;
  overflow-y: auto;
  max-height: 520px;
  overflow: auto;
}

.coach-form-card {
  padding: 0.95rem;
}

.coach-grid {
  display: grid;
  gap: 0.8rem;
}

.coach-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--theme-ink-soft);
  font-weight: 600;
}

.coach-grid select,
.coach-grid input[type='text'] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--theme-line);
  background: var(--theme-shadow);
  color: var(--theme-ink);
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.coach-grid select:focus,
.coach-grid input[type='text']:focus {
  outline: none;
  border-color: var(--theme-line);
}

.coach-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.coach-output {
  color: var(--theme-ink-soft);
  line-height: 1.65;
}

.form-card {
  padding: 1rem;
}

.testimony-form {
  display: grid;
  gap: 0.8rem;
}

.testimony-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--theme-ink-soft);
}

.testimony-form input,
.testimony-form textarea,
.testimony-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--theme-line);
  background: var(--theme-shadow);
  color: var(--theme-ink);
  padding: 0.56rem 0.65rem;
  font: inherit;
}

.testimony-form input:focus,
.testimony-form textarea:focus,
.testimony-form select:focus {
  outline: none;
  border-color: var(--theme-line);
}

.inline-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500 !important;
}

.inline-check input {
  width: auto;
  margin-top: 0.2rem;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.submit-status {
  margin: 0.2rem 0 0;
  color: var(--theme-ink-soft);
}

.submit-status.ok {
  color: #9dd39d;
}

.submit-status.warn {
  color: #f3cf8f;
}

.submit-status.error {
  color: #f4a6a6;
}

.testimony-grid {
  display: grid;
  gap: 1rem;
}

.testimony-card {
  padding: 0.9rem 1rem;
}

.admin-card .cta-row {
  margin-top: 0.6rem;
}

.prayer-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.prayer-card {
  padding: 1rem 1.05rem;
}

.prayer-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.prayer-card p {
  margin: 0;
  color: var(--theme-ink-soft);
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.gallery-hint {
  color: var(--theme-ink-soft);
  font-size: 0.88rem;
}

.gallery-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--theme-line-soft);
  background: var(--theme-shadow);
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gallery-item {
  display: block;
  width: 100%;
  overflow: hidden;
  flex: 0 0 auto;
}

.gallery-card img {
  width: 100% !important;
  height: 360px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-card figcaption {
  margin: 0;
  padding: 0.6rem 0.7rem;
  color: var(--theme-ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 8, 12, 0.92);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  justify-items: center;
  padding: 1rem;
}

.gallery-lightbox img {
  max-width: min(1180px, 88vw);
  max-height: 78vh;
  border-radius: 10px;
  border: 1px solid var(--theme-line);
}

.gallery-lightbox #lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  pointer-events: auto;
}

.gallery-lightbox p {
  display: none;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.shop-product {
  padding: 1rem 1.05rem;
}

.shop-product h3 {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.shop-product p {
  margin: 0.35rem 0 0;
  color: var(--theme-ink-soft);
  line-height: 1.6;
}

.shop-price {
  color: var(--gold) !important;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mockup-product {
  padding: 0.65rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.mockup-product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--theme-line-soft);
}

.mockup-product h3 {
  font-size: 1.5rem;
  margin-top: 0.1rem;
}

.mockup-product p {
  margin: 0;
  color: var(--theme-ink-soft);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .meditation-top-controls:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meditation-top-controls:first-of-type .meditation-select {
    grid-column: 1 / -1;
  }

  .meditation-layout {
    grid-template-columns: 1fr;
  }

  .meditation-image-card img {
    min-height: 280px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .prayer-assist-grid {
    grid-template-columns: 1fr;
  }

  .meditation-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mockup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .meditation-hero h1 {
    font-size: clamp(1.95rem, 8vw, 2.8rem);
  }

  .meditation-top-controls:first-of-type,
  .meditation-top-controls:nth-of-type(2) {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .meditation-select {
    min-width: 0;
  }

  .meditation-actions {
    grid-template-columns: 1fr;
  }

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

  .gallery-lightbox {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

.timeline {
  display: grid;
  gap: 0.7rem;
}

.time-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.8rem;
  align-items: start;
  border-bottom: 1px dashed var(--theme-line-soft);
  padding-bottom: 0.7rem;
}

.time-item:last-child {
  border: 0;
  padding-bottom: 0;
}

.time-item .year {
  color: var(--gold);
  font-weight: 800;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.76rem;
  margin-bottom: 0.55rem;
}

.tag.ok {
  color: var(--ok);
  border-color: rgba(163, 211, 156, 0.35);
}

.tag.warn {
  color: var(--warn);
  border-color: rgba(243, 207, 143, 0.35);
}

.cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.btn.primary {
  background: linear-gradient(180deg, var(--theme-button), var(--theme-button-end));
  color: var(--theme-button-ink);
  border-color: transparent;
}

.btn.subtle {
  color: var(--text);
  background: var(--theme-wash);
}

.footer {
  margin-top: 2rem;
  border-top: 1px solid var(--theme-wash);
  padding: 1.2rem 0 1.7rem;
  color: #9ea19b;
  font-size: 0.86rem;
}

.footer a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-with-lent,
  .hero-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .photo-card {
    min-height: 340px;
  }

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

  .lent-rail {
    justify-items: stretch;
  }

  .lent-countdown-card-square {
    max-width: none;
    min-height: 0;
  }
}

@media (max-width: 740px) {
  .nav {
    display: flex;
    min-height: 64px;
    padding: 0.35rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.2rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .policy-card {
    padding: 1.1rem;
  }

  .time-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.floating-audio {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: min(460px, calc(100vw - 2rem));
  border: 1px solid var(--theme-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 24, 31, 0.95), rgba(10, 16, 22, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0.85rem;
  display: none;
  z-index: 120;
  cursor: grab;
}

.floating-audio.on {
  display: grid;
  gap: 0.45rem;
}

.floating-audio.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.floating-audio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.floating-audio-close {
  border: 1px solid rgba(209, 95, 95, 0.5);
  border-radius: 999px;
  background: rgba(209, 95, 95, 0.14);
  color: #f0d6d6;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.26rem 0.56rem;
  cursor: pointer;
}

.floating-audio-close:hover,
.floating-audio-close:focus-visible {
  border-color: rgba(209, 95, 95, 0.9);
  outline: none;
}

.floating-audio-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
}

.floating-audio-minimize {
  border: 1px solid var(--theme-line);
  border-radius: 999px;
  background: var(--theme-wash);
  color: var(--theme-ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.26rem 0.56rem;
  cursor: pointer;
}

.floating-audio-minimize:hover,
.floating-audio-minimize:focus-visible {
  border-color: rgba(211, 178, 110, 0.58);
  outline: none;
}

.floating-audio-mode {
  margin: 0;
  width: fit-content;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-button-ink);
  font-weight: 800;
  background: linear-gradient(180deg, #e2c485, #cb9f57);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.floating-audio-title {
  margin: 0;
  color: var(--theme-ink);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}

.floating-audio-subtitle {
  margin: 0;
  color: var(--theme-ink-soft);
  font-size: 0.84rem;
}

.floating-audio-mystery-progress {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.floating-audio-prayer-name {
  margin: 0;
  color: var(--theme-ink);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
}

.floating-audio-step-progress {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--theme-wash);
  overflow: hidden;
  margin: 0.3rem 0 0;
}

.floating-audio-step-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gold);
  transition: width 300ms ease;
}

.floating-audio-step-label {
  margin: 0.1rem 0 0;
  font-size: 0.68rem;
  color: var(--theme-line);
  letter-spacing: 0.04em;
  text-align: right;
}

.floating-audio-status {
  margin: 0;
  color: var(--theme-ink-soft);
  font-size: 0.86rem;
}

.floating-audio-countdown {
  margin: 0.1rem 0 0;
  border: 1px solid rgba(211, 178, 110, 0.26);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  width: fit-content;
  color: #f0e5cb;
  background: linear-gradient(180deg, var(--theme-line-soft), var(--theme-wash));
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.floating-audio-countdown strong {
  margin-left: 0.3rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  color: #fff7e3;
}

.floating-audio-countdown.is-armed {
  color: var(--theme-ink-soft);
  border-color: var(--theme-line-soft);
  background: var(--theme-wash);
}

.floating-audio-progress {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.floating-audio-progress.is-countdown {
  background: var(--theme-line);
}

.floating-audio-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #c99543, #e2c484);
  transition: width 240ms linear;
}

.floating-audio-elapsed {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: rgba(211, 178, 110, 0.7);
  text-align: center;
}

.floating-audio-voice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.floating-audio-voice-row label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--theme-ink-soft);
}

.floating-audio-voice {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--theme-line);
  background: rgba(8, 14, 19, 0.88);
  color: #ece8de;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
}

.floating-audio-voice:focus-visible {
  outline: 2px solid rgba(211, 178, 110, 0.62);
  outline-offset: 1px;
}

.floating-audio-actions {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 0.45rem;
}

.floating-audio-actions .btn {
  min-height: 40px;
}

.floating-audio-actions a.btn {
  justify-self: stretch;
}

.floating-audio-auto-prayer-btn {
  width: 100%;
  border: 1px solid var(--theme-line-soft);
  background: var(--theme-wash);
  color: var(--theme-ink-soft);
}

.floating-audio-auto-prayer-btn.is-enabled {
  background: linear-gradient(180deg, var(--theme-button), var(--theme-button-end));
  color: var(--theme-button-ink);
  border-color: transparent;
}

.floating-audio-mobile-toggle {
  display: none;
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--theme-line);
  background: var(--theme-wash);
  color: var(--theme-ink-soft);
  font-weight: 700;
}

.floating-audio-next {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  position: relative;
  overflow: visible;
}

.floating-audio-next.is-countdown::before {
  content: attr(data-countdown-label);
  position: absolute;
  top: -0.7rem;
  right: 0.55rem;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f7ecd5;
  background: var(--theme-line);
  border: 1px solid var(--theme-line);
}

.floating-audio.is-complete .floating-audio-actions,
.floating-audio.is-complete .floating-audio-auto-prayer-btn,
.floating-audio.is-complete .floating-audio-voice-row,
.floating-audio.is-complete .floating-audio-countdown,
.floating-audio.is-complete .floating-audio-mobile-toggle,
.floating-audio.is-complete .floating-audio-minimize,
.floating-audio.is-complete .floating-audio-mode,
.floating-audio.is-complete .floating-audio-subtitle {
  display: none;
}

.floating-audio.is-complete .floating-audio-next {
  display: inline-flex;
  min-height: 46px;
}

.floating-audio.is-minimized {
  width: min(320px, calc(100vw - 1.4rem));
  gap: 0.35rem;
}

.floating-audio.is-minimized .floating-audio-subtitle,
.floating-audio.is-minimized .floating-audio-status,
.floating-audio.is-minimized .floating-audio-countdown,
.floating-audio.is-minimized .floating-audio-progress,
.floating-audio.is-minimized .floating-audio-voice-row,
.floating-audio.is-minimized .floating-audio-auto-prayer-btn,
.floating-audio.is-minimized .floating-audio-step-progress,
.floating-audio.is-minimized .floating-audio-step-label,
.floating-audio.is-minimized .floating-audio-mystery-progress {
  display: none;
}

.floating-audio.is-minimized .floating-audio-actions {
  grid-template-columns: 1fr;
}

.floating-audio.is-minimized .floating-audio-actions .btn.primary {
  display: none;
}

@media (max-width: 680px) {
  .floating-audio {
    right: 0.7rem;
    left: 0.7rem;
    width: auto;
    bottom: calc(0.7rem + env(safe-area-inset-bottom));
    border-radius: 12px;
    padding: 0.7rem;
    cursor: default;
  }

  .floating-audio-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-audio-actions a.btn {
    grid-column: 1 / -1;
  }

  .floating-audio.is-minimized {
    width: auto;
  }

  .floating-audio.is-minimized .floating-audio-actions {
    grid-template-columns: 1fr;
  }

  .floating-audio-minimize {
    display: none;
  }

  .floating-audio-mobile-toggle {
    display: block;
  }

  .floating-audio.is-mobile-pill .floating-audio-mode,
  .floating-audio.is-mobile-pill .floating-audio-subtitle,
  .floating-audio.is-mobile-pill .floating-audio-status,
  .floating-audio.is-mobile-pill .floating-audio-countdown,
  .floating-audio.is-mobile-pill .floating-audio-progress,
  .floating-audio.is-mobile-pill .floating-audio-voice-row,
  .floating-audio.is-mobile-pill .floating-audio-actions,
  .floating-audio.is-mobile-pill .floating-audio-auto-prayer-btn,
  .floating-audio.is-mobile-pill .floating-audio-next,
  .floating-audio.is-mobile-pill .floating-audio-step-progress,
  .floating-audio.is-mobile-pill .floating-audio-step-label,
  .floating-audio.is-mobile-pill .floating-audio-mystery-progress,
  .floating-audio.is-mobile-pill .floating-audio-prayer-name {
    display: none;
  }

.floating-audio.is-mobile-pill .floating-audio-title {
    font-size: 0.9rem;
  }
}

body.is-story-page #floating-audio-open,
body.is-story-page #floating-audio-auto-prayer,
body.is-story-page #floating-audio-next,
body.is-story-page .floating-audio-voice-row {
  display: none !important;
}

.floating-audio-voice-row {
  display: none !important;
}

body.is-story-page .floating-audio-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lang-switcher {
  grid-area: lang;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: 0;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--theme-line-soft);
  border-radius: 999px;
  background: rgba(8, 14, 18, 0.58);
}

.lang-switcher label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang-switcher select {
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  border: 1px solid rgba(211, 178, 110, 0.3);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.83rem;
  max-width: 220px;
}

.sc-install-app-btn {
  border: 1px solid rgba(211, 178, 110, 0.42);
  background: linear-gradient(180deg, var(--theme-button), var(--theme-button-end));
  color: #2f220c;
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.sc-install-app-btn:hover {
  filter: brightness(1.05);
}

.lang-switcher.lang-switcher-floating {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: calc(0.75rem + env(safe-area-inset-right));
  margin-left: 0;
  z-index: 140;
  backdrop-filter: blur(8px);
}

@media (max-width: 980px) {
  .lang-switcher {
    margin-left: 0;
    gap: 0.3rem;
  }

  .lang-switcher label {
    display: none;
  }

  .lang-switcher.lang-switcher-floating {
    top: calc(0.6rem + env(safe-area-inset-top));
    right: calc(0.6rem + env(safe-area-inset-right));
  }
}

@media (max-width: 1240px) {
  .links a {
    padding: 0.48rem 0.66rem;
    font-size: 0.84rem;
  }

  .lang-switcher label {
    display: none;
  }

  .lang-switcher select {
    max-width: 160px;
  }

  .sc-install-app-btn {
    padding: 0.34rem 0.68rem;
    font-size: 0.75rem;
  }
}


/* Phase 1 cinematic homepage QA */
.home-cinematic-hero{position:relative;min-height:min(780px,calc(100vh - 78px));margin-top:1.5rem;border:1px solid rgba(211,178,110,.24);border-radius:32px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);align-items:end;gap:2rem;padding:clamp(2rem,6vw,5.5rem);isolation:isolate;box-shadow:0 34px 80px rgba(0,0,0,.44)}
.cinematic-backdrop{position:absolute;inset:0;z-index:-2;background-image:linear-gradient(90deg,rgba(4,9,12,.96) 0%,rgba(6,12,15,.86) 43%,rgba(7,12,14,.2) 75%),linear-gradient(0deg,rgba(5,10,13,.92) 0%,transparent 52%),url('./saint-charbel.jpg');background-size:cover;background-position:68% 25%;transform:scale(1.015)}
.home-cinematic-hero::before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 72% 42%,rgba(211,178,110,.18),transparent 34%);pointer-events:none}
.cinematic-content{max-width:760px;display:grid;gap:1.25rem}.cinematic-eyebrow{margin:.4rem 0 -.45rem;color:#d9c9a6;text-transform:uppercase;letter-spacing:.12em;font-size:.75rem;font-weight:800}.home-cinematic-hero h1{margin:0;max-width:12ch;font-size:clamp(3.35rem,7vw,6.8rem);line-height:.86;text-wrap:balance;text-shadow:0 10px 30px rgba(0,0,0,.5)}.cinematic-lede{margin:0;max-width:60ch;color:#ded9cf;font-size:clamp(1rem,1.7vw,1.18rem);line-height:1.7}.cinematic-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:.25rem}.btn.glass{background:rgba(8,14,18,.48);border:1px solid rgba(244,239,230,.32);color:var(--text);backdrop-filter:blur(8px)}
.cinematic-facts{display:flex;flex-wrap:wrap;gap:0;margin-top:1.1rem;border-top:1px solid rgba(211,178,110,.28);padding-top:1rem}.cinematic-facts div{display:grid;gap:.12rem;padding:0 1.5rem;border-right:1px solid rgba(211,178,110,.25)}.cinematic-facts div:first-child{padding-left:0}.cinematic-facts div:last-child{border:0}.cinematic-facts strong{color:var(--gold);font-family:'Cormorant Garamond',serif;font-size:1.9rem;line-height:1}.cinematic-facts span{color:#c9c4bb;font-size:.72rem;text-transform:uppercase;letter-spacing:.07em}
.cinematic-devotion{align-self:end;padding:1.3rem;border:1px solid rgba(211,178,110,.35);border-radius:18px;background:rgba(8,14,18,.66);backdrop-filter:blur(14px);box-shadow:0 18px 45px rgba(0,0,0,.25)}.devotion-label{color:var(--gold);text-transform:uppercase;letter-spacing:.11em;font-size:.72rem;font-weight:800}.cinematic-devotion p{color:#eee8dc;font-family:'Cormorant Garamond',serif;font-size:1.5rem;line-height:1.16;margin:.65rem 0 1rem}.cinematic-devotion a{color:var(--gold);font-size:.82rem;font-weight:800}
.cinematic-intro{display:grid;grid-template-columns:90px 1fr;gap:2rem;align-items:start;padding-top:5rem}.section-number{font-family:'Cormorant Garamond',serif;color:var(--gold);font-size:2.2rem;border-top:1px solid var(--line);padding-top:.75rem}.cinematic-intro h2{max-width:14ch;font-size:clamp(2.8rem,5vw,4.6rem);margin:1rem 0}.cinematic-intro p{color:var(--muted);max-width:62ch;line-height:1.7;font-size:1.08rem}
.explore-card{position:relative;overflow:hidden;min-height:240px;padding:1.5rem;display:flex;flex-direction:column;justify-content:flex-end;transition:transform .25s ease,border-color .25s ease}.explore-card:hover{transform:translateY(-4px);border-color:rgba(211,178,110,.56)}.explore-card::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 88% 0%,rgba(211,178,110,.13),transparent 40%);pointer-events:none}.explore-icon{margin-bottom:auto;color:var(--gold);font-family:'Cormorant Garamond',serif;font-size:2rem;letter-spacing:.16em}.explore-card h3{font-size:2rem}.explore-card p{margin-bottom:0}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1!important;transform:none!important;transition:none!important}.explore-card{transition:none}}
@media(max-width:820px){.home-cinematic-hero{min-height:730px;grid-template-columns:1fr;padding:2rem 1.25rem;border-radius:24px;margin-top:.8rem}.cinematic-backdrop{background-image:linear-gradient(0deg,rgba(4,9,12,.98) 0%,rgba(4,9,12,.74) 58%,rgba(4,9,12,.18) 100%),url('./saint-charbel.jpg');background-position:57% 20%}.home-cinematic-hero h1{font-size:clamp(3rem,15vw,4.8rem)}.cinematic-devotion{display:none}.cinematic-facts{gap:.85rem}.cinematic-facts div{padding:0 .85rem}.cinematic-facts span{font-size:.62rem}.cinematic-intro{grid-template-columns:1fr;gap:.75rem;padding-top:3rem}.section-number{width:60px}}


/* Joey review revision: warm cream, stone, and muted bronze */

body{background:radial-gradient(circle at 8% 0%,#3a332d 0,transparent 34%),radial-gradient(circle at 100% 15%,#2b2621 0,transparent 32%),linear-gradient(160deg,#171411 0%,#211d19 56%,#181512 100%)}
.topbar{background:rgba(25,22,19,.9);border-bottom-color:rgba(205,190,171,.16)}
.links a.active,.links a:hover{background:rgba(205,190,171,.12)}
.brand-mark{color:#b39a7c;border-color:rgba(205,190,171,.24)}
.home-cinematic-hero{border-color:rgba(205,190,171,.26);box-shadow:0 34px 80px rgba(12,10,8,.46)}
.cinematic-backdrop{filter:sepia(.16) saturate(.72) contrast(1.04);background-image:linear-gradient(90deg,rgba(22,19,16,.97) 0%,rgba(28,24,20,.84) 43%,rgba(25,21,18,.16) 76%),linear-gradient(0deg,rgba(20,17,14,.94) 0%,transparent 54%),url('./saint-charbel.jpg')}
.home-cinematic-hero::before{background:radial-gradient(circle at 72% 42%,rgba(188,164,135,.12),transparent 35%)}
.kicker{color:#b8a184;border-color:rgba(205,190,171,.26)}
.cinematic-eyebrow{color:#d8ccbc}.cinematic-lede{color:#ddd5cb}
.btn.primary{background:linear-gradient(180deg,#ddd0bd,#bda98f);color:#2c251e;box-shadow:none}
.btn.glass{background:rgba(29,25,21,.5);border-color:rgba(238,229,216,.34);color:#f3ede3}
.cinematic-facts{border-top-color:rgba(205,190,171,.25)}.cinematic-facts div{border-right-color:rgba(205,190,171,.22)}.cinematic-facts strong{color:#bca181}.cinematic-facts span{color:#cfc5b8}
.cinematic-devotion{border-color:rgba(205,190,171,.28);background:rgba(31,27,23,.7)}.devotion-label,.cinematic-devotion a,.section-number,.explore-icon{color:#b69a78}
.card{border-color:rgba(205,190,171,.22);background:linear-gradient(180deg,rgba(50,44,38,.82),rgba(32,28,24,.9));box-shadow:0 16px 40px rgba(10,8,6,.25)}
.metric{border-color:rgba(205,190,171,.2);background:rgba(10,8,6,.15)}.metric .num{color:#b69a78}
.explore-card:hover{border-color:rgba(205,190,171,.48)}.explore-card::before{background:radial-gradient(circle at 88% 0%,rgba(205,190,171,.11),transparent 40%)}
@media(max-width:820px){.cinematic-backdrop{background-image:linear-gradient(0deg,rgba(22,19,16,.98) 0%,rgba(26,22,18,.73) 58%,rgba(24,20,17,.16) 100%),url('./saint-charbel.jpg')}}



/* Homepage A/B review: card layout vs open layout */
.concept-switcher{position:sticky;top:78px;z-index:24;width:fit-content;margin:.75rem auto 0;padding:.35rem;display:flex;align-items:center;gap:.25rem;border:1px solid var(--theme-line);border-radius:999px;background:rgba(29,26,23,.92);backdrop-filter:blur(12px);box-shadow:0 8px 26px var(--theme-shadow)}
.concept-switcher span{padding:0 .65rem;color:var(--theme-ink-soft);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.concept-switcher a{padding:.48rem .75rem;border-radius:999px;color:var(--theme-ink-soft);font-size:.78rem;font-weight:700}.concept-switcher a.active{background:var(--theme-button);color:var(--theme-button-ink)}
.layout-open .hero-grid{grid-template-columns:minmax(260px,.72fr) minmax(0,1.3fr);gap:clamp(2rem,6vw,5rem);align-items:center;padding-top:5rem;padding-bottom:5rem;border-top:1px solid var(--theme-line-soft);border-bottom:1px solid var(--theme-line-soft)}
.layout-open .open-photo{min-height:520px;overflow:hidden;border-radius:0}.layout-open .open-photo img{width:100%;height:100%;min-height:520px;object-fit:cover;filter:sepia(.1) saturate(.78) contrast(1.04)}
.layout-open .open-info{padding:0;background:none;border:0;box-shadow:none}.layout-open .open-info h3{font-size:clamp(3rem,6vw,5.2rem);margin-bottom:1.2rem}.layout-open .metric-grid{grid-template-columns:1fr;gap:0}.layout-open .metric{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:1rem;padding:1.05rem 0;border:0;border-top:1px solid var(--theme-line-soft);border-radius:0;background:none}.layout-open .metric:last-child{border-bottom:1px solid var(--theme-line-soft)}.layout-open .metric .num{font-size:2.5rem}.layout-open .info-card>p{font-size:1.08rem;line-height:1.75;margin:1.6rem 0;color:var(--theme-ink-soft)}
.layout-open .grid-2{grid-template-columns:1fr;gap:0;border-top:1px solid var(--theme-line-soft)}.layout-open .explore-card{min-height:auto;padding:2rem 0;display:grid;grid-template-columns:80px minmax(220px,.75fr) minmax(0,1.25fr);gap:1.5rem;align-items:start;border:0;border-bottom:1px solid var(--theme-line-soft);border-radius:0;background:none;box-shadow:none}.layout-open .explore-card::before{display:none}.layout-open .explore-card:hover{transform:none;border-color:var(--theme-line-soft)}.layout-open .explore-icon{margin:0;font-size:1.5rem}.layout-open .explore-card h3{font-size:clamp(1.8rem,3vw,2.6rem)}.layout-open .explore-card p{margin:0}.layout-open .section>h2,.layout-open .section>.section-sub{max-width:760px}
@media(max-width:820px){.concept-switcher{top:132px;max-width:calc(100% - 2rem)}.concept-switcher span{display:none}.layout-open .hero-grid{grid-template-columns:1fr;gap:1.6rem;padding-top:3rem;padding-bottom:3rem}.layout-open .open-photo,.layout-open .open-photo img{min-height:360px}.layout-open .metric{grid-template-columns:82px 1fr}.layout-open .explore-card{grid-template-columns:42px 1fr;gap:.8rem}.layout-open .explore-card p{grid-column:2}}


/* Open homepage v2: fully edge-to-edge editorial, no rounded containers */
.layout-open .site-shell{width:min(1320px,100% - 2.4rem)}
.layout-open .home-cinematic-hero{width:100vw;max-width:none;margin:0 calc(50% - 50vw);min-height:calc(100vh - 78px);border:0;border-radius:0;box-shadow:none;padding-left:max(clamp(2rem,8vw,8rem),calc((100vw - 1320px)/2));padding-right:max(clamp(2rem,8vw,8rem),calc((100vw - 1320px)/2))}
.layout-open .cinematic-backdrop{border-radius:0}
.layout-open .cinematic-devotion{border:0;border-left:1px solid var(--theme-line);border-radius:0;background:rgba(29,26,23,.48);box-shadow:none;padding-left:1.5rem}
.layout-open .kicker{border:0;border-radius:0;padding:.25rem 0;border-bottom:1px solid var(--theme-line)}
.layout-open .btn{border-radius:0}
.layout-open .concept-switcher{position:relative;top:auto;width:100%;margin:0;padding:.55rem max(1.2rem,calc((100vw - 1180px)/2));justify-content:flex-end;border:0;border-bottom:1px solid var(--theme-line-soft);border-radius:0;background:var(--theme-page-deep);box-shadow:none}
.layout-open .concept-switcher a{border-radius:0;border-bottom:1px solid transparent}.layout-open .concept-switcher a.active{background:none;color:var(--theme-ink);border-bottom-color:var(--theme-ink)}
.layout-open .open-photo{width:100vw;max-width:none;margin-left:calc(50% - 50vw);height:64vh;min-height:520px}.layout-open .open-photo img{min-height:520px}
.layout-open .open-info{padding:2rem 0}
.layout-open .cta-row .btn{background:transparent;border:0;border-bottom:1px solid var(--theme-line);padding-left:0;padding-right:0;margin-right:1.1rem}
@media(max-width:820px){.layout-open .site-shell{width:min(100% - 2rem,100%)}.layout-open .home-cinematic-hero{min-height:calc(100vh - 133px);padding:3rem 1.25rem}.layout-open .concept-switcher{padding:.5rem 1rem}.layout-open .open-photo{height:48vh;min-height:360px}.layout-open .open-photo img{min-height:360px}.layout-open .cinematic-facts div{border-right:0;border-bottom:1px solid var(--theme-line-soft);padding:.65rem 0}.layout-open .cinematic-facts{display:grid}.layout-open .cinematic-actions{display:grid}.layout-open .cinematic-actions .btn{width:fit-content}}


.layout-open{overflow-x:hidden}


html:has(body.layout-open){overflow-x:clip}

@media(min-width:821px){.layout-open .home-cinematic-hero,.layout-open .open-photo{width:calc(100vw - 16px);margin-left:calc(50% - 50vw + 8px)}}


/* Site-wide bubble-free editorial treatment */
main .card:not(.photo-card):not(.meditation-image-card),
main .story,main .practice,main .update,main .policy-card,main .source-card,main .mini-section,main .mini-item,main .testimony-card{
  border-left:0;border-right:0;border-top:1px solid var(--theme-line-soft);border-bottom:1px solid var(--theme-line-soft);border-radius:0;background:transparent;box-shadow:none;
}
main .grid-2{gap:0}main .grid-2>.card,main .grid-2>.story,main .grid-2>.practice,main .grid-2>.update{padding:1.7rem 0}
.hero .kicker,.section>.kicker,.meditation-hero>.kicker{border:0;border-radius:0;padding:.25rem 0;border-bottom:1px solid var(--theme-line)}
.gallery-card{border:0;border-radius:0;background:transparent}.gallery-card img{border-radius:0}.gallery-card figcaption{padding-left:0;padding-right:0}
.gallery-toolbar .btn,.cta-row .btn{border-radius:0}
.step-list,.mystery-source-panel,.prayer-live-panel,.prayer-assist-panel,.mini-reflection{border-left:0;border-right:0;border-radius:0;background:transparent}
.mystery-source-card{border-left:0;border-right:0;border-radius:0;background:transparent;padding-left:0;padding-right:0}
/* Functional inputs, playback controls, selected states, and lightboxes keep containment for usability. */
@media(max-width:820px){main .grid-2>.card,main .grid-2>.story,main .grid-2>.practice,main .grid-2>.update{padding:1.35rem 0}.gallery-grid{gap:1.2rem}}


/* Complete homepage composition fix after full-page review */
.layout-open .hero-grid{grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);gap:clamp(2.5rem,5vw,5rem);width:100%;max-width:1180px;margin-inline:auto;align-items:center;overflow:visible}
.layout-open .open-photo{width:100%;max-width:100%;margin:0;height:clamp(560px,62vw,720px);min-height:560px;position:relative;overflow:hidden}
.layout-open .open-photo img{width:100%;height:100%;min-height:0;display:block;object-fit:cover;object-position:48% 32%;filter:sepia(.12) saturate(.74) contrast(1.08) brightness(.82)}
.layout-open .open-info{position:relative;z-index:2;padding:2.5rem 0;color:var(--theme-ink)}
.layout-open .open-info h3{color:var(--theme-ink);text-shadow:none}
.layout-open .open-info p,.layout-open .open-info .metric .label{color:var(--theme-ink-soft);opacity:1}
.layout-open .open-info .metric .num{color:#d4b58e;opacity:1}
.layout-open .open-info .metric{border-color:rgba(205,190,171,.28)}
.layout-open .open-info .cta-row{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.layout-open .open-info .cta-row .btn{color:var(--theme-ink);opacity:1;margin:0}
.layout-open .cinematic-intro{max-width:980px;margin-inline:auto;padding-block:5rem}
.layout-open main>.section:last-child{max-width:1180px;margin-inline:auto;padding-bottom:6rem}
.layout-open .explore-card p{max-width:72ch;color:var(--theme-ink-soft)}
@media(min-width:821px) and (max-width:1100px){.layout-open .hero-grid{grid-template-columns:minmax(280px,.75fr) minmax(380px,1.25fr);gap:2rem}.layout-open .open-photo{height:560px}.layout-open .open-info h3{font-size:3.8rem}}
@media(max-width:820px){.layout-open .hero-grid{grid-template-columns:1fr;gap:2rem;width:100%;padding-top:3.25rem}.layout-open .open-photo{width:100%;height:min(128vw,520px);min-height:380px;margin:0}.layout-open .open-info{padding:0 0 3rem}.layout-open .open-info h3{font-size:clamp(2.8rem,14vw,4.3rem)}.layout-open .open-info .metric{grid-template-columns:76px 1fr}.layout-open .open-info .cta-row{display:grid;justify-items:start}.layout-open .cinematic-intro{padding-block:3.25rem}}


/* Souvenirs storefront */
.souvenirs-page{background:var(--theme-page);color:var(--theme-ink)}
.souvenir-shell{padding-block:clamp(2rem,6vw,5rem)}
.souvenir-hero{min-height:min(70vh,720px);display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);align-items:center;gap:clamp(2rem,7vw,7rem);border-top:1px solid var(--theme-line-soft);border-bottom:1px solid var(--theme-line-soft)}
.souvenir-hero-copy{max-width:760px;padding-block:clamp(4rem,9vw,8rem)}
.souvenir-hero h1{margin:.25rem 0 1rem;font-size:clamp(4.5rem,12vw,10rem);line-height:.8;letter-spacing:-.055em}
.souvenir-hero p,.souvenir-store-heading p,.souvenir-principles p{max-width:700px;color:var(--theme-ink-soft);font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.8}
.souvenir-mark{display:grid;place-items:center;min-height:340px;border-left:1px solid var(--theme-line-soft);color:var(--theme-accent);font-size:clamp(6rem,14vw,11rem)}
.souvenir-store{padding-block:clamp(4rem,8vw,7rem)}
.souvenir-store-heading,.souvenir-principles{display:grid;grid-template-columns:90px minmax(0,1fr);gap:clamp(1.5rem,4vw,4rem);align-items:start}
.souvenir-store-heading h2,.souvenir-principles h2{margin:.2rem 0 1rem;max-width:900px;font-size:clamp(2.7rem,6vw,5.5rem);line-height:.95}
.souvenir-empty{margin-top:clamp(3rem,7vw,6rem);display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(1.25rem,4vw,3rem);align-items:center;padding:clamp(1.5rem,4vw,3rem) 0;border-top:1px solid var(--theme-line-soft);border-bottom:1px solid var(--theme-line-soft)}
.souvenir-empty[hidden],.souvenir-shopify[hidden]{display:none}
.souvenir-empty-symbol{display:grid;place-items:center;width:clamp(72px,10vw,112px);aspect-ratio:1;border:1px solid var(--theme-line);border-radius:50%;color:var(--theme-accent);font-size:2.25rem}
.souvenir-empty h3{margin:0 0 .6rem;font-size:clamp(1.7rem,3vw,2.5rem)}
.souvenir-empty p{margin:0;max-width:740px;color:var(--theme-ink-soft);line-height:1.75}
.souvenir-shopify{margin-top:4rem}
.souvenir-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,3vw,2rem)}
.souvenir-principles{padding-block:clamp(4rem,8vw,7rem);border-top:1px solid var(--theme-line-soft)}
@media(max-width:820px){.souvenir-hero{grid-template-columns:1fr;min-height:auto}.souvenir-mark{min-height:180px;border-left:0;border-top:1px solid var(--theme-line-soft)}.souvenir-store-heading,.souvenir-principles{grid-template-columns:1fr}.souvenir-product-grid{grid-template-columns:1fr}.souvenir-empty{grid-template-columns:1fr}.souvenir-hero h1{font-size:clamp(4rem,24vw,7rem)}}



/* Protected testimony intake and moderation */
.form-card{max-width:860px;margin-inline:auto}.testimony-form{display:grid;gap:1rem}.testimony-form label{display:grid;gap:.45rem;color:var(--theme-ink-soft);font-weight:700}.testimony-form input,.testimony-form textarea,.testimony-form select{width:100%;border:1px solid var(--theme-line);border-radius:0;background:rgba(10,8,6,.24);color:var(--theme-ink);padding:.85rem 1rem;font:inherit}.testimony-form textarea{resize:vertical;min-height:220px}.testimony-form input:focus,.testimony-form textarea:focus,.testimony-form select:focus{outline:2px solid var(--theme-accent);outline-offset:2px}.inline-check{grid-template-columns:auto 1fr!important;align-items:start}.inline-check input{width:auto;margin-top:.25rem}.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.security-note{display:grid;grid-template-columns:minmax(130px,.32fr) 1fr;gap:1rem;padding:1rem 0;margin:0 auto 1.5rem;max-width:860px;border-top:1px solid var(--theme-line);border-bottom:1px solid var(--theme-line);color:var(--theme-ink-soft);line-height:1.6}.security-note strong{color:var(--theme-ink)}.submit-status{min-height:1.5em;color:var(--theme-ink-soft)}.submit-status.ok{color:var(--theme-success)}.submit-status.warn{color:var(--theme-warning)}.submit-status.error{color:#e0a39a}.testimony-grid{display:grid;gap:1rem}.admin-card{padding-block:1.5rem}.admin-card .source-meta{overflow-wrap:anywhere}@media(max-width:680px){.security-note{grid-template-columns:1fr}.testimony-form .cta-row{display:grid;justify-items:start}}
