/* =========================================================
   css/components.css — Reusable Components
   US University AI Policy Repository — Trinka
   ========================================================= */

/* ---- Eyebrow Label ---- */
.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 12px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 12px 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(118, 51, 147, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 6px 20px rgba(118, 51, 147, 0.4);
  transform: translateY(-1px);
  color: var(--color-white);
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-ghost:hover {
  background: var(--gradient-btn);
  color: var(--color-white);
  border-color: transparent;
  text-decoration: none;
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
  color: var(--color-primary);
  text-decoration: none;
}

.btn-ghost-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.7);
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  color: var(--color-white);
  text-decoration: none;
}

.btn-sm {
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 6px;
}

.btn-xs {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 5px;
}

/* ---- Cards ---- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-purple {
  background: var(--color-light-purple);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}

.card-dark {
  background: var(--color-deep-purple);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  color: var(--color-white);
}

/* ---- Chips / Pills ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.chip-purple {
  background: rgba(118, 51, 147, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(118, 51, 147, 0.2);
}

.chip-green {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.chip-amber {
  background: rgba(253, 185, 51, 0.15);
  color: #b45309;
  border: 1px solid rgba(253, 185, 51, 0.3);
}

.chip-red {
  background: rgba(255, 92, 92, 0.1);
  color: #dc2626;
  border: 1px solid rgba(255, 92, 92, 0.2);
}

.chip-gray {
  background: rgba(102, 102, 102, 0.1);
  color: var(--color-muted);
  border: 1px solid rgba(102, 102, 102, 0.15);
}

.chip-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.chip-dark {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ---- Progress Bar ---- */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease;
}

.progress-fill-purple {
  background: var(--gradient-btn);
}

.progress-fill-amber {
  background: var(--color-amber);
}

.progress-fill-green {
  background: #16a34a;
}

/* ---- Coverage Badges ---- */
.coverage-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.coverage-high {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.coverage-mid {
  background: rgba(253, 185, 51, 0.18);
  color: #92400e;
}

.coverage-low {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.coverage-none {
  background: rgba(102, 102, 102, 0.1);
  color: var(--color-muted);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: #FFFFFF;
  border-bottom: 1px solid #E8E0F0;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover .nav-logo-text {
  color: var(--color-deep-purple);
}

.nav-logo-icon {
  font-size: 24px;
}

.nav-logo-text {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 600;
  color: #763393;
}

/* Legacy alias */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.nav-logo:hover {
  text-decoration: none;
  color: var(--color-deep-purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link,
.nav-links a {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover,
.nav-links a:hover {
  color: #763393;
  text-decoration: none;
}

.nav-link.active,
.nav-links a.active {
  color: #763393;
  font-weight: 600;
  border-bottom-color: #763393;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo image */
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}


.nav-separator {
  color: #E8E0F0;
  font-size: 20px;
  font-weight: 300;
  margin: 0 10px;
}

.nav-product-name {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-body);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: calc(var(--z-nav) - 1);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  padding: 12px 0;
  font-size: 16px;
  color: var(--color-body);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  display: block;
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: calc(var(--z-nav) - 2);
}

.nav-mobile-overlay.open {
  display: block;
}

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--color-deep-purple);
  color: var(--color-white);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 8px 24px rgba(75, 44, 130, 0.4);
  pointer-events: all;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  min-width: 280px;
  max-width: 360px;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.toast-msg {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 18px;
  padding: 0 0 0 8px;
  line-height: 1;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--color-white);
}

.toast-action {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0 4px;
}

.toast-action:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* ---- Domain Color Tints ---- */
.domain-teaching {
  background: rgba(59, 130, 246, 0.06);
  border-left: 3px solid #3b82f6;
}

.domain-research {
  background: rgba(118, 51, 147, 0.06);
  border-left: 3px solid var(--color-primary);
}

.domain-integrity {
  background: rgba(22, 163, 74, 0.06);
  border-left: 3px solid #16a34a;
}

.domain-institutional {
  background: rgba(253, 185, 51, 0.08);
  border-left: 3px solid var(--color-amber);
}

/* ---- Alphabet Navigation ---- */
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.alpha-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-body);
  cursor: pointer;
  transition: all var(--transition);
}

.alpha-btn:hover:not(:disabled) {
  background: var(--color-light-purple);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.alpha-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(118, 51, 147, 0.3);
}

.alpha-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.alpha-btn-all {
  width: auto;
  padding: 0 12px;
  font-size: 14px;
}

/* ---- Evidence Blockquote ---- */
.evidence-blockquote {
  border-left: 3px solid #763393;
  background: #FAFAFA;
  padding: 10px 16px;
  margin: 8px 0;
  font-style: italic;
  font-size: 14px;
  line-height: 22px;
  color: #555;
  border-radius: 0 6px 6px 0;
}

.evidence-para {
  font-size: 14px;
  line-height: 22px;
  color: #555;
  margin: 6px 0;
}

/* ---- Policy Card Typography ---- */
.u-code-badge {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #763393;
  background: #F5F0FA;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.policy-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 24px;
}

/* ---- Policy Bullets ---- */
.policy-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}

.policy-bullets li {
  font-family: 'Poppins', sans-serif;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 22px;
  color: #444;
}

.policy-bullets li::before {
  content: "•";
  color: #763393;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  position: absolute;
  left: 0;
}

/* ---- Letter Group ---- */
.letter-group {
  margin-top: 24px;
  margin-bottom: 32px;
}

/* ---- Letter Group Header ---- */
.letter-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 16px;
}

.letter-group-letter {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.letter-group-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ---- Filter Chips Bar ---- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 400;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-body);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-light-purple);
}

.filter-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ---- Domain Tabs ---- */
.domain-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.domain-tabs::-webkit-scrollbar {
  display: none;
}

.domain-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.domain-tab:hover {
  color: var(--color-primary);
}

.domain-tab.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-primary);
}

.domain-tab .tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-light-purple);
  color: var(--color-primary);
}

.domain-tab.active .tab-count {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---- University Row ---- */
.university-row {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.university-row:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateX(4px);
}

.university-row:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---- Policy Pointer Chips ---- */
.pointer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.pointer-allowed   { background: rgba(22,163,74,0.10); color: #15803d; }
.pointer-prohibited{ background: rgba(255,92,92,0.10); color: #dc2626; }
.pointer-conditional{ background: rgba(253,185,51,0.15); color: #92400e; }
.pointer-none      { background: rgba(102,102,102,0.08); color: var(--color-muted); }
.pointer-required  { background: rgba(118,51,147,0.10); color: var(--color-primary); }
.pointer-research  { background: rgba(59,130,246,0.10); color: #1d4ed8; }
.pointer-data      { background: rgba(139,92,246,0.10); color: #6d28d9; }

/* ---- Stance Tags ---- */
.stance-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
  white-space: nowrap;
}

.stance-green {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.stance-amber {
  background: #FFF8E1;
  color: #F57F17;
  border: 1px solid #FFECB3;
}

.stance-red {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

.stance-blue {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #BBDEFB;
}

.stance-gray {
  background: #F5F5F5;
  color: #757575;
  border: 1px solid #E0E0E0;
}

.stance-tags-row {
  display: flex;
  flex-wrap: wrap;
  margin: 8px 0 12px 0;
}

/* ---- Section structure ---- */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header .eyebrow {
  margin-bottom: 10px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header .section-sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-muted);
  max-width: 640px;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-deep-purple);
  color: var(--color-white);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 22px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--color-light-purple);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--color-muted);
  flex-wrap: wrap;
}

.breadcrumb-inner a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb-inner a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--color-border);
}

/* ---- Donut Chart Container ---- */
.donut-chart-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ---- Comparison Table ---- */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 14px;
  line-height: 21px;
}

.comparison-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.comparison-table th:first-child {
  background: var(--color-deep-purple);
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 180px;
}

.comparison-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--color-white);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-body);
  z-index: 1;
  border-right: 1px solid var(--color-border);
}

.comparison-table tr.row-diff {
  background: #FFFBEA;
}

.comparison-table tr.row-diff td:first-child {
  background: #FFFBEA;
}

.comparison-table .domain-header-row th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px;
}

.comparison-table td.undefined-cell {
  color: var(--color-muted);
  text-align: center;
  vertical-align: middle;
}

.comparison-table tr:hover td {
  background: rgba(118, 51, 147, 0.02);
}

.comparison-table tr:hover td:first-child {
  background: rgba(118, 51, 147, 0.04);
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-body);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 24px;
}

/* ---- Sidebar ---- */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Sort Dropdown ---- */
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 36px 8px 14px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-body);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23763393' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition);
}

.sort-select:hover,
.sort-select:focus {
  border-color: var(--color-primary);
}
.sort-select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---- Source URL Chip ---- */
.source-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: #1A6FC4;
  border: 1px solid #D0E3F4;
  background: #EEF5FC;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: all 0.15s;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-url-chip:hover {
  background: #DDE9F6;
  color: #14559A;
  border-color: #B8D4EA;
  text-decoration: none;
}

.source-url-chip:visited {
  color: #6B4FA0;
}

/* ---- Read More Toggle ---- */
.read-more-btn {
  background: none;
  border: none;
  color: #1A6FC4;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: underline;
  transition: color 0.15s;
}

.read-more-btn:hover {
  color: #14559A;
}

/* ---- Evidence Toggle ---- */
.evidence-toggle {
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.evidence-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #1A6FC4;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 8px;
  transition: color 0.15s;
}

.evidence-toggle-btn:hover {
  color: #14559A;
  text-decoration: underline;
}

/* ---- Verify Feedback Form ---- */
.verify-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-top: 8px;
}

.verify-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.verify-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E8E0F0;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  color: #333;
  background: white;
  transition: border-color 0.2s;
}

.verify-input:focus {
  outline: none;
  border-color: #763393;
}

.verify-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E8E0F0;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  color: #333;
  background: white;
  resize: vertical;
  transition: border-color 0.2s;
  min-height: 100px;
}

.verify-textarea:focus {
  outline: none;
  border-color: #763393;
}

.verify-form-error {
  font-size: 13px;
  color: #C62828;
  margin: 0;
}

@media (max-width: 767px) {
  .verify-form-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Responsive Mobile ---- */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .toast-container {
    bottom: 0;
    right: 0;
    left: 0;
    padding: 0 0 0 0;
  }

  .toast {
    min-width: unset;
    max-width: unset;
    border-radius: 12px 12px 0 0;
    padding: 16px 20px;
  }

  .university-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .domain-tabs {
    font-size: 14px;
  }

  .domain-tab {
    padding: 10px 14px;
    font-size: 14px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
