/* ═══════════════════════════════════════════════
   research.css — Судалгаа хэсгийн нийтлэг style
   v2-* design system extend + index.html-н section-*
   prefix: rs-*
   ═══════════════════════════════════════════════ */

.rs-body { background: #fff; }

/* ─── Common section ─── */
.rs-section {
  padding: 5rem 0 4rem;
}
.rs-section--alt {
  background: var(--v2-bg-soft);
  border-top: 1px solid var(--v2-border-soft);
  border-bottom: 1px solid var(--v2-border-soft);
}

/* ─── Sub-research card (a, b, c, d) ─── */
.rs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.rs-grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

.rs-card {
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--v2-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.rs-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--v2-shadow-md);
  border-color: var(--v2-navy-soft);
}
/* Зураггүй текст карт — дээд талд алтан зураас */
.rs-card--text { border-top: 3px solid var(--gold, #C9A24A); }
article.rs-card--text { cursor: default; }
article.rs-card--text:hover { transform: none; box-shadow: var(--v2-shadow-sm); border-color: var(--v2-border); border-top-color: var(--gold, #C9A24A); }
.rs-card--text .rs-card-body { padding-top: 1.4rem; }
.ra-card--text .ra-card-body { padding-top: 1.25rem; }
.rs-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--v2-navy);
  background-size: cover;
  background-position: center;
  position: relative;
}
.rs-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.25) 100%);
}
.rs-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.rs-card-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v2-red);
  margin-bottom: 0.1rem;
}
.rs-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--v2-navy);
  margin: 0;
  line-height: 1.35;
}
.rs-card p {
  font-size: 0.88rem;
  color: var(--v2-text);
  line-height: 1.6;
  margin: 0;
}
.rs-card p strong { color: var(--v2-navy); font-weight: 600; }
.rs-card-meta {
  list-style: none;
  padding: 0.65rem 0 0;
  margin: auto 0 0;
  border-top: 1px dashed var(--v2-border);
  font-size: 0.78rem;
  color: var(--v2-text-mute);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ─── Sub-section heading (хичнээн хэвлэл, ангилал) ─── */
.rs-subhead {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--v2-border);
}
.rs-subhead h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v2-navy);
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.rs-subhead h3 i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--v2-red);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
}
.rs-subhead p {
  font-size: 0.9rem;
  color: var(--v2-text-mute);
  margin: 0;
}

/* ─── Тайлан table-like list ─── */
.rs-reports {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.rs-report {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rs-report:hover {
  border-color: var(--v2-red);
  background: #FEFCFC;
}
.rs-report-ico {
  width: 48px;
  height: 56px;
  background: linear-gradient(135deg, #FEE 0%, #FBD 100%);
  color: var(--v2-red);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.rs-report-body h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--v2-navy);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}
.rs-report-meta {
  font-size: 0.78rem;
  color: var(--v2-text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.rs-report-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.rs-report-actions {
  display: flex;
  gap: 0.4rem;
}
.rs-report-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--v2-bg);
  color: var(--v2-navy);
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.rs-report-btn:hover {
  background: var(--v2-red);
  color: #fff;
  border-color: var(--v2-red);
}

/* ─── Researcher filter + card ─── */
.rs-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.rs-filter label {
  font-size: 0.85rem;
  color: var(--v2-text-mute);
  font-weight: 600;
}
.rs-filter select,
.rs-filter input[type="search"] {
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--v2-text);
  min-width: 180px;
}
.rs-filter select:focus,
.rs-filter input[type="search"]:focus {
  outline: none;
  border-color: var(--v2-navy);
}

.rs-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.rs-person {
  background: var(--v2-bg-soft);
  border: 1px solid var(--v2-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--v2-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rs-person:hover {
  transform: translateY(-3px);
  box-shadow: var(--v2-shadow-md);
}
.rs-person-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v2-navy) 0%, var(--v2-navy-soft) 100%);
  color: rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 1rem;
}
.rs-person h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--v2-navy);
  margin: 0 0 0.3rem;
}
.rs-person-role {
  font-size: 0.82rem;
  color: var(--v2-text-mute);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.rs-person-field {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-red);
  background: rgba(233, 21, 24, 0.07);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .rs-section { padding: 3rem 0; }
  .rs-report { grid-template-columns: 48px 1fr; }
  .rs-report-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 0.5rem; border-top: 1px dashed var(--v2-border); margin-top: 0.5rem; }
}


/* ═══════════════════════════════════════════════
   Судалгаа — өвөрмөц header (split + stat panel)
   ═══════════════════════════════════════════════ */
.rs-hero { position:relative; color:#fff; overflow:hidden; padding:64px 0 56px; background:linear-gradient(120deg, #031F3E 0%, #06294f 55%, #3B0002 100%); }
.rs-hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; filter:brightness(.4) saturate(1.1); }
.rs-hero-overlay { position:absolute; inset:0; background:linear-gradient(120deg, rgba(3,31,62,.96) 0%, rgba(3,31,62,.74) 58%, rgba(59,0,2,.86) 100%); }
.rs-hero-inner { position:relative; z-index:1; display:grid; grid-template-columns:1.6fr 1fr; gap:40px; align-items:center; }
.rs-hero-tag { display:inline-flex; align-items:center; gap:8px; font-size:.72rem; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--gold-light,#E5C97B); border:1px solid rgba(201,162,74,.5); padding:5px 14px; border-radius:100px; margin-bottom:18px; }
.rs-hero-title { font-family:'Montserrat',sans-serif; font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight:800; line-height:1.12; margin:0 0 16px; text-shadow:0 2px 20px rgba(0,0,0,.4); }
.rs-hero-lead { font-size:clamp(.95rem,1.2vw,1.08rem); line-height:1.7; color:rgba(255,255,255,.9); margin:0 0 22px; max-width:560px; }
.rs-hero-chips { display:flex; flex-wrap:wrap; gap:10px; }
.rs-chip { font-size:.84rem; font-weight:600; color:#fff; text-decoration:none; padding:7px 15px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.45); border-radius:100px; transition:all .2s; }
.rs-chip:hover { background:var(--gold,#C9A24A); border-color:var(--gold,#C9A24A); color:#00142B; }
.rs-hero-stats { display:grid; gap:1px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.2); border-radius:16px; overflow:hidden; }
.rs-stat { background:rgba(3,31,62,.5); padding:1.25rem 1.5rem; display:flex; flex-direction:column; gap:.2rem; }
.rs-stat-num { font-size:2rem; font-weight:800; color:var(--gold-light,#E5C97B); line-height:1; }
.rs-stat-num small { font-size:1.1rem; }
.rs-stat-label { font-size:.82rem; color:rgba(255,255,255,.82); }
@media (max-width:860px){ .rs-hero-inner{ grid-template-columns:1fr; gap:26px;} .rs-hero-stats{ grid-template-columns:repeat(3,1fr);} .rs-stat{ text-align:center; align-items:center;} }
@media (max-width:560px){ .rs-hero-stats{ grid-template-columns:1fr;} .rs-stat{ flex-direction:row; justify-content:space-between; align-items:center;} }

.rs-chip.is-active { background:var(--gold,#C9A24A); border-color:var(--gold,#C9A24A); color:#00142B; cursor:default; }
