.home-talk-library-card {
  margin-top: 12px;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-talk-library-banner-btn {
  position: relative;
  width: 100%;
  min-height: 222px;
  border: 1px solid rgba(151, 121, 52, 0.24);
  border-radius: 28px;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 24px 44px rgba(36, 32, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.home-talk-library-banner-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(151, 121, 52, 0.32);
  box-shadow:
    0 28px 52px rgba(36, 32, 16, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.home-talk-library-banner-btn:active {
  transform: translateY(1px);
}

.home-talk-library-banner-btn:focus-visible {
  outline: 2px solid rgba(139, 102, 30, 0.34);
  outline-offset: 4px;
}

.home-talk-library-background,
.home-talk-library-foreground {
  display: block;
}

.home-talk-library-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 248, 224, 0.86), transparent 18%),
    radial-gradient(circle at 86% 14%, rgba(188, 222, 219, 0.58), transparent 24%),
    radial-gradient(circle at 80% 78%, rgba(245, 210, 155, 0.42), transparent 18%),
    linear-gradient(155deg, rgba(70, 58, 27, 0.16), transparent 52%),
    linear-gradient(155deg, rgba(255, 253, 247, 0.98), rgba(244, 248, 244, 0.96));
}

.home-talk-library-background::before,
.home-talk-library-background::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.82;
}

.home-talk-library-background::before {
  top: -18px;
  right: -22px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(143, 100, 25, 0.22), rgba(143, 100, 25, 0));
}

.home-talk-library-background::after {
  bottom: -34px;
  left: -28px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(29, 110, 115, 0.18), rgba(29, 110, 115, 0));
}

.home-talk-library-foreground {
  position: relative;
  z-index: 1;
  min-height: 222px;
  padding: 22px 22px 20px;
  display: grid;
  gap: 18px;
}

.home-talk-library-banner-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.home-talk-library-banner-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.home-talk-library-eyebrow,
.home-talk-library-title,
.home-talk-library-help,
.home-talk-library-meta {
  margin: 0;
}

.home-talk-library-eyebrow {
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #88631f;
}

.home-talk-library-title {
  font-size: 1.18rem;
  line-height: 1.08;
  color: #2d2a1f;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-talk-library-help {
  max-width: 46ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #625d4d;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-talk-library-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #4d5d71;
  font-size: 0.76rem;
  font-weight: 730;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.home-talk-library-banner-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(249, 239, 210, 0.9));
  color: #805717;
  font-size: 1.65rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 14px 24px rgba(143, 100, 25, 0.12);
}

.home-talk-library-banner-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.home-talk-library-banner-stripes {
  display: grid;
  gap: 8px;
}

.home-talk-library-banner-stripes span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.home-talk-library-banner-stripes span:nth-child(1) {
  width: 148px;
}

.home-talk-library-banner-stripes span:nth-child(2) {
  width: 112px;
}

.home-talk-library-banner-stripes span:nth-child(3) {
  width: 172px;
}

.home-talk-library-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(42, 53, 72, 0.92);
  color: #f7f7f3;
  font-size: 0.8rem;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: 0 14px 22px rgba(42, 53, 72, 0.18);
}

.home-quick-access-grid .home-talk-library-card {
  overflow: hidden;
}

.home-quick-access-grid .home-talk-library-banner-btn {
  min-height: 164px;
  border-radius: 24px;
  box-shadow:
    0 18px 34px rgba(36, 32, 16, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-quick-access-grid .home-talk-library-foreground {
  min-height: 164px;
  padding: 18px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 12px;
  align-items: start;
  align-content: start;
}

.home-quick-access-grid .home-talk-library-banner-copy {
  grid-column: 1;
  grid-row: 1;
  gap: 0;
}

.home-quick-access-grid .home-talk-library-title {
  font-size: 1rem;
  line-height: 1.16;
}

.home-quick-access-grid .home-calendar-chevron {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.home-quick-access-grid .home-talk-library-banner-mark {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 76px;
  height: 76px;
  margin-top: auto;
  border-radius: 24px;
  align-self: end;
  justify-self: start;
}

.home-quick-access-grid .home-talk-library-banner-mark svg {
  width: 2.35rem;
  height: 2.35rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sermon-library-dialog {
  width: min(92vw, 540px);
  max-width: min(92vw, 540px);
  max-height: min(90vh, 860px);
  border: 1px solid rgba(217, 223, 232, 0.96);
  background:
    radial-gradient(circle at top right, rgba(215, 191, 126, 0.18), transparent 34%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.995), rgba(247, 250, 252, 0.98));
  overflow: hidden;
  box-shadow:
    0 26px 56px rgba(15, 24, 40, 0.28),
    0 12px 24px rgba(15, 24, 40, 0.12);
}

.sermon-library-dialog[data-view="detail"] {
  width: min(96vw, 1100px);
  max-width: min(96vw, 1100px);
  max-height: min(92vh, 920px);
}

.sermon-library-dialog-head {
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 10px;
}

.sermon-library-back-btn.ghost-btn {
  width: auto;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(143, 100, 25, 0.16);
  background: rgba(255, 251, 243, 0.88);
  color: #6a5429;
  box-shadow: none;
}

.sermon-library-dialog-head-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.sermon-library-dialog-eyebrow,
.sermon-library-dialog-title,
.sermon-library-dialog-meta {
  margin: 0;
}

.sermon-library-dialog-eyebrow {
  font-size: 0.71rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #84601e;
}

.sermon-library-dialog-meta {
  font-size: 0.83rem;
  line-height: 1.52;
  color: #5e6674;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.sermon-library-dialog-body {
  padding: 2px 18px 18px;
  overflow: auto;
  max-height: min(72vh, 720px);
}

.sermon-library-category-list,
.sermon-library-topic-list {
  display: grid;
  gap: 12px;
}

.home-talk-library-category-btn {
  --tone: #8f6419;
  --tone-shadow: rgba(143, 100, 25, 0.18);
  --tone-soft: rgba(255, 244, 216, 0.92);
  width: 100%;
  border: 1px solid rgba(143, 100, 25, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.58), transparent 32%),
    linear-gradient(160deg, rgba(255, 251, 241, 0.98), var(--tone-soft));
  padding: 15px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 14px 24px var(--tone-shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.home-talk-library-category-btn[data-home-talk-category="five-minute-talks"] {
  --tone: #1d6e73;
  --tone-shadow: rgba(29, 110, 115, 0.18);
  --tone-soft: rgba(231, 249, 247, 0.94);
}

.home-talk-library-category-btn:hover {
  border-color: rgba(143, 100, 25, 0.24);
  box-shadow: 0 18px 28px var(--tone-shadow);
}

.home-talk-library-category-btn:active {
  transform: translateY(1px);
}

.home-talk-library-category-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--tone) 34%, white);
  outline-offset: 4px;
}

.home-talk-library-category-main,
.home-talk-library-category-copy {
  min-width: 0;
  display: grid;
}

.home-talk-library-category-main {
  gap: 12px;
}

.home-talk-library-category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-talk-library-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.68);
  font-size: 1.24rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.home-talk-library-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--tone);
  font-size: 0.74rem;
  font-weight: 760;
  white-space: nowrap;
}

.home-talk-library-category-copy {
  gap: 3px;
}

.home-talk-library-category-eyebrow,
.home-talk-library-category-title,
.home-talk-library-category-help {
  margin: 0;
}

.home-talk-library-category-eyebrow {
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tone) 78%, white);
}

.home-talk-library-category-title {
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 760;
  color: #2d2a1f;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-talk-library-category-help {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5d594b;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.home-talk-library-category-arrow {
  align-self: center;
  width: 11px;
  height: 11px;
  border-right: 2px solid rgba(45, 42, 31, 0.72);
  border-bottom: 2px solid rgba(45, 42, 31, 0.72);
  transform: rotate(-45deg);
}

.sermon-library-topic-btn {
  width: 100%;
  border: 1px solid rgba(135, 149, 172, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 15px;
  display: grid;
  gap: 10px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sermon-library-topic-btn:hover {
  border-color: rgba(143, 100, 25, 0.24);
  box-shadow: 0 16px 24px rgba(41, 57, 87, 0.1);
}

.sermon-library-topic-btn:active {
  transform: translateY(1px);
}

.sermon-library-topic-btn:focus-visible {
  outline: 2px solid rgba(143, 100, 25, 0.26);
  outline-offset: 4px;
}

.sermon-library-topic-top,
.sermon-library-topic-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sermon-library-topic-title,
.sermon-library-topic-hook {
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.sermon-library-topic-title {
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 760;
  color: #243148;
}

.sermon-library-topic-verse,
.sermon-library-topic-duration {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(241, 245, 250, 0.92);
  color: #51637d;
  font-size: 0.74rem;
  font-weight: 720;
  white-space: nowrap;
}

.sermon-library-topic-hook {
  font-size: 0.81rem;
  line-height: 1.55;
  color: #5d697d;
}

.sermon-library-empty {
  margin: 0;
  border: 1px dashed rgba(135, 149, 172, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  padding: 16px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #627083;
}

.sermon-library-detail-view {
  padding: 2px 20px 20px;
  overflow: auto;
  max-height: min(82vh, 800px);
  display: grid;
  gap: 16px;
}

.sermon-library-detail-hero {
  border: 1px solid rgba(143, 100, 25, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(233, 211, 160, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(255, 251, 244, 0.98), rgba(247, 250, 252, 0.96));
  padding: 18px 18px 16px;
  display: grid;
  gap: 14px;
}

.sermon-library-detail-hero-copy,
.sermon-library-detail-meta {
  min-width: 0;
  display: grid;
}

.sermon-library-detail-hero-copy {
  gap: 5px;
}

.sermon-library-detail-eyebrow,
.sermon-library-detail-title,
.sermon-library-detail-hook {
  margin: 0;
}

.sermon-library-detail-eyebrow {
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #875f16;
}

.sermon-library-detail-title {
  font-size: 1.55rem;
  line-height: 1.03;
  color: #1f2a3c;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.sermon-library-detail-hook {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #51627b;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.sermon-library-detail-meta {
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px;
  align-items: start;
}

.sermon-library-detail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #566579;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.sermon-library-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  align-items: start;
}

.sermon-library-detail-panel {
  min-width: 0;
  border: 1px solid rgba(135, 149, 172, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.sermon-library-detail-panel.is-outline {
  grid-column: 1 / -1;
}

.sermon-library-detail-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sermon-library-detail-panel-label,
.sermon-library-detail-panel-meta,
.sermon-library-detail-verse-ref,
.sermon-library-detail-verse-text,
.sermon-library-detail-thought,
.sermon-library-detail-copy {
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.sermon-library-detail-panel-label {
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7486;
}

.sermon-library-detail-panel-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7c6634;
}

.sermon-library-detail-verse-ref {
  font-size: 1rem;
  font-weight: 780;
  color: #29364d;
}

.sermon-library-detail-verse-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #44536b;
}

.sermon-library-detail-thought {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #253149;
}

.sermon-library-detail-copy {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #495870;
}

.sermon-library-detail-points {
  display: grid;
  gap: 10px;
}

.sermon-library-point-card {
  border-radius: 18px;
  border: 1px solid rgba(135, 149, 172, 0.14);
  background: rgba(247, 249, 253, 0.92);
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sermon-library-point-index {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(143, 100, 25, 0.12);
  color: #7b5818;
  font-size: 0.86rem;
  font-weight: 780;
}

.sermon-library-point-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sermon-library-point-title,
.sermon-library-point-body {
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.sermon-library-point-title {
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 760;
  color: #29364d;
}

.sermon-library-point-body {
  font-size: 0.84rem;
  line-height: 1.62;
  color: #54657d;
}

@media (max-width: 720px) {
  .home-quick-access-grid .home-talk-library-foreground {
    min-height: 164px;
  }

  .home-talk-library-foreground {
    min-height: 208px;
    padding: 20px 18px 18px;
  }

  .home-talk-library-banner-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .sermon-library-dialog,
  .sermon-library-dialog[data-view="detail"] {
    width: min(96vw, 96vw);
    max-width: min(96vw, 96vw);
  }

  .sermon-library-dialog-head {
    padding: 16px 16px 10px;
  }

  .sermon-library-dialog-body,
  .sermon-library-detail-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sermon-library-detail-title {
    font-size: 1.3rem;
  }

  .sermon-library-detail-meta,
  .sermon-library-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sermon-library-point-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
