.cfc-sermon-transcript-section {
  padding: 64px 0 96px;
  border-top: 1px solid rgba(35, 38, 22, 0.06);
  background: #f5f0e8;
}

.cfc-sermon-transcript-section .cfc-sermon-shell.cfc-sermon-shell--narrow {
  width: min(700px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cfc-sermon-transcript-section.is-admin-preview {
  padding: 20px;
  border-top: 0;
  background: #f5f0e8;
}

.cfc-sermon-transcript-section.is-admin-preview .cfc-sermon-shell.cfc-sermon-shell--narrow {
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.cfc-sermon-transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(35, 38, 22, 0.08);
}

.cfc-sermon-transcript-heading {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.cfc-sermon-transcript-header h2 {
  margin: 0;
  color: #232616;
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.cfc-sermon-transcript-heading p {
  margin: 0;
  color: rgba(35, 38, 22, 0.35);
  font-family: "Alegreya Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cfc-transcript-fontsize {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(35, 38, 22, 0.04);
  flex-shrink: 0;
}

.cfc-transcript-fontsize-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(35, 38, 22, 0.35);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.cfc-transcript-fontsize-btn:hover,
.cfc-transcript-fontsize-btn:focus {
  color: rgba(35, 38, 22, 0.6);
  background: rgba(35, 38, 22, 0.04);
}

.cfc-transcript-fontsize-btn.is-active {
  color: #232616;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(35, 38, 22, 0.08);
}

.cfc-transcript-fontsize-icon {
  width: 1em;
  height: 1em;
  display: block;
  line-height: 1;
}

.cfc-transcript-fontsize-btn[data-fontsize="small"] .cfc-transcript-fontsize-icon {
  font-size: 0.65rem;
}

.cfc-transcript-fontsize-btn[data-fontsize="medium"] .cfc-transcript-fontsize-icon {
  font-size: 0.82rem;
}

.cfc-transcript-fontsize-btn[data-fontsize="large"] .cfc-transcript-fontsize-icon {
  font-size: 1rem;
}

.cfc-sermon-transcript-body-wrap {
  position: relative;
}

.cfc-sermon-transcript-body-wrap:not(.is-collapsed) {
  display: flex;
  flex-direction: column;
}

.cfc-sermon-transcript-toggle {
  border: 1px solid rgba(35, 38, 22, 0.12) !important;
  border-radius: 6px;
  background: #ffffff !important;
  color: rgba(35, 38, 22, 0.6) !important;
  padding: 12px 28px !important;
  font-family: "Alegreya Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(35, 38, 22, 0.06);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.cfc-sermon-transcript-body-wrap.is-collapsed .cfc-sermon-transcript-toggle {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.cfc-sermon-transcript-body-wrap:not(.is-collapsed) .cfc-sermon-transcript-toggle {
  position: static;
  align-self: center;
  margin: 48px auto 0;
  transform: none;
}

.cfc-sermon-transcript-toggle:hover,
.cfc-sermon-transcript-toggle:focus {
  border-color: rgba(35, 38, 22, 0.22) !important;
  color: rgba(35, 38, 22, 0.85) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(35, 38, 22, 0.1);
}

.cfc-sermon-transcript-toggle .cfc-tt-chevron {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
  text-align: center;
  transform-origin: center center;
  transition: transform 0.24s ease;
}

.cfc-transcript-fontsize-icon,
.cfc-sermon-transcript-toggle .cfc-tt-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  vertical-align: middle;
}

.cfc-transcript-fontsize-icon::before,
.cfc-sermon-transcript-toggle .cfc-tt-chevron::before {
  display: block;
  line-height: 1;
}

.cfc-sermon-transcript-toggle .cfc-tt-label-collapse {
  display: none;
}

.cfc-sermon-transcript-toggle[data-expanded="1"] .cfc-tt-label-expand {
  display: none;
}

.cfc-sermon-transcript-toggle[data-expanded="1"] .cfc-tt-label-collapse {
  display: inline;
}

.cfc-sermon-transcript-toggle[data-expanded="1"] .cfc-tt-chevron {
  transform: rotate(180deg);
}

.cfc-sermon-transcript {
  --cfc-transcript-base-size: 1.05rem;
  width: 100%;
  max-width: min(680px, 100%);
  margin: 0 auto;
  color: rgba(35, 38, 22, 0.82);
  font-family: "Alegreya", Georgia, serif;
  font-size: var(--cfc-transcript-current-size, var(--cfc-transcript-base-size));
  line-height: 1.82;
}

.cfc-sermon-transcript p {
  margin: 0 0 1.5em;
  font-size: inherit;
  text-indent: 0;
}

.cfc-sermon-transcript[data-fontsize="small"] {
  line-height: 1.78;
}

.cfc-sermon-transcript[data-fontsize="large"] {
  line-height: 1.85;
}

.cfc-sermon-transcript[data-fontsize="small"] .cfc-transcript-section {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}

.cfc-sermon-transcript[data-fontsize="large"] .cfc-transcript-section {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
}

.cfc-sermon-transcript[data-fontsize="small"] .cfc-transcript-scripture-body p {
  font-size: 0.92em;
}

.cfc-sermon-transcript[data-fontsize="large"] .cfc-transcript-scripture-body p {
  font-size: 1.08em;
}

.cfc-sermon-transcript--empty {
  min-height: 180px;
}

.cfc-sermon-transcript-empty {
  margin: 0;
  color: rgba(35, 38, 22, 0.55);
  font-style: italic;
}

.cfc-transcript-first::first-letter {
  float: left;
  color: #232616;
  font-family: "Alegreya", Georgia, serif;
  font-size: 3.2em;
  font-weight: 700;
  line-height: 0.82;
  padding: 0.08em 0.18em 0 0;
}

.cfc-sermon-transcript strong {
  color: #232616;
  font-weight: 700;
}

.cfc-sermon-transcript em {
  font-style: italic;
}

.cfc-transcript-ref-link {
  color: inherit;
  text-decoration: none;
}

.cfc-transcript-ref {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: #8b8b38;
  font-family: "Alegreya Sans", sans-serif;
  font-size: 0.88em;
  font-weight: 800;
  line-height: inherit;
  transition: color 0.2s ease;
}

.cfc-transcript-ref-link:hover .cfc-transcript-ref,
.cfc-transcript-ref-link:focus .cfc-transcript-ref {
  color: #6b6b28;
  border: none;
  background: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cfc-transcript-ref--inline {
  vertical-align: baseline;
}

.cfc-transcript-section {
  position: relative;
  margin: 3.5rem 0 1.2rem;
  padding-top: 1.2rem;
  color: #232616;
  font-family: "Alegreya", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.cfc-transcript-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #8b8b38;
}

.cfc-transcript-scripture {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid #8b8b38;
  border-radius: 0;
  background: rgba(139, 139, 56, 0.04);
  box-shadow: none;
}

.cfc-transcript-scripture-ref {
  margin: 0 0 0.75rem;
  color: #8b8b38;
  font-family: "Alegreya Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfc-transcript-scripture-ref .cfc-transcript-ref-link {
  color: inherit;
}

.cfc-transcript-scripture-body {
  color: rgba(35, 38, 22, 0.78);
}

.cfc-transcript-scripture-body p {
  margin-bottom: 1.15em;
  font-size: 1em;
  line-height: 1.75;
  font-style: italic;
}

.cfc-transcript-scripture-body p:last-child {
  margin-bottom: 0;
}

.cfc-transcript-key {
  margin: 2.5rem auto;
  padding: 2rem 1.5rem;
  max-width: 54ch;
  border-top: 1px solid rgba(35, 38, 22, 0.08);
  border-bottom: 1px solid rgba(35, 38, 22, 0.08);
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.cfc-transcript-key p {
  margin: 0.4em 0;
  color: #232616;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
}

.cfc-transcript-application {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid #c8a456;
  border-radius: 0;
  background: rgba(200, 164, 86, 0.04);
  box-shadow: none;
}

.cfc-transcript-application-label {
  margin: 0 0 0.75rem !important;
  color: rgba(160, 130, 60, 0.8);
  font-family: "Alegreya Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfc-transcript-application p:last-child {
  margin-bottom: 0;
}

.cfc-transcript-divider {
  display: block;
  margin: 48px auto;
  width: 48px;
  height: 1px;
  background: rgba(35, 38, 22, 0.1);
  border: none;
}

.cfc-transcript-divider::before,
.cfc-transcript-divider::after {
  display: none;
}

.cfc-transcript-divider span {
  display: none;
}

.cfc-sermon-transcript.collapsed {
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.cfc-sermon-transcript.collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(245, 240, 232, 0), #f5f0e8);
  pointer-events: none;
}

@media (max-width: 921px) {
  .cfc-sermon-transcript-section {
    padding: 40px 0 64px;
  }

  .cfc-sermon-transcript-section .cfc-sermon-shell.cfc-sermon-shell--narrow {
    width: min(700px, calc(100% - 32px));
  }

  .cfc-sermon-transcript {
    font-size: 1rem;
    line-height: 1.75;
  }

  .cfc-sermon-transcript-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .cfc-sermon-transcript-heading {
    flex-wrap: wrap;
  }

  .cfc-transcript-fontsize {
    order: 2;
    align-self: flex-start;
  }

  .cfc-sermon-transcript-toggle {
    padding: 10px 22px !important;
    font-size: 0.72rem;
  }

  .cfc-sermon-transcript.collapsed {
    max-height: 450px;
  }

  .cfc-sermon-transcript-body-wrap.is-collapsed .cfc-sermon-transcript-toggle {
    bottom: 18px;
  }

  .cfc-sermon-transcript-body-wrap:not(.is-collapsed) .cfc-sermon-transcript-toggle {
    margin-top: 36px;
  }

  .cfc-transcript-first::first-letter {
    font-size: 2.7em;
  }

  .cfc-transcript-section {
    margin-top: 2.5rem;
    font-size: 1.2rem;
  }

  .cfc-transcript-scripture,
  .cfc-transcript-key,
  .cfc-transcript-application {
    padding: 1rem;
  }

  .cfc-transcript-key {
    padding: 1.5rem 1rem;
  }
}
