.wp-site-blocks {
  --ibc-blue: #0b2f55;
  --ibc-blue-deep: #092846;
  --ibc-cream: #f8efe3;
  --ibc-cream-soft: #fff8ed;
  --ibc-gold: #d8ae61;
  --ibc-text: #554d43;
  --ibc-muted: #6a6157;
  --ibc-line: rgba(11, 47, 85, .16);
  --ibc-shadow: 0 22px 65px rgba(11, 47, 85, .13);
  color: var(--ibc-text);
}

.wp-block-post-title {
  display: none;
}

footer.wp-block-template-part {
  display: none;
}

:where(.wp-site-blocks) {
  background: #f8efe3;
  color: var(--ibc-text);
}

:where(.wp-site-blocks) :where(h1, h2, h3, h4, h5, h6, strong) {
  color: var(--ibc-blue);
}

:where(.wp-site-blocks) :where(p, li) {
  color: var(--ibc-text);
}

:where(.wp-site-blocks) a {
  color: var(--ibc-blue);
  text-underline-offset: .16em;
}

:where(.wp-site-blocks) :where(.ibc-eyebrow, .ibc-label) {
  color: var(--ibc-gold) !important;
  font-weight: 850;
}

:where(.wp-site-blocks) :where(.ibc-page-hero, .ibc-dark, .ibc-callout, .ibc-podcast, .ibc-podcast-card, .ibc-home-cta, .ibc-site-footer) {
  background-color: var(--ibc-blue);
  color: var(--ibc-cream-soft) !important;
}

:where(.wp-site-blocks) :where(.ibc-page-hero, .ibc-dark, .ibc-callout, .ibc-podcast, .ibc-podcast-card, .ibc-home-cta, .ibc-site-footer) :where(h1, h2, h3, h4, h5, h6, p, li, strong, span) {
  color: var(--ibc-cream-soft) !important;
}

:where(.wp-site-blocks) :where(.ibc-page-hero, .ibc-dark, .ibc-callout, .ibc-podcast, .ibc-podcast-card, .ibc-home-cta, .ibc-site-footer) a {
  color: var(--ibc-cream-soft) !important;
}

:where(.wp-site-blocks) :where(.ibc-card, .ibc-form-card, .ibc-filter-panel, .ibc-sermon-item, .ibc-home-info, .ibc-home-feature__copy, .ibc-home-mission__card, .ibc-podcast__card, .ibc-empty-sermons) {
  background-color: var(--ibc-cream-soft);
  border-color: var(--ibc-line);
  color: var(--ibc-text) !important;
}

:where(.wp-site-blocks) :where(.ibc-card, .ibc-form-card, .ibc-filter-panel, .ibc-sermon-item, .ibc-home-info, .ibc-home-feature__copy, .ibc-home-mission__card, .ibc-podcast__card, .ibc-empty-sermons) :where(h1, h2, h3, h4, h5, h6, strong, a) {
  color: var(--ibc-blue) !important;
}

:where(.wp-site-blocks) :where(.ibc-card, .ibc-form-card, .ibc-filter-panel, .ibc-sermon-item, .ibc-home-info, .ibc-home-feature__copy, .ibc-home-mission__card, .ibc-podcast__card, .ibc-empty-sermons) a {
  color: var(--ibc-blue) !important;
}

:where(.wp-site-blocks) a[href^="mailto:"] {
  display: inline-block;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

:where(.wp-site-blocks) :where(.ibc-card, .ibc-form-card, .ibc-filter-panel, .ibc-sermon-item, .ibc-home-info, .ibc-home-feature__copy, .ibc-home-mission__card, .ibc-podcast__card, .ibc-empty-sermons) :where(p, li, span) {
  color: var(--ibc-muted) !important;
}

.ibc-page-hero {
  box-sizing: border-box;
  box-shadow: var(--ibc-shadow);
  margin: 0 auto clamp(1.8rem, 4vw, 2.65rem) !important;
  max-width: none !important;
  width: min(65rem, calc(100vw - 3rem)) !important;
}

.ibc-shell {
  max-width: 65rem !important;
}

.ibc-section {
  padding: clamp(1.8rem, 4vw, 2.65rem) 0 !important;
}

.wp-site-blocks > main.wp-block-group {
  margin-top: clamp(.5rem, 1.4vw, 1.1rem) !important;
}

.wp-site-blocks > main > .wp-block-group:first-child {
  padding-top: clamp(.75rem, 1.8vw, 1.4rem) !important;
}

header.wp-block-template-part {
  background: #f8efe3;
}

header.wp-block-template-part :where(.wp-block-site-title, .wp-block-site-title a, .wp-block-navigation-item__content) {
  color: var(--ibc-blue) !important;
}

header.wp-block-template-part .wp-block-group.alignwide.is-content-justification-space-between {
  align-items: center;
  box-sizing: border-box;
  column-gap: clamp(1rem, 3vw, 2.25rem);
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-inline: auto !important;
  max-width: min(65rem, calc(100vw - 3rem));
  position: relative;
  width: 100%;
}

header.wp-block-template-part .wp-block-site-title {
  grid-column: 1;
  justify-self: start;
}

header.wp-block-template-part .ibc-header-social {
  grid-column: 2;
  justify-self: center;
  margin-inline: 0 !important;
  position: static;
  transform: none;
}

header.wp-block-template-part nav.wp-block-navigation,
header.wp-block-template-part nav.wp-block-navigation + .wp-block-group,
header.wp-block-template-part .wp-block-group:has(> nav.wp-block-navigation) {
  grid-column: 3;
  justify-self: end;
}

header.wp-block-template-part .wp-block-page-list > li {
  order: 3;
}

header.wp-block-template-part .wp-block-page-list > li:has(a[href="https://ibctucumcari.org/"]),
header.wp-block-template-part .wp-block-page-list > li:has(a[href="/"]) {
  order: 1;
}

header.wp-block-template-part .wp-block-page-list > li:has(a[href$="/contact/"]) {
  order: 2;
}

.ibc-site-footer {
  background: #0b2f55;
  box-sizing: border-box;
  color: #f8efe3;
  margin-inline: auto !important;
  max-width: none !important;
  padding: clamp(2rem, 4.5vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  width: min(65rem, calc(100vw - 3rem)) !important;
}

.ibc-site-footer a {
  color: #f8efe3;
}

.ibc-site-footer__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 auto;
  max-width: 65rem;
}

.ibc-site-footer h2,
.ibc-site-footer h3 {
  margin-top: 0;
}

.ibc-site-footer__list {
  display: grid;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ibc-site-footer__muted {
  color: #f8efe3;
}

.ibc-social-icon {
  border-radius: .35rem;
  display: block;
  flex: 0 0 auto;
  height: 1.5rem;
  object-fit: contain;
  width: 1.5rem;
}

.ibc-social-link {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
}

.ibc-header-social {
  align-items: center;
  display: inline-flex;
  gap: .65rem;
  margin-left: auto;
  margin-right: auto;
}

.ibc-header-social a {
  align-items: center;
  display: inline-flex;
  height: 2.15rem;
  justify-content: center;
  min-width: 2.15rem;
}

.ibc-header-social img {
  display: block;
  height: 1.55rem;
  object-fit: contain;
  width: 1.55rem;
}

.ibc-header-social a[aria-label="YouTube"] img {
  height: 2.05rem;
  width: 2.05rem;
}

.ibc-subscribe {
  display: inline-block;
  position: relative;
}

.ibc-subscribe summary {
  align-items: center;
  background: #0b2f55;
  border: 1px solid currentColor;
  border-radius: 999px;
  box-sizing: border-box;
  color: #f8efe3;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  gap: .5rem;
  justify-content: center;
  letter-spacing: .04em;
  line-height: 1.1;
  list-style: none;
  min-height: 2.75rem;
  padding: 0 1rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ibc-subscribe summary::-webkit-details-marker {
  display: none;
}

.ibc-subscribe__bell svg {
  display: block;
  height: 1rem;
  width: 1rem;
}

.ibc-subscribe__caret {
  border-left: .28rem solid transparent;
  border-right: .28rem solid transparent;
  border-top: .32rem solid currentColor;
  height: 0;
  width: 0;
}

.ibc-subscribe span {
  color: #f8efe3 !important;
}

.ibc-subscribe__menu {
  background: #0b2f55;
  border: 2px solid #d8ae61;
  border-radius: .8rem;
  box-shadow: 0 18px 42px rgba(11, 47, 85, .32), 0 0 0 1px rgba(248, 239, 227, .18) inset;
  display: grid;
  gap: 0;
  left: 0;
  min-width: 17rem;
  padding: .35rem;
  position: absolute;
  top: calc(100% + .45rem);
  z-index: 20;
}

.ibc-subscribe__menu a {
  align-items: center;
  border-bottom: 1px solid rgba(248, 239, 227, .24);
  border-radius: .45rem;
  color: #f8efe3 !important;
  display: flex;
  gap: .8rem;
  padding: .75rem .85rem;
  text-decoration: none;
}

.ibc-subscribe__menu a:last-child {
  border-bottom: 0;
}

.ibc-subscribe__menu a:hover,
.ibc-subscribe__menu a:focus {
  background: rgba(248, 239, 227, .14);
  color: #f8efe3 !important;
}

.ibc-subscribe__service-icon {
  border-radius: .45rem;
  display: block;
  flex: 0 0 2rem;
  height: 2rem;
  object-fit: contain;
  width: 2rem;
}

.ibc-podcast__card .ibc-subscribe {
  display: block;
  margin-top: 1.35rem;
  max-width: 24rem;
}

.ibc-podcast__card .ibc-subscribe summary {
  background: #0b2f55;
  color: #f8efe3;
  width: 100%;
}

.ibc-podcast__buttons .ibc-subscribe {
  flex: 0 0 100%;
  max-width: 24rem;
}

.ibc-podcast__buttons .ibc-subscribe summary {
  background: transparent;
  width: 100%;
}

.ibc-site-footer .ibc-subscribe summary {
  background: transparent;
  color: #f8efe3;
}

.ibc-site-footer .ibc-subscribe__menu {
  bottom: calc(100% + .45rem);
  top: auto;
}

.ibc-sermon-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.ibc-sermon-tools h2 {
  margin: 0;
}

.ibc-floating-player {
  align-items: center;
  background: #0b2f55;
  bottom: 0;
  box-shadow: 0 -14px 36px rgba(0, 0, 0, .22);
  box-sizing: border-box;
  color: #f8efe3;
  display: none;
  gap: .85rem;
  left: 0;
  padding: .85rem clamp(1rem, 4vw, 2rem);
  position: fixed;
  right: 0;
  z-index: 9999;
}

.ibc-floating-player.is-visible {
  display: flex;
}

.ibc-floating-player__title {
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ibc-floating-player__meta {
  color: #f8efe3;
  font-size: .9rem;
  margin: .15rem 0 0;
}

.ibc-floating-player__body {
  flex: 1;
  min-width: 0;
}

.ibc-floating-player button,
.ibc-floating-player a {
  align-items: center;
  border: 1px solid #f8efe3;
  border-radius: 999px;
  box-sizing: border-box;
  color: #f8efe3;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  min-height: 2.55rem;
  padding: 0 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.ibc-floating-player button {
  background: #d8ae61;
  border-color: #d8ae61;
  color: #0b2f55;
  cursor: pointer;
}

.ibc-floating-player__close {
  background: transparent !important;
  border-color: #f8efe3 !important;
  color: #f8efe3 !important;
  justify-content: center;
  min-width: 2.55rem;
  padding: 0 !important;
}

body.ibc-player-active {
  padding-bottom: 5.75rem;
}

header.wp-block-template-part .wp-block-page-list > li:has(a[href$="/sermon-player/"]),
header.wp-block-template-part .wp-block-navigation-item:has(a[href$="/sermon-player/"]),
header.wp-block-template-part a[href$="/sermon-player/"] {
  display: none !important;
}

@media (max-width: 900px) {
  header.wp-block-template-part {
    padding-block: .35rem !important;
  }

  header.wp-block-template-part .wp-block-group.alignwide.is-content-justification-space-between {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    max-width: min(26.875rem, calc(100vw - 2rem));
    padding-block: .35rem !important;
    row-gap: .6rem;
  }

  header.wp-block-template-part .wp-block-site-title {
    flex: 1 1 100%;
    margin: 0 !important;
    text-align: center;
  }

  header.wp-block-template-part .ibc-header-social {
    flex: 1 1 100%;
    justify-content: center;
    margin-block: 0 !important;
    order: 2;
    position: static;
    transform: none;
    width: 100%;
  }

  header.wp-block-template-part nav.wp-block-navigation,
  header.wp-block-template-part .wp-block-group:has(> nav.wp-block-navigation) {
    justify-content: center !important;
    justify-self: center;
    margin-block: 0 !important;
    order: 3;
    width: 100%;
  }

  header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) {
    background: transparent !important;
    color: inherit !important;
    display: flex !important;
    position: static;
    width: 100%;
  }

  header.wp-block-template-part .wp-block-navigation__responsive-container-content {
    display: flex !important;
    padding-top: 0 !important;
    width: 100%;
  }

  header.wp-block-template-part .wp-block-navigation__container,
  header.wp-block-template-part .wp-block-page-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: .35rem .95rem !important;
    justify-content: center !important;
    width: 100%;
  }

  header.wp-block-template-part .wp-block-navigation__responsive-container-open,
  header.wp-block-template-part .wp-block-navigation__responsive-container-close {
    display: none !important;
  }

  header.wp-block-template-part .wp-block-navigation-item__content {
    font-size: .98rem;
  }

  .wp-site-blocks > main.wp-block-group {
    margin-top: 0 !important;
  }

  .wp-site-blocks > main > .wp-block-group:first-child {
    padding-top: 0 !important;
  }

  .ibc-page-hero {
    margin-top: 0 !important;
  }

  .ibc-page-hero,
  .ibc-site-footer {
    max-width: 100% !important;
    width: 100% !important;
  }

  .ibc-section {
    padding: 1.25rem 0 !important;
  }
}

@media (max-width: 780px) {
  .ibc-grid,
  .ibc-site-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.ibc-player-active {
    padding-bottom: 13rem;
  }

  .ibc-floating-player {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .ibc-floating-player__body {
    flex: 1 0 100%;
  }

  .ibc-floating-player button,
  .ibc-floating-player a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ibc-floating-player__title {
    white-space: normal;
  }

  .ibc-podcast__card .ibc-subscribe,
  .ibc-podcast__buttons .ibc-subscribe {
    max-width: 100%;
    width: 100%;
  }

  .ibc-subscribe summary {
    font-size: .86rem;
    gap: .4rem;
    letter-spacing: .02em;
    min-height: 3rem;
    padding-inline: .75rem;
    width: 100%;
  }

  .ibc-subscribe__menu,
  .ibc-site-footer .ibc-subscribe__menu {
    bottom: auto;
    left: auto;
    margin-top: .55rem;
    max-width: 100%;
    min-width: 0;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .ibc-subscribe summary {
    font-size: .78rem;
    gap: .32rem;
    padding-inline: .6rem;
  }

  .ibc-subscribe__bell svg {
    height: .9rem;
    width: .9rem;
  }

  .ibc-subscribe__caret {
    border-left-width: .22rem;
    border-right-width: .22rem;
    border-top-width: .26rem;
  }
}
