.rbl-sv4 .rbl-v4-breadcrumb {
  margin-bottom: 16px;
}

.rbl-sv4-hero {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.rbl-sv4-identity .rbl-v4-subject-icon {
  width: 42px;
  height: 42px;
}

.rbl-sv4-identity .rbl-v4-subject-icon svg {
  width: 23px;
  height: 23px;
}

.rbl-sv4-hero h1 {
  margin: 3px 0 7px;
  color: var(--v4-text);
  font-family: var(--rbl-font-display, "Outfit", sans-serif);
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.rbl-sv4-hero-copy > p:not(.rbl-v4-eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--v4-muted);
  font-size: 15px;
}

.rbl-sv4-hero-copy > strong {
  display: block;
  margin-top: 8px;
  color: var(--v4-text);
  font-size: 15px;
}

.rbl-sv4-hero-copy > strong span {
  color: var(--v4-muted);
  font-size: 13px;
  font-weight: 500;
}

.rbl-sv4-search {
  max-width: none;
  margin-bottom: 22px;
}

.rbl-sv4-search button {
  height: 44px;
}

/* Unified Subject Hub resource explorer (desktop pills + mobile 2-col grid). */
.rbl-sv4-rex {
  margin: 0 0 28px;
  min-width: 0;
  max-width: 100%;
}

.rbl-sv4-rex__head {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.rbl-sv4-rex__head-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff7ed;
}

.rbl-sv4-rex__head-icon img {
  display: block;
  width: 18px;
  height: 18px;
}

.rbl-sv4-rex__title {
  margin: 0;
  color: var(--v4-text);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.rbl-sv4-rex__lead {
  margin: 3px 0 0;
  color: var(--v4-muted);
  font-size: .78rem;
  line-height: 1.35;
}

.rbl-sv4-rex__eyebrow {
  display: none;
  color: var(--v4-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .rbl-sv4-rex__lead {
    font-size: var(--rbl-fs-supporting, 14px);
    line-height: 1.4;
    color: var(--rbl-muted-readable, #4b5563);
  }

  .rbl-sv4-rex__eyebrow,
  .rbl-sv4-rex__eyebrow--collections {
    font-size: var(--rbl-fs-eyebrow, 12px);
    color: var(--rbl-muted-readable, #4b5563);
  }
}

.rbl-sv4-rex__types-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.rbl-sv4-rex__all {
  color: var(--v4-primary);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.rbl-sv4-rex__all:hover,
.rbl-sv4-rex__all:focus-visible {
  text-decoration: underline;
}

.rbl-sv4-rex__types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.rbl-sv4-rex__type {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid #e1e6ed;
  border-radius: 999px;
  background: #fff;
  color: #152238;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  min-width: 0;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}

.rbl-sv4-rex__type-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #334155;
}

.rbl-sv4-rex__type-icon img,
.rbl-sv4-rex__type-icon .rbl-sv4-rex__type-svg {
  display: block;
  width: 17px;
  height: 17px;
}

.rbl-sv4-rex__type-icon .rbl-sv4-rex__type-svg {
  flex: 0 0 auto;
  overflow: visible;
}

/* Soft pastel badges + stronger ink (Subject Hub scoped; shared SVG files untouched). */
.rbl-sv4-rex__type-icon--violet { background: #f3effc; color: #5b3db5; }
.rbl-sv4-rex__type-icon--blue { background: #eef5ff; color: #1557b0; }
.rbl-sv4-rex__type-icon--teal { background: #eefaf6; color: #0e7a58; }
.rbl-sv4-rex__type-icon--coral { background: #fff4ee; color: #b83a0e; }
.rbl-sv4-rex__type-icon--cyan { background: #eef9fb; color: #0f6f82; }
.rbl-sv4-rex__type-icon--amber { background: #fff7eb; color: #b45309; }
.rbl-sv4-rex__type-icon--rose { background: #fff1f3; color: #b83645; }
.rbl-sv4-rex__type-icon--slate { background: #f2f4f7; color: #475569; }

.rbl-sv4-rex__type-copy {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.rbl-sv4-rex__type.is-active,
.rbl-sv4-rex__type:hover,
.rbl-sv4-rex__type:focus-visible {
  border-color: color-mix(in srgb, var(--v4-primary) 35%, #e1e6ed);
  background: #fffaf6;
  color: #152238;
}

.rbl-sv4-rex__type:active {
  transform: translateY(0.5px);
}

.rbl-sv4-rex__type:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--v4-primary) 45%, transparent);
  outline-offset: 1px;
}

.rbl-sv4-rex__type-name {
  min-width: 0;
  font-weight: 650;
  line-height: 1.25;
  color: #152238;
}

.rbl-sv4-rex__type small {
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rbl-sv4-rex__collections {
  margin-top: 14px;
}

.rbl-sv4-rex__eyebrow--collections {
  display: none;
}

/* Desktop/tablet: keep type pills; show full compact collections card. */
@media (min-width: 768px) {
  .rbl-sv4-rex__types-bar {
    justify-content: flex-start;
    margin-bottom: 12px;
  }

  .rbl-sv4-rex__all {
    display: none;
  }

  .rbl-sv4-rex__type--all {
    display: inline-flex;
  }

  .rbl-sv4-rex__collections .rbl-rc-collections--embedded {
    margin-top: 4px;
  }
}

/* Mobile: single unified explorer card + 2-column type grid. */
@media (max-width: 767.98px) {
  .rbl-sv4-rex {
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--v4-border);
    border-radius: 14px;
    background: #fff;
  }

  .rbl-sv4-rex__head {
    display: flex;
  }

  .rbl-sv4-rex__eyebrow {
    display: inline-block;
  }

  .rbl-sv4-rex__types-bar {
    justify-content: space-between;
    margin: 0 0 8px;
  }

  .rbl-sv4-rex__all {
    display: inline-flex;
    align-items: center;
    font-size: var(--rbl-fs-supporting, 14px);
  }

  .rbl-sv4-rex__type--all {
    display: none;
  }

  .rbl-sv4-rex__types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rbl-sv4-rex__type {
    min-height: 44px;
    border-radius: 10px;
    padding: 8px 9px;
    white-space: normal;
    align-items: flex-start;
    min-width: 0;
  }

  .rbl-sv4-rex__type-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    margin-top: 1px;
  }

  .rbl-sv4-rex__type-icon img,
  .rbl-sv4-rex__type-icon .rbl-sv4-rex__type-svg {
    width: 16px;
    height: 16px;
  }

  .rbl-sv4-rex__type-copy {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    overflow: visible;
  }

  .rbl-sv4-rex__type-name {
    font-size: .76rem;
    line-height: 1.28;
    font-weight: 650;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .rbl-sv4-rex__type small {
    flex: 0 0 auto;
    font-size: var(--rbl-fs-meta, 13px);
    color: var(--rbl-muted-readable, #4b5563);
  }

  .rbl-sv4-rex__collections {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
  }

  .rbl-sv4-rex__eyebrow--collections {
    display: block;
    margin-bottom: 8px;
  }

  /* Flatten embedded collections into the explorer card. */
  .rbl-sv4 .rbl-rc-collections--embedded {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__head,
  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__count-badge,
  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__family-head {
    display: none;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__family {
    display: contents;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chips {
    display: contents;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip {
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--rbl-fs-meta, 13px);
    font-weight: 600;
    gap: 5px;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip--practice {
    background: #f3f8ff;
    border-color: #d4e5fa;
    color: #152238;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip--exam {
    background: #fff6ee;
    border-color: #f3dcc7;
    color: #152238;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip--practice small {
    color: #3b6ea8;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip--exam small {
    color: #c2410c;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip--practice::before,
  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip--exam::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip--practice::before {
    background: #5b8fd4;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip--exam::before {
    background: #ea7a2f;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip small::before {
    content: "• ";
    font-weight: 650;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip:hover,
  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chip:focus-visible {
    border-color: color-mix(in srgb, var(--v4-primary) 40%, #d4e5fa);
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__more {
    display: block;
    width: 100%;
    margin-top: 8px;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__more-summary {
    display: flex;
    width: 100%;
    justify-content: center;
    min-height: 36px;
    border-radius: 10px;
    background: #fff7ed;
    border-color: #fdba74;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__more[open] {
    width: 100%;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chips--more {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rbl-sv4 .rbl-rc-collections--embedded .rbl-rc-collections__chips--more .rbl-rc-collections__chip {
    display: inline-flex;
  }
}

@media (max-width: 359.98px) {
  .rbl-sv4-rex__type {
    padding: 8px 8px;
    gap: 7px;
  }

  .rbl-sv4-rex__type-icon {
    width: 26px;
    height: 26px;
  }

  .rbl-sv4-rex__type-icon img,
  .rbl-sv4-rex__type-icon .rbl-sv4-rex__type-svg {
    width: 15px;
    height: 15px;
  }

  /* Prefer wrap over tiny single-line type; keep counts readable. */
  .rbl-sv4-rex__type-name {
    font-size: .74rem;
    line-height: 1.3;
  }

  .rbl-sv4-rex__type small {
    font-size: 12.5px;
  }
}

.rbl-sv4-chapters {
  margin-bottom: 38px;
}

.rbl-sv4-section-head {
  margin-bottom: 14px;
}

/* Mobile-only shortcut past long chapter discovery into the resource list. */
.rbl-sv4-jump-resources {
  display: none;
  margin-top: 8px;
  color: var(--v4-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.rbl-sv4-jump-resources:hover,
.rbl-sv4-jump-resources:focus-visible {
  text-decoration: underline;
}

.rbl-sv4-jump-resources:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--v4-primary) 55%, transparent);
  outline-offset: 3px;
}

.rbl-sv4-section-head h2,
.rbl-sv4-results-head h2,
.rbl-sv4-support h2,
.rbl-sv4-faq h2,
.rbl-sv4-related h2 {
  margin: 0;
  color: var(--v4-text);
  font-family: var(--rbl-font-display, "Outfit", sans-serif);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.25;
}

.rbl-sv4-section-head p,
.rbl-sv4-results-head p {
  margin: 4px 0 0;
  color: var(--v4-muted);
  font-size: 14px;
}

.rbl-sv4-discipline-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.rbl-sv4-discipline-tabs::-webkit-scrollbar {
  display: none;
}

.rbl-sv4-discipline-tabs a {
  min-height: 44px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--v4-border);
  border-radius: 10px;
  background: var(--v4-surface);
  color: var(--v4-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.rbl-sv4-discipline-tabs a.is-active {
  border-color: var(--v4-text);
  background: var(--v4-text);
  color: #fff;
}

.rbl-sv4-chapter-groups {
  display: grid;
  gap: 10px;
}

.rbl-sv4-chapter-group {
  --sv4-discipline: #326f83;
  --sv4-discipline-soft: #edf7f9;
  overflow: hidden;
  border: 1px solid var(--v4-border);
  border-radius: 13px;
  background: var(--v4-surface);
  scroll-margin-top: 86px;
}

.rbl-sv4-chapter-group--biology {
  --sv4-discipline: #34785a;
  --sv4-discipline-soft: #edf8f2;
}

.rbl-sv4-chapter-group--physics {
  --sv4-discipline: #6256a2;
  --sv4-discipline-soft: #f2f0fb;
}

.rbl-sv4-chapter-group--environment {
  --sv4-discipline: #6d762e;
  --sv4-discipline-soft: #f5f7e9;
}

.rbl-sv4-chapter-group--history {
  --sv4-discipline: #9a5a24;
  --sv4-discipline-soft: #fbf3ea;
}

.rbl-sv4-chapter-group--geography {
  --sv4-discipline: #28746d;
  --sv4-discipline-soft: #ebf7f5;
}

.rbl-sv4-chapter-group--civics {
  --sv4-discipline: #4f6096;
  --sv4-discipline-soft: #f0f2fa;
}

.rbl-sv4-chapter-group--economics {
  --sv4-discipline: #557329;
  --sv4-discipline-soft: #f1f6e9;
}

.rbl-sv4-chapter-group--general-social-science {
  --sv4-discipline: #7b674c;
  --sv4-discipline-soft: #f6f3ee;
}

.rbl-sv4-chapter-group > summary {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--sv4-discipline) 14%, var(--v4-border));
  background: var(--sv4-discipline-soft);
  cursor: pointer;
  list-style: none;
}

.rbl-sv4-chapter-group > summary::-webkit-details-marker {
  display: none;
}

.rbl-sv4-chapter-group > summary .rbl-v4-subject-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: color-mix(in srgb, var(--sv4-discipline) 12%, #fff);
  color: var(--sv4-discipline);
}

.rbl-sv4-chapter-group > summary .rbl-v4-subject-icon svg {
  width: 23px;
  height: 23px;
}

.rbl-sv4-chapter-group > summary > span {
  min-width: 0;
}

.rbl-sv4-chapter-group > summary strong,
.rbl-sv4-chapter-group > summary small {
  display: block;
}

.rbl-sv4-chapter-group > summary strong {
  color: var(--v4-text);
  font-family: var(--rbl-font-display, "Outfit", sans-serif);
  font-size: 16px;
  font-weight: 750;
}

.rbl-sv4-chapter-group > summary small {
  margin-top: 1px;
  color: var(--v4-muted);
  font-size: 12px;
}

@media (max-width: 767.98px) {
  .rbl-sv4-chapter-group > summary small,
  .rbl-sv4-chapter-list small {
    font-size: var(--rbl-fs-meta, 13px);
    color: var(--rbl-muted-readable, #4b5563);
  }
}

.rbl-sv4-chapter-group > summary > svg {
  width: 20px;
  height: 20px;
  margin-left: auto;
  fill: none;
  stroke: var(--v4-muted);
  stroke-width: 1.8;
  transition: transform .15s ease;
}

.rbl-sv4-chapter-group[open] > summary > svg {
  transform: rotate(180deg);
}

.rbl-sv4-chapter-list {
  background: var(--v4-surface);
}

.rbl-sv4-chapter-list > a {
  min-height: 55px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 14px;
  border-top: 1px solid #f0f1f3;
  color: var(--v4-text);
  text-decoration: none;
}

.rbl-sv4-chapter-list > a:first-child {
  border-top: 0;
}

.rbl-sv4-chapter-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f2f4f7;
  color: #596274;
  font-size: 11px;
  font-weight: 750;
}

.rbl-sv4-chapter-list strong,
.rbl-sv4-chapter-list small {
  display: block;
}

.rbl-sv4-chapter-list strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.rbl-sv4-chapter-list small {
  margin-top: 2px;
  color: var(--v4-muted);
  font-size: 12px;
}

.rbl-sv4-chapter-list > a > span:last-child {
  color: var(--v4-muted);
  font-size: 20px;
}

.rbl-sv4-explorer {
  display: grid;
  gap: 18px;
  align-items: start;
  scroll-margin-top: 88px;
}

.rbl-sv4-filters-desktop,
.rbl-sv4-sort-desktop {
  display: none;
}

.rbl-sv4-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.rbl-sv4-mobile-tools {
  position: sticky;
  top: calc(var(--rbl-header-height, 56px) + 4px);
  z-index: 18;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 0 9px;
  background: var(--v4-bg);
}

.rbl-sv4-mobile-tools button,
.rbl-sv4-mobile-tools select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--v4-border-strong);
  border-radius: 10px;
  background: var(--v4-surface);
  color: var(--v4-text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.rbl-sv4-mobile-tools button {
  cursor: pointer;
}

.rbl-sv4-mobile-tools button span {
  margin-right: 5px;
}

.rbl-sv4-active-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.rbl-sv4-active-filters a {
  min-height: 34px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--v4-border);
  border-radius: 999px;
  background: var(--v4-surface);
  color: var(--v4-text);
  font-size: 12px;
  text-decoration: none;
}

.rbl-sv4-active-filters .rbl-sv4-clear {
  border-color: transparent;
  background: transparent;
  color: var(--v4-primary);
  font-weight: 700;
}

.rbl-sv4-empty {
  padding: 32px 18px;
  border: 1px dashed var(--v4-border-strong);
  border-radius: 13px;
  background: var(--v4-surface);
  text-align: center;
}

.rbl-sv4-empty h3 {
  margin: 0;
  font-family: var(--rbl-font-display, "Outfit", sans-serif);
  font-size: 18px;
}

.rbl-sv4-empty p {
  margin: 7px auto 13px;
  color: var(--v4-muted);
  font-size: 14px;
}

.rbl-sv4-empty a {
  color: var(--v4-primary);
  font-size: 14px;
  font-weight: 700;
}

.rbl-sv4-filter-form {
  font-size: 14px;
}

.rbl-sv4-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.rbl-sv4-filter-heading strong {
  font-family: var(--rbl-font-display, "Outfit", sans-serif);
  font-size: 16px;
}

.rbl-sv4-filter-heading a {
  color: var(--v4-primary);
  font-size: 12px;
  font-weight: 700;
}

.rbl-sv4-filter-group {
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--v4-border);
}

.rbl-sv4-filter-group legend {
  margin-bottom: 7px;
  padding: 0;
  color: var(--v4-text);
  font-size: 13px;
  font-weight: 750;
}

.rbl-sv4-filter-group label {
  min-height: 34px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  padding: 5px 0;
  color: #344054;
  cursor: pointer;
  line-height: 1.35;
}

.rbl-sv4-filter-group input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--v4-primary);
}

.rbl-sv4-filter-group small {
  color: var(--v4-muted);
  font-size: 11px;
}

.rbl-sv4-filter-subheading {
  margin: 9px 0 2px;
  color: var(--v4-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rbl-sv4-filter-more summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--v4-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.rbl-sv4-apply {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--v4-primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.rbl-sv4-support,
.rbl-sv4-faq,
.rbl-sv4-related {
  margin-top: 40px;
}

.rbl-sv4-support {
  padding: 20px;
  border: 1px solid var(--v4-border);
  border-radius: 14px;
  background: var(--v4-surface);
}

.rbl-sv4-support-copy {
  margin-top: 9px;
  color: var(--v4-muted);
  font-size: 14px;
  line-height: 1.65;
}

.rbl-sv4-support-copy p {
  margin: 8px 0 0;
}

.rbl-sv4-faq > details {
  border-bottom: 1px solid var(--v4-border);
}

.rbl-sv4-faq > details > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}

.rbl-sv4-faq > details > summary span {
  color: var(--v4-primary);
  font-size: 20px;
}

.rbl-sv4-faq > details > p {
  margin: -2px 0 14px;
  color: var(--v4-muted);
  font-size: 14px;
  line-height: 1.6;
}

.rbl-sv4-related > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.rbl-sv4-related a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--v4-border);
  border-radius: 10px;
  background: var(--v4-surface);
  color: var(--v4-text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.rbl-sv4-filter-dialog .rbl-v4-drawer-head p {
  margin: 2px 0 0;
  color: var(--v4-muted);
  font-size: 12px;
}

@media (min-width: 768px) {
  .rbl-sv4-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .rbl-sv4-identity .rbl-v4-subject-icon {
    width: 48px;
    height: 48px;
  }

  .rbl-sv4-related > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .rbl-sv4-jump-resources {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
}

@media (min-width: 900px) {
  .rbl-sv4 .rbl-v4-container {
    padding-top: 18px;
  }

  .rbl-sv4-hero {
    margin-bottom: 22px;
  }

  .rbl-sv4-hero h1 {
    font-size: 36px;
  }

  .rbl-sv4-search {
    margin-bottom: 28px;
  }

  .rbl-sv4-types {
    margin-bottom: 40px;
  }

  .rbl-sv4-types a {
    min-height: 40px;
    font-size: 14px;
  }

  .rbl-sv4-discipline-tabs a {
    min-height: 38px;
  }

  .rbl-sv4-section-head h2,
  .rbl-sv4-results-head h2 {
    font-size: 24px;
  }

  .rbl-sv4-chapter-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .rbl-sv4-chapter-groups--1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .rbl-sv4-chapter-groups--1 .rbl-sv4-chapter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: var(--v4-surface);
  }

  .rbl-sv4-chapter-groups--1 .rbl-sv4-chapter-list > a {
    background: var(--v4-surface);
  }

  .rbl-sv4-chapter-groups--1 .rbl-sv4-chapter-list > a:nth-child(-n+2) {
    border-top: 0;
  }

  .rbl-sv4-chapter-groups--1 .rbl-sv4-chapter-list > a:nth-child(even) {
    border-left: 1px solid var(--v4-border);
  }

  .rbl-sv4-chapter-group > summary {
    cursor: default;
  }

  .rbl-sv4-chapter-group > summary > svg {
    display: none;
  }

  .rbl-sv4-explorer {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
  }

  .rbl-sv4-filters-desktop {
    position: sticky;
    top: 82px;
    display: block;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 15px;
    border: 1px solid var(--v4-border);
    border-radius: 14px;
    background: var(--v4-surface);
    scrollbar-width: thin;
  }

  .rbl-sv4-sort-desktop {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--v4-muted);
    font-size: 12px;
  }

  .rbl-sv4-sort-desktop select {
    min-height: 42px;
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--v4-border-strong);
    border-radius: 10px;
    background: var(--v4-surface);
    color: var(--v4-text);
    font: inherit;
    font-size: 13px;
  }

  .rbl-sv4-mobile-tools {
    display: none;
  }

  .rbl-sv4-apply {
    display: none;
  }

  .rbl-sv4-support {
    padding: 24px;
  }
}

@media (min-width: 1200px) {
  .rbl-sv4-chapter-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rbl-sv4-chapter-groups--1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .rbl-sv4-chapter-groups--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rbl-sv4-chapter-groups--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rbl-sv4-chapter-groups--1 .rbl-sv4-chapter-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rbl-sv4-chapter-groups--1 .rbl-sv4-chapter-list > a:nth-child(even) {
    border-left: 0;
  }

  .rbl-sv4-chapter-groups--1 .rbl-sv4-chapter-list > a:nth-child(-n+3) {
    border-top: 0;
  }

  .rbl-sv4-chapter-groups--1 .rbl-sv4-chapter-list > a:not(:nth-child(3n+1)) {
    border-left: 1px solid var(--v4-border);
  }

  .rbl-sv4-explorer {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rbl-sv4 * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
