/* OneMarry editorial pilot. Scoped to two content pages; no form/layout changes. */
body:has(.editorial-page) { background: #fff; }
html[data-theme="dark"] body:has(.editorial-page) { background: #18171e; }
body:has(.editorial-page) .site-header,
body:has(.editorial-page) .site-footer { background: #fff; }
html[data-theme="dark"] body:has(.editorial-page) .site-header,
html[data-theme="dark"] body:has(.editorial-page) .site-footer { background: #18171e; }
.editorial-page {
  --ed-bg: #faf9fc;
  --ed-panel: #fff;
  --ed-tint: #f1edf4;
  --ed-text: #24232b;
  --ed-muted: #656371;
  --ed-line: #e3dfe8;
  --ed-accent: #8b2852;
  --ed-accent-soft: #f7e7ef;
  max-width: 1180px;
  color: var(--ed-text);
  padding-block: 24px 64px;
  font-family: var(--sans);
}
html[data-theme="dark"] .editorial-page {
  --ed-bg: #18171e;
  --ed-panel: #22212a;
  --ed-tint: #2c2631;
  --ed-text: #f4f0f6;
  --ed-muted: #bcb5c5;
  --ed-line: #3b3543;
  --ed-accent: #f1a0bf;
  --ed-accent-soft: #3a2632;
}
.editorial-page .editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .8fr);
  align-items: center;
  gap: 40px;
  margin: 0 0 64px;
  padding: clamp(24px, 4vw, 54px);
  background: var(--ed-bg);
  border-radius: 24px;
  text-align: left;
}
.editorial-eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--ed-accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
}
.editorial-eyebrow span { color: var(--ed-muted); }
.editorial-page h1 {
  max-width: 720px;
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  color: var(--ed-text);
}
.editorial-page .content-page__summary {
  max-width: 580px;
  margin: 0;
  font: 400 clamp(16px, 1.5vw, 18px)/1.65 var(--sans);
  color: var(--ed-muted);
}
.editorial-hero__art {
  position: relative;
  min-height: 290px;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ed-tint);
}
.editorial-orbit {
  position: absolute;
  width: 230px;
  height: 290px;
  border: 1px solid var(--ed-accent);
  border-radius: 50%;
  opacity: .3;
  transform: rotate(35deg);
}
.editorial-orbit--one { left: -60px; top: -65px; }
.editorial-orbit--two { right: -55px; bottom: -80px; }
.editorial-hero__word {
  color: var(--ed-accent);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .94;
  transform: rotate(-7deg);
}
.editorial-hero__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ed-accent);
  right: 27px;
  top: 28px;
}
.editorial-sections { display: grid; gap: 56px; }
.editorial-section {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.6fr);
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--ed-line);
}
.editorial-section__index {
  display: block;
  color: var(--ed-accent);
  font-size: 13px;
  letter-spacing: .12em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.editorial-page h2 {
  margin: 0;
  font: 600 clamp(23px, 2.1vw, 28px)/1.25 var(--sans);
  letter-spacing: -.025em;
  color: var(--ed-text);
  text-wrap: balance;
}
.editorial-prose { color: var(--ed-muted); font-size: 16px; line-height: 1.8; }
.editorial-prose p { margin: 0 0 16px; }
.editorial-prose p:last-child { margin-bottom: 0; }
.editorial-prose a { color: var(--ed-accent); text-decoration: underline; }
.editorial-prose ul, .editorial-prose ol { padding-left: 22px; }
.editorial-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.editorial-cards:first-child { margin-top: 0; }
.editorial-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--ed-line);
  border-radius: 16px;
  background: var(--ed-panel);
}
.editorial-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.editorial-card__number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  place-items: center;
  background: var(--ed-accent-soft);
  border-radius: 10px;
  color: var(--ed-accent);
  font-size: 12px;
  font-weight: 700;
}
.editorial-page h3 {
  margin: 0 0 12px;
  font: 600 19px/1.35 var(--sans);
  letter-spacing: -.015em;
  color: var(--ed-text);
}
.editorial-card .editorial-prose { font-size: 15px; line-height: 1.7; }
.editorial-section--cards:last-child .editorial-card { background: var(--ed-bg); }
.editorial-page--how_it_works .editorial-section--cards {
  grid-template-columns: 1fr;
  gap: 28px;
}
.editorial-page--how_it_works .editorial-section--cards .editorial-section__heading {
  display: flex;
  align-items: center;
  gap: 18px;
}
.editorial-page--how_it_works .editorial-section--cards .editorial-section__index { margin: 0; }
.editorial-cards--journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-cards--journey .editorial-card:last-child:nth-child(odd) { grid-column: auto; }
.editorial-cards--journey .editorial-card:last-child { background: var(--ed-accent-soft); }
.editorial-page .content-page__faq { margin-top: 48px; }
.editorial-page .content-page__faq .box { background: var(--ed-panel); border-color: var(--ed-line); color: var(--ed-text); }
@media (max-width: 900px) {
  .editorial-page .editorial-hero { gap: 24px; grid-template-columns: minmax(0, 1fr) 220px; }
  .editorial-hero__art { min-height: 250px; }
  .editorial-section { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 28px; }
  .editorial-cards, .editorial-cards--journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .editorial-page { padding-block: 12px 36px; }
  .editorial-page .editorial-hero { grid-template-columns: 1fr; padding: 24px; margin-bottom: 36px; }
  .editorial-hero__art { min-height: 140px; }
  .editorial-hero__word { font-size: 46px; }
  .editorial-eyebrow { flex-wrap: wrap; font-size: 12px; margin-bottom: 20px; }
  .editorial-page h1 { font-size: 34px; }
  .editorial-section { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .editorial-sections { gap: 36px; }
  .editorial-cards, .editorial-cards--journey { grid-template-columns: 1fr; }
  .editorial-card { padding: 24px; }
  .editorial-card__number { margin-bottom: 16px; }
}
