body.page-id-21521 .wp-block-post-featured-image,
body.page-id-21521 .post-thumbnail {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-id-21521 .wp-block-post-featured-image img,
body.page-id-21521 .post-thumbnail img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- WPWriter addition --- */
body.page-id-21606 .wp-block-post-featured-image,
body.page-id-21606 .post-thumbnail {
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-id-21606 .wp-block-post-featured-image img,
body.page-id-21606 .post-thumbnail img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- WPWriter addition --- */
/* Tarot Studies homepage: equal-height Latest Lessons cards */
body.home .tarot-latest-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

body.home .tarot-latest-card > p:last-child {
  margin-top: auto !important;
}

@media (max-width: 781px) {
  body.home .tarot-latest-card {
    height: auto !important;
  }
}

/* --- WPWriter addition --- */
/* Tarot Studies homepage: equal-height practical resource cards */
body.home .tarot-practical-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

body.home .tarot-practical-card > .wp-block-buttons:last-child {
  margin-top: auto !important;
}

@media (max-width: 781px) {
  body.home .tarot-practical-card {
    height: auto !important;
  }
}

/* --- WPWriter addition --- */
/* Tarot Studies homepage: non-clickable pathway status controls */
body.home .tarot-pathway-status {
  display: table !important;
  margin-top: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0.65em 1.15em !important;
  border: 1px solid #914343 !important;
  border-radius: 0.33rem !important;
  color: #914343 !important;
  line-height: 1.2 !important;
  font-style: normal !important;
}

/* --- WPWriter addition --- */
/* Tarot Studies homepage: align pathway actions */
body.home .tarot-pathway-card {
  display: flex !important;
  flex-direction: column !important;
}

body.home .tarot-pathway-card > :last-child {
  margin-top: auto !important;
}

/* --- WPWriter addition --- */
/* Tarot Studies homepage: equal-height four-pillar cards */
body.home .tarot-pillar-card {
  height: 100% !important;
  box-sizing: border-box !important;
}

body.home .tarot-pillar-card > .wp-block-columns {
  height: 100% !important;
}

body.home .tarot-pillar-card h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

body.home .tarot-pillar-card h3 a:hover,
body.home .tarot-pillar-card h3 a:focus {
  color: #914343 !important;
  text-decoration: underline !important;
}

@media (max-width: 781px) {
  body.home .tarot-pillar-card,
  body.home .tarot-pillar-card > .wp-block-columns {
    height: auto !important;
  }
}

/* --- WPWriter addition --- */
/* Tarot Studies homepage: equal-height trust cards */
body.home .tarot-trust-card {
  height: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 781px) {
  body.home .tarot-trust-card {
    height: auto !important;
  }
}

/* --- WPWriter addition --- */
/* Tarot Studies homepage: match interior-page header transition */
body.home main.wp-block-group {
  margin-block-start: 1.2rem !important;
}

/* --- WPWriter addition --- */
/* Tarot Studies header: balanced desktop proportions */
body.home main.wp-block-group {
  margin-block-start: 0 !important;
}

@media (min-width: 782px) {
  body .wp-site-blocks > header .wp-block-group.alignwide {
    column-gap: 1.25rem !important;
  }

  body .wp-site-blocks > header p.has-merriweather-font-family {
    font-size: 2rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  body .wp-site-blocks > header .wp-block-navigation,
  body .wp-site-blocks > header .wp-block-navigation__container {
    column-gap: 1rem !important;
    font-size: 0.9375rem !important;
  }

  body .wp-site-blocks > header .wp-block-navigation-item__label,
  body .wp-site-blocks > header .wp-block-jetpack-subscriber-login a {
    white-space: nowrap !important;
    line-height: 1.35 !important;
  }

  body .wp-site-blocks > header .wp-block-jetpack-subscriptions button.wp-block-button__link {
    padding: 0.75rem 1.125rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.2 !important;
  }
}

/* --- WPWriter addition --- */
/* Lessons and Insights: compact Explore by Topic panel */
body.page-id-11005 .tarot-blog-intro {
  padding: 2rem !important;
  margin-block: 2rem !important;
}

body.page-id-11005 .tarot-blog-topic-nav .wp-block-jetpack-subscriptions,
body.page-id-11005 .tarot-blog-topic-nav .wp-block-jetpack-subscriber-login {
  display: none !important;
}

body.page-id-11005 .tarot-blog-topic-nav .wp-block-navigation__container {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

body.page-id-11005 .tarot-blog-topic-nav .wp-block-navigation-item {
  width: 100% !important;
}

body.page-id-11005 .tarot-blog-topic-nav button.wp-block-navigation-submenu__toggle {
  justify-content: center !important;
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0.65rem 0.85rem !important;
  border: 1px solid #914343 !important;
  border-radius: 4px !important;
  background: #fffaf2 !important;
  color: #5e2d2d !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

body.page-id-11005 .tarot-blog-topic-nav button.wp-block-navigation-submenu__toggle:hover,
body.page-id-11005 .tarot-blog-topic-nav button.wp-block-navigation-submenu__toggle:focus {
  background: #914343 !important;
  color: #ffffff !important;
}

@media (max-width: 600px) {
  body.page-id-11005 .tarot-blog-intro {
    padding: 1.5rem !important;
  }

  body.page-id-11005 .tarot-blog-topic-nav .wp-block-navigation__container {
    grid-template-columns: 1fr !important;
  }
}

/* --- WPWriter addition --- */
/* Lessons and Insights: responsive post-card grid */
body.page-id-11005 .tarot-blog-card-grid > div[data-posts] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

body.page-id-11005 .tarot-blog-card-grid article {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid #cdbb9b !important;
  border-radius: 4px !important;
  background: #fffaf2 !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.08) !important;
}

body.page-id-11005 .tarot-blog-card-grid article .post-thumbnail {
  height: 220px !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #eadfcd !important;
}

body.page-id-11005 .tarot-blog-card-grid article .post-thumbnail a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body.page-id-11005 .tarot-blog-card-grid article .post-thumbnail img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

body.page-id-11005 .tarot-blog-card-grid article .entry-wrapper {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  padding: 1.25rem !important;
}

body.page-id-11005 .tarot-blog-card-grid article .entry-title {
  margin: 0 0 0.75rem !important;
  font-family: Merriweather, serif !important;
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
}

body.page-id-11005 .tarot-blog-card-grid article .entry-title a {
  color: #4f2929 !important;
  text-decoration: none !important;
}

body.page-id-11005 .tarot-blog-card-grid article .entry-title a:hover,
body.page-id-11005 .tarot-blog-card-grid article .entry-title a:focus {
  color: #914343 !important;
  text-decoration: underline !important;
}

body.page-id-11005 .tarot-blog-card-grid article .entry-wrapper > p {
  margin: 0 0 1rem !important;
  line-height: 1.6 !important;
}

body.page-id-11005 .tarot-blog-card-grid article .wordads-ad-wrapper,
body.page-id-11005 .tarot-blog-card-grid article .byline {
  display: none !important;
}

body.page-id-11005 .tarot-blog-card-grid article .more-link {
  align-self: flex-start !important;
  margin-top: auto !important;
  padding: 0.65rem 1rem !important;
  border-radius: 4px !important;
  background: #914343 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

body.page-id-11005 .tarot-blog-card-grid article .more-link:hover,
body.page-id-11005 .tarot-blog-card-grid article .more-link:focus {
  background: #6f3030 !important;
}

body.page-id-11005 .tarot-blog-card-grid article .entry-meta {
  order: -1 !important;
  margin: 0 0 0.6rem !important;
  color: #765d4f !important;
  font-size: 0.8rem !important;
}

@media (max-width: 700px) {
  body.page-id-11005 .tarot-blog-card-grid > div[data-posts] {
    grid-template-columns: 1fr !important;
  }

  body.page-id-11005 .tarot-blog-card-grid article .post-thumbnail {
    height: 240px !important;
  }
}

/* --- WPWriter addition --- */
/* Lessons and Insights: clearer article-card action label */
body.page-id-11005 .tarot-blog-card-grid article .more-link {
  font-size: 0 !important;
}

body.page-id-11005 .tarot-blog-card-grid article .more-link::after {
  content: "Read the Article";
  font-size: 0.9375rem !important;
  line-height: 1.2 !important;
}

/* --- WPWriter addition --- */
/* Tarot Glossary draft: hero and search */
body.page-id-2741 .tarot-glossary-hero {
  box-shadow: 0 4px 14px rgba(83, 55, 39, 0.08) !important;
}

body.page-id-2741 .tarot-glossary-hero > * {
  max-width: 820px !important;
}

body.page-id-2741 .tarot-glossary-search {
  box-sizing: border-box !important;
  width: 100% !important;
}

body.page-id-2741 .tarot-glossary-search form,
body.page-id-2741 .tarot-glossary-search .wp-block-jetpack-search {
  width: 100% !important;
}

body.page-id-2741 .tarot-glossary-search input[type="search"],
body.page-id-2741 .tarot-glossary-search input[type="text"] {
  min-height: 3.25rem !important;
  border-color: #a9896c !important;
  background: #ffffff !important;
  font-size: 1rem !important;
}

body.page-id-2741 .tarot-glossary-search button {
  min-height: 3.25rem !important;
  border-color: #914343 !important;
  background: #914343 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

body.page-id-2741 .tarot-glossary-search button:hover,
body.page-id-2741 .tarot-glossary-search button:focus {
  background: #6f3030 !important;
}

@media (max-width: 700px) {
  body.page-id-2741 .tarot-glossary-hero {
    padding: 1.5rem !important;
  }

  body.page-id-2741 .tarot-glossary-search {
    padding: 1.25rem !important;
  }
}

/* --- WPWriter addition --- */
/* Tarot Glossary draft: Browse by Subject */
body.page-id-2741 .tarot-glossary-subject-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}

body.page-id-2741 .tarot-glossary-subject-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.08) !important;
}

body.page-id-2741 .tarot-glossary-subject-image {
  width: calc(100% + 3rem) !important;
  max-width: none !important;
  height: 190px !important;
  margin: 0 -1.5rem 1.25rem !important;
  overflow: hidden !important;
  background: #eadfcd !important;
}

body.page-id-2741 .tarot-glossary-subject-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

body.page-id-2741 .tarot-glossary-subject-card h3 {
  margin-top: 0 !important;
  color: #4f2929 !important;
}

body.page-id-2741 .tarot-glossary-subject-card .wp-block-buttons {
  margin-top: auto !important;
}

body.page-id-2741 .tarot-glossary-subject-card .wp-block-button__link {
  background: #914343 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

body.page-id-2741 .tarot-glossary-subject-card .wp-block-button__link:hover,
body.page-id-2741 .tarot-glossary-subject-card .wp-block-button__link:focus {
  background: #6f3030 !important;
}

@media (max-width: 950px) {
  body.page-id-2741 .tarot-glossary-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  body.page-id-2741 .tarot-glossary-subject-grid {
    grid-template-columns: 1fr !important;
  }

  body.page-id-2741 .tarot-glossary-subject-image {
    height: 220px !important;
  }
}

/* --- WPWriter addition --- */
/* Tarot Glossary draft: A–Z browsing */
body.page-id-2741 .tarot-glossary-az {
  box-shadow: 0 4px 14px rgba(83, 55, 39, 0.08) !important;
}

body.page-id-2741 .tarot-glossary-alphabet {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  margin-block: 1.75rem 2rem !important;
}

body.page-id-2741 .tarot-glossary-letter {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  box-sizing: border-box !important;
  border-radius: 4px !important;
  font-family: Merriweather, serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.page-id-2741 .tarot-glossary-letter.is-active {
  border: 1px solid #914343 !important;
  background: #fffaf2 !important;
  color: #5e2d2d !important;
}

body.page-id-2741 .tarot-glossary-letter.is-active:hover,
body.page-id-2741 .tarot-glossary-letter.is-active:focus {
  background: #914343 !important;
  color: #ffffff !important;
}

body.page-id-2741 .tarot-glossary-letter.is-empty {
  border: 1px solid #d8ccba !important;
  background: #eee6d9 !important;
  color: #9b8f80 !important;
  cursor: default !important;
}

body.page-id-2741 .tarot-glossary-letter-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  align-items: stretch !important;
}

body.page-id-2741 .tarot-glossary-letter-group {
  height: 100% !important;
  box-sizing: border-box !important;
}

body.page-id-2741 .tarot-glossary-letter-group h3 {
  margin-top: 0 !important;
  padding-bottom: 0.45rem !important;
  border-bottom: 1px solid #cdbb9b !important;
  color: #914343 !important;
}

body.page-id-2741 .tarot-glossary-term-list {
  margin-bottom: 0 !important;
  padding-left: 1.15rem !important;
}

body.page-id-2741 .tarot-glossary-term-list li {
  margin-bottom: 0.35rem !important;
}

body.page-id-2741 .tarot-glossary-term-list a {
  color: #4f2929 !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.15em !important;
}

body.page-id-2741 .tarot-glossary-term-list a:hover,
body.page-id-2741 .tarot-glossary-term-list a:focus {
  color: #914343 !important;
}

@media (max-width: 900px) {
  body.page-id-2741 .tarot-glossary-letter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  body.page-id-2741 .tarot-glossary-az {
    padding: 1.5rem !important;
  }

  body.page-id-2741 .tarot-glossary-letter {
    width: 2.15rem !important;
    height: 2.15rem !important;
  }

  body.page-id-2741 .tarot-glossary-letter-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- WPWriter addition --- */
/* --- WPWriter addition --- */
/* Tarot Glossary Letter A draft: master letter-page template */
body.page-id-21108 .tarot-glossary-letter-hero {
  box-shadow: 0 4px 14px rgba(83, 55, 39, 0.08) !important;
}

body.page-id-21108 .tarot-glossary-letter-index {
  background: #fffaf2 !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.06) !important;
}

body.page-id-21108 .tarot-glossary-term-jump {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.55rem !important;
}

body.page-id-21108 .tarot-glossary-term-jump a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 2.2rem !important;
  padding: 0.4rem 0.75rem !important;
  border: 1px solid #914343 !important;
  border-radius: 4px !important;
  background: #fffaf2 !important;
  color: #5e2d2d !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

body.page-id-21108 .tarot-glossary-term-jump a:hover,
body.page-id-21108 .tarot-glossary-term-jump a:focus {
  background: #914343 !important;
  color: #ffffff !important;
}

body.page-id-21108 .tarot-glossary-entry-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  align-items: stretch !important;
}

body.page-id-21108 .tarot-glossary-entry {
  height: 100% !important;
  box-sizing: border-box !important;
  scroll-margin-top: 2rem !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.06) !important;
}

body.page-id-21108 .tarot-glossary-entry h3 {
  margin-top: 0 !important;
  padding-bottom: 0.45rem !important;
  border-bottom: 1px solid #cdbb9b !important;
  color: #5e2d2d !important;
}

body.page-id-21108 .tarot-glossary-entry p:last-child {
  margin-bottom: 0 !important;
  color: #765d4f !important;
  font-size: 0.9rem !important;
}

@media (max-width: 700px) {
  body.page-id-21108 .tarot-glossary-letter-hero,
  body.page-id-21108 .tarot-glossary-letter-index {
    padding: 1.5rem !important;
  }

  body.page-id-21108 .tarot-glossary-entry-list {
    grid-template-columns: 1fr !important;
  }
}

/* --- WPWriter addition --- */
/* --- WPWriter addition --- */
/* Tarot Glossary Letter B draft: match the master letter-page template */
body.page-id-21755 .tarot-glossary-letter-hero {
  box-shadow: 0 4px 14px rgba(83, 55, 39, 0.08) !important;
}
body.page-id-21755 .tarot-glossary-letter-index {
  background: #fffaf2 !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.06) !important;
}
body.page-id-21755 .tarot-glossary-term-jump {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.55rem !important;
}
body.page-id-21755 .tarot-glossary-term-jump a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 2.2rem !important;
  padding: 0.4rem 0.75rem !important;
  border: 1px solid #914343 !important;
  border-radius: 4px !important;
  background: #fffaf2 !important;
  color: #5e2d2d !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}
body.page-id-21755 .tarot-glossary-term-jump a:hover,
body.page-id-21755 .tarot-glossary-term-jump a:focus {
  background: #914343 !important;
  color: #ffffff !important;
}
body.page-id-21755 .tarot-glossary-entry-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  align-items: stretch !important;
}
body.page-id-21755 .tarot-glossary-entry {
  height: 100% !important;
  box-sizing: border-box !important;
  scroll-margin-top: 2rem !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.06) !important;
}
body.page-id-21755 .tarot-glossary-entry h3 {
  margin-top: 0 !important;
  padding-bottom: 0.45rem !important;
  border-bottom: 1px solid #cdbb9b !important;
  color: #5e2d2d !important;
}
body.page-id-21755 .tarot-glossary-entry p:last-child {
  margin-bottom: 0 !important;
  color: #765d4f !important;
  font-size: 0.9rem !important;
}
@media (max-width: 700px) {
  body.page-id-21755 .tarot-glossary-letter-hero,
  body.page-id-21755 .tarot-glossary-letter-index {
    padding: 1.5rem !important;
  }
  body.page-id-21755 .tarot-glossary-entry-list {
    grid-template-columns: 1fr !important;
  }
}

/* --- WPWriter addition --- */
/* --- WPWriter addition --- */
/* Reusable Tarot Glossary letter-page system (A–Z) */
body .tarot-glossary-letter-hero {
  box-shadow: 0 4px 14px rgba(83, 55, 39, 0.08) !important;
}
body .tarot-glossary-letter-index {
  background: #fffaf2 !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.06) !important;
}
body .tarot-glossary-term-jump {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.55rem !important;
}
body .tarot-glossary-term-jump a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 2.2rem !important;
  padding: 0.4rem 0.75rem !important;
  border: 1px solid #914343 !important;
  border-radius: 4px !important;
  background: #fffaf2 !important;
  color: #5e2d2d !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}
body .tarot-glossary-term-jump a:hover,
body .tarot-glossary-term-jump a:focus {
  background: #914343 !important;
  color: #ffffff !important;
}
body .tarot-glossary-entry-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
  align-items: stretch !important;
}
body .tarot-glossary-entry {
  height: 100% !important;
  box-sizing: border-box !important;
  scroll-margin-top: 2rem !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.06) !important;
}
body .tarot-glossary-entry h3 {
  margin-top: 0 !important;
  padding-bottom: 0.45rem !important;
  border-bottom: 1px solid #cdbb9b !important;
  color: #5e2d2d !important;
}
body .tarot-glossary-entry p:last-child {
  margin-bottom: 0 !important;
  color: #765d4f !important;
  font-size: 0.9rem !important;
}
@media (max-width: 700px) {
  body .tarot-glossary-letter-hero,
  body .tarot-glossary-letter-index {
    padding: 1.5rem !important;
  }
  body .tarot-glossary-entry-list {
    grid-template-columns: 1fr !important;
  }
}

/* --- WPWriter addition --- */
/* --- Tarot Glossary subject indexes: visual and mobile refinement --- */
body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-hero {
  box-shadow: 0 4px 14px rgba(83, 55, 39, 0.08) !important;
}

body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-hero > * {
  max-width: 820px !important;
}

body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-section {
  padding: 1.25rem !important;
  border: 1px solid #cdbb9b !important;
  border-radius: 4px !important;
  background: #fffaf2 !important;
  box-shadow: 0 3px 10px rgba(83, 55, 39, 0.06) !important;
}

body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-section h3 {
  margin-top: 0 !important;
  padding-bottom: 0.55rem !important;
  border-bottom: 1px solid #cdbb9b !important;
  color: #5e2d2d !important;
}

body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-section .tarot-glossary-term-jump {
  justify-content: flex-start !important;
}

body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-section .tarot-glossary-term-jump a {
  min-height: 2.5rem !important;
  box-sizing: border-box !important;
}

@media (max-width: 700px) {
  body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-hero {
    padding: 1.5rem !important;
  }

  body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-section {
    padding: 1rem !important;
  }

  body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-section .tarot-glossary-term-jump {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }

  body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .tarot-glossary-subject-section .tarot-glossary-term-jump a {
    width: 100% !important;
    min-height: 2.75rem !important;
    justify-content: flex-start !important;
    padding: 0.65rem 0.8rem !important;
  }

  body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .wp-block-buttons[style*="space-between"],
  body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .wp-block-buttons.is-content-justification-space-between {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .wp-block-buttons.is-content-justification-space-between .wp-block-button,
  body:is(.page-id-21740,.page-id-21741,.page-id-21742,.page-id-21743,.page-id-21744,.page-id-21745) .wp-block-buttons.is-content-justification-space-between .wp-block-button__link {
    width: 100% !important;
  }
}

/* --- WPWriter addition --- */
/* --- Tarot Glossary hub: equal Browse by Subject image frames --- */
body.page-id-2741 figure.tarot-glossary-subject-image {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  margin: 0 auto 1.25rem !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #eadfcd !important;
}

body.page-id-2741 figure.tarot-glossary-subject-image img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 600px) {
  body.page-id-2741 figure.tarot-glossary-subject-image {
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
  }
}

/* --- WPWriter addition --- */

/* --- 7-Day Intuitive Tarot Challenge: hide theme-rendered featured image --- */
body.page-id-22100 .wp-block-post-featured-image,
body.page-id-22100 .post-thumbnail {
  display: none !important;
}
