:root {
  color-scheme: light;
  --ink: #272321;
  --ink-soft: #6c625d;
  --burgundy: #a84643;
  --burgundy-dark: #823431;
  --rose-wash: #f3e5e1;
  --cream: #eee9de;
  --paper: #fffdfa;
  --line: rgba(96, 70, 62, 0.17);
  --danger: #8b3d35;
  --success: #435837;
  --surface: #fffdfa;
  --surface-muted: #f7f1ea;
  --shadow: 0 18px 60px rgba(70, 51, 44, 0.09);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --focus-ring: 0 0 0 3px #f6f1e9, 0 0 0 6px rgba(130, 52, 49, 0.78);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-height: 100%; overflow-x: clip; background: var(--cream); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(248, 244, 236, 0.72), rgba(242, 236, 226, 0.78)),
    url("images/scripture-background.webp") center top / cover fixed no-repeat,
    #f2ece2;
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; }
button { color: inherit; }
a { text-underline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; border-radius: 6px; color: white; background: var(--burgundy-dark); transform: translateY(-150%); transition: transform 160ms var(--ease-out); }
.skip-link:focus { transform: translateY(0); }
:where(a, button, textarea, input, summary):focus-visible { outline: 0; box-shadow: var(--focus-ring); }
:where(#share, #verseToday, #prayToday, #discoverToday) { scroll-margin-top: 24px; }

.page-shell {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 72px;
  margin-top: 16px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-top: 2px solid rgba(168, 70, 67, 0.52);
  border-radius: 9px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: 0 10px 32px rgba(70, 51, 44, 0.055);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--burgundy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Gelasio", Georgia, serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; object-fit: contain; }
.small-cross { color: var(--burgundy); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 8px 11px;
  color: var(--ink-soft);
  background: transparent;
  text-decoration: none;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px; border-radius: 2px; background: var(--burgundy); transform: translateX(-50%); transition: width 180ms var(--ease-out); }
.nav-link.is-active { color: var(--burgundy-dark); font-weight: 600; background: transparent; }
.nav-link.is-active::after { width: 24px; }
.nav-link:active { transform: scale(0.97); }
.header-guidance { min-height: 42px; flex: 0 0 auto; border-radius: 999px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--paper); background: var(--burgundy); text-decoration: none; font-size: 0.86rem; font-weight: 600; transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.header-guidance:active { transform: scale(0.97); }

.quiet-button, .dialog-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.quiet-button:active, .dialog-close:active, .send-button:active, .language-option:active {
  transform: scale(0.97);
}

main { flex: 1; padding: 68px 0 50px; }

.intro {
  max-width: 1400px;
  min-height: 470px;
  margin: 0 auto 34px;
  padding: clamp(28px, 7vw, 70px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(96, 70, 62, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.91) 0%, rgba(255, 253, 249, 0.77) 50%, rgba(255, 253, 249, 0.38) 100%),
    url("images/hero-still-waters.webp") center / cover no-repeat;
  box-shadow: 0 22px 70px rgba(70, 51, 44, 0.12);
  text-align: left;
}
.intro-copy { width: min(100%, 700px); min-width: 0; margin-right: auto; }
.intro h1 { margin-inline: 0; max-width: 680px; }
.intro .lede { margin-inline: 0; max-width: 560px; }
.journey-nav { width: 100%; max-width: 1240px; min-width: 0; margin: 0 auto 52px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.journey-nav a { min-height: 56px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; gap: 9px; border-right: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-weight: 600; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.journey-nav a:last-child { border-right: 0; }
.journey-nav a:active { transform: scale(0.98); }
.journey-nav span { color: var(--burgundy); font-family: "Gelasio", Georgia, serif; font-size: 0.76rem; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--burgundy);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: "Gelasio", Georgia, serif; }
h1 {
  margin: 0 auto;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(2.35rem, 6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.lede {
  max-width: 590px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

.daily-reading {
  max-width: 1240px;
  margin: 84px auto 0;
  padding: 0 0 30px;
  border-block: 1px solid var(--line);
  text-align: center;
}
.week-picker { margin-bottom: 34px; display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); }
.week-day { min-width: 0; min-height: 72px; border: 0; border-right: 1px solid var(--line); padding: 10px 5px 8px; display: grid; place-content: center; gap: 2px; color: var(--ink-soft); background: transparent; cursor: pointer; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.week-day:last-child { border-right: 0; }
.week-day span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }
.week-day strong { font-family: "Gelasio", Georgia, serif; font-size: 1rem; font-weight: 400; }
.week-day em { color: var(--burgundy); font-size: 0.58rem; font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.week-day.is-active { color: var(--burgundy-dark); background: var(--rose-wash); }
.week-day:active { transform: scale(0.97); }
.daily-slide { min-height: 330px; padding: 4px clamp(22px, 7vw, 72px) 10px; display: flex; flex-direction: column; justify-content: center; touch-action: pan-y; }
.daily-slide.is-changing { animation: verse-in 220ms var(--ease-out) both; }
@keyframes verse-in { from { opacity: 0.25; transform: translateX(7px); } to { opacity: 1; transform: translateX(0); } }
.daily-date {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 7px 12px 6px;
  border-radius: 4px;
  color: white;
  background: var(--burgundy);
  font-family: "Gelasio", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.daily-reading .eyebrow { margin-bottom: 18px; }
.daily-reading blockquote {
  max-width: 880px;
  margin: 0 auto;
  color: var(--ink);
  font-family: "Gelasio", Georgia, serif;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  line-height: 1.7;
  text-wrap: balance;
}
.daily-reference { margin: 22px 0 4px; color: var(--burgundy); font-family: "Gelasio", Georgia, serif; font-weight: 600; }
.daily-translation { margin: 0; color: var(--ink-soft); font-size: 0.72rem; }
.daily-slider-actions { margin: 12px auto 0; display: flex; align-items: center; justify-content: center; gap: 18px; }
.daily-slider-actions button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--burgundy); background: var(--paper); cursor: pointer; transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.daily-slider-actions button:active { transform: scale(0.94); }
.daily-slider-actions span { min-width: 42px; color: var(--ink-soft); font-size: 0.72rem; }

.home-section { max-width: 1240px; margin: 96px auto 0; }
.section-heading { max-width: 620px; margin: 0 auto var(--space-4); text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.35rem); font-weight: 400; }
.section-heading > p:last-child { margin: 10px auto 0; color: var(--ink-soft); line-height: 1.6; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading::after { content: ""; width: 40px; height: 1px; margin: 20px auto 0; display: block; background: var(--burgundy); opacity: 0.55; }
.practice-grid, .discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.practice-card, .discovery-card, .rhythm-card { border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 253, 250, 0.94); box-shadow: 0 10px 32px rgba(70, 51, 44, 0.045); }
.practice-card, .discovery-card { min-height: 350px; padding: clamp(24px, 4vw, 34px); }
.card-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-kicker { margin: 0 0 8px; color: var(--burgundy); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.practice-card h3, .discovery-card h2, .rhythm-card h2, .seasonal-card h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.72rem); font-weight: 400; line-height: 1.35; }
.time-chip { flex: 0 0 auto; border-radius: 999px; padding: 5px 9px; color: var(--ink-soft); background: #f4eee7; font-size: 0.7rem; font-weight: 600; }
.lectio-card { display: flex; flex-direction: column; }
.lectio-art { width: 100%; height: 124px; margin-top: 19px; border-radius: 9px; object-fit: cover; object-position: center 59%; }
.lectio-progress { margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lectio-progress span { height: 3px; border-radius: 99px; background: #e5dbd5; transition: background-color 180ms var(--ease-out); }
.lectio-progress span.is-active { background: var(--burgundy); }
.lectio-content { flex: 1; }
.lectio-step { margin: 0 0 8px; color: var(--burgundy); font-weight: 600; }
.lectio-instruction { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.lectio-content blockquote { max-height: 142px; overflow-y: auto; margin: 16px 0 0; padding-left: 16px; border-left: 1px solid var(--burgundy); font-family: "Gelasio", Georgia, serif; font-size: 1rem; line-height: 1.7; }
.lectio-content textarea { width: 100%; min-height: 94px; margin-top: 16px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; padding: 12px; outline: none; color: var(--ink); background: #fffdfa; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.lectio-content textarea:focus { border-color: rgba(168, 70, 67, 0.5); box-shadow: 0 0 0 3px rgba(168, 70, 67, 0.08); }
.card-actions { min-height: 39px; margin-top: 24px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.compact-primary, .seasonal-action { min-height: 44px; border: 0; border-radius: 999px; padding: 10px 16px; color: white; background: var(--burgundy); cursor: pointer; text-decoration: none; font-weight: 600; transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.compact-primary:active, .seasonal-action:active { transform: scale(0.97); }
.text-button { min-height: 44px; border: 0; padding: 8px 10px; color: var(--ink-soft); background: transparent; cursor: pointer; }
.moment-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.moment-card::after { content: "✦"; position: absolute; right: 23px; bottom: 13px; color: rgba(168, 70, 67, 0.08); font-size: 5.2rem; }
.moment-prayer { flex: 1; margin: 24px 0; font-family: "Gelasio", Georgia, serif; font-size: 1.05rem; line-height: 1.75; }
.mark-prayed { width: fit-content; min-height: 44px; z-index: 1; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: var(--burgundy); background: var(--paper); cursor: pointer; font-weight: 600; transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.mark-prayed:active { transform: scale(0.97); }
.mark-prayed.is-complete { border-color: transparent; color: var(--burgundy-dark); background: var(--rose-wash); }
.need-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.need-card { min-height: 116px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 12px; display: grid; place-content: center; gap: 10px; color: var(--ink); background: rgba(255, 253, 250, 0.88); cursor: pointer; text-align: center; transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 140ms var(--ease-out); }
.need-card:active { transform: scale(0.98); }
.need-card > span { color: var(--burgundy); font-size: 1.2rem; }
.need-card strong { font-size: 0.87rem; font-weight: 600; }
.discovery-grid { max-width: 1240px; }
.discovery-card { min-height: 390px; }
.saint-card { position: relative; overflow: hidden; padding: 0; background: linear-gradient(145deg, rgba(255, 253, 250, 0.96), rgba(246, 238, 230, 0.96)); }
.saint-art { width: 100%; height: 168px; display: block; object-fit: cover; object-position: 73% 37%; }
.saint-content { padding: clamp(24px, 4vw, 34px); }
.saint-card::after { content: "✧"; position: absolute; right: 23px; top: 20px; color: rgba(168, 70, 67, 0.15); font-size: 2rem; }
.saint-type { margin: 11px 0 22px; color: var(--burgundy); font-size: 0.77rem; font-weight: 600; }
.saint-content > p:not(.card-kicker):not(.saint-type):not(.saint-prompt) { color: var(--ink-soft); line-height: 1.65; }
.saint-prompt { margin: 26px 0 0; padding-top: 19px; border-top: 1px solid var(--line); line-height: 1.55; }
.saint-prompt strong { color: var(--burgundy); }
.saint-source { display: inline-block; margin-top: 16px; color: var(--ink-soft); font-size: 0.7rem; }
.quiz-options { margin-top: 24px; display: grid; gap: 8px; }
.quiz-options button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.quiz-options button:active { transform: scale(0.99); }
.quiz-options button.is-correct { border-color: #80946f; color: #435837; background: #edf3e8; }
.quiz-options button.is-wrong { border-color: #b56e68; color: #743c37; background: #fbebea; }
.quiz-options button:disabled { cursor: default; }
.quiz-feedback { margin: 17px 0 0; color: var(--ink-soft); line-height: 1.5; }
.gratitude-card { display: flex; flex-direction: column; }
.gratitude-copy, .term-card > p:not(.card-kicker):not(.term-practice) { color: var(--ink-soft); line-height: 1.65; }
.gratitude-card textarea { width: 100%; min-height: 108px; margin-top: 14px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; outline: 0; color: var(--ink); background: var(--surface-muted); transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.gratitude-card textarea:focus { border-color: rgba(168, 70, 67, 0.58); box-shadow: 0 0 0 3px rgba(168, 70, 67, 0.1); }
.gratitude-card .card-actions { margin-top: auto; justify-content: space-between; }
.private-microcopy { color: var(--ink-soft); font-size: 0.7rem; }
.term-card { position: relative; display: flex; flex-direction: column; }
.term-card::after { content: "Aa"; position: absolute; right: 28px; top: 24px; color: rgba(168, 70, 67, 0.1); font-family: "Gelasio", Georgia, serif; font-size: 2.6rem; }
.term-practice { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.55; }
.term-practice strong { color: var(--burgundy); }
.term-link { width: fit-content; margin-top: auto; padding-top: 18px; }
.rhythm-card { max-width: 1240px; padding: clamp(25px, 4vw, 36px); display: grid; grid-template-columns: minmax(190px, 0.8fr) 1.2fr; align-items: center; gap: 30px 40px; }
.rhythm-card > div:first-child p:last-child { margin: 10px 0 0; color: var(--ink-soft); }
.rhythm-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.rhythm-day { display: grid; justify-items: center; gap: 7px; color: var(--ink-soft); font-size: 0.67rem; }
.rhythm-dot { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; background: #f8f3ed; }
.rhythm-day.is-complete .rhythm-dot { border-color: var(--burgundy); color: white; background: var(--burgundy); }
.rhythm-links { grid-column: 1 / -1; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.rhythm-links a { color: var(--burgundy); text-decoration: none; font-weight: 600; }
.seasonal-card { max-width: 1240px; min-height: 390px; margin: 96px auto 0; padding: clamp(34px, 7vw, 62px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border: 1px solid rgba(125, 83, 72, 0.18); border-radius: 16px; background: linear-gradient(90deg, rgba(255, 251, 246, 0.98) 0%, rgba(255, 251, 246, 0.93) 42%, rgba(255, 251, 246, 0.2) 72%), url("images/rosary-season.webp") 67% center / cover no-repeat; text-align: left; }
.seasonal-card h2 { max-width: 520px; font-size: clamp(1.7rem, 4vw, 2.55rem); }
.seasonal-card > p:not(.eyebrow) { max-width: 420px; margin: 16px 0 27px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }
.seasonal-action { display: inline-flex; align-items: center; gap: 10px; }

.companion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.companion-home { max-width: 1240px; margin-inline: auto; }
.companion-topbar { min-height: 53px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.companion-topbar .language-switch { border-bottom: 0; }
.widget-close { display: none; width: 44px; height: 44px; margin-right: 8px; border: 0; border-radius: 50%; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 1.5rem; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.widget-close:active { transform: scale(0.94); }

.language-switch {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.language-option {
  position: relative;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 8px 13px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.84rem;
  transition: color 180ms var(--ease-out), transform 140ms var(--ease-out);
}

.language-option::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: transparent; transition: background-color 180ms var(--ease-out); }
.language-option.is-active { color: var(--burgundy-dark); font-weight: 600; background: transparent; }
.language-option.is-active::after { background: var(--burgundy); }

.conversation {
  min-height: 104px;
  max-height: 104px;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 14px 24px;
  scroll-behavior: smooth;
}
.conversation::-webkit-scrollbar { display: none; }
.companion.has-conversation .conversation { min-height: 260px; max-height: 460px; padding-block: 24px; }

.welcome-card { max-width: 500px; }
.welcome-card p:first-of-type {
  margin: 4px 0 2px;
  font-family: "Gelasio", Georgia, serif;
  font-size: 1.2rem;
}
.welcome-note, .status-message { color: var(--ink-soft); font-size: 0.8rem; }

.user-message {
  width: fit-content;
  max-width: min(86%, 620px);
  margin: 28px 0 28px auto;
  padding: 13px 17px;
  border-radius: 18px 18px 5px 18px;
  background: var(--burgundy);
  color: white;
}
.user-message p { margin: 0; line-height: 1.55; }

.guide-response {
  animation: response-in 220ms var(--ease-out) both;
}

@keyframes response-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.reflection { margin: 0 0 20px; font-size: 1.04rem; line-height: 1.7; }
.passage-card {
  margin: 22px 0;
  padding: 30px clamp(20px, 5vw, 48px);
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: #fbf7f1;
  text-align: center;
}
.passage-card blockquote {
  margin: 0;
  font-family: "Gelasio", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.7;
}
.passage-card figcaption { margin-top: 17px; display: grid; gap: 3px; }
.passage-card figcaption strong { color: var(--burgundy-dark); font-size: 0.88rem; }
.passage-card figcaption span { color: var(--ink-soft); font-size: 0.72rem; }

.prayer-block, .next-step {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--burgundy);
}
.prayer-block h2, .next-step h2 { margin: 0 0 5px; font-size: 1rem; }
.prayer-block p, .next-step p { margin: 0; line-height: 1.6; color: var(--ink-soft); }
.urgent-response { padding: 20px; border-radius: 16px; background: #fff1ee; color: #652b25; }

.response-feedback { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.response-feedback > p:first-child { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.82rem; }
.feedback-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-button { min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: transparent; cursor: pointer; }
.feedback-button:disabled { cursor: wait; opacity: 0.55; }
.feedback-report { margin-top: 14px; display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.feedback-report[hidden] { display: none; }
.feedback-report label { display: grid; gap: 5px; color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.feedback-report select, .feedback-report textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--ink); background: var(--paper); font: inherit; font-weight: 400; }
.feedback-report textarea { resize: vertical; }
.feedback-report .feedback-consent { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.feedback-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--burgundy); }
.feedback-report > p, .feedback-status { margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; }
.feedback-report > div { display: flex; justify-content: flex-end; gap: 8px; }
.feedback-status { margin-top: 9px; }
.feedback-status.is-error { color: var(--danger); }

.composer {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  cursor: text;
}
.composer-invitation { margin: 0 6px 6px; display: flex; align-items: center; gap: 7px; color: var(--burgundy-dark); font-size: 0.78rem; }
.composer-invitation span { color: var(--burgundy); }

.composer textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  max-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  padding: 12px 16px;
  background: var(--surface-muted);
  cursor: text;
  color: var(--ink);
  line-height: 1.55;
}
.composer textarea:focus { border-color: rgba(168, 70, 67, 0.58); box-shadow: 0 0 0 3px rgba(168, 70, 67, 0.1); background: var(--paper); }
.composer textarea::placeholder { color: #89938d; }
.composer-footer { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.companion:has(.composer textarea:focus) { border-color: rgba(168, 70, 67, 0.48); box-shadow: 0 18px 60px rgba(70, 51, 44, 0.12), 0 0 0 3px rgba(168, 70, 67, 0.07); }
.privacy-note { color: var(--ink-soft); font-size: 0.76rem; text-underline-offset: 3px; }
.send-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--burgundy);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out), opacity 180ms var(--ease-out);
}
.send-button:disabled { cursor: wait; opacity: 0.55; }

.status-message { margin: 22px 0; }
.status-message::before { content: "✦"; margin-right: 8px; color: var(--burgundy); }
.status-message.is-error { color: var(--danger); }
.boundary-note { margin: 36px auto 0; max-width: 700px; color: var(--ink-soft); text-align: center; font-size: 0.76rem; line-height: 1.55; }

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--ink-soft); text-underline-offset: 4px; }
.trust-main { width: min(920px, 100%); margin: 0 auto; padding: 86px 20px 120px; }
.trust-header { max-width: 760px; }
.trust-header h1 { margin: 0; max-width: 16ch; font-family: "Gelasio", Georgia, serif; font-size: clamp(2.35rem, 6vw, 4.2rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.trust-header p { max-width: 65ch; margin: 22px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.trust-nav { margin: 42px 0 54px; display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.trust-nav a { position: relative; padding: 12px 0; color: var(--ink-soft); text-decoration: none; }
.trust-nav a[aria-current="page"] { color: var(--burgundy-dark); font-weight: 600; }
.trust-nav a[aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--burgundy); }
.trust-article { max-width: 72ch; }
.trust-article section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.trust-article h2 { margin: 0 0 12px; font-family: "Gelasio", Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.trust-article p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }

.contact-main { width: min(1120px, 100%); margin: 0 auto; padding: 86px 20px 120px; }
.contact-intro { max-width: 760px; }
.contact-intro h1 { margin: 0; max-width: 12ch; font-family: "Gelasio", Georgia, serif; font-size: clamp(2.35rem, 6vw, 4.2rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.contact-intro p { max-width: 65ch; margin: 22px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.contact-layout { margin-top: 64px; display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr); gap: clamp(48px, 8vw, 96px); align-items: start; }
.contact-details { padding-top: 4px; }
.contact-details h2, .contact-form-section h2 { margin: 0; font-family: "Gelasio", Georgia, serif; font-size: clamp(1.65rem, 4vw, 2.35rem); font-weight: 400; line-height: 1.35; }
.contact-temporary { width: fit-content; margin: 12px 0 28px; padding: 4px 8px; border-radius: 4px; color: var(--burgundy-dark); background: var(--rose-wash); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-details dl { margin: 0; }
.contact-details dl div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { color: var(--ink-soft); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-details dd { margin: 5px 0 0; color: var(--ink); font-family: "Gelasio", Georgia, serif; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-details h3 { margin: 40px 0 14px; font-family: "Gelasio", Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--burgundy); background: var(--paper); }
.social-link svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; }
.social-link svg rect, .social-link svg circle { fill: none; }
.social-link svg .social-dot { fill: currentColor; stroke: none; }
.social-link svg .social-play { fill: var(--paper); stroke: none; }
.social-link.is-disabled { opacity: 0.62; cursor: not-allowed; }
.contact-coming-soon { max-width: 34ch; margin: 12px 0 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.55; }
.contact-form-section { padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 250, 0.94); box-shadow: 0 18px 60px rgba(70, 51, 44, 0.09); }
.form-disclosure { margin: 10px 0 26px; color: var(--ink-soft); line-height: 1.6; }
.contact-form { display: grid; gap: 20px; }
.contact-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid rgba(96, 70, 62, 0.25); border-radius: 9px; padding: 12px 14px; color: var(--ink); background: var(--surface-muted); font: inherit; font-weight: 400; outline: none; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.contact-form input, .contact-form select { min-height: 48px; }
.contact-form textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--burgundy); background: var(--paper); box-shadow: 0 0 0 3px rgba(168, 70, 67, 0.13); }
.contact-form small { color: var(--ink-soft); font-size: 0.74rem; font-weight: 400; }
.contact-submit { min-height: 46px; width: fit-content; border: 0; border-radius: 999px; padding: 11px 18px; display: inline-flex; align-items: center; gap: 12px; color: var(--paper); background: var(--burgundy); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.contact-submit:active { transform: scale(0.97); }
.contact-status { margin: 0 0 24px; padding: 16px 18px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-muted); }
.contact-status strong { font-family: "Gelasio", Georgia, serif; font-weight: 600; }
.contact-status span, .contact-status ul { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.contact-status ul { padding-left: 20px; }
.contact-status.is-ready { border-color: rgba(67, 88, 55, 0.32); background: rgba(67, 88, 55, 0.07); }
.contact-status.is-error { border-color: rgba(139, 61, 53, 0.3); background: rgba(139, 61, 53, 0.06); }

.chat-widget { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 30; display: grid; justify-items: end; gap: 12px; }
.chat-widget-launcher { border: 0; padding: 4px; display: flex; align-items: flex-end; gap: 12px; background: transparent; cursor: pointer; animation: widget-float 4.8s ease-in-out infinite; transform-origin: bottom right; }
.chat-widget-launcher:active { transform: scale(0.97); }
.widget-bubble { position: relative; min-width: 242px; padding: 15px 18px; display: grid; gap: 3px; border: 1px solid rgba(96, 70, 62, 0.25); border-radius: 10px 10px 2px 10px; color: var(--ink); background: rgba(255, 253, 250, 0.97); box-shadow: 0 16px 42px rgba(70, 51, 44, 0.17); text-align: left; }
.widget-bubble::after { content: ""; position: absolute; right: -7px; bottom: 8px; width: 12px; height: 12px; border-top: 1px solid rgba(96, 70, 62, 0.25); border-right: 1px solid rgba(96, 70, 62, 0.25); background: var(--paper); transform: rotate(45deg); }
.widget-bubble strong { color: var(--burgundy); font-family: "Gelasio", Georgia, serif; font-size: 0.96rem; font-weight: 400; }
.widget-bubble > span { color: var(--ink-soft); font-size: 0.8rem; }
.widget-mark { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; border: 2px solid var(--burgundy); border-radius: 50% 50% 46% 54%; color: var(--burgundy); background: var(--cream); box-shadow: 0 16px 38px rgba(90, 40, 38, 0.28); }
.kristohanon-widget-mark { width: 72px; height: 72px; display: block; object-fit: contain; }
.chat-widget-panel { width: min(420px, calc(100vw - 24px)); max-height: min(690px, calc(100dvh - 112px)); overflow: hidden; border-radius: 14px; box-shadow: 0 24px 70px rgba(56, 37, 33, 0.24); }
.chat-widget-panel .companion { height: min(600px, calc(100dvh - 112px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 14px; }
.chat-widget-panel .widget-close { display: grid; place-items: center; }
.chat-widget-panel .conversation { min-height: 0; max-height: none; padding: 22px; }
.chat-widget-panel .welcome-card p:first-of-type { font-size: 1.3rem; }
.chat-widget-panel .composer textarea { min-height: 54px; max-height: 110px; }
.chat-widget-open { overflow: hidden; }
.chat-widget-open .chat-widget-launcher { animation: none; }
.chat-widget-open .widget-bubble { display: none; }

@keyframes widget-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.page-shell > footer {
  padding: 22px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.about-main { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); justify-content: space-between; align-items: start; gap: clamp(48px, 8vw, 108px); }
.about-story { min-width: 0; }
.about-story-header { padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.story-location { margin: 20px 0 0; color: var(--burgundy); font-weight: 600; }
.about-story h1 { max-width: 730px; margin: 0; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.about-lede { max-width: 660px; margin: 26px 0 0; color: var(--ink-soft); font-family: "Gelasio", Georgia, serif; font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.75; }
.story-section { margin-top: 64px; }
.story-section h2 { margin: 0 0 22px; font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 400; line-height: 1.3; }
.story-section p { max-width: 70ch; margin: 0 0 20px; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.85; }
.story-callout { margin: 68px 0; padding: 30px clamp(22px, 5vw, 44px); border-block: 1px solid rgba(168, 70, 67, 0.4); }
.story-callout p { margin: 0; color: var(--burgundy-dark); font-family: "Gelasio", Georgia, serif; font-size: clamp(1.3rem, 2.8vw, 1.75rem); font-style: italic; line-height: 1.65; }
.story-ending { margin-top: 68px; padding: clamp(28px, 5vw, 44px); border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 253, 250, 0.88); text-align: left; }
.story-ending p { max-width: 600px; margin: 0 0 24px; font-family: "Gelasio", Georgia, serif; font-size: clamp(1.25rem, 2.5vw, 1.6rem); line-height: 1.55; }
.story-action { min-height: 44px; border-radius: 999px; padding: 11px 17px; display: inline-flex; align-items: center; color: var(--paper); background: var(--burgundy); text-decoration: none; font-weight: 600; }
.about-trust { margin-top: 10px; padding-top: 24px; border-top: 2px solid rgba(168, 70, 67, 0.5); }
.about-trust h2 { margin: 0 0 16px; font-size: 1.45rem; font-weight: 400; line-height: 1.35; }
.about-trust h3 { margin: 30px 0 10px; font-size: 1.05rem; }
.about-trust p { margin: 0 0 15px; color: var(--ink-soft); line-height: 1.65; }
.about-trust .license-copy { font-size: 0.72rem; }
.text-link { color: var(--burgundy); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.rosary-main { padding-top: 58px; }
.rosary-hero { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.rosary-controls {
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.92);
}
.rosary-language { justify-content: center; }
.mystery-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.mystery-option {
  min-height: 58px;
  border: 0;
  padding: 11px;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
  font-weight: 600;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.mystery-option.is-active { color: var(--burgundy-dark); background: var(--rose-wash); }
.mystery-option:active { transform: scale(0.98); }
.today-chip {
  display: block;
  width: fit-content;
  margin: 4px auto 0;
  color: var(--burgundy);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rosary-guide {
  padding: clamp(22px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.rosary-progress-row { display: grid; grid-template-columns: auto minmax(150px, 1fr); align-items: center; gap: 28px; }
.step-kicker { margin: 0; color: var(--burgundy); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.step-count { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.8rem; }
.progress-track { overflow: hidden; height: 4px; border-radius: 999px; background: #e7ddd7; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--burgundy); transition: width 220ms var(--ease-out); }
.mystery-context {
  margin: 30px 0 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-block: 1px solid var(--line);
  background: #fbf7f1;
}
.mystery-number {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--burgundy);
  font-family: "Gelasio", Georgia, serif;
}
.mystery-context strong { display: block; font-family: "Gelasio", Georgia, serif; font-size: 0.94rem; }
.mystery-context div span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 0.75rem; }
.prayer-card { max-width: 760px; min-height: 330px; margin: 0 auto; padding: 46px 0 34px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.bead-label { min-height: 1.2em; margin: 0 0 10px; color: var(--burgundy); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.prayer-card h2 { margin: 0 0 22px; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 400; }
.prayer-text { margin: 0; font-family: "Gelasio", Georgia, serif; font-size: clamp(1.05rem, 2.1vw, 1.25rem); line-height: 1.85; }
.decade-beads { min-height: 28px; display: flex; justify-content: center; align-items: center; gap: clamp(7px, 2vw, 14px); }
.bead { width: 13px; height: 13px; border: 1px solid #bfaeaa; border-radius: 50%; background: var(--paper); transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.bead.is-complete { border-color: var(--burgundy); background: var(--burgundy); }
.bead.is-current { border-color: var(--burgundy); background: var(--rose-wash); transform: scale(1.45); }
.rosary-actions { margin-top: 34px; display: flex; justify-content: space-between; gap: 14px; }
.secondary-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 140ms var(--ease-out), opacity 160ms var(--ease-out);
}
.secondary-button:disabled { opacity: 0.35; cursor: default; }
.secondary-button:active { transform: scale(0.97); }
.reset-button { min-height: 44px; display: block; margin: 20px auto 0; border: 0; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 0.78rem; text-decoration: underline; text-underline-offset: 3px; }
.mystery-overview { max-width: 780px; margin: 58px auto 0; }
.mystery-overview h2 { margin: 0 0 24px; font-size: 1.75rem; font-weight: 400; }
.mystery-overview ol { margin: 0; padding: 0; list-style: none; counter-reset: mysteries; }
.mystery-overview li { counter-increment: mysteries; padding: 17px 0; display: grid; grid-template-columns: 32px 1fr auto; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); }
.mystery-overview li::before { content: counter(mysteries); color: var(--burgundy); font-family: "Gelasio", Georgia, serif; }
.mystery-overview li strong { font-family: "Gelasio", Georgia, serif; font-size: 0.95rem; }
.mystery-overview li span { color: var(--ink-soft); font-size: 0.76rem; }
.source-note { max-width: 720px; margin: 40px auto 0; color: var(--ink-soft); text-align: center; font-size: 0.74rem; line-height: 1.6; }

.prayers-main { padding-top: 58px; }
.prayers-hero { max-width: 780px; margin: 0 auto 38px; text-align: center; }
.prayer-tools { margin-bottom: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 250, 0.92); }
.prayer-language { justify-content: center; margin-bottom: 16px; }
.prayer-search { max-width: 620px; height: 48px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--burgundy); background: var(--paper); transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.prayer-search:focus-within { border-color: rgba(168, 70, 67, 0.5); box-shadow: 0 0 0 3px rgba(168, 70, 67, 0.09); }
.prayer-search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.prayer-search input::placeholder { color: #968b85; }
.prayer-categories { margin-top: 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.category-chip { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 0.78rem; font-weight: 600; transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.category-chip.is-active { border-color: transparent; color: var(--burgundy-dark); background: var(--rose-wash); }
.category-chip:active { transform: scale(0.97); }
.library-summary { margin: 0 2px 10px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 0.8rem; }
.library-summary p { margin: 0; }
.library-summary button { border: 0; padding: 7px 0; color: var(--burgundy); background: transparent; cursor: pointer; font-weight: 600; }
.prayer-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.library-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 30px rgba(70, 51, 44, 0.045); }
.library-card summary { min-height: 92px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.library-card summary::-webkit-details-marker { display: none; }
.library-card-heading strong { display: block; font-family: "Gelasio", Georgia, serif; font-size: 1rem; font-weight: 400; }
.library-card-heading > span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 0.77rem; line-height: 1.35; }
.details-icon { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--burgundy); font-size: 1.15rem; transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out); }
.library-card[open] .details-icon { transform: rotate(45deg); background: var(--rose-wash); }
.library-card-body { border-top: 1px solid var(--line); padding: 21px 20px 25px; background: #fdf9f4; }
.library-card-body p { margin: 0; white-space: pre-line; font-family: "Gelasio", Georgia, serif; font-size: 0.96rem; line-height: 1.8; }
.empty-library { margin: 54px auto; color: var(--ink-soft); text-align: center; }

@media (max-width: 1100px) {
  .page-shell { width: min(100% - 32px, 1440px); }
  .need-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .practice-grid, .discovery-grid { grid-template-columns: 1fr; }
  .practice-card, .discovery-card { min-height: 0; }
  .about-main { grid-template-columns: 1fr; }
  .about-trust { margin-top: 72px; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (hover: hover) and (pointer: fine) {
  .header-guidance:hover { background: var(--burgundy-dark); }
  .send-button:hover { background: var(--burgundy-dark); }
  .quiet-button:hover { color: var(--burgundy); }
  .nav-link:hover, .secondary-button:hover { color: var(--burgundy-dark); }
  .mystery-option:hover { color: var(--burgundy-dark); background: #f8efeb; }
  .category-chip:hover { border-color: rgba(168, 70, 67, 0.38); color: var(--burgundy-dark); }
  .library-card summary:hover .details-icon { background: var(--rose-wash); }
  .week-day:hover { color: var(--burgundy-dark); background: rgba(243, 229, 225, 0.55); }
  .daily-slider-actions button:hover { border-color: rgba(168, 70, 67, 0.42); color: var(--burgundy-dark); }
  .widget-close:hover { color: var(--burgundy-dark); background: var(--rose-wash); }
  .chat-widget-launcher:hover { animation-play-state: paused; }
  .journey-nav a:hover { color: var(--burgundy-dark); background: rgba(255, 253, 250, 0.58); }
  .compact-primary:hover, .seasonal-action:hover { background: var(--burgundy-dark); }
  .contact-submit:hover { background: var(--burgundy-dark); }
  .need-card:hover { border-color: rgba(168, 70, 67, 0.42); box-shadow: 0 13px 32px rgba(70, 51, 44, 0.08); }
  .quiz-options button:not(:disabled):hover, .mark-prayed:not(.is-complete):hover { border-color: rgba(168, 70, 67, 0.42); color: var(--burgundy-dark); }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 20px, 1440px); }
  .page-shell > footer { align-items: flex-start; flex-direction: column; }
  .site-header { min-height: 104px; margin-top: 10px; padding: 12px; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
  .brand { width: 100%; justify-content: center; }
  .site-nav { width: 100%; justify-content: center; }
  .header-guidance { min-height: 40px; padding: 9px 15px; }
  main { padding-top: 32px; }
  .intro { min-height: 500px; padding: 26px 22px; align-items: end; background: linear-gradient(0deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 253, 249, 0.83) 45%, rgba(255, 253, 249, 0.08) 78%), url("images/hero-still-waters.webp") 64% center / cover no-repeat; text-align: center; }
  .intro-copy { margin: 0; }
  .intro h1, .intro .lede { margin-inline: auto; }
  .intro h1 { max-width: 100%; font-size: clamp(2rem, 10vw, 2.65rem); overflow-wrap: anywhere; }
  .intro .lede { max-width: 100%; font-size: 1rem; }
  .conversation { padding: 12px 16px; }
  .companion.has-conversation .conversation { min-height: 230px; padding-block: 20px; }
  .companion { border-radius: 10px; }
  .composer-footer { align-items: flex-end; }
  .privacy-note { max-width: 88px; }
  .site-nav { gap: 2px; }
  .nav-link { padding-inline: 8px; font-size: 0.82rem; }
  .journey-nav { margin-bottom: 36px; grid-template-columns: repeat(2, 1fr); }
  .journey-nav a { min-width: 0; min-height: 48px; padding-inline: 6px; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
  .journey-nav a:nth-child(2) { border-right: 0; }
  .journey-nav a:nth-child(n + 3) { border-bottom: 0; }
  .mystery-picker { grid-template-columns: repeat(2, 1fr); }
  .rosary-progress-row { grid-template-columns: 1fr; gap: 14px; }
  .prayer-card { min-height: 370px; padding-block: 36px 24px; }
  .rosary-actions { align-items: stretch; }
  .rosary-actions > * { flex: 1; justify-content: center; }
  .mystery-overview li { grid-template-columns: 26px 1fr; }
  .mystery-overview li span { grid-column: 2; }
  .prayer-library { grid-template-columns: 1fr; }
  .prayer-tools { padding-inline: 12px; }
  .library-card summary { min-height: 82px; padding: 17px; }
  .contact-main { padding: 48px 4px 88px; }
  .contact-layout { margin-top: 48px; gap: 52px; }
  .contact-form-section { padding: 22px 18px; }
  .contact-field-row { grid-template-columns: 1fr; }
  .week-picker { overflow-x: auto; grid-template-columns: repeat(7, minmax(62px, 1fr)); scrollbar-width: none; }
  .week-picker::-webkit-scrollbar { display: none; }
  .week-day { min-height: 65px; }
  .daily-slide { min-height: 350px; padding-inline: 18px; }
  .chat-widget { right: max(10px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .widget-bubble { width: min(242px, calc(100vw - 104px)); min-width: 0; padding: 12px 14px; }
  .widget-mark { width: 68px; height: 68px; }
  .kristohanon-widget-mark { width: 64px; height: 64px; }
  .chat-widget-panel { width: calc(100vw - 20px); }
  .chat-widget-panel .companion { height: min(620px, calc(100dvh - 82px)); }
  .chat-widget-open .chat-widget-launcher { display: none; }
  .home-section, .seasonal-card { margin-top: 68px; }
  .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-card { min-height: 100px; }
  .rhythm-card { grid-template-columns: 1fr; gap: 24px; }
  .rhythm-week { gap: 5px; }
  .rhythm-dot { width: 27px; height: 27px; }
  .rhythm-links { flex-direction: column; gap: 11px; }
  .seasonal-card { padding-inline: 22px; }
  .seasonal-card { min-height: 500px; justify-content: flex-end; align-items: center; background: linear-gradient(0deg, rgba(255, 251, 246, 0.98) 0%, rgba(255, 251, 246, 0.91) 46%, rgba(255, 251, 246, 0.04) 76%), url("images/rosary-season.webp") 72% center / cover no-repeat; text-align: center; }
  .seasonal-card > p:not(.eyebrow) { margin-inline: auto; }
  .about-main { padding-top: 48px; }
  .about-story-header { padding-bottom: 36px; }
  .story-section { margin-top: 52px; }
  .story-callout { margin-block: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

