/* =========================================================
   Research page styles (page-specific)
   ========================================================= */

/* Research hero background + minor layout tweaks */
.hero.hero--research {
  background:
    linear-gradient(to right, rgba(5, 9, 20, 0.94), rgba(5, 9, 20, 0.62)),
    url("../../../assets/img/contact-bg.jpg")
      center/cover no-repeat;
}

.hero--research .hero-title {
  max-width: 28ch;
}

.hero--research .hero-accent {
  color: var(--color-primary);
}

.research-hero-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 198, 233, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--color-text-main);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.research-hero-card .programme-label {
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.research-hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.research-hero-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.research-hero-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.18rem;
  font-size: 0.65rem;
  color: var(--color-primary);
}

.research-hero-cta {
  margin: 0.9rem 0 0.85rem;
}

.research-hero-note {
  margin: 0;
  font-size: var(--fs-xs);
  color: rgba(161, 165, 181, 0.9);
  line-height: 1.6;
}

.section-light .btn-ghost,
.section-soft .btn-ghost {
  color: rgba(11, 16, 32, 0.5) !important;
}

.section-light .btn-ghost:hover,
.section-soft .btn-ghost:hover {
  color: white !important;
}

/* On-page nav */
.research-nav {
  padding: 26px 0;
}

.research-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-subnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(245, 245, 247, 0.85);
}

.research-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.85);
  text-decoration: none;
  border: 1px solid transparent;
}

.research-subnav a:hover {
  background: rgba(255, 147, 76, 0.08);
  border-color: rgba(255, 147, 76, 0.25);
  text-decoration: none;
}

/* Services */
.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.service-list {
  margin: 0.6rem 0 0.75rem;
  padding-left: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.service-list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.28rem;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.12rem;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* Service details (native <details>) */
.service-details {
  margin-top: 0.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 0.65rem;
}

.service-details summary {
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: rgba(11, 16, 32, 0.85);
  list-style: none;
  margin-bottom: .5em;
}

.service-details summary::-webkit-details-marker {
  display: none;
}

.service-details summary::after {
  content: "▾";
  margin-left: 0.4rem;
  font-size: 1.5em;
  color: rgba(11, 16, 32, 0.6);
}

.service-details[open] summary::after {
  content: "▴";
}

.service-details-body {
  margin-top: 0.55rem;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.75);
}

.card-link {
  margin: .5em 1.25em .75em;
}

/* CTA link inside service cards */
.service-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--color-primary);
  text-decoration: none;
}

.service-cta::after {
  content: "→";
  font-size: 0.9em;
}

.service-cta:hover {
  text-decoration: none;
}

/* Filters */
.service-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.4rem 0 0.4rem;
}

.filter-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(11, 16, 32, 0.85);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 147, 76, 0.55);
  background: rgba(255, 147, 76, 0.08);
}

.filter-chip.is-active {
  border-color: rgba(255, 147, 76, 0.6);
  background: rgba(255, 147, 76, 0.12);
}

.filter-status {
  text-align: center;
  margin: 0.4rem 0 1rem;
  font-size: var(--fs-sm);
  color: rgba(51, 54, 63, 0.85);
}

/* Steps */
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.step {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.02);
  padding: 1.05rem 1.1rem;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 750;
  color: rgba(11, 16, 32, 0.95);
  background: rgba(255, 147, 76, 0.18);
  border: 1px solid rgba(255, 147, 76, 0.28);
  margin-bottom: 0.65rem;
}

.step-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.step-text {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.75);
}

/* Engagement models */
.models-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.model-card h3 {
  margin: 0 0 0.45rem;
}

/* Governance (dark section cards) */
.governance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.governance-card {
  background: var(--color-bg-dark);
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--color-text-main);
}

.governance-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

/* Scoping section */
.scoping-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.scoping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.scoping-aside a {
  color: var(--color-primary);
  text-decoration: none;
}

.scoping-aside a:hover {
  text-decoration: underline;
}

.scoping-aside-text {
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.78);
  margin: 0;
}

.scoping-aside-note {
  margin: 0.8rem 0 0;
  font-size: var(--fs-xs);
  color: rgba(11, 16, 32, 0.7);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models-grid { grid-template-columns: minmax(0, 1fr); }
  .governance-grid { grid-template-columns: minmax(0, 1fr); }
  .scoping-grid { grid-template-columns: minmax(0, 1fr); }

  .research-subnav {
    border-radius: 18px;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
}