body {
  margin: 0;
  background: var(--rh-surface);
  color: var(--rh-text);
  font: var(--rh-text-body);
  -webkit-font-smoothing: antialiased;
}

.rl-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.rl-shell > main { flex: 1 0 auto; }

.rl-header {
  border-bottom: var(--rh-border-width) solid var(--rh-border);
  background: var(--rh-surface);
}

.rl-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-space-4);
  min-height: var(--rh-space-16);
}

.rl-brand {
  display: flex;
  align-items: center;
  gap: var(--rh-space-2);
  color: var(--rh-text-strong);
  text-decoration: none;
  font-family: var(--rh-font-display);
  font-weight: var(--rh-weight-bold);
  letter-spacing: var(--rh-tracking-snug);
}

.rl-brand:hover { color: var(--rh-text-strong); text-decoration: none; }
.rl-brand__mark { display: block; width: 28px; height: 28px; }

.rl-nav { display: flex; gap: var(--rh-space-1); }

.rl-nav__link {
  padding: var(--rh-space-1) var(--rh-space-2);
  border-radius: var(--rh-radius-sm);
  font: var(--rh-text-caption);
  color: var(--rl-text-meta);
  text-decoration: none;
}

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

.rl-lang { position: relative; }

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

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

.rl-lang__mark {
  flex: 0 0 auto;
  width: 0.375rem;
  height: 0.375rem;
  border-right: var(--rh-border-width-strong) solid currentColor;
  border-bottom: var(--rh-border-width-strong) solid currentColor;
  transform: rotate(45deg);
}

.rl-lang[open] .rl-lang__mark { transform: rotate(-135deg); }

.rl-lang__panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + var(--rh-space-1));
  z-index: 5;
  min-width: 10rem;
  padding: var(--rh-space-1);
}

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

.rl-lang__link {
  display: block;
  padding: var(--rh-space-2);
  border-radius: var(--rh-radius-sm);
  color: var(--rh-text);
  text-decoration: none;
}

.rl-lang__current { white-space: nowrap; }

.rl-lang__link--current {
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-strong);
  background: var(--rh-surface-sunken);
  box-shadow: inset var(--rh-border-width-strong) 0 0 0 var(--rh-accent);
}

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

.rl-profile__banner {
  margin-block: var(--rl-flow) var(--rh-space-10);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-2xl);
  overflow: hidden;
  background: var(--rh-surface);
}

.rl-profile__who {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--rh-space-4) var(--rh-space-6);
  align-items: center;
  padding: var(--rh-space-8);
  background-color: var(--rh-surface-subtle);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--rh-text-strong) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--rh-text-strong) 4%, transparent) 1px, transparent 1px);
  background-size: var(--rh-space-16) var(--rh-space-16);
  border-bottom: var(--rh-border-width) solid var(--rh-border);
}

.rl-profile__who .rl-avatar { background: var(--rh-text-strong); color: var(--rh-surface); box-shadow: 0 0 0 4px var(--rh-surface); }

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

.rl-profile__identity h1 { margin: 0; font: var(--rh-weight-black) var(--rh-text-3xl)/var(--rh-leading-tight) var(--rh-font-display); text-wrap: balance; }

.rl-profile__resume-eyebrow,
.rl-profile__kind {
  margin: 0;
  font: var(--rh-weight-medium) var(--rh-text-xs)/1.2 var(--rh-font-body);
  letter-spacing: var(--rh-tracking-eyebrow);
  text-transform: uppercase;
}

.rl-profile__dl { display: flex; flex-wrap: wrap; gap: var(--rh-space-2) var(--rh-space-8); margin: var(--rh-space-1) 0 0; }
.rl-profile__dl div { min-width: 0; }
.rl-profile__dl dt { font: var(--rh-weight-medium) 0.6875rem/1.2 var(--rh-font-body); letter-spacing: var(--rh-tracking-wide); text-transform: uppercase; color: var(--rl-text-meta); }
.rl-profile__dl dd { margin: 2px 0 0; color: var(--rh-text-strong); overflow-wrap: anywhere; }

.rl-profile__mono { font-family: var(--rh-font-mono); }

.rl-profile__account { display: flex; flex-direction: column; align-items: flex-end; align-self: start; gap: var(--rh-space-2); }

.rl-profile__update { display: inline-flex; align-items: center; gap: var(--rh-space-2); white-space: nowrap; }
.rl-profile__update svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rl-profile__note { margin: 0; font: var(--rh-text-caption); font-size: 0.8125rem; color: var(--rl-text-meta); white-space: nowrap; text-align: right; }

.rl-profile__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: var(--rh-space-5) var(--rh-space-8); }
.rl-profile__stats div { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: var(--rh-space-3); }
.rl-profile__stats dd { margin: 0; font: var(--rh-weight-black) var(--rh-text-2xl)/1 var(--rh-font-display); color: var(--rh-text-strong); font-variant-numeric: tabular-nums; }
.rl-profile__stats dt { font: var(--rh-text-caption); color: var(--rl-text-meta); }

.rl-profile__loading { display: grid; gap: var(--rh-space-4); margin-block: 0 var(--rl-flow); }
.rl-profile__skel--band { block-size: 12rem; border-radius: var(--rh-radius-2xl); }

.rl-profile__resume {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 0 var(--rh-space-8);
  align-items: center;
  margin-block: 0 var(--rh-space-10);
  border: var(--rh-border-width) solid color-mix(in srgb, var(--rh-accent) 18%, transparent);
  border-radius: var(--rh-radius-2xl);
  overflow: hidden;
  background: var(--rh-accent-tint);
}

.rl-profile__resume--plain { grid-template-columns: minmax(0, 1fr); }
.rl-profile__resume--plain .rl-profile__resume-body { padding-inline-end: var(--rh-space-8); }

.rl-profile__resume-media { align-self: stretch; min-height: 12.5rem; background: var(--rh-surface-sunken); }
.rl-profile__resume-media img,
.rl-profile__course-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rl-profile__resume-body { min-width: 0; padding: var(--rh-space-8) 0 var(--rh-space-8) var(--rh-space-8); }
.rl-profile__resume-eyebrow { color: var(--rh-text-accent); }
.rl-profile__resume-body h2 { margin: var(--rh-space-2) 0 0; font: var(--rh-text-h2); font-size: var(--rh-text-2xl); }
.rl-profile__resume-body h2 a { color: var(--rh-text-strong); text-decoration: none; }
.rl-profile__resume-body h2 a:hover { color: var(--rh-accent); }

.rl-profile__chapter { margin: var(--rh-space-2) 0 0; font-family: var(--rh-font-mono); font-size: var(--rh-text-sm); color: var(--rl-text-meta); }
.rl-profile__count { margin: var(--rh-space-2) 0 0; font: var(--rh-weight-medium) 0.8125rem/1 var(--rh-font-mono); color: var(--rl-text-meta); }

.rl-profile__resume-go { margin-top: var(--rh-space-5); white-space: nowrap; }

.rl-profile__track { height: 6px; border-radius: var(--rh-radius-full); background: var(--rh-surface-sunken); overflow: hidden; }
.rl-profile__track > span { display: block; height: 100%; border-radius: var(--rh-radius-full); background: var(--rh-accent); }
.rl-profile__track--done > span { background: var(--rh-success-600); }
.rl-profile__resume .rl-profile__track { max-width: 26rem; margin-top: var(--rh-space-4); background: var(--rh-surface); }

.rl-profile__section { margin-block: 0 var(--rh-space-10); }
.rl-profile__section > h2 { margin: 0 0 var(--rh-space-4); }

.rl-profile__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--rh-space-2) var(--rh-space-4);
  margin-block: 0 var(--rh-space-4);
}

.rl-profile__head h2 { margin: 0; }

.rl-profile__browse {
  font: var(--rh-weight-medium) var(--rh-text-sm)/1.2 var(--rh-font-body);
  color: var(--rh-accent);
  text-decoration: none;
}

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

.rl-profile__courses,
.rl-profile__certificates { list-style: none; margin: 0; padding: 0; }

.rl-profile__courses { container-type: inline-size; border-top: var(--rh-border-width) solid var(--rh-border-strong); }

.rl-profile__course {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) 7.5rem 5rem 13rem;
  gap: var(--rh-space-5);
  align-items: center;
  padding-block: var(--rh-space-4);
  border-bottom: var(--rh-border-width) solid var(--rh-border);
}

.rl-profile__course-media { aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--rh-radius-lg); overflow: hidden; background: var(--rh-surface-sunken); }

.rl-profile__course-text { min-width: 0; }
.rl-profile__course-text h3 { margin: 0; font: var(--rh-text-h4); font-size: var(--rh-text-md); }
.rl-profile__course-text h3 a { color: var(--rh-text-strong); text-decoration: none; }
.rl-profile__course-text h3 a:hover { color: var(--rh-accent); }
.rl-profile__course-text p { margin: var(--rh-space-1) 0 0; }

.rl-profile__course--item { grid-template-columns: 8rem minmax(0, 1fr); }

.rl-profile__authors { list-style: none; margin: 0; padding: 0; border-top: var(--rh-border-width) solid var(--rh-border-strong); }

.rl-profile__author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--rh-space-4);
  align-items: center;
  padding-block: var(--rh-space-4);
  border-bottom: var(--rh-border-width) solid var(--rh-border);
}

.rl-profile__author-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--rh-radius-full);
  overflow: hidden;
  background: var(--rh-surface-sunken);
  color: var(--rh-text);
  font-weight: var(--rh-weight-medium);
}

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

.rl-profile__author-text { min-width: 0; }

.rl-profile__author-name { margin: 0; font-weight: var(--rh-weight-bold); overflow-wrap: anywhere; }
.rl-profile__author-name a { color: var(--rh-text-strong); text-decoration: none; }
.rl-profile__author-name a:hover { color: var(--rh-accent); }

.rl-profile__author-headline { margin: var(--rh-space-1) 0 0; font: var(--rh-text-caption); color: var(--rl-text-meta); overflow-wrap: anywhere; }

.rl-profile__fraction { margin: 0; text-align: right; font: var(--rh-weight-medium) var(--rh-text-sm)/1 var(--rh-font-mono); font-variant-numeric: tabular-nums; color: var(--rh-text); }
.rl-profile__fraction small { font-size: 0.8125rem; color: var(--rl-text-meta); }

.rl-profile__course-act { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--rh-space-2); justify-self: end; }

.rl-profile__course--completed { grid-template-columns: 8rem minmax(0, 1fr) 7.5rem 5rem 13rem; }

@container (max-width: 52rem) {
  .rl-profile__course { grid-template-columns: 6rem minmax(0, 1fr) auto; gap: var(--rh-space-2) var(--rh-space-3); align-items: start; }
  .rl-profile__course-media { grid-row: 1 / span 2; }
  .rl-profile__fraction { grid-row: 1; grid-column: 3; padding-top: 3px; }
  .rl-profile__course .rl-profile__track { grid-column: 2 / -1; grid-row: 2; align-self: center; }
  .rl-profile__course-act { grid-column: 2 / -1; justify-self: start; justify-content: flex-start; }
  .rl-profile__course--completed { grid-template-columns: 6rem minmax(0, 1fr) auto; }

  .rl-profile__course--item { grid-template-columns: 6rem minmax(0, 1fr); }
  .rl-profile__course--item .rl-profile__course-media { grid-row: auto; }
}

.rl-profile__done {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: var(--rh-radius-full);
  background: var(--rh-success-100);
  color: var(--rh-success-600);
  font: var(--rh-weight-medium) var(--rh-text-xs)/1 var(--rh-font-body);
  white-space: nowrap;
}

.rl-profile__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rh-space-3);
  padding: var(--rh-space-6);
  border: var(--rh-border-width) dashed var(--rh-border-strong);
  border-radius: var(--rh-radius-xl);
}

.rl-profile__empty p { margin: 0; max-width: 52ch; color: var(--rl-text-meta); }
.rl-profile__empty .rl-profile__empty-title { font: var(--rh-text-h4); font-size: var(--rh-text-md); color: var(--rh-text-strong); }

.rl-profile__certificates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--rh-space-5); }

.rl-profile__cert {
  display: flex;
  flex-direction: column;
  gap: var(--rh-space-3);
  height: 100%;
  padding: var(--rh-space-2) var(--rh-space-2) var(--rh-space-3);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-xl);
  background: var(--rh-surface-subtle);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--rh-dur) var(--rh-ease), transform var(--rh-dur) var(--rh-ease), border-color var(--rh-dur) var(--rh-ease);
}

.rl-profile__cert:hover { color: inherit; border-color: var(--rh-border-strong); box-shadow: var(--rh-shadow-md); transform: translateY(-2px); }

.rl-profile__paper {
  display: flex;
  flex-direction: column;
  gap: var(--rh-space-1);
  min-height: 12rem;
  padding: var(--rh-space-5) var(--rh-space-5) var(--rh-space-4);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-md);
  outline: var(--rh-border-width) solid var(--rh-border);
  outline-offset: -7px;
  background-color: var(--rh-surface);
  background-image: radial-gradient(circle at 100% 0%, var(--rh-accent-tint), transparent 46%);
}

.rl-profile__paper-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--rh-space-2); }

.rl-profile__seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: var(--rh-border-width-strong) solid var(--rh-accent);
  border-radius: var(--rh-radius-full);
  background: var(--rh-surface);
  color: var(--rh-accent);
}

.rl-profile__seal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

.rl-profile__kind { color: var(--rh-text-accent); font-family: var(--rh-font-mono); }
.rl-profile__cert-title { font: var(--rh-weight-black) var(--rh-text-lg)/var(--rh-leading-snug) var(--rh-font-display); color: var(--rh-text-strong); text-wrap: balance; }
.rl-profile__version { font-size: var(--rh-text-sm); color: var(--rl-text-meta); }

.rl-profile__paper-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--rh-space-1) var(--rh-space-3);
  margin-top: auto;
  padding-top: var(--rh-space-3);
  border-top: var(--rh-border-width) solid var(--rh-border);
  font-size: 0.8125rem;
  color: var(--rl-text-meta);
}

.rl-profile__paper-foot .rl-profile__mono { font-size: var(--rh-text-xs); }

.rl-profile__view { padding-inline: var(--rh-space-2); font: var(--rh-weight-medium) var(--rh-text-sm)/1 var(--rh-font-body); color: var(--rh-text-accent); }

@media (max-width: 47.999rem) {
  .rl-profile__who { grid-template-columns: auto minmax(0, 1fr); padding: var(--rh-space-5) var(--rh-space-4); gap: var(--rh-space-4); }
  .rl-profile__who .rl-avatar { width: 56px; height: 56px; font-size: var(--rh-text-md); }
  .rl-profile__identity h1 { font-size: var(--rh-text-2xl); }
  .rl-profile__account { grid-column: 1 / -1; align-items: flex-start; }
  .rl-profile__note { white-space: normal; text-align: left; }
  .rl-profile__stats { padding: var(--rh-space-4); }
  .rl-profile__stats div { flex-direction: column-reverse; align-items: flex-start; gap: 2px; }
  .rl-profile__stats dd { font-size: var(--rh-text-xl); }
  .rl-profile__stats dt { font-size: var(--rh-text-xs); }

  .rl-profile__resume,
  .rl-profile__resume--plain { grid-template-columns: 1fr; gap: 0; padding-inline-start: 0; }
  .rl-profile__resume-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .rl-profile__resume-body,
  .rl-profile__resume--plain .rl-profile__resume-body { padding: var(--rh-space-5) var(--rh-space-4); }
  .rl-profile__resume-body h2 { font-size: var(--rh-text-xl); }
  .rl-profile__resume-go { display: flex; justify-content: center; margin-top: var(--rh-space-4); }

  .rl-profile__author { grid-template-columns: auto minmax(0, 1fr); }
  .rl-profile__author .rl-follow { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-profile__cert { transition: none; }
  .rl-profile__cert:hover { transform: none; }
}

.rl-portfolio { margin-block: 0 var(--rh-space-10); scroll-margin-top: var(--rh-space-8); }

.rl-portfolio__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--rh-space-2) var(--rh-space-4);
  padding-bottom: var(--rh-space-3);
  border-bottom: var(--rh-border-width) solid var(--rh-border);
}

.rl-portfolio__head h2 { margin: 0; }

.rl-portfolio__acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--rh-space-2) var(--rh-space-4); }
.rl-portfolio__acts form { margin: 0; }

.rl-portfolio__view {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  font: var(--rh-weight-medium) var(--rh-text-sm)/1.2 var(--rh-font-body);
  color: var(--rh-accent);
  text-decoration: none;
}

.rl-portfolio__view svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.rl-portfolio__linked {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: var(--rh-space-3);
  align-items: center;
  margin-top: 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-lg);
  background: var(--rh-surface-subtle);
}

.rl-portfolio__replace { display: grid; gap: var(--rh-space-3); margin-top: var(--rh-space-3); }
.rl-portfolio__replace .rl-portfolio__hint { margin: 0; }

.rl-portfolio__quiet a { margin-inline-start: var(--rh-space-2); font-weight: var(--rh-weight-medium); color: var(--rh-text-strong); }

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

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

.rl-portfolio__empty { margin-top: var(--rh-space-4); }

.rl-portfolio__loading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rh-space-4); margin-top: var(--rh-space-4); }
.rl-portfolio__loading .rl-skel__card { block-size: 12rem; }

.rl-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--rh-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-portfolio__card a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-lg);
  background: var(--rh-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--rh-dur) var(--rh-ease), box-shadow var(--rh-dur) var(--rh-ease);
}

.rl-portfolio__card a:hover { border-color: var(--rh-border-strong); box-shadow: var(--rh-shadow-sm); }

.rl-portfolio__image { display: block; aspect-ratio: 4 / 3; background: var(--rh-surface-sunken); }
.rl-portfolio__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rl-portfolio__meta { display: grid; gap: var(--rh-space-1); min-width: 0; padding: var(--rh-space-3); }

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

.rl-portfolio__sub { display: flex; justify-content: space-between; gap: var(--rh-space-2); font: var(--rh-text-caption); font-size: var(--rh-text-xs); color: var(--rl-text-meta); }

.rl-portfolio__post a {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--rh-space-2);
  height: 100%;
  min-height: 12rem;
  padding: var(--rh-space-4);
  border: var(--rh-border-width-strong) dashed var(--rh-border-strong);
  border-radius: var(--rh-radius-lg);
  color: var(--rl-text-meta);
  font: var(--rh-text-caption);
  text-align: center;
  text-decoration: none;
}

.rl-portfolio__post a:hover { color: var(--rh-text-strong); border-color: var(--rh-text-subtle); }
.rl-portfolio__post svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.rl-portfolio__link {
  display: grid;
  gap: var(--rh-space-3);
  max-width: 36rem;
  margin-top: var(--rh-space-4);
  padding: 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-portfolio__link .rl-portfolio__hint { margin: 0; }

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

.rl-portfolio__search { display: flex; flex-wrap: wrap; gap: var(--rh-space-2); }
.rl-portfolio__search .rh-input { flex: 1 1 14rem; min-width: 0; }

.rl-portfolio__none { display: grid; gap: var(--rh-space-1); }

.rl-portfolio__results {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-lg);
  list-style: none;
}

.rl-portfolio__result {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: var(--rh-space-3);
  align-items: center;
  padding: var(--rh-space-3);
  background: var(--rh-surface);
}

.rl-portfolio__result + .rl-portfolio__result { border-top: var(--rh-border-width) solid var(--rh-border); }

.rl-portfolio__result--current { background: var(--rh-surface-subtle); }

.rl-portfolio__face {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: var(--rh-radius-full);
  background: var(--rh-text-strong);
  color: var(--rh-surface);
  font: var(--rh-weight-bold) var(--rh-text-xs)/1 var(--rh-font-body);
}

.rl-portfolio__face--lg { width: 48px; height: 48px; font-size: var(--rh-text-sm); }

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

.rl-portfolio__who { display: grid; min-width: 0; }
.rl-portfolio__name { overflow: hidden; font-weight: var(--rh-weight-medium); color: var(--rh-text-strong); text-overflow: ellipsis; white-space: nowrap; }
.rl-portfolio__mono { overflow: hidden; font: var(--rh-text-caption); font-family: var(--rh-font-mono); color: var(--rl-text-meta); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 47.999rem) {
  .rl-portfolio__linked { grid-template-columns: 48px minmax(0, 1fr); }
  .rl-portfolio__linked .rl-portfolio__acts { grid-column: 1 / -1; justify-content: flex-start; }
  .rl-portfolio__grid,
  .rl-portfolio__loading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rh-space-3); }
  .rl-portfolio__post a { min-height: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-portfolio__card a { transition: none; }
}

.rl-footer {
  border-top: var(--rh-border-width) solid var(--rh-border);
  margin-top: var(--rl-flow);
}

.rl-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--rh-space-2);
  padding-block: var(--rh-space-6);
  font: var(--rh-text-caption);
}

.rl-footer__legal { color: var(--rl-text-meta); }

.rl-footer__support {
  margin: 0;
  color: var(--rh-text);
  overflow-wrap: anywhere;
}

@media (max-width: 47.999rem) {
  .rl-footer__support {
    order: -1;
    flex-basis: 100%;
  }
}

.rl-support {
  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);
  overflow-wrap: anywhere;
}

.rl-support--certificate { margin-top: var(--rh-space-6); }

.rl-skip {
  position: absolute;
  top: var(--rh-space-2);
  left: var(--rh-space-2);
  z-index: 10;
  background: var(--rh-surface);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-md);
  padding: var(--rh-space-2) var(--rh-space-4);
  color: var(--rh-text);
}

.rl-skip:focus {
  position: absolute;
  top: var(--rh-space-2);
  left: var(--rh-space-2);
  width: auto;
  height: auto;
  margin: 0;
}

main:focus,
[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

.rl-langbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rh-space-2);
  padding-top: var(--rl-flow);
}

.rl-langbar__label {
  font-family: var(--rh-font-mono);
  font-size: var(--rh-text-xs);
  letter-spacing: var(--rh-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rl-text-meta);
  margin-right: var(--rh-space-1);
}

.rl-langbar__btn--current {
  --rh-btn-fg: var(--rh-text-inverse);
  background: var(--rh-surface-inverse);
  border-color: var(--rh-surface-inverse);
}

.rl-langbar__count { opacity: 0.75; font-size: var(--rh-text-xs); }

.rl-page {
  padding-block: var(--rl-flow) var(--rh-space-16);
}

.rh-card__body > p { max-width: var(--rl-measure); }

.rh-card__body > .rl-contents { margin-block-start: 0; }

.rl-page__head               { margin-block: 0 var(--rh-space-8); }
.rl-page__head > *           { margin-block: 0 var(--rh-space-4); }

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

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

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

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

.rh-btn.rl-follow__btn--on,
.rh-btn.rl-follow__btn--on:hover {
  --rh-btn-fg: var(--rh-success-600);
  background: var(--rh-success-100);
  border-color: transparent;
}


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

.rl-home__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--rh-space-10);
  align-items: center;
  background-color: var(--rh-surface-subtle);
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--rh-text-strong) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--rh-text-strong) 4%, transparent) 1px, transparent 1px);
  background-size: var(--rh-space-16) var(--rh-space-16);
}

.rl-home__hero:not(:has(.rl-home__cover)) { grid-template-columns: minmax(0, 1fr); }

.rl-home__intro { display: grid; gap: var(--rh-space-3); justify-items: start; min-width: 0; }

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

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

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

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

.rl-home__badges { display: flex; flex-wrap: wrap; gap: var(--rh-space-2); margin: 0; }

.rl-home__title {
  margin: 0;
  font: var(--rh-text-h1);
  letter-spacing: var(--rh-tracking-snug);
  color: var(--rh-text-strong);
  text-wrap: balance;
}

.rl-home__sub {
  margin: calc(var(--rh-space-3) * -1) 0 0;
  font: var(--rh-text-h1);
  letter-spacing: var(--rh-tracking-snug);
  color: var(--rh-text-accent);
  text-wrap: balance;
}

.rl-home__desc { margin: 0; max-width: 48ch; font-size: var(--rh-text-md); color: var(--rh-text-muted); }

.rl-home__meta { display: flex; flex-wrap: wrap; gap: var(--rh-space-1) var(--rh-space-2); margin: 0; font-size: var(--rh-text-sm); color: var(--rl-text-meta); }

.rl-home__progress { display: grid; gap: var(--rh-space-2); width: min(24rem, 100%); }

.rl-home__track { display: block; height: var(--rh-space-1); border-radius: var(--rh-radius-full); background: var(--rh-surface-sunken); overflow: hidden; }

.rl-home__track > span { display: block; height: 100%; background: var(--rh-accent); }

.rl-home__track--done > span { background: var(--rh-success-600); }

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

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

.rl-home__acts .rh-btn { gap: var(--rh-space-2); }

.rl-home__cover {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: var(--rh-radius-card);
  overflow: hidden;
  box-shadow: var(--rh-shadow-md);
  background: var(--rh-surface-subtle);
}

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

.rl-home__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  gap: var(--rh-space-8);
  align-items: start;
}

.rl-home__main { display: grid; gap: var(--rh-space-8); min-width: 0; }

.rl-home__main h2 { margin: 0 0 var(--rh-space-3); font: var(--rh-weight-black) var(--rh-text-2xl)/var(--rh-leading-snug) var(--rh-font-display); }

.rl-home__outcomes ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rh-space-4) var(--rh-space-10);
  margin: 0;
  padding: var(--rh-space-6) var(--rh-space-8);
  list-style: none;
  background: var(--rh-surface-subtle);
  border-radius: var(--rh-radius-xl);
}

@media (max-width: 40rem) {
  .rl-home__outcomes ul { grid-template-columns: minmax(0, 1fr); padding: var(--rh-space-5); }
}

.rl-home__outcomes li { display: grid; grid-template-columns: var(--rh-space-4) minmax(0, 1fr); gap: var(--rh-space-3); align-items: baseline; color: var(--rh-text); }

.rl-home__tick { inline-size: var(--rh-space-4); block-size: var(--rh-space-4); color: var(--rh-accent); transform: translateY(0.125rem); }

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

.rl-home__list { border: var(--rh-border-width) solid var(--rh-border); border-radius: var(--rh-radius-card); overflow: hidden; }

.rl-home__list .rl-contents { margin: 0; }

.rl-home__list .rl-contents li:last-child { border-bottom: 0; }

.rl-home__list .rl-contents a { padding-inline: var(--rh-space-4); }

.rl-home__list .rl-contents a:focus-visible { outline-offset: calc(var(--rh-border-width-strong) * -1); }


.rl-fold { border-block-start: var(--rh-border-width) solid var(--rh-border); }

.rl-home__list > :first-child { border-block-start: 0; }

.rl-fold__summary {
  display: grid;
  grid-template-columns: var(--rh-space-4) minmax(0, 1fr) auto;
  gap: var(--rh-space-1) var(--rh-space-3);
  align-items: center;
  padding: var(--rh-space-3) var(--rh-space-4);
  background: var(--rh-surface-subtle);
  cursor: pointer;
  list-style: none;
}

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

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

.rl-fold[open]:not(.is-closing) > .rl-fold__summary { border-block-end: var(--rh-border-width) solid var(--rh-border); }

.rl-home__list .rl-fold:not(.rl-fold--toc) > .rl-contents a { padding-inline-start: calc(var(--rh-space-4) * 2 + var(--rh-space-3)); }

.rl-fold__chevron { grid-row: 1 / span 2; inline-size: var(--rh-space-4); block-size: var(--rh-space-4); color: var(--rh-text-muted); transform: rotate(-90deg); transition: transform var(--rh-dur) var(--rh-ease); }

.rl-fold[open]:not(.is-closing) > .rl-fold__summary .rl-fold__chevron { transform: none; }

.rl-fold__title { grid-column: 2; min-width: 0; margin: 0; font: var(--rh-weight-bold) var(--rh-text-base)/var(--rh-leading-snug) var(--rh-font-display); color: var(--rh-text-strong); overflow-wrap: anywhere; }

.rl-fold__facts { grid-column: 2; display: inline-flex; flex-wrap: wrap; gap: var(--rh-space-2); font: var(--rh-text-caption); color: var(--rl-text-meta); }

.rl-contents__section-time { white-space: nowrap; }

.rl-fold__progress { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; gap: var(--rh-space-2); align-items: center; font: var(--rh-text-caption); color: var(--rl-text-meta); white-space: nowrap; }

.rl-fold__progress--done { color: var(--rh-success-600); }

.rl-fold__progress .rl-home__tick { color: currentColor; transform: none; }

.rl-fold__bar { display: inline-block; inline-size: var(--rh-space-12); block-size: var(--rh-space-1); border-radius: var(--rh-radius-full); background: var(--rh-surface-sunken); overflow: hidden; }

.rl-fold__bar > span { display: block; block-size: 100%; background: var(--rh-success-600); }

@media (max-width: 40rem) {
  .rl-fold__progress { grid-column: 2; grid-row: auto; }
}

.rl-fold--toc { border-block-start: 0; margin-block-start: var(--rh-space-1); }

.rl-fold--toc > .rl-fold__summary,
.rl-fold--toc[open]:not(.is-closing) > .rl-fold__summary {
  display: flex;
  gap: var(--rh-space-2);
  padding: var(--rh-space-2);
  background: none;
  border-block-end: 0;
  border-radius: var(--rh-radius-sm);
}

.rl-fold--toc > .rl-fold__summary:hover { background: var(--rh-surface-subtle); }

.rl-fold--toc .rl-fold__chevron { inline-size: var(--rh-space-3); block-size: var(--rh-space-3); }

.rl-fold--toc .rl-fold__title { flex: 1; font: var(--rh-weight-medium) var(--rh-text-sm)/var(--rh-leading-snug) var(--rh-font-body); color: var(--rh-text); }

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

.rl-folds__bar { display: none; }

.rl-js .rl-folds__bar { display: flex; justify-content: flex-end; margin-block-end: var(--rh-space-2); }

.rl-contents__more { border-block-start: var(--rh-border-width) solid var(--rh-border); }

.rl-contents__toggle {
  display: block;
  padding: var(--rh-space-3) var(--rh-space-4);
  font-size: var(--rh-text-sm);
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-accent);
  cursor: pointer;
  list-style: none;
}

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

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

.rl-contents__hide,
.rl-contents__more[open]:not(.is-closing) .rl-contents__show { display: none; }

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

.rl-home__list .rl-contents--more { border-block-start: var(--rh-border-width) solid var(--rh-border); }

.rl-contents--more:has(+ .rl-contents__more:not([open])) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rl-fold__chevron { transition: none; }
}

.rl-contents__info { display: flex; flex-wrap: wrap; gap: var(--rh-space-2); align-items: center; justify-content: flex-end; }

.rl-contents__marks { display: flex; flex-wrap: wrap; gap: var(--rh-space-1); }

.rl-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  padding: 0.125rem var(--rh-space-2);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-sm);
  font: var(--rh-weight-medium) var(--rh-text-xs)/1.3 var(--rh-font-body);
  color: var(--rh-text-muted);
  white-space: nowrap;
}

.rl-home__icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rl-mark .rl-home__icon { width: var(--rh-space-3); height: var(--rh-space-3); }

.rl-home__includes { display: grid; gap: var(--rh-space-2); margin: 0; padding: 0; list-style: none; font-size: var(--rh-text-sm); }

.rl-home__includes li { display: grid; grid-template-columns: var(--rh-space-4) minmax(0, 1fr); gap: var(--rh-space-3); align-items: baseline; }

.rl-home__includes .rl-home__icon { color: var(--rh-text-muted); transform: translateY(0.125rem); }

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

.rl-home__lang {
  display: inline-block;
  padding: 0.1875rem var(--rh-space-2);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-sm);
  font-size: var(--rh-text-sm);
  color: var(--rh-text);
  text-decoration: none;
}

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

.rl-home__lang--current { background: var(--rh-text-strong); border-color: var(--rh-text-strong); color: var(--rh-surface); }

.rl-home__card .rl-vote { gap: var(--rh-space-3); justify-items: stretch; }

.rl-home__card .rl-vote__form { display: grid; gap: var(--rh-space-3); }

.rl-home__card .rl-vote__btns { display: grid; grid-template-columns: 1fr 1fr; }

.rl-home__card .rl-vote__btn { justify-content: center; }

.rl-vote__count { font-variant-numeric: tabular-nums; font-weight: var(--rh-weight-medium); }

.rl-vote__share { display: grid; gap: var(--rh-space-2); }

.rl-vote__bar { display: block; height: var(--rh-space-1); border-radius: var(--rh-radius-full); background: var(--rh-surface-sunken); overflow: hidden; }

.rl-vote__bar > span { display: block; height: 100%; background: var(--rh-success-600); }

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

.rl-home__training { display: grid; gap: var(--rh-space-4); }

.rl-home__side .rl-ex-side { margin: 0; }

.rl-community__row {
  display: grid;
  grid-template-columns: var(--rh-space-5) minmax(0, 1fr);
  gap: var(--rh-space-3);
  align-items: start;
  padding: var(--rh-space-1) 0;
  color: var(--rh-text);
  text-decoration: none;
}

.rl-community__row .rl-home__icon { width: var(--rh-space-5); height: var(--rh-space-5); color: var(--rh-text-muted); }

.rl-community__row b { display: block; font-weight: var(--rh-weight-medium); }

.rl-community__row small { display: block; font: var(--rh-text-caption); color: var(--rl-text-meta); }

a.rl-community__row:hover b { color: var(--rh-text-accent); text-decoration: underline; }

.rl-community__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rh-space-2); margin: 0; padding: 0; list-style: none; }

.rl-community__gallery a { display: grid; gap: var(--rh-space-1); color: var(--rh-text); text-decoration: none; min-width: 0; }

.rl-community__shot {
  display: block;
  aspect-ratio: 1;
  max-width: 100%;
  overflow: hidden;
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-sm);
  background: var(--rh-surface-subtle);
}

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

.rl-community__shot--loading { background: var(--rh-surface-sunken); }

.rl-community__caption { font: var(--rh-text-caption); color: var(--rl-text-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rl-community__all { justify-self: start; font: var(--rh-weight-medium) var(--rh-text-sm)/1.3 var(--rh-font-body); color: var(--rh-text-accent); }

.rl-home__body .rl-series-nav { margin-top: 0; }

.rl-home__body .rl-series-nav h2 { margin: 0; }

@media (max-width: 56rem) {
  .rl-home__hero,
  .rl-home__body { grid-template-columns: minmax(0, 1fr); }

  .rl-home__cover { order: -1; }
}

@media (max-width: 35rem) {
  .rl-home__title { font-size: var(--rh-text-3xl); }

  .rl-home__acts .rh-btn { flex: 1 1 auto; }

  .rl-home__list .rl-contents a {
    display: grid;
    grid-template-columns: 2ch minmax(0, 1fr) auto;
    column-gap: var(--rh-space-3);
    row-gap: var(--rh-space-2);
  }

  .rl-home__list .rl-contents__info { grid-column: 2; grid-row: 2; justify-content: flex-start; }

  .rl-home__list .rl-contents__status { grid-column: 3; grid-row: 1; }

  .rl-home__list .rl-contents__last { display: none; }

  .rl-home__list .rl-contents__state {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

.rl-contents { list-style: none; margin: var(--rh-space-8) 0 0; padding: 0; }
.rl-contents li { border-bottom: var(--rh-border-width) solid var(--rh-border); }

.rl-contents a {
  display: flex;
  align-items: baseline;
  gap: var(--rh-space-3);
  padding: var(--rh-space-4) var(--rh-space-2);
  color: var(--rh-text);
  text-decoration: none;
  transition: background var(--rh-dur) var(--rh-ease);
}

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

.rl-contents__number { color: var(--rl-text-meta); font-size: var(--rh-text-sm); min-width: 2ch; }

.rl-contents--apart { margin-top: var(--rh-space-4); border-top: var(--rh-border-width) dashed var(--rh-border-strong); }

.rl-contents--apart .rl-contents__number { display: inline-flex; align-items: center; color: var(--rh-text-accent); }

.rl-contents__summary {
  display: block;
  margin-top: var(--rh-space-1);
  font-weight: var(--rh-weight-regular);
  font-size: var(--rh-text-sm);
  color: var(--rl-text-meta);
}

.rl-contents__episode,
.rl-toc__episode {
  font: var(--rh-weight-bold) var(--rh-text-xs)/1.3 var(--rh-font-mono);
  color: var(--rh-accent);
  white-space: nowrap;
  margin-inline-end: var(--rh-space-1);
}

.rl-series-nav { margin-top: var(--rl-flow); }

.rl-series-nav h2 { margin: 0 0 var(--rh-space-3); font: var(--rh-text-h4); }

.rl-series-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rh-space-1); }

.rl-series-nav__item {
  display: flex;
  align-items: baseline;
  gap: var(--rh-space-3);
  padding: var(--rh-space-2);
  border-radius: var(--rh-radius-sm);
  color: var(--rh-text);
  text-decoration: none;
}

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

.rl-series-nav__item[aria-current] { background: var(--rh-surface-subtle); box-shadow: inset var(--rh-border-width-strong) 0 0 0 var(--rh-accent); }

.rl-series-nav__season {
  font: var(--rh-weight-medium) var(--rh-text-xs)/1.3 var(--rh-font-mono);
  letter-spacing: var(--rh-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rh-text-muted);
  white-space: nowrap;
}

.rl-series-nav__title { font-weight: var(--rh-weight-medium); flex: 1; }

.rl-series-nav__here { font-size: var(--rh-text-sm); color: var(--rl-text-meta); white-space: nowrap; }

.rl-contents__title { font-weight: var(--rh-weight-medium); flex: 1; }

.rl-home__list .rl-contents__title {
  font-family: var(--rh-font-display);
  font-size: 1.1875rem;
  font-weight: var(--rh-weight-bold);
  line-height: 1.3;
  letter-spacing: var(--rh-tracking-normal);
  overflow-wrap: anywhere;
}

.rl-home__list .rl-contents__summary {
  font-family: var(--rh-font-body);
  letter-spacing: normal;
  overflow-wrap: normal;
}

.rl-contents__link--last { box-shadow: inset var(--rh-border-width-strong) 0 0 0 var(--rh-accent); }

.rl-home__list .rl-contents__status { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--rh-space-2); }

.rl-contents__state { font: var(--rh-text-caption); color: var(--rl-text-meta); white-space: nowrap; }

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

.rl-empty { margin: 0; color: var(--rl-text-meta); }

.rl-chapternav {
  display: grid;
  margin-top: var(--rl-flow);
  gap: var(--rh-space-3);
  padding: 0 0 var(--rh-space-16);
}

.rl-chapternav__link {
  display: flex;
  flex-direction: column;
  gap: var(--rh-space-1);
  padding: var(--rh-space-4);
  color: var(--rh-text);
  text-decoration: none;
}

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

.rl-chapter__foot > :first-child { margin-top: 0; }

@media (max-width: 39.999rem) {
  .rl-header__bar {
    flex-wrap: wrap;
    row-gap: var(--rh-space-2);
    padding-block: var(--rh-space-2);
  }

  .rl-nav { order: 3; flex: 1 0 100%; }
}

@media (max-width: 39.999rem) {
  .rl-chapter__foot .rh-btn {
    display: flex;
    width: 100%;
    height: auto;
    min-height: var(--rh-space-10);
    padding-block: var(--rh-space-2);
    white-space: normal;
  }
}

@media (min-width: 40rem) {
  .rl-page { padding-block: var(--rl-flow) var(--rh-space-24); }

  .rl-chapternav {
    grid-template-columns: 1fr 1fr;
    padding: 0 0 var(--rh-space-24);
  }

  .rl-chapternav__link--prev { grid-column: 1; }
  .rl-chapternav__link--next { grid-column: 2; }
}

.rl-locales {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rh-space-2);
  list-style: none;
  margin: var(--rh-space-6) 0 0;
  padding: 0;
}

.rl-langbar__note { opacity: 0.8; font-size: var(--rh-text-xs); }

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

.rl-contents__lang { font: var(--rh-text-caption); color: var(--rh-text); }
.rl-contents__status { flex: none; min-width: 0; }

@media print {
  .rl-noprint { display: none !important; }

  .rl-wrap { max-width: none; padding-inline: 0; }
  .rl-page { padding-block: 0; }
  .rl-measured { max-width: none; }

  .rl-shell { min-height: 0; }

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

.rl-progress {
  display: flex;
  align-items: center;
  gap: var(--rh-space-3);
  margin: var(--rh-space-5) 0 0;
  font: var(--rh-text-caption);
  color: var(--rl-text-meta);
}

.rl-progress__track {
  flex: 1;
  max-width: 12rem;
  height: var(--rh-space-1);
  background: var(--rh-surface-subtle);
  border-radius: var(--rh-radius-full);
  overflow: hidden;
}

.rl-progress__fill {
  display: block;
  height: 100%;
  background: var(--rh-accent);
  border-radius: var(--rh-radius-full);
}

.rl-progress__text { flex: none; }

.rl-chapter__done {
  display: flex;
  align-items: center;
  gap: var(--rh-space-2);
  margin: 0 0 var(--rh-space-2);
  font-weight: var(--rh-weight-bold);
  color: var(--rh-text);
}

.rl-chapter__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rh-space-6);
  height: var(--rh-space-6);
  border-radius: var(--rh-radius-full);
  background: var(--rh-success-100);
  color: var(--rh-success-600);
  font-weight: var(--rh-weight-bold);
}

.rl-completion { margin-top: var(--rh-space-6); }

.rl-markdone + .rl-completion { margin-top: var(--rh-space-4); }

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

.rl-markdone__say {
  display: grid;
  gap: var(--rh-space-1);
  flex: 1 1 18rem;
  min-width: 0;
}

.rl-markdone__say:empty { display: none; }

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

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

.rl-markdone__need a { font-weight: var(--rh-weight-medium); white-space: nowrap; }

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

.rl-markdone .rl-chapter__done { margin: 0; }

.rl-markdone__dot {
  flex: none;
  width: var(--rh-space-3);
  height: var(--rh-space-3);
  border-radius: var(--rh-radius-full);
  background: var(--rh-success-600);
}

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

.rl-busyform .rh-btn { position: relative; }

.rl-busy__dots {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  pointer-events: none;
}

.rl-busy__dots > span {
  inline-size: 0.4em;
  block-size: 0.4em;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: rl-busy-pulse calc(var(--rh-dur-slow) * 3) var(--rh-ease) infinite;
}

.rl-busy__dots > span:nth-child(2) { animation-delay: var(--rh-dur-slow); }

.rl-busy__dots > span:nth-child(3) { animation-delay: calc(var(--rh-dur-slow) * 2); }

.rl-busyform[aria-busy="true"] .rh-btn { pointer-events: none; }

.rl-busyform[aria-busy="true"] .rl-busy__label { visibility: hidden; }

.rl-busyform[aria-busy="true"] .rl-busy__dots { display: flex; }

@keyframes rl-busy-pulse {
  0%, 100% { opacity: 0.3; }
  33% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-busy__dots > span { animation: none; opacity: 0.7; }
}

@media (max-width: 39.999rem) {
  .rl-markdone { flex-direction: column; align-items: stretch; }

  .rl-markdone__say { flex-basis: auto; }

  .rl-markdone__acts { flex-direction: column; align-items: stretch; }
}

.rl-contents__status {
  flex: none;
  min-width: var(--rh-space-6);
  text-align: right;
  color: var(--rh-success-600);
  font-weight: var(--rh-weight-bold);
}

@media print {
  .rl-progress, .rl-chapter__foot { display: none; }
}

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

.rh-badge--outline { color: var(--rl-text-meta); }
.rh-callout__body { color: var(--rl-text-meta); }

.rl-reader { display: grid; gap: var(--rh-space-6); }

.rl-reader__main { position: relative; min-inline-size: 0; }

@media (min-width: 76rem) {
  .rl-reader {
    --rl-tab: 2.25rem;

    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
    column-gap: calc(var(--rl-tab) + var(--rh-space-4));
    transition: grid-template-columns 0.25s var(--rh-ease), column-gap 0.25s var(--rh-ease);
  }

  .rl-aside-away .rl-reader {
    grid-template-columns: minmax(0, 1fr) 0;
    column-gap: var(--rl-tab);
  }

}

.rl-reader__aside { min-inline-size: 0; }

@media (min-width: 76rem) {
  .rl-panel-page {
    --rl-read-wide: 66rem;
    --rl-panel-wide: 40rem;
  }

  .rl-panel-page main.rl-wrap { max-width: calc(var(--rl-read-wide) + var(--rl-panel-wide) + 2.25rem + var(--rh-space-4) + 2 * var(--rl-gutter)); }

  .rl-panel-page .rl-reader { grid-template-columns: minmax(0, var(--rl-read-wide)) minmax(26rem, 1fr); }
}

.rl-reader .rl-measured { max-width: none; }

@media (min-width: 76rem) {
  .rl-reader__aside {
    position: sticky;
    margin-block-start: var(--rl-flow);
    inset-block-start: var(--rh-space-4);
    max-block-size: calc(100vh - var(--rh-space-8));
    overflow-y: auto;
    transition: opacity 0.2s var(--rh-ease), transform 0.25s var(--rh-ease);
  }

  .rl-aside-away .rl-reader__aside {
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(1.5rem);
  }
}

.rl-reader__nav { grid-column: 1; }

.rl-toc__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--rh-space-2);
}

.rl-toc__hide {
  flex: none;
  font: var(--rh-text-caption);
  color: var(--rl-text-meta);
  background: none;
  border: 0;
  border-radius: var(--rh-radius-sm);
  padding: 2px var(--rh-space-1);
  cursor: pointer;
}

.rl-toc__hide:hover { color: var(--rh-text-strong); background: var(--rh-surface-subtle); }
.rl-toc__hide:focus-visible { outline: none; box-shadow: var(--rh-shadow-focus); }

.rl-bookmarks { display: none; }

.rl-js .rl-bookmarks { display: block; }

.rl-bookmarks__list { display: flex; flex-wrap: wrap; gap: var(--rh-space-2); margin-block: var(--rh-space-3) var(--rh-space-4); }

.rl-bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--rh-space-2) var(--rh-space-3);
  font: var(--rh-weight-medium) var(--rh-text-sm)/1 var(--rh-font-body);
  color: var(--rh-text-muted);
  background: var(--rh-surface);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-md);
  cursor: pointer;
}

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

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

.rl-bookmark[aria-expanded="true"] { color: var(--rh-text-strong); border-color: var(--rh-accent); }

.rl-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--rh-space-2); margin-block-end: var(--rh-space-3); }

.rl-panel__title { margin: 0; font: var(--rh-text-h4); color: var(--rh-text); }

.rl-panel__title:focus { outline: none; }

.rl-files {
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-card);
  background: var(--rh-surface);
  padding: var(--rh-space-4);
}

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

.rl-files__group {
  margin: var(--rh-space-4) 0 var(--rh-space-2);
  font: var(--rh-weight-medium) var(--rh-text-xs)/1.3 var(--rh-font-mono);
  letter-spacing: var(--rh-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rh-text-muted);
}

.rl-files__list { display: grid; gap: var(--rh-space-2); margin: 0; padding: 0; list-style: none; }

.rl-files__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--rh-space-2); align-items: start; }

.rl-files__text { display: grid; min-width: 0; }

.rl-files__name { font-size: var(--rh-text-sm); font-weight: var(--rh-weight-medium); color: var(--rh-text); overflow-wrap: anywhere; }

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

.rl-files__get {
  display: inline-grid;
  place-items: center;
  width: var(--rh-space-8);
  height: var(--rh-space-8);
  color: var(--rh-text-muted);
  border-radius: var(--rh-radius-sm);
}

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

.rl-files__get .rl-home__icon { width: var(--rh-space-4); height: var(--rh-space-4); }

.rl-files__all { margin-block-start: var(--rh-space-4); gap: var(--rh-space-2); }

.rl-files__all .rl-home__icon { width: var(--rh-space-4); height: var(--rh-space-4); }

.rl-home__resources .rl-files__all { margin-block-start: 0; justify-self: start; }

.rl-files__chapter { margin-block-end: var(--rh-space-3); gap: var(--rh-space-2); }

.rl-files__chapter .rl-home__icon { width: var(--rh-space-4); height: var(--rh-space-4); }

.rl-files__none { margin: 0; font-size: var(--rh-text-sm); color: var(--rl-text-meta); }

.rl-files__summary { display: grid; gap: var(--rh-space-1); margin: 0; }

.rl-files__total { font-size: var(--rh-text-sm); font-weight: var(--rh-weight-medium); color: var(--rh-text); }

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

.rl-bych { display: grid; gap: var(--rh-space-2); min-width: 0; }

.rl-bych .rl-files__group { margin: 0; }

.rl-bych__list { display: grid; margin: 0; padding: 0; list-style: none; border-block-start: var(--rh-border-width) solid var(--rh-border); }

.rl-bych__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--rh-space-1);
  align-items: start;
  padding-block: var(--rh-space-1);
  border-block-end: var(--rh-border-width) solid var(--rh-border);
}

.rl-bych__chapter { min-width: 0; }

.rl-bych__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: var(--rh-space-2);
  align-items: center;
  min-block-size: var(--rh-space-8);
  cursor: pointer;
  list-style: none;
  border-radius: var(--rh-radius-sm);
}

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

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

.rl-bych__head:hover .rl-bych__title { color: var(--rh-text-strong); }

.rl-bych__number { min-inline-size: 1.5em; font-size: var(--rh-text-xs); color: var(--rh-text-muted); text-align: end; }

.rl-bych__title { min-width: 0; font-size: var(--rh-text-sm); font-weight: var(--rh-weight-medium); color: var(--rh-text); overflow-wrap: anywhere; }

.rl-bych__count { font: var(--rh-text-caption); color: var(--rl-text-meta); white-space: nowrap; }

.rl-bych__chevron { width: var(--rh-space-4); height: var(--rh-space-4); color: var(--rh-text-muted); transition: transform var(--rh-dur) var(--rh-ease); }

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

.rl-bych__files { padding-block: var(--rh-space-2) var(--rh-space-1); padding-inline-start: calc(1.5em + var(--rh-space-2)); }

.rl-bych__list--more { margin-block-start: calc(var(--rh-space-2) * -1); border-block-start: 0; }

.rl-bych__list--more:has(+ .rl-bych__more:not([open])) { display: none; }

.rl-bych__more { display: grid; }

.rl-bych__toggle {
  justify-self: start;
  padding-block: var(--rh-space-1);
  font-size: var(--rh-text-sm);
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-accent);
  cursor: pointer;
  list-style: none;
  border-radius: var(--rh-radius-sm);
}

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

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

.rl-bych__shut,
.rl-bych__more[open]:not(.is-closing) .rl-bych__open { display: none; }

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

.rl-bysec__list { display: grid; border-block-start: var(--rh-border-width) solid var(--rh-border); min-width: 0; }

.rl-bysec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-block-end: var(--rh-border-width) solid var(--rh-border);
  min-width: 0;
}

.rl-bysec__fold { grid-column: 1 / -1; grid-row: 1; min-width: 0; }

.rl-bysec__get { grid-column: 2; grid-row: 1; align-self: start; z-index: 1; margin-block-start: var(--rh-space-1); margin-inline-end: var(--rh-space-1); }

.rl-bysec__summary {
  display: flex;
  gap: var(--rh-space-2);
  align-items: center;
  min-block-size: var(--rh-space-10);
  padding-inline: var(--rh-space-2) calc(var(--rh-space-8) + var(--rh-space-2));
  background: var(--rh-surface-subtle);
  cursor: pointer;
  list-style: none;
  border-radius: var(--rh-radius-sm);
}

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

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

.rl-bysec__chevron { flex: none; inline-size: var(--rh-space-3); block-size: var(--rh-space-3); color: var(--rh-text-muted); transform: rotate(-90deg); transition: transform var(--rh-dur) var(--rh-ease); }

.rl-bysec__fold[open]:not(.is-closing) > .rl-bysec__summary .rl-bysec__chevron { transform: none; }

.rl-bysec__main { display: grid; min-width: 0; }

.rl-bysec__fold[open]:not(.is-closing) > .rl-bysec__summary { border-block-end: var(--rh-border-width) solid var(--rh-border); border-end-start-radius: 0; border-end-end-radius: 0; }

.rl-bysec__name { margin: 0; font: var(--rh-weight-bold) var(--rh-text-base)/var(--rh-leading-snug) var(--rh-font-display); color: var(--rh-text-strong); overflow-wrap: anywhere; }

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

.rl-bysec__body { padding-block-end: var(--rh-space-2); padding-inline-start: var(--rh-space-5); }

.rl-bysec__body > .rl-bych__list { border-block-start: var(--rh-border-width) solid var(--rh-border); }

.rl-bysec__body > .rl-bych__list > .rl-bych__item:last-child { border-block-end: 0; }

.rl-bych__list--loose { border-block-start: 0; }

.rl-files__lists { display: grid; gap: var(--rh-space-2); min-width: 0; }

.rl-files__list--more:has(+ .rl-files__more:not([open])) { display: none; }

.rl-files__more { display: grid; }

.rl-files__toggle {
  justify-self: start;
  padding-block: var(--rh-space-1);
  font-size: var(--rh-text-sm);
  font-weight: var(--rh-weight-medium);
  color: var(--rh-text-accent);
  cursor: pointer;
  list-style: none;
  border-radius: var(--rh-radius-sm);
}

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

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

.rl-files__shut,
.rl-files__more[open]:not(.is-closing) .rl-files__open { display: none; }

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

@media (prefers-reduced-motion: reduce) {
  .rl-bych__chevron { transition: none; }
  .rl-bysec__chevron { transition: none; }
}

.rl-bpage {
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-card);
  background: var(--rh-surface);
  padding: var(--rh-space-4);
}

.rl-bpage__group {
  margin: var(--rh-space-4) 0 var(--rh-space-2);
  font: var(--rh-weight-medium) var(--rh-text-xs)/1.3 var(--rh-font-mono);
  letter-spacing: var(--rh-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rh-text-muted);
}

.rl-bpage__body { font-size: var(--rh-text-sm); }

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

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

.rl-bpage__body h2,
.rl-bpage__body h3 { margin: var(--rh-space-3) 0 var(--rh-space-1); font: var(--rh-weight-bold) var(--rh-text-md)/1.3 var(--rh-font-display); color: var(--rh-text-strong); }

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

.rl-vocab__search {
  inline-size: 100%;
  padding: var(--rh-space-2) var(--rh-space-3);
  font: var(--rh-text-sm)/1.4 var(--rh-font-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);
}

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

.rl-vocab__search:focus-visible { outline: none; border-color: var(--rh-accent); box-shadow: var(--rh-shadow-focus); }

.rl-vocab__cmds { display: grid; gap: var(--rh-space-2); margin: 0; padding: 0; list-style: none; }

.rl-vocab__cmd { display: grid; grid-template-columns: var(--rh-space-5) minmax(0, 1fr); gap: var(--rh-space-2); align-items: start; }

.rl-vocab__icon { inline-size: var(--rh-space-5); block-size: var(--rh-space-5); }

.rl-vocab__text { display: grid; min-width: 0; }

.rl-vocab__name { font-size: var(--rh-text-sm); font-weight: var(--rh-weight-bold); color: var(--rh-text-accent); text-decoration: none; }

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

.rl-vocab__desc,
.rl-vocab__note,
.rl-vocab__none { font: var(--rh-text-caption); color: var(--rl-text-meta); }

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

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

.rl-vocab__none:empty { display: none; }

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

.rl-tabs__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--rh-space-1);
  margin-block: var(--rh-space-1) var(--rh-space-3);
  padding: var(--rh-space-1);
  background: var(--rh-surface-subtle);
  border-radius: var(--rh-radius-md);
}

.rl-tabs__tab {
  padding: var(--rh-space-1) var(--rh-space-3);
  font: var(--rh-weight-medium) var(--rh-text-sm)/1.4 var(--rh-font-body);
  color: var(--rh-text-muted);
  background: none;
  border: 0;
  border-radius: var(--rh-radius-sm);
  cursor: pointer;
}

.rl-tabs__tab[aria-selected="true"] { color: var(--rh-text-strong); background: var(--rh-surface); box-shadow: var(--rh-shadow-xs); }

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

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

.rl-bpage--tutor .rl-aiprompt {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--rh-space-2) var(--rh-space-3);
  padding: var(--rh-space-3);
  border-radius: var(--rh-radius-lg);
}

.rl-bpage--tutor .rl-aiprompt__head { grid-column: 2; grid-row: 1; }

.rl-bpage--tutor .rl-aiprompt__eyebrow,
.rl-bpage--tutor .rl-aiprompt__where { display: none; }

.rl-bpage--tutor .rl-aiprompt__title,
.rl-bpage--tutor .rl-aiprompt__text { grid-column: 1; }

.rl-bpage--tutor .rl-aiprompt__title { font: var(--rh-weight-bold) var(--rh-text-sm)/1.3 var(--rh-font-body); }

.rl-bpage--tutor .rl-aiprompt__title + .rl-aiprompt__text { grid-row: 2; }

.rl-bpage--tutor .rl-aiprompt__asks { grid-column: 1 / -1; }

.rl-tutor__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-space-2) var(--rh-space-6);
  margin: var(--rh-space-4) 0 0;
  padding-block-start: var(--rh-space-3);
  border-block-start: var(--rh-border-width) solid var(--rh-border);
  font: var(--rh-text-caption);
  color: var(--rl-text-meta);
}

.rl-tutor__foot p { flex: 1 1 22rem; min-width: 0; margin: 0; }

.rl-tutor__foot strong { color: var(--rh-text-strong); }

.rl-tutor__foot a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--rh-space-1);
  color: var(--rh-text-strong);
  font-weight: var(--rh-weight-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

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

.rl-tutor__foot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 75.999rem) {
  .rl-js .rl-reader__aside { display: none; }

  .rl-sheet-open .rl-reader__aside {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    max-block-size: 75vh;
    overflow-y: auto;
    padding: var(--rh-space-4) max(var(--rh-space-4), env(safe-area-inset-right, 0px)) max(var(--rh-space-4), env(safe-area-inset-bottom, 0px)) max(var(--rh-space-4), env(safe-area-inset-left, 0px));
    background: var(--rh-surface-subtle);
    border-start-start-radius: var(--rh-radius-card);
    border-start-end-radius: var(--rh-radius-card);
    box-shadow: 0 calc(var(--rh-space-2) * -1) var(--rh-space-6) color-mix(in srgb, var(--rh-gray-900) 18%, transparent);
  }
}

@media (min-width: 76rem) {
  .rl-js .rl-bookmarks {
    position: absolute;
    inset-block: var(--rl-flow) 0;
    inset-inline-start: 100%;
    z-index: 4;
    width: var(--rl-tab);
    pointer-events: none;
  }

  .rl-bookmarks__list {
    position: sticky;
    inset-block-start: var(--rh-space-4);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: var(--rh-space-1);
    margin: 0;
    pointer-events: auto;
  }

  .rl-bookmark {
    width: 100%;
    padding: var(--rh-space-4) 0;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-inline-start-width: 0;
    box-shadow: 2px 1px 3px color-mix(in srgb, var(--rh-gray-900) 8%, transparent);
  }

  .rl-bookmark[aria-expanded="true"] { border-inline-end: var(--rh-border-width-strong) solid var(--rh-accent); }

  .rl-bookmark__label { writing-mode: vertical-rl; }

  .rl-js .rl-bookmarks--row { position: static; width: auto; pointer-events: auto; }

  .rl-bookmarks--row .rl-bookmarks__list { position: static; flex-direction: row; flex-wrap: wrap; gap: var(--rh-space-2); margin-block: 0 var(--rh-space-4); }

  .rl-bookmarks--row .rl-bookmark {
    width: auto;
    padding: var(--rh-space-2) var(--rh-space-3);
    border: var(--rh-border-width) solid var(--rh-border-strong);
    border-radius: var(--rh-radius-md);
    box-shadow: none;
  }

  .rl-bookmarks--row .rl-bookmark[aria-expanded="true"] { border-color: var(--rh-accent); border-inline-end-width: var(--rh-border-width); }

  .rl-bookmarks--row .rl-bookmark__label { writing-mode: horizontal-tb; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-reader,
  .rl-reader__aside { transition: none; }
}

.rl-toc {
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-card);
  background: var(--rh-surface);
  padding: var(--rh-space-4);
}

.rl-toc__head {
  margin: 0 0 var(--rh-space-3);
  font: var(--rh-text-h4);
  color: var(--rh-text);
}

.rl-toc__head a { color: inherit; text-decoration: none; }
.rl-toc__head a:hover { color: var(--rh-text-accent); }

.rl-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; }

.rl-toc__list--apart { margin-top: var(--rh-space-3); padding-top: var(--rh-space-3); border-top: var(--rh-border-width) dashed var(--rh-border-strong); }

.rl-toc__item a {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: var(--rh-space-2);
  align-items: baseline;
  padding: var(--rh-space-2);
  border-radius: var(--rh-radius-sm);
  color: var(--rl-text-meta);
  text-decoration: none;
  font-size: var(--rh-text-sm);
  line-height: var(--rh-leading-snug);
  transition: background var(--rh-dur-fast) var(--rh-ease), color var(--rh-dur-fast) var(--rh-ease);
}

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

.rl-toc__item--here a {
  color: var(--rh-text);
  font-weight: var(--rh-weight-medium);
  background: var(--rh-surface-subtle);
  box-shadow: inset 2px 0 0 var(--rh-red-600);
}

.rl-toc__item a .rl-done { align-self: center; }

.rl-done {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: var(--rh-border-width-strong) solid var(--rh-border-strong);
  flex: none;
  vertical-align: middle;
}

.rl-done--yes {
  background: var(--rh-success-600);
  border-color: var(--rh-success-600);
  color: var(--rh-white);
}

.rl-done svg { width: 0.7rem; height: 0.7rem; display: block; }

.rl-done--part {
  border-color: var(--rh-success-600);
  background: linear-gradient(90deg, var(--rh-success-600) 50%, transparent 50%);
}

.rl-contents__locked { color: var(--rl-text-meta); }

.rl-done--locked {
  border-color: transparent;
  color: var(--rl-text-meta);
}

.rl-done--locked svg { width: 0.9rem; height: 0.9rem; }

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

@media (prefers-reduced-motion: reduce) {
  .rl-toc__item a { transition: none; }
}

@media print {
  .rl-reader { display: block; }
  .rl-bookmarks,
  .rl-js .rl-bookmarks,
  .rl-sheet-open .rl-reader__aside { display: none; }
}

.rl-tick { width: 0.95em; height: 0.95em; display: block; }


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

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

.rl-authorpage__answers h2 {
  margin: 0 0 var(--rh-space-3);
  font: var(--rh-text-h2);
  font-size: var(--rh-text-xl);
  color: var(--rh-text-strong);
}

.rl-answers { list-style: none; margin: 0; padding: 0; border-top: var(--rh-border-width) solid var(--rh-border-strong); }

.rl-answers__item {
  padding-block: var(--rh-space-4);
  border-bottom: var(--rh-border-width) solid var(--rh-border);
}

.rl-answers__label {
  margin: var(--rh-space-3) 0 var(--rh-space-1);
  font: var(--rh-weight-medium) 0.6875rem/1.2 var(--rh-font-body);
  letter-spacing: var(--rh-tracking-wide);
  text-transform: uppercase;
  color: var(--rl-text-meta);
}

.rl-answers__label:first-child { margin-top: 0; }

.rl-answers__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

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

.rl-qlist { list-style: none; margin: 0; padding: 0; border-top: var(--rh-border-width) solid var(--rh-border-strong); }

.rl-qlist__item {
  padding-block: var(--rh-space-4);
  border-bottom: var(--rh-border-width) solid var(--rh-border);
}

.rl-qlist__to { margin: 0 0 var(--rh-space-1); font-weight: var(--rh-weight-bold); color: var(--rh-text-strong); overflow-wrap: anywhere; }

.rl-qlist__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

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

.rl-qlist__reply {
  margin-top: var(--rh-space-3);
  padding: var(--rh-space-3) var(--rh-space-4);
  background: var(--rh-surface-sunken);
  border-radius: var(--rh-radius-md);
}

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

.rl-player__box.rl-ask { inline-size: min(34rem, 100%); }

.rl-ask__body { display: grid; gap: var(--rh-space-4); padding: var(--rh-space-4); margin: 0; }

.rl-ask__headline { margin: 0; color: var(--rl-text-meta); font: var(--rh-text-caption); overflow-wrap: anywhere; }

.rl-ask__refused {
  margin: 0;
  padding: var(--rh-space-3);
  border-radius: var(--rh-radius-md);
  background: var(--rh-warning-100);
  color: var(--rh-warning-600);
}

.rl-ask__text { resize: vertical; min-block-size: 8rem; }

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

.rl-ask__consent { display: flex; align-items: flex-start; gap: var(--rh-space-2); font-size: var(--rh-text-sm); cursor: pointer; }

.rl-ask__consent input { flex: none; margin: 2px 0 0; inline-size: var(--rh-space-4); block-size: var(--rh-space-4); accent-color: var(--rh-accent); }

.rl-ask__sent { margin: 0; }

.rl-ask__choices { display: grid; gap: var(--rh-space-2); margin: 0; padding: 0; border: 0; min-inline-size: 0; }

.rl-ask__choice {
  display: flex;
  align-items: flex-start;
  gap: var(--rh-space-3);
  padding: var(--rh-space-3);
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-md);
  cursor: pointer;
}

.rl-ask__choice:has(input:checked) { border-color: var(--rh-accent); background: var(--rh-surface-sunken); }

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

.rl-ask__choice input { flex: none; margin: 2px 0 0; inline-size: var(--rh-space-4); block-size: var(--rh-space-4); accent-color: var(--rh-accent); }

.rl-ask__choicetitle { display: block; font-weight: var(--rh-weight-bold); color: var(--rh-text-strong); }

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

.rl-ask__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--rh-space-2); }

@media (max-width: 600px) {
  .rl-ask__acts { justify-content: stretch; }
  .rl-ask__acts > * { flex: 1 1 auto; justify-content: center; }
}

.rl-gallery { display: grid; gap: var(--rh-space-5); }

.rl-gallery__crumb { margin: 0; font: var(--rh-text-caption); }
.rl-gallery__crumb a { color: var(--rl-text-meta); text-decoration: none; }
.rl-gallery__crumb a:hover { color: var(--rh-text-accent); text-decoration: underline; }

.rl-gallery__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--rh-space-4); align-items: center; }

.rl-gallery__face {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: var(--rh-radius-full);
  background: var(--rh-text-strong);
  color: var(--rh-surface);
  font: var(--rh-weight-bold) var(--rh-text-md)/1 var(--rh-font-body);
}

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

.rl-gallery__who { min-width: 0; }
.rl-gallery__who h1 { margin: 0; font: var(--rl-text-pagetitle); letter-spacing: var(--rh-tracking-snug); color: var(--rh-text-strong); text-wrap: balance; }
.rl-gallery__who p { margin: var(--rh-space-1) 0 0; color: var(--rl-text-meta); }

.rl-gallery__acts { display: flex; flex-wrap: wrap; gap: var(--rh-space-2); justify-content: flex-end; }

.rl-gallery__out { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rl-gallery__post {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rh-space-3) var(--rh-space-4);
  padding: var(--rh-space-4);
  border: var(--rh-border-width) dashed var(--rh-border-strong);
  border-radius: var(--rh-radius-xl);
}

.rl-gallery__post p { margin: 0; color: var(--rl-text-meta); }

.rl-gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rh-space-2);
  padding-bottom: var(--rh-space-3);
  border-bottom: var(--rh-border-width) solid var(--rh-border);
}

.rl-gallery__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--rh-space-1);
  min-height: 32px;
  padding: 0 var(--rh-space-3);
  border: var(--rh-border-width) solid var(--rh-border-strong);
  border-radius: var(--rh-radius-full);
  background: var(--rh-surface);
  color: var(--rh-text);
  font: var(--rh-weight-medium) var(--rh-text-sm)/1 var(--rh-font-body);
  text-decoration: none;
}

.rl-gallery__chip small { font-weight: var(--rh-weight-regular); color: var(--rl-text-meta); }
.rl-gallery__chip:hover { border-color: var(--rh-text-subtle); color: var(--rh-text-strong); }
.rl-gallery__chip[aria-current] { background: var(--rh-text-strong); border-color: var(--rh-text-strong); color: var(--rh-surface); }
.rl-gallery__chip[aria-current] small { color: inherit; opacity: 0.75; }

.rl-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: var(--rh-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl-gallery__card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: var(--rh-border-width) solid var(--rh-border);
  border-radius: var(--rh-radius-lg);
  background: var(--rh-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--rh-dur) var(--rh-ease), box-shadow var(--rh-dur) var(--rh-ease);
}

.rl-gallery__card:hover { border-color: var(--rh-border-strong); box-shadow: var(--rh-shadow-sm); }

.rl-gallery__image { display: block; aspect-ratio: 4 / 3; max-width: 100%; background: var(--rh-surface-sunken); }
.rl-gallery__image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rl-gallery__meta { display: grid; gap: var(--rh-space-1); min-width: 0; padding: var(--rh-space-3); }
.rl-gallery__title { overflow: hidden; font-weight: var(--rh-weight-medium); color: var(--rh-text-strong); text-overflow: ellipsis; white-space: nowrap; }
.rl-gallery__sub { display: flex; justify-content: space-between; gap: var(--rh-space-2); font: var(--rh-text-caption); font-size: var(--rh-text-xs); color: var(--rl-text-meta); }

.rl-gallery__more { display: grid; justify-items: center; gap: var(--rh-space-2); }
.rl-gallery__more p { margin: 0; font: var(--rh-text-caption); color: var(--rl-text-meta); font-variant-numeric: tabular-nums; }

.rl-gallery__loading { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: var(--rh-space-4); }
.rl-gallery__loading .rl-skel__card { block-size: 12rem; }

.rl-gallery__quiet {
  display: grid;
  justify-items: start;
  gap: var(--rh-space-2);
  padding: var(--rh-space-5);
  border: var(--rh-border-width) dashed var(--rh-border-strong);
  border-radius: var(--rh-radius-xl);
}

.rl-gallery__quiet p { margin: 0; color: var(--rl-text-meta); }
.rl-gallery__quiet .rl-gallery__quiet-title { font-weight: var(--rh-weight-bold); color: var(--rh-text-strong); }

.rl-gallery__none { margin: 0; color: var(--rl-text-meta); }

.rl-viewer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: max(var(--rh-space-6), env(safe-area-inset-top, 0px)) max(var(--rh-space-6), env(safe-area-inset-right, 0px)) max(var(--rh-space-6), env(safe-area-inset-bottom, 0px)) max(var(--rh-space-6), env(safe-area-inset-left, 0px));
}

.rl-viewer:focus { outline: none; }

body:has(.rl-viewer) { overflow: hidden; }

.rl-gallery__head--plain { grid-template-columns: minmax(0, 1fr) auto; }

.rl-viewer__backdrop { position: absolute; inset: 0; background: var(--rh-surface-overlay); }

.rl-viewer__box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  width: min(100%, 72rem);
  max-height: 100%;
  overflow: hidden;
  border-radius: var(--rh-radius-xl);
  background: var(--rh-surface);
  box-shadow: var(--rh-shadow-xl);
}

.rl-viewer__picture { position: relative; display: grid; place-items: center; min-height: 20rem; background: var(--rh-surface-sunken); }
.rl-viewer__full { display: grid; place-items: center; width: 100%; height: 100%; }
.rl-viewer__full img { display: block; max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; }

.rl-viewer__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border-radius: var(--rh-radius-full);
  background: var(--rh-surface-overlay);
  color: var(--rh-white);
}

.rl-viewer__nav--prev { left: var(--rh-space-3); }
.rl-viewer__nav--next { right: var(--rh-space-3); }
.rl-viewer__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rl-viewer__thumbs { position: absolute; left: 0; right: 0; bottom: var(--rh-space-3); display: flex; justify-content: center; gap: var(--rh-space-1); margin: 0; padding: 0; list-style: none; }
.rl-viewer__thumbs li { width: 8px; height: 8px; border-radius: var(--rh-radius-full); background: var(--rh-surface-overlay); }
.rl-viewer__thumbs li.is-on { background: var(--rh-white); }

.rl-viewer__side { display: grid; align-content: start; gap: var(--rh-space-3); min-width: 0; padding: var(--rh-space-6); overflow-y: auto; max-height: calc(100vh - 3rem); }
.rl-viewer__side--alone { grid-column: 1 / -1; justify-items: start; }
.rl-viewer__side h2 { margin: 0; padding-right: var(--rh-space-8); font: var(--rh-text-h3); color: var(--rh-text-strong); text-wrap: balance; }

.rl-viewer__facts { display: grid; gap: var(--rh-space-2); margin: 0; }
.rl-viewer__facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--rh-space-2); font: var(--rh-text-caption); }
.rl-viewer__facts dt { color: var(--rl-text-meta); }
.rl-viewer__facts dd { margin: 0; color: var(--rh-text-strong); }

.rl-viewer__text { margin: 0; overflow-wrap: anywhere; }

.rl-viewer__comments { display: grid; gap: var(--rh-space-3); padding-top: var(--rh-space-3); border-top: var(--rh-border-width) solid var(--rh-border); }
.rl-viewer__comments h3 { margin: 0; font: var(--rh-text-h4); font-size: var(--rh-text-base); color: var(--rh-text-strong); }
.rl-viewer__comments ol { display: grid; gap: var(--rh-space-3); margin: 0; padding: 0; list-style: none; }

.rl-viewer__comment { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px var(--rh-space-3); }

.rl-viewer__face {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: var(--rh-radius-full);
  background: var(--rh-surface-sunken);
  color: var(--rh-text-strong);
  font: var(--rh-weight-bold) 0.6875rem/1 var(--rh-font-body);
}

.rl-viewer__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rl-viewer__who { font: var(--rh-text-caption); color: var(--rl-text-meta); }
.rl-viewer__who b { font-weight: var(--rh-weight-medium); color: var(--rh-text-strong); }
.rl-viewer__said p { margin: 0 0 var(--rh-space-1); font: var(--rh-text-caption); color: var(--rh-text); overflow-wrap: anywhere; }
.rl-viewer__more { margin: 0; font: var(--rh-text-caption); }

.rl-viewer__reply { justify-self: start; }

.rl-viewer__close {
  position: absolute;
  top: max(var(--rh-space-4), env(safe-area-inset-top, 0px));
  right: max(var(--rh-space-4), env(safe-area-inset-right, 0px));
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--rh-radius-full);
  background: var(--rh-surface);
  color: var(--rh-text-strong);
  box-shadow: var(--rh-shadow-md);
}

.rl-viewer__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 47.999rem) {
  .rl-gallery__head { grid-template-columns: auto minmax(0, 1fr); }
  .rl-gallery__acts { grid-column: 1 / -1; justify-content: flex-start; }
  .rl-gallery__grid,
  .rl-gallery__loading { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rh-space-3); }

  .rl-viewer { padding: 0; place-items: stretch; }
  .rl-viewer__box { grid-template-columns: minmax(0, 1fr); width: 100%; max-height: 100%; overflow-y: auto; border-radius: 0; }
  .rl-viewer__picture { min-height: 14rem; }
  .rl-viewer__full img { max-height: 60vh; }
  .rl-viewer__side { max-height: none; overflow: visible; padding: var(--rh-space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .rl-gallery__card { transition: none; }
}
