/**
 * WellAheadLife editorial components.
 *
 * Loaded on the front end and within the block editor.
 */

/* Ensure consistent sizing. */

.wal-summary,
.wal-key-takeaways,
.wal-one-small-step,
.wal-references,
.wal-disclaimer {
  box-sizing: border-box;
  width: 100%;
}

/* Two Minute Read */

.wal-summary {
  margin-block: 3rem;
  padding: 2rem 2.25rem;
  background: #f3f8fb;
  border-left: 6px solid var(--wal-teal, #2a9d8f);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
}

.wal-summary h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.wal-summary ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 1.4rem;
}

.wal-summary li {
  margin-bottom: 0.9rem;
  line-height: 1.7;
}

.wal-summary li::marker {
  color: var(--wal-teal, #2a9d8f);
}

.wal-summary li:last-child {
  margin-bottom: 0;
}

/* Key Takeaways */

.wal-key-takeaways {
  margin-block: 4rem;
  padding: 2rem;
  background: #fff7f2;
  border: 1px solid #eadfd8;
  border-radius: 16px;
}

.wal-key-takeaways h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.wal-key-takeaways ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 1.4rem;
}

.wal-key-takeaways li {
  margin-bottom: 0.7rem;
}

.wal-key-takeaways li:last-child {
  margin-bottom: 0;
}

.wal-key-takeaways li::marker {
  color: var(--wal-teal, #2a9d8f);
}

/* One Small Step */

.wal-one-small-step {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.75rem;
  margin-block: 4rem;
  padding: 2rem;
  background: linear-gradient(135deg, #eaf7f4 0%, #f8fcfb 100%);
  border: 1px solid #d6e8e4;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
}

.wal-one-small-step__icon {
  display: flex;
  flex: 0 0 70px;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  background: var(--wal-teal, #2a9d8f);
  border-radius: 50%;
}

.wal-one-small-step__content {
  flex: 1 1 auto;
  min-width: 0;
}

.wal-one-small-step__content h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
}

.wal-one-small-step__content p {
  margin-top: 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.wal-one-small-step__content p:last-child {
  margin-bottom: 0;
}

/* Sources and Further Reading */

.wal-references {
  margin-block: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #d9dee2;
}

.wal-references h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.wal-references ol {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.wal-references li {
  margin-bottom: 1rem;
  font-size: 0.95em;
  line-height: 1.7;
  color: var(--wal-grey, #6b7280);
}

.wal-references li:last-child {
  margin-bottom: 0;
}

/* Health information notice */

.wal-disclaimer {
  margin-block: 4rem 5rem;
  padding: 2rem;
  background: #f7f7f6;
  border: 1px solid #dededb;
  border-radius: 16px;
}

.wal-disclaimer h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.wal-disclaimer p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.95em;
  line-height: 1.8;
  color: var(--wal-grey, #6b7280);
}

.wal-disclaimer p:last-child {
  margin-bottom: 0;
}

/* Mobile */

@media (max-width: 768px) {
  .wal-summary,
  .wal-key-takeaways,
  .wal-one-small-step,
  .wal-disclaimer {
    padding: 1.5rem;
  }

  .wal-one-small-step {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .wal-one-small-step__icon {
    align-self: center;
    margin-inline: auto;
  }
}
