/* Online EDU - Clean White Reader-Friendly Theme */
:root {
  --primary: #1e40af;
  --secondary: #3b82f6;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --text: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --accent: #059669;
  --primary-rgb: 30, 64, 175;
  --secondary-rgb: 59, 130, 246;
  --accent-rgb: 5, 150, 105;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}
*, *::before, *::after { box-sizing: border-box }
html, body { padding: 0; margin: 0 }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }
.page { position: relative; min-height: 100vh }
.container { width: min(1140px, 90vw); margin: 0 auto }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-bar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: .85rem 0; gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  letter-spacing: .02em; white-space: nowrap;
  display: inline-flex; align-items: center;
  gap: .5rem; color: var(--primary);
  transition: opacity .2s;
}
.logo:hover { opacity: .8 }
.logo img, .logo svg { width: 30px; height: 30px; flex-shrink: 0 }
.nav-links {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: .5rem 1.2rem;
  font-size: .9rem; font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a { transition: color .2s; padding: .25rem 0 }
.nav-links a:hover { color: var(--primary) }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.3rem; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600; letter-spacing: .01em;
  font-size: .88rem; cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #1e3a8a; transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-secondary); background: #fff;
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(30,64,175,.04);
}

/* ─── Hero ─── */
.hero { padding: 4.5rem 0 3rem; background: var(--bg-secondary) }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; color: var(--accent);
  font-weight: 600; margin-bottom: .5rem; display: block;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .8rem; line-height: 1.3;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700 }
h2 { font-size: 1.5rem }
h3 { font-size: 1.15rem }
.lead { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7 }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem }

/* ─── Stats Panel ─── */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
}
.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  text-align: center;
}
.stat-card span { display: block; font-size: .72rem; color: var(--text-secondary); margin-top: .2rem }
.stat-card strong { font-size: 1.5rem; color: var(--primary); font-family: var(--font-display) }

/* ─── Sections ─── */
.section { padding: 3rem 0 }
.section:nth-child(even) { background: var(--bg-secondary) }
.section-title {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ─── Card Grid ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  display: block; transition: all .25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0; transition: opacity .25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), .2);
}
.card:hover::before { opacity: 1 }
.card h3 { font-size: 1.05rem; margin-bottom: .4rem }
.card .lead { font-size: .88rem }
.tag {
  display: inline-flex; align-items: center;
  padding: .15rem .55rem;
  border: 1px solid var(--border);
  border-radius: 999px; font-size: .7rem;
  color: var(--primary); font-weight: 600;
  margin-bottom: .6rem;
  background: rgba(var(--primary-rgb), .04);
}

/* ─── Section Cards (overview pages) ─── */
.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ─── Breadcrumb ─── */
.breadcrumb { font-size: .82rem; color: var(--text-secondary); margin-bottom: .8rem }
.breadcrumb a { color: var(--primary); font-weight: 500 }
.breadcrumb a:hover { text-decoration: underline }
.meta { font-size: .8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .15em }

/* ─── Post Content ─── */
.post-content p { color: var(--text-secondary); line-height: 1.8; font-size: .95rem }
.post-content h2, .post-content h3 { margin-top: 1.8rem; color: var(--text) }
.post-content a { color: var(--primary); font-weight: 500 }
.post-content a:hover { text-decoration: underline }
.post-content ul { color: var(--text-secondary); line-height: 1.8; padding-left: 1.5rem }
.post-content ul li { margin-bottom: .4rem }

/* ─── CTA Banner ─── */
.cta-banner {
  margin: 2rem 0 0; padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid var(--border);
}
.cta-banner h2 { color: var(--primary) }

/* ─── Ranking Table ─── */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: #fff;
}
.ranking-table { width: 100%; border-collapse: collapse; font-size: .95rem }
.ranking-table thead {
  background: var(--bg-secondary);
  position: sticky; top: 0; z-index: 2;
}
.ranking-table th {
  padding: .9rem 1.2rem; text-align: left;
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-secondary);
  border-bottom: 2px solid var(--primary);
}
.ranking-table td {
  padding: 0; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ranking-table tbody tr { transition: background .15s }
.ranking-table tbody tr:hover { background: rgba(var(--primary-rgb), .03) }
.ranking-table tbody tr:nth-child(even) { background: var(--bg-secondary) }
.ranking-table tbody tr:nth-child(even):hover { background: rgba(var(--primary-rgb), .05) }

/* Rank column */
.rank-col {
  font-family: var(--font-display); font-weight: 700;
  color: var(--primary); white-space: nowrap;
  width: 85px; padding: .85rem .8rem .85rem 1.2rem !important;
}
.rank-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: .3rem .5rem;
  background: rgba(var(--primary-rgb), .08);
  border-radius: 6px; font-size: .9rem;
  transition: all .2s; letter-spacing: .01em;
}
.ranking-table tbody tr:hover td .rank-num {
  background: var(--primary); color: #fff;
}

/* School cell */
.school-cell { padding: .85rem 1.2rem .85rem .4rem !important }
.school-cell a {
  color: var(--text); font-weight: 600;
  font-size: 1rem; transition: color .2s;
}
.school-cell a:hover { color: var(--primary) }
.school-addr {
  display: block; font-size: .82rem;
  color: var(--text-secondary); margin-top: .15rem;
}

/* Top 3 */
.rank-top1 .rank-num {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f; font-weight: 700;
  box-shadow: 0 2px 8px rgba(245,158,11,.25);
}
.rank-top2 .rank-num {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #1f2937;
  box-shadow: 0 2px 6px rgba(156,163,175,.2);
}
.rank-top3 .rank-num {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 2px 6px rgba(180,83,9,.2);
}
.rank-top1 .school-cell a,
.rank-top2 .school-cell a,
.rank-top3 .school-cell a { font-size: 1.05rem }
.rank-top1 { background: rgba(251,191,36,.06) !important }
.rank-top2 { background: rgba(209,213,219,.08) !important }
.rank-top3 { background: rgba(217,119,6,.05) !important }

/* Program Type Badge */
.pt-badge {
  display: inline-block; padding: .1rem .45rem;
  border-radius: 999px; font-size: .7rem; font-weight: 600;
  background: rgba(var(--primary-rgb), .1); color: var(--primary);
  white-space: nowrap;
}
.pt-badge.pt-na {
  background: rgba(100,116,139,.1); color: var(--text-secondary);
}

/* ─── School Detail Page ─── */
.school-hero { padding: 2.5rem 0 2rem }
.school-hero h1 {
  margin-bottom: .5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--text);
}
.school-meta-row {
  display: flex; flex-wrap: wrap;
  gap: .4rem 1rem; margin-bottom: 1.8rem;
  font-size: .85rem; color: var(--text-secondary);
}
.school-meta-row span {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .65rem;
  background: var(--bg-secondary);
  border-radius: 999px; border: 1px solid var(--border);
}
.school-meta-row .accent { color: var(--primary); font-weight: 600 }

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-top: 1.5rem;
}

/* Detail Cards */
.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.detail-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.detail-card h3 {
  font-size: 1rem; margin-bottom: .8rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.detail-card ul {
  margin: 0; padding: 0; list-style: none;
  color: var(--text-secondary); font-size: .88rem;
}
.detail-card ul li {
  margin-bottom: .35rem; padding: .35rem 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
  display: flex; justify-content: space-between;
  align-items: baseline; gap: .5rem; flex-wrap: wrap;
}
.detail-card ul li:last-child { border-bottom: none; margin-bottom: 0 }
.detail-card .val { color: var(--text); font-weight: 600 }
.detail-card a { color: var(--primary); transition: color .2s }
.detail-card a:hover { color: var(--accent); text-decoration: underline }

/* Wide Detail Cards */
.detail-card-wide {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
  padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--primary);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
}
.detail-card-wide h3 {
  font-size: 1.1rem; color: var(--primary);
  border-bottom: none; padding-bottom: 0;
  margin-bottom: .8rem;
}
.detail-card-wide p {
  color: var(--text-secondary); line-height: 1.85;
  font-size: .92rem;
  max-height: 260px; overflow: hidden;
  position: relative; transition: max-height .5s ease;
}
.detail-card-wide p.expanded { max-height: none }
.detail-card-wide p::after {
  content: ""; position: absolute;
  bottom: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none; opacity: 1; transition: opacity .3s;
}
.detail-card-wide p.expanded::after { opacity: 0 }
.detail-card-wide .read-more {
  display: inline-block; margin-top: .5rem;
  font-size: .82rem; color: var(--primary);
  cursor: pointer; font-weight: 600; transition: color .2s;
}
.detail-card-wide .read-more:hover { color: var(--accent) }

/* Rankings List */
.rankings-section {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.rankings-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .5rem;
}
.rankings-list li {
  padding: .6rem .85rem;
  font-size: .9rem; color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: .6rem;
  transition: all .2s;
}
.rankings-list li:hover {
  background: rgba(var(--primary-rgb), .04);
  border-color: rgba(var(--primary-rgb), .15);
  transform: translateX(3px);
}
.rankings-list .r-rank {
  color: var(--primary); font-weight: 700;
  font-family: var(--font-display);
  min-width: 48px; text-align: center;
  padding: .2rem .45rem;
  background: rgba(var(--primary-rgb), .08);
  border-radius: 5px; font-size: .82rem;
}
.rankings-list li a { color: var(--text); transition: color .2s }
.rankings-list li a:hover { color: var(--primary) }

/* School Image */
.school-img {
  border-radius: var(--radius-md);
  max-height: 340px; object-fit: cover; width: 100%;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* Major Grid */
.major-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem; margin-top: .6rem;
}
.major-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  transition: transform .2s, border-color .2s;
}
.major-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), .2);
}
.major-card .name { font-weight: 600; font-size: .86rem; margin-bottom: .2rem; line-height: 1.4 }
.major-card .info { font-size: .75rem; color: var(--text-secondary); line-height: 1.5 }

/* Standalone section headings inside school hero */
.school-hero > .container > h3 {
  font-size: 1.05rem; margin-top: 1.8rem; margin-bottom: .8rem;
  display: flex; align-items: center; gap: .5rem;
  color: var(--text); padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.school-hero > .container > h3::before {
  content: ""; display: inline-block;
  width: 3px; height: 1em;
  background: var(--primary); border-radius: 2px; flex-shrink: 0;
}
.school-hero h2 {
  font-size: 1.2rem; margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(var(--primary-rgb), .15);
  display: flex; align-items: center; gap: .5rem;
  color: var(--primary);
}
.school-hero h2::before {
  content: ""; display: inline-block;
  width: 4px; height: 1.1em;
  background: var(--primary); border-radius: 2px;
}

/* Overview Brief */
.overview-brief {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem; margin-bottom: 1rem;
}
.overview-brief h3 {
  font-size: .95rem; margin-bottom: .5rem;
  color: var(--text); padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}
.overview-brief-text {
  color: var(--text-secondary); font-size: .88rem; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: all .3s ease;
}
.overview-brief-text.expanded { -webkit-line-clamp: unset; display: block }
.overview-brief .overview-toggle {
  display: inline-block; margin-top: .4rem;
  font-size: .8rem; color: var(--primary);
  cursor: pointer; font-weight: 600; transition: color .2s;
}
.overview-brief .overview-toggle:hover { color: var(--accent) }

/* Data Source Tabs */
.ds-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem; margin-top: .5rem;
}
.ds-tab {
  padding: .65rem 1.3rem; font-weight: 600;
  font-size: .9rem; cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: color .15s, border-color .15s;
  background: none; border-top: none; border-left: none;
  border-right: none; white-space: nowrap;
  font-family: var(--font-body);
}
.ds-tab:hover { color: var(--primary) }
.ds-tab.active { color: var(--primary); border-bottom-color: var(--primary) }
.ds-tab-panel { display: none }
.ds-tab-panel.active { display: block }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0; color: var(--text-secondary);
  font-size: .88rem; background: var(--bg-secondary);
}
.footer-links {
  display: flex; flex-wrap: wrap;
  gap: .75rem 1.5rem; margin-top: .8rem;
}
.footer-links a { transition: color .2s }
.footer-links a:hover { color: var(--primary) }

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999; background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem; box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  transform: translateY(100%); transition: transform .4s;
}
.cookie-banner.show { transform: translateY(0) }
.cookie-banner-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.cookie-text { color: var(--text-secondary); margin: 0; font-size: .88rem }
.cookie-text a { color: var(--primary); font-weight: 500 }
.cookie-buttons { display: flex; gap: .5rem }
.cookie-btn {
  padding: .45rem .9rem; border-radius: 6px;
  font-weight: 600; cursor: pointer;
  transition: all .2s; font-size: .85rem;
  font-family: var(--font-body);
}
.cookie-btn-accept { background: var(--primary); color: #fff; border: none }
.cookie-btn-accept:hover { background: #1e3a8a }
.cookie-btn-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.cookie-btn-decline:hover { border-color: var(--text-secondary) }

/* ─── Animations ─── */
.scroll-animate {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.scroll-animate.animate-in { opacity: 1; transform: translateY(0) }
.stagger > * {
  opacity: 0; transform: translateY(14px);
  animation: fadeSlideUp .5s ease forwards;
}
.stagger > *:nth-child(1) { animation-delay: .08s }
.stagger > *:nth-child(2) { animation-delay: .16s }
.stagger > *:nth-child(3) { animation-delay: .24s }
.stagger > *:nth-child(4) { animation-delay: .32s }
.stagger > *:nth-child(5) { animation-delay: .40s }
.stagger > *:nth-child(6) { animation-delay: .48s }
@keyframes fadeSlideUp { to { opacity: 1; transform: translateY(0) } }

/* ─── Search ─── */
.search-wrap { position: relative; margin-left: auto; align-self: center }
.search-input {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 999px; padding: .4rem 1rem .4rem 2.2rem;
  font-size: .85rem; color: var(--text); width: 210px;
  outline: none; transition: border .2s, width .3s, box-shadow .2s;
  font-family: var(--font-body);
}
.search-input::placeholder { color: var(--text-secondary); opacity: .6 }
.search-input:focus {
  border-color: var(--primary); width: 270px;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
}
.search-icon {
  position: absolute; left: .75rem; top: 50%;
  transform: translateY(-50%); color: var(--text-secondary);
  pointer-events: none; font-size: .85rem; line-height: 1;
}
.search-dropdown {
  position: absolute; top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto;
  z-index: 100; display: none;
}
.search-dropdown.open { display: block }
.search-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .85rem; cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.search-item:last-child { border-bottom: none }
.search-item:hover, .search-item.active { background: rgba(var(--primary-rgb), .06) }
.search-item .s-name { font-weight: 600; font-size: .86rem; color: var(--text) }
.search-item .s-name mark { background: transparent; color: var(--primary); font-weight: 700 }
.search-item .s-meta { font-size: .7rem; color: var(--text-secondary) }
.search-item .s-type {
  display: inline-block; padding: .08rem .35rem;
  border-radius: 999px; font-size: .6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.s-type-o { background: rgba(var(--accent-rgb), .12); color: var(--accent) }
.s-type-c { background: rgba(var(--primary-rgb), .1); color: var(--primary) }
.s-type-b { background: rgba(139,92,246,.1); color: #7c3aed }
.search-hint {
  padding: .65rem .85rem; color: var(--text-secondary);
  font-size: .8rem; text-align: center;
}

/* Search Results Page */
.search-results-grid { display: grid; gap: .75rem; margin-top: 1.2rem }
.sr-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  transition: transform .2s, box-shadow .2s;
}
.sr-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md) }
.sr-info { flex: 1; min-width: 0 }
.sr-info .s-name { font-weight: 600; font-size: .95rem }
.sr-info .s-name a { color: var(--text) }
.sr-info .s-name a:hover { color: var(--primary) }
.sr-info .s-detail { font-size: .8rem; color: var(--text-secondary); margin-top: .15rem }
.sr-count { font-size: .88rem; color: var(--text-secondary); margin-bottom: .8rem }
.search-tabs { display: flex; gap: .4rem; margin-bottom: 1rem }
.search-tab {
  padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .8rem; cursor: pointer;
  color: var(--text-secondary);
  transition: all .2s; background: transparent;
  font-family: var(--font-body);
}
.search-tab.active {
  border-color: var(--primary); color: var(--primary);
  background: rgba(var(--primary-rgb), .06);
}
.search-tab:hover { border-color: var(--primary); color: var(--primary) }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr }
  .detail-grid { grid-template-columns: 1fr }
  .detail-card-wide { padding: 1.2rem }
}
@media (max-width: 640px) {
  .nav-bar { flex-direction: column; align-items: flex-start; gap: .6rem }
  .search-input { width: 100% }
  .search-input:focus { width: 100% }
  .search-wrap { width: 100%; margin-left: 0 }
  .hero { padding: 3rem 0 2rem }
  .ranking-table { font-size: .82rem }
  .ranking-table th, .ranking-table td { padding: .5rem .6rem }
  .detail-card { padding: 1rem }
  .detail-card-wide { padding: 1rem .9rem }
  .major-grid { grid-template-columns: 1fr 1fr }
  .stat-grid { grid-template-columns: repeat(2, 1fr) }
}
