/* ---------- Step markers ---------- */

.step-heading {
  --step-color: var(--prepare);
  color: var(--step-color);
}

.step-heading--prepare { --step-color: var(--prepare); }
.step-heading--discover { --step-color: var(--discover); }
.step-heading--discern { --step-color: var(--discern); }
.step-heading--respond { --step-color: var(--respond); }

.step-marker {
  flex: 0 0 auto;
  width: var(--step-size);
  height: var(--step-size);
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--step-color);
  color: white;
  font-family: var(--font-serif);
  font-size: 15pt;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Rules and writing areas ---------- */

.label-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: var(--space-2);
  min-height: 0.25in;
  font-size: var(--fs-sm);
}

.label-line__rule {
  border-bottom: 1px solid var(--rule);
  transform: translateY(-2px);
}

.writing-area {
  --line-gap: var(--leading-writing);
  --line-color: var(--rule);
  min-height: calc(var(--lines, 6) * var(--line-gap));
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--line-gap) - 1px),
      var(--line-color) calc(var(--line-gap) - 1px),
      var(--line-color) var(--line-gap)
    );
}

.writing-area--light {
  --line-color: var(--rule-light);
}

.writing-area--compact {
  --line-gap: 0.27in;
}

.writing-area--large {
  --line-gap: 0.35in;
}

.writing-area--blank {
  background: none;
  border: 1px solid var(--rule-light);
}

/* ---------- Panels ---------- */

.panel {
  padding: var(--space-4);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.panel--cool {
  background: var(--panel-cool);
  border-color: transparent;
}

.panel--warm {
  background: var(--panel-warm);
}

.panel--olive {
  background: var(--panel-olive);
}

.panel__title {
  margin-bottom: var(--space-3);
  color: currentColor;
}

.prompt-panel {
  border-color: var(--olive);
}

.remember-panel {
  background: #eff0eb;
  border: 0;
}

.remember-panel__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  color: var(--discover-dark);
}

.remember-panel__icon {
  width: 0.28in;
  height: 0.28in;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 10pt;
}

/* ---------- Lists ---------- */

.checklist,
.icon-list,
.question-list,
.numbered-tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist {
  display: grid;
  gap: 0.08in;
}

.checklist--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-4);
}

.checklist__item,
.icon-list__item {
  display: grid;
  grid-template-columns: 0.22in 0.16in 1fr;
  align-items: start;
  gap: 0.05in;
  font-size: var(--fs-xs);
  line-height: 1.2;
}

.checklist__icon {
  color: currentColor;
  text-align: center;
}

.checkbox {
  width: 0.08in;
  height: 0.08in;
  margin-top: 0.04in;
  border: 1px solid currentColor;
}

.numbered-tool-list {
  counter-reset: tool;
}

.numbered-tool-list li {
  counter-increment: tool;
  display: grid;
  grid-template-columns: 0.24in 1fr;
  gap: var(--space-2);
  align-items: start;
  padding: 0.06in 0;
  border-bottom: 1px solid var(--rule-light);
}

.numbered-tool-list li:last-child {
  border-bottom: 0;
}

.numbered-tool-list li::before {
  content: counter(tool);
  width: 0.20in;
  height: 0.20in;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-family: var(--font-sans);
  font-size: 7.5pt;
  font-weight: 700;
}

/* ---------- Quotations ---------- */

.scripture-quote {
  position: relative;
  margin: var(--space-3) 0;
  padding: 0.04in 0 0.04in 0.22in;
  border-left: 1px solid var(--olive);
  color: var(--prepare-dark);
}

.scripture-quote::before {
  content: "“";
  position: absolute;
  left: 0.05in;
  top: -0.04in;
  font-family: var(--font-serif);
  font-size: 21pt;
  line-height: 1;
}

/* ---------- Section separators ---------- */

.ornament-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2);
  align-items: center;
  max-width: 3.2in;
  margin: var(--space-3) auto;
}

.ornament-rule::before,
.ornament-rule::after {
  content: "";
  height: 1px;
  background: var(--bronze);
}

.ornament-rule__mark {
  width: 7px;
  height: 7px;
  border: 1px solid var(--bronze);
  transform: rotate(45deg);
}

/* ---------- Five circles ---------- */

.context-circles {
  position: relative;
  width: 4.9in;
  height: 5.2in;
  margin: 0 auto;
}

.context-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border: 2px solid white;
  border-radius: 50% 50% 46% 46%;
  padding-top: 0.24in;
  text-align: left;
}

.context-circle--1 {
  width: 4.9in;
  height: 4.9in;
  background: #c7cbb0;
  color: #2d4520;
}

.context-circle--2 {
  width: 4.25in;
  height: 4.25in;
  background: #9db4c0;
  color: #15375a;
}

.context-circle--3 {
  width: 3.55in;
  height: 3.55in;
  background: #c99a6a;
  color: #5e2e18;
}

.context-circle--4 {
  width: 2.75in;
  height: 2.75in;
  background: #d9c5a3;
  color: #4b3b26;
}

.context-circle--5 {
  width: 1.75in;
  height: 1.75in;
  background: #efe3cb;
  color: #36332f;
}

.context-circle__content {
  width: 64%;
  font-size: var(--fs-xs);
  line-height: 1.25;
}

.context-circle__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-weight: 700;
  text-transform: uppercase;
}

.context-circle__number,
.context-list__number {
  flex: 0 0 auto;
  width: 0.23in;
  height: 0.23in;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: white;
  font-family: var(--font-sans);
  font-size: 8pt;
  font-weight: 700;
}

.context-list {
  display: grid;
  gap: var(--space-2);
}

.context-list__item {
  padding-bottom: var(--space-2);
  border-bottom: 1px dotted var(--bronze);
}

.context-list__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-weight: 700;
  text-transform: uppercase;
}

.context-list__item ul {
  margin: 0.04in 0 0 0.16in;
  padding: 0;
  font-size: 9pt;
  line-height: 1.3;
}

/* ---------- Utility ---------- */

.text-prepare { color: var(--prepare); }
.text-discover { color: var(--discover); }
.text-discern { color: var(--discern); }
.text-respond { color: var(--respond); }
.text-olive { color: var(--olive-dark); }
.text-bronze { color: var(--bronze-dark); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.center { text-align: center; }
.right { text-align: right; }
.uppercase { text-transform: uppercase; }
.no-break { break-inside: avoid; }
