/*
 * Team HOME (prefix 20b) — Riverhouse Immersion Weekend feature, 20 Nov 2026.
 *
 * The section is inserted after the homepage hero by inc/overhaul/20b-home-immersion.php.
 * Every rule is scoped to .rhcx-home .rhcx-immersion so nothing reaches another
 * section or page. Colors are the phase1 / 00-tokens custom properties; the gutter
 * and container come from .rhcx-wrap in 20-home.css, so the edges line up with
 * "Choose your interest" below it.
 *
 * Contrast on --paper (#F0EADE): --ink heading 15.6:1, --tx-2 body 6.4:1,
 * --clay-tx eyebrow 4.87:1, white on --rust button 5.2:1.
 */

.rhcx-home .rhcx-immersion {
  padding-block: clamp(44px, 6vw, 76px);
  border-block-end: 1px solid var(--rule);
  background: var(--paper);
  color: var(--tx);
}

.rhcx-home .rhcx-immersion__in {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

@media (min-width: 900px) {
  .rhcx-home .rhcx-immersion--art .rhcx-immersion__in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }
}

.rhcx-home .rhcx-immersion__text {
  min-inline-size: 0;
  max-inline-size: 68ch;
}

.rhcx-home .rhcx-immersion__when {
  margin-block-end: 10px;
}

.rhcx-home .rhcx-immersion__h {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--d);
  font-size: clamp(26px, 3.1vw, 36px);
  font-weight: 700;
  letter-spacing: -.014em;
  line-height: 1.1;
  text-wrap: balance;
}

.rhcx-home .rhcx-immersion__lede {
  margin: 0 0 clamp(22px, 2.6vw, 30px);
  max-inline-size: 60ch;
  color: var(--tx-2);
  font-size: 18px;
  line-height: 1.6;
}

/* --------------------------------------------------------------- schedule */

.rhcx-home .rhcx-immersion__days,
.rhcx-home .rhcx-immersion__choices {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rhcx-home .rhcx-immersion__days {
  border-block-start: 1px solid var(--rule);
}

.rhcx-home .rhcx-immersion__days > li {
  margin: 0;
  padding-block: 14px;
  border-block-end: 1px solid var(--rule);
  color: var(--tx-2);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.rhcx-home .rhcx-immersion__time {
  display: block;
  margin-block-end: 2px;
  color: var(--ink);
  font-family: var(--b);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
}

.rhcx-home .rhcx-immersion__what {
  display: block;
}

/* The dash is for screen readers and copied text; on screen the line break says it. */
.rhcx-home .rhcx-immersion__sep {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Saturday: two options under one "choose one" line, set in from the day rule. */
.rhcx-home .rhcx-immersion__choices {
  display: grid;
  gap: 10px;
  margin-block-start: 8px;
}

.rhcx-home .rhcx-immersion__choices > li {
  margin: 0;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--clay);
}

.rhcx-home .rhcx-immersion__choices .rhcx-immersion__time {
  font-weight: 600;
}

/* ------------------------------------------------------------------- action */

.rhcx-home .rhcx-immersion__act {
  margin: clamp(24px, 2.8vw, 32px) 0 0;
}

.rhcx-home .rhcx-immersion__cta {
  min-block-size: 48px;
  text-align: center;
}

/* --------------------------------------------------------------------- art */

.rhcx-home .rhcx-immersion__art {
  min-inline-size: 0;
}

.rhcx-home .rhcx-immersion__art img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ground);
}

@media (min-width: 900px) {
  .rhcx-home .rhcx-immersion__art img {
    aspect-ratio: 4 / 5;
  }
}

/* ------------------------------------------------------------------- phone */

@media (max-width: 600px) {
  .rhcx-home .rhcx-immersion__lede {
    font-size: 17px;
  }

  .rhcx-home .rhcx-immersion__cta {
    display: block;
    inline-size: 100%;
    box-sizing: border-box;
  }
}
