/* Reveye additions: components added after the Tailwind bundle was compiled.
   Brand tokens come from the main stylesheet (--color-*, --font-heading). */

/* ---------- "What brings you here?" editorial index ---------- */
.rv-wb-grid { display: grid; gap: 3rem; }
@media (min-width: 64rem) {
  .rv-wb-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .rv-wb-intro { position: sticky; top: 8rem; }
}
.rv-wb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-espresso); }
.rv-wb-list > li { border-bottom: 1px solid var(--color-rule); }
.rv-wb-row {
  position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2rem;
  grid-template-areas: "num meta arrow" ". say arrow"; column-gap: 1.25rem; row-gap: 0.6rem;
  align-items: center; padding: 1.75rem 0; color: var(--color-espresso); text-decoration: none; isolation: isolate;
}
.rv-wb-num { grid-area: num; }
.rv-wb-meta { grid-area: meta; }
.rv-wb-say { grid-area: say; max-width: 34ch; }
.rv-wb-arrow { grid-area: arrow; justify-self: end; }
.rv-wb-row::before {
  content: ""; position: absolute; inset: 0 -1rem; z-index: -1; background: var(--color-sand-light);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.rv-wb-row::after {
  content: ""; position: absolute; left: -1rem; top: 0; bottom: 0; width: 3px; background: var(--color-terracotta);
  transform: scaleY(0); transform-origin: top; transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.rv-wb-row:hover::before, .rv-wb-row:focus-visible::before { transform: scaleX(1); }
.rv-wb-row:hover::after, .rv-wb-row:focus-visible::after { transform: scaleY(1); }
.rv-wb-row:focus-visible { outline: 2px solid var(--color-terracotta-dark); outline-offset: 4px; }
.rv-wb-num { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; color: var(--color-gold); font-variant-numeric: tabular-nums; }
.rv-wb-say {
  font-family: var(--font-heading); font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem); line-height: 1.2;
  color: var(--color-espresso); transition: color 0.3s ease; text-wrap: pretty;
}
.rv-wb-row:hover .rv-wb-say, .rv-wb-row:focus-visible .rv-wb-say { color: var(--color-plum); }
.rv-wb-meta { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }
.rv-wb-service { font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-taupe); }
.rv-wb-tag {
  margin-left: 0.5rem; padding: 0.15rem 0.5rem; border: 1px solid var(--color-rule); border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.12em; color: var(--color-taupe);
}
.rv-wb-arrow { width: 1.25rem; height: 1.25rem; flex: none; color: var(--color-terracotta-dark); transition: transform 0.3s cubic-bezier(.22,1,.36,1); }
.rv-wb-row:hover .rv-wb-arrow, .rv-wb-row:focus-visible .rv-wb-arrow { transform: translate(3px, -3px); }
.rv-wb-row--all { padding-top: 2rem; padding-bottom: 2rem; }
.rv-wb-row--all .rv-wb-say { font-style: italic; color: var(--color-espresso-soft); font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem); }
.rv-wb-row--all .rv-wb-service { color: var(--color-terracotta-dark); }
@media (max-width: 47.99rem) {
  .rv-wb-row { grid-template-columns: 2rem minmax(0, 1fr) 1.5rem; column-gap: 0.75rem; padding: 1.4rem 0; }
  .rv-wb-meta { white-space: normal; flex-wrap: wrap; row-gap: 0.4rem; }
  .rv-wb-row::before, .rv-wb-row::after { display: none; }
}

.rv-wb-call { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-rule); color: var(--color-espresso-soft); font-size: 1rem; line-height: 1.6; max-width: 26rem; }
.rv-wb-call a { display: inline-block; margin-left: 0.25rem; font-weight: 600; color: var(--color-espresso); text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 5px; }
.rv-wb-call a:hover { text-decoration-color: var(--color-terracotta); }
.rv-wb-call-hours { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: var(--color-taupe); }

/* ---------- Insurer strip ---------- */
.rv-ins { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--color-rule); }
.rv-ins-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; }
.rv-ins-label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-taupe); }
.rv-ins-note { font-size: 0.9375rem; color: var(--color-espresso-soft); }
.rv-ins-note a { color: var(--color-espresso); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 4px; }
.rv-ins-viewport {
  margin-top: 1.75rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.rv-ins-track { display: flex; width: max-content; animation: rv-ins-scroll 42s linear infinite; }
.rv-ins-viewport:hover .rv-ins-track, .rv-ins-viewport:focus-within .rv-ins-track { animation-play-state: paused; }
.rv-ins-list { display: flex; align-items: center; gap: 3.5rem; padding-right: 3.5rem; margin: 0; list-style: none; }
.rv-ins-item { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 3.5rem; }
.rv-ins-word { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; color: var(--color-espresso-soft); white-space: nowrap; }
.rv-ins-sub { margin-top: 0.35rem; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-taupe); white-space: nowrap; }
.rv-ins-pair { display: flex; align-items: center; gap: 0.75rem; }
.rv-ins-logo--mark { max-height: 2.25rem; }
.rv-ins-logo { mix-blend-mode: multiply; max-height: 2.75rem; width: auto; max-width: 9.5rem; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.rv-ins-item:hover .rv-ins-logo { filter: none; opacity: 1; }
/* P-033 (2026-11-24, AST-01): the logos carry their natural width/height attributes; height:auto keeps the box the one
   Jay's build draws (without it the height attribute would size the box). The attributes only give the aspect ratio. */
.rv-ins-logo { height: auto; }
@keyframes rv-ins-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rv-ins-viewport { -webkit-mask-image: none; mask-image: none; }
  .rv-ins-track { animation: none; width: auto; }
  .rv-ins-list { flex-wrap: wrap; gap: 1.5rem 2.5rem; padding-right: 0; }
  .rv-ins-list[aria-hidden="true"] { display: none; }
  .rv-wb-row::before, .rv-wb-row::after, .rv-wb-arrow, .rv-wb-say { transition: none; }
}

/* ---------- Icons (Lucide, inlined) ---------- */
.rv-ic { width: 1.25rem; height: 1.25rem; stroke-width: 1.6; flex: none; }
.rv-ic-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--color-rule); border-radius: 999px;
  background: var(--color-ivory); color: var(--color-terracotta-dark);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
a:hover > .rv-ic-badge, li:hover .rv-ic-badge { border-color: var(--color-gold); background: var(--color-sand-light); }
.rv-wb-meta .rv-ic { width: 1rem; height: 1rem; color: var(--color-gold); }
.rv-ic--inline { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.16em; margin-right: 0.55rem; color: var(--color-terracotta-dark); }

/* ---------- Rotating professionals photo (#21) ---------- */
.rv-rot { position: relative; width: 100%; height: 100%; }
.rv-rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.rv-rot img.rv-rot-on { opacity: 1; }
.rv-rot-toggle {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid rgba(251, 248, 242, 0.6);
  background: rgba(43, 33, 29, 0.55); color: var(--color-ivory-light); cursor: pointer; backdrop-filter: blur(4px);
}
.rv-rot-toggle:hover { background: rgba(43, 33, 29, 0.75); }
.rv-rot-toggle:focus-visible { outline: 2px solid var(--color-ivory-light); outline-offset: 2px; }
.rv-rot-toggle svg { width: 1rem; height: 1rem; fill: currentColor; }
.rv-rot-toggle .rv-rot-ic-play, .rv-rot-toggle[aria-pressed="true"] .rv-rot-ic-pause { display: none; }
.rv-rot-toggle[aria-pressed="true"] .rv-rot-ic-play { display: block; }
@media (prefers-reduced-motion: reduce) { .rv-rot img { transition: none; } }

/* ---------- Brand mark: crisp vector line art ---------- */
.brand-mark { -webkit-mask: url(/images/brand/reveye-mark.svg) 50% / contain no-repeat; mask: url(/images/brand/reveye-mark.svg) 50% / contain no-repeat; }

/* ---------- Header: logo larger on open, compact after scroll ---------- */
.rv-hdr .rv-hdr-row, .rv-hdr .rv-hdr-mark, .rv-hdr .rv-hdr-word, .rv-hdr .rv-hdr-tag { transition: height 0.35s ease, width 0.35s ease, font-size 0.35s ease, margin 0.35s ease; }
.rv-hdr nav button, .rv-hdr .rv-hdr-row > div > a { white-space: nowrap; }
.rv-hdr:not([data-scrolled]) .rv-hdr-row { height: 5.5rem; }
.rv-hdr:not([data-scrolled]) .rv-hdr-mark { height: 3.5rem; width: 2.6rem; }
.rv-hdr:not([data-scrolled]) .rv-hdr-word { font-size: 2.25rem; }
@media (min-width: 1024px) {
  .rv-hdr:not([data-scrolled]) .rv-hdr-row { height: 8rem; }
  .rv-hdr:not([data-scrolled]) .rv-hdr-mark { height: 5.5rem; width: 4rem; }
  .rv-hdr:not([data-scrolled]) .rv-hdr-word { font-size: 3.5rem; }
  .rv-hdr:not([data-scrolled]) .rv-hdr-tag { font-size: 11px; margin-top: 0.55rem; }
}
@media (min-width: 90rem) { .rv-hdr nav button { padding-left: 0.5rem; padding-right: 0.5rem; } }
@media (prefers-reduced-motion: reduce) { .rv-hdr .rv-hdr-row, .rv-hdr .rv-hdr-mark, .rv-hdr .rv-hdr-word, .rv-hdr .rv-hdr-tag { transition: none; } }

/* ---------- Photo heroes: full-width photo with text on its light side ---------- */
.rv-photohero { isolation: isolate; background: #f7f2ea; }
.rv-photohero[data-tone="dark"] { background: rgb(52,33,45); }
.rv-photohero > .rv-ph-media { position: absolute; left: 0; right: 0; top: var(--ph-mt-m, 0); height: var(--ph-mh-m, 36rem); z-index: -3; overflow: hidden; }
.rv-ph-media img { display: block; width: var(--ph-w, 100%); max-width: none; height: var(--ph-ih-m, 100%); margin-top: var(--ph-it-m, 0); object-fit: cover; object-position: var(--ph-pos-m, 50% 50%); transform: scaleX(var(--ph-flip, 1)); }
.rv-ph-mark { position: absolute; z-index: -2; pointer-events: none; aspect-ratio: 240 / 314; width: auto; color: var(--mk-c, #543849); opacity: 0.85;
  top: var(--mk-mt, 0); left: var(--mk-ml, auto); right: var(--mk-mr, auto); height: var(--mk-mh, 9rem); }
.rv-photohero[data-mark="none"] .rv-ph-mark { display: none; }
.rv-ph-wash { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(247,242,234,0) 0, rgba(247,242,234,0) var(--ph-fade-m, 13rem), rgba(247,242,234,0.62) calc(var(--ph-fade-m, 13rem) + 5rem), rgba(247,242,234,0.86) calc(var(--ph-fade-m, 13rem) + 11rem), #f7f2ea calc(var(--ph-fade-m, 13rem) + 20rem), #f7f2ea 100%); }
.rv-photohero[data-tone="dark"] .rv-ph-wash { background: linear-gradient(180deg, rgba(52,33,45,0.1) 0, rgba(52,33,45,0.15) var(--ph-fade-m, 13rem), rgba(52,33,45,0.7) calc(var(--ph-fade-m, 13rem) + 5rem), rgba(52,33,45,0.9) calc(var(--ph-fade-m, 13rem) + 11rem), rgb(52,33,45) calc(var(--ph-fade-m, 13rem) + 20rem), rgb(52,33,45) 100%); }
.rv-photohero nav[aria-label="Breadcrumb"] ol { display: inline-flex; padding: 0.4rem 0.85rem; border-radius: 999px; background: rgba(247,242,234,0.92); }
.rv-photohero > div > .grid { margin-top: var(--ph-txt-m, 14rem); }
.rv-photohero > div.grid { padding-top: var(--ph-txt-m, 16.5rem); }
@media (min-width: 1024px) {
  .rv-photohero > .rv-ph-media { top: 0; height: auto; bottom: 0; }
  .rv-ph-media img { width: var(--ph-wd, var(--ph-w, 100%)); height: 100%; margin-top: 0; object-position: var(--ph-pos, 50% 50%); transform: translateX(var(--ph-shift, 0)) scaleX(var(--ph-flip, 1)); }
  .rv-photohero > div:not(.grid):not(.rv-ph-media) { min-height: 40rem; display: flex; flex-direction: column; }
  .rv-photohero > div > .grid { margin-top: auto; padding-top: 3rem; }
  .rv-photohero > div.grid { min-height: 40rem; align-content: center; padding-top: 4rem; }
  .rv-photohero .grid > .lg\:col-span-7 { max-width: 35rem; }
  .rv-photohero[data-side="right"] .grid > .lg\:col-span-7 { grid-column: 7 / span 6; justify-self: end; }
  .rv-ph-mark { top: var(--mk-t, 0); left: var(--mk-l, auto); right: var(--mk-r, auto); height: var(--mk-h, 60%); }
  .rv-ph-wash { background: linear-gradient(90deg, rgba(247,242,234,0.94) 0%, rgba(247,242,234,0.86) calc(var(--ph-ww, 66%) * 0.45), rgba(247,242,234,0.45) calc(var(--ph-ww, 66%) * 0.76), rgba(247,242,234,0) var(--ph-ww, 66%)); }
  .rv-photohero[data-side="right"] .rv-ph-wash { background: linear-gradient(270deg, rgba(247,242,234,0.94) 0%, rgba(247,242,234,0.86) 30%, rgba(247,242,234,0.45) 50%, rgba(247,242,234,0) 66%); }
  .rv-photohero[data-tone="dark"] .rv-ph-wash { background: linear-gradient(90deg, rgba(52,33,45,0.95) 0%, rgba(52,33,45,0.88) 34%, rgba(52,33,45,0.4) 56%, rgba(52,33,45,0) 72%); }
}
.rv-photohero[data-tone="dark"] .grid .text-espresso, .rv-photohero[data-tone="dark"] .grid h1 { color: #fbf8f2; }
.rv-photohero[data-tone="dark"] .grid .text-espresso-soft { color: #f3ece2; }
.rv-photohero[data-tone="dark"] .grid .text-taupe { color: #ead9b8; }

/* ---------- Caregivers section: photo bleeds to the edge (#21) ---------- */
.rv-bleed-media { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 34rem; overflow: hidden; }
.rv-bleed-media .rv-rot img { object-position: 50% 40%; }
.rv-bleed-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-bleed-blend { display: none; }
@media (min-width: 1280px) {
  .rv-bleed > div:not(.rv-bleed-media) { min-height: 40rem; }
  .rv-bleed-text { max-width: 30rem; }
  .rv-bleed-media { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; max-height: none; width: auto; aspect-ratio: 4 / 3; max-width: 60vw; z-index: -1; }
  .rv-bleed-blend { display: block; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--color-plum, #543849) 0%, rgba(84,56,73,0) 16%); }
}

/* ---------- Talk to Us About Our Services ---------- */
.rv-talk { background: var(--color-ivory-light, #fbf8f2); border-top: 1px solid var(--color-rule); padding: 5rem 0 5.5rem; scroll-margin-top: 5rem; }
.rv-talk-head { max-width: 44rem; }
.rv-talk-eyebrow { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-taupe, #6b5f53); }
.rv-talk-eyebrow span { display: block; width: 2rem; height: 1px; background: var(--color-gold); }
.rv-talk-title { margin: 1.25rem 0 0; font-family: var(--font-heading, 'DM Serif Display'), Georgia, serif; font-weight: 400; font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1.05; color: var(--color-espresso); outline: none; }
.rv-talk-lede { margin: 1rem 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--color-espresso-soft); }
.rv-talk-grid { display: grid; gap: 0; margin-top: 3rem; border-top: 1px solid var(--color-espresso); }
.rv-talk-col { padding: 2rem 0; border-bottom: 1px solid var(--color-rule); }
.rv-talk-num { margin: 0; font-family: var(--font-heading, 'DM Serif Display'), Georgia, serif; font-size: 1.25rem; color: var(--color-gold-dark, #8a6d3b); }
.rv-talk-h3 { margin: 0.5rem 0 0; font-family: var(--font-heading, 'DM Serif Display'), Georgia, serif; font-weight: 400; font-size: 1.75rem; line-height: 1.15; color: var(--color-espresso); }
.rv-talk-copy { margin: 0.85rem 0 0; line-height: 1.65; color: var(--color-espresso-soft); }
.rv-talk-copy strong { color: var(--color-espresso); }
.rv-talk-small { font-size: 0.9375rem; }
.rv-talk-new form { margin-top: 1.5rem; }
.rv-talk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; margin-top: 1.25rem; padding: 0.75rem 1.5rem; border-radius: 999px; border: 1px solid var(--color-espresso); color: var(--color-espresso); font-weight: 600; font-size: 0.9375rem; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease; }
.rv-talk-btn:hover { background: var(--color-espresso); color: var(--color-ivory-light, #fbf8f2); }
.rv-talk-urgent { background: var(--color-plum); color: var(--color-ivory-light, #fbf8f2); padding: 2rem 1.5rem; border-bottom: 0; }
.rv-talk-urgent .rv-talk-num { color: #c9a96e; }
.rv-talk-urgent .rv-talk-h3, .rv-talk-urgent .rv-talk-copy, .rv-talk-urgent .rv-talk-copy strong { color: var(--color-ivory-light, #fbf8f2); }
.rv-talk-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; line-height: 1.55; }
.rv-talk-list li { padding-left: 1rem; border-left: 2px solid #c9a96e; }
.rv-talk-list a, .rv-talk-link { color: var(--color-ivory-light, #fbf8f2); font-weight: 700; text-decoration: underline; text-decoration-color: #c9a96e; text-underline-offset: 4px; }
.rv-talk-link { display: inline-flex; margin-top: 1.25rem; min-height: 2.75rem; align-items: center; font-weight: 600; }
.rv-contact-partners { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--color-rule); line-height: 1.6; color: var(--color-espresso-soft); }
@media (min-width: 1024px) {
  .rv-talk { padding: 6.5rem 0 7rem; }
  .rv-talk-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
  .rv-talk-col { padding: 2.5rem 2.5rem 2.5rem 0; border-bottom: 0; }
  .rv-talk-col + .rv-talk-col { padding-left: 2.5rem; border-left: 1px solid var(--color-rule); }
  .rv-talk-urgent { padding: 2.5rem 2rem; border-left: 0 !important; }
}

/* ---------- Form consent (phone/email, optional texts) ---------- */
.rv-consent { display: grid; gap: 0.75rem; margin: 0 0 1.25rem; }
.rv-consent-text { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--color-espresso-soft); }
.rv-consent-check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.8125rem; line-height: 1.55; color: var(--color-espresso-soft); cursor: pointer; }
.rv-consent-check input { width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: var(--color-terracotta); cursor: pointer; }
.rv-consent-check input:focus-visible { outline: 2px solid var(--color-espresso); outline-offset: 2px; }

/* ---------- Talk to Us: photo ---------- */
.rv-talk-top { display: grid; gap: 2rem; }
.rv-talk-photo { position: relative; margin: 0; order: -1; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12rem 12rem 0 0; background: var(--color-sand-light); }
.rv-talk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.35); transform-origin: 50% 58%; }
.rv-talk-mark { position: absolute; top: 18%; right: 14%; height: 30%; aspect-ratio: 240 / 314; width: auto; color: #a8854a; pointer-events: none; }
@media (min-width: 1024px) {
  .rv-talk-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 4rem; }
  .rv-talk-photo { order: 0; }
}

/* ---------- Portal links land on the Existing clients column ---------- */
#existing-clients { scroll-margin-top: 6rem; }
#existing-clients:target .rv-talk-h3 { text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 6px; }

/* ---------- Mobile photo heroes: soften the photo's lower edge under the headline ---------- */
@media (max-width: 1023.98px) {
  .rv-ph-media img { -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); }
}

/* ---------- Quick-facts band under photo heroes ---------- */
.rv-glance { padding: 2.5rem 0 3rem; }
.rv-glance aside { max-width: 40rem; }
@media (min-width: 1024px) {
  .rv-glance { padding: 3rem 0 3.5rem; }
  .rv-glance aside { max-width: none; }
  .rv-glance aside > div:last-child { padding: 2rem 2.5rem; }
  .rv-glance dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0; margin-top: 1rem; }
  .rv-glance dl > div { display: block; padding: 0.25rem 1.5rem 0.25rem 0; border-top: 0 !important; }
  .rv-glance dl > div + div { padding-left: 1.5rem; border-left: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
  .rv-glance dl > div > dt { margin-bottom: 0.35rem; }
}

@media (max-width: 1023.98px) { .rv-photohero[data-mark-m="none"] .rv-ph-mark { display: none; } }

/* Wide group photos on desktop: sized by width, anchored bottom-right, never under the text column (v15) */
@media (min-width: 1024px) {
  .rv-photohero[data-fit="width"] > .rv-ph-media img {
    position: absolute; right: 0; bottom: 0; top: auto; left: auto;
    width: min(100%, calc((100vw - max(0px, (100vw - 80rem) / 2) - 39.5rem) / (1 - var(--ph-free, 0.25))));
    height: auto; max-height: 100%; object-fit: contain; object-position: 100% 100%;
    transform: scaleX(var(--ph-flip, 1));
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ph-topfade, 22%)), linear-gradient(to right, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ph-topfade, 22%)), linear-gradient(to right, transparent 0, #000 14%);
    mask-composite: intersect;
  }
  .rv-photohero[data-fit="width"] .rv-ph-wash { background: none; }
}

/* Gold step numerals: darker gold so they meet 4.5:1 contrast on ivory (v16 accessibility audit) */
.font-heading.text-xl.leading-none.text-gold, .font-heading.text-5xl.leading-none.text-gold { color: #765d2a; }
@media (max-width: 1023.98px) { .rv-wb-num { color: #765d2a; } }

/* ---------- Utility-bar tap targets (MODRN Layer-1 a11y fix 2026-11-23; approved difference in match.json) ----------
   Jay's v16 utility-bar links were 16px tall (WCAG 2.5.8 passed only by the spacing exception). Each link keeps its v16 box (so
   nothing moves; chrome-match measures geometry) and a ::before extends its TAP area to 44px tall (WCAG 2.5.8 counts the
   whole hit region; 2.5.5 AAA, Apple HIG), with no visual change. The crisis link ("In crisis? Call or text 988") is the one that matters most. */
.rv-tap { position: relative; }
.rv-tap::before { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }

/* ---------- /crisis-resources: both 988 buttons above the sticky bar on phones (P-022, Clayton 2026-11-25) ----------
   Below Tailwind's sm breakpoint (40rem) the sticky Call/Talk bar (.sticky-cta, 69px) covered "Call 988" on the first
   screen at 390x844. Clayton kept the bar and asked for spacing instead. ONLY the spacing above the 988 card shrinks, on
   this page only (data-rv-crisis-fold is on its hero and its 988 band): hero top 2rem->1rem, breadcrumb-to-title
   2.5rem->1.25rem, title 1.5rem->0.5rem, intro 1.5rem->1rem, hero bottom 4rem->1.5rem, 988 band top 3.5rem->1.5rem (132px).
   From 40rem up nothing changes. Approved difference in match.json, citing P-022. */
@media (max-width: 39.99rem) {
  [data-rv-crisis-fold="hero"] > div { padding-top: 1rem; padding-bottom: 1.5rem; }
  [data-rv-crisis-fold="hero"] > div > .grid { margin-top: 1.25rem; }
  [data-rv-crisis-fold="hero"] h1 { margin-top: 0.5rem; }
  [data-rv-crisis-fold="hero"] h1 + p { margin-top: 1rem; }
  [data-rv-crisis-fold="988"] > div { padding-top: 1.5rem; }
}

/* ---------- /crisis-resources: the sticky bar carries 988 (P-022 / ux-director 2026-11-25 finding H, Clayton 2026-11-25) ----------
   On that page only (StickyCta v[0] = "crisis") the bar's round secondary slot reads "Text 988" (sms:988) and its filled slot
   "Call 988" (tel:988). The slot keeps Jay's colours, border, radius and 3rem height; it only widens to fit its words. Approved
   difference in match.json (remove rows for that page) and port-parity-allow-ref.json, citing P-022. */
.sticky-cta-call.rv-sticky-text { width: auto; min-width: 3rem; padding: 0 1.125rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }

/* ---------- One-line phone links (ux-director 2026-11-25 finding C, Clayton 2026-11-25) ----------
   Jay's compiled CSS has no whitespace-nowrap utility; this is the site's one. Used on the closed-forms notice's phone link. */
.rv-nowrap { white-space: nowrap; }

/* ---------- Mobile-menu footer tap areas (P-025 / ux-director 2026-11-25 finding G, Clayton 2026-11-25) ----------
   The rv-tap pattern (a transparent ::before), keyed by an ATTRIBUTE, not a class: the footer phone link shares its class
   list with visible body links ("Privacy Policy"), and chrome-match finds a hover target by its class and index, so a new
   class on the hidden menu link shifted that index (measured locally: /contact hover "missing Privacy Policy"). Each of the
   three links (20px tall) gets a 44px TAP area with no visual or layout change. They sit 16px apart, with 16px between the
   Talk to Us button and the portal link and 20px of padding under the last row, so a centred 44px area would overlap its
   neighbour by 8px. Instead the portal link's area reaches 16px up and 8px down, the row links' 8px up and 16px down:
   44px each, touching, never overlapping (elementFromPoint at 390 and 1280; scripts/a11y.test.mjs). */
[data-rv-tap] { position: relative; }
[data-rv-tap]::before { content: ""; position: absolute; left: -4px; right: -4px; height: 44px; }
[data-rv-tap="up"]::before { top: -16px; }
[data-rv-tap="down"]::before { top: -8px; }
