/* Research Agenda page
   Adds restrained visual hierarchy while preserving the .auDO design system. */

.research-page .research-hero-panel {
  position: relative;
  overflow: hidden;
}

.research-page .research-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 18%, rgba(240, 178, 77, 0.15), transparent 30%),
    radial-gradient(circle at 10% 88%, rgba(70, 184, 216, 0.09), transparent 30%);
}

.research-page .research-hero-panel .panel-inner {
  position: relative;
  z-index: 1;
}

.research-page .research-hero {
  padding-block: clamp(1.6rem, 4vw, 3.25rem);
}

.research-page .research-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.96;
}

.research-page .research-hero .hero-sub {
  max-width: 60ch;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.research-page .research-version {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 1.25rem;
  padding: 0 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: var(--tracking-micro);
}

.research-page .research-purpose .callout-block {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  background:
    radial-gradient(circle at 8% 0, rgba(240, 178, 77, 0.11), transparent 36%),
    rgba(255, 255, 255, 0.02);
}

.research-page .research-question-grid {
  gap: 1rem;
}

.research-page .research-question-grid .state-directory-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  background:
    linear-gradient(145deg, rgba(240, 178, 77, 0.075), rgba(255, 255, 255, 0.018) 52%),
    rgba(255, 255, 255, 0.012);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.research-page .research-question-grid .state-directory-card:nth-child(even) {
  border-color: color-mix(in srgb, var(--teal) 22%, var(--border));
  background:
    linear-gradient(145deg, rgba(70, 184, 216, 0.07), rgba(255, 255, 255, 0.018) 52%),
    rgba(255, 255, 255, 0.012);
}

.research-page .research-question-grid .state-directory-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: 0.9;
}

.research-page .research-question-grid .state-directory-card:nth-child(even)::before {
  background: linear-gradient(90deg, var(--teal), transparent 72%);
}

.research-page .research-question-grid .section-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.24rem 0.52rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
}

.research-page .research-question-grid .state-directory-card:nth-child(even) .section-eyebrow {
  border-color: color-mix(in srgb, var(--teal) 28%, var(--border));
  background: color-mix(in srgb, var(--teal) 8%, transparent);
  color: var(--teal);
}

.research-page .research-question-grid h3 {
  margin-bottom: 0.65rem;
}

.research-page .research-boundary-grid .state-principle-card {
  background:
    radial-gradient(circle at 0 0, rgba(240, 178, 77, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.018);
}

.research-page .research-boundary-grid .state-principle-card h3::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 178, 77, 0.10);
  vertical-align: 0.08em;
}

.research-page .research-output-grid .status-panel {
  border-color: color-mix(in srgb, var(--teal) 20%, var(--border));
  background:
    linear-gradient(180deg, rgba(70, 184, 216, 0.055), rgba(255, 255, 255, 0.018));
}

.research-page .research-output-grid .status-panel:nth-child(odd) {
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
  background:
    linear-gradient(180deg, rgba(240, 178, 77, 0.055), rgba(255, 255, 255, 0.018));
}

.research-page .research-output-grid .status-panel h4 {
  color: var(--text);
}

html[data-theme="light"] .research-page .research-hero-panel::after {
  background:
    radial-gradient(circle at 84% 18%, rgba(185, 119, 16, 0.11), transparent 30%),
    radial-gradient(circle at 10% 88%, rgba(22, 111, 184, 0.07), transparent 30%);
}

html[data-theme="light"] .research-page .research-question-grid .state-directory-card,
html[data-theme="light"] .research-page .research-boundary-grid .state-principle-card,
html[data-theme="light"] .research-page .research-output-grid .status-panel,
html[data-theme="light"] .research-page .research-purpose .callout-block {
  background-color: rgba(255, 255, 255, 0.60);
}

@media (max-width: 680px) {
  .research-page .research-hero h1 {
    max-width: 9ch;
  }

  .research-page .research-version {
    margin-top: 1rem;
  }
}
