@font-face {
  font-family: Manrope;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #172b28;
  --muted: #566760;
  --green: #125b50;
  --green-light: #e7f0eb;
  --line: #dce4df;
  --paper: #fff;
  --wash: #f4f7f5;
  --rose: #914252;
  --radius: 6px;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  letter-spacing: 0;
  color: inherit;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button img,
a img {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #cae5d8;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #a74e62;
  outline-offset: 4px;
}
a,
button {
  transition:
    background-color 0.16s,
    color 0.16s,
    border-color 0.16s;
}
.container {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.icon {
  flex-shrink: 0;
  opacity: 0.84;
}
.small {
  opacity: 0.7;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  background: white;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e4e9e4;
}
.header-inner {
  width: min(1440px, calc(100% - 80px));
  height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
/* the 2 in Physical2RSI: gold to orange, the colour of the logo's recursion arrow */
.brand-accent {
  color: #d8641c;
  background: linear-gradient(170deg, #f2b33a 10%, #d8641c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.brand img {
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(23, 43, 40, 0.18);
}
.brand-secondary {
  font-weight: 500;
}
.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.navigation a {
  padding: 14px 0;
  color: var(--muted);
}
.navigation a:hover,
.text-link:hover {
  color: var(--green);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.github-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
}
.github-link:hover {
  background: var(--wash);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
}
.icon-button:hover {
  background: var(--green-light);
}
.icon-button:disabled {
  opacity: 0.3;
}
.menu-toggle {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0c1a45;
  color: #f4ecd2;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
}
/* a calm band behind the title keeps the text readable over the painted sky */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 16, 44, 0.8) 0%, rgba(8, 16, 44, 0.55) 40%, rgba(8, 16, 44, 0) 72%);
}
.hero-inner {
  position: relative;
  min-height: 580px;
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
  padding: 56px 0 110px;
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-copy {
  flex: 1 1 520px;
  max-width: 600px;
}
.hero-art {
  flex: 0 1 600px;
  min-width: 0;
  margin: 0 0 0 auto;
}
.hero-art img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transform: rotate(-1.2deg);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(242, 193, 78, 0.6);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-art img:hover {
  transform: rotate(0) scale(1.015);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #f2c14e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-eyebrow .status-dot {
  background: #f2c14e;
  box-shadow: 0 0 10px #f2c14e;
}
.hero h1 {
  margin: 0 0 14px;
  color: #f7f1dc;
  font-size: 50px;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero h1 span {
  color: #f2c14e;
}
.hero-subtitle {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #c9d6f0;
}
.hero-authors,
.hero-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.hero-authors > span,
.hero-affiliations > span {
  white-space: nowrap;
}
.hero-authors {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #eef2fb;
}
.hero-affiliations {
  margin: 0 0 26px;
  font-size: 11px;
  color: #aebde0;
}
.hero-affiliations:has(+ .hero-correspondence) {
  margin-bottom: 6px;
}
.hero-correspondence {
  margin: 0 0 26px;
  font-size: 11px;
  color: #aebde0;
}
.hero-authors sup,
.hero-affiliations sup {
  margin-left: 1px;
  color: #f2c14e;
  font-size: 9px;
}
.hero-affiliations sup {
  margin: 0 3px 0 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero .button {
  gap: 9px;
  transition:
    transform 0.16s,
    background-color 0.16s,
    filter 0.16s;
}
.hero .button:hover {
  transform: translateY(-1px);
}
.button-gold {
  background: linear-gradient(135deg, #f6d77a, #e8a93a);
  color: #1b2a4f;
  box-shadow: 0 8px 22px rgba(232, 169, 58, 0.35);
}
.button-gold:hover {
  filter: brightness(1.06);
}
.button-glass {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #f4ecd2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.button-glass:hover {
  background: rgba(255, 255, 255, 0.18);
}
.hero-note {
  margin: 18px 0 0;
  font-size: 11px;
  color: #9fb0d6;
}
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.8;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #278773;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.button-primary {
  background: var(--green);
  color: white;
}
.button-primary .icon {
  filter: invert(1);
  opacity: 1;
}
.button-primary:hover {
  background: #08473e;
}
.button-outline {
  border-color: #9caf9f;
  background: transparent;
}
.button-outline:hover {
  background: var(--green-light);
}
.library-section {
  padding-top: 34px;
  padding-bottom: 58px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.section-eyebrow {
  color: var(--rose);
  margin-bottom: 4px;
}
h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}
.heading-dot {
  color: var(--rose);
}
.library-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.library-summary > span {
  font-size: 34px;
  font-weight: 600;
  color: var(--green);
}
.library-summary > div {
  border-left: 1px solid var(--line);
  padding-left: 13px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 142px 168px 180px;
  gap: 10px;
  margin-bottom: 22px;
  scroll-margin-top: 90px;
}
.search-field,
.select-field {
  min-width: 0;
  min-height: 56px;
  background: var(--wash);
  border: 1px solid #d7e0d9;
  border-radius: var(--radius);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 17px;
}
.search-field:focus-within,
.select-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 14px 0;
  outline: none;
  background: transparent;
  font-size: 13px;
}
.search-field input::placeholder {
  color: #586b61;
  opacity: 1;
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-field .icon-button {
  margin-right: -8px;
}
.select-field {
  position: relative;
  padding: 8px 11px 4px;
}
.select-field label {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #53675c;
}
.select-field select {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 12px;
  font-weight: 600;
  min-height: 27px;
  text-overflow: ellipsis;
}
.library-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 38px;
  align-items: start;
}
.results-column {
  grid-row: 1;
  grid-column: 1;
  min-width: 0;
}
.collection-sidebar {
  grid-row: 1;
  grid-column: 2;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  position: sticky;
  top: 98px;
}
#collection-overview summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
#collection-overview summary::-webkit-details-marker {
  display: none;
}
.summary-chevron {
  margin-left: auto;
  transition: transform 0.15s;
}
#collection-overview[open] .summary-chevron {
  transform: rotate(180deg);
}
.profile-note {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 10px;
}
.chart-section {
  margin-bottom: 24px;
}
.chart-section h3 {
  margin: 0 0 11px;
  font-size: 11px;
  font-weight: 700;
}
.chart-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9px;
}
.year-chart {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 3px;
  align-items: end;
  height: 128px;
}
.year-bar {
  height: 128px;
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 15px 1fr 17px;
  align-items: end;
  gap: 5px;
  border: 0;
  background: transparent;
  border-radius: 2px;
  font-size: 9px;
}
.year-bar .bar-count {
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
}
.year-bar .bar-fill {
  display: block;
  width: 100%;
  height: max(2px, var(--bar-size));
  background: #91b2a6;
  border-radius: 2px 2px 0 0;
}
.year-bar .bar-label {
  line-height: 17px;
}
.year-bar:hover .bar-fill,
.year-bar[aria-pressed="true"] .bar-fill {
  background: var(--green);
}
.year-bar[aria-pressed="true"] {
  color: var(--green);
  font-weight: 800;
}
.year-bar:disabled {
  opacity: 0.45;
}
.type-bar {
  display: grid;
  grid-template-columns: 87px minmax(0, 1fr) 25px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 39px;
  padding: 4px 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  text-align: left;
  font-size: 10px;
}
.bar-track {
  display: block;
  height: 5px;
  background: #edf0ee;
  border-radius: 2px;
}
.type-bar .bar-fill {
  display: block;
  height: 100%;
  width: var(--bar-size);
  background: #678da0;
  border-radius: 2px;
}
.type-bar .bar-count,
.venue-filter .bar-count {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.type-bar[data-value="preprint"] .bar-fill {
  background: #b48188;
}
.type-bar[data-value="journal"] .bar-fill {
  background: #75a18d;
}
.type-bar[data-value="book"] .bar-fill {
  background: #a48b61;
}
.type-bar:hover,
.type-bar[aria-pressed="true"],
.venue-filter:hover,
.venue-filter[aria-pressed="true"] {
  background: var(--green-light);
}
.venue-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.venue-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 5px 0;
  font-size: 10px;
  text-align: left;
}
.venue-filter .bar-label {
  overflow-wrap: anywhere;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  margin-bottom: 4px;
  gap: 12px;
}
.results-toolbar > p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
  white-space: nowrap;
}
.results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.text-button:hover {
  text-decoration: underline;
}
.sort-select {
  border: 0;
  background: white;
  min-height: 44px;
  font-size: 11px;
  color: var(--muted);
  max-width: 125px;
}
.download-link {
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.reference-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 44px;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.reference-year {
  padding-top: 3px;
  font-size: 11px;
  color: #5b6b62;
  font-variant-numeric: tabular-nums;
}
.reference-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.reference-title-link:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reference-title-link .icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  opacity: 0.45;
}
.reference-authors {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 7px 0 9px;
  overflow-wrap: anywhere;
}
.reference-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.venue {
  display: inline-block;
  font-size: 10px;
  line-height: 1.5;
  padding: 3px 7px;
  border-radius: 3px;
  background: #e8eeea;
  color: #2c5c48;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.venue-preprint {
  background: #f4eaed;
  color: #874554;
}
.venue-conference {
  background: #eaf0f4;
  color: #365d74;
}
.venue-book {
  background: #f4f0e6;
  color: #6d5b2b;
}
.reference-kind {
  color: #5f6b64;
  font-size: 10px;
}
.reference-tools {
  align-self: start;
}
.reference-tools .icon-button {
  margin-top: -7px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.page-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.page-summary p {
  margin: 0 10px 0 0;
}
.page-summary select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  min-height: 40px;
}
.page-controls,
.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-button {
  width: 34px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: white;
  font-size: 11px;
}
.page-button:hover {
  background: var(--wash);
}
.page-button[aria-current] {
  color: white;
  background: var(--green);
}
.page-ellipsis {
  width: 18px;
  text-align: center;
  color: var(--muted);
}
.empty-state {
  padding: 56px 15px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.empty-state > .icon {
  margin: 0 auto 18px;
}
.empty-state h3 {
  font-size: 19px;
  margin: 0 0 12px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.empty-state .button {
  margin-top: 10px;
}
.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
}
.noscript {
  padding: 24px 0;
  line-height: 1.8;
}
.noscript a {
  text-decoration: underline;
}
.survey-section {
  padding: 60px 0 56px;
  border-bottom: 1px solid var(--line);
}
.survey-header {
  margin: 0 auto 26px;
  text-align: center;
}
.survey-header h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  text-wrap: balance;
}
@media (min-width: 900px) {
  .survey-header h2 {
    white-space: nowrap;
  }
}
.survey-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 34px;
}
.survey-abstract p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: #2c403a;
}
.condition-panel {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
}
.condition-panel h3,
.program-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
}
.condition-list,
.question-grid,
.program-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.condition-list {
  display: grid;
  gap: 12px;
  counter-reset: condition;
}
.condition-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 6px;
  counter-increment: condition;
  font-size: 12.5px;
  line-height: 1.6;
}
.condition-list li::before {
  content: counter(condition);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e0c9cf;
  color: var(--rose);
  font-size: 11px;
  font-weight: 800;
}
.condition-list strong {
  font-size: 13px;
}
.condition-list span {
  color: var(--muted);
}
.condition-panel > p {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.survey-figure img {
  width: 100%;
  height: auto;
}
.survey-figure {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.survey-figure figcaption {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.survey-figure figcaption strong {
  color: var(--ink);
}
.survey-block {
  margin-top: 52px;
}
/* numbered survey blocks */
.block-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.block-eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6d77a, #e8a93a);
  color: #1b2a4f;
  letter-spacing: 0;
}
.block-title {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.25;
}
.question-grid li,
.use-card,
.problem-card {
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.question-grid li:hover,
.use-card:hover,
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(23, 43, 40, 0.4);
}
/* scroll reveal (only once effects.js has run, and never with reduced motion) */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* chapter pager */
.pager {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transform: translateY(-50%);
}
.pager a {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border: 1.5px solid #9caf9f;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  transition:
    transform 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}
.pager a[aria-current] {
  border-color: #e8a93a;
  background: #e8a93a;
  transform: scale(1.3);
}
.pager a span {
  position: absolute;
  top: 50%;
  right: 20px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.15s;
}
.pager a:hover span,
.pager a:focus-visible span {
  opacity: 1;
}
/* the survey's robot illustrations */
.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.block-head .block-title {
  margin-bottom: 0;
}
.block-art {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  max-height: 104px;
  margin-bottom: -6px;
  filter: drop-shadow(0 8px 10px rgba(23, 43, 40, 0.12));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.survey-block:hover .block-art {
  transform: translateY(-4px) rotate(-3deg);
}
.condition-list li {
  grid-template-columns: 54px 1fr;
  column-gap: 12px;
  align-items: center;
}
.condition-list li::before {
  content: none;
}
.condition-art {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.condition-list li > div {
  display: grid;
}
.use-art {
  display: block;
  width: auto;
  height: auto;
  max-height: 86px;
  margin: 0 0 12px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.use-card:hover .use-art {
  transform: scale(1.06) rotate(-2deg);
}
.systems-title {
  margin: 30px 0 14px;
  font-size: 16px;
}
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.system-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.system-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(23, 43, 40, 0.4);
}
.system-art {
  flex: 0 0 auto;
  width: 76px;
  height: 64px;
  object-fit: contain;
}
.system-card h5 {
  margin: 0 0 4px;
  font-size: 14px;
}
.system-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.recursion-list {
  padding-left: 0 !important;
  list-style: none;
}
.recursion-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.recursion-dot {
  flex: 0 0 64px;
  display: grid;
  place-items: center;
}
.recursion-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6d77a, #e8a93a);
}
.recursion-art {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.question-grid,
.use-grid,
.problem-grid {
  display: grid;
  gap: 14px;
}
.question-grid,
.use-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.question-grid li,
.use-card,
.problem-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.question-id,
.use-chapter {
  display: block;
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.question-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.question-grid p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.evidence-note {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--green-light);
  font-size: 13px;
  line-height: 1.8;
}
.use-grid {
  margin-bottom: 18px;
}
.use-card h4,
.problem-card h4 {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.35;
}
.use-card dl {
  margin: 0;
}
.use-card dt,
.problem-benchmark span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #6f8178;
}
.use-card dd {
  margin: 2px 0 10px;
  font-size: 12.5px;
  line-height: 1.6;
}
.use-card div:last-child dd {
  margin-bottom: 0;
  color: var(--green);
  font-weight: 700;
}
.recursion-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.problem-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green);
  font-size: 10.5px;
  font-weight: 700;
}
.problem-question {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.problem-benchmark {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.problem-benchmark span {
  margin-bottom: 3px;
}
.program-title {
  margin-top: 28px;
}
.program-list {
  display: grid;
  gap: 8px;
  counter-reset: program;
}
.program-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  counter-increment: program;
  font-size: 13px;
  line-height: 1.75;
}
.program-list li::before {
  content: counter(program) ".";
  color: var(--rose);
  font-weight: 800;
}
.survey-closing {
  max-width: 760px;
  margin: 34px auto 0;
  color: var(--green);
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}
.survey-cite pre {
  margin: 0 0 14px;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  font-size: 12px;
  line-height: 1.7;
}
.publication-section {
  background: #f3f6f4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.publication-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
.publication-copy h2 {
  font-size: 27px;
  margin-bottom: 14px;
}
.publication-copy p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 16px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  min-height: 44px;
}
.availability-list {
  margin: 0;
  font-size: 11px;
}
.availability-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  border-bottom: 1px solid #d6e0d9;
}
.availability-list dt {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
}
.availability-list dd {
  margin: 0;
  white-space: nowrap;
  color: var(--muted);
}
.availability-list dd.available {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 96px;
  font-size: 10px;
}
.footer-brand {
  font-size: 13px;
  gap: 9px;
}
.site-footer > p {
  color: var(--muted);
}
.site-footer > div {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
}
.site-footer > div > a:not(.icon-button) {
  padding-block: 15px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 14px 21px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  box-shadow: 0 6px 24px #17332b22;
  z-index: 100;
  font-size: 12px;
  line-height: 1.6;
}
.error-page {
  padding-block: 90px;
}
.error-page h1 {
  font-size: 36px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.error-page > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 26px;
}
@media (min-width: 1700px) {
  .hero h1 {
    font-size: 56px;
  }
}
@media (max-width: 1199px) {
  .pager {
    display: none;
  }
  .container,
  .hero-inner {
    width: calc(100% - 64px);
  }
  .header-inner {
    width: calc(100% - 56px);
  }
  .hero h1 {
    font-size: 44px;
  }
  .library-body {
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .collection-sidebar {
    padding-left: 20px;
  }
  .filters {
    grid-template-columns: minmax(240px, 1fr) 120px 145px 150px;
  }
  .reference-row {
    gap: 11px;
  }
  .reference-title {
    font-size: 14px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .publication-inner {
    gap: 40px;
  }
}
@media (max-width: 999px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(8, 16, 44, 0.78) 0%, rgba(8, 16, 44, 0.5) 55%, rgba(8, 16, 44, 0.1) 100%);
  }
  .hero-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
    padding: 48px 0 104px;
  }
  .hero-copy {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .hero-art {
    flex: none;
    width: min(640px, 100%);
    margin: 0;
  }
  .hero h1 {
    font-size: 40px;
  }
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search-field {
    grid-column: 1 / -1;
  }
  .library-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .results-column,
  .collection-sidebar {
    width: 100%;
  }
  .collection-sidebar {
    position: static;
    border-left: 0;
    padding-left: 0;
    border-block: 1px solid var(--line);
  }
  #collection-overview summary {
    padding: 8px 0;
    min-height: 50px;
  }
  .profile-note {
    margin: 0 0 20px;
    font-size: 11px;
  }
  .chart-sections {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0 32px;
  }
  .chart-section:last-child {
    grid-column: 1 / -1;
  }
  .venue-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .chart-section h3,
  .type-bar,
  .venue-filter {
    font-size: 11px;
  }
  .year-bar,
  .year-bar .bar-count {
    font-size: 9px;
  }
  .reference-title {
    font-size: 16px;
  }
  .reference-authors {
    font-size: 12px;
  }
  .results-toolbar {
    margin-bottom: 0;
  }
  .publication-copy h2 {
    font-size: 25px;
  }
  .site-footer > p {
    display: none;
  }
}
@media (max-width: 700px) {
  .navigation {
    gap: 20px;
  }
  .header-inner {
    gap: 22px;
  }
  .brand {
    font-size: 15px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .publication-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 80px;
  }
  .container,
  .hero-inner {
    width: calc(100% - 40px);
  }
  .header-inner {
    width: calc(100% - 32px);
    height: 64px;
    justify-content: space-between;
    gap: 8px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .header-actions {
    gap: 2px;
  }
  .github-link {
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
  }
  .github-link span,
  .github-link .small {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .navigation {
    display: none;
    position: absolute;
    top: 64px;
    inset-inline: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 8px 12px #142d2410;
  }
  .navigation.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .navigation a {
    min-height: 44px;
    padding: 13px 0;
  }
  .hero-inner {
    align-items: stretch;
    gap: 26px;
    padding: 34px 0 84px;
  }
  .hero-art {
    width: 100%;
  }
  .hero-eyebrow {
    font-size: 9px;
    margin-bottom: 15px;
    gap: 7px;
  }
  .hero h1 {
    font-size: 35px;
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .hero-authors {
    font-size: 12px;
  }
  .hero-actions .button {
    font-size: 11px;
    padding: 10px 13px;
  }
  .library-section {
    padding-top: 26px;
    padding-bottom: 36px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 19px;
  }
  .section-eyebrow {
    font-size: 9px;
    margin-bottom: 5px;
  }
  h2 {
    font-size: 24px;
  }
  .library-summary {
    gap: 7px;
    font-size: 9px;
  }
  .library-summary > span {
    font-size: 26px;
  }
  .library-summary > div {
    padding-left: 7px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 17px;
  }
  .venue-select {
    grid-column: 1 / -1;
  }
  .search-field {
    gap: 9px;
    padding-left: 13px;
    min-height: 54px;
  }
  .search-field input {
    font-size: 16px;
  }
  .select-field {
    min-height: 58px;
    padding: 7px 10px 4px;
  }
  .select-field label {
    font-size: 11px;
  }
  .select-field select {
    font-size: 14px;
    min-height: 30px;
  }
  .results-toolbar {
    flex-wrap: wrap;
    gap: 0 8px;
    min-height: 48px;
  }
  .results-toolbar > p {
    font-size: 11px;
  }
  .results-actions {
    margin-left: auto;
    gap: 5px;
  }
  .sort-select {
    font-size: 11px;
    max-width: 108px;
  }
  .text-button {
    font-size: 10px;
  }
  .results-actions .download-link {
    width: 40px;
    flex-basis: 40px;
  }
  .chart-sections {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .chart-section:last-child {
    grid-column: auto;
  }
  .chart-section h3 {
    font-size: 12px;
  }
  .year-bar,
  .year-bar .bar-count {
    font-size: 10px;
  }
  .type-bar {
    grid-template-columns: 110px 1fr 32px;
    min-height: 44px;
    font-size: 12px;
  }
  .venue-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 15px;
  }
  .venue-filter {
    min-height: 44px;
    font-size: 12px;
  }
  .chart-note {
    font-size: 10px;
  }
  .reference-row {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 0 7px;
    padding: 18px 0;
  }
  .reference-year {
    grid-column: 1;
    padding: 0;
    margin-bottom: 6px;
    font-size: 11px;
  }
  .reference-main {
    grid-column: 1;
  }
  .reference-tools {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .reference-title {
    font-size: 15px;
    line-height: 1.65;
  }
  .reference-authors {
    font-size: 12px;
    margin-block: 7px 9px;
  }
  .venue,
  .reference-kind {
    font-size: 11px;
  }
  .reference-bottom {
    gap: 7px;
  }
  .reference-tools .icon-button {
    width: 40px;
    margin-top: -8px;
  }
  .pagination {
    justify-content: center;
    gap: 13px;
    padding-top: 16px;
  }
  .page-summary {
    width: 100%;
    font-size: 11px;
  }
  .page-summary p {
    margin-right: auto;
  }
  .page-controls,
  .page-numbers {
    gap: 2px;
  }
  .page-button {
    width: 35px;
    height: 44px;
    font-size: 12px;
  }
  .page-controls .icon-button {
    width: 38px;
    flex-basis: 38px;
  }
  .page-ellipsis {
    width: 15px;
  }
  .publication-section {
    padding: 34px 0;
  }
  .publication-copy h2 {
    font-size: 24px;
    max-width: 300px;
  }
  .publication-copy p:not(.eyebrow) {
    font-size: 12px;
  }
  .availability-list {
    font-size: 11px;
  }
  .availability-list dt {
    gap: 10px;
  }
  .site-footer {
    padding-block: 22px;
    min-height: 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-footer > div {
    width: 100%;
    gap: 23px;
    margin: 0;
    font-size: 11px;
  }
  .site-footer > div > .icon-button {
    margin-left: auto;
  }
  .footer-brand {
    font-size: 13px;
  }
  .toast {
    bottom: 16px;
    width: max-content;
  }
}
@media (max-width: 360px) {
  .container,
  .hero-inner {
    width: calc(100% - 32px);
  }
  .header-inner {
    width: calc(100% - 24px);
  }
  .brand {
    font-size: 13px;
    gap: 7px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }

  .hero h1 {
    font-size: 31px;
  }
  h2 {
    font-size: 21px;
  }
  .library-summary {
    gap: 6px;
  }
  .library-summary > span {
    font-size: 22px;
  }
  .library-summary > div {
    display: none;
  }
  .search-field input {
    font-size: 16px;
  }
  .reference-title {
    font-size: 15px;
  }
  .page-button {
    width: 31px;
  }
  .page-controls .icon-button {
    width: 33px;
    flex-basis: 33px;
  }
}
@media (max-width: 999px) {
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .survey-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .question-grid,
  .use-grid,
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .survey-section {
    padding: 40px 0 36px;
  }
  .survey-header h2 {
    font-size: 26px;
  }
  .survey-block {
    margin-top: 40px;
  }
  .block-title {
    font-size: 21px;
  }
  .block-art {
    max-height: 74px;
  }
  .block-head {
    gap: 12px;
  }
  .pager {
    display: none;
  }
  .question-grid,
  .use-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .system-grid {
    grid-template-columns: 1fr;
  }
  .survey-figure {
    padding: 8px 8px 10px;
  }
  .survey-closing {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
