/* ==========================================================================
   Review center (Development only): BuildProof-style workflow boards.
   ========================================================================== */
.rv { min-height: 100vh; background: var(--tp-pub-band); color: var(--tp-text-primary); font-family: "Inter", var(--tp-font-sans); }
.rv a { color: inherit; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem clamp(1rem, 3vw, 2rem); background: var(--tp-pub-page); border-bottom: 1px solid var(--tp-pub-hairline); }
.rv-brand { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 650; text-decoration: none; color: var(--tp-pub-ink) !important; }
.rv-brand__sub { padding-left: 0.625rem; margin-left: 0.125rem; border-left: 1px solid var(--tp-pub-hairline-strong); font-weight: 500; color: var(--tp-text-muted); }
.rv-top__site { font-size: 0.875rem; color: var(--tp-text-secondary) !important; }

.rv-page { max-width: 80rem; margin: 0 auto; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, 3vw, 2rem) 4rem; }
.rv-page--wide { max-width: 112rem; }
.rv-eyebrow { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tp-text-muted); }
.rv-eyebrow a { text-decoration: none; }
.rv-eyebrow a:hover { text-decoration: underline; }
.rv-title { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.032em; color: var(--tp-pub-ink); text-wrap: balance; }
.rv-lede { margin: 0.75rem 0 0; max-width: 46rem; color: var(--tp-text-secondary); }
.rv-meta { margin: 0; font-size: 0.8125rem; color: var(--tp-text-muted); }
.rv-meta code { color: var(--tp-pub-ink); }
.rv-empty { margin-top: 2rem; color: var(--tp-text-secondary); }
.rv-pill { display: inline-block; padding: 0.0625rem 0.5rem; border: 1px solid var(--tp-pub-hairline-strong); border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--tp-text-secondary); background: var(--tp-pub-page); }

/* Index: one card per experience, its latest board as the cover. */
.rv-head { padding-bottom: 1.5rem; border-bottom: 1px solid var(--tp-pub-hairline); }
.rv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .rv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv-card { display: grid; align-content: start; }
.rv-card__link { display: grid; grid-template-columns: auto 1fr; column-gap: 0.625rem; row-gap: 0.25rem; text-decoration: none; }
.rv-card__cover { grid-column: 1 / -1; margin-bottom: 0.75rem; }
.rv-card__link:hover .rv-card__title { text-decoration: underline; text-underline-offset: 0.2em; }
.rv-card__n { grid-row: span 3; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--tp-pub-ink); color: var(--tp-pub-page); font-size: 0.875rem; font-weight: 650; line-height: 1.75rem; text-align: center; }
.rv-card__title { font-weight: 650; color: var(--tp-pub-ink); }
.rv-card__headline { font-size: 0.875rem; color: var(--tp-text-secondary); }
.rv-card__meta { font-size: 0.8125rem; color: var(--tp-text-muted); }
.rv-card__history { margin: 0.5rem 0 0 2.375rem; font-size: 0.8125rem; color: var(--tp-text-muted); }
.rv-card__history a { margin-right: 0.5rem; }

/* Frames: a browser for desktop and tablet, a phone for phones. Fixed ratios keep rows aligned. */
.rv-frame { display: block; overflow: clip; background: var(--tp-pub-page); }
.rv-frame img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; }
.rv-frame--desktop { border: 1px solid var(--tp-pub-hairline-strong); border-top: 14px solid var(--tp-pub-hairline-strong); border-radius: 6px; }
.rv-frame--desktop img { aspect-ratio: 3 / 2; }
.rv-frame--tablet { border: 10px solid #1c1f24; border-radius: 18px; }
.rv-frame--tablet img { aspect-ratio: 834 / 1112; }
.rv-frame--phone { padding: 6px; border-radius: 22px; background: #1c1f24; }
.rv-frame--phone img { aspect-ratio: 390 / 844; border-radius: 16px; }

/* The board. */
.rv-board-head { display: grid; gap: 0.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--tp-pub-hairline); }
@media (min-width: 64rem) { .rv-board-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: end; gap: 2.5rem; } .rv-board-head .rv-lede { margin: 0; } }
.rv-h2 { margin: 2.25rem 0 1rem; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tp-text-muted); }
.rv-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .rv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .rv-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rv-steps--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .rv-steps--phones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 96rem) { .rv-steps--phones { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.rv-step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 0.625rem; align-content: start; }
.rv-step__n { grid-row: span 2; margin: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--tp-pub-ink); color: var(--tp-pub-page); font-size: 0.875rem; font-weight: 650; line-height: 1.75rem; text-align: center; }
.rv-step__title { margin: 0; font-weight: 650; line-height: 1.2; color: var(--tp-pub-ink); }
.rv-step__outcome { margin: 0; min-height: 2.6em; font-size: 0.8125rem; color: var(--tp-text-muted); }
.rv-step > .rv-frame, .rv-step__note { grid-column: 1 / -1; }
.rv-step > .rv-frame { margin-top: 0.5rem; }
.rv-step__note { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--tp-text-secondary); }
@media (min-width: 72rem) {
  .rv-steps:not(.rv-steps--phones) .rv-step:not(:nth-child(4n)):not(:last-child)::after,
  .rv-steps--phones .rv-step:not(:last-child)::after { content: "→"; position: absolute; right: -0.95rem; top: 45%; color: var(--tp-text-muted); }
}

.rv-sizes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 60rem) { .rv-sizes { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } .rv-size--desktop { grid-column: span 2; } }
.rv-size { margin: 0; }
.rv-size--phone { max-width: 16rem; }
figcaption { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--tp-text-muted); }
figcaption strong { color: var(--tp-pub-ink); }

.rv-pairs { display: grid; gap: 2rem; }
.rv-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem 1.25rem; }
@media (min-width: 48rem) { .rv-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rv-pair__title { grid-column: 1 / -1; margin: 0; font-weight: 650; color: var(--tp-pub-ink); }
.rv-pair figure { margin: 0; }

.rv-close { display: grid; gap: 1rem; margin-top: 2.5rem; padding: 1.25rem 0; border-top: 1px solid var(--tp-pub-hairline-strong); border-bottom: 1px solid var(--tp-pub-hairline-strong); }
@media (min-width: 48rem) { .rv-close { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.rv-close p { margin: 0; font-size: 0.875rem; color: var(--tp-text-secondary); }
.rv-close strong { display: block; margin-bottom: 0.25rem; font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tp-pub-ink); }
