/* ═══════════════════════════════════════════════════════════════
   Rich Text — editorial prose + "four steps" order section
   ═══════════════════════════════════════════════════════════════ */

.cc_uobq6SjXpC_rich_text .rich-text {
  width: 100%;
  padding: clamp(44px, 6vw, 74px) var(--tv-gutter, 1.5rem);
  background-color: var(--rich-text-bg, var(--tv-page, #f3ede3));
}

.cc_uobq6SjXpC_rich_text .rich-text-container {
  width: 100%;
  max-width: var(--tv-container, 1320px);
  margin: 0 auto;
}

/* ─── Heading ────────────────────────────────────────────── */

.cc_uobq6SjXpC_rich_text .rich-text-heading {
  margin: 0;
  font-family: var(--font-display, "cc_uobq6SjXpC_Playfair Display", "Playfair Display Fallback", "Playfair Display Fallback Android", Georgia, serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--tv-ink, #1f1b19);
  text-wrap: balance;
}

.cc_uobq6SjXpC_rich_text .rich-text-heading--has-following {
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

/* ─── Alignment ──────────────────────────────────────────── */

.cc_uobq6SjXpC_rich_text .rich-text[data-alignment="left"] { text-align: left; }
.cc_uobq6SjXpC_rich_text .rich-text[data-alignment="center"] { text-align: center; }
.cc_uobq6SjXpC_rich_text .rich-text[data-alignment="right"] { text-align: right; }

/* ─── Prose ──────────────────────────────────────────────── */

.cc_uobq6SjXpC_rich_text .rich-text-body {
  max-width: 640px;
  font-family: var(--font-body, "cc_uobq6SjXpC_Jost", "Jost Fallback", "Jost Fallback Android", sans-serif);
  font-size: var(--text-body, 16px);
  line-height: 1.75;
  color: var(--tv-muted, #6b6259);
}

.cc_uobq6SjXpC_rich_text .rich-text[data-alignment="left"] .rich-text-body { margin-inline: 0 auto; }
.cc_uobq6SjXpC_rich_text .rich-text[data-alignment="center"] .rich-text-body { margin-inline: auto; }
.cc_uobq6SjXpC_rich_text .rich-text[data-alignment="right"] .rich-text-body { margin-inline: auto 0; }

.cc_uobq6SjXpC_rich_text .rich-text-body p {
  margin: 0 0 16px;
}

.cc_uobq6SjXpC_rich_text .rich-text-body p:last-child {
  margin-bottom: 0;
}

.cc_uobq6SjXpC_rich_text .rich-text-body h3, .cc_uobq6SjXpC_rich_text .rich-text-body h4 {
  margin: 24px 0 10px;
  font-family: var(--font-display, "cc_uobq6SjXpC_Playfair Display", "Playfair Display Fallback", "Playfair Display Fallback Android", Georgia, serif);
  font-weight: 400;
  font-size: var(--text-h3, 22px);
  line-height: 1.3;
  color: var(--tv-ink, #1f1b19);
}

.cc_uobq6SjXpC_rich_text .rich-text-body a {
  color: var(--tv-bordeaux, #5a1a24);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.cc_uobq6SjXpC_rich_text .rich-text-body a:hover {
  color: var(--tv-bordeaux-dark, #43121a);
}

.cc_uobq6SjXpC_rich_text .rich-text-body strong {
  color: var(--tv-ink, #1f1b19);
  font-weight: 500;
}

.cc_uobq6SjXpC_rich_text .rich-text-body ul, .cc_uobq6SjXpC_rich_text .rich-text-body ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.cc_uobq6SjXpC_rich_text .rich-text-body ul > li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.cc_uobq6SjXpC_rich_text .rich-text-body ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--tv-bordeaux, #5a1a24);
}

.cc_uobq6SjXpC_rich_text .rich-text-body blockquote {
  margin: 26px 0;
  padding: 6px 0 6px 24px;
  border-left: 2px solid var(--tv-bordeaux, #5a1a24);
  font-family: var(--font-display, "cc_uobq6SjXpC_Playfair Display", "Playfair Display Fallback", "Playfair Display Fallback Android", Georgia, serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  color: var(--tv-ink, #1f1b19);
}

.cc_uobq6SjXpC_rich_text .rich-text-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--tv-radius-card, 2px);
}

/* ─── "Four steps" — an <ol> of exactly four items ───────── */

.cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) {
  max-width: none;
  width: 100%;
  margin-inline: auto;
  text-align: left;
}

.cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: rich-text-step;
  list-style: none;
}

.cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol > li {
  counter-increment: rich-text-step;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--tv-line, #ddd2c5);
}

.cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol > li::before {
  content: counter(rich-text-step, decimal-leading-zero);
  display: block;
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-family: var(--font-display, "cc_uobq6SjXpC_Playfair Display", "Playfair Display Fallback", "Playfair Display Fallback Android", Georgia, serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--tv-bordeaux, #5a1a24);
}

.cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol > li > p, .cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol > li {
  font-size: var(--text-small, 14px);
  line-height: 1.6;
  color: var(--tv-muted, #6b6259);
}

.cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol > li > strong {
  font-family: var(--font-label, "cc_uobq6SjXpC_Jost", "Jost Fallback", "Jost Fallback Android", sans-serif);
  font-size: var(--text-small, 14px);
  font-weight: 500;
  letter-spacing: var(--tracking-button, 0.06em);
  text-transform: uppercase;
  color: var(--tv-ink, #1f1b19);
}

@media (min-width: 768px) {
  .cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol > li {
    border-top: 0;
    border-left: 1px solid var(--tv-line, #ddd2c5);
  }

  .cc_uobq6SjXpC_rich_text .rich-text-body:has(> ol:only-child > li:nth-child(4):last-child) > ol > li:first-child {
    border-left: 0;
  }
}

/* ─── Eyebrow ────────────────────────────────────────────── */

.cc_uobq6SjXpC_rich_text .rich-text-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body, "cc_uobq6SjXpC_Jost", "Jost Fallback", "Jost Fallback Android", sans-serif);
  font-size: var(--text-small, 14px);
  letter-spacing: 0.02em;
  color: var(--tv-muted, #6b6259);
}

/* ─── Steps as cards (rt-steps) ──────────────────────────── */

.cc_uobq6SjXpC_rich_text .rich-text[data-layout="steps"] .rich-text-heading {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.015em;
}

.cc_uobq6SjXpC_rich_text .rt-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(26px, 3.4vw, 38px) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.cc_uobq6SjXpC_rich_text .rt-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.2vw, 28px);
  /* Soft, warm card fill: a touch of white over the section background instead
     of a hard pure white, so the grid sits gently on the cream. */
  background-color: #fdfbf7;
  background-color: color-mix(in srgb, #ffffff 62%, var(--rich-text-bg, #f3ede3));
  border: 1px solid color-mix(in srgb, var(--tv-line, #ddd2c5) 68%, transparent);
  border-radius: var(--tv-radius-card, 2px);
  box-shadow: 0 1px 2px rgba(31, 27, 25, 0.03);
}

.cc_uobq6SjXpC_rich_text .rt-step-no {
  display: block;
  font-family: var(--font-display, "cc_uobq6SjXpC_Playfair Display", "Playfair Display Fallback", "Playfair Display Fallback Android", Georgia, serif);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--tv-bordeaux, #5a1a24);
}

.cc_uobq6SjXpC_rich_text .rt-step-text {
  margin: 0;
  font-family: var(--font-body, "cc_uobq6SjXpC_Jost", "Jost Fallback", "Jost Fallback Android", sans-serif);
  font-size: var(--text-small, 15px);
  line-height: 1.65;
  color: var(--tv-muted, #6b6259);
}

.cc_uobq6SjXpC_rich_text .rt-step-text strong {
  color: var(--tv-ink, #1f1b19);
  font-weight: 500;
}

.cc_uobq6SjXpC_rich_text .rt-step-text p {
  margin: 0 0 8px;
}

.cc_uobq6SjXpC_rich_text .rt-step-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1023px) {
  .cc_uobq6SjXpC_rich_text .rt-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .cc_uobq6SjXpC_rich_text .rt-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ─── Buttons ────────────────────────────────────────────── */

.cc_uobq6SjXpC_rich_text .rich-text-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.6vw, 28px);
}

.cc_uobq6SjXpC_rich_text .rich-text[data-alignment="center"] .rich-text-actions { justify-content: center; }
.cc_uobq6SjXpC_rich_text .rich-text[data-alignment="right"] .rich-text-actions { justify-content: flex-end; }

.cc_uobq6SjXpC_rich_text .rich-text .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  font-family: var(--font-label, "cc_uobq6SjXpC_Jost", "Jost Fallback", "Jost Fallback Android", sans-serif);
  font-size: var(--text-small, 14px);
  font-weight: 500;
  letter-spacing: var(--tracking-button, 0.06em);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--tv-radius-pill, 999px);
  border: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.cc_uobq6SjXpC_rich_text .rich-text .btn--primary {
  background-color: var(--tv-bordeaux, #5a1a24);
  border-color: var(--tv-bordeaux, #5a1a24);
  color: var(--tv-white, #ffffff);
}

.cc_uobq6SjXpC_rich_text .rich-text .btn--primary:hover {
  background-color: var(--tv-bordeaux-dark, #43121a);
  border-color: var(--tv-bordeaux-dark, #43121a);
}

.cc_uobq6SjXpC_rich_text .rich-text .btn--secondary {
  background-color: transparent;
  border-color: var(--tv-bordeaux, #5a1a24);
  color: var(--tv-bordeaux, #5a1a24);
}

.cc_uobq6SjXpC_rich_text .rich-text .btn--secondary:hover {
  background-color: rgba(90, 26, 36, 0.07);
}

.cc_uobq6SjXpC_rich_text .rich-text .btn--ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--tv-bordeaux, #5a1a24);
  padding-inline: 4px;
}

.cc_uobq6SjXpC_rich_text .rich-text .btn:focus-visible {
  outline: 2px solid var(--tv-bordeaux, #5a1a24);
  outline-offset: 3px;
}

/* ─── Reveal on paint (CSS-only safe default) ─────────────── */

.cc_uobq6SjXpC_rich_text .rich-text .reveal-item {
  opacity: 0;
  transform: translateY(14px);
  animation: cc_uobq6SjXpC_rich_text_rt-reveal 500ms ease forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes cc_uobq6SjXpC_rich_text_rt-reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── Small screens ──────────────────────────────────────── */

@media (max-width: 599px) {
  .cc_uobq6SjXpC_rich_text .rich-text .rich-text-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cc_uobq6SjXpC_rich_text .rich-text .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cc_uobq6SjXpC_rich_text .rich-text .reveal-item {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cc_uobq6SjXpC_rich_text .rich-text .btn { transition: none; }
}
