.thriving-page {
  padding-bottom: 56px;
}

.thriving-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  background: #fff9df;
}

.thriving-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-cyan), var(--brand-mint), var(--brand-pink));
}

.thriving-hero-copy {
  position: relative;
  z-index: 1;
}

.thriving-eyebrow,
.thriving-section-kicker {
  margin: 0 0 10px;
  color: #765a18;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.thriving-hero .lead {
  margin-top: 12px;
  max-width: 58ch;
}

.thriving-colour-mark {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(67, 49, 12, 0.14);
}

.thriving-colour-mark span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.thriving-colour-mark span:nth-child(1) {
  background: var(--brand-purple);
}

.thriving-colour-mark span:nth-child(2) {
  background: var(--brand-cyan);
}

.thriving-colour-mark span:nth-child(3) {
  background: var(--brand-mint);
}

.thriving-colour-mark span:nth-child(4) {
  background: var(--brand-pink);
}

.thriving-mission-band,
.thriving-share-band {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #e3c042;
  border-radius: var(--radius);
  background: #1e1f24;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(67, 49, 12, 0.16);
}

.thriving-mission-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.thriving-mission-band .thriving-section-kicker,
.thriving-share-band .thriving-section-kicker {
  color: #ffd23f;
}

.thriving-mission-band h2,
.thriving-share-band h2 {
  margin: 0;
  color: #ffffff;
}

.thriving-mission-band p,
.thriving-share-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.thriving-values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.thriving-value {
  min-height: 188px;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(67, 49, 12, 0.12);
}

.thriving-value h2 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.thriving-value p {
  margin: 0;
  line-height: 1.55;
}

.thriving-value-empowering {
  background: var(--brand-purple);
  color: #ffffff;
}

.thriving-value-connected {
  background: var(--brand-cyan);
  color: #073642;
}

.thriving-value-impactful {
  background: var(--brand-mint);
  color: #0f4c3d;
}

.thriving-value-creative {
  background: var(--brand-pink);
  color: #ffffff;
}

.thriving-two-column,
.perma-intro,
.resources-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.thriving-wellbeing-card,
.perma-card,
.resources-card {
  background: #fffdf4;
}

.thriving-wellbeing-card h2,
.perma-intro h2,
.resources-header h2 {
  margin-bottom: 0;
  color: #25283a;
}

.thriving-copy-stack p,
.perma-intro p,
.resources-header p {
  margin: 0;
  color: #3d4360;
  line-height: 1.65;
}

.thriving-copy-stack p + p {
  margin-top: 14px;
}

.perma-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.perma-pillar {
  min-height: 190px;
  padding: 18px;
  border: 1px solid #ecd98a;
  border-radius: 16px;
  background: #ffffff;
}

.perma-letter {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fff3bf;
  color: #5e4906;
  font-size: 1.35rem;
  font-weight: 700;
}

.perma-pillar h3,
.resource-section h3 {
  margin: 0 0 8px;
  color: #25283a;
  font-size: 1.06rem;
}

.perma-pillar p {
  margin: 0;
  color: #4f5570;
  line-height: 1.55;
}

.perma-health {
  border-color: rgba(29, 185, 210, 0.48);
  background: #f0fbfd;
}

.perma-health .perma-letter {
  background: var(--brand-cyan);
  color: #073642;
}

.perma-action-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(29, 185, 210, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0fbfd 0%, #fffdf4 58%, #faf5ff 100%);
  box-shadow: 0 10px 24px rgba(67, 49, 12, 0.1);
}

.perma-action-section h2 {
  margin-bottom: 8px;
  color: #25283a;
}

.perma-action-section p:last-child {
  margin: 0;
  max-width: 58ch;
  color: #3d4360;
  line-height: 1.6;
}

.perma-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1e1f24;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(30, 31, 36, 0.14);
}

.perma-action-link:hover,
.perma-action-link:focus-visible {
  background: #572ca3;
  outline: none;
}

.resource-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #ead788;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.resource-item {
  display: block;
  min-height: 116px;
  padding: 16px;
  border: 1px solid #ecd98a;
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.resource-item:hover,
.resource-item:focus-visible {
  transform: translateY(-1px);
  border-color: #d8bd5f;
  box-shadow: 0 10px 18px rgba(67, 49, 12, 0.1);
  outline: none;
}

.resource-item span {
  display: block;
  color: #3d236c;
  font-weight: 700;
  line-height: 1.35;
}

.resource-item small {
  display: block;
  margin-top: 8px;
  color: #4f5570;
  font-size: 0.9rem;
  line-height: 1.45;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.book-tile {
  min-height: 96px;
  margin: 0;
  border: 1px solid #ecd98a;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.book-tile summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 96px;
  padding: 16px;
  list-style: none;
  cursor: pointer;
}

.book-tile summary::-webkit-details-marker {
  display: none;
}

.book-heading,
.book-heading strong,
.book-heading span {
  display: block;
}

.book-heading strong {
  color: #25283a;
  line-height: 1.35;
}

.book-heading span {
  margin-top: 8px;
  color: #6a6f86;
  line-height: 1.4;
}

.book-more {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f7f1d7;
  color: #6f5a28;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(227, 192, 66, 0.38);
}

.book-tile[open] .book-more {
  background: #ede6ff;
  color: #5d34a8;
}

.book-detail {
  padding: 0 16px 16px;
}

.book-detail p {
  margin: 0;
  color: #4f5570;
  font-size: 0.94rem;
  line-height: 1.55;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.book-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f7f1d7;
  color: #6f5a28;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(227, 192, 66, 0.38);
}

.book-actions a:hover,
.book-actions a:focus-visible {
  background: #fff3bf;
  outline: none;
}

.book-actions .book-amazon-link {
  gap: 7px;
  background: #f6f7fa;
  color: #454b5f;
  box-shadow: inset 0 0 0 1px rgba(180, 188, 207, 0.55);
}

.book-actions .book-amazon-link:hover,
.book-actions .book-amazon-link:focus-visible {
  background: #eceff5;
}

.book-amazon-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.thriving-share-band {
  text-align: center;
}

.thriving-share-band p {
  margin-top: 8px;
}

.thriving-share-band a {
  color: #ffd23f;
  font-weight: 700;
}

.thriving-share-band a:hover,
.thriving-share-band a:focus-visible {
  color: #ffffff;
}

@media (max-width: 860px) {
  .thriving-values-grid,
  .perma-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thriving-mission-band,
  .thriving-two-column,
  .perma-intro,
  .resources-header,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .perma-action-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .thriving-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .thriving-colour-mark {
    grid-template-columns: repeat(4, 34px);
    gap: 8px;
    padding: 10px;
  }

  .thriving-colour-mark span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .thriving-values-grid,
  .perma-grid {
    grid-template-columns: 1fr;
  }

  .thriving-value,
  .perma-pillar,
  .resource-item,
  .book-tile,
  .book-tile summary {
    min-height: 0;
  }

  .resources-card {
    padding: 18px;
  }

  .perma-action-link {
    width: 100%;
  }
}
