/* School profile module — scoped to .rbl-school-profile */

.rbl-school-profile {
  padding: 24px 0 56px;
}

.rbl-school-bc {
  margin-bottom: 20px;
}

.rbl-school-hero {
  margin-bottom: 20px;
  padding: 24px;
  background: var(--bg, #f4f6f8);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.rbl-school-hero-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.rbl-school-hero-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rbl-school-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rbl-school-hero-logo-fallback {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand, #f76c1b);
}

.rbl-school-hero-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--ink, #1a1a2e);
  margin: 0 0 8px;
  line-height: 1.2;
}

.rbl-school-hero-meta {
  margin: 0 0 8px;
  color: var(--ink-muted, #5c6370);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.rbl-school-chip {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 52, 102, 0.08);
  color: var(--ink, #1a1a2e);
  border-radius: 999px;
}

.rbl-school-hero-stats {
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.rbl-school-hero-rating,
.rbl-school-hero-downloads {
  margin: 0;
  font-size: 1rem;
}

.rbl-school-hero-downloads-icon {
  margin-right: 2px;
}

.rbl-school-hero-rating-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  padding: 2px 4px;
  margin: 0 0 4px -4px;
  transition: background 0.15s, color 0.15s;
}

.rbl-school-hero-rating-link:hover {
  background: rgba(247, 108, 27, 0.1);
  color: var(--brand, #f76c1b);
}

.rbl-school-hero-rating-link:focus-visible {
  outline: 2px solid var(--brand, #f76c1b);
  outline-offset: 2px;
}

#school-reviews-list {
  scroll-margin-top: 96px;
}

.rbl-school-reviews-list:focus {
  outline: none;
}

.rbl-school-profile {
  scroll-behavior: smooth;
}

.rbl-school-stars {
  color: #e6a817;
  margin-right: 4px;
}

.rbl-school-review-count {
  color: var(--ink-muted, #5c6370);
  font-weight: 500;
}

.rbl-school-category-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.rbl-school-category-card {
  margin: 0;
}

.rbl-school-category-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg, #f4f6f8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.15s, background 0.15s;
}

a.rbl-school-category-link:hover {
  border-color: var(--brand, #f76c1b);
  background: rgba(247, 108, 27, 0.06);
}

.rbl-school-category-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink, #1a1a2e);
}

.rbl-school-category-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-tabs {
  margin-bottom: 28px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.rbl-school-tabs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rbl-school-tab {
  display: block;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-muted, #5c6370);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.rbl-school-tab:hover {
  color: var(--ink, #1a1a2e);
}

.rbl-school-tab.is-active {
  color: var(--brand, #f76c1b);
  border-bottom-color: var(--brand, #f76c1b);
}

.rbl-school-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.rbl-school-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--ink, #1a1a2e);
}

.rbl-school-about {
  line-height: 1.65;
  color: var(--ink, #1a1a2e);
  font-size: 0.98rem;
}

.rbl-school-muted {
  color: var(--ink-muted, #5c6370);
  margin: 0 0 12px;
}

.rbl-school-facts {
  margin: 0;
}

.rbl-school-fact {
  margin-bottom: 14px;
}

.rbl-school-fact:last-child {
  margin-bottom: 0;
}

.rbl-school-fact dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted, #5c6370);
  margin-bottom: 4px;
}

.rbl-school-fact dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink, #1a1a2e);
  word-break: break-word;
}

.rbl-school-fact a {
  color: var(--brand, #f76c1b);
  font-weight: 600;
}

.rbl-school-sidebar-card {
  position: sticky;
  top: 88px;
}

/* Information tab previews */

.rbl-school-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 4px;
}

.rbl-school-preview-head .rbl-school-panel-title {
  margin-bottom: 0;
}

.rbl-school-preview-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand, #f76c1b);
  text-decoration: none;
  white-space: nowrap;
}

.rbl-school-preview-link:hover {
  text-decoration: underline;
}

.rbl-school-preview-footer {
  margin: 16px 0 0;
}

.rbl-school-review-list--preview .rbl-school-review-card {
  padding: 16px 0;
}

.rbl-school-review-list--preview .rbl-school-review-card:first-child {
  padding-top: 8px;
}

.rbl-school-preview-papers {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.rbl-school-preview-papers li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rbl-school-preview-papers li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rbl-school-preview-paper-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink, #1a1a2e);
  text-decoration: none;
  line-height: 1.45;
  display: block;
}

.rbl-school-preview-paper-link:hover {
  color: var(--brand, #f76c1b);
}

/* Nearby schools (Information tab) */

.rbl-school-nearby-row {
  margin-top: 4px;
}

.rbl-school-nearby-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px 24px;
}

.rbl-school-nearby-item {
  margin: 0;
  padding: 0;
}

.rbl-school-nearby-link {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink, #1a1a2e);
  text-decoration: none;
  display: inline-block;
  line-height: 1.35;
}

.rbl-school-nearby-link:hover {
  color: var(--brand, #f76c1b);
}

.rbl-school-nearby-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-coming-soon .rbl-btn {
  margin-top: 8px;
}

/* Reviews tab */

.rbl-school-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.rbl-school-reviews-count-subline {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.9rem;
}

.rbl-school-reviews-intro {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-reviews-sidebar-facts {
  margin-top: 20px;
}

.rbl-school-facts-list {
  margin: 0 0 16px;
}

.rbl-school-facts-row {
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.rbl-school-facts-row dt {
  margin: 0;
  font-weight: 700;
  color: var(--ink, #1a1a2e);
}

.rbl-school-facts-row dd {
  margin: 0;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-facts-row a {
  color: var(--brand, #f76c1b);
  text-decoration: none;
  font-weight: 600;
}

.rbl-school-facts-row a:hover {
  text-decoration: underline;
}

.rbl-school-reviews-sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rbl-school-reviews-sidebar-nav li + li {
  margin-top: 8px;
}

.rbl-school-reviews-sidebar-nav a {
  font-weight: 700;
  color: var(--brand, #f76c1b);
  text-decoration: none;
}

.rbl-school-reviews-sidebar-nav a:hover {
  text-decoration: underline;
}

.rbl-school-write-review-link {
  font-weight: 700;
  color: var(--brand, #f76c1b);
  text-decoration: none;
}

.rbl-school-write-review-link:hover {
  text-decoration: underline;
}

.rbl-school-review-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.rbl-school-review-card {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rbl-school-review-card:last-child {
  border-bottom: none;
}

.rbl-school-review-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.rbl-school-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 52, 102, 0.1);
  color: var(--ink, #1a1a2e);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.rbl-school-review-author {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.rbl-school-review-date {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-review-stars {
  color: #e6a817;
  font-size: 0.95rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.rbl-school-review-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.rbl-school-review-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink, #1a1a2e);
}

.rbl-school-review-school {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.rbl-school-review-school a {
  color: var(--ink, #1a1a2e);
  text-decoration: none;
}

.rbl-school-review-school a:hover {
  color: var(--brand, #f76c1b);
  text-decoration: underline;
}

.rbl-school-review-city {
  font-weight: 500;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-review-city::before {
  content: " · ";
}

.rbl-school-review-more a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand, #f76c1b);
  text-decoration: none;
}

.rbl-school-review-more a:hover {
  text-decoration: underline;
}

.rbl-school-review-list--public {
  margin-top: 0;
}

.rbl-school-rating-panel {
  position: sticky;
  top: 88px;
}

.rbl-school-rating-big {
  margin: 0 0 4px;
  font-size: 2rem;
  line-height: 1;
}

.rbl-school-rating-big strong {
  font-weight: 800;
}

.rbl-school-breakdown {
  margin-top: 20px;
}

.rbl-school-breakdown-row {
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.rbl-school-breakdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-breakdown-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.rbl-school-breakdown-fill {
  display: block;
  height: 100%;
  background: var(--brand, #f76c1b);
  border-radius: 4px;
  min-width: 0;
}

.rbl-school-breakdown-count {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: right;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-review-form-wrap {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rbl-school-review-form .form-label {
  font-weight: 700;
  font-size: 0.85rem;
}

.rbl-school-star-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rbl-school-star-input-label {
  margin: 0;
  cursor: pointer;
}

.rbl-school-star-input-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rbl-school-star-input-label span {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-star-input-label input:checked + span,
.rbl-school-star-input-label:hover span {
  border-color: var(--brand, #f76c1b);
  color: var(--brand, #f76c1b);
  background: rgba(247, 108, 27, 0.08);
}

.rbl-school-review-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.rbl-school-review-status--pending {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #6b5700;
}

.rbl-school-review-status--approved {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}

/* Downloads tab */

.rbl-school-downloads-intro {
  margin: 0 0 20px;
  line-height: 1.65;
  color: var(--ink, #1a1a2e);
  font-size: 0.98rem;
}

.rbl-school-downloads-stats {
  margin: 0 0 20px;
  padding: 16px 20px;
  background: var(--bg, #f4f6f8);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.rbl-school-downloads-stats-total {
  margin: 0 0 10px;
  font-size: 1rem;
}

.rbl-school-downloads-stats-coverage {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-downloads-stats-coverage strong {
  color: var(--ink, #1a1a2e);
  font-weight: 700;
}

.rbl-school-downloads-stats-types {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.rbl-school-downloads-stats-types li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-downloads-subhead {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--ink, #1a1a2e);
}

.rbl-school-downloads-popular {
  margin-bottom: 28px;
}

.rbl-school-downloads-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.rbl-school-downloads-popular-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.15s;
}

.rbl-school-downloads-popular-link:hover {
  border-color: var(--brand, #f76c1b);
}

.rbl-school-downloads-popular-primary {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink, #1a1a2e);
  line-height: 1.35;
}

.rbl-school-downloads-popular-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-downloads-popular-dl {
  font-size: 0.8rem;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-downloads-upload-banner--top {
  margin: 0 0 28px;
  text-align: left;
}

.rbl-school-downloads-upload-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.rbl-school-downloads-upload-text {
  margin: 0 0 14px;
  color: var(--ink-muted, #5c6370);
  font-size: 0.95rem;
  line-height: 1.5;
}

.rbl-school-downloads-count {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-downloads-empty {
  padding: 24px 0;
  text-align: center;
}

.rbl-school-downloads-class {
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.rbl-school-downloads-class-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 800;
  background: var(--bg, #f4f6f8);
  user-select: none;
}

.rbl-school-downloads-class-summary::-webkit-details-marker {
  display: none;
}

.rbl-school-downloads-class-summary::before {
  content: '▸ ';
  color: var(--brand, #f76c1b);
  font-size: 0.9rem;
}

.rbl-school-downloads-class[open] > .rbl-school-downloads-class-summary::before {
  content: '▾ ';
}

.rbl-school-downloads-class-body {
  padding: 16px 20px 8px;
}

.rbl-school-downloads-class-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink, #1a1a2e);
  display: inline;
}

.rbl-school-downloads-class-count {
  font-weight: 600;
  color: var(--ink-muted, #5c6370);
  font-size: 0.9rem;
}

.rbl-school-downloads-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.rbl-school-downloads-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink, #1a1a2e);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.rbl-school-downloads-jump-chip:hover {
  border-color: var(--brand, #f76c1b);
  color: var(--brand, #f76c1b);
}

.rbl-school-downloads-jump-count {
  font-weight: 600;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-downloads-subject {
  margin-bottom: 24px;
  scroll-margin-top: 96px;
}

.rbl-school-downloads-class {
  scroll-margin-top: 88px;
}

.rbl-school-downloads-subject-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink-soft, #3d4152);
}

.rbl-school-downloads-paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.rbl-school-downloads-paper-grid .rbl-paper-card {
  height: 100%;
}

.rbl-school-downloads-upload-banner {
  padding: 20px 24px;
  background: rgba(247, 108, 27, 0.08);
  border: 1px dashed rgba(247, 108, 27, 0.35);
  border-radius: 12px;
}

/* Downloads filters (Phase 2) */

.rbl-school-downloads-filters {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rbl-school-downloads-filter-row {
  margin-bottom: 14px;
}

.rbl-school-downloads-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted, #5c6370);
  margin-bottom: 8px;
}

.rbl-school-downloads-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rbl-school-downloads-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink, #1a1a2e);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}

.rbl-school-downloads-chip:hover {
  border-color: var(--brand, #f76c1b);
  color: var(--brand, #f76c1b);
}

.rbl-school-downloads-chip.is-active {
  background: rgba(247, 108, 27, 0.12);
  border-color: var(--brand, #f76c1b);
  color: var(--brand, #f76c1b);
}

.rbl-school-downloads-chip-count {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-downloads-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.rbl-school-downloads-search-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.rbl-school-downloads-clear,
.rbl-school-downloads-clear-btn {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--brand, #f76c1b);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
}

.rbl-school-downloads-clear:hover,
.rbl-school-downloads-clear-btn:hover {
  text-decoration: underline;
}

.rbl-school-downloads-clear.is-hidden {
  display: none;
}

.rbl-school-downloads-results {
  min-height: 120px;
  transition: opacity 0.15s ease;
}

.rbl-school-downloads-results.rbl-is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.rbl-school-downloads-results-msg {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted, #5c6370);
}

.rbl-school-downloads-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rbl-school-downloads-related-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 20px;
}

.rbl-school-downloads-related-list a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink, #1a1a2e);
  text-decoration: none;
}

.rbl-school-downloads-related-list a:hover {
  color: var(--brand, #f76c1b);
}

.rbl-paper-card--school-profile .rbl-paper-card-type-line {
  margin: 0 0 6px;
}

.rbl-paper-card--school-profile .rbl-paper-card-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

.rbl-paper-card--school-profile .rbl-paper-card-chapter-line {
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-muted, #5c6370);
}

.rbl-paper-card-dl-muted {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted, #5c6370);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#upload-study-material {
  scroll-margin-top: 6rem;
}

.rbl-upload-success-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid #a3cfbb;
  border-radius: 8px;
  background: #d1e7dd;
  color: #0f5132;
}

.rbl-upload-success-banner__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.rbl-upload-success-banner__text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.rbl-add-email-panel {
  margin: 0 0 1.25rem;
}

@media (max-width: 991px) {
  .rbl-school-sidebar-card,
  .rbl-school-rating-panel {
    position: static;
  }

  .rbl-school-hero-main {
    flex-direction: column;
  }
}
