:root {
  --research-bg: #e8e1d8;
  --research-surface: #f7f3ed;
  --research-surface-strong: #fffdf8;
  --research-ink: #201f1c;
  --research-muted: #6c675f;
  --research-line: #b9aea1;
  --research-line-soft: #d8cec2;
  --research-red: #ad332d;
  --research-red-soft: #d78a7e;
  --research-blue: #315f6f;
  --research-blue-soft: #8caeb5;
  --research-gold: #a57c3b;
  --research-green: #667c68;
  --research-spiral-bg: #080808;
  --research-spiral-ink: #f0ece4;
  --research-spiral-muted: #b8b0a7;
  --research-spiral-axis: #c5ad32;
  --research-spiral-year: #75a96b;
  --research-spiral-old: #496f91;
  --research-spiral-cool: #4f8790;
  --research-spiral-mid: #738f78;
  --research-spiral-warm: #a89a64;
  --research-spiral-hot: #b47a61;
  --research-spiral-recent: #b65359;
  --research-shadow: 0 18px 45px rgba(53, 44, 36, 0.08);
}

html[data-effective-theme="night"] {
  --research-bg: #1c1b1a;
  --research-surface: #252321;
  --research-surface-strong: #2b2926;
  --research-ink: #f1ece5;
  --research-muted: #b8afa5;
  --research-line: #5b534c;
  --research-line-soft: #403b36;
  --research-red: #e06b61;
  --research-red-soft: #a8514a;
  --research-blue: #85b6c3;
  --research-blue-soft: #547f88;
  --research-gold: #c8a56b;
  --research-green: #91aa93;
  --research-spiral-bg: #050505;
  --research-spiral-ink: #f4eee7;
  --research-spiral-muted: #c0b7ae;
  --research-spiral-axis: #d4bd3d;
  --research-spiral-year: #83b779;
  --research-spiral-old: #5c8caf;
  --research-spiral-cool: #5f9da2;
  --research-spiral-mid: #86a68a;
  --research-spiral-warm: #b9aa70;
  --research-spiral-hot: #c18a6e;
  --research-spiral-recent: #d06269;
  --research-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.charts-research-page {
  min-height: 100vh;
  margin: 0;
  color: var(--research-ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(173, 51, 45, 0.08), transparent 23rem),
    linear-gradient(180deg, var(--research-surface) 0 29rem, var(--research-bg) 29rem 100%);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.research-main {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 48px;
  align-items: end;
  min-height: 410px;
  padding: 54px 58px;
  border: 1px solid var(--research-line);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.52), transparent 58%),
    var(--research-surface);
  box-shadow: var(--research-shadow);
}

html[data-effective-theme="night"] .research-hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.025), transparent 58%),
    var(--research-surface);
}

.research-eyebrow,
.research-card-kicker {
  margin: 0 0 8px;
  color: var(--research-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.research-hero h1 {
  max-width: 860px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.65rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.research-hero-lede {
  max-width: 820px;
  margin: 30px 0 0;
  color: var(--research-muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.65;
}

.research-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.research-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--research-line);
  color: var(--research-ink);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.research-button:hover {
  color: var(--research-ink);
  transform: translateY(-1px);
}

html body.observatory-page.charts-research-page a.research-button.research-button-primary:not(.btn) {
  border-color: var(--research-red);
  color: #fff !important;
  background: var(--research-red);
}

html body.observatory-page.charts-research-page a.research-button.research-button-primary:not(.btn):hover {
  color: #fff !important;
}

.research-button-quiet {
  background: transparent;
}

.research-status {
  min-height: 1.4em;
  margin: 18px 0 0;
  color: var(--research-muted);
  font-size: 0.8rem;
}

.research-contract {
  margin: 0;
  border-top: 3px solid var(--research-ink);
}

.research-contract div {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--research-line-soft);
}

.research-contract dt {
  color: var(--research-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.research-contract dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.79rem;
  line-height: 1.35;
  text-align: right;
}

.research-question-nav {
  position: sticky;
  top: 68px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 22px 0;
  border: 1px solid var(--research-line);
  background: color-mix(in srgb, var(--research-surface-strong) 93%, transparent);
  box-shadow: 0 10px 30px rgba(40, 34, 29, 0.07);
  backdrop-filter: blur(12px);
}

.research-question-nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-right: 1px solid var(--research-line-soft);
  color: var(--research-ink);
  font-size: 0.75rem;
  font-weight: 720;
  text-decoration: none;
}

.research-question-nav a:last-child {
  border-right: 0;
}

.research-question-nav a:hover {
  background: color-mix(in srgb, var(--research-red) 8%, transparent);
}

.research-question-nav span {
  color: var(--research-red);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.research-scope,
.research-question,
.research-methods {
  scroll-margin-top: 132px;
}

.research-scope {
  padding: 34px 38px;
  border: 1px solid var(--research-line);
  background: var(--research-surface-strong);
}

.research-section-heading,
.research-card-head,
.research-question-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.research-section-heading h2,
.research-question-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.research-section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.research-section-meta {
  max-width: 480px;
  margin: 0;
  color: var(--research-muted);
  font-size: 0.78rem;
  text-align: right;
}

.research-scope-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--research-line-soft);
}

.research-scope-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--research-line-soft);
}

.research-scope-actions p {
  max-width: 820px;
  margin: 0;
  color: var(--research-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.research-scope-grid label,
.research-inline-controls label,
.research-event-search label,
.research-compact-field {
  display: grid;
  gap: 6px;
  color: var(--research-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.research-scope-grid .form-select,
.research-event-search .form-select,
.research-event-search .form-control {
  min-height: 44px;
  border-color: var(--research-line);
  border-radius: 0;
  color: var(--research-ink);
  background-color: var(--research-surface);
  font-size: 0.88rem;
}

.research-reset {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--research-ink);
  color: var(--research-ink);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.research-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--research-line-soft);
  background: var(--research-line-soft);
}

.overview-card {
  min-height: 128px;
  padding: 20px;
  background: var(--research-surface);
}

.overview-card small,
.stat-block small,
.current-metric-card small {
  display: block;
  margin-bottom: 7px;
  color: var(--research-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.overview-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
}

.overview-card span {
  display: block;
  margin-top: 9px;
  color: var(--research-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.research-question {
  padding: 82px 0 0;
}

.research-question-intro {
  justify-content: flex-start;
  max-width: 1050px;
  margin-bottom: 28px;
}

.research-question-number {
  flex: 0 0 auto;
  width: 68px;
  padding-top: 2px;
  border-top: 2px solid var(--research-red);
  color: var(--research-red);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.research-question-intro h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.research-question-intro p:last-child {
  max-width: 850px;
  margin: 16px 0 0;
  color: var(--research-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.research-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.research-two-column-wide {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.65fr);
}

.research-figure-card,
.research-reading-card,
.event-profile,
.research-current-card {
  border: 1px solid var(--research-line);
  background: var(--research-surface-strong);
  box-shadow: var(--research-shadow);
}

.research-figure-card,
.research-current-card {
  padding: 26px 28px;
}

.research-card-head {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--research-line-soft);
}

.research-card-head h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
}

.research-chip {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid var(--research-line);
  color: var(--research-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.67rem;
  white-space: nowrap;
}

.research-chart {
  position: relative;
  width: 100%;
}

.research-chart-radar {
  height: 510px;
  padding-top: 14px;
}

.spiral-card-head {
  align-items: end;
}

.spiral-selectors .form-select {
  min-width: 245px;
}

.spiral-toolbar {
  display: grid;
  grid-template-columns: auto auto auto minmax(190px, 1fr);
  gap: 8px;
  align-items: center;
  margin: 16px 0 12px;
}

.spiral-action {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--research-line);
  border-radius: 3px;
  color: var(--research-ink);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 750;
}

.spiral-action:hover,
.spiral-action:focus-visible,
.spiral-action[aria-pressed="true"] {
  border-color: var(--research-red);
  color: var(--research-red);
}

.spiral-action-primary {
  border-color: var(--research-red);
  color: #fff;
  background: var(--research-red);
}

.spiral-action-primary:hover,
.spiral-action-primary:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--research-red) 88%, #000);
}

.spiral-year-control {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  align-items: center;
  color: var(--research-muted);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.spiral-year-control output {
  justify-self: end;
  color: var(--research-red);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
}

.spiral-year-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--research-red);
}

.regional-spiral-stage {
  height: 620px;
  overflow: hidden;
  border: 1px solid #2f2d2d;
  background: var(--research-spiral-bg);
}

#regionalSpiralCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.spiral-year-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  color: var(--research-muted);
  font-size: 0.67rem;
}

.spiral-year-legend i {
  width: min(240px, 42%);
  height: 8px;
  border: 1px solid var(--research-line-soft);
  background: linear-gradient(
    90deg,
    var(--research-spiral-old),
    var(--research-spiral-cool),
    var(--research-spiral-mid),
    var(--research-spiral-warm),
    var(--research-spiral-hot),
    var(--research-spiral-recent)
  );
}

.spiral-scale-note {
  margin-right: auto;
  text-align: left;
}

.research-chart-trend {
  height: 465px;
  padding-top: 22px;
}

.interannual-region-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--research-red);
  background: color-mix(in srgb, var(--research-red) 7%, var(--research-surface));
  color: var(--research-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.interannual-method-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--research-red) 70%, transparent);
  background: var(--research-red);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interannual-method-badge.is-area {
  border-color: color-mix(in srgb, var(--research-blue) 70%, transparent);
  background: var(--research-blue);
}

.interannual-pelt-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  border: 1px solid var(--research-line-soft);
  background: var(--research-line-soft);
}

.pelt-change-card {
  min-width: 0;
  padding: 13px 15px;
  background: var(--research-surface);
}

.pelt-change-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.pelt-change-card header strong {
  color: var(--research-ink);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pelt-change-card header span {
  color: var(--research-muted);
  font-size: 0.64rem;
}

.pelt-change-card.is-mean {
  border-top: 3px solid var(--research-red);
}

.pelt-change-card.is-slope {
  border-top: 3px solid var(--research-blue);
}

.pelt-change-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pelt-change-list li,
.pelt-no-change {
  padding: 5px 7px;
  border: 1px solid var(--research-line-soft);
  color: var(--research-muted);
  background: color-mix(in srgb, var(--research-surface-strong) 84%, transparent);
  font-size: 0.66rem;
  line-height: 1.35;
}

.pelt-change-list b {
  margin-right: 5px;
  color: var(--research-ink);
}

@media (max-width: 760px) {
  .interannual-pelt-summary {
    grid-template-columns: 1fr;
  }
}

.research-chart-event-field {
  height: 480px;
  padding-top: 18px;
}

.research-chart-current {
  height: 360px;
  margin-top: 22px;
}

.research-reading-card,
.event-profile {
  padding: 30px;
}

.reading-region-label {
  color: var(--research-red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-reading-card h3,
.event-profile h3 {
  margin: 10px 0;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  font-weight: 500;
  line-height: 1.05;
}

.reading-lede {
  margin: 0 0 24px;
  color: var(--research-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.fingerprint-list,
.event-rank-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--research-line-soft);
  background: var(--research-line-soft);
}

.fingerprint-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 14px;
  background: var(--research-surface);
}

.fingerprint-row span {
  color: var(--research-muted);
  font-size: 0.76rem;
}

.fingerprint-row strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.reading-callout {
  margin-top: 20px;
  padding: 16px;
  border-left: 3px solid var(--research-red);
  background: color-mix(in srgb, var(--research-red) 7%, transparent);
  color: var(--research-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.research-card-head-controls {
  align-items: end;
}

.research-inline-controls {
  display: flex;
  gap: 10px;
}

.interannual-selector-controls {
  flex: 0 0 590px;
  display: grid;
  grid-template-columns: 280px 300px;
  align-items: end;
}

.interannual-selector-controls label,
.interannual-selector-controls .form-select {
  width: 100%;
  min-width: 0;
}

.research-inline-controls .form-select,
.research-compact-field .form-select {
  min-width: 150px;
  border-color: var(--research-line);
  border-radius: 0;
  color: var(--research-ink);
  background-color: var(--research-surface);
}

.research-stat-strip,
.generation-summary,
.current-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--research-line-soft);
  background: var(--research-line-soft);
}

.stat-block,
.generation-summary-card,
.current-metric-card {
  min-height: 98px;
  padding: 15px;
  background: var(--research-surface);
}

.stat-block strong,
.generation-summary-card strong,
.current-metric-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.1;
}

.stat-block span,
.generation-summary-card span,
.current-metric-card span {
  display: block;
  margin-top: 6px;
  color: var(--research-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.generation-card {
  overflow: hidden;
}

.generation-header-controls {
  align-items: end;
}

.generation-header-controls label:first-child .form-select {
  min-width: 210px;
}

.generation-matrix-wrap {
  position: relative;
  overflow-x: auto;
  margin-top: 16px;
  padding: 18px 8px 4px;
}

#generationMatrix {
  display: block;
  width: 100%;
  min-width: 900px;
  height: auto;
  overflow: visible;
}

.generation-row-label {
  fill: var(--research-ink);
  font-size: 11px;
  font-weight: 750;
}

.generation-range-label,
.generation-axis-label {
  fill: var(--research-muted);
  font-size: 9px;
}

.generation-cell {
  stroke: color-mix(in srgb, var(--research-surface-strong) 80%, transparent);
  stroke-width: 0.55;
}

.generation-cell-missing {
  fill: color-mix(in srgb, var(--research-line-soft) 48%, transparent);
}

.generation-grid-line {
  stroke: var(--research-line-soft);
  stroke-width: 0.7;
}

.generation-focus-band {
  fill: color-mix(in srgb, var(--research-gold) 10%, transparent);
  stroke: color-mix(in srgb, var(--research-gold) 42%, transparent);
  stroke-width: 1;
}

.generation-stage-kicker {
  fill: var(--research-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.generation-stage-avatar circle,
.generation-stage-avatar path {
  stroke: color-mix(in srgb, var(--research-ink) 52%, transparent);
  stroke-width: 1;
  transition: filter 150ms ease, transform 150ms ease;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.generation-stage-avatar:hover circle,
.generation-stage-avatar:hover path,
.generation-stage-avatar:focus circle,
.generation-stage-avatar:focus path {
  filter: saturate(1.08) contrast(1.05);
  transform: translateY(-2px);
}

.generation-stage-label {
  fill: var(--research-ink);
  font-size: 9px;
  font-weight: 750;
}

.generation-stage-range {
  fill: var(--research-muted);
  font-size: 8px;
}

.generation-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-height: 30px;
  color: var(--research-muted);
  font-size: 0.67rem;
}

.generation-legend-ramp {
  width: 180px;
  height: 9px;
  border: 1px solid var(--research-line-soft);
  background: linear-gradient(90deg, #315f6f, #9bb8b6, #e4d4b6, #c87863, #8f2f2b);
}

.generation-stripes-section {
  overflow-x: auto;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--research-line-soft);
}

.generation-stripes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.generation-stripes-head strong {
  font-size: 0.8rem;
}

.generation-stripes-head span {
  color: var(--research-muted);
  font-size: 0.68rem;
}

#generationStripes {
  display: block;
  width: 100%;
  min-width: 900px;
  height: auto;
  overflow: visible;
}

.generation-stripe-cell {
  stroke: color-mix(in srgb, var(--research-surface-strong) 72%, transparent);
  stroke-width: 0.5;
}

.research-method-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--research-line-soft);
  color: var(--research-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.research-event-search {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.3fr);
  gap: 12px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--research-line);
  background: var(--research-surface-strong);
}

.event-search-results {
  position: absolute;
  top: calc(100% - 18px);
  left: 18px;
  z-index: 20;
  display: none;
  width: calc(72% - 30px);
  max-height: 330px;
  overflow-y: auto;
  border: 1px solid var(--research-line);
  background: var(--research-surface-strong);
  box-shadow: var(--research-shadow);
}

.event-search-results.is-open {
  display: block;
}

.event-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--research-line-soft);
  color: var(--research-ink);
  background: transparent;
  text-align: left;
}

.event-result:hover,
.event-result:focus {
  outline: 0;
  background: color-mix(in srgb, var(--research-red) 7%, var(--research-surface));
}

.event-result strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
}

.event-result span,
.event-result small {
  color: var(--research-muted);
  font-size: 0.72rem;
}

.research-event-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
}

.event-identity {
  display: inline-flex;
  padding: 6px 8px;
  color: #fff;
  background: var(--research-red);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

.event-metric-value {
  margin: 25px 0;
  padding: 18px 0;
  border-top: 1px solid var(--research-line-soft);
  border-bottom: 1px solid var(--research-line-soft);
}

.event-metric-value small {
  display: block;
  color: var(--research-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.event-metric-value strong {
  display: block;
  margin-top: 5px;
  font-family: Georgia, serif;
  font-size: 2.35rem;
  font-weight: 500;
}

.event-rank-grid {
  grid-template-columns: 1fr 1fr;
}

.event-rank {
  padding: 16px;
  background: var(--research-surface);
}

.event-rank small {
  display: block;
  color: var(--research-muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-rank strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.event-year-maximum {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--research-blue) 38%, var(--research-line-soft));
  border-radius: 3px;
  background: color-mix(in srgb, var(--research-blue) 6%, var(--research-surface));
}

.event-year-maximum small {
  color: var(--research-blue);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-year-maximum strong {
  font-size: 1rem;
}

.event-year-maximum span {
  color: var(--research-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.event-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 20px 0 0;
}

.event-fields div {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--research-line-soft);
}

.event-fields dt {
  color: var(--research-muted);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.event-fields dd {
  margin: 3px 0 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
}

.research-question-current {
  margin-top: 82px;
  padding: 58px;
  border: 1px solid var(--research-line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--research-blue) 9%, transparent), transparent 48%),
    var(--research-surface);
}

.research-question-current .research-question {
  padding-top: 0;
}

.research-question-current .research-question-intro {
  margin-bottom: 30px;
}

.research-current-card {
  box-shadow: none;
}

.current-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.current-metric-card.is-current strong {
  color: var(--research-red);
}

.current-status-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 7px;
  border: 1px solid var(--research-gold);
  color: var(--research-gold);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.current-year-selector {
  display: grid;
  flex: 0 0 250px;
  gap: 6px;
  width: 250px;
  color: var(--research-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.current-year-selector .form-select {
  width: 100%;
  min-height: 42px;
  border-color: var(--research-line);
  border-radius: 2px;
  color: var(--research-ink);
  background-color: var(--research-surface-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.current-year-status {
  margin-top: 18px;
  padding: 11px 14px;
  border-left: 3px solid var(--research-blue);
  color: var(--research-muted);
  background: color-mix(in srgb, var(--research-blue) 7%, transparent);
  font-size: 0.8rem;
  line-height: 1.5;
}

.current-year-status.is-partial {
  border-left-color: var(--research-gold);
  color: var(--research-ink);
  background: color-mix(in srgb, var(--research-gold) 11%, transparent);
}

.current-bubble-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  margin-top: 22px;
}

.current-bubble-layout .research-chart-current {
  height: 640px;
  margin-top: 0;
}

.current-bubble-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 2px 0;
  color: var(--research-muted);
  font-size: 0.72rem;
}

.current-bubble-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.current-bubble-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.current-bubble-legend .is-focus {
  border: 2px solid var(--research-red);
  background: transparent;
}

.current-bubble-legend .current-hwmm-scale {
  gap: 8px;
}

.current-bubble-legend .current-hwmm-ramp {
  width: 112px;
  height: 9px;
  border: 1px solid color-mix(in srgb, var(--research-line) 78%, transparent);
  border-radius: 2px;
  background: linear-gradient(90deg, #496f91, #4f8790, #738f78, #a89a64, #b47a61, #b65359);
}

.current-hwmm-scale b {
  color: var(--research-muted);
  font-size: inherit;
  font-weight: 750;
}

.research-question-distribution {
  margin-top: 82px;
  padding: 58px;
  border: 1px solid var(--research-line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--research-gold) 9%, transparent), transparent 48%),
    var(--research-surface);
}

.research-question-distribution .research-question-intro {
  margin-bottom: 30px;
}

.distribution-card {
  box-shadow: none;
}

.distribution-card-head {
  align-items: flex-start;
  flex-direction: column;
}

.distribution-controls {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(310px, 1.35fr) minmax(190px, 0.65fr);
  gap: 12px;
  align-items: end;
  width: 100%;
}

.distribution-controls > label:not(.distribution-check) {
  display: grid;
  gap: 6px;
  color: var(--research-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.distribution-controls .form-select {
  width: 100%;
  min-height: 42px;
  border-color: var(--research-line);
  border-radius: 2px;
  color: var(--research-ink);
  background-color: var(--research-surface-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.distribution-check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--research-line);
  color: var(--research-muted);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
}

.distribution-check input {
  flex: 0 0 auto;
  accent-color: var(--research-red);
}

.distribution-status {
  margin: 18px 0 0;
  padding: 11px 14px;
  border-left: 3px solid var(--research-blue);
  color: var(--research-muted);
  background: color-mix(in srgb, var(--research-blue) 7%, transparent);
  font-size: 0.76rem;
  line-height: 1.5;
}

.distribution-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--research-line-soft);
  background: var(--research-line-soft);
}

.distribution-summary article {
  min-height: 118px;
  padding: 18px;
  background: var(--research-surface);
}

.distribution-summary small,
.distribution-summary strong,
.distribution-summary span {
  display: block;
}

.distribution-summary small {
  margin-bottom: 7px;
  color: var(--research-muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.distribution-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-weight: 500;
  line-height: 1.08;
}

.distribution-summary span {
  margin-top: 8px;
  color: var(--research-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.research-chart-distribution {
  height: 580px;
  margin-top: 22px;
}

.distribution-percentile {
  margin-top: 20px;
  padding: 15px 18px 14px;
  border: 1px solid var(--research-line-soft);
  background: color-mix(in srgb, var(--research-blue) 4%, var(--research-surface));
}

.distribution-percentile-head,
.distribution-percentile-ends {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.distribution-percentile-head strong {
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.distribution-percentile-head span,
.distribution-percentile-ends {
  color: var(--research-muted);
  font-size: 0.68rem;
}

.distribution-percentile-rail {
  position: relative;
  height: 32px;
  margin: 22px 4px 8px;
  border-top: 4px solid var(--research-line-soft);
}

.distribution-percentile-fill {
  position: absolute;
  top: -4px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--research-blue), var(--research-gold), var(--research-red));
}

.distribution-percentile-marker {
  position: absolute;
  top: -11px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--research-red);
  border-radius: 50%;
  background: var(--research-surface-strong);
  transform: translateX(-50%);
}

.distribution-percentile-marker b {
  position: absolute;
  top: 20px;
  left: 50%;
  color: var(--research-red);
  font-size: 0.64rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.distribution-percentile-rail em {
  position: absolute;
  top: 8px;
  color: var(--research-muted);
  font-size: 0.6rem;
  font-style: normal;
  transform: translateX(-50%);
}

.distribution-marker-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--research-line-soft);
  background: var(--research-line-soft);
}

.distribution-marker-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  background: var(--research-surface);
}

.distribution-marker-item.is-selected {
  background: color-mix(in srgb, var(--research-red) 8%, var(--research-surface));
}

.distribution-marker-item > i {
  width: 11px;
  height: 11px;
  border: 2px solid var(--marker-color);
  border-radius: 50%;
  background: transparent;
}

.distribution-marker-item div,
.distribution-marker-item strong,
.distribution-marker-item span {
  display: block;
  min-width: 0;
}

.distribution-marker-item strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.distribution-marker-item span,
.distribution-marker-item small {
  color: var(--research-muted);
  font-size: 0.62rem;
}

.distribution-marker-item > b {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  text-align: right;
}

.distribution-marker-item > small {
  grid-column: 3;
  text-align: right;
}

.distribution-case-source {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--research-gold);
  color: var(--research-muted);
  background: color-mix(in srgb, var(--research-gold) 7%, transparent);
  font-size: 0.74rem;
  line-height: 1.55;
}

.distribution-case-source strong {
  color: var(--research-ink);
}

.distribution-case-source a {
  color: var(--research-red);
  font-weight: 750;
}

.research-methods {
  margin-top: 82px;
  padding: 46px;
  border: 1px solid var(--research-line);
  background: var(--research-surface-strong);
}

.research-text-link {
  color: var(--research-red);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--research-line-soft);
  background: var(--research-line-soft);
}

.methods-grid article {
  min-height: 225px;
  padding: 22px;
  background: var(--research-surface);
}

.methods-grid article > span {
  display: block;
  color: var(--research-red);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.methods-grid h3 {
  margin: 30px 0 10px;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.methods-grid p {
  margin: 0;
  color: var(--research-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.research-source-note {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid var(--research-red);
  color: var(--research-muted);
  background: color-mix(in srgb, var(--research-red) 6%, transparent);
  font-size: 0.76rem;
  line-height: 1.55;
}

.research-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--research-line);
  color: var(--research-ink);
  background: var(--research-surface-strong);
  box-shadow: var(--research-shadow);
  font-size: 0.72rem;
  line-height: 1.45;
  pointer-events: none;
}

.research-empty {
  padding: 24px;
  border: 1px dashed var(--research-line);
  color: var(--research-muted);
  background: var(--research-surface);
  font-size: 0.8rem;
}

/* Homepage-aligned visual system ------------------------------------------------ */

:root {
  --research-bg: #d2ccc4;
  --research-surface: #eee9e2;
  --research-surface-strong: #eee9e2;
  --research-ink: #2b2523;
  --research-muted: #514641;
  --research-line: #a4978f;
  --research-line-soft: #c8beb6;
  --research-red: #8f241f;
  --research-red-soft: #c66d63;
  --research-blue: #315f6f;
  --research-blue-soft: #86aab2;
  --research-gold: #a97835;
  --research-green: #667c68;
  --research-shadow: none;
}

html[data-effective-theme="night"] {
  --research-bg: #171516;
  --research-surface: #211e1f;
  --research-surface-strong: #262223;
  --research-ink: #f7f0eb;
  --research-muted: #c6bbb4;
  --research-line: #645b57;
  --research-line-soft: #403a38;
  --research-red: #dc5b52;
  --research-red-soft: #a74c46;
  --research-blue: #86b6c2;
  --research-blue-soft: #587d85;
  --research-gold: #c89f62;
  --research-green: #91aa93;
}

.charts-research-page {
  color: var(--research-ink);
  background: var(--research-bg);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.research-main {
  width: min(1280px, calc(100% - 24px));
  padding: 18px 0 72px;
}

.research-hero {
  min-height: 390px;
  padding: 42px 48px;
  border: 1px solid #5f3936;
  border-radius: 4px;
  color: #f7f0eb;
  background:
    radial-gradient(circle at 69% 46%, rgba(49, 95, 111, 0.4) 0, rgba(19, 29, 32, 0.36) 18%, transparent 38%),
    linear-gradient(112deg, rgba(8, 6, 7, 0.98) 0 48%, rgba(18, 13, 14, 0.95) 100%),
    #080607;
  box-shadow: none;
}

html[data-effective-theme="night"] .research-hero {
  background:
    radial-gradient(circle at 69% 46%, rgba(49, 95, 111, 0.4) 0, rgba(19, 29, 32, 0.36) 18%, transparent 38%),
    linear-gradient(112deg, rgba(8, 6, 7, 0.98) 0 48%, rgba(18, 13, 14, 0.95) 100%),
    #080607;
}

.research-hero h1,
.research-section-heading h2,
.research-question-intro h2,
.research-card-head h3,
.research-reading-card h3,
.event-profile h3,
.overview-card strong,
.stat-block strong,
.generation-summary-card strong,
.current-metric-card strong,
.event-metric-value strong,
.event-rank strong,
.methods-grid h3 {
  font-family: inherit;
}

.research-hero h1 {
  max-width: 720px;
  color: #f7f0eb;
  font-size: clamp(2.7rem, 4.25vw, 3.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.research-hero h1 span {
  color: #e65a50;
}

.research-hero-lede {
  max-width: 720px;
  margin-top: 24px;
  color: #d5cbc5;
  font-size: 1rem;
  line-height: 1.58;
}

.research-eyebrow,
.research-card-kicker {
  margin-bottom: 7px;
  font-size: 0.765rem;
  font-weight: 720;
  letter-spacing: 0.035em;
}

.research-hero .research-eyebrow {
  color: #ee756b;
}

.research-button {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 4px;
  font-size: 0.89rem;
  font-weight: 700;
}

html body.observatory-page.charts-research-page a.research-button.research-button-primary:not(.btn) {
  border-color: #8f241f;
  color: #fff8f4 !important;
  background: #8f241f;
}

html body.observatory-page.charts-research-page .research-hero a.research-button.research-button-quiet:not(.btn) {
  border-color: #8f6d68;
  color: #fff8f4 !important;
}

.research-status {
  color: #bfb3ad;
  font-size: 0.78rem;
}

.research-contract {
  border-top-color: #d4c8c1;
}

.research-contract div {
  padding: 13px 0;
  border-bottom-color: #4f4542;
}

.research-contract dt {
  color: #bfb3ad;
  font-size: 0.67rem;
}

.research-contract dd {
  color: #f7f0eb;
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  font-size: 0.76rem;
}

.research-question-nav {
  top: 68px;
  margin: 14px 0;
  border-color: var(--research-line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--research-surface) 94%, transparent);
  box-shadow: none;
  overflow: hidden;
}

.research-question-nav a {
  min-height: 48px;
  color: var(--research-ink);
  font-size: 0.74rem;
  font-weight: 700;
}

.research-question-nav a:hover {
  color: var(--research-ink);
  background: color-mix(in srgb, var(--research-red) 7%, var(--research-surface));
}

.research-scope {
  padding: 30px 32px;
  border-color: var(--research-line);
  border-radius: 6px;
  background: var(--research-surface);
}

.research-section-heading h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.research-section-meta {
  color: var(--research-muted);
  font-size: 0.78rem;
}

.research-scope-grid label,
.research-inline-controls label,
.research-event-search label,
.research-compact-field {
  color: var(--research-muted);
  font-size: 0.7rem;
  font-weight: 720;
}

.research-scope-grid .form-select,
.research-event-search .form-select,
.research-event-search .form-control,
.research-inline-controls .form-select,
.research-compact-field .form-select {
  border-color: var(--research-line);
  border-radius: 4px;
  color: var(--research-ink);
  background-color: #f4efe9;
  font-size: 0.86rem;
}

html[data-effective-theme="night"] .research-scope-grid .form-select,
html[data-effective-theme="night"] .research-event-search .form-select,
html[data-effective-theme="night"] .research-event-search .form-control,
html[data-effective-theme="night"] .research-inline-controls .form-select,
html[data-effective-theme="night"] .research-compact-field .form-select {
  background-color: #2c2829;
}

.research-reset {
  border-color: var(--research-ink);
  border-radius: 4px;
  font-size: 0.74rem;
}

.research-overview,
.research-stat-strip,
.generation-summary,
.current-summary {
  gap: 10px;
  border: 0;
  background: transparent;
}

.overview-card,
.stat-block,
.generation-summary-card,
.current-metric-card {
  border: 1px solid var(--research-line-soft);
  border-radius: 4px;
  background: #f4efe9;
}

html[data-effective-theme="night"] .overview-card,
html[data-effective-theme="night"] .stat-block,
html[data-effective-theme="night"] .generation-summary-card,
html[data-effective-theme="night"] .current-metric-card {
  background: #2c2829;
}

.overview-card small,
.stat-block small,
.current-metric-card small {
  font-size: 0.66rem;
  font-weight: 720;
}

.overview-card strong {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 650;
}

.overview-card span,
.stat-block span,
.generation-summary-card span,
.current-metric-card span {
  font-size: 0.73rem;
}

.research-question {
  padding-top: 58px;
}

.research-question-intro {
  max-width: 1080px;
  margin-bottom: 22px;
}

.research-question-number {
  width: 58px;
  color: var(--research-red);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 720;
}

.research-question-intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.research-question-intro p:last-child {
  margin-top: 12px;
  color: var(--research-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.research-figure-card,
.research-reading-card,
.event-profile,
.research-current-card {
  border-color: var(--research-line);
  border-radius: 6px;
  background: var(--research-surface);
  box-shadow: none;
}

.research-figure-card,
.research-current-card {
  padding: 24px;
}

.research-card-head h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.research-chip {
  border-radius: 3px;
  color: var(--research-muted);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
}

.research-reading-card,
.event-profile {
  padding: 26px;
}

.research-reading-card h3,
.event-profile h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 650;
}

.reading-lede {
  color: var(--research-muted);
  font-size: 0.86rem;
}

.fingerprint-list,
.event-rank-grid {
  gap: 6px;
  border: 0;
  background: transparent;
}

.fingerprint-row,
.event-rank {
  border: 1px solid var(--research-line-soft);
  border-radius: 3px;
  background: #f4efe9;
}

html[data-effective-theme="night"] .fingerprint-row,
html[data-effective-theme="night"] .event-rank {
  background: #2c2829;
}

.fingerprint-row span,
.fingerprint-row strong {
  font-size: 0.74rem;
}

.reading-callout,
.research-source-note {
  border-left-color: var(--research-red);
  border-radius: 0 4px 4px 0;
}

.stat-block strong,
.generation-summary-card strong,
.current-metric-card strong {
  font-size: 1.2rem;
  font-weight: 650;
}

.research-method-note {
  font-size: 0.73rem;
}

.research-event-search {
  border-color: var(--research-line);
  border-radius: 6px;
  background: var(--research-surface);
}

.event-search-results {
  border-color: var(--research-line);
  border-radius: 4px;
  background: var(--research-surface);
  box-shadow: none;
}

.event-metric-value strong {
  font-size: 2rem;
  font-weight: 650;
}

.event-rank strong {
  font-size: 1.35rem;
  font-weight: 650;
}

.research-question-current {
  margin-top: 58px;
  padding: 0;
  border: 0;
  background: transparent;
}

.research-methods {
  margin-top: 58px;
  padding: 36px 32px;
  border-color: var(--research-line);
  border-radius: 6px;
  background: var(--research-surface);
}

.methods-grid {
  gap: 10px;
  border: 0;
  background: transparent;
}

.methods-grid article {
  min-height: 210px;
  border: 1px solid var(--research-line-soft);
  border-radius: 4px;
  background: #f4efe9;
}

html[data-effective-theme="night"] .methods-grid article {
  background: #2c2829;
}

.methods-grid h3 {
  font-size: 1rem;
  font-weight: 650;
}

.methods-grid p {
  font-size: 0.73rem;
}

.research-tooltip {
  border-radius: 4px;
  background: var(--research-surface);
  box-shadow: none;
}

@media (max-width: 1100px) {
  .research-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .research-contract {
    max-width: 650px;
  }

  .research-question-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .research-question-nav a:nth-child(even) {
    border-right: 0;
  }

  .research-question-nav a:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .research-scope-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spiral-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .spiral-selectors {
    width: 100%;
  }

  .spiral-selectors label {
    flex: 1;
  }

  .spiral-toolbar {
    grid-template-columns: repeat(3, auto);
  }

  .spiral-year-control {
    grid-column: 1 / -1;
  }

  .research-overview,
  .research-stat-strip,
  .generation-summary,
  .current-summary,
  .distribution-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .distribution-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .distribution-controls {
    grid-template-columns: 1fr 1.25fr;
    width: 100%;
  }

  .distribution-check {
    grid-column: 1 / -1;
  }

  .distribution-marker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .methods-grid article:last-child {
    grid-column: auto;
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .research-main {
    width: min(100% - 20px, 1480px);
    padding-top: 18px;
  }

  .research-hero,
  .research-scope,
  .research-question-current,
  .research-question-distribution,
  .research-methods {
    padding: 28px 22px;
  }

  .research-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.8rem);
  }

  .research-question-nav {
    grid-template-columns: 1fr 1fr;
  }

  .research-question-nav a,
  .research-question-nav a:nth-child(3) {
    border-right: 1px solid var(--research-line-soft);
    border-bottom: 1px solid var(--research-line-soft);
  }

  .research-question-nav a:nth-child(even) {
    border-right: 0;
  }

  .research-question-nav a:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .research-section-heading,
  .research-card-head,
  .research-question-intro,
  .research-card-head-controls {
    flex-direction: column;
  }

  .research-section-meta {
    text-align: left;
  }

  .research-question {
    padding-top: 58px;
  }

  .research-question-number {
    width: 50px;
  }

  .research-two-column,
  .research-two-column-wide,
  .research-event-layout,
  .research-event-search {
    grid-template-columns: 1fr;
  }

  .event-search-results {
    width: calc(100% - 36px);
  }

  .research-chart-radar,
  .research-chart-trend {
    height: 420px;
  }

  .research-inline-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .interannual-selector-controls {
    flex-basis: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-inline-controls label {
    flex: 1;
  }

  .research-inline-controls .form-select,
  .research-compact-field .form-select {
    min-width: 0;
  }

  .research-scope-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .regional-spiral-stage {
    height: 520px;
  }

  .current-bubble-layout .research-chart-current {
    height: 540px;
  }

  .research-chart-distribution {
    height: 500px;
  }
}

@media (max-width: 560px) {
  .interannual-selector-controls {
    grid-template-columns: 1fr;
  }
  .research-scope-grid,
  .research-overview,
  .research-stat-strip,
  .generation-summary,
  .current-summary,
  .distribution-summary,
  .methods-grid {
    grid-template-columns: 1fr;
  }

  .methods-grid article:last-child {
    grid-column: auto;
  }

  .research-hero {
    padding: 26px 18px;
  }

  .research-contract div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .research-contract dd {
    text-align: left;
  }

  .research-question-intro h2 {
    font-size: 2rem;
  }

  .research-figure-card,
  .research-current-card,
  .research-reading-card,
  .event-profile {
    padding: 20px 16px;
  }

  .research-chart-radar,
  .research-chart-trend,
  .research-chart-event-field,
  .research-chart-current {
    height: 360px;
  }

  .spiral-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .spiral-action-primary,
  .spiral-year-control {
    grid-column: 1 / -1;
  }

  .regional-spiral-stage {
    height: 460px;
  }

  .current-year-selector {
    flex-basis: auto;
    width: 100%;
  }

  .current-bubble-layout .research-chart-current {
    height: 460px;
  }

  .distribution-controls,
  .distribution-marker-list {
    grid-template-columns: 1fr;
  }

  .distribution-check {
    grid-column: auto;
  }

  .research-chart-distribution {
    height: 420px;
  }

  .distribution-percentile-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .distribution-marker-item > b {
    max-width: 105px;
  }
}
