.rl-chapter {
  margin-block: var(--rl-flow);
  color: var(--rh-text);
  font: var(--rh-text-body);
}

.rl-chapter.rh-card { overflow: visible; }

.rl-chapter > .rh-card__footer { border-radius: 0 0 var(--rh-radius-card) var(--rh-radius-card); }

.rl-chapter__head { margin: 0 0 var(--rh-space-8); }

.rl-chapter__crumbs { margin: 0 0 var(--rh-space-2); }

.rl-chapter__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rh-space-1) var(--rh-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font: var(--rh-text-caption);
  color: var(--rl-text-meta);
}

.rl-chapter__crumbs li + li::before {
  content: "/";
  margin-right: var(--rh-space-2);
  color: var(--rh-border-strong);
}

.rl-chapter__crumbs a { color: var(--rh-text-muted); }

.rl-chapter__crumbs [aria-current] { color: var(--rh-text); }

.rl-chapter__course {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  color: var(--rh-text);
  font-weight: var(--rh-weight-medium);
  text-decoration: none;
  transition: color var(--rh-dur) var(--rh-ease);
}

a.rl-chapter__course:hover { text-decoration: underline; }

.rl-chapter__head h1 {
  font: var(--rl-text-pagetitle);
  letter-spacing: var(--rh-tracking-snug);
  color: var(--rh-text-strong);
  margin: 0 0 var(--rh-space-3);
}

.rl-chapter__titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rh-space-2) var(--rh-space-4);
}

.rl-chapter__titlerow h1 { flex: 1 1 18rem; min-inline-size: 0; }

.rl-chapter__titleacts { flex: none; display: flex; flex-wrap: wrap; gap: var(--rh-space-2); padding-block-start: var(--rh-space-2); }

.rl-chapter__meta { margin: 0; font: var(--rh-text-caption); color: var(--rl-text-meta); }

.rl-chapter__sep { margin: 0 var(--rh-space-2); }

.rl-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rh-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  padding: var(--rh-space-1) var(--rh-space-3);
  border: var(--rh-border-width) solid transparent;
  border-radius: var(--rh-radius-full);
  background: var(--rh-surface-subtle);
  color: var(--rh-text);
  font: var(--rh-text-caption);
  white-space: nowrap;
}

.rl-chip__jump {
  color: inherit;
  text-decoration: none;
}

.rl-chip__jump:hover { text-decoration: underline; }

.rl-chip__jump:focus-visible,
.rl-chip__arrow:focus-visible,
.rl-chip__list a:focus-visible {
  outline: none;
  box-shadow: var(--rh-shadow-focus);
}

.rl-chip--kind:has(.rl-chip__menu[open]) {
  border-color: var(--rh-accent);
}

.rl-chip__menu { display: inline-flex; }

.rl-chip__arrow {
  display: inline-grid;
  place-items: center;
  inline-size: var(--rh-space-6);
  block-size: var(--rh-space-6);
  margin-inline-end: calc(var(--rh-space-2) * -1);
  border-radius: var(--rh-radius-full);
  color: inherit;
  cursor: pointer;
  list-style: none;
}

.rl-chip__arrow::-webkit-details-marker { display: none; }

.rl-chip__arrow:hover { background: var(--rh-border); }

.rl-chip__arrow svg {
  inline-size: var(--rh-text-sm);
  block-size: var(--rh-text-sm);
  transition: transform var(--rh-dur-fast) var(--rh-ease);
}

.rl-chip__menu[open] .rl-chip__arrow svg { transform: rotate(180deg); }

.rl-chip__list {
  position: absolute;
  inset-block-start: calc(100% + var(--rh-space-1));
  inset-inline-start: 0;
  z-index: 5;
  inline-size: max-content;
  max-inline-size: calc(100vw - 2 * var(--rh-space-4));
  max-block-size: 18rem;
  overflow-y: auto;
  padding: var(--rh-space-2);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-md);
  background: var(--rh-surface);
  box-shadow: var(--rh-shadow-lg);
  white-space: normal;
}

.rl-chip__title {
  margin: 0;
  padding: var(--rh-space-1) var(--rh-space-2);
  color: var(--rl-text-meta);
  font: var(--rh-text-caption);
}

.rl-chip__list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-chip__list a {
  display: block;
  padding: var(--rh-space-2);
  border-radius: var(--rh-radius-sm);
  color: var(--rh-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.rl-chip__list a:hover { background: var(--rh-surface-subtle); }

[data-chip-target] { scroll-margin-block-start: var(--rh-space-6); }

@media (max-width: 40rem) {
  .rl-chips { position: relative; }
  .rl-chip--kind { position: static; }
  .rl-chip__list { inset-inline: 0; inline-size: auto; max-inline-size: none; }
}

.rl-chapter__progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-space-3) var(--rh-space-5);
}

.rl-chapter__progress > :first-child { margin-top: var(--rh-space-5); }

.rl-chapter__progress > .rl-vote { margin-top: var(--rh-space-5); margin-left: auto; }

.rl-prose h1 {
  font: var(--rh-text-h1);
  letter-spacing: var(--rh-tracking-snug);
  margin: var(--rh-space-10) 0 var(--rh-space-3);
}
.rl-prose h2 {
  font: var(--rh-text-h2);
  letter-spacing: var(--rh-tracking-snug);
  margin: var(--rh-space-10) 0 var(--rh-space-3);
}
.rl-prose h3 {
  font: var(--rh-text-h3);
  letter-spacing: var(--rh-tracking-snug);
  margin: var(--rh-space-8) 0 var(--rh-space-3);
}
.rl-prose h4 {
  font: var(--rh-text-h4);
  letter-spacing: var(--rh-tracking-normal);
  margin: var(--rh-space-6) 0 var(--rh-space-2);
}
.rl-prose h5 {
  font: var(--rh-text-h4);
  font-size: var(--rh-text-md);
  letter-spacing: var(--rh-tracking-normal);
  color: var(--rh-text);
  margin: var(--rh-space-5) 0 var(--rh-space-2);
}
.rl-prose h1:first-child,
.rl-prose h2:first-child,
.rl-prose h3:first-child,
.rl-prose h4:first-child,
.rl-prose h5:first-child { margin-top: 0; }
.rl-prose h1 + h2,
.rl-prose h2 + h3,
.rl-prose h3 + h4,
.rl-prose h4 + h5 { margin-top: 0; }
.rl-chapter__body p  { margin: 0 0 var(--rh-space-4); }

.rl-chapter__body a { color: var(--rh-text-accent); }
.rl-chapter__body a:hover { color: var(--rh-accent-hover); }

.rl-chapter__body code {
  font-family: var(--rh-font-mono);
  font-size: 0.92em;
  background: var(--rh-surface-subtle);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-sm);
  padding: 0.05em 0.3em;
}

.rl-block { margin-block: 0 var(--rh-space-6); }

.rl-fallback {
  background: var(--rh-surface-subtle);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-md);
  padding: var(--rh-space-3) var(--rh-space-4);
  margin-block: 0 var(--rh-space-8);
  font: var(--rh-text-caption);
  color: var(--rh-text);
}

.rl-block.rh-callout .rh-callout__body { font: var(--rh-text-body); color: var(--rh-text); }
.rl-block.rh-callout .rh-callout__body > :last-child { margin-bottom: 0; }

.rl-block.rh-callout .rh-callout__body h2,
.rl-steps h2,
.rl-list h2 {
  font: var(--rh-text-h4);
  letter-spacing: var(--rh-tracking-normal);
  margin: 0 0 var(--rh-space-2);
  color: var(--rh-text-strong);
}

.rl-steps > h2,
.rl-list > h2 { overflow-wrap: anywhere; }

.rl-steps.rl-heading--xxl > h2,
.rl-list.rl-heading--xxl > h2 { font-size: var(--rh-text-2xl); }

.rl-steps.rl-heading--xl > h2,
.rl-list.rl-heading--xl > h2 { font-size: var(--rh-text-xl); }

.rl-steps.rl-heading--medium > h2,
.rl-list.rl-heading--medium > h2 { font-size: var(--rh-text-md); }

.rl-steps.rl-heading--small > h2,
.rl-list.rl-heading--small > h2 { font-size: var(--rh-text-base); }

.rl-callout.rl-heading--xxl .rl-callout__title { font-size: var(--rh-text-md); }

.rl-callout.rl-heading--xl .rl-callout__title { font-size: var(--rh-text-base); }

.rl-callout.rl-heading--medium .rl-callout__title { font-size: var(--rh-text-xs); }

.rl-callout.rl-heading--small .rl-callout__title {
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-medium);
}

.rl-checklist {
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-md);
  padding: var(--rh-space-4) var(--rh-space-5);
}
.rl-checklist__title {
  font: var(--rh-text-h4);
  letter-spacing: var(--rh-tracking-normal);
  margin: 0 0 var(--rh-space-3);
  color: var(--rh-text-strong);
}
.rl-checklist__items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rh-space-2); }
.rl-checklist__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--rh-space-3); align-items: start; }
.rl-checklist__box {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2em 0 0;
  accent-color: var(--rh-accent);
  cursor: pointer;
}
.rl-checklist__item label { cursor: pointer; }
.rl-checklist__box:checked + label { color: var(--rl-text-meta); }
.rl-checklist__box:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: 2px; }
.rl-checklist__more { grid-column: 2; }
.rl-checklist__more > :first-child { margin-block-start: 0; }
.rl-checklist__text > :last-child { margin-block-end: 0; }

.rl-gotcha {
  background: var(--rh-surface-inverse);
  color: var(--rh-text-inverse);
  border-radius: var(--rh-radius-card);
  padding: var(--rh-space-5) var(--rh-space-6);
}
.rl-gotcha > :last-child { margin-bottom: 0; }

.rl-gotcha h2 {
  font: var(--rh-text-h4);
  letter-spacing: var(--rh-tracking-normal);
  margin: 0 0 var(--rh-space-2);
  color: var(--rh-text-inverse);
}

:is(.rh-callout__body, .rl-callout__body, .rl-gotcha, .rl-steps, .rl-list) :is(h1, h3, h4, h5),
.rl-callout__body h2 {
  font: var(--rh-text-h4);
  letter-spacing: var(--rh-tracking-normal);
  margin-block: var(--rh-space-4) var(--rh-space-2);
  color: var(--rh-text-strong);
}

:is(.rh-callout__body, .rl-callout__body, .rl-gotcha, .rl-steps, .rl-list) h1 { font-size: var(--rh-text-xl); }

:is(.rh-callout__body, .rl-callout__body, .rl-gotcha, .rl-steps, .rl-list) h3 { font-size: var(--rh-text-md); }

:is(.rh-callout__body, .rl-callout__body, .rl-gotcha, .rl-steps, .rl-list) h4 { font-size: var(--rh-text-base); }

:is(.rh-callout__body, .rl-callout__body, .rl-gotcha, .rl-steps, .rl-list) h5 { font-size: var(--rh-text-sm); }

:is(.rh-callout__body, .rl-gotcha, .rl-gotcha__body, .rl-steps, .rl-list) > :is(h1, h3, h4, h5):first-child { margin-top: 0; }

.rl-gotcha :is(h1, h3, h4, h5) { color: var(--rh-text-inverse); }

.rl-gotcha code {
  background: transparent;
  border-color: var(--rh-border-inverse);
  color: var(--rh-text-inverse);
}

.rl-gotcha a { color: var(--rh-text-inverse); text-decoration: underline; }

.rl-steps > ol {
  counter-reset: rl-step;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.rl-steps > ol > li {
  counter-increment: rl-step;
  position: relative;
  padding-left: var(--rh-space-8);
  padding-bottom: var(--rh-space-4);
}

.rl-steps > ol > li:last-child { padding-bottom: 0; }
.rl-steps > ol > li > :last-child { margin-bottom: 0; }

.rl-chapter__body .rl-steps > ol > li p { margin: 0 0 var(--rh-space-2); }

.rl-steps > ol > li::before {
  content: counter(rl-step);
  position: absolute;
  left: 0;
  top: calc((var(--rh-leading-normal) * var(--rh-text-base) - var(--rh-space-6)) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--rh-space-6);
  height: var(--rh-space-6);
  font-family: var(--rh-font-mono);
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-medium);
  line-height: 1;
  color: var(--rh-text-strong);
  background: var(--rh-surface-subtle);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-full);
}

.rl-steps > ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--rh-space-6) / 2 - var(--rh-border-width) / 2);
  top: calc((var(--rh-leading-normal) * var(--rh-text-base) - var(--rh-space-6)) / 2 + var(--rh-space-6) + var(--rh-space-1));
  bottom: var(--rh-space-1);
  width: var(--rh-border-width);
  background: var(--rh-border);
}

.rl-steps > ol > li > .rl-block,
.rl-steps > ol > li > .rl-step__text { margin-block: var(--rh-space-3); max-width: none; }

.rl-steps > ol > li > .rl-figure img { max-width: 100%; }

.rl-figure { margin: 0 0 var(--rh-space-8); }
.rl-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-md);
  background: var(--rh-surface-subtle);
}
.rl-figure figcaption {
  margin-top: var(--rh-space-2);
  font: var(--rh-text-caption);
  color: var(--rl-text-meta);
}

.rl-figure--sized,
.rl-figure--center,
.rl-figure--right { display: flex; flex-direction: column; align-items: flex-start; }
.rl-figure--center { align-items: center; }
.rl-figure--right { align-items: flex-end; }
.rl-figure--center figcaption { text-align: center; }
.rl-figure--right figcaption { text-align: right; }

.rl-figure__full {
  display: block;
  max-width: 100%;
  border-radius: var(--rh-radius-md);
  cursor: zoom-in;
}
.rl-figure__full:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: 2px; }

.rl-figure__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--rh-space-3);
  max-width: 100%;
}
.rl-figure--center .rl-figure__row { justify-content: center; }
.rl-figure--right .rl-figure__row { justify-content: flex-end; }

.rl-figure__pic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  margin: 0;
}
.rl-figure__pic figcaption { width: 0; min-width: 100%; }

.rl-callout__body > .rl-figure,
.rh-callout__body > .rl-figure,
.rl-gotcha__body > .rl-figure,
.rl-gotcha > .rl-figure { margin-block: var(--rh-space-3); }

.rl-compare__pair { display: grid; grid-template-columns: 1fr; gap: var(--rh-space-4); }
.rl-compare__label {
  display: block;
  font: var(--rh-text-caption);
  font-weight: var(--rh-weight-medium);
  margin-bottom: var(--rh-space-1);
}

.rl-video { position: relative; aspect-ratio: 16 / 9; }
.rl-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: var(--rh-radius-md);
}
.rl-download {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--rh-space-3);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-md);
  padding: var(--rh-space-3) var(--rh-space-4);
  transition: background var(--rh-dur) var(--rh-ease), border-color var(--rh-dur) var(--rh-ease);
}
.rl-download:hover { background: var(--rh-surface-subtle); border-color: var(--rh-border-strong); }
.rl-download a { color: var(--rh-text-accent); font-weight: var(--rh-weight-bold); text-decoration: none; }
.rl-download a:hover { color: var(--rh-accent-hover); text-decoration: underline; }
.rl-download > a[download] { flex: 1 1 8rem; min-width: 0; }
.rl-download .rl-download__open { margin-inline-start: auto; font-weight: var(--rh-weight-medium); }

.rl-rhino {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rh-space-3) var(--rh-space-4);
  padding: var(--rh-space-3) var(--rh-space-4);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-md);
}

.rl-rhino__text { flex: 1 1 16rem; min-width: 0; margin: 0; }

.rl-rhino .rl-rhino__open { margin-inline-start: auto; }

.rl-rhino .rl-rhino__open { font-weight: var(--rh-weight-medium); }

.rl-goals {
  display: grid;
  gap: var(--rh-space-3);
  padding: var(--rh-space-4) var(--rh-space-5);
  border: var(--rh-border-width) solid transparent;
  border-radius: var(--rh-radius-none);
  background: var(--rh-surface-subtle);
  color: var(--rh-text);
  overflow-wrap: anywhere;
}
.rl-goals--red {
  border-color: color-mix(in srgb, var(--rh-accent) 40%, var(--rh-surface));
  background: color-mix(in srgb, var(--rh-accent) 30%, var(--rh-surface));
  color: var(--rh-accent-active);
}
[data-theme="dark"] .rl-goals--red { color: var(--rh-text); }
.rl-goals__label {
  margin: 0;
  font: var(--rh-text-h4);
  letter-spacing: var(--rh-tracking-normal);
  color: inherit;
}
.rl-goals:not(.rl-goals--red) .rl-goals__label { color: var(--rh-text-strong); }
.rl-goals.rl-heading--xxl .rl-goals__label { font-size: var(--rh-text-2xl); }
.rl-goals.rl-heading--xl .rl-goals__label { font-size: var(--rh-text-xl); }
.rl-goals.rl-heading--medium .rl-goals__label { font-size: var(--rh-text-md); }
.rl-goals.rl-heading--small .rl-goals__label { font-size: var(--rh-text-base); }
.rl-goals__items {
  display: grid;
  gap: var(--rh-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rl-goals__items--numbered,
.rl-goals__items--bulleted {
  display: block;
  padding-inline-start: var(--rh-space-6);
}
.rl-goals__items--numbered { list-style: decimal; }
.rl-goals__items--bulleted { list-style: disc; }
.rl-goals__items--numbered li + li,
.rl-goals__items--bulleted li + li { margin-block-start: var(--rh-space-2); }
.rl-goals__items li,
.rl-goals__items--plain p {
  min-width: 0;
  color: inherit;
}
.rl-goals__items--plain p { margin: 0; }
.rl-goals__items:not(.rl-goals__items--numbered):not(.rl-goals__items--bulleted) li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--rh-space-3);
  align-items: start;
}
.rl-goals__box {
  inline-size: 1.125rem;
  block-size: 1.125rem;
  margin: 0.2em 0 0;
  accent-color: var(--rh-accent);
  cursor: pointer;
}
.rl-goals__items li label { cursor: pointer; }
.rl-goals__box:disabled,
.rl-goals__box:disabled + label { cursor: not-allowed; }
.rl-goals__box:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: 2px; }
.rl-goals__form { margin: 0; display: grid; gap: var(--rh-space-3); }
.rl-goals__save { margin: 0; }
.rl-recorded .rl-goals__save { display: none; }
.rl-aiprompt {
  display: grid;
  gap: var(--rh-space-3);
  padding: var(--rh-space-4) var(--rh-space-5);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-xl);
  background: var(--rh-surface-subtle);
}
.rl-aiprompt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-space-2) var(--rh-space-3);
}
.rl-aiprompt__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-2);
  margin: 0;
  font-family: var(--rh-font-mono);
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-medium);
  letter-spacing: var(--rh-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rl-text-meta);
}
.rl-aiprompt__eyebrow svg { width: 16px; height: 16px; flex: none; color: var(--rh-text-accent); }
.rl-aiprompt__title {
  margin: 0;
  font: var(--rh-text-h4);
  letter-spacing: var(--rh-tracking-normal);
  color: var(--rh-text-strong);
}
.rl-aiprompt__text { min-width: 0; }
.rl-aiprompt__text > :first-child { margin-top: 0; }
.rl-aiprompt__text > :last-child { margin-bottom: 0; }
.rl-aiprompt__text code { overflow-wrap: anywhere; background: var(--rh-surface); }
.rl-aiprompt__where {
  margin: 0;
  padding-top: var(--rh-space-3);
  border-top: var(--rh-border-width) solid var(--rh-border);
  font: var(--rh-text-caption);
  color: var(--rl-text-meta);
}
.rl-aiprompt__asks { margin: 0; font: var(--rh-text-caption); color: var(--rl-text-meta); }
.rl-aiprompt__asks-label { font-weight: var(--rh-weight-bold); color: var(--rh-text-strong); }
.rl-aiprompt__copy[hidden] { display: none; }
.rl-aiprompt__copy [data-aiprompt-icon],
.rl-aiprompt__copy [data-aiprompt-done] { flex: none; }
.rl-aiprompt__copy [data-aiprompt-done],
.rl-aiprompt__copy[data-copied] [data-aiprompt-icon] { display: none; }
.rl-aiprompt__copy[data-copied] [data-aiprompt-done] { display: inline-block; }
.rl-aiprompt__copy[data-copied],
.rl-aiprompt__copy[data-copied]:hover {
  color: var(--rh-success-600);
  background: var(--rh-success-100);
  border-color: color-mix(in srgb, var(--rh-success-600) 35%, transparent);
}

.rl-list__items { margin: 0 0 var(--rh-space-4); padding-left: var(--rh-space-6); }
.rl-list__items > li { margin-bottom: var(--rh-space-2); }
.rl-list__items > li:last-child { margin-bottom: 0; }
.rl-list__items > li > .rl-block,
.rl-list__items > li > .rl-list__text { margin-block: var(--rh-space-2); max-width: none; }
.rl-list__items > li > .rl-figure img { max-width: 100%; }
.rl-list__text > :last-child { margin-bottom: 0; }

.rl-table { overflow-x: auto; }
.rl-table__title { margin: 0 0 var(--rh-space-2); font: var(--rh-text-h4); color: var(--rh-text-strong); }
.rl-table:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: 2px; }
.rl-table table { border-collapse: collapse; width: 100%; font: var(--rh-text-caption); }
.rl-table--widths table { table-layout: fixed; min-inline-size: 36rem; }
.rl-table--widths th, .rl-table--widths td { overflow-wrap: anywhere; }
.rl-table--widths .rl-table__cell { min-inline-size: 0; }
.rl-table th, .rl-table td {
  border-bottom: var(--rh-border-width) solid var(--rh-border);
  padding: var(--rh-space-2) var(--rh-space-3);
  text-align: left;
}
.rl-table th { font-weight: var(--rh-weight-bold); color: var(--rh-text); }
.rl-table th.rl-co-bg, .rl-table td.rl-co-bg { background: var(--rl-co-bg); color: var(--rh-text); }
.rl-table__cell { min-inline-size: 8rem; }
.rl-table__cell > :first-child { margin-top: 0; }
.rl-table__cell > :last-child { margin-bottom: 0; }
.rl-table__cell p { margin-block: 0 var(--rh-space-2); }
.rl-table__cell.rl-richtext > .rl-block { margin-block: var(--rh-space-2); }
.rl-table__cell .rl-figure { margin: 0; }
.rl-table__cell .rl-figure img { display: block; max-inline-size: min(100%, 16rem); height: auto; }
.rl-table__cell .rl-figure--sized img { max-inline-size: 100%; }

.rl-quiz {
  border: var(--rh-border-width) solid var(--rh-border);
  border-left: 3px solid var(--rh-accent);
  border-radius: 0 var(--rh-radius-card) var(--rh-radius-card) 0;
  padding: var(--rh-space-5) var(--rh-space-6);
  background: var(--rh-surface);
}
.rl-quiz__question { font-weight: var(--rh-weight-bold); margin: 0 0 var(--rh-space-3); }
.rl-quiz__options { list-style: none; margin: 0; padding: 0; }
.rl-quiz__options li { margin-bottom: var(--rh-space-2); }

.rl-quiz__option {
  display: flex; align-items: center; gap: var(--rh-space-2);
  width: 100%; text-align: left;
  font: var(--rh-text-body);
  background: var(--rh-surface);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-md);
  padding: var(--rh-space-3);
  cursor: pointer;
  transition: background var(--rh-dur) var(--rh-ease), border-color var(--rh-dur) var(--rh-ease);
}
.rl-quiz__option:hover { background: var(--rh-surface-subtle); }
.rl-quiz__option:active { transform: translateY(0.5px); }

.rl-quiz__option[aria-disabled="true"] { pointer-events: none; }

.rl-quiz__mark {
  flex: none;
  width: 1.25em;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.rl-quiz__mark::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--rl-mark) center / contain no-repeat;
  mask: var(--rl-mark) center / contain no-repeat;
}

.rl-quiz__option:not([data-state]):not([aria-pressed="true"]) .rl-quiz__mark::before { display: none; }

.rl-quiz__option[data-state="right"] { border-color: var(--rh-success-600); background: var(--rh-success-100); }
.rl-quiz__option[data-state="right"] .rl-quiz__mark {
  color: var(--rh-success-600);
  --rl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.rl-quiz__option[data-state="wrong"] { border-color: var(--rh-danger-600); background: var(--rh-danger-100); }
.rl-quiz__option[data-state="wrong"] .rl-quiz__mark {
  color: var(--rh-danger-600);
  --rl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.rl-quiz__hint { margin: 0 0 var(--rh-space-3); font: var(--rh-text-caption); color: var(--rl-text-meta); }

.rl-quiz__option[aria-pressed="true"] {
  border-color: var(--rh-accent);
  background: var(--rh-accent-tint);
}

.rl-quiz__option[aria-pressed="true"]:not([data-state]) .rl-quiz__mark {
  color: var(--rh-accent);
  --rl-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6' fill='%23000'/%3E%3C/svg%3E");
}

.rl-quiz__act { margin: var(--rh-space-3) 0 0; }

.rl-quiz__act [hidden] { display: none; }

.rl-quiz__feedback {
  margin: var(--rh-space-3) 0 0;
  padding-top: var(--rh-space-3);
  border-top: var(--rh-border-width) solid var(--rh-border);
  font: var(--rh-text-caption);
  color: var(--rh-text);
}

.rl-reveal { perspective: 1400px; }

.rl-reveal__card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--rh-dur-slow) var(--rh-ease-out), height var(--rh-dur-slow) var(--rh-ease-out);
}

.rl-reveal.is-turned .rl-reveal__card { transform: rotateY(180deg); }

.rl-reveal__face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rh-space-3);
  min-width: 0;
  padding: var(--rh-space-5) var(--rh-space-6);
  border: var(--rh-border-width) solid var(--rh-border);
  border-left: 3px solid var(--rh-accent);
  border-radius: 0 var(--rh-radius-card) var(--rh-radius-card) 0;
  background: var(--rh-surface);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: background var(--rh-dur) var(--rh-ease), visibility 0s linear 0s;
}

.rl-reveal__back {
  position: absolute;
  inset: 0 0 auto 0;
  max-height: 100%;
  overflow: hidden;
  transform: rotateY(180deg);
  border-left-color: var(--rh-success-600);
  visibility: hidden;
  transition: background var(--rh-dur) var(--rh-ease), visibility 0s linear var(--rh-dur-slow);
}

.rl-reveal.is-turned .rl-reveal__front {
  position: absolute;
  inset: 0 0 auto 0;
  max-height: 100%;
  overflow: hidden;
  visibility: hidden;
  transition: background var(--rh-dur) var(--rh-ease), visibility 0s linear var(--rh-dur-slow);
}

.rl-reveal.is-turned .rl-reveal__back {
  position: relative;
  inset: auto;
  max-height: none;
  overflow: visible;
  visibility: visible;
  transition: background var(--rh-dur) var(--rh-ease), visibility 0s linear 0s;
}

.rl-reveal:not(.rl-reveal--try) .rl-reveal__front,
.rl-reveal__back { cursor: pointer; }

.rl-reveal:not(.rl-reveal--try) .rl-reveal__front:hover,
.rl-reveal__back:hover { background: var(--rh-surface-subtle); }

.rl-reveal__label {
  margin: 0;
  font-family: var(--rh-font-mono);
  font-size: var(--rh-text-xs);
  font-weight: var(--rh-weight-medium);
  letter-spacing: var(--rh-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rl-text-meta);
}

.rl-reveal__q { margin: 0; font-weight: var(--rh-weight-bold); color: var(--rh-text-strong); }

.rl-reveal__a { margin: 0; font-weight: var(--rh-weight-medium); color: var(--rh-text-strong); }

.rl-reveal__why {
  align-self: stretch;
  margin: 0;
  padding-top: var(--rh-space-3);
  border-top: var(--rh-border-width) solid var(--rh-border);
  font: var(--rh-text-caption);
  color: var(--rh-text);
}

.rl-reveal__lbl { margin-top: var(--rh-space-1); }

.rl-reveal__try {
  align-self: stretch;
  box-sizing: border-box;
  width: 100%;
  min-height: 5rem;
  padding: var(--rh-space-2) var(--rh-space-3);
  font: var(--rh-text-body);
  color: var(--rh-text);
  background: var(--rh-surface);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-md);
  resize: vertical;
}

.rl-reveal__act { margin: 0; }

.rl-reveal__turn {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-2);
  margin-top: auto;
  padding: var(--rh-space-1) 0;
  border: 0;
  background: none;
  font-family: var(--rh-font-body);
  font-size: var(--rh-text-sm);
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-accent);
  cursor: pointer;
}

.rl-reveal__turn svg { flex: none; width: 1rem; height: 1rem; }

.rl-reveal__mine {
  display: none;
  align-self: stretch;
  flex-direction: column;
  gap: var(--rh-space-1);
  padding: var(--rh-space-3);
  border-radius: var(--rh-radius-md);
  background: var(--rh-surface-subtle);
}

.rl-reveal.has-mine .rl-reveal__mine { display: flex; }

.rl-reveal__mine-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--rh-text); }

@media print, (scripting: none) {
  .rl-reveal__card { display: flex; flex-direction: column; gap: var(--rh-space-3); height: auto !important; transform: none !important; transition: none !important; }

  .rl-reveal__face { visibility: visible !important; transform: none !important; transition: none !important; cursor: auto; position: relative !important; inset: auto !important; max-height: none !important; overflow: visible !important; }

  .rl-reveal__turn, .rl-reveal__act, .rl-reveal__lbl, .rl-reveal .rl-reveal__try { display: none; }
}

.rl-expand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rh-space-3);
  min-width: 0;
  padding: var(--rh-space-5) var(--rh-space-6);
  border: var(--rh-border-width) solid var(--rh-border);
  border-left: 3px solid var(--rh-accent);
  border-radius: 0 var(--rh-radius-card) var(--rh-radius-card) 0;
  background: var(--rh-surface);
  transition: border-color var(--rh-dur) var(--rh-ease);
}

.rl-expand:has(> .rl-expand__more[open]:not(.is-closing)) { border-left-color: var(--rh-success-600); }

.rl-expand__lbl { margin-top: var(--rh-space-1); }

.rl-expand--section .rl-expand__show { display: flex; }

.rl-expand__more { align-self: stretch; }

.rl-expand__show {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-2);
  padding: var(--rh-space-1) 0;
  font-family: var(--rh-font-body);
  font-size: var(--rh-text-sm);
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-accent);
  cursor: pointer;
  list-style: none;
}

.rl-expand__show::-webkit-details-marker { display: none; }

.rl-expand__show:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: 2px; border-radius: var(--rh-radius-sm); }

.rl-expand__chevron {
  flex: none;
  width: 1rem;
  height: 1rem;
  transition: transform var(--rh-dur) var(--rh-ease);
}

.rl-expand__more[open]:not(.is-closing) .rl-expand__chevron { transform: rotate(180deg); }

.rl-expand__shut, .rl-expand__more[open]:not(.is-closing) .rl-expand__open { display: none; }

.rl-expand__more[open]:not(.is-closing) .rl-expand__shut { display: inline; }

.rl-expand__answer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rh-space-3);
  margin-top: var(--rh-space-3);
  padding-top: var(--rh-space-3);
  border-top: var(--rh-border-width) solid var(--rh-border);
}

@media print {
  .rl-expand__show, .rl-expand__lbl, .rl-expand .rl-reveal__try { display: none; }

  .rl-expand__answer { margin-top: 0; }

  .rl-expand--section .rl-expand__show { display: flex; }

  .rl-expand--section .rl-expand__chevron { display: none; }
}

.rl-quiz__form, .rl-checklist__form { margin: 0; }

form:not(.rl-recorded) .rl-quiz__options li:has(.rl-quiz__pick) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--rh-space-2); align-items: center; }

.rl-quiz__pick { display: block; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--rh-accent); }

form:not(.rl-recorded) .rl-quiz__options li:has(.rl-quiz__pick) .rl-quiz__optparts { grid-column: 2; }

.rl-checklist__save { margin: var(--rh-space-3) 0 0; }

.rl-recorded .rl-quiz__pick, .rl-recorded .rl-checklist__save { display: none; }

.rl-record__failed { margin: var(--rh-space-3) 0 0; font: var(--rh-text-caption); color: var(--rh-danger-600); }

.rl-record__failed[hidden] { display: none; }

@media print {
  .rl-checklist__save, .rl-goals__save, .rl-quiz__pick { display: none; }
}

@media (min-width: 40rem) {
  .rl-compare__pair { grid-template-columns: 1fr 1fr; }
}

@media print {
  .rl-chapter {
    max-width: none;
    padding: 0;
    color: var(--rh-text);
  }

  .rl-gotcha {
    background: transparent;
    color: var(--rh-text);
    border: var(--rh-border-width) solid var(--rh-text);
  }

  .rl-gotcha code { color: var(--rh-text); border-color: var(--rh-text); }
  .rl-gotcha a { color: var(--rh-text); }

  .rl-figure, .rl-block, .rl-steps li { break-inside: avoid; }

  .rl-aiprompt__copy { display: none !important; }

  .rl-steps li::after { background: var(--rh-text); }

  .rl-quiz__option,
  .rl-quiz__option[data-state="right"],
  .rl-quiz__option[data-state="wrong"] {
    background: transparent;
    border-color: var(--rh-text);
  }

  .rl-quiz__mark { display: none; }
  .rl-quiz__feedback[hidden] { display: block; }

  .rl-videofig { display: none; }

  a { color: var(--rh-text); }
}

.rl-cmd {
  position: relative;
  display: inline-block;
  font-weight: var(--rh-weight-bold);
  line-height: 1.2;
}

figcaption .rl-cmd, .rl-quiz__option .rl-cmd { font-weight: var(--rh-weight-medium); }

.rl-cmd > a {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--rh-text-strong);
  text-decoration: none;
  border-bottom: var(--rh-border-width) dotted currentColor;
}

.rl-cmd > a:hover { color: var(--rh-text-accent); }

[data-theme="dark"] .rl-cmd > a img {
  background: var(--rh-white);
  border-radius: var(--rh-radius-sm);
  padding: 1px;
}

.rl-cmd > a img {
  flex: none;
  align-self: center;
  width: min(1.25em, 24px);
  height: min(1.25em, 24px);
}

.rl-cmd__tip {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 50%;
  transform: translateX(calc(-50% + var(--rl-tip-shift, 0px)));
  display: block;
  padding-top: var(--rh-space-3);
  visibility: hidden;
  opacity: 0;
  font-weight: var(--rh-weight-regular);
  white-space: normal;
}

.rl-cmd__tip::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: var(--rh-space-2);
  left: clamp(var(--rh-space-3), calc(50% - var(--rh-space-3) / 2 - var(--rl-tip-shift, 0px)), calc(100% - var(--rh-space-3) * 2));
  width: var(--rh-space-3);
  height: var(--rh-space-3);
  background: var(--rh-white);
  border-left: var(--rh-border-width) solid var(--rh-border-strong);
  border-top: var(--rh-border-width) solid var(--rh-border-strong);
  transform: rotate(45deg);
}

.rl-cmd__tip iframe {
  position: relative;
  display: block;
  width: min(20rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  height: 10rem;
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-lg);
  background: var(--rh-white);
  box-shadow: var(--rh-shadow-lg);
}

.rl-cmd:focus-within .rl-cmd__tip {
  visibility: visible;
  opacity: 1;
}

@media (hover: hover) {
  .rl-cmd:hover .rl-cmd__tip {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--rh-dur) var(--rh-ease) 333ms, visibility 0s linear 333ms;
  }
}

.rl-keys {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font: inherit;
  white-space: nowrap;
  color: var(--rh-text-muted);
}

.rl-keys > kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  padding: 1px var(--rh-space-2);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-bottom-width: 2px;
  border-radius: var(--rh-radius-md);
  background: var(--rh-surface-subtle);
  color: var(--rh-text-strong);
  font: var(--rh-weight-medium) 0.8125rem/1.3 var(--rh-font-mono);
}

.rl-keys__plus { color: var(--rh-text-muted); }

.rl-mouse {
  white-space: nowrap;
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-strong);
}

.rl-mouse__icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin: -0.3em -0.2em 0 -0.11em;
  vertical-align: -0.27em;
  overflow: visible;
}

.rl-mouse:has(.rl-mouse__halo) .rl-mouse__icon { margin-right: 0; }

.rl-mouse__body { fill: var(--rh-gray-200); }
.rl-mouse__line { stroke: var(--rh-gray-700); }
.rl-mouse__wheel { fill: var(--rh-gray-500); stroke: var(--rh-gray-700); }
.rl-mouse__press, .rl-mouse__wheel--on { fill: var(--rh-accent); }
.rl-mouse__arcs { stroke: var(--rh-accent); }
.rl-mouse__halo { stroke: var(--rl-mouse-halo, var(--rh-surface)); }
.rl-mouse__halo--fill { fill: var(--rl-mouse-halo, var(--rh-surface)); }
.rl-mouse__ink { stroke: var(--rh-text-strong); }
.rl-mouse__ink--fill { fill: var(--rh-text-strong); }

[data-theme="dark"] .rl-mouse__body { fill: var(--rh-gray-400); }
[data-theme="dark"] .rl-mouse__line { stroke: var(--rh-gray-950); }
[data-theme="dark"] .rl-mouse__wheel { fill: var(--rh-gray-600); stroke: var(--rh-gray-950); }

.rl-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border-radius: var(--rh-radius-full);
  background: var(--rh-accent);
  color: var(--rh-white);
  font: var(--rh-weight-bold) var(--rh-text-xs)/1 var(--rh-font-body);
  vertical-align: 1px;
}

.rl-num--dark { background: var(--rh-text-strong); color: var(--rh-surface); }
.rl-num--blue { background: var(--rh-info-600); color: var(--rh-white); }

.rl-ui {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  padding: 0 var(--rh-space-2);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-sm);
  background: var(--rh-surface);
  color: var(--rh-text-strong);
  font-weight: var(--rh-weight-medium);
  line-height: 1.5;
  white-space: nowrap;
}

.rl-ui svg { width: 0.75em; height: 0.75em; color: var(--rh-text-muted); }

.rl-ui--pic { border-style: dashed; cursor: help; }

.rl-piccard {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 50%;
  transform: translateX(calc(-50% + var(--rl-tip-shift, 0px)));
  display: flex;
  flex-direction: column;
  gap: var(--rh-space-2);
  width: min(21rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  margin-top: var(--rh-space-2);
  padding: var(--rh-space-3);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-xl);
  background: var(--rh-surface);
  box-shadow: var(--rh-shadow-lg);
  font-weight: var(--rh-weight-medium);
  white-space: normal;
  visibility: hidden;
  opacity: 0;
}

.rl-piccard::before {
  content: "";
  position: absolute;
  top: calc(var(--rh-space-2) * -1);
  left: 0;
  right: 0;
  height: var(--rh-space-2);
}

.rl-richtext p > img,
.rl-steps p > img,
.rl-checklist p > img,
.rh-callout__body p > img,
.rl-callout__body p > img,
.rl-gotcha p > img { display: block; max-width: 100%; height: auto; border-radius: var(--rh-radius-md); }

.rl-richtext > :first-child { margin-block-start: 0; }

.rl-richtext > :last-child { margin-block-end: 0; }

.rl-piccard img { display: block; width: 100%; height: auto; border-radius: var(--rh-radius-md); }

.rl-ui--pic:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: 2px; }

.rl-ui--pic:focus .rl-piccard,
.rl-ui--pic:focus-within .rl-piccard {
  visibility: visible;
  opacity: 1;
}

@media (hover: hover) {
  .rl-ui--pic:hover .rl-piccard {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--rh-dur) var(--rh-ease) 333ms, visibility 0s linear 333ms;
  }
}

.rl-callout {
  border: var(--rh-border-width) solid var(--rh-border);
  border-left: 3px solid var(--rh-info-600);
  border-radius: var(--rh-radius-md);
  background: var(--rh-surface-subtle);
  color: var(--rh-text);
}

.rl-callout--watch { border-left-color: var(--rh-warning-600); }

.rl-callout { --rl-mouse-halo: var(--rh-surface-subtle); }

.rl-callout__summary {
  display: flex;
  align-items: center;
  gap: var(--rh-space-2);
  padding: var(--rh-space-3) var(--rh-space-4);
  cursor: pointer;
  list-style: none;
}

.rl-callout__summary::-webkit-details-marker { display: none; }

.rl-callout__summary:focus-visible { outline: 2px solid var(--rh-accent); outline-offset: -2px; }

.rl-callout__icon { flex: none; display: inline-flex; color: var(--rh-info-600); }
.rl-callout--watch .rl-callout__icon { color: var(--rh-warning-600); }
.rl-callout__icon svg { width: 18px; height: 18px; }

.rl-callout__title {
  margin: 0;
  min-width: 0;
  font: var(--rh-weight-bold) var(--rh-text-sm)/1.3 var(--rh-font-body);
  letter-spacing: var(--rh-tracking-normal);
  color: var(--rh-text-strong);
  overflow-wrap: anywhere;
}

.rl-callout__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--rh-text-muted);
  transition: transform var(--rh-dur) var(--rh-ease);
}

.rl-callout:not([open]) .rl-callout__chevron,
.rl-callout.is-closing .rl-callout__chevron { transform: rotate(-90deg); }

.rl-callout__body {
  padding: 0 var(--rh-space-4) var(--rh-space-4) calc(var(--rh-space-4) + 18px + var(--rh-space-2));
  font: var(--rh-text-caption);
  color: var(--rh-text);
}

.rl-callout__body > :first-child { margin-top: 0; }
.rl-callout__body > :last-child { margin-bottom: 0; }

.rl-co-colour--blue { --rl-co-colour: var(--rh-info-600); }
.rl-co-colour--amber { --rl-co-colour: var(--rh-warning-600); }
.rl-co-colour--green { --rl-co-colour: var(--rh-success-600); }
.rl-co-colour--red { --rl-co-colour: var(--rh-danger-600); }
.rl-co-colour--grey { --rl-co-colour: var(--rh-gray-600); }

.rl-co-bg--grey { --rl-co-bg: var(--rh-surface-sunken); }
.rl-co-bg--red { --rl-co-bg: var(--rh-accent-tint); }
.rl-co-bg--blue { --rl-co-bg: var(--rh-info-100); }
.rl-co-bg--green { --rl-co-bg: var(--rh-success-100); }
.rl-co-bg--amber { --rl-co-bg: var(--rh-warning-100); }

[data-theme="dark"] .rl-co-bg--blue { --rl-co-bg: color-mix(in srgb, var(--rh-info-600) 26%, var(--rh-surface)); }
[data-theme="dark"] .rl-co-bg--green { --rl-co-bg: color-mix(in srgb, var(--rh-success-600) 26%, var(--rh-surface)); }
[data-theme="dark"] .rl-co-bg--amber { --rl-co-bg: color-mix(in srgb, var(--rh-warning-600) 26%, var(--rh-surface)); }

.rl-callout.rl-co-colour { border-left-color: var(--rl-co-colour); }
.rl-callout.rl-co-colour .rl-callout__icon { color: var(--rl-co-colour); }
.rl-block.rh-callout.rl-co-colour { border-left-color: var(--rl-co-colour); }
.rl-block.rh-callout.rl-co-colour .rh-callout__icon { color: var(--rl-co-colour); }

.rl-callout.rl-co-bg,
.rl-block.rh-callout.rl-co-bg {
  background: var(--rl-co-bg);
  --rl-mouse-halo: var(--rl-co-bg);
}

.rl-co-ink--dark {
  --rh-text: var(--rh-ink-body);
  --rh-text-strong: var(--rh-ink);
  --rh-text-muted: var(--rh-gray-700);
  --rl-text-meta: var(--rh-gray-700);
}

.rl-co-ink--light {
  --rh-text: var(--rh-white);
  --rh-text-strong: var(--rh-white);
  --rh-text-muted: var(--rh-gray-200);
  --rl-text-meta: var(--rh-gray-200);
}

.rl-gotcha--icon {
  display: flex;
  align-items: flex-start;
  gap: var(--rh-space-3);
}

.rl-gotcha__icon { flex: none; display: inline-flex; margin-top: 2px; }
.rl-gotcha__icon svg { width: 18px; height: 18px; }
.rl-gotcha__body { min-width: 0; }
.rl-gotcha__body > :first-child { margin-top: 0; }
.rl-gotcha__body > :last-child { margin-bottom: 0; }

.rl-relink { display: flex; margin-block: 0 var(--rh-space-6); }
.rl-relink--right { justify-content: flex-end; }

.rl-relink a {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  padding: var(--rh-space-1) 0;
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-accent);
  text-decoration: none;
  border-bottom: var(--rh-border-width) solid transparent;
}

.rl-relink a:hover { border-bottom-color: currentColor; }
.rl-relink svg { flex: none; width: 16px; height: 16px; }

.rl-linkrow { display: flex; }
.rl-linkrow--right { justify-content: flex-end; }

.rl-linkcard {
  display: flex;
  align-items: center;
  gap: var(--rh-space-4);
  width: 100%;
  max-width: 30rem;
  padding: var(--rh-space-3);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-xl);
  background: var(--rh-surface);
  color: var(--rh-text);
  text-decoration: none;
  transition: background var(--rh-dur) var(--rh-ease), border-color var(--rh-dur) var(--rh-ease);
}

.rl-linkcard:hover { background: var(--rh-surface-subtle); border-color: var(--rh-border-strong); }

.rl-linkcard__pic {
  position: relative;
  flex: 0 0 10rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--rh-radius-md);
  background: var(--rh-surface-sunken);
}

.rl-linkcard__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rl-linkcard__play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--rh-white); }

.rl-linkcard__play > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rh-radius-full);
  background: var(--rh-surface-overlay);
}

.rl-linkcard__play svg { width: 18px; height: 18px; margin-left: 2px; }

.rl-linkcard__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.rl-linkcard__title {
  font-weight: var(--rh-weight-bold);
  line-height: 1.35;
  color: var(--rh-text-strong);
}

.rl-linkcard__meta { font: var(--rh-text-caption); color: var(--rh-text-muted); }

.rl-linkcard__go { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--rh-text-muted); }

.rl-loopvideo { position: relative; }

.rl-loopvideo__toggle {
  position: absolute;
  right: var(--rh-space-3);
  bottom: var(--rh-space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  height: 2rem;
  padding: 0 var(--rh-space-3);
  border: 0;
  border-radius: var(--rh-radius-full);
  background: var(--rh-surface-overlay);
  color: var(--rh-white);
  font: var(--rh-weight-medium) var(--rh-text-xs)/1 var(--rh-font-body);
  cursor: pointer;
}

.rl-loopvideo__toggle[hidden] { display: none; }
.rl-loopvideo__toggle svg { width: 14px; height: 14px; }
.rl-loopvideo__toggle:focus-visible { outline: 2px solid var(--rh-white); outline-offset: 2px; }

@media (max-width: 40rem) {
  .rl-linkcard__pic { flex-basis: 6.5rem; }
}

@media print {
  .rl-cmd__tip, .rl-piccard, .rl-loopvideo__toggle { display: none; }
  .rl-callout { break-inside: avoid; }
  .rl-callout__chevron { display: none; }
  .rl-cmd > a img { display: none; }
}

@media (hover: none) {
  .rl-cmd__tip { display: none; }
}

@media (max-width: 40rem) {
  .rl-chapter__body, .rl-guide__article { overflow-x: clip; }
}

.rl-quiz__optpic {
  width: 6rem;
  max-width: 30%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--rh-radius-sm);
  border: 1px solid var(--rh-border);
  flex: none;
}

.rl-quiz__options--cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--rh-space-2);
}

.rl-quiz__options--cards li { margin-bottom: 0; display: flex; flex-direction: column; }

.rl-quiz__options--cards .rl-quiz__option { align-items: flex-start; flex: 1 1 auto; }

.rl-quiz__optbody { display: flex; flex-direction: column; gap: var(--rh-space-2); min-width: 0; }

.rl-quiz__optfig { display: block; max-width: 100%; height: auto; border-radius: var(--rh-radius-sm); }

.rl-quiz__optparts { padding: var(--rh-space-2) var(--rh-space-3) 0 calc(var(--rh-space-3) + 1.25em + var(--rh-space-2)); }

@media (max-width: 39.999rem) {
  .rl-quiz__options--cards { grid-template-columns: minmax(0, 1fr); }
}

.rl-richtext > .rl-block { margin-block: var(--rh-space-3); }

.rl-vote { display: grid; gap: var(--rh-space-2); justify-items: start; }

.rl-vote--chapter { margin-block: var(--rh-space-5); padding-top: var(--rh-space-5); border-top: 1px solid var(--rh-border); width: 100%; }

.rl-vote__form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rh-space-2) var(--rh-space-3); margin: 0; }

.rl-vote__q { font: var(--rh-text-caption); color: var(--rl-text-meta); }

.rl-vote--chapter .rl-vote__q { font: var(--rh-text-body); font-weight: var(--rh-weight-bold); color: var(--rh-text-strong); }

.rl-vote__btns { display: inline-flex; gap: var(--rh-space-2); }

.rl-vote__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  min-height: 32px;
  padding: 0 var(--rh-space-3);
  border: 1px solid var(--rh-border-strong);
  border-radius: var(--rh-radius-md);
  background: var(--rh-surface);
  color: var(--rh-text);
  font: var(--rh-text-caption);
  cursor: pointer;
}

.rl-vote__btn:hover { border-color: var(--rh-accent); color: var(--rh-text-accent); }

.rl-vote__btn:focus-visible { outline: none; box-shadow: var(--rh-shadow-focus); }

.rl-vote__btn.is-on { border-color: var(--rh-accent); color: var(--rh-text-accent); background: var(--rh-accent-tint); }

.rl-vote__icon { width: 16px; height: 16px; }

.rl-vote__btn--down .rl-vote__icon { transform: rotate(180deg); }

.rl-vote__more summary { cursor: pointer; color: var(--rh-text-accent); font: var(--rh-text-caption); }

.rl-vote__comment { display: grid; gap: var(--rh-space-2); justify-items: start; margin-top: var(--rh-space-2); width: min(34rem, 100%); }

.rl-vote__comment textarea { width: 100%; }

.rl-vote__thanks { margin: 0; color: var(--rl-text-meta); font: var(--rh-text-caption); }

.rl-guide__aside { margin-block: var(--rh-space-3) var(--rh-space-5); }

.rl-ink { color: var(--rl-ink); }

.rl-hl {
  background-color: var(--rl-hl);
  border-radius: var(--rh-radius-sm);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

[data-theme="dark"] .rl-ink { color: var(--rl-ink-dark); }

[data-theme="dark"] .rl-hl { background-color: var(--rl-hl-dark); }

[data-theme="dark"] .rl-sheet .rl-ink, [data-theme="dark"] .pagedjs_page .rl-ink { color: var(--rl-ink); }

[data-theme="dark"] .rl-sheet .rl-hl, [data-theme="dark"] .pagedjs_page .rl-hl { background-color: var(--rl-hl); }

@media print {
  html[data-theme] .rl-ink { color: var(--rl-ink); }

  html[data-theme] .rl-hl {
    background-color: var(--rl-hl);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
