/* Rebozo — cultural field note with a calm, safety-first reading rhythm. */

.dg-page--rebozo {
  --dg-muted: #4d626d;
  --dg-rust: #94482f;
  --rebozo-indigo: #243f52;
  --rebozo-plum: #743d59;
  --rebozo-rust: #a95137;
  --rebozo-gold: #b88747;
  --rebozo-paper: #f7f1e9;
  --rebozo-sand: #eee4d8;
  --rebozo-sage: #e5ebe5;
}

.dg-page--rebozo .dg-section {
  padding-block: clamp(2rem, 3.5vw, 3rem);
}

.dg-page--rebozo [id] {
  scroll-margin-top: 6rem;
}

.dg-page--rebozo .dg-section-head {
  margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

.rebozo-hero {
  background: var(--rebozo-paper);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.rebozo-hero .dg-hero__inner {
  align-items: center;
}

.rebozo-hero .dg-hero__copy {
  max-width: 720px;
}

body.dg-editorial .rebozo-hero h1 {
  font-size: clamp(2.65rem, 5.4vw, 3.8rem);
  max-width: 19ch;
}

.rebozo-hero .dg-lede {
  font-size: clamp(1.2rem, 1.75vw, 1.48rem);
  line-height: 1.38;
  margin-block: 1.25rem;
  max-width: 54ch;
}

.rebozo-hero .dg-note {
  background: transparent;
  margin-block: 1.25rem 1rem;
  max-width: 60ch;
  padding: 0.15rem 0 0.15rem 1rem;
}

.rebozo-hero .dg-meta {
  margin-top: 0.9rem;
}

.rebozo-hero .dg-actions {
  border-top: 1px solid #d8cbc0;
  gap: 0.25rem 1.25rem;
  margin-top: 1.15rem;
  padding-top: 0.55rem;
}

.rebozo-hero .dg-button,
.rebozo-hero .dg-button--quiet {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--rebozo-indigo) !important;
  min-height: 44px;
  padding: 0;
  text-decoration: underline !important;
  text-decoration-color: color-mix(in srgb, var(--rebozo-rust) 70%, transparent) !important;
  text-underline-offset: 0.25em;
}

.rebozo-hero .dg-button:hover,
.rebozo-hero .dg-button--quiet:hover {
  color: var(--rebozo-rust) !important;
}

.rebozo-hero .dg-editorial-image {
  align-self: center;
}

.rebozo-hero .dg-editorial-image::before {
  background: var(--rebozo-rust);
  height: 0.35rem;
  top: -0.35rem;
}

.rebozo-hero .dg-editorial-image img {
  border-color: color-mix(in srgb, var(--rebozo-indigo) 22%, transparent);
}

.rebozo-hero .dg-editorial-image figcaption {
  line-height: 1.45;
}

.dg-page--rebozo .dg-toc {
  background: #fffdf9;
  border-bottom-color: #d9d1c7;
}

.dg-page--rebozo .dg-toc summary {
  color: var(--rebozo-indigo);
}

.rebozo-care {
  background: #fffdf9;
  border-bottom: 1px solid var(--dg-line);
}

.rebozo-care .dg-section-head {
  margin-bottom: 2rem;
}

.rebozo-care__contrast {
  border-block: 1px solid var(--dg-line);
  gap: 0;
}

.rebozo-care__contrast article {
  color: var(--dg-text);
  padding-block: 1.5rem;
}

.rebozo-care__contrast article + article {
  border-top: 1px solid var(--dg-line);
}

.rebozo-care .dg-card__label {
  color: var(--rebozo-rust);
}

.rebozo-history {
  background: var(--dg-paper);
}

.rebozo-history__timeline {
  counter-reset: rebozo-history;
  list-style: none;
  margin: 0;
  max-width: 78ch;
  padding: 0;
}

.rebozo-history__timeline > li {
  counter-increment: rebozo-history;
  display: grid;
  gap: 0.75rem;
  padding: 0 0 2.25rem 3.6rem;
  position: relative;
}

.rebozo-history__timeline > li::before {
  align-items: center;
  background: var(--rebozo-plum);
  border-radius: 50%;
  color: #fffdf8;
  content: counter(rebozo-history, decimal-leading-zero);
  display: flex;
  font-size: 0.75rem;
  font-weight: 700;
  height: 2.5rem;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 2.5rem;
}

.rebozo-history__timeline > li:not(:last-child)::after {
  background: #cabdc1;
  content: "";
  height: calc(100% - 2.5rem);
  left: 1.2rem;
  position: absolute;
  top: 2.5rem;
  width: 2px;
}

.rebozo-history__marker {
  color: var(--rebozo-plum);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rebozo-history__timeline .dg-prose h3 {
  margin-top: 0;
}

.rebozo-formats {
  background: #fffdf9;
}

.rebozo-formats__sequence li::before {
  background: var(--rebozo-rust);
}

.rebozo-formats__sequence li:not(:last-child)::after {
  background: #caa792;
}

.rebozo-formats .dg-note {
  margin-top: 1.25rem;
}

.rebozo-evidence {
  background: var(--rebozo-sand);
}

.rebozo-evidence__columns {
  border-top: 1px solid color-mix(in srgb, var(--rebozo-indigo) 22%, transparent);
  gap: 0;
}

.rebozo-evidence__columns article {
  padding-block: 1.5rem;
}

.rebozo-evidence__columns article + article {
  border-top: 1px solid color-mix(in srgb, var(--rebozo-indigo) 22%, transparent);
}

.rebozo-alert {
  background: var(--rebozo-plum);
  color: #fffdf8;
  padding-block: clamp(2rem, 3.5vw, 3rem);
}

.rebozo-alert .dg-kicker {
  color: #f5c4af;
}

.rebozo-alert__title,
body.dg-editorial .dg-page .rebozo-alert__title {
  color: #fffdf8;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.04;
  margin: 0;
  max-width: 25ch;
}

.rebozo-alert__lede {
  color: rgba(255, 253, 248, 0.88);
  max-width: 68ch;
}

.rebozo-alert__list {
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  gap: 0;
  max-width: 82ch;
}

.rebozo-alert__list li {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: #fffdf8;
  padding: 1rem 0.5rem 1rem 2.25rem;
}

.rebozo-alert__list li::before {
  border-color: #f5c4af;
  left: 0.15rem;
  top: 1.25rem;
}

.rebozo-report {
  background: #fffdf9;
}

.rebozo-report .dg-prose {
  border: 0;
  margin-left: 0;
  max-width: 70ch;
  padding-left: 0;
}

.rebozo-report .dg-prose h3:first-child {
  margin-top: 0;
}

.rebozo-precautions {
  background: var(--rebozo-paper);
}

.rebozo-precautions__cards {
  border-block: 1px solid #d8cbc0;
  gap: 0;
}

.rebozo-precautions__cards .dg-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d8cbc0;
  border-radius: 0;
  box-shadow: none;
  padding: 1.4rem 0;
}

.rebozo-precautions__cards .dg-card:last-child {
  border-bottom: 0;
}

.rebozo-respect {
  background: var(--rebozo-sage);
}

.rebozo-respect__layout {
  align-items: start;
}

.rebozo-respect__questions {
  background: #fffdf9;
  border: 1px solid #ccd5ce;
  counter-reset: rebozo-question;
  gap: 0;
  margin-top: 0;
  padding: 0.25rem 1rem;
}

.rebozo-respect__questions li {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d7ddd8;
  border-radius: 0;
  counter-increment: rebozo-question;
  padding: 0.9rem 0.25rem 0.9rem 2.65rem;
}

.rebozo-respect__questions li:last-child {
  border-bottom: 0;
}

.rebozo-respect__questions li::before {
  align-items: center;
  background: var(--rebozo-plum);
  border: 0;
  border-radius: 50%;
  color: #fffdf8;
  content: counter(rebozo-question, decimal-leading-zero);
  display: flex;
  font-size: 0.68rem;
  font-weight: 700;
  height: 1.75rem;
  justify-content: center;
  left: 0.15rem;
  top: 1rem;
  width: 1.75rem;
}

.rebozo-faq {
  background: #fffdf9;
}

.rebozo-faq summary h3 {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  margin: 0;
  text-wrap: pretty;
}

.rebozo-sources .dg-sources__title {
  color: var(--dg-ink);
  font-size: 1rem;
  letter-spacing: 0;
}

.rebozo-sources a {
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
}

@media (min-width: 48rem) {
  .rebozo-hero .dg-hero__inner {
    gap: clamp(2.5rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 6fr) minmax(22rem, 4fr);
  }

  .rebozo-care__contrast article {
    padding: 1.6rem clamp(1.5rem, 4vw, 3rem) 1.6rem 0;
  }

  .rebozo-care__contrast article + article {
    border-left: 1px solid var(--dg-line);
    border-top: 0;
    padding-left: clamp(1.5rem, 4vw, 3rem);
  }

  .rebozo-history__timeline > li {
    gap: 2.25rem;
    grid-template-columns: 9rem minmax(0, 1fr);
  }

  .rebozo-evidence__columns article {
    padding: 1.6rem clamp(1.5rem, 4vw, 3rem) 0 0;
  }

  .rebozo-evidence__columns article + article {
    border-left: 1px solid color-mix(in srgb, var(--rebozo-indigo) 22%, transparent);
    border-top: 0;
    padding-left: clamp(1.5rem, 4vw, 3rem);
  }

  .rebozo-alert__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rebozo-alert__list li:nth-child(odd) {
    padding-right: 1.5rem;
  }

  .rebozo-alert__list li:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 3.25rem;
  }

  .rebozo-alert__list li:nth-child(even)::before {
    left: 1.15rem;
  }

  .rebozo-precautions__cards .dg-card {
    border-bottom: 0;
    border-left: 1px solid #d8cbc0;
    padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  }

  .rebozo-precautions__cards .dg-card:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .rebozo-precautions__cards .dg-card:last-child {
    padding-right: 0;
  }
}

@media (min-width: 64rem) {
  .dg-page--rebozo .dg-toc ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dg-page--rebozo .dg-toc a {
    font-size: 0.86rem;
    min-height: 44px;
    padding-block: 0.3rem;
  }
}

@media (max-width: 47.99rem) {
  .dg-page--rebozo {
    font-size: 17px;
  }

  .dg-page--rebozo .dg-section,
  .rebozo-alert {
    padding-block: 2rem;
  }

  .rebozo-hero {
    padding-block: 1.75rem 2.5rem;
  }

  .rebozo-hero .dg-hero__inner {
    gap: 1.75rem;
  }

  .rebozo-hero .dg-hero__inner > .dg-editorial-image {
    order: 0;
  }

  .rebozo-hero .dg-editorial-image figcaption {
    margin-top: 0.65rem;
  }

  .rebozo-hero .dg-actions {
    align-items: center;
    display: flex;
    gap: 0 1rem;
  }

  .rebozo-hero .dg-button {
    flex: 1 1 9rem;
    justify-content: flex-start;
    width: auto;
  }

  .rebozo-history__timeline > li {
    padding-left: 3.25rem;
  }

  .rebozo-respect__questions {
    padding-inline: 0.75rem;
  }
}

/* Cultural timeline and postpartum decision path */
.rebozo-care__symbolic {
  border-top: 1px solid #d8cbc0;
  margin: 2rem 0 0;
  max-width: 72ch;
  padding-top: 1.25rem;
}

.rebozo-alert {
  background: #f4e1da;
  color: var(--rebozo-indigo);
  margin-top: 2rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.rebozo-alert__title {
  color: var(--rebozo-indigo) !important;
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-top: 0;
}

.rebozo-alert__lede,
.rebozo-alert__list li {
  color: var(--rebozo-indigo);
}

.rebozo-alert__list li::before {
  border-color: var(--rebozo-rust);
}

.rebozo-formats__embedded,
.rebozo-precautions__embedded {
  border-top: 1px solid #d8cbc0;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3.5vw, 2.5rem);
}

.rebozo-evidence__table,
.rebozo-precautions__table {
  border-block: 1px solid #d8cbc0;
  margin: 2rem 0 0;
}

.rebozo-evidence__table > div,
.rebozo-precautions__table > div {
  border-bottom: 1px solid #d8cbc0;
  display: grid;
  gap: 0.5rem;
  padding-block: 1.2rem;
}

.rebozo-evidence__table > div:last-child,
.rebozo-precautions__table > div:last-child {
  border-bottom: 0;
}

.rebozo-evidence__table dt,
.rebozo-precautions__table dt {
  color: var(--rebozo-indigo);
  font-weight: 800;
}

.rebozo-evidence__table dd,
.rebozo-precautions__table dd {
  margin: 0;
  max-width: 68ch;
}

@media (min-width: 48rem) {
  .rebozo-evidence__table > div,
  .rebozo-precautions__table > div {
    gap: 3rem;
    grid-template-columns: minmax(11rem, 3fr) minmax(0, 8fr);
  }
}

@media (max-width: 47.99rem) {
  .dg-page--rebozo .dg-kicker,
  .rebozo-history__marker,
  .rebozo-history__timeline > li::before,
  .rebozo-respect__questions li::before {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }
}
