/* RHO101 — in-article lead magnet ("rho-inline-cta")
   Scoped to .rho-inline-cta only. Overrides .rho-subscribe rules inside the block only.
   One copper accent: the top rule. Button is ink so button text clears 7:1. */

.rho-inline-cta {
  --rho-paper: #f3ede0;
  --rho-card: #faf6ec;
  --rho-ink: #24402e;
  --rho-ink-deep: #1b3123;
  --rho-body: #2a2a24;
  --rho-hairline: #d6c9ac;
  --rho-copper: #d97849;
  --rho-btn-text: #faf6ec;
  --rho-cover: url("/wp-content/themes/wp-theme/assets/images/guide.webp");
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 40px 0;
  padding: 22px 20px 20px;
  background: var(--rho-card);
  border: 1px solid var(--rho-hairline);
  border-top: 3px solid var(--rho-copper);
  color: var(--rho-body);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.rho-inline-cta *,
.rho-inline-cta *::before,
.rho-inline-cta *::after { box-sizing: inherit; }

/* eyebrow */
.rho-inline-cta::before {
  content: "The Free Guide";
  font: 600 12px/1 Inter, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rho-ink);
}

.rho-inline-cta > h3 {
  margin: 0;
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--rho-ink);
  text-wrap: pretty;
}
.rho-inline-cta > p {
  margin: 0;
  max-width: 36em;
  color: var(--rho-body);
  text-wrap: pretty;
}

/* form */
.rho-inline-cta .rho-subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  background: none;
  border: 0;
}
.rho-inline-cta .rho-subscribe input[type="email"] {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  font: 400 16px/1.2 Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--rho-body);
  background: var(--rho-paper);
  border: 1px solid var(--rho-hairline);
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}
.rho-inline-cta .rho-subscribe input[type="email"]::placeholder { color: var(--rho-body); opacity: 0.8; }
.rho-inline-cta .rho-subscribe button[type="submit"] {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  font: 600 16px/1.2 Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--rho-btn-text);
  background: var(--rho-ink);
  border: 1px solid var(--rho-ink);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.rho-inline-cta .rho-subscribe button[type="submit"]:hover { background: var(--rho-ink-deep); border-color: var(--rho-ink-deep); }
.rho-inline-cta .rho-subscribe input[type="email"]:focus-visible,
.rho-inline-cta .rho-subscribe button[type="submit"]:focus-visible {
  outline: 2px solid var(--rho-ink);
  outline-offset: 2px;
  border-color: var(--rho-ink);
}
.rho-inline-cta .rho-subscribe__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rho-body);
}
.rho-inline-cta .rho-subscribe__note + .rho-subscribe__note { margin-top: -6px; }

/* desktop: cover on the right, email + button on one row, notes on one row */
@media (min-width: 640px) {
  .rho-inline-cta {
    grid-template-columns: minmax(0, 1fr) 112px;
    column-gap: 28px;
    padding: 28px 32px 26px;
  }
  .rho-inline-cta::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
    min-height: 150px;
    background: var(--rho-cover) top center / contain no-repeat;
  }
  .rho-inline-cta .rho-subscribe { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
  .rho-inline-cta .rho-subscribe button[type="submit"] { width: auto; }
  .rho-inline-cta .rho-subscribe__note + .rho-subscribe__note { margin-top: 0; text-align: right; }
}

/* FIX-1 2026-09-02 — theme override resets */
.rho-inline-cta .rho-subscribe {
  max-width: none;
  position: static;
}
.rho-inline-cta .rho-subscribe input[type="email"] {
  min-width: 0;
  position: static;
}
.rho-inline-cta .rho-subscribe button[type="submit"] {
  position: static;
  text-transform: none;
  letter-spacing: 0;
}
.rho-inline-cta .rho-subscribe .rho-subscribe__note {
  text-transform: none;
  letter-spacing: 0;
  width: auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}

/* compact-390 D-359 */
@media (max-width: 480px) {
  .rho-inline-cta {
    padding: 16px 20px 16px;
  }
}
