.chapter-nine-page {
  --cycle-sun: #d28b3b;
  --cycle-sky: #6f9eb0;
  --cycle-cloud: #7d8590;
  --cycle-leaf: #6f8d5c;
}

.cycle-basics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cycle-basics article {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(76, 56, 32, 0.08);
}

.cycle-basics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fffaf0;
  background: var(--cycle-sun);
  font-weight: 900;
}

.cycle-basics article:nth-child(2) span {
  background: #bf704b;
}

.cycle-basics article:nth-child(3) span {
  background: var(--cycle-sky);
}

.cycle-basics article:nth-child(4) span {
  background: var(--cycle-cloud);
}

.cycle-basics p {
  margin: 0;
  color: var(--muted);
}

.cycle-card {
  background: #fff8ea;
}

.cycle-card .item-row span {
  max-width: 58%;
  text-align: right;
  overflow-wrap: anywhere;
}

.cycle-ring {
  background: #f7edda;
  border-color: #d5b474;
}

.cycle-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-image: url("../assets/images/chapter-9-wealth-island-cycle.png");
  background-image: image-set(
    url("../assets/images/chapter-9-wealth-island-cycle.webp") type("image/webp"),
    url("../assets/images/chapter-9-wealth-island-cycle.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-size: 420%;
  background-position: 51% 28%;
  border: 2px solid #c9bda7;
}

.cycle-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}

.cycle-metric {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff8e7;
  border: 1px solid #ead5aa;
}

.cycle-metric span {
  display: block;
  margin-bottom: 4px;
  color: #6f5147;
  font-size: 13px;
  font-weight: 900;
}

.cycle-metric strong {
  display: block;
  color: #24322c;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.cycle-metric.is-good {
  background: #eef5df;
  border-color: #c8d8a5;
}

.cycle-metric.is-warning {
  background: #fff0df;
  border-color: #e0a16f;
}

.cycle-metric.is-risk {
  background: #fff2ed;
  border-color: #dda18f;
}

@media (max-width: 900px) {
  .cycle-basics,
  .cycle-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .cycle-basics,
  .cycle-board {
    grid-template-columns: 1fr;
  }
}
