:root {
  --rv-ink: #151815;
  --rv-ink-soft: #343a36;
  --rv-muted: #69716b;
  --rv-line: #d9dfd8;
  --rv-line-strong: #aeb8b0;
  --rv-surface: #ffffff;
  --rv-surface-alt: #f7f8f5;
  --rv-green: #0d7f5d;
  --rv-green-dark: #07593f;
  --rv-copper: #a65f2c;
  --md-primary-fg-color: var(--rv-ink);
  --md-primary-fg-color--light: var(--rv-ink-soft);
  --md-primary-fg-color--dark: #0d0f0d;
  --md-accent-fg-color: var(--rv-green);
  --md-typeset-a-color: var(--rv-green-dark);
}

body {
  background: var(--rv-surface-alt);
}

.md-header {
  background: var(--rv-ink);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.md-header__title {
  font-weight: 700;
  letter-spacing: 0;
}

.md-tabs {
  background: var(--rv-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.md-main {
  background: var(--rv-surface-alt);
}

.md-content {
  background: var(--rv-surface);
}

.md-content__inner {
  margin-bottom: 2rem;
}

.md-typeset {
  color: var(--rv-ink);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--rv-ink);
  font-weight: 720;
  letter-spacing: 0;
}

.md-typeset h1 {
  margin-bottom: 0.65rem;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--rv-line);
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--rv-surface-alt);
  color: var(--rv-ink);
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px;
  box-shadow: none;
}

.md-button {
  border-radius: 6px;
  font-weight: 700;
}

.md-button.md-button--primary {
  background: var(--rv-green-dark);
  border-color: var(--rv-green-dark);
  color: #ffffff;
}

.md-button.md-button--primary:is(:focus, :hover) {
  background: var(--rv-green);
  border-color: var(--rv-green);
}

.md-nav__link--active,
.md-nav__link:is(:focus, :hover) {
  color: var(--rv-green-dark);
}

.rv-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rv-line);
}

.rv-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--rv-copper);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rv-hero h1 {
  max-width: 10.5ch;
  margin: 0;
  color: var(--rv-ink);
  font-size: 3.4rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.98;
}

.rv-lead {
  max-width: 44rem;
  margin: 1.3rem 0 0;
  color: var(--rv-ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.rv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.rv-posture-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.rv-posture-strip span {
  border: 1px solid var(--rv-line-strong);
  border-radius: 6px;
  padding: 0.34rem 0.55rem;
  background: var(--rv-surface-alt);
  color: var(--rv-ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.rv-posture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.4rem 0 2rem;
}

.rv-posture-grid article {
  border: 1px solid var(--rv-line);
  border-top: 3px solid var(--rv-green-dark);
  border-radius: 8px;
  padding: 1rem;
  background: var(--rv-surface);
}

.rv-posture-grid h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.02rem;
}

.rv-posture-grid p {
  margin: 0;
}

.rv-card-kicker {
  color: var(--rv-copper);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rv-figure {
  margin: 1.2rem 0 1.5rem;
}

.rv-figure picture,
.rv-figure img {
  display: block;
}

.rv-lightbox {
  position: relative;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
}

.rv-lightbox::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(174, 184, 176, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%2307593f' stroke-width='2'/%3E%3Cpath d='m21 21-4.35-4.35M11 7v8M7 11h8' fill='none' stroke='%2307593f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E") center / 1.1rem 1.1rem no-repeat;
  box-shadow: 0 0.18rem 0.7rem rgba(13, 15, 13, 0.18);
  pointer-events: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.rv-lightbox:hover .rv-diagram,
.rv-lightbox:focus-visible .rv-diagram {
  border-color: var(--rv-green-dark);
  box-shadow: 0 0 0 3px rgba(13, 127, 93, 0.14);
}

.rv-lightbox:hover::after,
.rv-lightbox:focus-visible::after {
  border-color: var(--rv-green-dark);
  box-shadow: 0 0.24rem 0.85rem rgba(13, 15, 13, 0.24);
  transform: scale(1.04);
}

.rv-lightbox:focus-visible {
  outline: 3px solid rgba(13, 127, 93, 0.35);
  outline-offset: 0.18rem;
}

.rv-diagram {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  border: 1px solid var(--rv-line);
  border-radius: 8px;
  background: var(--rv-surface);
}

.rv-lightbox-overlay[hidden] {
  display: none;
}

.rv-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(13, 15, 13, 0.82);
}

.rv-lightbox-frame {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(96vw, 1700px);
  max-height: 94vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--rv-surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.rv-lightbox-title {
  min-height: 2.7rem;
  padding: 0.75rem 5.2rem 0.65rem 0.9rem;
  border-bottom: 1px solid var(--rv-line);
  color: var(--rv-ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.rv-lightbox-close {
  position: absolute;
  top: 0.48rem;
  right: 0.55rem;
  border: 1px solid var(--rv-line-strong);
  border-radius: 6px;
  padding: 0.38rem 0.6rem;
  background: var(--rv-surface);
  color: var(--rv-ink);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.rv-lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(94vh - 2.9rem);
  object-fit: contain;
}

.rv-lightbox-open {
  overflow: hidden;
}

.rv-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
}

.rv-step {
  border: 1px solid var(--rv-line);
  border-top: 3px solid var(--rv-green-dark);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--rv-surface);
}

.rv-step strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--rv-ink);
}

.rv-step span {
  display: block;
  color: var(--rv-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

@media screen and (max-width: 76.234375em) {
  .md-content {
    background: var(--rv-surface);
  }
}

@media screen and (max-width: 48em) {
  .rv-hero {
    padding-top: 2.2rem;
  }

  .rv-hero h1 {
    font-size: 2.35rem;
  }

  .rv-posture-grid {
    grid-template-columns: 1fr;
  }

  .rv-lightbox::after {
    right: 0.45rem;
    bottom: 0.45rem;
    width: 1.55rem;
    height: 1.55rem;
    background-size: 0.9rem 0.9rem;
  }

  .rv-steps {
    grid-template-columns: 1fr;
  }
}
