/*
 * Portable course-resource Pages. Release 2026-08-16-22.
 * Scoped to the helper classes used by ordinary Gutenberg course content.
 */
.tn-wide-landing:has(.tn-course-intro) .tn-wide-landing__hero .tn-wide-frame,
.tn-wide-landing:has(.tn-course-context) .tn-wide-landing__hero .tn-wide-frame {
  box-sizing: border-box;
  max-width: calc(var(--wp--style--global--content-size) + (2 * clamp(2.25rem, 4vw, 3.5rem))) !important;
  padding-right: clamp(2.25rem, 4vw, 3.5rem);
  padding-left: clamp(2.25rem, 4vw, 3.5rem);
}

.tn-wide-landing:has(.tn-course-intro) .tn-wide-landing__hero .wp-block-post-title,
.tn-wide-landing:has(.tn-course-context) .tn-wide-landing__hero .wp-block-post-title {
  font-size: clamp(2.75rem, 3.6vw, 3.5rem) !important;
  line-height: 1.15;
}

.tn-wide-landing:has(.tn-course-intro) .tn-wide-landing__hero,
.tn-wide-landing:has(.tn-course-context) .tn-wide-landing__hero {
  padding-right: 0 !important;
  padding-bottom: 1.5rem !important;
  padding-left: 0 !important;
}

.tn-course-intro {
  padding: clamp(2.25rem, 4vw, 3.5rem) !important;
}

.tn-course-orientation,
.tn-course-map,
.tn-course-close,
.tn-course-section-intro {
  padding: clamp(2rem, 4vw, 3rem) !important;
}

.tn-course-context {
  padding: 0.65rem 1.25rem !important;
  border-radius: 10px !important;
  background-color: #f3f2ee !important;
}

.tn-course-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0 !important;
  color: var(--wp--preset--color--charcoal-soft);
  font-size: clamp(0.88rem, 1.25vw, 0.95rem);
  font-weight: 650;
  line-height: 1.35;
}

.tn-course-breadcrumb a {
  color: var(--wp--preset--color--moss-dark);
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.tn-course-breadcrumb__separator {
  color: rgba(37, 50, 47, 0.55);
}

.tn-course-breadcrumb__current {
  color: var(--wp--preset--color--charcoal);
}

.tn-course-context-meta {
  margin: 0.2rem 0 0 !important;
  color: var(--wp--preset--color--charcoal-soft);
  font-size: clamp(0.88rem, 1.2vw, 0.93rem);
  line-height: 1.35;
}

.tn-course-lesson {
  padding: clamp(2rem, 4vw, 3.5rem) !important;
}

.tn-course-lesson > h2:first-child {
  margin-top: 0 !important;
}

.tn-course-context + .tn-course-lesson {
  padding-top: clamp(1.25rem, 2.5vw, 2rem) !important;
}

.tn-course-prev-next {
  padding: clamp(1.25rem, 2.5vw, 1.75rem) !important;
}

.tn-wide-landing .wp-block-post-content > :is(
  .tn-course-intro,
  .tn-course-orientation,
  .tn-course-map,
  .tn-course-close,
  .tn-course-context,
  .tn-course-section-intro,
  .tn-course-lesson,
  .tn-course-prev-next
) {
  margin-top: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.tn-course-map {
  border: 1px solid rgba(40, 80, 68, 0.18);
  border-radius: 14px;
  background-color: #f5f8f6 !important;
  box-shadow: 0 0.25rem 1.25rem rgba(37, 50, 47, 0.035);
}

.tn-wide-landing .wp-block-post-content > :is(
  .tn-course-intro,
  .tn-course-map,
  .tn-course-close,
  .tn-course-context,
  .tn-course-section-intro,
  .tn-course-prev-next
) {
  width: calc(100% - 2rem);
  margin-right: auto !important;
  margin-left: auto !important;
}

.tn-wide-landing .wp-block-post-content > .tn-course-context {
  box-sizing: border-box;
  max-width: calc(var(--wp--style--global--content-size) + 2.5rem) !important;
}

.tn-wide-landing .wp-block-post-content > .tn-pain-relief-intro {
  box-sizing: border-box;
  max-width: calc(var(--wp--style--global--content-size) + 2.5rem) !important;
}

.tn-wide-landing .wp-block-post-content > .tn-course-context + :is(
  .tn-course-intro,
  .tn-course-section-intro,
  .tn-course-lesson
) {
  margin-top: clamp(1.25rem, 2vw, 1.75rem) !important;
}

.tn-course-map .wp-block-details {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(40, 80, 68, 0.14);
}

.tn-course-map .wp-block-details summary {
  cursor: pointer;
  color: var(--wp--preset--color--moss-dark);
  font-size: clamp(1.325rem, 2.2vw, 1.4rem);
  line-height: 1.3;
}

.tn-course-map .wp-block-details > h3,
.tn-course-map .wp-block-details > .wp-block-heading:is(h3) {
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
}

.tn-course-map .wp-block-details[open] summary {
  margin-bottom: 1.25rem;
}

.tn-course-map .wp-block-list > li + li {
  margin-top: 1rem;
}

.tn-course-intro,
.tn-course-context,
.tn-course-close {
  border: 1px solid rgba(40, 80, 68, 0.12);
  border-radius: 14px;
}

.tn-course-prev-next {
  border: 1px solid rgba(40, 80, 68, 0.22);
  border-radius: 14px;
  background-color: var(--wp--preset--color--moss-pale) !important;
}

.tn-course-prev-next p {
  margin: 0;
  font-weight: 700;
}

.tn-course-prev-next .tn-course-prev-next__row {
  display: flex;
  width: 100%;
  max-width: none !important;
  align-items: flex-start;
  justify-content: space-between !important;
  gap: 1rem;
}

.tn-course-prev-next .tn-course-prev-next__row--next-only {
  justify-content: flex-end !important;
}

.tn-course-prev-next .tn-course-prev-next__row--previous-only {
  justify-content: flex-start !important;
}

.tn-course-prev-next :is(.tn-course-previous, .tn-course-next) {
  flex: 1 1 0;
}

.tn-course-prev-next .tn-course-next {
  margin-left: auto;
  text-align: right;
}

.tn-course-prev-next .tn-course-previous {
  margin-right: auto;
  text-align: left;
}

.tn-course-prev-next a {
  text-underline-offset: 0.2em;
}

.tn-course-orientation-visual {
  display: grid;
  width: 100%;
  max-width: 56rem !important;
  grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 26%) !important;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.tn-course-orientation-visual .wp-block-media-text__content {
  padding: 0;
}

.tn-course-orientation-visual .wp-block-media-text__media {
  align-self: start;
  justify-self: end;
}

.tn-course-orientation-visual .wp-block-media-text__media img {
  display: block;
  width: 100%;
  max-width: 12rem;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 0.5rem 1.5rem rgba(37, 50, 47, 0.13);
}

.tn-course-orientation__caption {
  margin-top: 1rem;
  color: rgba(37, 50, 47, 0.78);
  font-size: 0.9em;
}

.tn-course-download-button {
  width: min(100%, 15rem);
}

.tn-course-download-button .wp-block-button,
.tn-course-download-button .wp-block-button__link {
  box-sizing: border-box;
  width: 100%;
}

.tn-course-download-button .wp-block-button__link {
  text-align: center;
}

.tn-course-lesson > h2 {
  clear: both;
  margin-top: clamp(3rem, 6vw, 4.5rem) !important;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem) !important;
}

.tn-course-lesson > h3 {
  clear: both;
  margin-top: clamp(2.25rem, 4vw, 3rem) !important;
  margin-bottom: 1rem !important;
}

.tn-course-lesson--script .wp-block-quote + h2 {
  margin-top: clamp(2.75rem, 5vw, 3.75rem) !important;
}

.tn-course-lesson .wp-block-audio {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  margin-left: 0;
  text-align: left;
}

.tn-course-lesson .wp-block-audio audio {
  width: 100%;
}

.tn-course-lesson .wp-block-audio figcaption {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.tn-course-practice-note {
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
  border: 1px solid rgba(40, 80, 68, 0.14);
  border-radius: 12px;
}

.tn-course-practice-note p {
  margin: 0;
}

.tn-course-lesson--script p:has(> strong:first-child) {
  line-height: 1.75;
}

.tn-course-module-map > h3 {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.tn-course-decorative-image {
  float: right !important;
  width: min(38%, 16rem);
  margin: 0.35rem 0 1.5rem clamp(1.5rem, 3vw, 2rem) !important;
}

.tn-course-decorative-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.tn-course-map--compact .tn-course-map-disclosure {
  padding: 0;
  border: 0;
}

.tn-course-map--compact .tn-course-map-disclosure > summary {
  cursor: pointer;
  color: var(--wp--preset--color--moss-dark);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.tn-course-map--compact .tn-course-map-disclosure[open] > summary {
  margin-bottom: 1.5rem;
}

.tn-course-return {
  width: calc(100% - 2rem);
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0 !important;
  padding: 0 clamp(2rem, 4vw, 3rem) !important;
}

.tn-course-return__link {
  margin: 0;
}

.tn-course-lesson .tn-course-divider {
  display: block;
  width: 88%;
  max-width: 88%;
  height: 0;
  margin: clamp(3rem, 6vw, 4.5rem) auto clamp(2.25rem, 4vw, 3rem);
  border: 0;
  border-top: 1px solid rgba(2, 116, 90, 0.22);
  background: transparent;
  opacity: 1;
}

.tn-course-lesson .tn-course-divider + :is(h2, h3) {
  margin-top: 0;
}

.tn-course-signature {
  line-height: 1.65;
}

@media (max-width: 782px) {
  .tn-course-orientation-visual {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .tn-course-orientation-visual .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .tn-course-orientation-visual .wp-block-media-text__media img {
    max-width: 10.5rem;
  }
}

@media (max-width: 640px) {
  .tn-course-decorative-image {
    float: none !important;
    width: min(72%, 16rem);
    margin: 1rem auto 2rem !important;
  }

  .tn-wide-landing .wp-block-post-content > :is(
    .tn-course-orientation,
    .tn-course-map,
    .tn-course-close,
    .tn-course-context,
    .tn-course-section-intro,
    .tn-course-lesson,
    .tn-course-prev-next
  ) {
    margin-top: 1.5rem !important;
  }
}

/*
 * Owned course catalog. The catalog stays ordinary Gutenberg content while
 * these helper classes provide the visual rhythm and consistent image cards.
 */
.tn-course-catalog > * {
  margin-block-start: 0;
}

.tn-course-catalog__hero {
  border-bottom: 1px solid rgba(40, 80, 68, 0.08);
  background-color: var(--wp--preset--color--paper);
}

.tn-course-catalog__hero h1 {
  max-width: none;
  margin-top: 0;
  margin-bottom: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.tn-course-catalog__hero .tn-kicker {
  margin-bottom: 0.75rem;
}

.tn-course-catalog__lead {
  margin-bottom: 1rem;
}

.tn-course-catalog__open {
  padding-top: 3.75rem !important;
  padding-bottom: 4rem !important;
}

.tn-course-catalog__card-body > :first-child {
  margin-top: 0;
}

.tn-course-catalog__card-body > :last-child {
  margin-bottom: 0;
}

.tn-course-catalog__card h3 a,
.tn-course-catalog__circle-invitation h3 a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.tn-course-catalog__card h3 a:hover,
.tn-course-catalog__card h3 a:focus-visible,
.tn-course-catalog__circle-invitation h3 a:hover,
.tn-course-catalog__circle-invitation h3 a:focus-visible {
  color: var(--wp--preset--color--moss-dark);
  text-decoration: underline;
  text-decoration-thickness: 0.065em;
  text-underline-offset: 0.12em;
}

.tn-course-catalog__grid {
  display: grid;
  width: 100%;
  max-width: none !important;
  margin-top: clamp(2rem, 4vw, 3rem) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.tn-course-catalog__grid > .tn-course-catalog__card {
  margin: 0 !important;
}

.tn-course-catalog__card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(40, 80, 68, 0.16);
  border-radius: 14px;
  background-color: var(--wp--preset--color--white);
  box-shadow: 0 0.25rem 1.25rem rgba(37, 50, 47, 0.04);
}

.tn-course-catalog__card:focus-within {
  border-color: rgba(2, 116, 90, 0.45);
  box-shadow: 0 0 0 3px rgba(2, 116, 90, 0.08);
}

.tn-course-catalog__card-image {
  width: 100%;
  aspect-ratio: 12 / 5;
  margin: 0 !important;
  overflow: hidden;
  border-bottom: 1px solid rgba(40, 80, 68, 0.1);
  background-color: var(--wp--preset--color--moss-pale);
}

.tn-course-catalog__card-image a,
.tn-course-catalog__card-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.tn-course-catalog__card-image img {
  object-fit: cover;
}

.tn-course-catalog__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem) !important;
}

.tn-course-catalog__card h3 {
  margin-top: 0.8rem;
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.3vw, 1.65rem);
  line-height: 1.2;
}

.tn-course-catalog__card-body > p:not(.tn-course-catalog__card-link) {
  color: var(--wp--preset--color--ink-soft);
}

.tn-course-catalog__card-link {
  margin-top: auto !important;
  padding-top: 1rem;
  font-weight: 800;
}

.tn-course-catalog__card-link a {
  text-decoration-thickness: 0.065em;
  text-underline-offset: 0.18em;
}

.tn-course-catalog__circle-invitation {
  display: grid;
  width: 100%;
  max-width: none !important;
  margin-top: clamp(2.25rem, 5vw, 3.5rem) !important;
  padding: 0 !important;
  overflow: hidden;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.35fr);
  border: 1px solid rgba(40, 80, 68, 0.18);
  border-radius: 16px;
  box-shadow: 0 0.4rem 1.8rem rgba(37, 50, 47, 0.055);
}

.tn-course-catalog__circle-invitation .tn-course-catalog__card-image {
  height: 100%;
  min-height: 18rem;
  aspect-ratio: auto;
  border-right: 1px solid rgba(40, 80, 68, 0.1);
  border-bottom: 0;
}

.tn-course-catalog__circle-body {
  align-self: center;
  margin: 0 !important;
  padding: clamp(1.75rem, 4vw, 3rem) !important;
}

.tn-course-catalog__circle-body > :first-child {
  margin-top: 0;
}

.tn-course-catalog__circle-body > :last-child {
  margin-bottom: 0;
}

.tn-course-catalog__circle-body h3 {
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.tn-course-catalog__circle-body .wp-block-buttons {
  margin-top: 1.5rem;
}

.tn-course-catalog__help .wp-block-buttons {
  margin-top: 1.5rem;
}

@media (max-width: 720px) {
  .tn-course-catalog__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tn-course-catalog__card-image {
    aspect-ratio: 16 / 7;
  }

  .tn-course-catalog__circle-invitation {
    grid-template-columns: minmax(0, 1fr);
  }

  .tn-course-catalog__circle-invitation .tn-course-catalog__card-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 7;
    border-right: 0;
    border-bottom: 1px solid rgba(40, 80, 68, 0.1);
  }
}

@media (max-width: 480px) {
  .tn-course-catalog__card-body,
  .tn-course-catalog__circle-body {
    padding: 1.35rem !important;
  }
}

/*
 * Concepts for Thriving is a browsable collection rather than a sequential
 * course. These additions keep the two orienting concepts distinct and make
 * the alphabetic directory compact enough to revisit on every concept Page.
 */
.tn-concepts-spotlights {
  margin-top: clamp(1.5rem, 3vw, 2.25rem) !important;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.tn-concepts-spotlight {
  box-sizing: border-box;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem) !important;
  border: 1px solid rgba(40, 80, 68, 0.16);
  border-radius: 13px;
  box-shadow: 0 0.25rem 1.25rem rgba(37, 50, 47, 0.035);
}

.tn-concepts-spotlight > :first-child {
  margin-top: 0;
}

.tn-concepts-spotlight > :last-child {
  margin-bottom: 0;
}

.tn-concepts-directory .wp-block-details summary span {
  color: var(--wp--preset--color--charcoal-soft);
  font-size: 0.8em;
  font-weight: 500;
}

.tn-concepts-directory .wp-block-list {
  columns: 2 15rem;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.tn-concepts-directory .wp-block-list > li {
  break-inside: avoid;
}

.tn-concepts-directory.tn-course-map--compact .wp-block-details > h3 {
  margin-top: 1.5rem !important;
  margin-bottom: 0.6rem !important;
  font-size: 1.05rem;
}

.tn-concepts-directory.tn-course-map--compact .wp-block-details > h3:first-of-type {
  margin-top: 1rem !important;
}

.tn-concept-entry > :first-child {
  margin-top: 0;
}

.tn-concept-entry .concept-definition {
  font-size: 25px;
  line-height: 1.55;
}

.tn-concept-entry a {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .tn-concepts-directory .wp-block-list {
    columns: 1;
  }

  .tn-concepts-spotlights {
    gap: 1rem;
  }

  .tn-concept-entry .concept-definition {
    font-size: 21px;
  }
}
