/* ==========================================================================
   HBCU Explorer — Elevation Layer  (v2)
   --------------------------------------------------------------------------
   Loaded AFTER the base stylesheet. Selectively refines the existing dark
   charcoal + gold look to match the premium Home page: deeper cards, better
   spacing rhythm, richer hover states, consistent gold treatment, a premium
   detail modal, cleaner profile tabs, and tighter mobile passes.
   Every rule is scoped under .hbcu-explorer. No HTML/JS changes required.
   ========================================================================== */

.hbcu-explorer {
  --hb-gold: #DCA83E;
  --hb-gold-2: #C9A24B;
  --hb-gold-deep: #B8892F;
  --hb-gold-grad: linear-gradient(135deg, #DCA83E, #C9A24B 55%, #B8892F);
  --hb-cream: #F6F3EC;
  --hb-white: #FFFFFF;
  --hb-muted: rgba(246, 243, 236, .62);
  --hb-panel: rgb(30, 33, 40);
  --hb-hairline: rgba(246, 243, 236, .13);
  --hb-ink: #16181C;
  --hb-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hb-ease: cubic-bezier(.22, .61, .36, 1);

  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(18px, 4vw, 40px);
  padding-right: clamp(18px, 4vw, 40px);
  color: var(--hb-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Section header
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-head {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.hbcu-explorer .hbcu-head h2 {
  color: var(--hb-white);
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

.hbcu-explorer .hbcu-head p {
  color: var(--hb-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Grid rhythm
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-grid {
  gap: clamp(16px, 2.4vw, 26px);
  margin-top: clamp(18px, 3vw, 30px);
}

/* --------------------------------------------------------------------------
   Cards / tiles
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-card {
  position: relative;
  overflow: hidden;
  background: var(--hb-panel);
  border: 1px solid var(--hb-hairline);
  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow:
    0 1px 0 rgba(246, 243, 236, .04) inset,
    0 10px 26px rgba(0, 0, 0, .32);
  transition:
    transform .28s var(--hb-ease),
    box-shadow .28s var(--hb-ease),
    border-color .28s var(--hb-ease),
    background-color .28s var(--hb-ease);
  will-change: transform;
}

/* Faint radial gold highlight in the top-right corner */
.hbcu-explorer .hbcu-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
      rgba(220, 168, 62, .12), rgba(220, 168, 62, 0) 68%);
  opacity: .55;
  pointer-events: none;
  transition: opacity .28s var(--hb-ease);
}

.hbcu-explorer .hbcu-card:hover,
.hbcu-explorer .hbcu-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(220, 168, 62, .42);
  box-shadow:
    0 1px 0 rgba(246, 243, 236, .05) inset,
    0 6px 14px rgba(0, 0, 0, .3),
    0 22px 44px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(220, 168, 62, .10),
    0 12px 40px rgba(220, 168, 62, .10);
}

.hbcu-explorer .hbcu-card:hover::after,
.hbcu-explorer .hbcu-card:focus-within::after {
  opacity: 1;
}

/* Pressed feel — settle slightly, keep depth */
.hbcu-explorer .hbcu-card:active {
  transform: translateY(-2px);
}

/* Keyboard focus ring, consistent gold system across every interactive element */
.hbcu-explorer .hbcu-card:focus-visible,
.hbcu-explorer .hbcu-card a:focus-visible,
.hbcu-explorer .hbcu-chip:focus-visible,
.hbcu-explorer .hbcu-tab:focus-visible,
.hbcu-explorer .hbcu-crumbs a:focus-visible,
.hbcu-explorer .hbcu-modal-x:focus-visible,
.hbcu-explorer .hbcu-modal a:focus-visible,
.hbcu-explorer button:focus-visible {
  outline: 2px solid var(--hb-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.hbcu-explorer .hbcu-card:focus-visible {
  border-radius: 18px;
}

.hbcu-explorer .hbcu-chip:focus-visible {
  border-radius: 999px;
}

.hbcu-explorer .hbcu-modal-x:focus-visible {
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Monogram / number chips
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-mono,
.hbcu-explorer .hbcu-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hb-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hb-gold);
  background:
    linear-gradient(135deg, rgba(220, 168, 62, .16), rgba(184, 137, 47, .08));
  border: 1px solid rgba(220, 168, 62, .38);
  border-radius: 13px;
  box-shadow: 0 1px 0 rgba(246, 243, 236, .05) inset;
  flex-shrink: 0;
  transition: border-color .25s var(--hb-ease), background-color .25s var(--hb-ease);
}

.hbcu-explorer .hbcu-card:hover .hbcu-mono,
.hbcu-explorer .hbcu-card:hover .hbcu-num {
  border-color: rgba(220, 168, 62, .6);
}

/* --------------------------------------------------------------------------
   Tile typography
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-tile-name {
  color: var(--hb-white);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.hbcu-explorer .hbcu-tile-meta {
  color: var(--hb-muted);
  line-height: 1.55;
}

.hbcu-explorer .hbcu-tile-sub {
  color: var(--hb-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.hbcu-explorer .hbcu-tile-count {
  color: var(--hb-gold);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hbcu-explorer .hbcu-tile-count-lbl {
  font-family: var(--hb-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  color: var(--hb-muted);
}

/* --------------------------------------------------------------------------
   Filter chips
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(14px, 2.4vw, 24px) 0;
}

.hbcu-explorer .hbcu-chip {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--hb-hairline);
  background: rgba(246, 243, 236, .04);
  color: var(--hb-muted);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .01em;
  padding: 8px 16px;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color .25s var(--hb-ease),
    border-color .25s var(--hb-ease),
    color .25s var(--hb-ease),
    box-shadow .25s var(--hb-ease),
    transform .25s var(--hb-ease);
}

.hbcu-explorer .hbcu-chip:hover {
  border-color: rgba(220, 168, 62, .45);
  color: var(--hb-cream);
  background: rgba(220, 168, 62, .08);
  transform: translateY(-1px);
}

.hbcu-explorer .hbcu-chip:active {
  transform: translateY(0);
}

.hbcu-explorer .hbcu-chip.is-active,
.hbcu-explorer .hbcu-chip.active,
.hbcu-explorer .hbcu-chip.on,
.hbcu-explorer .hbcu-chip[aria-selected="true"],
.hbcu-explorer .hbcu-chip[aria-pressed="true"] {
  background: var(--hb-gold-grad);
  background-image: var(--hb-gold-grad) !important;
  border-color: transparent;
  color: var(--hb-ink) !important;
  font-weight: 700;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, .35),
    0 4px 18px rgba(220, 168, 62, .28);
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-crumbs {
  font-family: var(--hb-mono);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hb-muted);
  margin-bottom: clamp(14px, 2vw, 22px);
}

.hbcu-explorer .hbcu-crumbs a {
  color: var(--hb-muted);
  text-decoration: none;
  transition: color .25s var(--hb-ease);
}

.hbcu-explorer .hbcu-crumbs a:hover,
.hbcu-explorer .hbcu-crumbs a:focus-visible,
.hbcu-explorer .hbcu-crumbs .is-active,
.hbcu-explorer .hbcu-crumbs .active,
.hbcu-explorer .hbcu-crumbs [aria-current] {
  color: var(--hb-gold);
}

/* --------------------------------------------------------------------------
   Profile tabs  — unmistakable gold underline, calm inactive state
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--hb-hairline);
  margin: clamp(18px, 2.8vw, 30px) 0 clamp(22px, 3vw, 32px);
  padding-bottom: 0;
}

.hbcu-explorer .hbcu-tab {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--hb-muted);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 10px 16px 12px;
  margin-bottom: -1px;
  transition:
    color .25s var(--hb-ease),
    border-color .25s var(--hb-ease),
    background-color .25s var(--hb-ease);
}

.hbcu-explorer .hbcu-tab:hover {
  color: var(--hb-cream);
  background: rgba(246, 243, 236, .045);
}

.hbcu-explorer .hbcu-tab.is-active,
.hbcu-explorer .hbcu-tab.active,
.hbcu-explorer .hbcu-tab.on,
.hbcu-explorer .hbcu-tab[aria-selected="true"] {
  color: var(--hb-gold) !important;
  font-weight: 700;
  border-bottom-color: var(--hb-gold);
  background: linear-gradient(180deg, rgba(220, 168, 62, 0), rgba(220, 168, 62, .07));
}

/* Thicker luminous underline on the active tab without shifting layout */
.hbcu-explorer .hbcu-tab.is-active::after,
.hbcu-explorer .hbcu-tab.active::after,
.hbcu-explorer .hbcu-tab.on::after,
.hbcu-explorer .hbcu-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--hb-gold-grad);
  box-shadow: 0 -1px 10px rgba(220, 168, 62, .35);
  pointer-events: none;
}

/* Tab panel content — breathing room and vertical rhythm */
.hbcu-explorer [role="tabpanel"],
.hbcu-explorer .hbcu-tab-panel,
.hbcu-explorer .hbcu-panel {
  line-height: 1.6;
}

.hbcu-explorer [role="tabpanel"] > * + *,
.hbcu-explorer .hbcu-tab-panel > * + *,
.hbcu-explorer .hbcu-panel > * + * {
  margin-top: clamp(12px, 1.8vw, 18px);
}

.hbcu-explorer [role="tabpanel"] h3,
.hbcu-explorer [role="tabpanel"] h4,
.hbcu-explorer .hbcu-tab-panel h3,
.hbcu-explorer .hbcu-tab-panel h4,
.hbcu-explorer .hbcu-panel h3,
.hbcu-explorer .hbcu-panel h4 {
  color: var(--hb-white);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin-bottom: .45em;
}

.hbcu-explorer [role="tabpanel"] ul,
.hbcu-explorer .hbcu-tab-panel ul,
.hbcu-explorer .hbcu-panel ul {
  padding-left: 1.15em;
}

.hbcu-explorer [role="tabpanel"] li + li,
.hbcu-explorer .hbcu-tab-panel li + li,
.hbcu-explorer .hbcu-panel li + li {
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   School profile typography
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-school-name {
  color: var(--hb-white);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.15;
}

.hbcu-explorer .hbcu-school-meta {
  color: var(--hb-muted);
  line-height: 1.6;
}

.hbcu-explorer .hbcu-school-nick {
  font-family: var(--hb-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--hb-gold);
  font-size: .8rem;
}

/* --------------------------------------------------------------------------
   Person / people rows
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-person-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hb-hairline);
}

.hbcu-explorer .hbcu-person-top strong,
.hbcu-explorer .hbcu-person-top b {
  color: var(--hb-white);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hbcu-explorer .hbcu-person-top small,
.hbcu-explorer .hbcu-person-top span {
  color: var(--hb-muted);
  line-height: 1.5;
}

/* Person rows inside a list keep even rhythm; last row drops its rule */
.hbcu-explorer .hbcu-person-top:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Detail modal — premium treatment
   -------------------------------------------------------------------------- */

/* Overlay: deep dim with a soft blur; the darker rgba is the graceful
   fallback when backdrop-filter is unsupported. */
.hbcu-explorer .hbcu-modal-ov {
  background: rgba(8, 9, 12, .8);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
  animation: hbcuOvIn .28s var(--hb-ease) both;
}

.hbcu-explorer .hbcu-modal {
  position: relative;
  margin: auto;
  width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 760px);
  max-height: min(86dvh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hb-panel);
  border: 1px solid var(--hb-hairline);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(246, 243, 236, .06) inset,
    0 10px 24px rgba(0, 0, 0, .4),
    0 40px 90px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(220, 168, 62, .07);
  animation: hbcuModalIn .3s var(--hb-ease) both;
}

/* Faint gold accent line across the top edge */
.hbcu-explorer .hbcu-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      rgba(220, 168, 62, 0),
      rgba(220, 168, 62, .75) 28%,
      rgba(201, 162, 75, .75) 62%,
      rgba(220, 168, 62, 0));
  z-index: 2;
  pointer-events: none;
}

.hbcu-explorer .hbcu-modal-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 26px) clamp(20px, 3.2vw, 28px) 18px;
  border-bottom: 1px solid var(--hb-hairline);
  background: linear-gradient(180deg, rgba(220, 168, 62, .07), rgba(220, 168, 62, 0));
}

.hbcu-explorer .hbcu-modal-head h3,
.hbcu-explorer .hbcu-modal-head h4,
.hbcu-explorer .hbcu-modal-head strong {
  color: var(--hb-white);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

.hbcu-explorer .hbcu-modal-head small,
.hbcu-explorer .hbcu-modal-head span {
  color: var(--hb-muted);
  line-height: 1.5;
}

/* Small gold kicker if the head carries an eyebrow label */
.hbcu-explorer .hbcu-modal-head .hbcu-school-nick,
.hbcu-explorer .hbcu-modal-head .hbcu-flag {
  color: var(--hb-gold);
}

/* Scrollable body: anything between head and foot scrolls within max-height */
.hbcu-explorer .hbcu-modal > :not(.hbcu-modal-head) {
  min-height: 0;
}

.hbcu-explorer .hbcu-modal-body,
.hbcu-explorer .hbcu-modal-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 6px clamp(20px, 3.2vw, 28px) clamp(20px, 3vw, 26px);
}

/* If the table sits directly in the modal (no wrapper), let it scroll too */
.hbcu-explorer .hbcu-modal {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hbcu-explorer .hbcu-modal-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}

.hbcu-explorer .hbcu-modal-tbl th {
  font-family: var(--hb-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--hb-gold);
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(220, 168, 62, .3);
  background: rgba(220, 168, 62, .04);
}

.hbcu-explorer .hbcu-modal-tbl td {
  color: var(--hb-cream);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 243, 236, .07);
  line-height: 1.55;
  vertical-align: top;
}

/* Label column muted, value column bright — reads as label/value pairs */
.hbcu-explorer .hbcu-modal-tbl td:first-child,
.hbcu-explorer .hbcu-modal-tbl th[scope="row"] {
  color: var(--hb-muted);
  font-weight: 600;
  white-space: nowrap;
}

.hbcu-explorer .hbcu-modal-tbl td:last-child {
  color: var(--hb-white);
}

.hbcu-explorer .hbcu-modal-tbl tr:last-child td {
  border-bottom: 0;
}

.hbcu-explorer .hbcu-modal-tbl tbody tr {
  transition: background-color .2s var(--hb-ease);
}

.hbcu-explorer .hbcu-modal-tbl tbody tr:hover {
  background: rgba(220, 168, 62, .05);
}

/* Close button — crisp circle, gold on hover/focus */
.hbcu-explorer .hbcu-modal-x {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--hb-hairline);
  background: rgba(246, 243, 236, .06);
  color: var(--hb-cream);
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(246, 243, 236, .05) inset;
  transition:
    background-color .25s var(--hb-ease),
    border-color .25s var(--hb-ease),
    color .25s var(--hb-ease),
    box-shadow .25s var(--hb-ease),
    transform .25s var(--hb-ease);
}

.hbcu-explorer .hbcu-modal-x:hover,
.hbcu-explorer .hbcu-modal-x:focus-visible {
  background: var(--hb-gold-grad);
  border-color: transparent;
  color: var(--hb-ink);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, .35),
    0 4px 16px rgba(220, 168, 62, .3);
}

.hbcu-explorer .hbcu-modal-x:hover {
  transform: rotate(90deg);
}

.hbcu-explorer .hbcu-modal-x:active {
  transform: rotate(90deg) scale(.94);
}

/* Modal entrance */
@keyframes hbcuOvIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hbcuModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.965);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Empty + loading states
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-empty,
.hbcu-explorer .hbcu-loading {
  text-align: center;
  color: var(--hb-muted);
  padding: clamp(36px, 6vw, 64px) 20px;
  font-size: .98rem;
  line-height: 1.6;
}

.hbcu-explorer .hbcu-loading {
  font-family: var(--hb-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
}

/* --------------------------------------------------------------------------
   Badges / tags
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 11px;
  font-family: var(--hb-mono);
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hb-gold);
  background: rgba(220, 168, 62, .12);
  border: 1px solid rgba(220, 168, 62, .36);
}

/* --------------------------------------------------------------------------
   Games schedule — date badge + game text
   -------------------------------------------------------------------------- */

.hbcu-explorer .hbcu-date-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--hb-gold-grad);
  background-image: var(--hb-gold-grad) !important;
  color: var(--hb-ink) !important;
  border: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .28) inset,
    0 4px 12px rgba(0, 0, 0, .35),
    0 4px 18px rgba(220, 168, 62, .22);
}

.hbcu-explorer .hbcu-date-badge .m {
  font-family: var(--hb-mono);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(22, 24, 28, .78);
  line-height: 1.1;
}

.hbcu-explorer .hbcu-date-badge .d {
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--hb-ink);
  font-variant-numeric: tabular-nums;
}

.hbcu-explorer .g-title {
  color: var(--hb-white);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hbcu-explorer .g-meta {
  color: var(--hb-muted);
  line-height: 1.5;
}

.hbcu-explorer .g-final {
  display: inline-flex;
  align-items: center;
  font-family: var(--hb-mono);
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--hb-gold);
  background: rgba(220, 168, 62, .12);
  border: 1px solid rgba(220, 168, 62, .36);
  border-radius: 999px;
  padding: 2px 9px;
}

/* --------------------------------------------------------------------------
   Responsive — tablet softening (existing desktop grids untouched)
   -------------------------------------------------------------------------- */

@media (max-width: 782px) {
  .hbcu-explorer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hbcu-explorer .hbcu-grid {
    gap: 14px;
  }

  .hbcu-explorer .hbcu-card {
    padding: 16px;
    border-radius: 16px;
  }

  .hbcu-explorer .hbcu-tab {
    padding: 9px 12px 11px;
    font-size: .9rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive — phones (<= 640px)
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hbcu-explorer .hbcu-head h2 {
    font-size: clamp(1.45rem, 5.6vw, 1.8rem);
  }

  .hbcu-explorer .hbcu-head p {
    font-size: .95rem;
  }

  .hbcu-explorer .hbcu-card {
    padding: 15px 14px;
  }

  .hbcu-explorer .hbcu-mono,
  .hbcu-explorer .hbcu-num {
    border-radius: 11px;
  }

  .hbcu-explorer .hbcu-tile-count {
    font-size: 1.45rem;
  }

  /* Filter chips become a horizontal scroller instead of a tall wrap */
  .hbcu-explorer .hbcu-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 8px;
    padding: 2px 2px 6px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .hbcu-explorer .hbcu-controls::-webkit-scrollbar {
    display: none;
  }

  /* Tabs scroll horizontally too, staying on one row */
  .hbcu-explorer .hbcu-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .hbcu-explorer .hbcu-tabs::-webkit-scrollbar {
    display: none;
  }

  .hbcu-explorer .hbcu-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hbcu-explorer .hbcu-person-top {
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  /* Modal comfortable on a phone */
  .hbcu-explorer .hbcu-modal {
    width: calc(100vw - 24px);
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 16px;
  }

  .hbcu-explorer .hbcu-modal-head {
    padding: 18px 18px 14px;
  }

  .hbcu-explorer .hbcu-modal-body,
  .hbcu-explorer .hbcu-modal-scroll {
    padding: 4px 16px 18px;
  }

  .hbcu-explorer .hbcu-modal-tbl {
    font-size: .88rem;
  }

  .hbcu-explorer .hbcu-modal-tbl th,
  .hbcu-explorer .hbcu-modal-tbl td {
    padding: 10px 12px;
  }

  .hbcu-explorer .hbcu-modal-x {
    width: 36px;
    height: 36px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — small phones (<= 420px)
   -------------------------------------------------------------------------- */

@media (max-width: 420px) {
  .hbcu-explorer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hbcu-explorer .hbcu-head h2 {
    font-size: 1.4rem;
  }

  .hbcu-explorer .hbcu-grid {
    gap: 12px;
  }

  .hbcu-explorer .hbcu-card {
    padding: 14px 13px;
    border-radius: 14px;
  }

  .hbcu-explorer .hbcu-chip {
    padding: 7px 13px;
    font-size: .84rem;
  }

  .hbcu-explorer .hbcu-tab {
    padding: 8px 11px 10px;
    font-size: .86rem;
  }

  .hbcu-explorer .hbcu-tile-count {
    font-size: 1.3rem;
  }

  .hbcu-explorer .hbcu-date-badge .d {
    font-size: 1.15rem;
  }

  .hbcu-explorer .hbcu-modal {
    width: calc(100vw - 16px);
    border-radius: 14px;
  }

  .hbcu-explorer .hbcu-modal-head {
    padding: 16px 14px 12px;
  }

  .hbcu-explorer .hbcu-modal-tbl th,
  .hbcu-explorer .hbcu-modal-tbl td {
    padding: 9px 10px;
  }

  /* Let long labels wrap rather than force horizontal scroll */
  .hbcu-explorer .hbcu-modal-tbl td:first-child,
  .hbcu-explorer .hbcu-modal-tbl th[scope="row"] {
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hbcu-explorer *,
  .hbcu-explorer *::before,
  .hbcu-explorer *::after {
    transition: none !important;
    animation: none !important;
  }

  .hbcu-explorer .hbcu-card:hover,
  .hbcu-explorer .hbcu-card:focus-within,
  .hbcu-explorer .hbcu-card:active,
  .hbcu-explorer .hbcu-chip:hover {
    transform: none;
  }

  .hbcu-explorer .hbcu-modal-x:hover,
  .hbcu-explorer .hbcu-modal-x:active {
    transform: none;
  }

  .hbcu-explorer .hbcu-modal-ov,
  .hbcu-explorer .hbcu-modal {
    animation: none !important;
  }
}
