:root {
  --bg: #f5f2ea;
  --bg-ink: #fbfaf7;
  --card: #ffffff;
  --card-soft: #fcfbf8;
  --text: #18212b;
  --muted: #5b6673;
  --line: #d7dde4;
  --line-soft: #e7e1d7;
  --grid: #edf1f4;
  --accent-positive: #e36b2c;
  --accent-positive-rgb: 227, 107, 44;
  --accent-negative: #2a7fb8;
  --section-title-size: 17px;
  --section-title-line-height: 1.25;
  --section-title-letter-spacing: -0.01em;
  --section-title-weight: 200;
  --explanatory-text-size: 15px;
  --explanatory-text-line-height: 1.55;
  --plot-support-text-size: 13px;
  --plot-support-text-line-height: 1.55;
  --shadow: 0 16px 36px rgba(24, 33, 43, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-positive-rgb), 0.08), transparent 26%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 45%, #f1ede4 100%);
  color: var(--text);
}

code,
button,
a {
  font: inherit;
}

code {
  font-family: "SFMono-Regular", ui-monospace, monospace;
  font-size: 15px;
}

button,
a {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.explanatory-text {
  margin: 0;
  font-size: var(--explanatory-text-size);
  line-height: var(--explanatory-text-line-height);
  color: var(--muted);
}

.plot-support-text {
  margin: 0;
  font-size: var(--plot-support-text-size);
  line-height: var(--plot-support-text-line-height);
  color: var(--muted);
}

.event-study__steps {
  margin: 4px 0 0;
  padding-left: 24px;
}

.event-study__steps li {
  margin-bottom: 4px;
}

.event-study__insight {
  margin: 16px 0 0;
}

.event-study__highlight {
  color: var(--accent-positive);
}

.plot-support-text--math-line {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
}

.plot-support-text__symbol {
  color: var(--text);
}

.plot-support-text__formula,
.plot-support-text--math-note {
  font-family: "JetBrains Mono", monospace;
}

.plot-support-text__purpose {
  font-size: 11.8px;
  line-height: 1.45;
}

.plot-support-text__label {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px 44px;
}

.page-header {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-header__eyebrow {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(13.1px, 1.4vw, 16px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-positive);
}

.page-header h1 {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(16px, 1.8vw, 24px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: none;
  white-space: nowrap;
  color: var(--accent-positive);
  justify-self: stretch;
  text-align: left;
}

.page-header__copy,
.page-header__hint,
.summary {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--section-title-size);
  line-height: var(--section-title-line-height);
  letter-spacing: var(--section-title-letter-spacing);
  text-transform: none;
  font-weight: var(--section-title-weight);
  color: var(--text);
  width: fit-content;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent-positive);
}

.page-header__intro-root {
  display: grid;
}

.page-header__intro {
  display: grid;
  width: 100%;
  max-width: 1060px;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding-top: 4px;
}

.page-header__intro .explanatory-text {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.62;
  letter-spacing: 0.002em;
  white-space: pre-line;
}

.page-header__intro .explanatory-text:first-child {
  color: #000000;
}

.page-header__intro .explanatory-text:last-child {
  font-size: 12.4px;
  line-height: 1.56;
  font-style: italic;
}

.header-logo-strip-root {
  display: grid;
  justify-items: center;
  margin-top: 2px;
}

.header-logo-strip {
  display: grid;
  justify-items: center;
  padding-top: 4px;
}

.header-logo-strip__track {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 10px 12px;
}

.header-logo-strip__item {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 78px;
  padding: 2px 0;
}

.header-logo-strip__badge {
  display: grid;
  place-items: center;
  width: 70px;
  height: 46px;
  padding: 5px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 140ms ease, background-color 140ms ease;
}

.header-logo-strip__item:hover .header-logo-strip__badge,
.header-logo-strip__item:focus-visible .header-logo-strip__badge {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.32);
}

.header-logo-strip__item:focus-visible {
  outline: none;
}

.header-logo-strip__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-logo-strip__year {
  font-size: 9.3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.year-overview-root {
  display: grid;
}

.single-year-detail-root {
  display: grid;
}

.event-study-root {
  display: grid; /* restore to "grid" when ready */
}

.comparison-section {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.comparison-controls-root {
  display: grid;
}

.comparison-controls {
  display: grid;
  gap: 18px;
}

.comparison-controls__title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}


/* The event-study prose matches the other sections' explanatory text. */
#event-study-root .explanatory-text {
  font-size: 13px;
  line-height: 1.62;
  max-width: 1140px;
}

/* Interpretation shown under a plot. */
.plot-note {
  margin: 0;
  max-width: 1140px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.62;
  color: var(--muted);
}
.comparison-note-root {
  display: grid;
  margin-top: 18px;
}

.comparison-controls__top {
  display: grid;
  grid-template-columns: minmax(232px, 280px) minmax(0, 1fr);
  gap: 18px 28px;
  align-items: start;
}

.comparison-controls__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 24px 40px;
}

.comparison-range {
  display: grid;
  gap: 10px;
}

.year-overview {
  display: grid;
  gap: 12px;
  width: min(100%, 1140px);
}

.event-study {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

.single-year-detail {
  display: grid;
  gap: 6px;
  padding-top: 1px;
}

@media (max-width: 860px) {
  .page-header__intro {
    width: 100%;
    padding-top: 0;
  }
}

.single-year-detail__plot-footer {
  margin-top: -4px;
  width: calc(100% - var(--detail-plot-left-offset, 0px) - var(--detail-plot-right-offset, 0px));
  max-width: 100%;
  margin-left: var(--detail-plot-left-offset, 0px);
  justify-self: start;
}

.single-year-detail__plot-footer .explanatory-text {
  margin: 0 auto;
  font-style: italic;
  font-size: 13px;
  text-align: center;
  white-space: pre-line;
}

.single-year-detail__header {
  display: grid;
  gap: 14px;
  padding: 18px 0 0;
  justify-items: start;
}

.single-year-detail__controls {
  display: grid;
  gap: 14px;
  justify-items: start;
  text-align: left;
}

.single-year-detail__plot-scroller {
  width: 100%;
  justify-self: stretch;
}

.single-year-detail__header > .researcher-search {
  margin-top: 0;
}

.single-year-detail__copy {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}


.event-study__header {
  display: grid;
  gap: 6px;
}

.event-study__copy {
  display: grid;
  gap: 6px;
  max-width: 122ch;
}

.event-study__eyebrow,
.event-study__title {
  margin: 0;
}

.event-study__eyebrow {
  font-size: 12.2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.event-study-filter {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.event-study-filter__title {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.event-study-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.event-study-filter__button {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 0 6px 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 120ms ease, color 120ms ease;
}

.event-study-filter__button:hover,
.event-study-filter__button:focus-visible,
.event-study-filter__button.is-active {
  border-bottom-color: rgba(var(--accent-positive-rgb), 0.58);
}

.event-study-filter__button:focus-visible {
  outline: none;
}

.event-study-filter__button-label {
  font-size: 13.4px;
  color: var(--text);
}

.event-study-filter__button-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.event-study-filter__button-count {
  font-size: 11.5px;
  color: var(--muted);
}

.event-study-filter__button-share {
  font-size: 10.9px;
  color: var(--muted);
}

.event-study-filter__button.is-active .event-study-filter__button-label,
.event-study-filter__button.is-active .event-study-filter__button-meta,
.event-study-filter__button.is-active .event-study-filter__button-share {
  color: var(--accent-positive);
}

.event-study-breakdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 2px;
}

.event-study-breakdown__item {
  display: inline-grid;
  gap: 1px;
}

.event-study-breakdown__item.is-active .event-study-breakdown__value,
.event-study-breakdown__item.is-active .event-study-breakdown__label {
  color: var(--accent-positive);
}

.event-study-breakdown__value {
  font-size: 13.1px;
  color: var(--text);
}

.event-study-breakdown__label,
.event-study-breakdown__arrow {
  font-size: 11.5px;
  color: var(--muted);
}

.event-study__math {
  display: grid;
  gap: 4px;
  margin: 2px 0 4px;
  max-width: 124ch;
}

.event-study__plot-root,
.event-study__raw-plot-root {
  min-width: 780px;
  height: 360px;
}

.hindex-filter {
  display: inline-grid;
  gap: 8px;
  flex: none;
  width: max-content;
  max-width: none;
  min-width: auto;
  align-content: start;
  padding-top: 4px;
}

.hindex-filter > .plot-support-text {
  max-width: 160ch;
}

.hindex-filter__title {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  text-align: left;
}

.hindex-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.hindex-filter__button {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 0 6px 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 120ms ease, color 120ms ease;
}

.hindex-filter__button:hover,
.hindex-filter__button:focus-visible,
.hindex-filter__button.is-active {
  border-bottom-color: rgba(var(--accent-positive-rgb), 0.58);
}

.hindex-filter__button:focus-visible {
  outline: none;
}

.hindex-filter__button-label {
  font-size: 13.1px;
  color: var(--text);
}

.hindex-filter__button-range {
  font-size: 11px;
  color: var(--muted);
}

.hindex-filter__button-count {
  font-size: 11.5px;
  color: var(--muted);
}

.hindex-filter__button-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hindex-filter__button-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.9px;
  color: var(--muted);
}

.hindex-filter__pie {
  display: block;
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}

.hindex-filter__pie-track {
  fill: none;
  stroke: rgba(24, 33, 43, 0.12);
  stroke-width: 2;
}

.hindex-filter__pie-fill {
  fill: none;
  stroke: rgba(24, 33, 43, 0.54);
  stroke-width: 2;
  stroke-linecap: round;
}

.hindex-filter__button.is-active .hindex-filter__button-label,
.hindex-filter__button.is-active .hindex-filter__button-count,
.hindex-filter__button.is-active .hindex-filter__button-share {
  color: var(--accent-positive);
}

.hindex-filter__button.is-active .hindex-filter__pie-fill {
  stroke: rgba(var(--accent-positive-rgb), 0.88);
}

.hindex-filter__button.is-active .hindex-filter__pie-track {
  stroke: rgba(var(--accent-positive-rgb), 0.16);
}

.year-overview__header {
  display: grid;
  gap: 6px;
}

.year-overview__copy,
.year-overview__eyebrow,
.year-overview__question {
  margin: 0;
}

.year-overview__copy {
  display: grid;
  gap: 6px;
  max-width: 118ch;
}

.year-overview__copy .explanatory-text {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.62;
  letter-spacing: 0.002em;
}

.year-overview__eyebrow {
  font-size: 12.2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.year-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 18px;
  margin-top: 12px;
}
.year-overview__notes {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}


.year-overview__trend {
  display: grid;
  width: min(100%, 1080px);
  margin-top: 0;
}

.year-overview-trend__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.year-overview-trend__point {
  cursor: pointer;
}

.year-overview-trend__hit {
  fill: transparent;
}

.year-overview-trend__bar {
  fill: rgba(24, 33, 43, 0.42);
}

.year-overview-trend__count,
.year-overview-trend__year {
  fill: rgba(91, 102, 115, 0.76);
  font-size: 9px;
}

.year-overview-trend__point a {
  cursor: pointer;
}

.year-overview-trend__point.is-active .year-overview-trend__bar {
  fill: rgba(var(--accent-positive-rgb), 0.82);
}

.year-overview-trend__point.is-active .year-overview-trend__count,
.year-overview-trend__point.is-active .year-overview-trend__year {
  fill: rgba(var(--accent-positive-rgb), 0.88);
}

.year-overview-panel {
  display: grid;
  grid-template-rows: minmax(24px, auto) auto;
  gap: 2px;
  align-content: start;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 120ms ease, color 120ms ease;
}

.year-overview-panel:hover,
.year-overview-panel:focus-visible,
.year-overview-panel.is-active {
  border-bottom-color: rgba(var(--accent-positive-rgb), 0.58);
}

.year-overview-panel:focus-visible {
  outline: none;
}

.year-overview-panel__year {
  display: inline-flex;
  width: fit-content;
  font-size: 13.8px;
  line-height: 1.05;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 102, 115, 0.24);
  transition: color 120ms ease, border-color 120ms ease;
}

.year-overview-panel__year:hover,
.year-overview-panel__year:focus-visible {
  color: var(--text);
  border-bottom-color: rgba(24, 33, 43, 0.4);
  outline: none;
}

.year-overview-panel__header {
  display: grid;
  gap: 1px;
  min-height: 24px;
  align-content: start;
  padding-left: var(--year-overview-panel-plot-left, 0px);
  padding-right: var(--year-overview-panel-plot-right, 0px);
}

.year-overview-panel__count {
  font-size: 11.5px;
  line-height: 1.05;
  color: var(--muted);
}

.year-overview-panel.is-active .year-overview-panel__year {
  color: var(--accent-positive);
  border-bottom-color: rgba(var(--accent-positive-rgb), 0.35);
}

.year-overview-panel.is-active .year-overview-panel__count {
  color: rgba(var(--accent-positive-rgb), 0.82);
}

.year-overview-panel__svg {
  display: block;
  width: 88%;
  height: auto;
  justify-self: start;
}

.year-overview-panel__svg text {
  fill: rgba(91, 102, 115, 0.82);
  font-size: 8px;
}

.year-overview-panel__svg line {
  stroke: rgba(24, 33, 43, 0.16);
  stroke-width: 1;
}

.year-overview-panel__tick.is-zero {
  fill: rgba(24, 33, 43, 0.7);
}

.year-overview-dot {
  fill: rgba(24, 33, 43, 0.42);
}

.year-overview-dot.is-search-match {
  fill: rgba(var(--accent-positive-rgb), 0.9);
}

.year-overview-dot.is-search-dimmed {
  fill: rgba(24, 33, 43, 0.15);
}

.year-overview-panel.is-active .year-overview-dot {
  fill: rgba(var(--accent-positive-rgb), 0.8);
}

.year-overview-panel.is-active .year-overview-dot.is-search-match {
  fill: rgba(var(--accent-positive-rgb), 0.98);
}

.summary__item {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.summary__item--window {
  order: 1;
}

.summary__item--count {
  order: 3;
}

.summary__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12.2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary__value {
  display: block;
  font-size: 17.3px;
  font-weight: 700;
  color: var(--text);
}

.pc-years-filter {
  display: grid;
  gap: 8px;
  order: 2;
  padding-top: 4px;
}

.comparison-controls__filters .pc-years-filter {
  padding-top: 0;
}

.pc-years-filter__group,
.pc-years-filter__summary {
  display: grid;
  gap: 8px;
}

.pc-years-filter__title,
.pc-years-filter__label {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.pc-years-filter__summary {
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
}

.pc-years-filter__value {
  font-size: 14.4px;
  color: var(--text);
}

.pc-years-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.pc-years-filter__button {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 120ms ease, color 120ms ease;
}

.pc-years-filter__button:hover,
.pc-years-filter__button:focus-visible,
.pc-years-filter__button.is-active {
  border-bottom-color: rgba(var(--accent-positive-rgb), 0.58);
}

.pc-years-filter__button:focus-visible {
  outline: none;
}

.pc-years-filter__button-label {
  font-size: 13.1px;
  color: var(--text);
}

.pc-years-filter__button-count {
  font-size: 11.5px;
  color: var(--muted);
}

.page-header__hint {
  max-width: 74ch;
  font-size: 14.4px;
}

.plot-card {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pc-members-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 24px;
  margin-bottom: 0;
}

.pc-members-control {
  display: grid;
  gap: 6px;
  position: relative;
  min-width: 112px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.pc-members-control::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid rgba(24, 33, 43, 0.56);
  border-bottom: 1.5px solid rgba(24, 33, 43, 0.56);
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color 120ms ease;
}

.pc-members-control span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.pc-members-control select {
  min-width: 0;
  min-height: 0;
  padding: 0 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.1px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.pc-members-control select:focus {
  outline: none;
}

.pc-members-control:focus-within {
  border-bottom-color: rgba(var(--accent-positive-rgb), 0.55);
}

.pc-members-control:focus-within::after {
  border-color: rgba(var(--accent-positive-rgb), 0.72);
}

.pc-members-controls__hint {
  margin: 0;
  font-size: 12.8px;
  color: var(--muted);
  max-width: 40ch;
}

.metric-selector {
  display: grid;
  gap: 10px;
}

.researcher-search {
  display: grid;
  gap: 8px;
  width: min(100%, 320px);
  flex: none;
  max-width: 100%;
  padding-top: 0;
  margin-left: 0;
}

.researcher-search__label {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  white-space: nowrap;
  text-align: left;
}

.researcher-search__controls {
  position: relative;
  width: 256px;
}

.researcher-search__field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line-soft);
}

.researcher-search__input {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.1px;
  line-height: 1.15;
}

.researcher-search__input:focus {
  outline: none;
}

.researcher-search__input::placeholder {
  color: rgba(91, 102, 115, 0.8);
}

.researcher-search__clear {
  grid-column: 2;
  position: static;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11.5px;
  line-height: 1;
  transition: color 120ms ease;
}

.researcher-search__clear:hover,
.researcher-search__clear:focus-visible {
  color: var(--accent-positive);
  outline: none;
}

.researcher-search__suggestions {
  display: grid;
  gap: 3px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 12;
  max-height: 144px;
  overflow-y: auto;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  scrollbar-color: rgba(91, 102, 115, 0.34) transparent;
  scrollbar-width: thin;
}

.researcher-search__suggestions::-webkit-scrollbar {
  width: 8px;
}

.researcher-search__suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.researcher-search__suggestions::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(91, 102, 115, 0.28);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.researcher-search__suggestions::-webkit-scrollbar-thumb:hover {
  background: rgba(91, 102, 115, 0.42);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.researcher-search__suggestion {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(215, 221, 228, 0.36);
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: color 120ms ease;
}

.researcher-search__suggestion:hover,
.researcher-search__suggestion:focus-visible {
  color: var(--text);
  outline: none;
}

.researcher-search__years {
  display: grid;
  gap: 6px;
}

.researcher-search__years-label {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

.researcher-search__year-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.researcher-search__year-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  line-height: 1;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.researcher-search__year-button:hover,
.researcher-search__year-button:focus-visible,
.researcher-search__year-button.is-active {
  color: var(--accent-positive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.researcher-search__year-button:focus-visible {
  outline: none;
}

.metric-selector__title {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.metric-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
}

.metric-button {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 120ms ease, color 120ms ease;
}

.metric-button:hover,
.metric-button:focus-visible,
.metric-button.is-active {
  border-bottom-color: rgba(var(--accent-positive-rgb), 0.58);
}

.metric-button:focus-visible {
  outline: none;
}

.metric-button__name {
  font-size: 12.8px;
  font-weight: 400;
  color: var(--text);
}

.metric-button.is-active .metric-button__name {
  color: var(--accent-positive);
}

.metric-button__formula {
  font-size: 12.2px;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
}

.metric-button__formula sub {
  font-size: 0.78em;
}

.metric-button__formula-inline {
  display: inline-block;
}

.metric-button__formula-frac-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-button__formula-prefix {
  flex-shrink: 0;
}

.metric-button__formula-frac {
  display: inline-grid;
  gap: 4px;
  text-align: center;
}

.metric-button__formula-line {
  display: block;
  text-align: center;
}

.metric-button__formula-line--numerator {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(24, 33, 43, 0.12);
}

.scatter-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 18px;
  margin: 0 0 8px;
}

.scatter-header__eyebrow {
  margin: 0 0 4px;
  font-size: 12.2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plot-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.plot-root {
  position: relative;
  min-width: 920px;
  height: 620px;
  background: transparent;
  border-radius: 0;
}

.empty-plot {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.plot-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plot-svg text {
  fill: var(--muted);
  font-size: 12px;
}

.plot-svg .axis-line {
  stroke: #8d98a4;
  stroke-width: 1.15;
}

.plot-svg .background-band {
  pointer-events: none;
}

.plot-svg .background-band--soft {
  fill: rgba(var(--accent-positive-rgb), 0.015);
}

.plot-svg .background-band--mid {
  fill: rgba(var(--accent-positive-rgb), 0.04);
}

.plot-svg .background-band--deep {
  fill: rgba(var(--accent-positive-rgb), 0.07);
}

.plot-svg .background-band--legend {
  fill: rgba(var(--accent-positive-rgb), 0.1);
}

.plot-svg .background-band-label {
  fill: rgba(91, 102, 115, 0.84);
  font-size: 10px;
}

.plot-svg .grid-line {
  display: none;
}

.plot-svg .zero-line {
  stroke: rgba(24, 33, 43, 0.34);
  stroke-width: 1.1;
  stroke-dasharray: 5 6;
}

.plot-svg .reference-line {
  stroke: rgba(var(--accent-positive-rgb), 0.7);
  stroke-width: 1.2;
  stroke-dasharray: 6 6;
}

.plot-svg .reference-label {
  fill: rgba(var(--accent-positive-rgb), 0.88);
  font-size: 11px;
}

.plot-svg .label,
.event-study-svg .label {
  fill: var(--text);
  font-size: 13px;
  font-weight: 400;
}
/* sized down against the shorter event-study frame */
.event-study-svg .label {
  font-size: 12px;
}

.event-study-svg .event-study__band {
  fill: rgba(var(--accent-positive-rgb), 0.14);
}

.event-study-svg .event-study__line {
  fill: none;
  stroke: rgba(24, 33, 43, 0.84);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-study-svg .event-study__ci,
.event-study-svg .event-study__ci-cap {
  stroke: rgba(24, 33, 43, 0.88);
  stroke-width: 1.45;
  stroke-linecap: round;
}

.event-study-svg .event-study__ci-label {
  fill: rgba(24, 33, 43, 0.8);
  font-size: 9.5px;
}

.event-study-svg .event-study__point {
  fill: rgba(24, 33, 43, 0.82);
}

.event-study-svg .event-study__count {
  fill: rgba(91, 102, 115, 0.82);
  font-size: 10px;
}

.event-study-svg .event-study__zero-label {
  fill: rgba(91, 102, 115, 0.9);
  font-size: 10px;
}

.points-layer {
  position: absolute;
  inset: 0;
}

.point {
  position: absolute;
  width: var(--point-size, 44px);
  height: var(--point-size, 44px);
  margin: 0;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 10px rgba(24, 33, 43, 0.14);
  background: #f0f3f6;
  opacity: var(--point-opacity, 1);
  transition: transform 120ms ease, box-shadow 120ms ease, z-index 120ms ease, outline-color 120ms ease;
}

.point[data-sign="positive"] {
  outline: 1.5px solid rgba(var(--accent-positive-rgb), 0.34);
}

.point[data-sign="negative"] {
  outline: 1.5px solid rgba(42, 127, 184, 0.28);
}

.point.is-year-pc {
  box-shadow: 0 0 0 3px rgba(var(--accent-positive-rgb), 0.14), 0 5px 15px rgba(24, 33, 43, 0.18);
}

.point:hover,
.point:focus-visible,
.point.is-active {
  transform: translate(-50%, -50%) scale(1.34);
  box-shadow: 0 10px 26px rgba(24, 33, 43, 0.22);
  z-index: 4;
}

.point.is-search-dimmed {
  opacity: 0.16;
}

.point.is-search-match {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 0 3px rgba(var(--accent-positive-rgb), 0.22), 0 8px 22px rgba(24, 33, 43, 0.2);
  z-index: 3;
}

.point.is-search-match:hover,
.point.is-search-match:focus-visible,
.point.is-search-match.is-active {
  transform: translate(-50%, -50%) scale(1.46);
  z-index: 4;
}

.point.is-search-target {
  transform: translate(-50%, -50%) scale(1.48);
  box-shadow: 0 0 0 4px rgba(var(--accent-positive-rgb), 0.26), 0 12px 28px rgba(24, 33, 43, 0.24);
  z-index: 5;
}

.point.is-search-target:hover,
.point.is-search-target:focus-visible,
.point.is-search-target.is-active {
  transform: translate(-50%, -50%) scale(1.68);
  z-index: 6;
}

.point.is-supervisor-highlight {
  z-index: 7;
}

.point img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 180ms ease, filter 180ms ease;
}

.point__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  border-radius: inherit;
  transition: transform 180ms ease, filter 180ms ease;
}

.point:not(.point--fallback) .point__fallback {
  display: none;
}

.point.is-supervisor-highlight img,
.point.is-supervisor-highlight .point__fallback {
  filter: saturate(1.14) brightness(1.04);
}

.point.is-supervisor-highlight:hover img,
.point.is-supervisor-highlight:focus-visible img,
.point.is-supervisor-highlight.is-active img,
.point.is-supervisor-highlight:hover .point__fallback,
.point.is-supervisor-highlight:focus-visible .point__fallback,
.point.is-supervisor-highlight.is-active .point__fallback {
  animation-duration: 1s;
}

@keyframes supervisor-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(var(--accent-positive-rgb), 0.3), 0 0 0 10px rgba(255, 205, 116, 0.14),
      0 12px 28px rgba(24, 33, 43, 0.24);
    outline-color: rgba(255, 186, 101, 0.42);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(var(--accent-positive-rgb), 0.38), 0 0 0 15px rgba(255, 205, 116, 0.26),
      0 18px 36px rgba(24, 33, 43, 0.28);
    outline-color: rgba(255, 222, 149, 0.68);
  }
}

@keyframes supervisor-bob {
  0% {
    transform: translateY(0) rotate(-2deg) scale(1.03);
  }
  50% {
    transform: translateY(-2px) rotate(1.5deg) scale(1.07);
  }
  100% {
    transform: translateY(-4px) rotate(3deg) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .point.is-supervisor-highlight,
  .point.is-supervisor-highlight img,
  .point.is-supervisor-highlight .point__fallback {
    animation: none;
  }
}

.point--fallback img {
  display: none;
}

.tooltip {
  position: fixed;
  z-index: 20;
  width: min(292px, calc(100vw - 24px));
  padding: 10px;
  background: rgba(251, 250, 247, 0.72);
  border: 1px solid rgba(231, 225, 215, 0.68);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(24, 33, 43, 0.1);
  backdrop-filter: blur(7px) saturate(102%);
  -webkit-backdrop-filter: blur(7px) saturate(102%);
  pointer-events: none;
}

.tooltip__header {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 9px;
  align-items: start;
}

.tooltip__portrait {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tooltip__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tooltip__portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 400;
  background: rgba(238, 242, 245, 0.56);
}

.tooltip__portrait:not(.tooltip__portrait--fallback) .tooltip__portrait-fallback {
  display: none;
}

.tooltip__portrait--fallback img {
  display: none;
}

.tooltip__name {
  margin: 0;
  font-size: 14.4px;
  font-weight: 700;
  line-height: 1.2;
}

.tooltip__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: 8px;
}

.tooltip__stat {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.tooltip__stat-label {
  font-size: 10.9px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.tooltip__stat-value {
  font-size: 11.8px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.tooltip__sparkline {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.tooltip__sparkline-dot {
  fill: #18212b;
}

.tooltip__sparkline-dot--pc {
  fill: var(--accent-positive);
}

.tooltip__sparkline-range {
  fill: rgba(var(--accent-positive-rgb), 0.08);
}

@media (max-width: 980px) {
  .year-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-header h1 {
    max-width: none;
    white-space: normal;
    font-size: clamp(18px, 5vw, 24px);
  }

  .header-logo-strip__track {
    gap: 10px;
  }

  .header-logo-strip__item {
    min-width: 74px;
  }

  .header-logo-strip__badge {
    width: 64px;
    height: 42px;
  }

  .comparison-controls__top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .comparison-controls__filters {
    display: grid;
    gap: 12px;
  }

  .researcher-search {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }

  .researcher-search__label {
    margin: 0;
  }

  .researcher-search__controls {
    width: 100%;
  }

  .year-overview__header {
    display: grid;
    gap: 6px;
  }

  .single-year-detail__header {
    display: grid;
    gap: 6px;
  }

  .year-overview__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plot-card {
    gap: 12px;
  }

  .scatter-header {
    align-items: start;
  }

  .plot-root {
    height: 520px;
  }

  .pc-members-controls {
    align-items: start;
  }

  .metric-buttons {
    flex-direction: column;
  }
}

/* Compact header on the ICFP/POPL pages marking them as the exploratory phase. */
.exploration-header {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-top: 6px;
  margin-bottom: 30px;
}
.exploration-header__title {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
  font-size: clamp(17px, 1.9vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent-positive);
}
.exploration-header__lede {
  margin: 0;
  max-width: none;
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.exploration-header__link {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  margin-left: 0.55rem;
  white-space: nowrap;
  transition: color 240ms ease, text-decoration-color 240ms ease;
}
.exploration-header__link:hover {
  color: var(--accent-positive);
  text-decoration-color: var(--accent-positive);
}

/* Reads the four plots as separate figures rather than one dashboard. */
.plot-card {
  gap: 0;
}
.plot-card > * + * {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
/* this section carries its own top padding, which would double up here */
.plot-card > * + * .event-study {
  padding-top: 0;
}

.explore-guide {
  margin: 0 0 12px;
  max-width: none;
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.tooltip__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--muted);
}
.tooltip__legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-positive);
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .plot-card > * + * {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}

/* Cue lines sit close together regardless of their container's gap. */
.plot-cues {
  display: grid;
  gap: 6px;
}

/* One-line "what to try" cue under each plot's title. */
.plot-prompt {
  margin: 0 0 4px;
  max-width: none;
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Standing caveat at the foot of the exploration pages. */
.page-note {
  max-width: 1140px;
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-family: "JetBrains Mono", monospace;
  font-weight: 200;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
