html:has(.lf-demo[open]) { overflow: hidden; }
.lf-demo {
  --demo-ink: #14264B;
  --demo-muted: #425976;
  --demo-blue: #2854E8;
  width: min(93vw, 57rem);
  max-width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 1px solid #D1DEEF;
  border-radius: 1.6rem;
  overflow: auto;
  background: #FFFFFF;
  color: var(--demo-ink);
  font-family: var(--sans, "Figtree", sans-serif);
  text-align: left;
  color-scheme: light;
  box-shadow: 0 32px 100px #273F6D36;
  overscroll-behavior: contain;
}
.lf-demo::backdrop { background: #A7B9DA73; backdrop-filter: blur(7px); }
.lf-demo *, .lf-demo *::before, .lf-demo *::after { box-sizing: border-box; }
.lf-demo :where(input, button, summary):focus-visible { outline: 3px solid #2854E8; outline-offset: 3px; }
.lf-demo-surface { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.lf-demo-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  display: grid; place-items: center; width: 2.65rem; height: 2.65rem;
  padding: 0; border: 1px solid #C2D1E6; border-radius: 50%;
  background: #FFFFFF; color: #243F69; cursor: pointer;
}
.lf-demo-close:hover { background: #EDF3FF; }
.lf-demo-close svg, .lf-church-icon svg, .lf-phone-tabs svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lf-demo-close svg { width: 1.05rem; height: 1.05rem; stroke-width: 1.8; }
.lf-demo-intro { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: clamp(2rem,4vw,3.8rem); }
.lf-demo-label, .lf-phone-label, .lf-demo .lf-phone-content .lf-phone-label {
  margin: 0; font-family: var(--sans, "Figtree", sans-serif); font-size: .75rem;
  line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; font-weight: 600;
}
.lf-demo-label { display: flex; align-items: center; gap: .65rem; color: var(--demo-blue); }
.lf-demo-label::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }
.lf-demo h2 {
  margin: 1rem 0 .85rem; max-width: 10em; font: 400 clamp(2.8rem, 4.7vw, 4.1rem)/.99 var(--serif, "Instrument Serif", Georgia, serif);
  letter-spacing: -.035em; text-transform: none; color: var(--demo-ink);
}
.lf-demo h2 em { font-weight: 400; color: var(--demo-blue); }
.lf-demo-lead { margin: 0; max-width: 30ch; font-size: 1.02rem; line-height: 1.58; color: var(--demo-muted); }
.lf-demo-fields { width: 100%; margin-top: 1.9rem; }
.lf-demo-fields > label, .lf-theme-field legend { display: block; padding: 0; font-size: .88rem; font-weight: 500; }
#lf-church-name {
  width: 100%; min-height: 2.85rem; margin-top: .45rem; border: 1px solid #A9BAD4; border-radius: .5rem;
  padding: .65rem .85rem; font: inherit; color: var(--demo-ink); background: #FAFCFF;
}
.lf-theme-field { min-width: 0; margin: 1.25rem 0 0; padding: 0; border: 0; }
.lf-swatches { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .55rem; }
.lf-swatches label {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 2.5rem; border: 1px solid #C7D4E6; border-radius: 5rem;
  padding: .38rem .72rem; font-size: .8rem; color: #263F64; cursor: pointer;
}
.lf-swatches label:has(:checked) { border-color: #5276DF; background: #EDF3FF; }
.lf-swatches label:has(:focus-visible) { outline: 2px solid #2854E8; outline-offset: 3px; }
.lf-swatches input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lf-swatches b { font-weight: 500; }
.lf-swatches span { width: .9rem; height: .9rem; border-radius: 50%; background: var(--swatch); border: 1px solid #ffffff57; }
.lf-demo-note { margin: 1.7rem 0 0; font-size: .81rem; line-height: 1.6; color: #4E6685; }
.lf-phone-stage {
  display: grid; place-items: center; padding: 3.75rem 1.6rem 2.5rem;
  background: radial-gradient(ellipse at 18% 62%,#CEE1FF,transparent 67%),radial-gradient(ellipse at 100% 12%,#F5DCF4,transparent 61%),radial-gradient(ellipse at 78% 98%,#C4F2E7,transparent 60%),#F4F7FF;
}
.lf-phone {
  width: min(17.5rem,100%); padding: .35rem; border: 1px solid #ADBED4; border-radius: 2.5rem; background: #C2D0E2;
  box-shadow: 0 19px 35px -14px #2B477D5C, inset 0 0 0 2px #DFE8F5;
  color-scheme: light;
  --phone-accent: #2854E8; --phone-wash: #E7EFFF;
}
.lf-phone[data-theme="sage"] { --phone-accent: #42614e; --phone-wash: #e2e9df; }
.lf-phone[data-theme="violet"] { --phone-accent: #65449E; --phone-wash: #F0E9FC; }
.lf-phone-display { min-height: 32rem; display: flex; flex-direction: column; overflow: hidden; border-radius: 2.05rem; background: #FFFFFF; color: #14264B; }
.lf-phone-status { height: 2.1rem; display: flex; align-items: center; justify-content: space-between; position: relative; padding: .2rem 1rem 0; color: #233B61; }
.lf-phone-status > span { font-size: .74rem; font-weight: 650; line-height: 1; }
.lf-phone-status i { position: absolute; left: 50%; top: .45rem; transform: translateX(-50%); width: 4rem; height: .95rem; border-radius: 2rem; background: #1B2D4A; }
.lf-church-header {
  display: flex; align-items: center; gap: .58rem; min-width: 0;
  margin-top: .4rem; padding: .45rem 1rem .9rem; border-bottom: 1px solid #DCE5F2;
}
.lf-church-icon { display: grid; place-items: center; flex: none; width: 1.78rem; height: 1.78rem; border-radius: .48rem; background: var(--phone-accent); color: #FFFFFF; }
.lf-church-icon svg { width: 1.15rem; height: 1.15rem; stroke-width: 1.45; }
.lf-church-wordmark { min-width: 0; font: 400 1.48rem/1.04 var(--serif, "Instrument Serif", Georgia, serif); overflow-wrap: anywhere; }
.lf-phone-content { display: block; padding: 1.15rem 1rem .85rem; color: #20385E; flex: 1; }
.lf-phone-content[hidden] { display: none; }
.lf-demo .lf-phone-content .lf-phone-label, .lf-phone-label { font-size: .71rem; letter-spacing: .1em; color: var(--phone-accent); }
.lf-demo .lf-phone-content h3 { margin: .25rem 0 .7rem; font: 400 2.19rem/1.03 var(--serif, "Instrument Serif", Georgia, serif); color: #20385E; letter-spacing: -.03em; }
.lf-demo .lf-phone-content blockquote {
  padding: 0; border: 0; margin: .65rem 0 .32rem; font: 400 1.37rem/1.18 var(--serif, "Instrument Serif", Georgia, serif); color: #1C3459; letter-spacing: -.01em;
}
.lf-demo .lf-phone-content p { margin: .45rem 0 0; color: #3B5373; font-size: .92rem; line-height: 1.45; }
.lf-demo .lf-phone-content .lf-phone-citation { font-size: .78rem; color: #4E6381; }
.lf-demo .lf-phone-content .lf-phone-citation .bible-ref { text-decoration-color: color-mix(in srgb, var(--phone-accent) 45%, transparent); }
.lf-demo .lf-phone-content .lf-phone-citation .bible-ref:hover { color: var(--phone-accent); text-decoration-color: currentColor; }
.lf-demo .lf-phone-content .lf-gathering-title { font-size: 1rem; font-weight: 600; }
.lf-phone-action, .lf-phone-details summary {
  min-height: 2.3rem; display: inline-flex; align-items: center; justify-content: center; margin: .7rem 0 0; padding: .45rem .8rem;
  background: var(--phone-wash); color: var(--phone-accent); border: 1px solid transparent; border-radius: 1.4rem; font: 600 .81rem/1.3 var(--sans, "Figtree", sans-serif); cursor: pointer;
}
.lf-phone-action[aria-pressed="true"] { border-color: var(--phone-accent); }
.lf-phone-details summary { list-style: none; }
.lf-phone-details summary::-webkit-details-marker { display: none; }
.lf-phone-details[open] summary { border-color: var(--phone-accent); }
.lf-prayer-card { margin: .9rem 0 .3rem; padding: 1.05rem .9rem; border-radius: .7rem; background: var(--phone-wash); }
.lf-phone-tabs { display: flex; border-top: 1px solid #D6E2F0; padding: .22rem .2rem .1rem; }
.lf-phone-tabs button {
  flex: 1; display: flex; flex-direction: column; gap: .24rem; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .32rem 0; background: transparent; color: #476080;
  border: 0; border-radius: .45rem; font: 500 .69rem/1.1 var(--sans, "Figtree", sans-serif); cursor: pointer;
}
.lf-phone-tabs button[aria-selected="true"] { background: var(--phone-wash); color: var(--phone-accent); }
.lf-phone-tabs button:focus-visible { outline-offset: -3px; }
.lf-phone-tabs svg { width: 1.12rem; height: 1.12rem; stroke-width: 1.6; }
.lf-phone-home { margin: .4rem auto .5rem; width: 4.2rem; height: .22rem; background: #243D61; border-radius: 5rem; }
@media (max-width: 720px) {
  .lf-demo { width: min(94vw,32rem); border-radius: 1.15rem; }
  .lf-demo-surface { grid-template-columns: 1fr; }
  .lf-demo-intro { padding: 2.2rem clamp(1.15rem,5vw,2rem) 1.5rem; }
  .lf-demo h2 { margin: .7rem 0; max-width: 8em; font-size: clamp(2.6rem,8vw,3.4rem); }
  .lf-demo-lead { max-width: 40ch; }
  .lf-demo-fields { margin-top: 1.1rem; }
  .lf-demo-note { margin-top: .85rem; }
  .lf-phone-stage { padding: 1.75rem 1rem; }
}
@media (max-width: 370px) {
  .lf-demo-intro { padding-left: 1rem; padding-right: 1rem; }
  .lf-swatches { gap: .32rem; }
  .lf-swatches label { gap: .32rem; padding-inline: .5rem; }
}
