.devotional-page {
  background: linear-gradient(180deg, #08121d 0%, #0d2030 28%, #f5f0e8 28%, #f5f0e8 100%);
}

.devotional-landing {
  position: relative;
  padding: 126px 0 86px;
  color: #ffffff;
}

.devotional-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 17, 29, 0.94) 0%, rgba(7, 17, 29, 0.82) 44%, rgba(7, 17, 29, 0.18) 100%),
    radial-gradient(circle at top right, rgba(178, 138, 61, 0.24), transparent 35%);
  pointer-events: none;
}

.devotional-landing .auto-container,
.devotional-access-section .auto-container,
.devotional-home-modal .auto-container {
  position: relative;
  z-index: 1;
}

.devotional-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 460px);
  gap: 44px;
  align-items: center;
}

.devotional-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.devotional-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.devotional-landing h1,
.devotional-access-hero h1,
.devotional-home-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.devotional-landing h1 {
  max-width: 11ch;
  font-size: clamp(3.9rem, 9vw, 6.8rem);
}

.devotional-landing .devotional-theme,
.devotional-access-hero .devotional-theme {
  margin: 22px 0 16px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #d9ba75;
}

.devotional-landing p,
.devotional-access-hero p,
.devotional-home-copy p,
.devotional-access-card p,
.devotional-form-card p,
.devotional-summary li {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.8;
}

.devotional-landing p {
  max-width: 58ch;
}

.devotional-action-row,
.devotional-toggle-row,
.devotional-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.devotional-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.devotional-support-item {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.devotional-support-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.devotional-support-item span {
  display: block;
  color: #ffffff;
  line-height: 1.6;
}

.devotional-hero-media,
.devotional-home-image {
  position: relative;
}

.devotional-hero-media img,
.devotional-home-image img {
  display: block;
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.28);
}

.devotional-hero-media::after {
  content: "";
  position: absolute;
  inset: auto -22px -22px 22px;
  border: 1px solid rgba(217, 186, 117, 0.34);
  border-radius: 30px;
  pointer-events: none;
}

.devotional-content-section,
.devotional-access-section {
  padding: 82px 0 92px;
}

.devotional-content-grid,
.devotional-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.88fr);
  gap: 30px;
  align-items: start;
}

.devotional-summary,
.devotional-form-card,
.devotional-access-card,
.devotional-home-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 25px 65px rgba(8, 18, 29, 0.12);
}

.devotional-summary,
.devotional-form-card,
.devotional-access-card {
  padding: 36px 34px;
}

.devotional-summary h2,
.devotional-form-card h2,
.devotional-access-card h2 {
  margin: 0 0 14px;
  color: #08121d;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.02;
}

.devotional-summary p,
.devotional-access-card p,
.devotional-form-card p {
  color: #455568;
}

.devotional-summary ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.devotional-summary li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: #243444;
}

.devotional-summary li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a5a20, #b08a3d);
}

.devotional-form-card .bishop-form {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.devotional-form-card .bishop-form button {
  width: 100%;
}

.devotional-inline-form-mobile {
  display: none;
}

.devotional-inline-form-mobile .bishop-form {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.devotional-inline-form-mobile .bishop-form button {
  width: 100%;
}

.devotional-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.devotional-access-section {
  background: linear-gradient(180deg, #08121d 0%, #102334 26%, #f5f0e8 26%, #f5f0e8 100%);
}

.devotional-access-hero {
  color: #ffffff;
  padding: 128px 0 42px;
}

.devotional-access-hero h1 {
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  max-width: 11ch;
}

.devotional-access-card {
  position: relative;
  overflow: hidden;
}

.devotional-access-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #7a5a20, #d9ba75);
}

.devotional-download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.devotional-download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 26px;
  border-radius: 24px;
  background: #fbfaf7;
  border: 1px solid rgba(122, 90, 32, 0.12);
}

.devotional-download-card.is-recommended {
  background: linear-gradient(180deg, #fffaf0 0%, #f7f1e3 100%);
  border-color: rgba(176, 138, 61, 0.3);
  box-shadow: 0 18px 38px rgba(122, 90, 32, 0.12);
}

.devotional-recommendation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a5a20;
  background: rgba(217, 186, 117, 0.22);
}

.devotional-download-card h3 {
  margin: 0;
  color: #08121d;
  font-size: 1.6rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
}

.devotional-download-card p {
  margin: 0;
  color: #4b5b6c;
}

.devotional-access-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.devotional-access-side .devotional-preview {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14);
}

.devotional-access-side img {
  display: block;
  width: 100%;
}

.devotional-mini-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(8, 18, 29, 0.08);
}

.devotional-mini-card h3 {
  margin: 0 0 10px;
  color: #08121d;
  font-size: 1.4rem;
}

.devotional-mini-card p {
  margin: 0;
  color: #516171;
  line-height: 1.7;
}

.devotional-archive-section {
  margin-top: 38px;
}

.devotional-archive-heading {
  margin-bottom: 22px;
}

.devotional-archive-heading h2 {
  margin: 0 0 10px;
  color: #08121d;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.02;
}

.devotional-archive-heading p {
  margin: 0;
  color: #4b5b6c;
  line-height: 1.7;
}

.devotional-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.devotional-archive-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(8, 18, 29, 0.08);
}

.devotional-archive-card-header .devotional-kicker {
  margin-bottom: 8px;
  color: #7f8fa0;
}

.devotional-archive-card-header .devotional-kicker::before {
  background: rgba(8, 18, 29, 0.18);
}

.devotional-archive-card h3 {
  margin: 0 0 10px;
  color: #08121d;
  font-size: 1.7rem;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.05;
}

.devotional-archive-card .devotional-theme {
  margin: 0 0 16px;
  color: #7a5a20;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.devotional-archive-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.devotional-home-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 9, 15, 0.74);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

html.devotional-modal-open,
body.devotional-modal-open {
  overflow: hidden;
  height: 100%;
}

.devotional-home-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.devotional-home-card {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  max-width: 920px;
  width: 100%;
  max-height: calc(100svh - 48px);
  overflow: hidden;
}

.devotional-home-copy {
  padding: 34px 36px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.devotional-home-copy .devotional-kicker {
  margin-bottom: 10px;
  color: #7f8fa0;
}

.devotional-home-copy .devotional-kicker::before {
  background: rgba(8, 18, 29, 0.18);
}

.devotional-home-copy h2 {
  color: #08121d;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 0.98;
}

.devotional-home-copy p {
  margin: 14px 0 26px;
  color: #556575;
}

.devotional-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-bottom: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 18, 29, 0.06);
  color: #08121d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.devotional-home-actions .theme-btn {
  min-width: 220px;
}

.devotional-trigger-inline {
  display: inline-flex;
  margin-top: 14px;
}

.devotional-errors {
  margin-bottom: 18px;
  padding: 15px 16px;
  border-radius: 18px;
  background: #fff1f0;
  color: #8c2c28;
  border: 1px solid rgba(140, 44, 40, 0.14);
}

.devotional-errors ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 1199px) {
  .devotional-landing-grid,
  .devotional-content-grid,
  .devotional-access-grid,
  .devotional-home-card,
  .devotional-archive-grid {
    grid-template-columns: 1fr;
  }

  .devotional-landing h1,
  .devotional-access-hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 767px) {
  .devotional-page {
    background: linear-gradient(180deg, #08121d 0%, #102334 20%, #f5f0e8 20%, #f5f0e8 100%);
  }

  .devotional-landing,
  .devotional-access-hero {
    padding-top: 108px;
  }

  .devotional-landing-grid,
  .devotional-content-grid,
  .devotional-access-grid,
  .devotional-download-options {
    gap: 20px;
  }

  .devotional-summary,
  .devotional-form-card,
  .devotional-access-card,
  .devotional-home-copy {
    padding: 26px 24px;
  }

  .devotional-support-grid {
    grid-template-columns: 1fr;
  }

  .devotional-inline-form-mobile {
    display: block;
    margin-top: 18px;
  }

  .devotional-form-card > .devotional-errors,
  .devotional-form-card > .devotional-trigger-inline {
    display: none;
  }

  .devotional-inline-form-mobile .form-grid {
    gap: 10px;
  }

  .devotional-inline-form-mobile .bishop-form label {
    margin-bottom: 5px;
    font-size: 0.86rem;
  }

  .devotional-inline-form-mobile .bishop-form input {
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 0.97rem;
  }

  .devotional-inline-form-mobile .bishop-form button {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
  }

  .devotional-home-modal {
    align-items: center;
    justify-content: center;
    padding: max(4px, env(safe-area-inset-top)) 6px 6px;
    overflow-y: auto;
    touch-action: pan-y;
  }

  .devotional-home-card {
    width: min(82vw, 300px);
    min-height: auto;
    max-height: 72svh;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(8, 18, 29, 0.16);
  }

  .devotional-home-image {
    display: none;
  }

  .devotional-home-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
    padding: 6px 9px 9px;
    max-height: 72svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .devotional-home-copy h2 {
    font-size: 0.9rem;
    line-height: 0.9;
    margin-bottom: 1px;
    max-width: 11ch;
  }

  .devotional-home-copy .devotional-theme {
    display: none;
  }

  .devotional-home-copy > p {
    display: none;
  }

  .devotional-home-copy .devotional-kicker {
    display: none;
  }

  .devotional-home-copy .bishop-form .form-grid {
    gap: 1px;
  }

  .devotional-home-copy .bishop-form label {
    margin-bottom: 0;
    font-size: 0.54rem;
    line-height: 1.15;
  }

  .devotional-home-copy .bishop-form input,
  .devotional-home-copy .bishop-form select,
  .devotional-home-copy .bishop-form textarea {
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 13px;
  }

  .devotional-home-copy .bishop-form textarea {
    min-height: 32px;
  }

  .devotional-home-copy .bishop-form button {
    margin-top: 2px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }

  .devotional-home-copy .bishop-form .form-group.full-width label {
    line-height: 1.35;
  }

  .devotional-home-copy .bishop-form .form-group.full-width:last-of-type {
    display: none;
  }

  .devotional-modal-close {
    position: absolute;
    top: max(4px, env(safe-area-inset-top));
    right: 4px;
    z-index: 2;
    margin-bottom: 0;
    width: 20px;
    height: 20px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.92);
  }

  .devotional-home-actions .theme-btn,
  .devotional-action-row .theme-btn,
  .devotional-toggle-row .theme-btn,
  .devotional-archive-actions .theme-btn {
    width: 100%;
  }
}

@media (max-width: 767px) and (max-height: 780px) {
  .devotional-home-copy {
    padding: 5px 7px 7px;
  }

  .devotional-home-copy h2 {
    font-size: 0.82rem;
    margin-bottom: 0;
  }

  .devotional-home-copy .bishop-form .form-grid {
    gap: 1px;
  }

  .devotional-home-copy .bishop-form label {
    font-size: 0.5rem;
  }

  .devotional-home-copy .bishop-form input,
  .devotional-home-copy .bishop-form select,
  .devotional-home-copy .bishop-form textarea {
    padding: 2px 6px;
  }

  .devotional-home-copy .bishop-form textarea {
    min-height: 28px;
  }

  .devotional-home-copy .bishop-form button {
    margin-top: 1px;
    padding: 5px 7px;
  }
}
