/* assets/css/research.css — loaded only on pages with front-matter `custom_css: research` */

/* Kill the theme's sibling-paragraph indent inside our blocks */
.page__content .rp-entry p + p { text-indent: 0; margin-top: 0; }

.rp-lede { font-size: 1.25em; line-height: 1.45; font-style: italic;
  color: var(--global-text-color-light); border-left: 3px solid var(--global-border-color);
  padding-left: .8em; margin: 0 0 1.8em; text-indent: 0; }

.rp-entry { margin: 0 0 2.2em; }
.rp-entry h3 { margin-top: 0; border-bottom: 0; padding-bottom: 0; }

.rp-key { font-size: .85em; color: var(--global-text-color-light);
  margin-top: .6em; text-indent: 0; }

.rp-fig { margin: 1.6em 0 2.2em; }
.rp-fig figcaption { font-size: .88em; line-height: 1.5; margin-top: .7em;
  color: var(--global-text-color-light); }
/* The diagram is exported from LaTeX with a transparent background and dark olive
   text, which disappears against the dark theme. Sit it on its own light panel so
   it reads the same in both themes. */
.rp-fig img { display: block; width: 100%; height: auto; margin: 0 auto;
  background: #fff; padding: 1.1em .6em; border-radius: 3px; box-sizing: border-box; }

/* The schematic is wide; below ~700px let it keep a legible minimum width and
   scroll horizontally rather than shrinking into illegibility. */
.rp-fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rp-fig-scroll img { min-width: 660px; }

/* ---- Collapsible project entries ---- */
.rp-proj { border-top: 1px solid var(--global-border-color); margin: 0; }
.rp-proj:last-of-type { border-bottom: 1px solid var(--global-border-color); }

.rp-proj > summary {
  list-style: none;                /* hide default triangle */
  cursor: pointer;
  padding: 1.05em 0 1.05em 1.7em;
  position: relative;
}
.rp-proj > summary::-webkit-details-marker { display: none; }

/* custom chevron, rotates when open */
.rp-proj > summary::before {
  content: "";
  position: absolute; left: .25em; top: 1.5em;
  width: .5em; height: .5em;
  border-right: 2px solid var(--global-text-color-light);
  border-bottom: 2px solid var(--global-text-color-light);
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.rp-proj[open] > summary::before { transform: rotate(45deg); top: 1.35em; }

.rp-proj > summary:hover .rp-proj-title { text-decoration: underline; }
.rp-proj > summary:focus-visible { outline: 2px solid var(--global-border-color); outline-offset: 2px; }

.rp-proj-title { display: block; font-weight: 700; font-size: 1.06em;
  color: var(--global-text-color); line-height: 1.3; }
.rp-proj-sub { display: block; font-size: .87em; margin-top: .25em;
  color: var(--global-text-color-light); }

.rp-proj-body { padding: 0 0 1.4em 1.7em; }
.rp-proj-body > *:first-child { margin-top: 0; }
.page__content .rp-proj-body p + p { text-indent: 0; }

@media (max-width: 600px) {
  .rp-proj > summary { padding-left: 1.4em; }
  .rp-proj-body { padding-left: 0; }
}
