/* Class chooser and focused detail navigation. The accent comes from the Road Hero mark. */
.rh-class-chooser {
  --rh-brand: #16acab;
  --rh-ink: #151a1a;
  --rh-muted: #4b5555;
  container-type: inline-size;
  min-width: 0;
}
.rh-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.1rem), 1fr));
  gap: .8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.rh-class-item { display: flex; min-width: 0; }
.rh-class-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  padding: clamp(1rem, 1.6vw, 1.45rem);
  border: 1px solid transparent;
  border-radius: 1rem;
  background: #f5f6f7;
  text-align: left;
  text-decoration: none;
  font: inherit;
  color: var(--rh-ink);
}
.rh-class-card :is(a, button):focus-visible,
.rh-class-dialog :is(a, button):focus-visible,
.rh-selection-back:focus-visible,
.rh-class-switcher a:focus-visible {
  outline: 3px solid #202628;
  outline-offset: 3px;
}
.rh-class-top { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; flex-wrap: wrap-reverse; gap: .65rem; margin-bottom: 1.5rem; }
.rh-class-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: .8rem;
  color: #222627;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e0e3e4;
}
.rh-class-icon svg { width: 1.85rem; height: 1.85rem; }
.rh-class-code { color: #151819; font-size: clamp(1.75rem, 2.5vw, 2rem); line-height: 1; font-weight: 750; letter-spacing: -.065em; }
.rh-class-name { color: var(--rh-ink); font-size: 1.15rem; line-height: 1.25; font-weight: 750; letter-spacing: -.035em; }
.rh-class-summary { overflow-wrap: anywhere; margin-top: .64rem; margin-bottom: 1.35rem; color: var(--rh-muted); font-size: 1rem; line-height: 1.45; }
.rh-class-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem .7rem;
  margin-top: auto;
  padding-top: .55rem;
  border-top: 1px solid #d7ddde;
}
.rh-class-detail, .rh-class-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  font: inherit;
  font-weight: 650;
  font-size: .9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.rh-class-detail {
  color: #192525;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-color: #829696;
}
.rh-class-quick {
  gap: .3rem;
  padding: .35rem .58rem;
  border: 1px solid #bdd5d3;
  border-radius: .65rem;
  background: #e8f3f2;
  color: #145857;
}
.rh-class-quick[hidden] { display: none; }
.rh-class-quick > span { font-size: 1.15rem; line-height: 1; }
@media (hover: hover) {
  .rh-class-detail:hover { color: #075f5e; text-decoration-thickness: 2px; }
  .rh-class-quick:hover { background: #d9efed; border-color: #759e9a; }
}
.rh-class-dialog {
  position: fixed;
  inset: 0;
  width: min(34rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  margin: auto;
  background: #fff;
  border: 1px solid #d2d8d7;
  color: #151a1a;
  border-radius: 1.2rem;
  box-shadow: 0 2rem 6rem #12191b40;
}
.rh-class-dialog:not([open]) { display: none; }
.rh-class-dialog::backdrop { background: rgb(12 18 18 / 58%); }
.rh-active-class-dialog { overflow: hidden; }
.rh-dialog-body { padding: clamp(1.15rem, 4vw, 2.1rem); }
.rh-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rh-dialog-x {
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  min-height: 44px;
  background: #fff;
  border: 1px solid #d2d8d7;
  border-radius: 50%;
  color: #1d2525;
  font: 400 1.65rem/1 Arial, sans-serif;
}
.rh-dialog-body h2 { margin: 1rem 0 .65rem; color: #141919; font: inherit; font-size: clamp(1.55rem, 4.5vw, 2.2rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; }
.rh-dialog-body h2 span { color: #376962; }
.rh-dialog-body > p { margin: 0; color: var(--rh-muted, #4b5555); font-size: 1rem; line-height: 1.55; }
.rh-dialog-facts { margin: 1.15rem 0 1.45rem; padding: 0; }
.rh-dialog-facts > div { display: grid; grid-template-columns: minmax(7.1rem,.7fr) 1.3fr; gap: .9rem; border-top: 1px solid #dce2e1; padding: .65rem 0; }
.rh-dialog-facts > div:last-child { border-bottom: 1px solid #dce2e1; }
.rh-dialog-facts dt { color: #445252; font-size: .9rem; line-height: 1.4; }
.rh-dialog-facts dd { margin: 0; color: #202929; font-size: .97rem; font-weight: 650; line-height: 1.4; }
.rh-dialog-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.rh-dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: .5rem;
}
.rh-detail-link, .rh-selection-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rh-muted, #4b5555);
  font: inherit;
  font-size: .95rem;
  text-decoration: underline;
}
.rh-detail-link:hover, .rh-selection-return:hover {color: var(--rh-ink, #151a1a);}
.rh-selection-back {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .68rem 1.05rem;
  border: 1px solid #bbc6c5;
  border-radius: .58rem;
  background: #fff;
  text-decoration: none;
  color: #172020;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}
.rh-dialog-x:hover, .rh-selection-back:hover { background: #eef5f4; }
.rh-selection-back { margin-bottom: 1rem; }
.rh-selection-back > span { font-size: 1.6rem; font-weight: 400; line-height: .65; }
.rh-class-switcher { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; padding-block: 1.05rem; border-bottom: 1px solid #dfe4e3; }
.rh-class-switcher > span { color: #414e4d; font-size: .88rem; font-weight: 650; }
.rh-class-switcher > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.rh-class-switcher a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: .3rem .9rem; border: 1px solid #cbd4d3; border-radius: 2rem; background: #fff; color: #202727; text-decoration: none; font-weight: 650; font-size: .93rem; }
.rh-class-switcher a:hover { border-color: #387e7a; }
.rh-class-switcher a[aria-current='page'] { background: #dcf5f5; color: #151919; border-color: #16acab; }
@container (min-width: 65rem) { .rh-class-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@container (max-width: 31rem) {
  .rh-class-grid { grid-template-columns: minmax(0,1fr); gap: .6rem; }
  .rh-class-card { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); column-gap: .75rem; align-items: center; padding: .95rem; }
  .rh-class-top { display: contents; }
  .rh-class-top .rh-class-icon { grid-row: 1 / 3; grid-column: 1; }
  .rh-class-code { grid-row: 1; grid-column: 2; margin-bottom: .2rem; font-size: 1.6rem; }
  .rh-class-name { grid-row: 2; grid-column: 2; font-size: 1.06rem; overflow-wrap: anywhere; }
  .rh-class-summary { grid-column: 1 / -1; margin: .65rem 0 .78rem; }
  .rh-class-actions { grid-column: 1 / -1; gap: .3rem .85rem; margin: 0; }

}
@media (max-width: 27rem) {
  .rh-dialog-facts > div { grid-template-columns: 1fr; gap: .18rem; }
  .rh-dialog-actions > * { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rh-dialog-enter {
    from { opacity: 0; transform: translateY(.3rem) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes rh-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
  .rh-class-dialog[open] { animation: rh-dialog-enter 170ms cubic-bezier(.2,.7,.25,1); }
  .rh-class-dialog[open]::backdrop { animation: rh-backdrop-enter 150ms ease-out; }
}

.rh-compare {
  max-width: 62rem;
  margin-block: clamp(2rem, 4.6vw, 4.2rem) 2rem;
}
.rh-compare h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.1vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.05em;
}
.rh-compare table {
  width: 100%;
  margin: 0 0 .85rem;
  border-spacing: 0;
  table-layout: fixed;
  text-align: start;
}
.rh-compare :is(th, td) {
  border-bottom: 1px solid #d8dfe0;
  padding: .8rem .9rem;
  vertical-align: top;
  font-size: 1rem;
  line-height: 1.36;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.rh-compare th { text-align: start; color: #192525; font-weight: 700; }
.rh-compare thead th { background: #ecf5f4; color: #164746; }
.rh-compare thead th:first-child { width: 20%; border-top-left-radius: .8rem; }
.rh-compare thead th:nth-child(2) { width: 34%; }
.rh-compare thead th:last-child { border-top-right-radius: .8rem; }
.rh-compare p { max-width: 73ch; margin-top: .5rem; color: var(--muted); }
.rh-compare a { color: #155e5c; }
@media (max-width: 27rem) {
  .rh-compare :is(th, td) { padding: .64rem .32rem; font-size: .95rem; }
  .rh-compare thead th:first-child { width: 19%; }
  .rh-compare thead th:nth-child(2) { width: 34%; }
}
