/* Support & Resources — Resource Bank (TES-inspired catalog) */

.hub-rb-hero {
  background: linear-gradient(135deg, var(--corp-midnight, #0f1f4d) 0%, #1a3278 55%, #243d8f 100%);
  color: #fff;
  padding: 2rem 1.5rem 2.5rem;
  margin: 0 0 1.5rem;
  border-radius: 0 0 12px 12px;
  position: relative;
  overflow: hidden;
}

.hub-rb-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -5%;
  width: 42%;
  max-width: 280px;
  aspect-ratio: 1;
  background: conic-gradient(
    from 200deg,
    #c4f542 0deg 55deg,
    #f4a4c8 55deg 110deg,
    #9b8cff 110deg 165deg,
    #5ec8f8 165deg 220deg,
    #ffe566 220deg 280deg,
    transparent 280deg
  );
  opacity: 0.35;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.hub-rb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.hub-rb-hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c4f542;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.hub-rb-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
}

.hub-rb-hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  opacity: 0.92;
  max-width: 36rem;
}

.hub-rb-hero-count {
  margin: 0 0 1.1rem;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 36rem;
}

.hub-rb-hero-count[hidden] {
  display: none;
}

.hub-rb-hero-count-num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #c4f542;
}

.hub-rb-search-row {
  --hub-rb-search-row-h: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hub-rb-search-wrap {
  position: relative;
  flex: 1 1 12rem;
  min-width: 0;
  min-height: var(--hub-rb-search-row-h);
}

.hub-rb-search {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: var(--hub-rb-search-row-h);
  box-sizing: border-box;
  background: #fff;
  border-radius: 6px;
  padding: 0 0.75rem;
}

.hub-rb-search input {
  flex: 1;
  border: none;
  padding: 0 0.5rem;
  font-size: 1rem;
  line-height: 1.25;
  background: transparent;
  color: #1a1a2e;
}

.hub-rb-search input:focus {
  outline: 2px solid var(--corp-deep-blue, #2563eb);
  outline-offset: 2px;
}

.hub-rb-search-btn,
.hub-rb-upload-top-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--hub-rb-search-row-h);
  height: var(--hub-rb-search-row-h);
  margin: 0;
  padding: 0 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
}

.hub-rb-upload-top-btn {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-upload-top-btn:hover,
.hub-rb-upload-top-btn:focus-visible {
  background: var(--corp-gold, #f2c94c);
  border-color: var(--corp-gold, #f2c94c);
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 20;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 31, 77, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  max-height: 16rem;
  overflow-y: auto;
}

.hub-rb-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  color: var(--corp-midnight, #0f1f4d);
  cursor: pointer;
}

.hub-rb-suggestion:hover,
.hub-rb-suggestion.is-active {
  background: var(--corp-pale, #f4f6fb);
}

.hub-rb-suggestion-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-rb-suggestion-chip {
  flex: 0 0 auto;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--corp-deep-blue, #2563eb);
  font-weight: 700;
}

.hub-rb-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-spotlight {
  margin: 0 0 2rem;
  padding: 1.15rem 1rem 1.35rem;
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.98) 0%, rgba(238, 243, 251, 0.95) 100%);
  border: 1px solid rgba(15, 31, 77, 0.1);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.hub-rb-spotlight-inner {
  max-width: 72rem;
}

.hub-rb-spotlight .hub-rb-section-title {
  margin-bottom: 1rem;
}

.hub-rb-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .hub-rb-spotlight-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hub-rb-card--spotlight .hub-rb-card-desc {
  -webkit-line-clamp: 2;
}

.hub-rb-browse {
  margin: 0 0 1.75rem;
}

.hub-rb-browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.hub-rb-browse-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--corp-stone, #5c6478);
}

.hub-rb-folder-toggle {
  display: inline-flex;
  padding: 0.2rem;
  gap: 0.15rem;
  background: var(--corp-pale, #f4f6fb);
  border: 1px solid rgba(15, 31, 77, 0.1);
  border-radius: 999px;
}

.hub-rb-folder-toggle-btn {
  border: none;
  background: transparent;
  color: var(--corp-stone, #5c6478);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.hub-rb-folder-toggle-btn.is-active,
.hub-rb-folder-toggle-btn[aria-selected="true"] {
  background: var(--corp-midnight, #0f1f4d);
  color: #fff;
}

.hub-rb-folder-toggle-btn:hover:not(.is-active),
.hub-rb-folder-toggle-btn:focus-visible:not(.is-active) {
  background: rgba(15, 31, 77, 0.08);
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .hub-rb-folders {
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  }
}

.hub-rb-folder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
  border: 1px solid rgba(15, 31, 77, 0.12);
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hub-rb-folder:hover,
.hub-rb-folder:focus-visible {
  border-color: var(--corp-deep-blue, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.hub-rb-folder.is-active {
  border-color: var(--corp-deep-blue, #2563eb);
  background: linear-gradient(165deg, #f8fafc 0%, #eef3fb 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}

.hub-rb-folder-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--corp-midnight, #0f1f4d);
  line-height: 1.3;
}

.hub-rb-folder-count {
  font-size: 0.72rem;
  color: var(--corp-stone, #5c6478);
}

.hub-rb-results {
  scroll-margin-top: 5rem;
  margin-top: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 31, 77, 0.12);
}

.hub-rb-results-head {
  margin: 0 0 1.15rem;
  max-width: 72rem;
}

.hub-rb-results-lead {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--corp-stone, #5c6478);
}

.hub-rb-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hub-rb-toolbar-actions .corp-btn {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  box-sizing: border-box;
  line-height: 1.25;
  vertical-align: middle;
}

.hub-rb-clear-filter {
  font-size: 0.82rem;
}

.hub-rb-associate-cap {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 8px;
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.hub-rb-count {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  font-size: 0.85rem;
  color: var(--corp-stone, #5c6478);
}

.hub-rb-gate {
  padding: 1rem 1.25rem;
  background: var(--corp-pale, #f4f6fb);
  border: 1px solid rgba(15, 31, 77, 0.12);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.hub-rb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .hub-rb-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.hub-rb-card--link {
  grid-column: span 1;
  min-height: 100%;
}

.hub-rb-link-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1rem 1.1rem;
  min-height: 10rem;
  background: linear-gradient(165deg, #f8fafc 0%, #eef3fb 55%, #e8eef8 100%);
  border-left: 4px solid var(--corp-deep-blue, #2563eb);
  height: 100%;
}

.hub-rb-link-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.hub-rb-link-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--corp-deep-blue, #2563eb);
}

.hub-rb-link-title {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-link-desc {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--corp-stone, #5c6478);
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.hub-rb-link-host {
  margin: 0;
  font-size: 0.68rem;
  color: var(--corp-stone, #5c6478);
  word-break: break-all;
}

.hub-rb-link-actions {
  margin-top: auto;
  padding-top: 0.35rem;
}

.hub-rb-link-open {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-size: 0.78rem;
  padding: 0.5rem 0.65rem;
}

.hub-rb-link-locked {
  margin: 0;
  font-size: 0.68rem;
  color: var(--corp-stone, #5c6478);
  line-height: 1.35;
}

@media (min-width: 900px) {
  .hub-rb-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .hub-rb-card--link {
    min-height: 16rem;
  }
}

@media (max-width: 899px) {
  .hub-rb-card--link {
    min-height: auto;
  }

  .hub-rb-link-panel {
    min-height: 8rem;
  }
}

.hub-rb-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 31, 77, 0.1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-rb-card:hover {
  box-shadow: 0 8px 24px rgba(15, 31, 77, 0.12);
  transform: translateY(-2px);
}

.hub-rb-staff-delete {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #a93226;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.hub-rb-staff-delete span {
  display: block;
  transform: translateY(-0.05rem);
}

.hub-rb-staff-delete:hover,
.hub-rb-staff-delete:focus-visible {
  background: #fdecea;
  border-color: #c0392b;
  color: #922b21;
  outline: none;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.hub-rb-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8ecf8 0%, #d0d8ef 100%);
  background-size: cover;
  background-position: center;
}

.hub-rb-card-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-rb-card-thumb--pdf {
  --rb-file-fill: #c0392b;
  --rb-file-fold: #f5b7b1;
  --rb-file-band: rgba(0, 0, 0, 0.2);
  background: linear-gradient(165deg, #fdecea 0%, #f5c4c4 100%);
}

.hub-rb-card-thumb--docx {
  --rb-file-fill: #2563eb;
  --rb-file-fold: #bfdbfe;
  --rb-file-band: rgba(0, 0, 0, 0.18);
  background: linear-gradient(165deg, #e8f0fd 0%, #b8d4f8 100%);
}

.hub-rb-card-thumb--pptx {
  --rb-file-fill: #d97706;
  --rb-file-fold: #fde68a;
  --rb-file-band: rgba(0, 0, 0, 0.18);
  background: linear-gradient(165deg, #fff4e0 0%, #ffd9a8 100%);
}

.hub-rb-card-thumb--xlsx {
  --rb-file-fill: #059669;
  --rb-file-fold: #a7f3d0;
  --rb-file-band: rgba(0, 0, 0, 0.18);
  background: linear-gradient(165deg, #e8f8ef 0%, #a8e0c4 100%);
}

.hub-rb-card-thumb--image {
  --rb-file-fill: #0f766e;
  --rb-file-fold: #99f6e4;
  --rb-file-band: rgba(0, 0, 0, 0.18);
  background: linear-gradient(165deg, #e8f8ef 0%, #b8e8d0 100%);
}

.hub-rb-card-thumb--file {
  --rb-file-fill: #475569;
  --rb-file-fold: #cbd5e1;
  --rb-file-band: rgba(0, 0, 0, 0.2);
  background: linear-gradient(165deg, #eef2f7 0%, #cfd6e4 100%);
}

.hub-rb-card-thumb--photo {
  background-color: #e8ecf8;
}

.hub-rb-card-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-rb-card-thumb--link {
  --rb-file-fill: #1d4ed8;
  --rb-file-fold: #bfdbfe;
  --rb-file-band: rgba(0, 0, 0, 0.18);
  background: linear-gradient(165deg, #eef3fb 0%, #d8e4f8 100%);
}

.hub-rb-card-thumb--link-favicon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-rb-card-thumb--link-favicon .hub-rb-card-thumb-img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 31, 77, 0.12);
}

.hub-rb-card-thumb--link-youtube .hub-rb-card-thumb-img {
  object-fit: cover;
}

.hub-rb-file-glyph-wrap {
  position: relative;
  width: min(42%, 4.6rem);
  aspect-ratio: 48 / 60;
  filter: drop-shadow(0 4px 10px rgba(15, 31, 77, 0.18));
}

.hub-rb-file-glyph {
  display: block;
  width: 100%;
  height: 100%;
}

.hub-rb-file-glyph-sheet {
  fill: var(--rb-file-fill, #475569);
}

.hub-rb-file-glyph-fold {
  fill: var(--rb-file-fold, #cbd5e1);
}

.hub-rb-file-glyph-band {
  fill: var(--rb-file-band, rgba(0, 0, 0, 0.2));
}

.hub-rb-file-glyph-ext {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 52%;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hub-rb-card-thumb--docx .hub-rb-file-glyph-ext,
.hub-rb-card-thumb--pptx .hub-rb-file-glyph-ext,
.hub-rb-card-thumb--xlsx .hub-rb-file-glyph-ext,
.hub-rb-card-thumb--link .hub-rb-file-glyph-ext,
.hub-rb-card-thumb--image .hub-rb-file-glyph-ext {
  font-size: 0.48rem;
  letter-spacing: 0.02em;
}

.hub-rb-file-chip {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(15, 31, 77, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--corp-midnight, #0f1f4d);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(15, 31, 77, 0.12);
}

.hub-rb-file-chip--pdf { color: #922b21; }
.hub-rb-file-chip--docx { color: #1e40af; }
.hub-rb-file-chip--pptx { color: #92400e; }
.hub-rb-file-chip--xlsx { color: #065f46; }
.hub-rb-file-chip--image { color: #115e59; }
.hub-rb-file-chip--link { color: #1e3a8a; }
.hub-rb-file-chip--file { color: #334155; }

.hub-rb-card-filetype--pdf {
  color: #922b21;
  background: #fdecea;
  border-color: #f5b7b1;
}

.hub-rb-card-filetype--docx {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hub-rb-card-filetype--pptx {
  color: #92400e;
  background: #fff7ed;
  border-color: #fed7aa;
}

.hub-rb-card-filetype--xlsx {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.hub-rb-card-filetype--image {
  color: #115e59;
  background: #f0fdfa;
  border-color: #99f6e4;
}

.hub-rb-card-filetype--link {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hub-rb-card-filetype--file {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hub-rb-card--link .hub-rb-link-panel {
  flex: 1;
  min-height: 0;
}

.hub-rb-card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.hub-rb-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-rb-card-meta-start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  min-width: 0;
}

.hub-rb-card-category {
  color: var(--corp-stone, #5c6478);
  font-weight: 600;
}

.hub-rb-card-filetype {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.32rem;
  border-radius: 3px;
  border: 1px solid rgba(15, 31, 77, 0.16);
  background: rgba(15, 31, 77, 0.05);
  color: var(--corp-midnight, #0f1f4d);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hub-rb-card-badge {
  font-weight: 700;
  color: var(--corp-deep-blue, #2563eb);
  flex-shrink: 0;
}

.hub-rb-card-title {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--corp-midnight, #0f1f4d);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-rb-card-desc {
  margin: 0;
  font-size: 0.72rem;
  color: var(--corp-stone, #5c6478);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-rb-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.hub-rb-card-tag {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  background: rgba(15, 31, 77, 0.06);
  border-radius: 3px;
}

.hub-rb-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.68rem;
  margin-top: 0.25rem;
}

.hub-rb-card-author-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.hub-rb-link-author {
  margin-top: 0.35rem;
}

.hub-rb-card-author--unknown {
  color: var(--corp-stone, #5c6478);
  font-weight: 500;
}

.hub-rb-card-claim {
  max-width: 100%;
}

.hub-rb-claim-authorship {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--corp-deep-blue, #2563eb);
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}

.hub-rb-claim-authorship:hover,
.hub-rb-claim-authorship:focus-visible {
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-claim-authorship:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hub-rb-claim-authorship--signin {
  font-style: italic;
}

.hub-rb-claim-pending {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--corp-stone, #5c6478);
  font-style: italic;
}

.hub-rb-card-author {
  color: var(--corp-deep-blue, #2563eb);
  text-decoration: none;
  font-weight: 600;
}

.hub-rb-card-author:hover {
  text-decoration: underline;
}

.hub-rb-card-lang {
  text-transform: uppercase;
  color: var(--corp-stone, #5c6478);
}

.hub-rb-card-actions {
  margin-top: 0.5rem;
}

.hub-rb-card-dl {
  width: 100%;
  font-size: 0.72rem;
  padding: 0.4rem 0.5rem;
}

.hub-rb-card-locked {
  font-size: 0.65rem;
  color: var(--corp-stone, #5c6478);
  line-height: 1.3;
}

.hub-rb-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.hub-rb-pager-btn {
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(15, 31, 77, 0.2);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.hub-rb-pager-btn.is-active {
  background: var(--corp-midnight, #0f1f4d);
  color: #fff;
  border-color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-pager-btn--nav {
  padding-inline: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hub-rb-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hub-rb-pager-btn:not(:disabled):hover,
.hub-rb-pager-btn:not(:disabled):focus-visible {
  border-color: var(--corp-midnight, #0f1f4d);
  background: var(--corp-pale, #f4f6fb);
}

.hub-rb-pager-btn.is-active:hover,
.hub-rb-pager-btn.is-active:focus-visible {
  background: var(--corp-midnight, #0f1f4d);
  color: #fff;
}

.hub-rb-pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.9rem;
  color: var(--corp-stone, #5c6478);
  user-select: none;
}

.hub-rb-upload {
  position: relative;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    var(--corp-pale, #f4f6fb);
  border: 1px solid rgba(15, 31, 77, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  margin: 0 0 1.5rem;
}

.hub-rb-upload::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--corp-midnight, #0f1f4d), var(--corp-gold, #f2c94c));
}

.hub-rb-upload-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-upload-lead {
  margin: 0 0 1rem;
  max-width: 58rem;
  font-size: 0.95rem;
  color: var(--corp-stone, #5c6478);
}

.hub-rb-guidelines,
.hub-rb-mod-note,
.hub-rb-community-notice {
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  background: rgba(15, 31, 77, 0.06);
  border: 1px solid rgba(15, 31, 77, 0.1);
}

.hub-rb-community-notice {
  max-width: 42rem;
  font-size: 0.88rem;
  color: var(--corp-stone, #5c6478);
}

.hub-rb-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.hub-rb-field-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  color: var(--corp-midnight, #0f1f4d);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hub-rb-field-caption {
  display: block;
  line-height: 1.35;
}

.hub-rb-upload-grid .hub-rb-field-label input:not([type="checkbox"]):not([type="file"]),
.hub-rb-upload-grid .hub-rb-field-label select,
.hub-rb-upload-grid .hub-rb-field-label textarea,
.hub-rb-upload-grid input:not([type="checkbox"]):not([type="file"]),
.hub-rb-upload-grid select,
.hub-rb-upload-grid textarea {
  width: 100%;
  min-height: 2.75rem;
  box-sizing: border-box;
  border: 1px solid rgba(15, 31, 77, 0.18);
  border-radius: 9px;
  background: #fff;
  color: var(--corp-midnight, #0f1f4d);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: normal;
  padding: 0.65rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-rb-upload-grid textarea {
  min-height: 5.75rem;
  resize: vertical;
}

.hub-rb-upload-grid input:focus,
.hub-rb-upload-grid select:focus,
.hub-rb-upload-grid textarea:focus {
  outline: none;
  border-color: var(--corp-deep-blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hub-rb-upload-section {
  margin: 0 0 1.5rem;
  scroll-margin-top: 5.5rem;
}

.hub-rb-root--upload-open .hub-rb-upload-section {
  margin-bottom: 2rem;
}

.hub-rb-upload-top-btn.is-active {
  border-color: var(--corp-midnight, #0f1f4d);
  background: rgba(15, 31, 77, 0.08);
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-file-label {
  gap: 0.5rem;
}

.hub-rb-file-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px dashed rgba(15, 31, 77, 0.28);
  border-radius: 10px;
  background: #fff;
}

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

.hub-rb-file-btn {
  flex: 0 0 auto;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

.hub-rb-file-name {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--corp-stone, #5c6478);
  overflow-wrap: anywhere;
}

.hub-rb-file-limit {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--corp-midnight, #0f1f4d);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 31, 77, 0.08);
  border: 1px solid rgba(15, 31, 77, 0.12);
}

.hub-rb-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.hub-rb-upload-actions .corp-btn {
  min-height: 2.8rem;
  padding-inline: 1.4rem;
  margin: 0;
}

.hub-rb-span-2 {
  grid-column: 1 / -1;
}

.hub-rb-req {
  color: #c0392b;
}

.hub-rb-topics {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.hub-rb-topics legend {
  padding: 0;
  margin: 0 0 0.5rem;
  color: var(--corp-midnight, #0f1f4d);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hub-rb-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.55rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid rgba(15, 31, 77, 0.14);
  border-radius: 12px;
}

.hub-rb-tag-check {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(15, 31, 77, 0.1);
  border-radius: 999px;
  background: rgba(15, 31, 77, 0.035);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--corp-midnight, #0f1f4d);
  cursor: pointer;
}

.hub-rb-tag-check span {
  line-height: 1.25;
}

.hub-rb-tag-check input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  accent-color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-tag-check:has(input:checked) {
  border-color: rgba(15, 31, 77, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: var(--corp-midnight, #0f1f4d);
}

.hub-rb-file-hint {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--corp-stone, #5c6478);
}

.hub-rb-upload-status {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--corp-midnight, #0f1f4d);
  font-size: 0.88rem;
}

.hub-rb-upload > .hub-rb-upload-actions + .hub-rb-upload-status {
  margin-top: 0.75rem;
}

.hub-rb-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}

.hub-rb-grid--profile {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .hub-rb-upload-grid {
    grid-template-columns: 1fr;
  }
  .hub-rb-span-2 {
    grid-column: 1;
  }
}

/* Mobile — Resource Bank catalog */
@media (max-width: 720px) {
  body.fel-portal-page[data-hub-current="support"] .fel-portal-main {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }

  body.fel-portal-page[data-hub-current="support"] .hub-rb-hero {
    margin-left: calc(-1 * max(20px, env(safe-area-inset-left)));
    margin-right: calc(-1 * max(20px, env(safe-area-inset-right)));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    border-radius: 0;
  }

  .hub-rb-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-rb-search-wrap,
  .hub-rb-search-btn,
  .hub-rb-upload-top-btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .hub-rb-search-btn,
  .hub-rb-upload-top-btn {
    height: var(--hub-rb-search-row-h);
  }

  .hub-rb-browse-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-rb-folder-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .hub-rb-folder-toggle-btn {
    flex: 1 1 0;
    text-align: center;
  }

  .hub-rb-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-rb-toolbar-actions {
    width: 100%;
  }

  .hub-rb-toolbar-actions .corp-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }

  .hub-rb-spotlight-grid,
  .hub-rb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hub-rb-folders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-rb-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .hub-rb-staff-dialog {
    max-width: calc(100vw - 1rem);
  }
}

@media (max-width: 400px) {
  .hub-rb-spotlight-grid,
  .hub-rb-grid,
  .hub-rb-folders {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 899px) {
  .hub-rb-spotlight-grid,
  .hub-rb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-rb-card:hover {
    transform: none;
  }
}

body.corp[data-color-scheme="wb"] .hub-rb-card-thumb--icon,
body.corp[data-color-scheme="wb"] .hub-rb-card-thumb--link-favicon {
  background: #1a1a1a;
}

body.corp[data-color-scheme="wb"] .hub-rb-file-chip,
body.corp[data-color-scheme="wb"] .hub-rb-card-filetype {
  background: #000;
  color: #fff;
  border-color: #fff;
}

body.corp[data-color-scheme="wb"] .hub-rb-hero-count,
body.corp[data-color-scheme="wb"] .hub-rb-hero-count-num {
  color: #000;
}

.hub-rb-card-actions,
.hub-rb-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.hub-rb-staff-edit {
  font-size: 0.72rem;
  padding: 0.4rem 0.55rem;
}

.hub-rb-staff-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(40rem, calc(100vw - 2rem));
  width: 100%;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.hub-rb-staff-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.hub-rb-staff-edit-form {
  padding: 1.1rem 1.25rem 1.25rem;
}

.hub-rb-staff-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.hub-rb-staff-edit-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.hub-rb-staff-edit-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--corp-stone, #5c6478);
  padding: 0.15rem 0.35rem;
}

.hub-rb-staff-edit-close:hover,
.hub-rb-staff-edit-close:focus-visible {
  color: var(--gal-midnight, #0f172a);
}

.hub-rb-staff-edit-lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.hub-rb-staff-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}
