:root {
  --rh-max: 1240px;
  --rh-paper: #f3f2ea;
  --rh-paper-strong: #ebe9df;
  --rh-ink: #173326;
  --rh-muted: #68746c;
  --rh-green: #2f6a4b;
  --rh-green-deep: #194f35;
  --rh-rust: #9a6849;
  --rh-blue: #55758b;
  --rh-line: rgba(23, 51, 38, .16);
  --rh-shadow: 0 24px 80px rgba(39, 49, 40, .12);
  --rh-ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] {
  --rh-paper: #111713;
  --rh-paper-strong: #18211b;
  --rh-ink: #e8eee9;
  --rh-muted: #a3ada6;
  --rh-green: #73a989;
  --rh-green-deep: #9bc4a9;
  --rh-rust: #d0a27f;
  --rh-blue: #8fb1c3;
  --rh-line: rgba(226, 237, 229, .15);
  --rh-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

body.resource-hub-page {
  color: var(--rh-ink);
  background: var(--rh-paper);
}

.resource-hub-page .rh-shell {
  width: min(calc(100% - 64px), var(--rh-max));
  margin-inline: auto;
}

.rh-loading {
  width: min(calc(100% - 64px), var(--rh-max));
  min-height: 70vh;
  margin: 0 auto;
  padding-top: 140px;
  color: var(--rh-muted);
}

.resource-flow-ready .rh-loading { display: none; }

.resource-flow-screen {
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(circle at 86% 4%, rgba(47, 106, 75, .09), transparent 27rem),
    var(--rh-paper);
}

.rh-module-nav {
  position: sticky;
  z-index: 40;
  top: var(--site-header-height, 76px);
  border-bottom: 1px solid var(--rh-line);
  background: color-mix(in srgb, var(--rh-paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
}

.rh-module-row {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rh-module-row::-webkit-scrollbar { display: none; }

.rh-module-row a {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--rh-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 220ms ease, background 220ms ease, transform 320ms var(--rh-ease);
}

.rh-module-row a:hover,
.rh-module-row a:focus-visible {
  color: var(--rh-ink);
  background: color-mix(in srgb, var(--rh-green) 10%, transparent);
  transform: translateY(-1px);
}

.rh-module-row a[aria-current="page"] {
  color: #fff;
  background: var(--rh-green-deep);
}

.rh-module-row img {
  width: 16px;
  height: 16px;
  opacity: .78;
}

.rh-home-link {
  margin-right: auto;
  color: var(--rh-ink) !important;
  font-weight: 650;
}

.rh-home-hero {
  display: grid;
  min-height: 530px;
  grid-template-columns: minmax(0, .84fr) minmax(420px, 1.16fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  padding-block: 78px 66px;
}

.rh-eyebrow {
  margin: 0 0 20px;
  color: var(--rh-green);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.rh-home-copy h1,
.rh-hero-copy h1 {
  margin: 0;
  color: var(--rh-ink);
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-weight: 580;
  letter-spacing: -.045em;
}

.rh-home-copy h1 {
  max-width: 620px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: .98;
}

.rh-home-copy > p:not(.rh-eyebrow) {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--rh-muted);
  font-size: 17px;
  line-height: 1.9;
}

.rh-home-search,
.rh-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rh-line);
}

.rh-home-search {
  max-width: 560px;
  margin-top: 38px;
}

.rh-home-search img,
.rh-search img {
  width: 20px;
  height: 20px;
  opacity: .62;
}

.rh-home-search input,
.rh-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--rh-ink);
  background: transparent;
}

.rh-home-search input {
  height: 58px;
  font-size: 16px;
}

.rh-home-search button,
.rh-search button {
  flex: 0 0 auto;
  border: 0;
  color: var(--rh-green);
  background: transparent;
  cursor: pointer;
}

.rh-hero-visual {
  position: relative;
  min-height: 420px;
}

.rh-hero-visual::after {
  position: absolute;
  inset: 54px 8% 24px 12%;
  border: 1px solid var(--rh-line);
  border-radius: 50%;
  content: "";
  transform: rotate(-8deg);
  pointer-events: none;
}

.rh-hero-visual img {
  position: absolute;
  display: block;
  object-fit: cover;
  box-shadow: var(--rh-shadow);
  transition: opacity 420ms ease, transform 700ms var(--rh-ease);
}

.rh-preview-main {
  inset: 28px 3% 64px 16%;
  width: 76%;
  height: 316px;
  border-radius: 48% 52% 46% 54% / 58% 43% 57% 42%;
}

.rh-preview-small {
  right: 1%;
  bottom: 0;
  width: 36%;
  height: 154px;
  border: 8px solid var(--rh-paper);
  border-radius: 58% 42% 52% 48% / 42% 56% 44% 58%;
}

.rh-preview-caption {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 0;
  max-width: 260px;
  padding: 13px 18px;
  color: #fff;
  background: rgba(19, 52, 36, .9);
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 16px 40px rgba(19, 52, 36, .18);
}

.rh-route-section {
  padding-block: 18px 110px;
}

.rh-route-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rh-line);
}

.rh-route-head h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 560;
}

.rh-route-head p {
  margin: 0;
  color: var(--rh-muted);
  font-size: 13px;
}

.rh-route-list { margin: 0; padding: 0; list-style: none; }

.rh-route-item { border-bottom: 1px solid var(--rh-line); }

.rh-route-item[hidden] { display: none; }

.rh-route-link {
  display: grid;
  min-height: 150px;
  grid-template-columns: 82px minmax(210px, .72fr) minmax(260px, 1.12fr) 36px;
  align-items: center;
  gap: clamp(20px, 4vw, 58px);
  color: var(--rh-ink);
  text-decoration: none;
  transition: padding 520ms var(--rh-ease), background 280ms ease;
}

.rh-route-link:hover,
.rh-route-link:focus-visible {
  padding-inline: 18px;
  background: color-mix(in srgb, var(--rh-green) 7%, transparent);
}

.rh-route-number {
  color: var(--rh-rust);
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: italic;
}

.rh-route-name { display: flex; align-items: center; gap: 16px; }

.rh-route-name img { width: 30px; height: 30px; opacity: .8; }

.rh-route-name strong {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 560;
}

.rh-route-name small,
.rh-route-description small {
  display: block;
  margin-top: 7px;
  color: var(--rh-muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.rh-route-description p {
  max-width: 560px;
  margin: 0;
  color: var(--rh-muted);
  font-size: 14px;
  line-height: 1.75;
}

.rh-route-arrow {
  font-size: 26px;
  transition: transform 480ms var(--rh-ease);
}

.rh-route-link:hover .rh-route-arrow { transform: translateX(8px); }

.rh-empty-routes {
  padding: 48px 0;
  color: var(--rh-muted);
}

.rh-hero {
  position: relative;
  min-height: 360px;
  padding-block: 70px 62px;
}

.rh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
  align-items: end;
  gap: 72px;
}

.rh-hero-copy h1 {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.05;
}

.rh-hero-copy > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--rh-muted);
  font-size: 16px;
  line-height: 1.85;
}

.rh-hero-media {
  position: relative;
  height: 220px;
}

.rh-hero-media img {
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 46% 54% / 44% 56% 44% 56%;
  object-fit: cover;
  box-shadow: var(--rh-shadow);
}

.rh-hero-media span {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(20, 51, 36, .84);
  font-size: 11px;
  letter-spacing: .08em;
}

.rh-explorer-section { padding-bottom: 112px; }

.rh-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) 1.35fr auto;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  border-top: 1px solid var(--rh-line);
  border-bottom: 1px solid var(--rh-line);
}

.rh-search input { height: 58px; font-size: 14px; }

.rh-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rh-filters::-webkit-scrollbar { display: none; }

.rh-filters button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--rh-muted);
  background: transparent;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.rh-filters button:hover { color: var(--rh-ink); }

.rh-filters button[aria-pressed="true"] {
  border-color: var(--rh-line);
  color: var(--rh-green-deep);
  background: color-mix(in srgb, var(--rh-green) 9%, transparent);
}

.rh-status {
  min-width: 86px;
  margin: 0;
  color: var(--rh-muted);
  font-size: 12px;
  text-align: right;
}

.rh-explorer {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(26px, 4.5vw, 62px);
  padding-top: 54px;
}

.rh-progress {
  position: sticky;
  top: calc(var(--site-header-height, 76px) + 84px);
  height: 270px;
  align-self: start;
}

.rh-progress > span,
.rh-progress > strong {
  display: block;
  writing-mode: vertical-rl;
}

.rh-progress > span {
  color: var(--rh-muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.rh-progress > strong {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--rh-rust);
  font-family: Georgia, serif;
  font-size: 14px;
}

.rh-progress-track {
  position: absolute;
  top: 90px;
  left: 5px;
  width: 1px;
  height: 160px;
  overflow: hidden;
  background: var(--rh-line);
}

.rh-progress-track i {
  position: absolute;
  inset: 0 0 auto;
  height: var(--rh-progress, 20%);
  background: var(--rh-green);
  transition: height 620ms var(--rh-ease);
}

.rh-stream { margin: 0; padding: 0; list-style: none; }

.rh-stream-item {
  position: relative;
  border-bottom: 1px solid var(--rh-line);
}

.rh-stream-item:first-child { border-top: 1px solid var(--rh-line); }
.rh-stream-item[hidden] { display: none; }

.rh-item-button {
  display: grid;
  width: 100%;
  min-height: 132px;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: padding 460ms var(--rh-ease), background 220ms ease;
}

.rh-item-button:hover,
.rh-item-button:focus-visible,
.rh-stream-item.is-active .rh-item-button {
  padding-inline: 14px;
  background: color-mix(in srgb, var(--rh-green) 7%, transparent);
}

.rh-item-index {
  align-self: start;
  padding-top: 3px;
  color: var(--rh-rust);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
}

.rh-item-type {
  display: block;
  margin-bottom: 7px;
  color: var(--rh-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rh-item-title {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 560;
  line-height: 1.4;
}

.rh-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 9px;
  color: var(--rh-muted);
  font-size: 12px;
}

.rh-item-meta span + span::before {
  margin-right: 16px;
  color: var(--rh-line);
  content: "·";
}

.rh-detail {
  position: sticky;
  top: calc(var(--site-header-height, 76px) + 84px);
  min-height: 510px;
  align-self: start;
  padding: 16px 0 0 32px;
  border-left: 1px solid var(--rh-line);
}

.rh-detail-image {
  width: 100%;
  height: 154px;
  margin-bottom: 26px;
  border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
  object-fit: cover;
  transition: opacity 220ms ease, transform 620ms var(--rh-ease);
}

.rh-detail.is-changing .rh-detail-image { opacity: .45; transform: scale(.985); }

.rh-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rh-detail-counter {
  color: var(--rh-rust);
  font-family: Georgia, serif;
  font-size: 14px;
}

.rh-detail-arrows { display: flex; gap: 6px; }

.rh-detail-arrows button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--rh-line);
  border-radius: 50%;
  color: var(--rh-ink);
  background: transparent;
  cursor: pointer;
}

.rh-detail-arrows img { width: 15px; height: 15px; }
.rh-detail-arrows button:first-child img { transform: rotate(180deg); }

.rh-detail-type {
  margin: 27px 0 8px;
  color: var(--rh-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.rh-detail h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 560;
  line-height: 1.35;
}

.rh-detail-summary {
  margin: 18px 0 23px;
  color: var(--rh-muted);
  font-size: 14px;
  line-height: 1.8;
}

.rh-detail dl { margin: 0; }

.rh-detail dl > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--rh-line);
}

.rh-detail dt { color: var(--rh-muted); font-size: 11px; }
.rh-detail dd { margin: 0; font-size: 12px; line-height: 1.6; }

.rh-detail-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--rh-green-deep);
  font-size: 12px;
  text-decoration: none;
  transition: transform 320ms var(--rh-ease), box-shadow 320ms ease;
}

.rh-detail-link:hover,
.rh-detail-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(25, 79, 53, .24);
}

.rh-no-results {
  padding: 48px 0;
  color: var(--rh-muted);
}

.rh-stream mark {
  color: inherit;
  background: color-mix(in srgb, var(--rh-rust) 28%, transparent);
}

/* Four pages keep one visual system but use different reading rhythms. */
[data-rh-kind="academic"] .rh-item-button { grid-template-columns: 70px minmax(0, 1fr); }
[data-rh-kind="academic"] .rh-item-index { font-style: normal; letter-spacing: .08em; }
[data-rh-kind="academic"] .rh-stream-item.is-active { box-shadow: inset 3px 0 var(--rh-green); }

[data-rh-kind="method"] .rh-stream { counter-reset: method-step; }
[data-rh-kind="method"] .rh-stream-item { margin-left: 20px; border-left: 1px solid var(--rh-line); }
[data-rh-kind="method"] .rh-item-button { min-height: 150px; padding-left: 30px; }
[data-rh-kind="method"] .rh-stream-item.is-active { border-left-color: var(--rh-rust); }
[data-rh-kind="method"] .rh-item-index { font-size: 22px; }

[data-rh-kind="data"] .rh-item-button { min-height: 118px; }
[data-rh-kind="data"] .rh-item-type { color: var(--rh-blue); }
[data-rh-kind="data"] .rh-stream-item.is-active .rh-item-button { box-shadow: inset 3px 0 var(--rh-blue); }

[data-rh-kind="library"] .rh-item-button { min-height: 160px; }
[data-rh-kind="library"] .rh-item-title { font-size: clamp(21px, 2.2vw, 29px); }
[data-rh-kind="library"] .rh-stream-item.is-active .rh-item-button { box-shadow: inset 3px 0 var(--rh-rust); }

@media (max-width: 1040px) {
  .resource-hub-page .rh-shell,
  .rh-loading { width: min(calc(100% - 40px), var(--rh-max)); }
  .rh-home-hero { grid-template-columns: 1fr 1fr; gap: 44px; }
  .rh-explorer { grid-template-columns: minmax(0, 1fr) 330px; }
  .rh-progress { display: none; }
  .rh-toolbar { grid-template-columns: minmax(240px, .8fr) 1.2fr; }
  .rh-status { grid-column: 1 / -1; padding-bottom: 14px; text-align: left; }
}

@media (max-width: 760px) {
  .resource-hub-page .rh-shell,
  .rh-loading { width: min(calc(100% - 28px), var(--rh-max)); }
  .rh-module-nav { top: var(--site-header-height, 64px); }
  .rh-module-row { min-height: 52px; }
  .rh-home-link { margin-right: 0; }
  .rh-module-row a { padding-inline: 11px; }
  .rh-module-row a img { display: none; }
  .rh-home-hero { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-block: 60px 42px; }
  .rh-home-copy h1 { font-size: clamp(48px, 15vw, 68px); }
  .rh-home-copy > p:not(.rh-eyebrow) { font-size: 15px; }
  .rh-hero-visual { min-height: 300px; }
  .rh-preview-main { height: 226px; }
  .rh-preview-small { width: 40%; height: 118px; }
  .rh-preview-caption { bottom: 2px; }
  .rh-route-section { padding-bottom: 78px; }
  .rh-route-head { align-items: start; flex-direction: column; gap: 10px; }
  .rh-route-link { min-height: 176px; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 14px; }
  .rh-route-description { grid-column: 2 / -1; padding-bottom: 18px; }
  .rh-route-name img { width: 24px; height: 24px; }
  .rh-hero { min-height: 0; padding-block: 54px 42px; }
  .rh-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .rh-hero-copy h1 { font-size: 48px; }
  .rh-hero-copy > p:last-child { font-size: 14px; }
  .rh-hero-media { height: 170px; }
  .rh-toolbar { grid-template-columns: 1fr; gap: 12px; padding: 14px 0; }
  .rh-search { order: 1; }
  .rh-filters { order: 2; padding-bottom: 2px; }
  .rh-status { order: 3; grid-column: auto; padding: 0; }
  .rh-explorer { grid-template-columns: 1fr; gap: 34px; padding-top: 34px; }
  .rh-detail {
    position: relative;
    top: auto;
    grid-row: 1;
    min-height: 0;
    padding: 0 0 28px;
    border-left: 0;
    border-bottom: 1px solid var(--rh-line);
  }
  .rh-detail-image { height: 148px; }
  .rh-stream { grid-row: 2; }
  .rh-item-button { min-height: 118px; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .rh-item-title { font-size: 20px; }
  [data-rh-kind="method"] .rh-stream-item { margin-left: 0; }
  [data-rh-kind="method"] .rh-item-button { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .resource-flow-screen *,
  .resource-flow-screen *::before,
  .resource-flow-screen *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* 2026 resource-suite refinement: compact first screen and a continuous four-page workflow. */
.ro-hero {
  padding: 38px 0 24px;
}

.ro-hero-grid {
  min-height: 258px;
  grid-template-columns: minmax(0, .88fr) minmax(390px, 1.12fr);
  gap: clamp(38px, 5.4vw, 78px);
}

.ro-hero h1 {
  font-size: clamp(54px, 6vw, 76px);
  line-height: 1;
}

.ro-hero-grid > div > p:last-child {
  max-width: 600px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.72;
}

.ro-hero figure {
  height: 246px;
}

.ro-hero figcaption {
  right: 10px;
  bottom: 18px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(24, 55, 38, .16);
}

.ro-suite-nav {
  position: relative;
  z-index: 9;
  display: grid;
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 7px 10px 7px 18px;
  border: 1px solid color-mix(in srgb, var(--rh-green) 12%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--rh-paper-strong) 91%, transparent);
  box-shadow: 0 17px 48px rgba(38, 62, 47, .075);
  backdrop-filter: blur(18px) saturate(120%);
}

.ro-suite-label {
  display: grid;
  min-width: 94px;
  gap: 2px;
  padding-right: 18px;
  border-right: 1px solid color-mix(in srgb, var(--rh-green) 13%, transparent);
}

.ro-suite-label small {
  color: var(--rh-rust);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: .16em;
}

.ro-suite-label strong {
  color: var(--rh-ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  font-weight: 590;
}

.ro-suite-nav > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.ro-suite-nav a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 15px;
  color: var(--rh-muted);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  transition: color 200ms ease, background 240ms ease, transform 320ms var(--rh-ease), box-shadow 320ms ease;
}

.ro-suite-nav a img {
  width: 15px;
  height: 15px;
  opacity: .62;
}

.ro-suite-nav a:hover,
.ro-suite-nav a:focus-visible {
  color: var(--rh-ink);
  background: color-mix(in srgb, var(--rh-green) 7%, transparent);
  transform: translateY(-1px);
}

.ro-suite-nav a[aria-current="page"] {
  color: #fff;
  background: var(--rh-green-deep);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--rh-green) 18%, transparent);
}

.ro-suite-nav a[aria-current="page"] img {
  filter: brightness(0) invert(1);
  opacity: .92;
}

.ro-command {
  min-height: 66px;
  margin-top: 12px;
  padding: 8px 12px;
}

.ro-search input { height: 46px; }

.ro-workspace {
  margin-top: 12px;
  padding: 0 0 34px;
}

.ro-workspace-dock {
  min-height: 66px;
  grid-template-columns: minmax(260px, 1fr) auto;
  padding: 12px 14px 12px 18px;
  border-radius: 23px;
}

.ro-workspace-lead strong { font-size: 18px; }
.ro-workspace-actions button { min-height: 40px; }

.ad-screen .ro-hero {
  padding-block: 34px 24px;
}

.ad-screen .ro-hero-grid {
  min-height: 270px;
  grid-template-columns: minmax(0, .82fr) minmax(430px, 1.18fr);
  gap: clamp(42px, 6vw, 78px);
}

.ad-screen .ro-hero h1 {
  font-size: clamp(62px, 7vw, 86px);
}

.ad-screen .ro-hero figure {
  min-height: 264px;
  height: 264px;
}

.ad-workbench {
  padding: 12px 0 18px;
}

.ad-command {
  grid-template-columns: minmax(260px, .72fr) minmax(410px, 1.28fr);
  gap: clamp(24px, 4vw, 52px);
  padding: 22px clamp(24px, 3.5vw, 42px);
  border-radius: 27px;
}

.ad-task-list { margin-top: 14px; }
.ad-search { min-height: 58px; }
.ad-type-tabs { margin-top: 12px; padding: 7px; border-radius: 22px; }
.ad-type-tabs button { min-height: 50px; border-radius: 15px; }
.ad-literature { padding-top: 16px; }
.ad-literature > .rh-shell { padding: clamp(24px, 3.2vw, 42px); border-radius: 32px; }
.ad-literature-head { gap: 24px; padding-bottom: 22px; }
.ad-literature-head h2 { font-size: clamp(36px, 4.4vw, 56px); }
.ad-literature-head > div:first-child > p:last-child { margin-top: 12px; }
.ad-literature-tools { margin-top: 18px; }

html[data-theme="dark"] .ro-suite-nav {
  background: color-mix(in srgb, #18211b 92%, transparent);
}

@media (max-width: 980px) {
  .ro-hero-grid,
  .ad-screen .ro-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .ad-screen .ro-hero h1 { font-size: clamp(54px, 8vw, 74px); }
  .ad-command { grid-template-columns: 1fr; gap: 18px; }
  .ro-suite-label { display: none; }
  .ro-suite-nav { grid-template-columns: 1fr; padding-left: 10px; }
}

@media (max-width: 700px) {
  .ro-hero,
  .ad-screen .ro-hero { padding: 24px 0 18px; }
  .ro-hero-grid,
  .ad-screen .ro-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 22px; }
  .ro-hero h1,
  .ad-screen .ro-hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .ro-hero-grid > div > p:last-child { margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .ro-hero figure,
  .ad-screen .ro-hero figure { min-height: 200px; height: 200px; border-radius: 30px; }
  .ro-suite-nav {
    display: block;
    min-height: 54px;
    padding: 6px;
    border-radius: 19px;
  }
  .ro-suite-nav > div {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .ro-suite-nav a { min-width: 0; min-height: 40px; padding-inline: 10px; }
  .ro-command { margin-top: 9px; }
  .ro-workspace { margin-top: 9px; padding-bottom: 28px; }
  .ro-workspace-dock { gap: 14px; padding: 15px; }
  .ro-workspace-lead em { display: none; }
  .ad-workbench { padding-top: 9px; }
  .ad-command { padding: 20px 17px; }
  .ad-type-tabs { grid-template-columns: repeat(5, minmax(108px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .ad-type-tabs::-webkit-scrollbar { display: none; }
}

/* Organic resource pages: deliberately avoid the list + inspector archive pattern. */
.rh-module-row .rh-home-link[aria-current="page"] { color: #fff !important; }

.ro-screen { background: #f4f2e9; }
html[data-theme="dark"] .ro-screen { background: var(--rh-paper); }

.ro-hero {
  position: relative;
  padding: 78px 0 54px;
}

.ro-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.ro-hero h1 {
  max-width: 740px;
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(56px, 7vw, 90px);
  font-weight: 570;
  letter-spacing: -.055em;
  line-height: .98;
}

.ro-hero-grid > div > p:last-child {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--rh-muted);
  font-size: 16px;
  line-height: 1.9;
}

.ro-hero figure {
  position: relative;
  height: 300px;
  margin: 0;
}

.ro-hero figure::before {
  position: absolute;
  z-index: 0;
  inset: -18px 7% 16px -4%;
  border: 1px solid var(--rh-line);
  border-radius: 50%;
  content: "";
  transform: rotate(7deg);
}

.ro-hero figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 54% 46% 57% 43% / 48% 58% 42% 52%;
  object-fit: cover;
  box-shadow: var(--rh-shadow);
}

.ro-hero figcaption {
  position: absolute;
  z-index: 2;
  right: -10px;
  bottom: 30px;
  padding: 11px 16px;
  color: #fff;
  background: rgba(24, 72, 48, .9);
  font-size: 11px;
  letter-spacing: .08em;
}
.ro-hero figcaption { display: inline-flex; align-items: center; gap: 8px; }
.ro-hero figcaption img { width: 15px; height: 15px; filter: brightness(0) invert(1); }

.ro-command {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 30px;
  padding: 12px 0;
}

.ro-search {
  display: flex;
  min-width: 310px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rh-line);
}

.ro-search img { width: 18px; height: 18px; opacity: .6; }
.ro-search input { width: 100%; height: 52px; border: 0; outline: 0; color: var(--rh-ink); background: transparent; }
.ro-search button { border: 0; color: var(--rh-green); background: transparent; cursor: pointer; }

.ro-filters {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ro-filters::-webkit-scrollbar { display: none; }
.ro-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--rh-muted);
  background: transparent;
  cursor: pointer;
}
.ro-filters button img { width: 14px; height: 14px; opacity: .68; }
.ro-filters button[aria-pressed="true"] img { filter: brightness(0) invert(1); opacity: .9; }
.ro-filters button[aria-pressed="true"] { color: #fff; background: var(--rh-green-deep); }
.ro-command > p { flex: 0 0 auto; margin: 0; color: var(--rh-muted); font-size: 12px; }

/* Academic navigation becomes a spatial relationship field. */
.ro-academic { padding: 18px 0 120px; }
.ro-academic-stage {
  position: relative;
  min-height: 780px;
}
.ro-academic-landscape {
  position: absolute;
  inset: 78px 7% 84px 8%;
  width: 85%;
  height: 570px;
  border-radius: 48% 52% 45% 55% / 56% 45% 55% 44%;
  filter: saturate(.7) contrast(.82);
  object-fit: cover;
  opacity: .3;
}
.ro-academic-stage::after {
  position: absolute;
  inset: 18px 3% 46px;
  border: 1px solid var(--rh-line);
  border-radius: 50%;
  content: "";
  transform: rotate(-4deg);
  pointer-events: none;
}
.ro-academic-orbit {
  position: absolute;
  z-index: 2;
  top: 42%;
  left: 48%;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rh-paper) 88%, transparent);
  box-shadow: 0 18px 50px rgba(29, 63, 44, .14);
}
.ro-academic-orbit img { width: 34px; height: 34px; opacity: .72; }
.ro-academic-node {
  position: absolute;
  z-index: 3;
  top: var(--ro-y);
  left: var(--ro-x);
  display: flex;
  max-width: 255px;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  color: var(--rh-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: transform 520ms var(--rh-ease), opacity 260ms ease;
}
.ro-academic-node::before {
  width: 12px;
  height: 12px;
  margin-bottom: 11px;
  border: 3px solid var(--rh-paper);
  border-radius: 50%;
  background: var(--rh-rust);
  box-shadow: 0 0 0 1px var(--rh-rust);
  content: "";
}
.ro-academic-node span { color: var(--rh-rust); font-family: Georgia, serif; font-size: 12px; letter-spacing: .08em; }
.ro-academic-node .ro-node-icon { width: 17px; height: 17px; margin-bottom: 5px; opacity: .68; }
.ro-academic-node[aria-pressed="true"] .ro-node-icon { filter: brightness(0) invert(1); opacity: .9; }
.ro-academic-node strong { margin-top: 5px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 21px; font-weight: 590; line-height: 1.3; }
.ro-academic-node small { margin-top: 5px; color: var(--rh-muted); font-size: 10px; letter-spacing: .07em; }
.ro-academic-node:hover,
.ro-academic-node:focus-visible { transform: translateY(-8px) scale(1.035); }
.ro-academic-node[aria-pressed="true"] { z-index: 5; transform: translateY(-8px) scale(1.08); }
.ro-academic-node[aria-pressed="true"]::before { background: var(--rh-green-deep); box-shadow: 0 0 0 8px color-mix(in srgb, var(--rh-green) 14%, transparent); }
.ro-academic-node[hidden] { display: none; }

.ro-academic-story {
  position: absolute;
  z-index: 6;
  right: 2%;
  bottom: 0;
  width: min(470px, 44%);
  padding: 30px 34px;
  color: #fff;
  background: rgba(24, 71, 48, .94);
  box-shadow: 0 24px 70px rgba(23, 58, 39, .22);
  transition: opacity 180ms ease, transform 420ms var(--rh-ease);
}
.ro-academic-story.is-changing { opacity: .5; transform: translateY(6px); }
.ro-academic-story p { margin: 0 0 10px; color: rgba(255,255,255,.7); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.ro-academic-story h2 { margin: 0; color: #fff; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(25px, 3vw, 38px); font-weight: 560; line-height: 1.3; }
.ro-academic-story > span { display: block; margin-top: 16px; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.75; }
.ro-academic-story a { display: inline-block; margin-top: 22px; color: #fff; font-size: 12px; text-decoration: none; }
.ro-gesture-hint { margin: 24px 0 0; color: var(--rh-muted); font-size: 11px; text-align: center; letter-spacing: .08em; }

/* Experiment methods become a continuous expandable river. */
.ro-method { padding: 34px 0 130px; }
.ro-method-river { position: relative; }
.ro-method-river::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--rh-line);
  content: "";
}
.ro-method-stop { position: relative; width: 58%; margin-bottom: 4px; }
.ro-method-stop:nth-child(even) { margin-left: 42%; }
.ro-method-stop[hidden] { display: none; }
.ro-method-stop > button {
  display: grid;
  width: 100%;
  min-height: 190px;
  grid-template-columns: 70px minmax(0, 1fr) 126px;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  border: 0;
  color: var(--rh-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.ro-method-stop:nth-child(odd) > button { padding-right: 56px; }
.ro-method-stop:nth-child(even) > button { padding-left: 56px; }
.ro-method-stop > button::after {
  position: absolute;
  top: 88px;
  width: 13px;
  height: 13px;
  border: 4px solid var(--rh-paper);
  border-radius: 50%;
  background: var(--rh-rust);
  box-shadow: 0 0 0 1px var(--rh-rust);
  content: "";
}
.ro-method-stop:nth-child(odd) > button::after { right: -7px; }
.ro-method-stop:nth-child(even) > button::after { left: -7px; }
.ro-method-number { color: var(--rh-rust); font-family: Georgia, serif; font-size: 36px; font-style: italic; }
.ro-method-title small { display: block; margin-bottom: 8px; color: var(--rh-green); font-size: 10px; letter-spacing: .12em; }
.ro-method-title small { display: flex; align-items: center; gap: 7px; }
.ro-method-title small img { width: 15px; height: 15px; opacity: .7; }
.ro-method-title strong { display: block; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(24px, 3vw, 36px); font-weight: 560; line-height: 1.25; }
.ro-method-stop > button img { width: 126px; height: 126px; border-radius: 50%; object-fit: cover; filter: saturate(.82); }
.ro-method-stop > button i { position: absolute; right: 62px; bottom: 20px; color: var(--rh-muted); font-size: 10px; font-style: normal; }
.ro-method-stop:nth-child(even) > button i { right: 8px; }
.ro-method-panel {
  max-height: 0;
  overflow: hidden;
  margin: 0 40px;
  opacity: 0;
  transition: max-height 720ms var(--rh-ease), opacity 320ms ease, padding 720ms var(--rh-ease);
}
.ro-method-stop.is-open .ro-method-panel { max-height: 560px; padding: 12px 0 42px; opacity: 1; }
.ro-method-panel > p { max-width: 620px; margin: 0 0 20px; color: var(--rh-muted); font-size: 14px; line-height: 1.85; }
.ro-method-panel dl { margin: 0; }
.ro-method-panel dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 18px; padding: 9px 0; border-top: 1px solid var(--rh-line); font-size: 12px; }
.ro-method-panel dt { color: var(--rh-muted); }
.ro-method-panel dd { margin: 0; }
.ro-method-panel a { display: inline-block; margin-top: 20px; color: var(--rh-green-deep); font-size: 12px; text-decoration: none; }

/* Public data becomes an immersive canvas with selectable source points. */
.ro-data { padding: 28px 0 130px; }
.ro-data-canvas { position: relative; min-height: 770px; overflow: hidden; border-radius: 48% 52% 8px 8px / 15% 15% 8px 8px; }
.ro-data-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) contrast(.9); transition: opacity 240ms ease, transform 900ms var(--rh-ease); }
.ro-data-wash { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,34,22,.9) 0%, rgba(8,34,22,.7) 43%, rgba(8,34,22,.18) 75%, rgba(8,34,22,.5) 100%); }
.ro-data-feature {
  position: absolute;
  z-index: 2;
  top: 14%;
  left: 8%;
  width: min(520px, 43%);
  color: #fff;
  transition: opacity 180ms ease, transform 420ms var(--rh-ease);
}
.ro-data-feature.is-changing { opacity: .45; transform: translateY(8px); }
.ro-data-feature > p { margin: 0 0 16px; color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: .12em; }
.ro-data-feature h2 { margin: 0; color: #fff; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(42px, 5.4vw, 76px); font-weight: 550; line-height: 1.05; }
.ro-data-feature > span { display: block; margin-top: 22px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.8; }
.ro-data-feature dl { margin: 28px 0 0; }
.ro-data-feature dl > div { display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.2); font-size: 12px; }
.ro-data-feature dt { color: rgba(255,255,255,.58); }
.ro-data-feature dd { margin: 0; }
.ro-data-feature a { display: inline-block; margin-top: 28px; color: #fff; font-size: 12px; text-decoration: none; }
.ro-data-points {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 6%;
  display: flex;
  width: 58%;
  align-items: end;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 4px;
  scrollbar-width: none;
}
.ro-data-points::-webkit-scrollbar { display: none; }
.ro-data-points button {
  min-width: 146px;
  min-height: 118px;
  flex: 1 0 146px;
  padding: 16px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50% 50% 10px 10px / 22% 22% 10px 10px;
  color: #fff;
  background: rgba(9, 36, 24, .52);
  backdrop-filter: blur(12px);
  text-align: left;
  cursor: pointer;
  transition: min-height 460ms var(--rh-ease), background 240ms ease;
}
.ro-data-points button:hover,
.ro-data-points button[aria-pressed="true"] { min-height: 154px; background: rgba(30, 93, 62, .88); }
.ro-data-points button[hidden] { display: none; }
.ro-data-points span,
.ro-data-points small { display: block; color: rgba(255,255,255,.62); font-size: 9px; letter-spacing: .08em; }
.ro-data-points button > img { width: 17px; height: 17px; margin-bottom: 7px; filter: brightness(0) invert(1); opacity: .72; }
.ro-data-points strong { display: block; margin: 8px 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 16px; line-height: 1.25; }

/* Professional library becomes a long-form editorial sequence. */
.ro-library { padding: 34px 0 140px; }
.ro-library-chapter {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, .82fr);
  align-items: center;
  gap: clamp(54px, 9vw, 140px);
  padding: 56px 0;
}
.ro-library-chapter:nth-child(even) { grid-template-columns: minmax(320px, .82fr) minmax(360px, 1fr); }
.ro-library-chapter:nth-child(even) figure { order: 2; }
.ro-library-chapter[hidden] { display: none; }
.ro-library-chapter figure { position: relative; height: 440px; margin: 0; }
.ro-library-chapter figure::before { position: absolute; inset: -24px 8% 20px -5%; border: 1px solid var(--rh-line); border-radius: 50%; content: ""; transform: rotate(-5deg); }
.ro-library-chapter:nth-child(even) figure::before { inset: 10px -5% -24px 8%; transform: rotate(5deg); }
.ro-library-chapter figure img { position: relative; width: 100%; height: 100%; border-radius: 55% 45% 48% 52% / 47% 58% 42% 53%; object-fit: cover; box-shadow: var(--rh-shadow); }
.ro-library-chapter figcaption { position: absolute; right: 18px; bottom: 18px; padding: 8px 12px; color: #fff; background: rgba(24,71,48,.86); font-size: 10px; letter-spacing: .1em; }
.ro-library-chapter > div > p { margin: 0 0 18px; color: var(--rh-green); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.ro-library-chapter > div > p { display: flex; align-items: center; gap: 8px; }
.ro-library-chapter > div > p img { width: 16px; height: 16px; opacity: .72; }
.ro-library-chapter h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(38px, 5vw, 66px); font-weight: 550; line-height: 1.08; }
.ro-library-chapter > div > span { display: block; margin-top: 24px; color: var(--rh-muted); font-size: 15px; line-height: 1.85; }
.ro-library-chapter dl { margin: 30px 0 0; }
.ro-library-chapter dl > div { display: grid; grid-template-columns: 82px 1fr; gap: 18px; padding: 10px 0; border-top: 1px solid var(--rh-line); font-size: 12px; }
.ro-library-chapter dt { color: var(--rh-muted); }
.ro-library-chapter dd { margin: 0; }
.ro-library-chapter a { display: inline-block; margin-top: 28px; color: var(--rh-green-deep); font-size: 12px; text-decoration: none; }

@media (max-width: 920px) {
  .ro-hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ro-command { flex-wrap: wrap; gap: 12px 24px; }
  .ro-search { flex: 1 1 300px; }
  .ro-filters { order: 3; flex-basis: 100%; }
  .ro-academic-story { width: min(520px, 62%); }
  .ro-method-stop { width: 66%; }
  .ro-method-stop:nth-child(even) { margin-left: 34%; }
  .ro-data-feature { width: 52%; }
  .ro-data-points { width: 72%; }
}

@media (max-width: 700px) {
  .ro-hero { padding: 54px 0 34px; }
  .ro-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .ro-hero h1 { font-size: 52px; }
  .ro-hero-grid > div > p:last-child { font-size: 14px; }
  .ro-hero figure { height: 210px; }
  .ro-command { min-height: 0; padding: 14px 0 20px; }
  .ro-search { min-width: 0; flex-basis: 100%; }
  .ro-command > p { order: 4; flex-basis: 100%; }
  .ro-academic { padding-top: 0; }
  .ro-academic-stage { min-height: 940px; }
  .ro-academic-landscape { inset: 170px -18% 160px; width: 136%; height: 590px; }
  .ro-academic-stage::after { inset: 150px -20% 100px; }
  .ro-academic-orbit { top: 43%; left: 39%; }
  .ro-academic-node { max-width: 155px; }
  .ro-academic-node strong { font-size: 16px; }
  .ro-academic-node:nth-child(1) { top: 8% !important; left: 2% !important; }
  .ro-academic-node:nth-child(2) { top: 10% !important; left: 55% !important; }
  .ro-academic-node:nth-child(3) { top: 34% !important; left: 60% !important; }
  .ro-academic-node:nth-child(4) { top: 38% !important; left: 2% !important; }
  .ro-academic-node:nth-child(5) { top: 62% !important; left: 56% !important; }
  .ro-academic-node:nth-child(6) { top: 65% !important; left: 4% !important; }
  .ro-academic-story { right: 0; bottom: 0; width: 100%; padding: 24px; }
  .ro-method-river::before { left: 22px; }
  .ro-method-stop,
  .ro-method-stop:nth-child(even) { width: 100%; margin-left: 0; padding-left: 26px; }
  .ro-method-stop > button,
  .ro-method-stop:nth-child(odd) > button,
  .ro-method-stop:nth-child(even) > button { min-height: 154px; grid-template-columns: 44px 1fr 82px; gap: 12px; padding: 18px 0 18px 24px; }
  .ro-method-stop > button::after,
  .ro-method-stop:nth-child(odd) > button::after,
  .ro-method-stop:nth-child(even) > button::after { top: 70px; left: -10px; right: auto; }
  .ro-method-stop > button img { width: 82px; height: 82px; }
  .ro-method-title strong { font-size: 22px; }
  .ro-method-number { font-size: 24px; }
  .ro-method-stop > button i { display: none; }
  .ro-method-panel { margin: 0 8px 0 24px; }
  .ro-data-canvas { width: 100%; min-height: 860px; border-radius: 120px 120px 8px 8px / 60px 60px 8px 8px; }
  .ro-data-feature { top: 9%; left: 8%; width: 84%; }
  .ro-data-feature h2 { font-size: 46px; }
  .ro-data-points { right: 4%; bottom: 3%; width: 92%; }
  .ro-library-chapter,
  .ro-library-chapter:nth-child(even) { min-height: 0; grid-template-columns: 1fr; gap: 36px; padding: 48px 0 70px; }
  .ro-library-chapter:nth-child(even) figure { order: 0; }
  .ro-library-chapter figure { height: 310px; }
  .ro-library-chapter h2 { font-size: 42px; }
}

/* Clean visual pass: content first, no decorative guide-line language. */
.resource-flow-screen {
  background:
    radial-gradient(circle at 82% 5%, rgba(72, 128, 94, .12), transparent 31rem),
    radial-gradient(circle at 4% 62%, rgba(143, 176, 191, .08), transparent 34rem),
    var(--rh-paper);
}

.rh-hero-visual::after,
.ro-hero figure::before,
.ro-academic-stage::after,
.ro-library-chapter figure::before {
  display: none !important;
}

.ro-academic-node::before,
.ro-method-river::before,
.ro-method-stop > button::after { display: block; }

.ro-command {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 16px 48px rgba(43, 70, 53, .07);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .ro-command { background: rgba(255,255,255,.055); }

.ro-search {
  padding-inline: 13px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rh-paper-strong) 78%, transparent);
}

.ro-filters button {
  transition: color 220ms ease, background 220ms ease, transform 320ms var(--rh-ease);
}
.ro-filters button:hover { color: var(--rh-ink); background: rgba(255,255,255,.7); transform: translateY(-1px); }

.rh-route-head { border-bottom: 0; }
.rh-route-item { margin: 12px 0; border-bottom: 0; }
.rh-route-link {
  padding: 8px 26px;
  border-radius: 28px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 12px 42px rgba(43, 70, 53, .045);
}
.rh-route-link:hover,
.rh-route-link:focus-visible {
  padding-inline: 34px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 20px 54px rgba(43, 70, 53, .09);
}

.ro-academic-stage { min-height: 760px; }
.ro-academic-landscape {
  inset: 76px 8% 80px;
  width: 84%;
  height: 560px;
  border-radius: 70px;
  filter: saturate(.72) contrast(.9);
  opacity: .22;
  box-shadow: 0 28px 90px rgba(35, 61, 43, .1);
}
.ro-academic-orbit {
  width: 82px;
  height: 82px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 18px 54px rgba(29,63,44,.13);
}
.ro-academic-node {
  max-width: 250px;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 40px rgba(38, 67, 48, .08);
  backdrop-filter: blur(12px);
}
.ro-academic-node[aria-pressed="true"] {
  color: #fff;
  background: rgba(29, 82, 54, .94);
  box-shadow: 0 22px 54px rgba(27, 75, 50, .22);
}
.ro-academic-node[aria-pressed="true"] span,
.ro-academic-node[aria-pressed="true"] small { color: rgba(255,255,255,.72); }
.ro-academic-story {
  border-radius: 30px;
  background: rgba(24, 71, 48, .94);
  box-shadow: 0 28px 80px rgba(23,58,39,.2);
}

.ro-method-river { display: grid; gap: 22px; }
.ro-method-river::before { left: 31px; }
.ro-method-stop,
.ro-method-stop:nth-child(even) {
  width: calc(100% - 82px);
  margin: 0 0 0 82px;
  border-radius: 34px;
  background: rgba(255,255,255,.52);
  box-shadow: 0 18px 56px rgba(40, 69, 50, .07);
  overflow: visible;
}
.ro-method-stop:nth-child(even) { margin-left: 82px; }
.ro-method-stop > button,
.ro-method-stop:nth-child(odd) > button,
.ro-method-stop:nth-child(even) > button {
  padding: 24px 30px;
}
.ro-method-stop > button::after,
.ro-method-stop:nth-child(odd) > button::after,
.ro-method-stop:nth-child(even) > button::after {
  top: 88px;
  right: auto;
  left: -57px;
}
.ro-method-stop > button img { border-radius: 28px; box-shadow: 0 12px 34px rgba(27,59,39,.14); }
.ro-method-stop > button .ro-method-title img {
  width: 15px;
  height: 15px;
  border-radius: 0;
  box-shadow: none;
}
.ro-method-stop > button i,
.ro-method-stop:nth-child(even) > button i { right: 34px; bottom: 24px; }
.ro-method-panel { margin-inline: 30px; }
.ro-method-panel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ro-method-panel dl > div {
  display: block;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--rh-paper-strong) 68%, transparent);
}
.ro-method-panel dt { margin-bottom: 6px; }

.ro-data-canvas {
  border-radius: 58px;
  box-shadow: 0 30px 90px rgba(24, 55, 37, .15);
}
.ro-data-points button {
  border: 0;
  border-radius: 22px;
  background: rgba(8, 34, 22, .62);
  box-shadow: 0 14px 38px rgba(4,19,12,.15);
}
.ro-data-points button:hover,
.ro-data-points button[aria-pressed="true"] { background: rgba(30, 93, 62, .92); }

.ro-library-flow { display: grid; gap: 52px; padding-top: 30px; }
.ro-library-chapter,
.ro-library-chapter:nth-child(even) {
  min-height: 520px;
  padding: 42px;
  border-radius: 42px;
  background: rgba(255,255,255,.52);
  box-shadow: 0 22px 70px rgba(43,70,53,.075);
}
.ro-library-chapter figure { height: 410px; }
.ro-library-chapter figure img { border-radius: 34px; }
.ro-library-chapter figure { cursor: zoom-in; transition: height 680ms var(--rh-ease), transform 520ms var(--rh-ease); }
.ro-library-chapter.is-focused figure { height: 470px; transform: translateY(-6px); cursor: zoom-out; }
.ro-library-chapter dl { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ro-library-chapter dl > div { display: flex; gap: 9px; padding: 0; border: 0; }

.ro-smooth-viewport {
  position: fixed;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}
.ro-smooth-content {
  position: relative;
  width: 100%;
  transition: transform .68s cubic-bezier(.35, .73, .5, 1);
  will-change: transform;
}
.ro-smooth-enabled { overflow-x: hidden; }
.ro-smooth-enabled .site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; }
.ro-smooth-enabled .rh-module-nav { position: relative; top: auto; }

.ro-backtop {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(25,79,53,.92);
  box-shadow: 0 14px 40px rgba(19,54,35,.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 420ms var(--rh-ease);
  cursor: pointer;
}
.ro-backtop img { width: 18px; height: 18px; filter: brightness(0) invert(1); transform: rotate(-90deg); }
.ro-backtop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.ro-smooth-enabled::after,
.site-smooth-enabled.news-scroll-feedback::after {
  position: fixed;
  z-index: 121;
  top: 0;
  left: 0;
  width: calc(var(--ro-page-progress, var(--news-page-progress, 0)) * 100%);
  height: 2px;
  background: var(--rh-green);
  content: "";
  pointer-events: none;
}

.ro-reveal {
  opacity: 0;
  transform: translateY(36px) scale(.985);
  transition: opacity 720ms ease var(--news-reveal-delay, 0ms), transform 920ms var(--rh-ease) var(--news-reveal-delay, 0ms);
}
.ro-reveal.is-in-view { opacity: 1; transform: translateY(0) scale(1); }
.news-scroll-feedback :is(.nh-hero-photo, .conference-hero-background, .rp-portal-background, .pp-hero-background) {
  transform: translate3d(0, var(--news-parallax, 0), 0) scale(1.08);
  transform-origin: center top;
  will-change: transform;
}
.news-scroll-feedback .op-hero-visual {
  transform: translate3d(0, var(--news-parallax, 0), 0);
  will-change: transform;
}
.rh-hero-visual,
.ro-hero figure { transform: translate3d(0, var(--ro-parallax, 0), 0); will-change: transform; }
.rh-hero-visual > img,
.ro-hero figure > img,
.ro-library-chapter figure > img,
.ro-data-backdrop {
  transform: translate3d(var(--ro-image-x, 0), var(--ro-image-y, 0), 0) scale(1.018);
  transition: transform 650ms var(--rh-ease), opacity 240ms ease;
  will-change: transform;
}

@media (max-width: 760px) {
  .ro-command { padding: 12px; border-radius: 20px; }
  .rh-route-link { padding-inline: 18px; }
  .ro-academic-landscape { border-radius: 38px; }
  .ro-academic-node { padding: 11px 12px; }
  .ro-academic-story { border-radius: 24px; }
  .ro-method-river::before { left: 16px; }
  .ro-method-stop,
  .ro-method-stop:nth-child(even) { width: calc(100% - 44px); margin-left: 44px; border-radius: 26px; }
  .ro-method-stop > button::after,
  .ro-method-stop:nth-child(odd) > button::after,
  .ro-method-stop:nth-child(even) > button::after { top: 70px; left: -34px; }
  .ro-method-stop > button,
  .ro-method-stop:nth-child(odd) > button,
  .ro-method-stop:nth-child(even) > button { padding: 18px; }
  .ro-method-panel dl { grid-template-columns: 1fr; }
  .ro-data-canvas { border-radius: 38px; }
  .ro-library-flow { gap: 28px; }
  .ro-library-chapter,
  .ro-library-chapter:nth-child(even) { padding: 20px; border-radius: 28px; }
  .ro-backtop { right: 14px; bottom: 14px; }

  .news-scroll-feedback :is(.nh-hero-photo, .conference-hero-background, .rp-portal-background, .pp-hero-background),
  .news-scroll-feedback .op-hero-visual { transform: none; }
}

/* Four resource families: one system, four recognizable color identities. */
.resource-hub-page[data-resource-view="academic"],
.resource-flow-screen[data-rh-kind="academic"] {
  --rh-green: #3f7187;
  --rh-green-deep: #285568;
  --rh-rust: #ad7747;
  --ro-family-glow: rgba(63, 113, 135, .16);
}
.resource-hub-page[data-resource-view="method"],
.resource-flow-screen[data-rh-kind="method"] {
  --rh-green: #a45f30;
  --rh-green-deep: #7f431f;
  --rh-rust: #c18148;
  --ro-family-glow: rgba(181, 105, 50, .17);
}
.resource-hub-page[data-resource-view="data"],
.resource-flow-screen[data-rh-kind="data"] {
  --rh-green: #2f756d;
  --rh-green-deep: #1e5651;
  --rh-rust: #a7793f;
  --ro-family-glow: rgba(47, 117, 109, .17);
}
.resource-hub-page[data-resource-view="library"],
.resource-flow-screen[data-rh-kind="library"] {
  --rh-green: #76536f;
  --rh-green-deep: #573a52;
  --rh-rust: #a36d51;
  --ro-family-glow: rgba(118, 83, 111, .16);
}
.resource-flow-screen[data-rh-kind="academic"],
.resource-flow-screen[data-rh-kind="method"],
.resource-flow-screen[data-rh-kind="data"],
.resource-flow-screen[data-rh-kind="library"] {
  background:
    radial-gradient(circle at 82% 5%, var(--ro-family-glow), transparent 31rem),
    radial-gradient(circle at 4% 62%, rgba(143, 176, 191, .07), transparent 34rem),
    var(--rh-paper);
}
.ro-backtop { background: var(--rh-green-deep); }

/* Resource home is an aggregate, not a route menu. */
.rh-home-collection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}
.rh-home-collection-head .rh-eyebrow { margin-bottom: 12px; }
.rh-home-collection-head h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 560;
  letter-spacing: -.045em;
}
.rh-home-collection-head > p {
  margin: 0 0 9px;
  color: var(--rh-muted);
  font-size: 13px;
}
.rh-home-modules {
  display: grid;
  gap: 32px;
  padding-bottom: 128px;
}
.rh-home-module {
  --module-accent: #3f7187;
  --module-deep: #285568;
  --module-soft: #e7f0f3;
  position: relative;
  display: grid;
  min-height: 470px;
  grid-template-columns: minmax(360px, .94fr) minmax(420px, 1.06fr);
  gap: 34px;
  padding: 28px;
  overflow: hidden;
  border-radius: 42px;
  background: var(--module-soft);
  box-shadow: 0 22px 72px color-mix(in srgb, var(--module-deep) 10%, transparent);
  transition: transform 560ms var(--rh-ease), box-shadow 560ms var(--rh-ease);
}
.rh-home-module[hidden] { display: none; }
.rh-home-module[data-rh-module="academic"] {
  --module-accent: #3f7187;
  --module-deep: #285568;
  --module-soft: #e7f0f3;
}
.rh-home-module[data-rh-module="method"] {
  --module-accent: #a45f30;
  --module-deep: #7f431f;
  --module-soft: #f5e8dc;
}
.rh-home-module[data-rh-module="data"] {
  --module-accent: #2f756d;
  --module-deep: #1e5651;
  --module-soft: #e5f0ec;
}
.rh-home-module[data-rh-module="library"] {
  --module-accent: #76536f;
  --module-deep: #573a52;
  --module-soft: #eee6ed;
}
.rh-home-module:hover,
.rh-home-module:focus-within {
  box-shadow: 0 34px 94px color-mix(in srgb, var(--module-deep) 17%, transparent);
  transform: translateY(-5px);
}
.rh-home-module:nth-child(even) { grid-template-columns: minmax(420px, 1.06fr) minmax(360px, .94fr); }
.rh-home-module:nth-child(even) figure { order: 2; }
.rh-home-module figure {
  position: relative;
  min-height: 414px;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: color-mix(in srgb, var(--module-deep) 12%, white);
}
.rh-home-module:nth-child(1) figure { border-radius: 32px 90px 32px 32px; }
.rh-home-module:nth-child(2) figure { border-radius: 90px 32px 32px 32px; }
.rh-home-module:nth-child(3) figure { border-radius: 32px 32px 90px 32px; }
.rh-home-module:nth-child(4) figure { border-radius: 32px 32px 32px 90px; }
.rh-home-module figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(.96);
  transition: transform 850ms var(--rh-ease), filter 500ms ease;
}
.rh-home-module:hover figure > img { filter: saturate(1) contrast(1); transform: scale(1.035); }
.rh-home-module figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--module-deep) 92%, transparent);
  font-size: 11px;
}
.rh-home-module-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 20px;
}
.rh-home-module-copy > header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--module-deep);
}
.rh-home-module-copy > header > span {
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}
.rh-home-module-copy > header > img {
  width: 18px;
  height: 18px;
  opacity: .72;
}
.rh-home-module-copy > header > p {
  margin: 0;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rh-home-module-copy h2 {
  margin: 15px 0 10px;
  color: var(--module-deep);
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 560;
  letter-spacing: -.055em;
}
.rh-home-module-copy > p {
  max-width: 52ch;
  margin: 0;
  color: color-mix(in srgb, var(--module-deep) 72%, #6a756e);
  line-height: 1.85;
}
.rh-home-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 24px;
}
.rh-home-samples > div {
  min-height: 92px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .54);
  transition: background 260ms ease, transform 360ms var(--rh-ease);
}
.rh-home-samples > div:hover { background: rgba(255, 255, 255, .9); transform: translateY(-3px); }
.rh-home-samples small,
.rh-home-samples strong { display: block; }
.rh-home-samples small {
  margin-bottom: 8px;
  color: var(--module-accent);
  font-size: 10px;
  letter-spacing: .08em;
}
.rh-home-samples strong {
  color: var(--module-deep);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.45;
}
.rh-home-module-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--module-deep);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: gap 320ms var(--rh-ease), transform 320ms var(--rh-ease);
}
.rh-home-module-link:hover,
.rh-home-module-link:focus-visible { gap: 18px; transform: translateX(3px); }
.rh-home-module-link img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

@media (max-width: 900px) {
  .rh-home-module,
  .rh-home-module:nth-child(even) { grid-template-columns: 1fr; }
  .rh-home-module:nth-child(even) figure { order: 0; }
  .rh-home-module figure { min-height: 360px; }
}

@media (max-width: 760px) {
  .rh-home-collection-head { display: block; }
  .rh-home-collection-head > p { margin-top: 14px; }
  .rh-home-modules { gap: 22px; padding-bottom: 84px; }
  .rh-home-module,
  .rh-home-module:nth-child(even) { min-height: 0; gap: 8px; padding: 14px; border-radius: 28px; }
  .rh-home-module figure,
  .rh-home-module:nth-child(1) figure,
  .rh-home-module:nth-child(2) figure,
  .rh-home-module:nth-child(3) figure,
  .rh-home-module:nth-child(4) figure { min-height: 260px; border-radius: 22px; }
  .rh-home-module-copy { padding: 20px 10px 16px; }
  .rh-home-module-copy h2 { font-size: 42px; }
  .rh-home-samples { grid-template-columns: 1fr; margin-block: 22px; }
  .rh-home-samples > div { min-height: 0; }
}

/* Latest resource home: compact header, live links and no promotional voids. */
.rh-latest-home { padding: 68px 0 28px; }
.rh-latest-head {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr);
  align-items: end;
  gap: 72px;
  padding-bottom: 42px;
}
.rh-latest-head .rh-eyebrow { margin-bottom: 12px; }
.rh-latest-head h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: clamp(62px, 8vw, 104px);
  font-weight: 570;
  letter-spacing: -.065em;
  line-height: .98;
}
.rh-latest-head > p {
  max-width: 60ch;
  margin: 0 0 7px;
  color: var(--rh-muted);
  font-size: 16px;
  line-height: 1.9;
}
.rh-latest-controls {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 12px 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 14px 48px rgba(43,70,53,.07);
  backdrop-filter: blur(16px);
}
.rh-latest-controls .rh-home-search {
  width: 100%;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rh-paper-strong) 76%, transparent);
}
.rh-latest-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rh-latest-filters::-webkit-scrollbar { display: none; }
.rh-latest-filters button {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--rh-muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 300ms var(--rh-ease);
}
.rh-latest-filters button:hover { color: var(--rh-ink); background: rgba(255,255,255,.75); transform: translateY(-1px); }
.rh-latest-filters button img { width: 15px; height: 15px; opacity: .72; }
.rh-latest-filters button[aria-pressed="true"] { color: #fff; background: var(--rh-green-deep); }
.rh-latest-filters button[data-rh-latest-filter="academic"][aria-pressed="true"] { background: #285568; }
.rh-latest-filters button[data-rh-latest-filter="method"][aria-pressed="true"] { background: #7f431f; }
.rh-latest-filters button[data-rh-latest-filter="data"][aria-pressed="true"] { background: #1e5651; }
.rh-latest-filters button[data-rh-latest-filter="library"][aria-pressed="true"] { background: #573a52; }
.rh-latest-filters button[aria-pressed="true"] img { filter: brightness(0) invert(1); opacity: 1; }
.rh-latest-controls > p { margin: 0; color: var(--rh-muted); font-size: 12px; white-space: nowrap; }
.rh-latest-feed { display: grid; gap: 22px; }
.rh-latest-item {
  --latest-accent: #3f7187;
  --latest-deep: #285568;
  --latest-soft: #e7f0f3;
  display: grid;
  min-height: 286px;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 30px;
  padding: 24px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--latest-soft);
  box-shadow: 0 14px 48px color-mix(in srgb, var(--latest-deep) 8%, transparent);
  transition: transform 520ms var(--rh-ease), box-shadow 520ms var(--rh-ease);
}
.rh-latest-item[data-kind="academic"] { --latest-accent:#3f7187; --latest-deep:#285568; --latest-soft:#e7f0f3; }
.rh-latest-item[data-kind="method"] { --latest-accent:#a45f30; --latest-deep:#7f431f; --latest-soft:#f5e8dc; }
.rh-latest-item[data-kind="data"] { --latest-accent:#2f756d; --latest-deep:#1e5651; --latest-soft:#e5f0ec; }
.rh-latest-item[data-kind="library"] { --latest-accent:#76536f; --latest-deep:#573a52; --latest-soft:#eee6ed; }
.rh-latest-item[hidden] { display: none; }
.rh-latest-item:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.rh-latest-item:nth-child(even) figure { order: 2; }
.rh-latest-item:hover,
.rh-latest-item:focus-within { box-shadow: 0 24px 68px color-mix(in srgb, var(--latest-deep) 15%, transparent); transform: translateY(-4px); }
.rh-latest-item figure {
  position: relative;
  min-height: 238px;
  margin: 0;
  overflow: hidden;
  border-radius: 25px;
}
.rh-latest-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(.96);
  transition: filter 420ms ease, transform 800ms var(--rh-ease);
}
.rh-latest-item:hover figure img { filter: saturate(1) contrast(1); transform: scale(1.035); }
.rh-latest-item figcaption {
  position: absolute;
  right: 13px;
  bottom: 13px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--latest-deep) 92%, transparent);
  font-size: 10px;
}
.rh-latest-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 8px 22px 8px 4px; }
.rh-latest-item:nth-child(even) .rh-latest-copy { padding-right: 4px; padding-left: 22px; }
.rh-latest-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rh-latest-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--latest-deep);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .1em;
}
.rh-latest-meta img { width: 16px; height: 16px; opacity: .74; }
.rh-latest-meta time { color: color-mix(in srgb, var(--latest-deep) 62%, var(--rh-muted)); font-family: Georgia, serif; font-size: 12px; }
.rh-latest-type { margin: 20px 0 8px !important; color: var(--latest-accent) !important; font-size: 11px !important; font-weight: 650; letter-spacing: .05em; }
.rh-latest-copy h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", STSong, serif; font-size: clamp(27px, 3vw, 42px); font-weight: 570; line-height: 1.28; }
.rh-latest-copy h2 a { color: var(--latest-deep); text-decoration: none; }
.rh-latest-copy h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.rh-latest-copy > p:not(.rh-latest-type) { max-width: 68ch; margin: 13px 0 0; color: color-mix(in srgb, var(--latest-deep) 68%, var(--rh-muted)); line-height: 1.75; }
.rh-latest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.rh-latest-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--latest-deep);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.rh-latest-primary span { transition: transform 280ms var(--rh-ease); }
.rh-latest-primary:hover span { transform: translate(2px, -2px); }
.rh-latest-section-link { display: inline-flex; align-items: center; gap: 7px; color: var(--latest-deep); font-size: 12px; font-weight: 620; text-decoration: none; }
.rh-latest-section-link img { width: 15px; height: 15px; transition: transform 280ms var(--rh-ease); }
.rh-latest-section-link:hover img { transform: translateX(4px); }
.rh-latest-content > .rh-empty-routes { margin: 26px 0 8px; }

@media (max-width: 900px) {
  .rh-latest-head { grid-template-columns: 1fr; gap: 20px; }
  .rh-latest-controls { grid-template-columns: 1fr; }
  .rh-latest-controls > p { padding-left: 4px; }
  .rh-latest-item,
  .rh-latest-item:nth-child(even) { grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); }
  .rh-latest-item:nth-child(even) figure { order: 0; }
}

@media (max-width: 760px) {
  .rh-latest-home { padding: 46px 0 18px; }
  .rh-latest-head { padding-bottom: 30px; }
  .rh-latest-head h1 { font-size: 62px; }
  .rh-latest-head > p { font-size: 14px; }
  .rh-latest-controls { gap: 12px; margin-bottom: 18px; padding: 11px; border-radius: 20px; }
  .rh-latest-filters {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
  }
  .rh-latest-item,
  .rh-latest-item:nth-child(even) { min-height: 0; grid-template-columns: 1fr; gap: 8px; padding: 14px; border-radius: 27px; }
  .rh-latest-item:nth-child(even) figure { order: 0; }
  .rh-latest-item figure { min-height: 220px; border-radius: 21px; }
  .rh-latest-copy,
  .rh-latest-item:nth-child(even) .rh-latest-copy { padding: 18px 8px 14px; }
  .rh-latest-copy h2 { font-size: 29px; }
}

/* Resource portal home — focused gateway, live previews and editorial modules. */
.resource-flow-screen[data-rh-kind="home"] {
  background: #f5f3ec;
}

.rh-portal {
  --portal-green: #173f30;
  --portal-green-2: #2e654a;
  --portal-paper: #f7f5ef;
  --portal-ink: #17372b;
  --portal-muted: #66746d;
  color: var(--portal-ink);
  background: var(--portal-paper);
}

.rh-portal-hero {
  position: relative;
  min-height: 534px;
  padding-bottom: 76px;
  overflow: visible;
  background: #e6e5dc;
  isolation: isolate;
}

.rh-portal-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(247, 245, 238, .14);
  content: "";
  pointer-events: none;
}

.rh-portal-hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(.94);
  transition: opacity 520ms ease, transform 1200ms var(--rh-ease), filter 520ms ease;
}

.rh-portal-hero.is-changing .rh-portal-hero-image {
  opacity: .32;
  transform: scale(1.018);
  filter: saturate(.68) contrast(.9);
}

.rh-portal-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 458px;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, .72fr);
  align-items: center;
  gap: clamp(48px, 7vw, 106px);
  padding-top: 30px;
}

.rh-portal-story {
  max-width: 780px;
  padding: 18px 0 12px;
}

.rh-portal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 22px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 63, 48, .88);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .08em;
}

.rh-portal-story h1 {
  max-width: 780px;
  margin: 0;
  color: #15392b;
  font-family: var(--font-display, var(--font));
  font-size: clamp(58px, 6.2vw, 92px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .98;
  text-wrap: balance;
}

.rh-portal-summary {
  max-width: 46ch;
  margin: 24px 0 0;
  color: #455b51;
  font-size: 16px;
  line-height: 1.8;
}

.rh-portal-feature {
  display: grid;
  max-width: 620px;
  gap: 7px;
  margin-top: 30px;
}

.rh-portal-feature strong {
  color: #173f30;
  font-size: 22px;
  font-weight: 720;
}

.rh-portal-feature span {
  color: #53665d;
  font-size: 13px;
  line-height: 1.7;
}

.rh-portal-action,
.rh-weekly-card a,
.rh-recent header a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-weight: 680;
  text-decoration: none;
}

.rh-portal-action {
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--portal-green);
  font-size: 13px;
  box-shadow: 0 14px 34px rgba(17, 57, 42, .17);
  transition: gap 320ms var(--rh-ease), transform 320ms var(--rh-ease), background 220ms ease;
}

.rh-portal-action:hover,
.rh-portal-action:focus-visible {
  gap: 14px;
  background: #245a41;
  transform: translateY(-2px);
}

.rh-portal-action img,
.rh-weekly-card a img,
.rh-recent header a img,
.rh-mini-topic i img {
  width: 15px;
  height: 15px;
}

.rh-portal-action img,
.rh-weekly-card a img,
.rh-mini-topic i img { filter: brightness(0) invert(1); }

.rh-portal-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}

.rh-portal-controls > button,
.rh-portal-pages button {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #355448;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: background 220ms ease, transform 280ms var(--rh-ease), color 220ms ease;
}

.rh-portal-controls > button:hover,
.rh-portal-controls > button:focus-visible,
.rh-portal-pages button:hover,
.rh-portal-pages button:focus-visible {
  color: #fff;
  background: var(--portal-green);
  transform: translateY(-2px);
}

.rh-portal-controls > button img { width: 15px; height: 15px; }
.rh-portal-controls > button:hover img,
.rh-portal-controls > button:focus-visible img { filter: brightness(0) invert(1); }

.rh-portal-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rh-portal-pages button {
  min-width: 34px;
  border-radius: 999px;
  font: 650 10px/1 var(--font);
}

.rh-portal-pages button[aria-pressed="true"] {
  width: 58px;
  color: #fff;
  background: var(--portal-green);
}

.rh-live {
  min-height: 380px;
  padding: 19px 22px;
  border-radius: 28px;
  background: rgba(249, 248, 243, .84);
  box-shadow: 0 24px 64px rgba(34, 60, 48, .1);
  backdrop-filter: blur(16px);
}

.rh-live-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 15px;
}

.rh-live-head img { width: 15px; height: 15px; color: var(--portal-green); }
.rh-live-head h2 { margin: 0; font-size: 15px; font-weight: 720; }
.rh-live-list { display: grid; gap: 9px; }

.rh-live-item {
  display: grid;
  width: 100%;
  min-height: 92px;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 9px;
  border: 0;
  border-radius: 18px;
  color: var(--portal-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 240ms ease, transform 340ms var(--rh-ease);
}

.rh-live-item:hover,
.rh-live-item:focus-visible,
.rh-live-item[aria-pressed="true"] {
  background: rgba(255, 255, 255, .84);
  transform: translateX(-4px);
}

.rh-live-item > img {
  width: 112px;
  height: 66px;
  border-radius: 13px;
  object-fit: cover;
  filter: saturate(.85);
}

.rh-live-item span { display: grid; gap: 8px; }
.rh-live-item strong { font-size: 13px; line-height: 1.45; }
.rh-live-item time { color: #78847e; font-size: 11px; }

.rh-category-band {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: -62px;
  left: 0;
  display: grid;
  min-height: 124px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 20px 58px rgba(36, 61, 49, .13);
  backdrop-filter: blur(18px);
}

.rh-category-band a {
  --category-color: #426d81;
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  color: #233a31;
  text-decoration: none;
  transition: color 220ms ease, background 260ms ease, transform 340ms var(--rh-ease);
}

.rh-category-band a[data-kind="method"] { --category-color: #a47724; }
.rh-category-band a[data-kind="data"] { --category-color: #27756e; }
.rh-category-band a[data-kind="library"] { --category-color: #76536f; }
.rh-category-band a:hover,
.rh-category-band a:focus-visible,
.rh-category-band a[aria-current] { color: var(--category-color); background: rgba(246, 247, 244, .94); transform: translateY(-3px); }

.rh-category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--category-color);
  background: color-mix(in srgb, var(--category-color) 13%, white);
}

.rh-category-icon img { width: 25px; height: 25px; }
.rh-category-band a > span:nth-child(2) { display: grid; gap: 6px; }
.rh-category-band strong { font-size: 18px; }
.rh-category-band small { overflow: hidden; color: #7a867f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rh-category-arrow { width: 17px; height: 17px; opacity: .58; transition: transform 300ms var(--rh-ease); }
.rh-category-band a:hover .rh-category-arrow,
.rh-category-band a:focus-visible .rh-category-arrow { transform: translateX(4px); }

.rh-portal-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .72fr) minmax(330px, .86fr);
  gap: 24px;
  padding-top: 106px;
  padding-bottom: 92px;
}

.rh-weekly-topic > header,
.rh-recent > header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rh-weekly-topic > header p,
.rh-recent h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 740;
}

.rh-weekly-topic > header span { color: #77837c; font-size: 11px; }

.rh-weekly-card {
  display: grid;
  min-height: 302px;
  grid-template-columns: minmax(210px, .96fr) minmax(230px, 1.04fr);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 38px rgba(36, 61, 49, .075);
}

.rh-weekly-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(.96);
  transition: transform 700ms var(--rh-ease), filter 420ms ease;
}

.rh-weekly-card:hover > img { filter: saturate(.98); transform: scale(1.025); }
.rh-weekly-card > div { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.rh-weekly-card small { width: fit-content; padding: 5px 8px; border-radius: 999px; color: #426151; background: #edf2ed; font-size: 10px; }
.rh-weekly-card h2 { margin: 14px 0 10px; font-size: 21px; line-height: 1.45; }
.rh-weekly-card p { margin: 0; color: #718078; font-size: 12px; line-height: 1.7; }
.rh-weekly-card a { min-height: 40px; margin-top: 20px; padding: 0 14px; border-radius: 999px; color: #fff; background: var(--portal-green); font-size: 12px; }

.rh-recent header a { color: #617168; font-size: 11px; }
.rh-recent header a img { opacity: .65; }
.rh-recent ol { margin: 0; padding: 0; list-style: none; }
.rh-recent li + li { border-top: 1px solid rgba(42, 69, 55, .1); }
.rh-recent li a {
  display: grid;
  min-height: 48px;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  color: #364d42;
  text-decoration: none;
  transition: color 220ms ease, transform 280ms var(--rh-ease);
}
.rh-recent li a:hover,
.rh-recent li a:focus-visible { color: var(--portal-green-2); transform: translateX(4px); }
.rh-recent time { color: #8a948f; font-size: 10px; }
.rh-recent li span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rh-recent li img { width: 15px; height: 15px; opacity: .55; }

.rh-topic-pair {
  display: grid;
  min-height: 346px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rh-mini-topic {
  position: relative;
  min-height: 346px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: #2b4539;
  text-decoration: none;
}

.rh-mini-topic > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.75) saturate(.75);
  transition: filter 420ms ease, transform 760ms var(--rh-ease);
}

.rh-mini-topic:hover > img,
.rh-mini-topic:focus-visible > img { filter: brightness(.63) saturate(.95); transform: scale(1.035); }
.rh-mini-topic > span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: rgba(15, 39, 29, .2); }
.rh-mini-topic small { font-size: 10px; letter-spacing: .06em; }
.rh-mini-topic strong { margin-top: 8px; font-size: 18px; line-height: 1.4; }
.rh-mini-topic i { display: grid; width: 36px; height: 36px; place-items: center; margin-top: 18px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background 220ms ease, transform 300ms var(--rh-ease); }
.rh-mini-topic:hover i,
.rh-mini-topic:focus-visible i { background: rgba(255, 255, 255, .34); transform: translateX(4px); }

.rh-theme-explorer {
  padding-top: 18px;
  padding-bottom: 94px;
}

.rh-theme-explorer > header {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 30px;
}

.rh-theme-explorer .rh-portal-kicker,
.rh-snapshot-head .rh-portal-kicker {
  margin-bottom: 15px;
}

.rh-theme-explorer h2,
.rh-snapshot-head h2 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.rh-theme-explorer > header > p {
  max-width: 56ch;
  margin: 0 0 5px;
  color: #65756d;
  line-height: 1.8;
}

.rh-theme-grid {
  display: grid;
  grid-template-areas: "theme-a theme-b theme-c" "theme-a theme-d theme-e" "theme-f theme-f theme-f";
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 178px 178px 154px;
  gap: 14px;
}

.rh-theme-item:nth-child(1) { grid-area: theme-a; }
.rh-theme-item:nth-child(2) { grid-area: theme-b; }
.rh-theme-item:nth-child(3) { grid-area: theme-c; }
.rh-theme-item:nth-child(4) { grid-area: theme-d; }
.rh-theme-item:nth-child(5) { grid-area: theme-e; }
.rh-theme-item:nth-child(6) { grid-area: theme-f; }

.rh-theme-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: #1e3e31;
  text-decoration: none;
}

.rh-theme-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7) saturate(.74);
  transition: filter 420ms ease, transform 780ms var(--rh-ease);
}

.rh-theme-item > span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: rgba(11, 35, 25, .2);
}

.rh-theme-item strong { font-size: 20px; line-height: 1.3; }
.rh-theme-item small { margin-top: 7px; color: rgba(255,255,255,.77); font-size: 11px; }
.rh-theme-item i { position: absolute; right: 18px; bottom: 18px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); transition: background 220ms ease, transform 300ms var(--rh-ease); }
.rh-theme-item i img { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.rh-theme-item:hover > img,
.rh-theme-item:focus-visible > img { filter: brightness(.58) saturate(.94); transform: scale(1.035); }
.rh-theme-item:hover i,
.rh-theme-item:focus-visible i { background: rgba(255,255,255,.32); transform: translateX(4px); }

.rh-resource-snapshot {
  padding: 82px 0 100px;
  background: #e7ebe4;
}

.rh-snapshot-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 32px;
}

.rh-snapshot-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.rh-snapshot-tabs button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #627168;
  background: rgba(255,255,255,.62);
  font-size: 12px;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 300ms var(--rh-ease);
}

.rh-snapshot-tabs button img { width: 15px; height: 15px; opacity: .7; }
.rh-snapshot-tabs button:hover,
.rh-snapshot-tabs button:focus-visible { color: var(--portal-green); background: #fff; transform: translateY(-2px); }
.rh-snapshot-tabs button[aria-selected="true"] { color: #fff; background: var(--portal-green); }
.rh-snapshot-tabs button[aria-selected="true"] img { filter: brightness(0) invert(1); opacity: 1; }

.rh-snapshot-stage {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(380px, .92fr) minmax(0, 1.08fr);
  gap: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 24px 68px rgba(37, 62, 49, .09);
  transition: opacity 280ms ease, transform 420ms var(--rh-ease);
}

.rh-snapshot-stage.is-changing { opacity: .5; transform: translateY(7px); }
.rh-snapshot-stage figure { min-height: 430px; margin: 0; overflow: hidden; }
.rh-snapshot-stage figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(.95); transition: transform 750ms var(--rh-ease); }
.rh-snapshot-stage:hover figure img { transform: scale(1.025); }
.rh-snapshot-stage > div { display: flex; flex-direction: column; justify-content: center; padding: 46px clamp(34px, 5vw, 72px); }
.rh-snapshot-stage > div > p:first-child { margin: 0; color: var(--portal-green-2); font-size: 10px; font-weight: 720; letter-spacing: .13em; }
.rh-snapshot-stage h3 { margin: 14px 0 12px; font-size: clamp(30px, 3.3vw, 44px); letter-spacing: -.035em; }
.rh-snapshot-stage h3 + p { max-width: 54ch; margin: 0; color: #6a7970; line-height: 1.75; }
.rh-snapshot-stage ol { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; }
.rh-snapshot-stage li { display: grid; min-height: 43px; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; border-top: 1px solid rgba(42,69,55,.1); font-size: 13px; }
.rh-snapshot-stage li span { color: #8b9891; font-size: 10px; }
.rh-snapshot-stage > div > a { display: inline-flex; width: fit-content; min-height: 42px; align-items: center; gap: 9px; margin-top: 24px; padding: 0 15px; border-radius: 999px; color: #fff; background: var(--portal-green); font-size: 12px; font-weight: 680; text-decoration: none; transition: gap 300ms var(--rh-ease), transform 300ms var(--rh-ease); }
.rh-snapshot-stage > div > a:hover,
.rh-snapshot-stage > div > a:focus-visible { gap: 14px; transform: translateY(-2px); }
.rh-snapshot-stage > div > a img { width: 15px; height: 15px; filter: brightness(0) invert(1); }

html[data-theme="dark"] .rh-portal,
html[data-theme="dark"] .resource-flow-screen[data-rh-kind="home"] { --portal-paper: #111713; --portal-ink: #edf3ee; --portal-muted: #a3afa7; background: var(--portal-paper); }
html[data-theme="dark"] .rh-portal-hero::before { background: rgba(8, 20, 13, .42); }
html[data-theme="dark"] .rh-portal-story h1,
html[data-theme="dark"] .rh-portal-feature strong { color: #f0f5f0; }
html[data-theme="dark"] .rh-portal-summary,
html[data-theme="dark"] .rh-portal-feature span { color: #c5d0c8; }
html[data-theme="dark"] .rh-live { background: rgba(16, 27, 20, .84); }
html[data-theme="dark"] .rh-live-item { color: #eef3ef; }
html[data-theme="dark"] .rh-live-item:hover,
html[data-theme="dark"] .rh-live-item:focus-visible,
html[data-theme="dark"] .rh-live-item[aria-pressed="true"] { background: rgba(255,255,255,.07); }
html[data-theme="dark"] .rh-category-band { background: rgba(17, 27, 21, .94); }
html[data-theme="dark"] .rh-category-band a { color: #e8efe9; }
html[data-theme="dark"] .rh-category-band a:hover,
html[data-theme="dark"] .rh-category-band a:focus-visible,
html[data-theme="dark"] .rh-category-band a[aria-current] { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .rh-category-icon { background: rgba(255,255,255,.08); }
html[data-theme="dark"] .rh-weekly-card { background: #19231d; }
html[data-theme="dark"] .rh-recent li a { color: #dce6de; }
html[data-theme="dark"] .rh-recent li + li { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .rh-theme-explorer > header > p { color: #a6b2aa; }
html[data-theme="dark"] .rh-resource-snapshot { background: #162019; }
html[data-theme="dark"] .rh-snapshot-tabs button { color: #c5d0c8; background: rgba(255,255,255,.07); }
html[data-theme="dark"] .rh-snapshot-stage { background: #1a251e; }
html[data-theme="dark"] .rh-snapshot-stage h3 + p { color: #aebbb2; }
html[data-theme="dark"] .rh-snapshot-stage li { border-color: rgba(255,255,255,.09); }

@media (max-width: 1120px) {
  .rh-portal-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(310px, .8fr); gap: 36px; }
  .rh-category-band a { grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 10px; padding-inline: 12px; }
  .rh-category-icon { width: 44px; height: 44px; }
  .rh-category-icon img { width: 22px; height: 22px; }
  .rh-portal-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-weekly-topic { grid-column: 1 / -1; }
  .rh-weekly-card { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
  .rh-theme-explorer > header { grid-template-columns: 1fr; gap: 18px; }
  .rh-snapshot-head { align-items: start; flex-direction: column; }
  .rh-snapshot-tabs { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .rh-portal-hero { min-height: 0; padding-bottom: 28px; overflow: hidden; }
  .rh-portal-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding-top: 58px; padding-bottom: 24px; }
  .rh-portal-story { padding-top: 12px; }
  .rh-portal-story h1 { font-size: clamp(52px, 9vw, 78px); }
  .rh-live { min-height: 0; padding: 18px; }
  .rh-live-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rh-live-item { grid-template-columns: 1fr; align-items: start; }
  .rh-live-item > img { width: 100%; height: 92px; }
  .rh-category-band { position: relative; right: auto; bottom: auto; left: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .rh-portal-dashboard { padding-top: 48px; }
  .rh-theme-grid { grid-template-areas: "theme-a theme-a" "theme-b theme-c" "theme-d theme-e" "theme-f theme-f"; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 270px 165px 165px 150px; }
  .rh-snapshot-stage { grid-template-columns: 1fr; }
  .rh-snapshot-stage figure { min-height: 320px; }
}

@media (max-width: 700px) {
  .rh-portal-hero-grid { padding-top: 42px; }
  .rh-portal-story h1 { font-size: 50px; line-height: 1.04; }
  .rh-portal-summary { font-size: 14px; }
  .rh-portal-feature strong { font-size: 19px; }
  .rh-portal-controls { flex-wrap: wrap; }
  .rh-live-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .rh-live-item { min-width: min(260px, 78vw); scroll-snap-align: start; }
  .rh-category-band { grid-template-columns: 1fr; padding: 8px; border-radius: 20px; }
  .rh-category-band a { min-height: 74px; }
  .rh-portal-dashboard { grid-template-columns: 1fr; gap: 34px; padding-top: 42px; padding-bottom: 64px; }
  .rh-weekly-topic { grid-column: auto; }
  .rh-weekly-card { grid-template-columns: 1fr; }
  .rh-weekly-card > img { height: 220px; }
  .rh-topic-pair { min-height: 0; grid-template-columns: 1fr; }
  .rh-mini-topic { min-height: 300px; }
  .rh-theme-explorer { padding-top: 4px; padding-bottom: 64px; }
  .rh-theme-explorer h2,
  .rh-snapshot-head h2 { font-size: 38px; }
  .rh-theme-grid { display: grid; grid-template-areas: none; grid-template-columns: 1fr; grid-template-rows: none; }
  .rh-theme-item:nth-child(n) { min-height: 210px; grid-area: auto; }
  .rh-snapshot-tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .rh-snapshot-tabs::-webkit-scrollbar { display: none; }
  .rh-snapshot-tabs button { flex: 0 0 auto; }
  .rh-resource-snapshot { padding: 64px 0 72px; }
  .rh-snapshot-stage { min-height: 0; border-radius: 26px; }
  .rh-snapshot-stage figure { min-height: 240px; }
  .rh-snapshot-stage > div { padding: 28px 22px; }
  .rh-snapshot-stage h3 { font-size: 30px; }
}

/* Academic discovery: task-led search, topic browsing and trusted official entry points. */
.ad-screen {
  --ad-journal: #706889;
  --ad-journal-soft: #f0edf4;
  --ad-society: #a5754f;
  --ad-society-soft: #f7efe8;
  --ad-institution: #587766;
  --ad-institution-soft: #edf3ef;
  --ad-platform: #53768a;
  --ad-platform-soft: #edf3f6;
  --ad-surface: rgba(255, 255, 255, .84);
  --ad-border: rgba(36, 57, 46, .12);
  --ad-shadow: 0 24px 70px rgba(45, 55, 47, .09);
  background:
    radial-gradient(circle at 86% 16%, rgba(83, 118, 138, .09), transparent 28rem),
    radial-gradient(circle at 8% 38%, rgba(165, 117, 79, .08), transparent 24rem),
    var(--rh-paper);
}

.ad-screen .ro-hero { padding-block: 54px 62px; }
.ad-screen .ro-hero-grid {
  min-height: 410px;
  grid-template-columns: minmax(0, .78fr) minmax(480px, 1.22fr);
  gap: clamp(54px, 7vw, 100px);
}
.ad-screen .ro-hero h1 { font-size: clamp(62px, 8vw, 112px); }
.ad-screen .ro-hero-grid > div > p:last-child { max-width: 36em; font-size: 16px; }
.ad-screen .ro-hero figure { min-height: 350px; border-radius: 44% 56% 46% 54% / 52% 44% 56% 48%; }
.ad-screen .ro-hero figure::before { background: linear-gradient(110deg, rgba(17, 39, 29, .08), rgba(17, 39, 29, .32)); }
.ad-screen .ro-hero figcaption { background: rgba(43, 84, 69, .9); }

.ad-workbench { padding: 0 0 30px; }
.ad-command {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(420px, 1.22fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: 34px clamp(30px, 4.3vw, 58px);
  border: 1px solid var(--ad-border);
  border-radius: 34px;
  background: var(--ad-surface);
  box-shadow: var(--ad-shadow);
  backdrop-filter: blur(18px) saturate(125%);
}
.ad-command .rh-eyebrow { margin-bottom: 8px; color: var(--ad-platform); }
.ad-command h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(28px, 3vw, 40px); font-weight: 580; letter-spacing: -.04em; }
.ad-task-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ad-task-list button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(83, 118, 138, .18);
  border-radius: 13px;
  color: #476677;
  background: rgba(237, 243, 246, .74);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 340ms var(--rh-ease), box-shadow 340ms ease;
}
.ad-task-list button:hover,
.ad-task-list button:focus-visible { color: #fff; background: var(--ad-platform); box-shadow: 0 10px 22px rgba(83, 118, 138, .18); transform: translateY(-2px); }
.ad-journal-ranking > div > span {
  display: inline-grid;
  min-height: 30px;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(112, 104, 137, .16);
  border-radius: 10px;
  color: #615b73;
  background: rgba(255, 255, 255, .78);
}
.ad-journal-ranking > div small { font-size: 9px; opacity: .7; }
.ad-journal-ranking > div b { font-size: 10px; font-weight: 760; }
.ad-journal-ranking [data-rank-tone="top"] { color: #8b5d3f; border-color: rgba(177, 122, 83, .22); background: #fbf5ef; }
.ad-journal-ranking [data-rank-tone="strong"] { color: #3e6c5a; border-color: rgba(62, 108, 90, .2); background: #f1f7f3; }
.ad-journal-ranking [data-rank-tone="warning"] { color: #a14f49; border-color: rgba(161, 79, 73, .24); background: #fcf1f0; }
.ad-journal-ranking {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--ad-journal);
  border-radius: 0 13px 13px 0;
  background: linear-gradient(90deg, rgba(112, 104, 137, .085), rgba(112, 104, 137, .025));
}
.ad-journal-ranking > strong { display: inline-flex; align-items: center; gap: 6px; color: var(--ad-journal); font-size: 10px; letter-spacing: .05em; }
.ad-journal-ranking > strong img { width: 14px; height: 14px; opacity: .72; }
.ad-journal-ranking > div { display: flex; min-width: 0; flex: 1 1 360px; flex-wrap: wrap; gap: 6px; }
.ad-journal-ranking > em { margin-left: auto; color: var(--rh-muted); font-size: 9px; font-style: normal; white-space: nowrap; }
.ad-journal-ranking.is-compact { align-items: flex-start; margin-top: 10px; padding: 9px 10px; }
.ad-journal-ranking.is-compact > div { flex-basis: 100%; }
.ad-journal-ranking.is-compact > em { display: none; }
.ad-journal-ranking.is-status { align-items: center; min-height: 43px; }
.ad-journal-ranking.is-status > span { color: var(--rh-muted); font-size: 10px; }
.ad-search-wrap > p { margin: 12px 6px 0; color: var(--rh-muted); font-size: 11px; line-height: 1.6; }
.ad-search {
  display: grid;
  min-height: 68px;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(38, 64, 50, .15);
  border-radius: 22px;
  background: #f4f3ed;
  box-shadow: inset 0 1px rgba(255, 255, 255, .78);
  transition: border-color 220ms ease, box-shadow 280ms ease, background 220ms ease;
}
.ad-search:focus-within { border-color: rgba(83, 118, 138, .42); background: #fff; box-shadow: 0 0 0 5px rgba(83, 118, 138, .08), 0 12px 30px rgba(46, 65, 53, .07); }
.ad-search > img { width: 23px; height: 23px; opacity: .65; }
.ad-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--rh-ink); background: transparent; font: inherit; font-size: 14px; }
.ad-search input::placeholder { color: #8a948d; }
.ad-search button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 10px; color: var(--ad-platform); background: rgba(83, 118, 138, .1); font: inherit; font-size: 11px; cursor: pointer; }

.ad-type-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid var(--ad-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 54px rgba(45, 55, 47, .06);
}
.ad-type-tabs button {
  display: grid;
  min-height: 64px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 19px;
  color: var(--rh-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 220ms ease, background 260ms ease, border-color 260ms ease, transform 360ms var(--rh-ease), box-shadow 360ms ease;
}
.ad-type-tabs button img { width: 20px; height: 20px; opacity: .67; }
.ad-type-tabs button span { font-size: 13px; font-weight: 650; }
.ad-type-tabs button small { color: inherit; font-size: 10px; opacity: .72; }
.ad-type-tabs button:hover,
.ad-type-tabs button:focus-visible { color: var(--rh-ink); background: rgba(244, 243, 237, .86); transform: translateY(-2px); }
.ad-type-tabs button[aria-pressed="true"] { color: #fff; border-color: transparent; background: #4f7183; box-shadow: 0 12px 28px rgba(70, 104, 121, .21); }
.ad-type-tabs button[aria-pressed="true"] img { filter: brightness(0) invert(1); opacity: 1; }

.ad-catalog { padding: 44px 0 130px; }
.ad-catalog-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(34px, 5vw, 68px); align-items: start; }
.ad-subject-panel { position: sticky; top: calc(var(--site-header-height, 76px) + 76px); }
.ad-subject-head { margin-bottom: 18px; padding: 0 8px; }
.ad-subject-head > div > p { margin: 0 0 8px; color: var(--ad-society); font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.ad-subject-head h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 28px; font-weight: 580; letter-spacing: -.03em; }
.ad-subject-head > button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-top: 19px;
  padding: 0 14px;
  border: 1px solid rgba(112, 104, 137, .18);
  border-radius: 15px;
  color: var(--ad-journal);
  background: var(--ad-journal-soft);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ad-subject-head > button span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 9px; background: rgba(112, 104, 137, .13); font-size: 10px; }
.ad-subject-head > button[aria-pressed="true"] { color: #fff; background: var(--ad-journal); }
.ad-subject-list { display: grid; gap: 5px; padding: 9px; border: 1px solid var(--ad-border); border-radius: 23px; background: rgba(255, 255, 255, .65); }
.ad-subject-list button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  color: var(--rh-muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease, background 220ms ease, padding 330ms var(--rh-ease);
}
.ad-subject-list button small { font-size: 10px; opacity: .72; }
.ad-subject-list button:hover,
.ad-subject-list button:focus-visible { color: var(--rh-ink); background: rgba(83, 118, 138, .07); padding-left: 17px; }
.ad-subject-list button[aria-pressed="true"] { color: #fff; background: #526f61; }
.ad-source-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; margin-top: 14px; padding: 17px; border-radius: 19px; color: var(--rh-muted); background: rgba(237, 243, 239, .78); }
.ad-source-note > img { width: 22px; height: 22px; opacity: .7; }
.ad-source-note strong { display: block; color: var(--rh-ink); font-size: 11px; }
.ad-source-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.65; }

.ad-results-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.ad-results-head p { margin: 0 0 7px; color: var(--ad-platform); font-size: 10px; font-weight: 720; letter-spacing: .11em; }
.ad-results-head h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(32px, 3.5vw, 46px); font-weight: 580; letter-spacing: -.04em; }
.ad-results-head label { display: flex; align-items: center; gap: 10px; color: var(--rh-muted); font-size: 11px; }
.ad-results-head select { min-height: 42px; padding: 0 36px 0 13px; border: 1px solid var(--ad-border); border-radius: 13px; color: var(--rh-ink); background: #fff; font: inherit; font-size: 11px; cursor: pointer; }
.ad-smart-result { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(280px, 1.28fr); align-items: center; gap: 14px 24px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid rgba(83, 118, 138, .17); border-radius: 19px; background: var(--ad-platform-soft); }
.ad-smart-result[hidden] { display: none; }
.ad-smart-identity { display: flex; min-width: 0; align-items: center; gap: 13px; }
.ad-smart-identity > img { width: 23px; height: 23px; opacity: .72; }
.ad-smart-result span { display: grid; gap: 3px; }
.ad-smart-result small { color: var(--rh-muted); font-size: 9px; }
.ad-smart-result strong { font-size: 13px; overflow-wrap: anywhere; }
.ad-resolve-button,
.ad-access-routes a,
.ad-access-routes button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(83, 118, 138, .18); border-radius: 12px; color: #476677; background: rgba(255, 255, 255, .72); font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; transition: color 200ms ease, background 220ms ease, transform 300ms var(--rh-ease), box-shadow 300ms ease; }
.ad-resolve-button { justify-self: end; color: #fff; border-color: transparent; background: var(--ad-platform); }
.ad-resolve-button:disabled { cursor: wait; opacity: .72; }
.ad-resolve-button:hover:not(:disabled),
.ad-access-routes a:hover,
.ad-access-routes button:hover { color: #fff; border-color: transparent; background: var(--ad-platform); box-shadow: 0 9px 22px rgba(83, 118, 138, .17); transform: translateY(-2px); }
.ad-resolve-button img,
.ad-access-routes img { width: 14px; height: 14px; opacity: .78; }
.ad-resolve-button img { filter: brightness(0) invert(1); }
.ad-access-routes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ad-access-routes a[data-preferred="true"] { color: #fff; border-color: transparent; background: var(--ad-platform); }
.ad-access-routes a[data-preferred="true"] img { filter: brightness(0) invert(1); }
.ad-route-status { grid-column: 1 / -1; margin: 0; color: var(--rh-muted); font-size: 10px; line-height: 1.55; }

.ad-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ad-card {
  --ad-accent: var(--ad-platform);
  --ad-accent-soft: var(--ad-platform-soft);
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ad-accent) 20%, transparent);
  border-radius: 27px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 15px 42px rgba(42, 54, 46, .055);
  transition: transform 460ms var(--rh-ease), box-shadow 360ms ease, border-color 260ms ease;
}
.ad-card::before { position: absolute; inset: 0 0 auto; height: 5px; background: var(--ad-accent); content: ""; opacity: .82; }
.ad-card--journal { --ad-accent: var(--ad-journal); --ad-accent-soft: var(--ad-journal-soft); }
.ad-card--society { --ad-accent: var(--ad-society); --ad-accent-soft: var(--ad-society-soft); }
.ad-card--institution { --ad-accent: var(--ad-institution); --ad-accent-soft: var(--ad-institution-soft); }
.ad-card--platform { --ad-accent: var(--ad-platform); --ad-accent-soft: var(--ad-platform-soft); }
.ad-card:hover,
.ad-card:focus-within { border-color: color-mix(in srgb, var(--ad-accent) 45%, transparent); box-shadow: 0 26px 65px rgba(38, 52, 43, .11); transform: translateY(-6px); }
.ad-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ad-card-mark { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 11px; border-radius: 12px; color: var(--ad-accent); background: var(--ad-accent-soft); font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.ad-card-mark img { width: 15px; height: 15px; opacity: .75; }
.ad-save { min-height: 34px; padding: 0 10px; border: 0; border-radius: 12px; color: var(--rh-muted); background: transparent; font: inherit; font-size: 10px; cursor: pointer; }
.ad-save:hover,
.ad-save:focus-visible,
.ad-save[aria-pressed="true"] { color: var(--ad-accent); background: var(--ad-accent-soft); }
.ad-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--rh-muted); font-size: 9px; }
.ad-card-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.ad-card-meta b { margin-left: auto; color: var(--ad-accent); font-weight: 700; }
.ad-card-title { padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.ad-card-title h3 { margin: 13px 0 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(23px, 2.1vw, 31px); font-weight: 590; line-height: 1.28; letter-spacing: -.035em; }
.ad-card > p { display: -webkit-box; margin: 13px 0 0; overflow: hidden; color: var(--rh-muted); font-size: 12px; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ad-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ad-tag-list span { padding: 6px 9px; border-radius: 9px; color: var(--ad-accent); background: var(--ad-accent-soft); font-size: 9px; }
.ad-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ad-border); }
.ad-card footer > span { display: inline-flex; align-items: center; gap: 6px; color: var(--rh-muted); font-size: 9px; }
.ad-card footer > span img { width: 14px; height: 14px; opacity: .68; }
.ad-card footer > div { display: flex; align-items: center; gap: 6px; }
.ad-card footer a,
.ad-card-evaluate,
.ad-compare-check span { display: inline-flex; min-height: 33px; align-items: center; gap: 6px; padding: 0 10px; border-radius: 11px; color: var(--ad-accent); background: var(--ad-accent-soft); font-size: 9px; font-weight: 660; text-decoration: none; cursor: pointer; }
.ad-card-evaluate { border: 0; font: inherit; }
.ad-card footer a img { width: 13px; height: 13px; opacity: .75; }
.ad-compare-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ad-compare-check input:checked + span { color: #fff; background: var(--ad-accent); }

.ad-empty { padding: 76px 26px; border: 1px dashed var(--ad-border); border-radius: 27px; text-align: center; }
.ad-empty span { display: block; color: var(--ad-platform); font: 64px/1 Georgia, serif; opacity: .46; }
.ad-empty h3 { margin: 16px 0 7px; font-size: 22px; }
.ad-empty p { margin: 0; color: var(--rh-muted); font-size: 12px; }
.ad-empty button { min-height: 40px; margin-top: 22px; padding: 0 16px; border: 0; border-radius: 13px; color: #fff; background: var(--ad-platform); font: inherit; font-size: 11px; cursor: pointer; }

.ad-compare-tray { position: fixed; z-index: 82; right: 24px; bottom: 24px; display: flex; min-width: 335px; align-items: center; justify-content: space-between; gap: 28px; padding: 13px 15px 13px 13px; border: 1px solid rgba(255, 255, 255, .52); border-radius: 23px; color: #fff; background: rgba(50, 66, 58, .92); box-shadow: 0 24px 70px rgba(22, 35, 28, .25); backdrop-filter: blur(18px); }
.ad-compare-tray[hidden] { display: none; }
.ad-compare-tray > div { display: flex; align-items: center; gap: 10px; }
.ad-compare-tray > div:first-child > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; background: rgba(255,255,255,.13); font: 18px Georgia, serif; }
.ad-compare-tray p { display: grid; gap: 2px; margin: 0; }
.ad-compare-tray strong { font-size: 12px; }
.ad-compare-tray small { color: rgba(255,255,255,.65); font-size: 9px; }
.ad-compare-tray button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 12px; color: rgba(255,255,255,.78); background: transparent; font: inherit; font-size: 10px; cursor: pointer; }
.ad-compare-tray button:last-child { color: #33453b; background: #fff; }

.ad-dialog { width: min(calc(100% - 40px), 900px); max-height: min(86vh, 820px); padding: 0; overflow: auto; border: 0; border-radius: 34px; color: var(--rh-ink); background: #fbfbf8; box-shadow: 0 36px 120px rgba(14, 25, 19, .28); }
.ad-dialog::backdrop { background: rgba(18, 29, 23, .42); backdrop-filter: blur(8px); }
.ad-dialog-close { position: sticky; z-index: 2; top: 20px; display: grid; width: 44px; height: 44px; margin: 20px 20px -44px auto; place-items: center; border: 1px solid var(--ad-border); border-radius: 15px; background: rgba(255,255,255,.88); box-shadow: 0 10px 26px rgba(35, 48, 40, .1); cursor: pointer; }
.ad-dialog-close img { width: 18px; height: 18px; }
.ad-detail-dialog [data-ad-detail-content],
.ad-compare-dialog [data-ad-compare-content],
.ad-citation-dialog [data-ap-citation-content] { padding: clamp(46px, 7vw, 82px); }
.ad-dialog-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.ad-dialog-kicker p { margin: 0; color: var(--rh-muted); font-size: 11px; }
.ad-dialog h2 { max-width: 18ch; margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(38px, 6vw, 66px); font-weight: 580; line-height: 1.12; letter-spacing: -.05em; }
.ad-dialog-summary { max-width: 62ch; margin: 24px 0 34px; color: var(--rh-muted); font-size: 14px; line-height: 1.85; }
.ad-dialog dl { margin: 0; }
.ad-dialog dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 22px; padding: 15px 0; border-top: 1px solid var(--ad-border); }
.ad-dialog dt { color: var(--rh-muted); font-size: 10px; }
.ad-dialog dd { margin: 0; font-size: 12px; line-height: 1.7; }
.ad-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.ad-dialog-actions button,
.ad-dialog-actions a { display: inline-flex; min-height: 46px; align-items: center; gap: 9px; padding: 0 18px; border: 1px solid var(--ad-border); border-radius: 14px; color: var(--rh-ink); background: #fff; font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; }
.ad-dialog-actions a { color: #fff; background: #4f7183; }
.ad-dialog-actions img { width: 14px; height: 14px; filter: brightness(0) invert(1); }
.ad-compare-dialog { width: min(calc(100% - 40px), 1100px); }
.ad-compare-dialog h2 { max-width: none; }
.ad-compare-table { min-width: 680px; overflow: hidden; border: 1px solid var(--ad-border); border-radius: 20px; }
.ad-compare-row { display: grid; grid-template-columns: 130px repeat(var(--ad-cols), minmax(180px, 1fr)); }
.ad-compare-row + .ad-compare-row { border-top: 1px solid var(--ad-border); }
.ad-compare-row > * { margin: 0; padding: 15px; border-left: 1px solid var(--ad-border); font-size: 11px; line-height: 1.6; }
.ad-compare-row > *:first-child { border-left: 0; color: var(--rh-muted); background: #f4f3ed; font-size: 9px; }
.ad-compare-names span { display: grid; gap: 5px; font-weight: 650; }
.ad-compare-names b { color: var(--ad-journal); font-size: 10px; }
.ad-compare-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--ad-journal); text-decoration: none; }
.ad-compare-links img { width: 13px; height: 13px; }
.ad-compare-export { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 20px 22px; border-radius: 18px; background: #f1f2ed; }
.ad-compare-export p { max-width: 48ch; margin: 0; color: var(--rh-muted); font-size: 10px; line-height: 1.6; }
.ad-compare-export > div { display: flex; flex: 0 0 auto; gap: 8px; }
.ad-compare-export button,
.ad-citation-actions button { min-height: 42px; padding: 0 15px; border: 1px solid var(--ad-border); border-radius: 13px; color: var(--rh-ink); background: #fff; font: inherit; font-size: 10px; cursor: pointer; }
.ad-compare-export button:last-child,
.ad-citation-actions button:nth-last-child(-n + 3) { color: #fff; border-color: transparent; background: var(--ad-platform); }
.ad-citation-dialog { width: min(calc(100% - 40px), 930px); }
.ad-citation-dialog h2 { max-width: none; }
.ad-citation-record { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--ad-border); border-radius: 20px; background: #fff; }
.ad-citation-record span { color: var(--ad-journal); font-size: 9px; font-weight: 720; letter-spacing: .05em; }
.ad-citation-record strong { max-width: 38em; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(20px, 3vw, 30px); font-weight: 590; line-height: 1.4; }
.ad-citation-record small { color: var(--rh-muted); font-size: 10px; line-height: 1.6; }
.ad-citation-batch { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 2px 12px; padding: 20px 22px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #4f7183, #31566b); }
.ad-citation-batch strong { grid-row: span 2; font: clamp(44px, 6vw, 70px)/.86 Georgia, serif; }
.ad-citation-batch span { font-size: 14px; font-weight: 700; }
.ad-citation-batch small { color: rgba(255, 255, 255, .72); font-size: 9px; }
.ad-citation-preview { margin: 18px 0 0; border: 1px solid var(--ad-border); border-radius: 18px; color: #31453a; background: #f3f4ef; }
.ad-citation-preview summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 10px; font-weight: 690; cursor: pointer; list-style: none; }
.ad-citation-preview summary::-webkit-details-marker { display: none; }
.ad-citation-preview summary::after { content: "+"; font: 20px/1 Georgia, serif; transition: transform 240ms ease; }
.ad-citation-preview[open] summary::after { transform: rotate(45deg); }
.ad-citation-preview pre { max-height: 240px; margin: 0; padding: 18px; overflow: auto; border-top: 1px solid var(--ad-border); font: 10px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.ad-citation-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

/* Paper relationship graph: native canvas, no external client-side map or graph CDN. */
.ad-paper-graph-dialog {
  width: min(calc(100% - 28px), 1280px);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 30px;
  background: #f8f8f3;
}
.ad-paper-graph-dialog [data-ap-graph-content] { display: grid; width: 100%; height: min(820px, 88vh); min-height: 620px; grid-template-rows: auto auto minmax(0, 1fr); padding: 28px; }
.paper-graph-dialog-head { display: grid; grid-template-columns: minmax(260px, .76fr) minmax(320px, 1.24fr); align-items: end; gap: 28px; padding: 6px 58px 20px 4px; }
.paper-graph-dialog-head .rh-eyebrow { margin-bottom: 8px; color: #9a6747; }
.paper-graph-dialog-head h2 { max-width: none; font: 700 clamp(28px, 4vw, 46px)/1.08 inherit; letter-spacing: -.045em; }
.paper-graph-dialog-head > p { max-width: 58ch; margin: 0; color: var(--rh-muted); font-size: 13px; line-height: 1.65; }
.paper-graph-summary { display: flex; min-height: 44px; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 9px 13px; border: 1px solid #deded6; border-radius: 14px; color: var(--rh-muted); background: rgba(255,255,255,.74); font-size: 11px; }
.paper-graph-summary span { display: inline-flex; align-items: baseline; gap: 5px; }
.paper-graph-summary strong { color: var(--rh-ink); font-size: 15px; }
.paper-graph-summary button { margin-left: auto; padding: 6px 10px; border: 0; border-bottom: 1px solid currentColor; color: #8b6249; background: transparent; font: inherit; font-weight: 680; cursor: pointer; }
[data-paper-graph-host] { min-height: 0; }
.paper-relationship-visual { display: grid; height: 100%; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; padding-top: 10px; }
.paper-graph-toolbar { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 14px; }
.paper-graph-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; }
.paper-graph-legend span,
.paper-graph-legend button { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; padding: 0; border: 0; color: #66736d; background: transparent; font: 650 10px/1 inherit; }
.paper-graph-legend button { padding: 0 8px; border-radius: 9px; cursor: pointer; transition: opacity 180ms ease, background 180ms ease; }
.paper-graph-legend button:hover { background: rgba(95,130,147,.08); }
.paper-graph-legend button[aria-pressed="false"] { opacity: .38; text-decoration: line-through; }
.paper-graph-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--graph-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--graph-color) 15%, transparent); }
.paper-graph-stage { position: relative; min-height: 0; overflow: hidden; border: 1px solid #d9dad3; border-radius: 24px; background: #f7f7f2; box-shadow: inset 0 1px rgba(255,255,255,.8); }
.paper-graph-stage canvas { display: block; width: 100%; height: 100%; min-height: 0; outline: none; touch-action: none; cursor: grab; }
.paper-graph-stage canvas:active { cursor: grabbing; }
.paper-graph-stage canvas:focus-visible { box-shadow: inset 0 0 0 3px rgba(95,130,147,.28); }
.paper-graph-detail { position: absolute; right: 16px; bottom: 16px; z-index: 1; width: min(330px, calc(100% - 32px)); max-height: 42%; padding: 17px 18px; overflow: auto; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,252,.9); box-shadow: 0 18px 50px rgba(29,44,36,.15); backdrop-filter: blur(12px); }
.paper-graph-detail > p { display: flex; margin: 0; align-items: center; gap: 8px; color: var(--rh-muted); font-size: 10px; font-weight: 680; }
.paper-graph-detail > p span { width: 9px; height: 9px; border-radius: 50%; background: var(--graph-color); }
.paper-graph-detail h3 { max-width: none; margin: 10px 0 0; font: 680 16px/1.45 inherit; letter-spacing: -.015em; }
.paper-graph-detail small { display: block; margin-top: 7px; color: var(--rh-muted); font-size: 10px; line-height: 1.55; }
.paper-graph-detail code { display: block; margin-top: 7px; overflow: hidden; color: #6d756f; font: 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.paper-graph-journal-ranking { margin-top: 10px; }
.paper-graph-journal-ranking > span { color: var(--rh-muted); font-size: 9px; }
.paper-graph-journal-ranking .ad-journal-ranking { margin-top: 0; }
.paper-graph-detail ul { display: grid; gap: 4px; margin: 11px 0 0; padding: 10px 0 0 17px; border-top: 1px solid #e1e1db; color: #5f6d66; font-size: 10px; line-height: 1.5; }
.paper-graph-detail > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.paper-graph-detail a,
.paper-graph-detail button { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border: 1px solid #d8d9d2; border-radius: 10px; color: var(--rh-ink); background: #fff; font: 650 10px/1 inherit; text-decoration: none; cursor: pointer; }
.paper-graph-detail button { color: #fff; border-color: #a67857; background: #a67857; }
.paper-graph-note { margin: 0; color: #758079; font-size: 9px; line-height: 1.55; }
.paper-graph-status { display: grid; min-height: 420px; place-content: center; justify-items: center; gap: 12px; text-align: center; }
.paper-graph-status img { width: 36px; height: 36px; opacity: .55; }
.paper-graph-status strong { font-size: 21px; }
.paper-graph-status p { max-width: 42ch; margin: 0; color: var(--rh-muted); font-size: 12px; line-height: 1.7; }
.paper-graph-evidence-warning { margin: 18px 0 0; padding: 15px 18px; border-radius: 13px; color: #765d4c; background: #f4ece4; font-size: 11px; line-height: 1.7; }

/* Relationship explorer: graph owns the canvas; context and controls live in a compact side rail. */
.ad-paper-graph-dialog { width: min(1360px, calc(100vw - 42px)); max-width: none; }
.ad-paper-graph-dialog [data-ap-graph-content] {
  display: block;
  height: min(820px, 88vh);
  min-height: 580px;
  padding: 14px;
}
.paper-graph-layout {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 14px;
}
.paper-graph-layout > [data-paper-graph-host] { min-width: 0; min-height: 0; }
.paper-graph-layout .paper-relationship-visual { display: block; height: 100%; padding: 0; }
.paper-graph-layout .paper-graph-stage { height: 100%; border-radius: 20px; }
.paper-graph-label-layer { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.paper-graph-label-layer button {
  position: absolute;
  display: block;
  width: min(128px, 19vw);
  height: 25px;
  min-height: 25px;
  padding: 0 8px 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  color: #344139;
  background: rgba(255,255,252,.9);
  box-shadow: 0 3px 12px rgba(43,58,49,.07);
  font: 650 9px/25px inherit;
  text-align: left;
  cursor: grab;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
  transition: width .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}
.paper-graph-label-layer button:active { cursor: grabbing; }
.paper-graph-label-layer button::before { position: absolute; top: 9px; left: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--graph-color); content: ""; }
.paper-graph-label-layer button[data-side="right"] { transform: translateY(-50%); }
.paper-graph-label-layer button[data-side="left"] { padding: 0 18px 0 8px; text-align: right; transform: translate(-100%, -50%); }
.paper-graph-label-layer button[data-side="left"]::before { right: 7px; left: auto; }
.paper-graph-label-layer button span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paper-graph-label-layer button:hover,
.paper-graph-label-layer button[data-active="true"] { z-index: 3; width: min(205px, 29vw); color: #16271e; background: #fff; box-shadow: 0 9px 24px rgba(43,58,49,.16); }
.paper-graph-label-layer button[data-graph-node-role="root"] { width: min(205px, 29vw); font-size: 10px; font-weight: 750; }
.paper-graph-sidebar {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 13px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dddcd3;
  border-radius: 20px;
  background: rgba(255,255,252,.92);
  box-shadow: 0 16px 38px rgba(29,44,36,.08);
}
.paper-graph-sidebar .paper-graph-dialog-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 7px;
  padding: 0 34px 0 0;
}
.paper-graph-sidebar .paper-graph-dialog-head .rh-eyebrow { margin: 0 0 4px; font-size: 9px; }
.paper-graph-sidebar .paper-graph-dialog-head h2 { margin: 0; font: 720 27px/1.08 inherit; letter-spacing: -.035em; }
.paper-graph-sidebar .paper-graph-dialog-head > p { margin: 0; font-size: 10px; line-height: 1.5; }
.paper-graph-sidebar .paper-graph-summary {
  display: flex;
  min-height: 0;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  overflow: hidden;
  border-radius: 13px;
  font-size: 9px;
  white-space: nowrap;
}
.paper-graph-sidebar .paper-graph-summary span { display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: 3px; }
.paper-graph-sidebar .paper-graph-summary strong { font-size: 16px; }
.paper-graph-sidebar .paper-graph-summary small { font-size: 9px; }
.paper-graph-sidebar .paper-graph-summary .paper-graph-source { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.paper-graph-sidebar .paper-graph-summary button { margin-left: auto; }
.paper-graph-sidebar .paper-graph-toolbar { display: grid; min-height: 0; gap: 10px; }
.paper-graph-sidebar .paper-graph-legend { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
.paper-graph-sidebar .paper-graph-legend span,
.paper-graph-sidebar .paper-graph-legend button { justify-content: flex-start; min-height: 30px; font-size: 10px; }
.paper-graph-sidebar .paper-graph-legend button b { margin-left: auto; color: #87918b; font-size: 9px; font-weight: 650; }
.paper-graph-sidebar .paper-graph-detail {
  position: static;
  width: auto;
  max-height: none;
  min-height: 0;
  padding: 13px 2px;
  overflow: auto;
  border: 0;
  border-top: 1px solid #e0e0d9;
  border-bottom: 1px solid #e0e0d9;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.paper-graph-sidebar .paper-graph-detail h3 { font-size: 15px; }
.paper-graph-sidebar .paper-graph-note { font-size: 9px; line-height: 1.55; }
.ad-paper-graph-dialog > .ad-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.84);
  box-shadow: 0 5px 16px rgba(35,48,40,.08);
  opacity: .72;
  transition: opacity .18s ease, background .18s ease, transform .18s ease;
}
.ad-paper-graph-dialog > .ad-dialog-close:hover { background: #fff; opacity: 1; transform: rotate(6deg); }
.ad-paper-graph-dialog > .ad-dialog-close img { width: 14px; height: 14px; }
.academic-index-page .ad-paper-graph-dialog > .ad-dialog-close:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(83,107,92,.2); }
@media (max-width: 820px) {
  .ad-paper-graph-dialog { width: min(720px, calc(100vw - 24px)); }
  .ad-paper-graph-dialog [data-ap-graph-content] { height: min(860px, 92vh); min-height: 0; }
  .paper-graph-layout { grid-template-columns: 1fr; grid-template-rows: minmax(360px, 1fr) auto; }
  .paper-graph-sidebar { max-height: 330px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .paper-graph-sidebar .paper-graph-detail { grid-column: 2; grid-row: 1 / span 2; }
  .paper-graph-sidebar .paper-graph-note { grid-column: 1 / -1; }
}

/* Recent literature: a mainland-friendly, source-backed paper desk. */
.ad-literature { padding: 34px 0 76px; }
.ad-literature > .rh-shell {
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ad-literature-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ad-border);
}
.ad-literature-head .rh-eyebrow { margin-bottom: 10px; color: var(--ad-society); }
.ad-literature-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.ad-literature-head > div:first-child > p:last-child {
  max-width: 60em;
  margin: 18px 0 0;
  color: var(--rh-muted);
  font-size: 14px;
  line-height: 1.7;
}
.ad-literature-summary {
  display: grid;
  min-width: 320px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 12px;
  padding: 8px 0 8px 24px;
  border: 0;
  border-left: 1px solid var(--ad-border);
  border-radius: 0;
  background: transparent;
}
.ad-literature-summary strong { color: var(--ad-platform); font: 700 26px/1.1 inherit; }
.ad-literature-summary > span { grid-column: 1; color: var(--rh-muted); font-size: 12px; }
.ad-literature-summary button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: var(--ad-platform);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 320ms var(--rh-ease), box-shadow 280ms ease, background 220ms ease;
}
.ad-literature-summary button:hover,
.ad-literature-summary button:focus-visible { background: #45697d; box-shadow: 0 10px 24px rgba(83, 118, 138, .2); transform: translateY(-2px); }

.ad-literature-tools {
  display: grid;
  grid-template-columns: minmax(270px, 1.65fr) repeat(4, minmax(130px, .72fr));
  gap: 10px;
  margin-top: 24px;
}
.ad-literature-tools > label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--rh-muted);
  font-size: 12px;
}
.ad-literature-tools select,
.ad-literature-search {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--ad-border);
  border-radius: 4px;
  color: var(--rh-ink);
  background: rgba(244, 243, 237, .82);
  font: inherit;
  font-size: 14px;
}
.ad-literature-tools select { padding: 0 35px 0 13px; cursor: pointer; }
.ad-literature-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  align-self: end;
  transition: border-color 220ms ease, box-shadow 260ms ease, background 220ms ease;
}
.ad-literature-search:focus-within { border-color: rgba(83, 118, 138, .44); background: #fff; box-shadow: 0 0 0 5px rgba(83, 118, 138, .08); }
.ad-literature-search img { width: 19px; height: 19px; opacity: .62; }
.ad-literature-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--rh-ink); background: transparent; font: inherit; font-size: 14px; }
.ad-literature-search input::placeholder { color: #8d9790; }

.ad-search-memory {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(83, 118, 138, .14);
  border-radius: 4px;
  background: rgba(237, 243, 246, .48);
}
.ad-search-memory-lead {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.ad-search-memory-lead > img { width: 19px; height: 19px; opacity: .68; }
.ad-search-memory-lead > span { display: grid; min-width: 0; gap: 3px; }
.ad-search-memory-lead strong { font-size: 13px; font-weight: 720; white-space: nowrap; }
.ad-search-memory-lead small { color: var(--rh-muted); font-size: 11px; line-height: 1.35; white-space: nowrap; }
.ad-search-memory-lead small[data-state="new"] { color: #9a5b3e; font-weight: 680; }
.ad-search-presets {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.ad-search-presets::-webkit-scrollbar { display: none; }
.ad-search-preset {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(83, 118, 138, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
}
.ad-search-preset > button {
  min-height: 36px;
  border: 0;
  color: var(--rh-ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.ad-search-preset > button:first-child {
  display: inline-flex;
  max-width: 260px;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 12px;
}
.ad-search-preset > button:first-child span { overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ad-search-preset > button:first-child small { color: var(--ad-platform); font-size: 8px; }
.ad-search-preset > button:last-child { display: grid; width: 32px; place-items: center; border-left: 1px solid rgba(83, 118, 138, .12); }
.ad-search-preset > button:last-child img { width: 12px; height: 12px; opacity: .55; }
.ad-search-preset > button:hover,
.ad-search-preset > button:focus-visible { color: var(--ad-platform); background: rgba(83, 118, 138, .08); }
.ad-search-preset-empty { color: var(--rh-muted); font-size: 9px; line-height: 1.45; }
.ad-search-save {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(83, 118, 138, .2);
  border-radius: 3px;
  color: var(--ad-platform);
  background: rgba(255, 255, 255, .82);
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms ease, background 220ms ease, transform 280ms var(--rh-ease), box-shadow 280ms ease;
}
.ad-search-save:hover,
.ad-search-save:focus-visible { color: #fff; background: var(--ad-platform); box-shadow: 0 9px 20px rgba(83, 118, 138, .16); transform: translateY(-1px); }
.ad-search-save:disabled { cursor: not-allowed; opacity: .48; }

.ad-paper-source-state { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.ad-paper-source-state:empty { display: none; }
.ad-paper-source-state > strong,
.ad-paper-source-state > em { display: inline-flex; min-height: 30px; align-items: center; color: var(--rh-muted); font-size: 9px; font-style: normal; }
.ad-paper-source-state > strong { margin-right: 2px; color: var(--rh-text); font-weight: 720; letter-spacing: .08em; }
.ad-paper-source-state > em { flex: 1 1 240px; justify-content: flex-end; opacity: .78; }
.ad-paper-source-state > span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-right: 1px solid var(--ad-border);
  border-radius: 0;
  color: var(--rh-muted);
  background: transparent;
  font-size: 11px;
}
.ad-paper-source-state i { width: 7px; height: 7px; border-radius: 50%; background: #6c8f79; box-shadow: 0 0 0 4px rgba(88, 119, 102, .1); }
.ad-paper-source-state span[data-state="limited"] i,
.ad-paper-source-state span[data-state="partial"] i,
.ad-paper-source-state span[data-state="error"] i { background: #b6815b; box-shadow: 0 0 0 4px rgba(182, 129, 91, .1); }
.ad-paper-source-state small { color: inherit; font-size: inherit; opacity: .72; }
.ad-paper-status {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 3px;
  color: #6f604d;
  background: #f6efe6;
  font-size: 13px;
  line-height: 1.6;
}
.ad-paper-status[data-state="loading"] { color: #4f7183; background: var(--ad-platform-soft); }

.ad-paper-grid { display: block; margin-top: 24px; border-top: 2px solid var(--rh-ink); }
.ad-paper-record {
  --paper-accent: var(--ad-platform);
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 42px);
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--ad-border);
  background: transparent;
}
.ad-paper-record-meta { display: grid; align-content: start; gap: 18px; }
.ad-paper-record-meta time { display: grid; gap: 6px; color: var(--rh-ink); }
.ad-paper-record-meta time small { color: var(--rh-muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.ad-paper-record-meta time strong { font-size: 15px; font-weight: 720; letter-spacing: .01em; }
.ad-paper-badges { display: grid; min-width: 0; gap: 8px; }
.ad-paper-badges span,
.ad-paper-topics span {
  padding: 0 0 0 9px;
  border-left: 2px solid currentColor;
  border-radius: 0;
  color: var(--paper-accent);
  background: transparent;
  font-size: 11px;
  line-height: 1.45;
}
.ad-paper-badges span[data-access="direct"] { color: #3f6f59; }
.ad-paper-badges span[data-access="request"] { color: #8b633d; }
.ad-paper-badges span[data-access="abstract"] { color: #68736d; }
.ad-paper-badges span[data-access="record"] { color: #6c7771; }
.ad-paper-badges span[data-publication-type="preprint"] { color: #8b5b42; }
.ad-paper-badges span[data-publication-type="article"] { color: #4d6c7d; }
.ad-paper-record-body { min-width: 0; }
.ad-paper-record-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.ad-paper-save {
  min-height: 30px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--rh-muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ad-paper-save:hover,
.ad-paper-save:focus-visible,
.ad-paper-save[aria-pressed="true"] { color: var(--paper-accent); border-bottom-color: currentColor; background: transparent; }
.ad-paper-journal { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; }
.ad-paper-journal strong { color: var(--paper-accent); font-size: 13px; letter-spacing: .025em; }
.ad-paper-journal span { color: var(--rh-muted); font-size: 12px; }
.ad-paper-record h3 { margin: 10px 0 0; font-family: inherit; font-size: clamp(18px, 1.6vw, 22px); font-weight: 680; line-height: 1.48; letter-spacing: -.018em; }
.ad-paper-record h3 a { color: inherit; text-decoration: none; }
.ad-paper-record h3 a:hover,
.ad-paper-record h3 a:focus-visible { color: var(--paper-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ad-paper-original-title { display: flex; margin: 8px 0 0; align-items: baseline; gap: 8px; color: var(--rh-muted); font-size: 12px; line-height: 1.65; }
.ad-paper-original-title span { flex: 0 0 auto; color: var(--paper-accent); font-size: 9px; font-weight: 720; letter-spacing: .1em; }
.ad-paper-authors { margin: 10px 0 0; color: var(--rh-muted); font-size: 13px; line-height: 1.65; }
.ad-paper-abstract-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--ad-border) 70%, transparent); }
.ad-paper-abstract-block > span { color: var(--paper-accent); font-size: 10px; font-weight: 720; letter-spacing: .08em; }
.ad-paper-abstract { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: var(--rh-muted); font-size: 14px; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ad-paper-abstract-block details { margin-top: 7px; color: var(--rh-muted); font-size: 12px; }
.ad-paper-abstract-block summary { width: max-content; cursor: pointer; color: var(--paper-accent); font-size: 11px; font-weight: 650; }
.ad-paper-abstract-block details p { margin: 10px 0 0; color: var(--rh-text); font-size: 14px; line-height: 1.8; }
.ad-paper-abstract-block details[open] + * { display: none; }
.ad-paper-translation { margin-top: 14px; padding: 15px 17px; border-left: 3px solid var(--paper-accent); background: color-mix(in srgb, var(--ad-platform-soft) 65%, transparent); }
.ad-paper-translation header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 7px 16px; }
.ad-paper-translation header strong { color: var(--paper-accent); font-size: 12px; letter-spacing: .04em; }
.ad-paper-translation header span { color: var(--rh-muted); font-size: 10px; }
.ad-paper-translation h4 { margin: 10px 0 0; color: var(--rh-ink); font-size: 16px; line-height: 1.55; }
.ad-paper-translation p { margin: 9px 0 0; color: var(--rh-text); font-size: 14px; line-height: 1.8; }
.ad-paper-record-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 17px; }
.ad-paper-topics { display: flex; flex: 1 1 210px; flex-wrap: wrap; gap: 6px 12px; }
.ad-paper-topics span { padding-left: 7px; font-size: 11px; }
.ad-paper-doi { display: flex; min-width: 0; align-items: center; gap: 7px; }
.ad-paper-doi > span { color: var(--rh-muted); font-size: 10px; letter-spacing: .1em; }
.ad-paper-record code { max-width: 30ch; overflow-wrap: anywhere; color: var(--rh-ink); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ad-paper-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ad-paper-actions button,
.ad-paper-actions a,
.ad-paper-routes a,
.ad-paper-routes button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--paper-accent, var(--ad-platform)) 22%, transparent);
  border-radius: 3px;
  color: var(--paper-accent, var(--ad-platform));
  background: color-mix(in srgb, var(--paper-accent, var(--ad-platform)) 7%, #fff);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.ad-paper-actions button:hover,
.ad-paper-actions a:hover,
.ad-paper-routes a:hover,
.ad-paper-routes button:hover,
.ad-paper-routes a[data-preferred="true"] { color: #fff; border-color: transparent; background: var(--paper-accent, var(--ad-platform)); }
.ad-paper-actions img,
.ad-paper-routes img { width: 13px; height: 13px; opacity: .75; }
.ad-paper-actions a:hover img,
.ad-paper-routes a:hover img,
.ad-paper-routes a[data-preferred="true"] img { filter: brightness(0) invert(1); opacity: 1; }
.ad-paper-routes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding: 13px 0 0; border-top: 1px dashed var(--ad-border); border-radius: 0; background: transparent; }
.ad-paper-routes.is-loading { align-items: center; color: var(--rh-muted); font-size: 12px; }

.ad-paper-record.is-skeleton { min-height: 178px; pointer-events: none; }
.ad-paper-record.is-skeleton span { display: block; height: 12px; border-radius: 2px; background: linear-gradient(90deg, #ecece7 20%, #f8f8f5 50%, #ecece7 80%); background-size: 220% 100%; animation: ad-paper-shimmer 1.4s linear infinite; }
.ad-paper-record.is-skeleton > span { width: 72%; }
.ad-paper-record.is-skeleton > div { display: grid; align-content: start; gap: 16px; }
.ad-paper-record.is-skeleton > div > span:nth-child(1) { width: 36%; }
.ad-paper-record.is-skeleton > div > span:nth-child(2) { width: 90%; height: 25px; }
.ad-paper-record.is-skeleton > div > span:nth-child(3) { width: 68%; }
@keyframes ad-paper-shimmer { to { background-position: -220% 0; } }

.ad-paper-empty { margin-top: 24px; padding: 64px 24px; border: 1px dashed var(--ad-border); border-radius: 27px; text-align: center; }
.ad-paper-empty img { width: 28px; height: 28px; opacity: .54; }
.ad-paper-empty h3 { margin: 14px 0 7px; font-size: 21px; }
.ad-paper-empty p { margin: 0; color: var(--rh-muted); font-size: 11px; }
.ad-paper-empty button,
.ad-paper-footer button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 13px; color: #fff; background: var(--ad-platform); font: inherit; font-size: 10px; cursor: pointer; }
.ad-paper-empty button { margin-top: 20px; }
.ad-paper-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.ad-paper-footer p { margin: 0; color: var(--rh-muted); font-size: 10px; line-height: 1.6; }
.ad-paper-footer-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.ad-paper-footer-actions [data-ap-export] { color: var(--ad-platform); border: 1px solid color-mix(in srgb, var(--ad-platform) 25%, transparent); background: #fff; }
.ad-paper-footer-actions [data-ap-export]:hover,
.ad-paper-footer-actions [data-ap-export]:focus-visible { color: #fff; background: var(--ad-platform); }
.ad-paper-footer button:disabled { cursor: wait; opacity: .68; }

html[data-theme="dark"] .ad-screen { --ad-surface: rgba(24, 34, 28, .84); --ad-border: rgba(226, 237, 229, .12); --ad-journal-soft: #272432; --ad-society-soft: #33291f; --ad-institution-soft: #202e26; --ad-platform-soft: #202d33; }
html[data-theme="dark"] .ad-command,
html[data-theme="dark"] .ad-type-tabs,
html[data-theme="dark"] .ad-subject-list,
html[data-theme="dark"] .ad-card,
html[data-theme="dark"] .ad-paper-record { background: transparent; }
html[data-theme="dark"] .ad-literature > .rh-shell { background: transparent; }
html[data-theme="dark"] .ad-search,
html[data-theme="dark"] .ad-results-head select,
html[data-theme="dark"] .ad-dialog,
html[data-theme="dark"] .ad-dialog-actions button,
html[data-theme="dark"] .ad-citation-record,
html[data-theme="dark"] .ad-citation-preview,
html[data-theme="dark"] .ad-compare-export,
html[data-theme="dark"] .ad-compare-export button,
html[data-theme="dark"] .ad-citation-actions button,
html[data-theme="dark"] .ad-literature-tools select,
html[data-theme="dark"] .ad-literature-search { color: var(--rh-ink); background: #18211b; }
html[data-theme="dark"] .ad-search-memory { border-color: rgba(206, 224, 213, .12); background: rgba(37, 51, 43, .7); }
html[data-theme="dark"] .ad-search-preset,
html[data-theme="dark"] .ad-search-save { color: var(--rh-ink); border-color: rgba(206, 224, 213, .13); background: rgba(24, 33, 27, .86); }
html[data-theme="dark"] .ad-journal-ranking > div > span { color: var(--rh-ink); border-color: rgba(206, 224, 213, .13); background: rgba(20, 27, 23, .78); }
html[data-theme="dark"] .ad-journal-ranking { background: linear-gradient(90deg, rgba(112, 104, 137, .18), transparent); }
html[data-theme="dark"] .ad-dialog-actions a { color: #fff; background: #53768a; }

@media (max-width: 1100px) {
  .ad-screen .ro-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap: 42px; }
  .ad-command { grid-template-columns: 1fr; gap: 26px; }
  .ad-type-tabs { grid-template-columns: repeat(5, minmax(145px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .ad-type-tabs::-webkit-scrollbar { display: none; }
  .ad-catalog-grid { grid-template-columns: 224px minmax(0, 1fr); gap: 30px; }
  .ad-card-grid { grid-template-columns: 1fr; }
  .ad-literature-tools { grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(150px, 1fr)); }
  .ad-paper-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .ad-screen .ro-hero { padding-block: 38px 44px; }
  .ad-screen .ro-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 30px; }
  .ad-screen .ro-hero h1 { font-size: clamp(56px, 16vw, 86px); }
  .ad-screen .ro-hero figure { min-height: 280px; }
  .ad-command { padding: 27px 24px; border-radius: 28px; }
  .ad-catalog { padding-top: 24px; }
  .ad-catalog-grid { grid-template-columns: 1fr; }
  .ad-subject-panel { position: static; }
  .ad-subject-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
  .ad-subject-head > button { width: auto; min-width: 132px; margin: 0; }
  .ad-subject-list { display: flex; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .ad-subject-list::-webkit-scrollbar { display: none; }
  .ad-subject-list button { min-width: max-content; flex: 0 0 auto; }
  .ad-source-note { display: none; }
  .ad-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-card { min-height: 345px; padding: 21px; }
  .ad-card footer { align-items: flex-start; flex-direction: column; }
  .ad-literature { padding-top: 18px; }
  .ad-literature-head { grid-template-columns: 1fr; align-items: stretch; }
  .ad-literature-summary { min-width: 0; }
  .ad-literature-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-literature-search { grid-column: 1 / -1; }
  .ad-search-memory { grid-template-columns: minmax(0, 1fr) auto; }
  .ad-search-presets { grid-row: 2; grid-column: 1 / -1; }
  .ad-paper-record { grid-template-columns: 108px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 620px) {
  .resource-hub-page .rh-shell,
  .rh-loading { width: min(calc(100% - 28px), var(--rh-max)); }
  .ad-screen .ro-hero figure { min-height: 220px; border-radius: 28px; }
  .ad-command { padding: 24px 18px; }
  .ad-command h2 { font-size: 30px; }
  .ad-task-list { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ad-task-list::-webkit-scrollbar { display: none; }
  .ad-task-list button { flex: 0 0 auto; }
  .ad-journal-ranking { display: grid; align-items: start; overflow: hidden; }
  .ad-journal-ranking > div { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: auto; }
  .ad-journal-ranking > div > span { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .ad-journal-ranking > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ad-journal-ranking > em { margin-left: 0; }
  .ad-search { min-height: 58px; grid-template-columns: 21px minmax(0, 1fr) auto; padding-inline: 16px 11px; border-radius: 18px; }
  .ad-search input { font-size: 12px; }
  .ad-type-tabs { margin-top: 12px; border-radius: 22px; }
  .ad-type-tabs button { min-height: 58px; padding-inline: 13px; border-radius: 15px; }
  .ad-catalog { padding-bottom: 90px; }
  .ad-subject-head { align-items: start; }
  .ad-subject-head h2 { font-size: 25px; }
  .ad-results-head { align-items: start; flex-direction: column; gap: 16px; }
  .ad-results-head h2 { font-size: 34px; }
  .ad-smart-result { grid-template-columns: 1fr; align-items: stretch; }
  .ad-resolve-button { width: 100%; justify-self: stretch; }
  .ad-access-routes { justify-content: stretch; }
  .ad-access-routes a,
  .ad-access-routes button { flex: 1 1 calc(50% - 8px); }
  .ad-card-grid { grid-template-columns: 1fr; }
  .ad-card { min-height: 310px; border-radius: 23px; }
  .ad-card-title h3 { font-size: 27px; }
  .ad-compare-tray { right: 14px; bottom: 14px; left: 14px; min-width: 0; }
  .ad-dialog { width: calc(100% - 20px); max-height: 90vh; border-radius: 26px; }
  .ad-detail-dialog [data-ad-detail-content],
  .ad-compare-dialog [data-ad-compare-content],
  .ad-citation-dialog [data-ap-citation-content] { padding: 58px 24px 34px; }
  .ad-dialog h2 { font-size: 40px; }
  .ad-dialog dl > div { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .ad-compare-dialog [data-ad-compare-content] { overflow-x: auto; }
  .ad-compare-export { align-items: stretch; flex-direction: column; }
  .ad-compare-export > div { display: grid; grid-template-columns: 1fr 1fr; }
  .ad-citation-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-citation-actions button { width: 100%; }
  .ad-literature { padding-bottom: 56px; }
  .ad-literature > .rh-shell { padding: 12px 0 0; border-radius: 0; }
  .ad-literature-head { gap: 22px; padding-bottom: 22px; }
  .ad-literature-head h2 { font-size: 41px; }
  .ad-literature-tools { grid-template-columns: 1fr; }
  .ad-literature-search { grid-column: auto; min-height: 58px; }
  .ad-literature-tools select { min-height: 48px; }
  .ad-search-memory { grid-template-columns: 1fr; gap: 10px; padding: 13px; }
  .ad-search-memory-lead { align-items: flex-start; }
  .ad-search-memory-lead small { white-space: normal; }
  .ad-search-presets { grid-row: auto; grid-column: auto; width: 100%; }
  .ad-search-save { width: 100%; }
  .ad-paper-record { grid-template-columns: 1fr; gap: 17px; padding: 24px 0 26px; }
  .ad-paper-record-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
  .ad-paper-record-meta time { flex: 0 0 auto; }
  .ad-paper-badges { display: flex; justify-content: flex-end; }
  .ad-paper-record h3 { font-size: 19px; }
  .ad-paper-record-footer { align-items: flex-start; flex-direction: column; }
  .ad-paper-record code { max-width: 100%; }
  .ad-paper-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-paper-actions { width: 100%; }
  .ad-paper-actions > * { width: 100%; }
  .ad-paper-actions a { grid-column: 1 / -1; }
  .ad-paper-routes > * { flex: 1 1 calc(50% - 7px); }
  .ad-paper-footer { align-items: stretch; flex-direction: column; }
  .ad-paper-footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-paper-footer button { width: 100%; }
}

/* Shared research workspace for methods, data and library pages. */
.ro-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.ro-item-actions > a,
.ro-item-actions > button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid color-mix(in srgb, var(--rh-green) 18%, transparent);
  border-radius: 14px;
  color: var(--rh-green-deep);
  background: color-mix(in srgb, var(--rh-paper-strong) 82%, transparent);
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: color 200ms ease, background 240ms ease, border-color 240ms ease, transform 320ms var(--rh-ease), box-shadow 320ms ease;
}
.ro-item-actions > a { color: #fff; border-color: transparent; background: var(--rh-green-deep); }
.ro-item-actions > a img { width: 13px; height: 13px; filter: brightness(0) invert(1); }
.ro-item-actions > button:hover,
.ro-item-actions > button:focus-visible,
.ro-item-actions > button[aria-pressed="true"] { color: #fff; border-color: transparent; background: #607a6a; box-shadow: 0 10px 24px rgba(34, 67, 47, .14); transform: translateY(-2px); }
.ro-item-actions > a:hover,
.ro-item-actions > a:focus-visible { box-shadow: 0 12px 26px rgba(34, 67, 47, .18); transform: translateY(-2px); }
.ro-item-actions--inverse > a,
.ro-item-actions--inverse > button { color: #fff; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.ro-item-actions--inverse > a { background: rgba(255,255,255,.92); color: #214d36; }
.ro-item-actions--inverse > a img { filter: none; opacity: .75; }
.ro-item-actions--inverse > button:hover,
.ro-item-actions--inverse > button:focus-visible,
.ro-item-actions--inverse > button[aria-pressed="true"] { color: #214d36; background: #fff; }
.ro-library-chapter .ro-item-actions a,
.ro-method-panel .ro-item-actions a { margin-top: 0; }

.ro-workspace { position: relative; z-index: 7; margin-top: -84px; padding: 0 0 88px; }
.ro-workspace-dock {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--rh-green) 14%, transparent);
  border-radius: 30px;
  background: color-mix(in srgb, var(--rh-paper-strong) 88%, transparent);
  box-shadow: 0 24px 70px rgba(36, 61, 46, .09);
  backdrop-filter: blur(18px) saturate(118%);
}
.ro-workspace-lead { display: flex; min-width: 0; align-items: center; gap: 14px; }
.ro-workspace-lead > img { width: 22px; height: 22px; opacity: .68; }
.ro-workspace-lead > span { display: grid; min-width: 0; grid-template-columns: auto 1fr; align-items: baseline; gap: 3px 12px; }
.ro-workspace-lead small { grid-column: 1 / -1; color: var(--rh-rust); font-size: 8px; font-weight: 760; letter-spacing: .16em; }
.ro-workspace-lead strong { color: var(--rh-ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 21px; font-weight: 590; }
.ro-workspace-lead em { overflow: hidden; color: var(--rh-muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ro-workspace-actions { display: flex; align-items: center; gap: 7px; }
.ro-workspace-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--rh-green) 14%, transparent);
  border-radius: 14px;
  color: var(--rh-muted);
  background: color-mix(in srgb, var(--rh-paper) 72%, transparent);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
  transition: color 200ms ease, background 240ms ease, box-shadow 300ms ease, transform 320ms var(--rh-ease);
}
.ro-workspace-actions button b { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 8px; color: var(--rh-green-deep); background: rgba(75, 112, 90, .1); font-size: 9px; }
.ro-workspace-actions button:hover,
.ro-workspace-actions button:focus-visible { color: #fff; background: var(--rh-green-deep); box-shadow: 0 11px 27px rgba(33, 73, 49, .16); transform: translateY(-2px); }
.ro-workspace-actions button:hover b,
.ro-workspace-actions button:focus-visible b { color: #fff; background: rgba(255,255,255,.15); }

.ro-workspace-dialog {
  width: min(calc(100% - 36px), 980px);
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 34px;
  color: var(--rh-ink);
  background: #fbfbf7;
  box-shadow: 0 38px 120px rgba(16, 29, 21, .3);
}
.ro-workspace-dialog::backdrop { background: rgba(18, 29, 23, .46); backdrop-filter: blur(8px); }
.ro-workspace-dialog > [data-ro-workspace-content] { padding: clamp(42px, 6vw, 72px); }
.ro-workspace-close {
  position: sticky;
  z-index: 3;
  top: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 18px 18px -62px auto;
  place-items: center;
  border: 1px solid rgba(40, 66, 51, .12);
  border-radius: 15px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 9px 24px rgba(29, 45, 36, .1);
  cursor: pointer;
}
.ro-workspace-close img { width: 18px; height: 18px; }
.ro-workspace-dialog header { padding-right: 52px; }
.ro-workspace-dialog header > p { margin: 0 0 8px; color: var(--rh-rust); font-size: 9px; font-weight: 760; letter-spacing: .16em; }
.ro-workspace-dialog header h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(36px, 5vw, 56px); font-weight: 590; letter-spacing: -.05em; }
.ro-workspace-dialog header span { display: block; max-width: 58ch; margin-top: 13px; color: var(--rh-muted); font-size: 11px; line-height: 1.7; }
.ro-workspace-list { display: grid; gap: 10px; margin-top: 28px; }
.ro-workspace-list > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(39, 64, 49, .1);
  border-radius: 19px;
  background: #fff;
}
.ro-workspace-list small,
.ro-workspace-compare small { color: var(--rh-rust); font-size: 8px; font-weight: 730; letter-spacing: .1em; }
.ro-workspace-list h3,
.ro-workspace-compare h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.45; }
.ro-workspace-list p { margin: 0; color: var(--rh-muted); font-size: 9px; }
.ro-workspace-list > article > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.ro-workspace-list a,
.ro-workspace-list button,
.ro-workspace-compare a,
.ro-workspace-dialog footer button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(41, 68, 51, .12);
  border-radius: 12px;
  color: var(--rh-green-deep);
  background: #f3f4ef;
  font: inherit;
  font-size: 9px;
  text-decoration: none;
  cursor: pointer;
}
.ro-workspace-list a img,
.ro-workspace-compare a img { width: 12px; height: 12px; opacity: .7; }
.ro-workspace-empty { padding: 54px 24px; border: 1px dashed rgba(41, 68, 51, .15); border-radius: 22px; text-align: center; }
.ro-workspace-empty img { width: 28px; height: 28px; opacity: .5; }
.ro-workspace-empty h3 { margin: 13px 0 6px; font-size: 18px; }
.ro-workspace-empty p { margin: 0; color: var(--rh-muted); font-size: 10px; }
.ro-workspace-compare { display: grid; grid-template-columns: repeat(var(--ro-compare-columns), minmax(210px, 1fr)); gap: 10px; margin-top: 28px; overflow-x: auto; padding-bottom: 4px; }
.ro-workspace-compare article { display: flex; min-height: 330px; flex-direction: column; padding: 20px; border: 1px solid rgba(40, 65, 50, .1); border-radius: 20px; background: #fff; }
.ro-workspace-compare dl { margin: 18px 0; }
.ro-workspace-compare dl > div { padding: 10px 0; border-top: 1px solid rgba(40, 65, 50, .09); }
.ro-workspace-compare dt { color: var(--rh-muted); font-size: 8px; }
.ro-workspace-compare dd { margin: 5px 0 0; font-size: 10px; line-height: 1.6; }
.ro-workspace-compare a { width: fit-content; margin-top: auto; }
.ro-workspace-dialog footer { display: flex; justify-content: flex-end; margin-top: 18px; }

html[data-theme="dark"] .ro-workspace-dock,
html[data-theme="dark"] .ro-workspace-dialog { color: var(--rh-ink); background: rgba(24, 34, 28, .96); }
html[data-theme="dark"] .ro-workspace-actions button,
html[data-theme="dark"] .ro-workspace-list > article,
html[data-theme="dark"] .ro-workspace-compare article,
html[data-theme="dark"] .ro-item-actions > button { color: var(--rh-ink); background: rgba(255,255,255,.06); }

@media (max-width: 980px) {
  .ro-workspace-dock { grid-template-columns: 1fr; }
  .ro-workspace-actions { overflow-x: auto; scrollbar-width: none; }
  .ro-workspace-actions::-webkit-scrollbar { display: none; }
  .ro-workspace-actions button { flex: 0 0 auto; }
}

@media (max-width: 700px) {
  .ro-workspace { margin-top: -44px; padding-bottom: 60px; }
  .ro-workspace-dock { gap: 18px; padding: 18px; border-radius: 24px; }
  .ro-workspace-lead > span { grid-template-columns: 1fr; }
  .ro-workspace-lead em { white-space: normal; line-height: 1.55; }
  .ro-workspace-actions { margin-inline: -4px; padding: 4px; }
  .ro-workspace-dialog { width: calc(100% - 18px); max-height: 91vh; border-radius: 26px; }
  .ro-workspace-dialog > [data-ro-workspace-content] { padding: 60px 20px 28px; }
  .ro-workspace-dialog header { padding-right: 0; }
  .ro-workspace-list > article { grid-template-columns: 1fr; align-items: start; gap: 14px; padding: 16px; }
  .ro-workspace-list > article > div:last-child { justify-content: flex-start; }
  .ro-workspace-compare { grid-template-columns: repeat(var(--ro-compare-columns), minmax(230px, 78vw)); }
  .ro-item-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ro-item-actions > a { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-paper-record.is-skeleton span { animation: none; }
  .ad-paper-record,
  .ad-literature-summary button,
  .ro-item-actions > *,
  .ro-workspace-actions button { transition: none; }
}

/* Final cascade: compact resource-suite layout. Kept last so legacy page variants cannot reopen the oversized hero. */
.ro-hero { padding: 38px 0 24px; }
.ro-hero-grid {
  min-height: 258px;
  grid-template-columns: minmax(0, .88fr) minmax(390px, 1.12fr);
  gap: clamp(38px, 5.4vw, 78px);
}
.ro-hero h1 { font-size: clamp(54px, 6vw, 76px); line-height: 1; }
.ro-hero-grid > div > p:last-child { margin-top: 18px; font-size: 14px; line-height: 1.72; }
.ro-hero figure { height: 246px; }
.ro-command { min-height: 66px; margin-top: 12px; padding: 8px 12px; }
.ro-search input { height: 46px; }
.ro-workspace { margin-top: 12px; padding: 0 0 18px; }
.ro-workspace-dock { min-height: 66px; padding: 12px 14px 12px 18px; border-radius: 23px; }
.ro-workspace-lead strong { font-size: 18px; }
.ro-workspace-actions button { min-height: 40px; }
.ad-screen .ro-hero { padding-block: 34px 24px; }
.ad-screen .ro-hero-grid {
  min-height: 270px;
  grid-template-columns: minmax(0, .82fr) minmax(430px, 1.18fr);
  gap: clamp(42px, 6vw, 78px);
}
.ad-screen .ro-hero h1 { font-size: clamp(62px, 7vw, 86px); }
.ad-screen .ro-hero figure { min-height: 264px; height: 264px; }
.ad-workbench { padding: 12px 0 18px; }
.ad-command {
  grid-template-columns: minmax(260px, .72fr) minmax(410px, 1.28fr);
  gap: clamp(24px, 4vw, 52px);
  padding: 22px clamp(24px, 3.5vw, 42px);
  border-radius: 27px;
}
.ad-task-list { margin-top: 14px; }
.ad-search { min-height: 58px; }
.ad-type-tabs { margin-top: 12px; padding: 7px; border-radius: 22px; }
.ad-type-tabs button { min-height: 50px; border-radius: 15px; }
.ad-literature { padding-top: 16px; }
.ad-literature > .rh-shell { border-radius: 0; }

/* Let the first real resource peek into the initial viewport instead of
   leaving an empty band below the shared research workspace. */
.ro-method,
.ro-data,
.ro-library { padding-top: 12px; }

@media (max-width: 980px) {
  .ro-hero-grid,
  .ad-screen .ro-hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .ad-screen .ro-hero h1 { font-size: clamp(54px, 8vw, 74px); }
  .ad-command { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 700px) {
  .ro-hero,
  .ad-screen .ro-hero { padding: 24px 0 18px; }
  .ro-hero-grid,
  .ad-screen .ro-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 22px; }
  .ro-hero h1,
  .ad-screen .ro-hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .ro-hero-grid > div > p:last-child { margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .ro-hero figure,
  .ad-screen .ro-hero figure { min-height: 200px; height: 200px; border-radius: 30px; }
  .ro-command { margin-top: 9px; }
  .ro-workspace { margin-top: 9px; padding-bottom: 16px; }
  .ro-workspace-dock { gap: 14px; padding: 15px; }
  .ro-workspace-lead em { display: none; }
  .ad-workbench { padding-top: 9px; }
  .ad-command { padding: 20px 17px; }
  .ad-paper-graph-dialog { width: calc(100% - 12px); max-height: 96vh; border-radius: 24px; }
  .ad-paper-graph-dialog [data-ap-graph-content] { height: 92vh; min-height: 0; padding: 18px 12px 12px; }
  .paper-graph-dialog-head { grid-template-columns: 1fr; gap: 8px; padding: 8px 48px 13px 3px; }
  .paper-graph-dialog-head h2 { font-size: 30px; }
  .paper-graph-dialog-head > p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .paper-graph-summary { gap: 6px 12px; }
  .paper-graph-summary span:last-of-type { display: none; }
  .paper-graph-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .paper-graph-legend { max-width: none; overflow: hidden; flex-wrap: nowrap; }
  .paper-graph-legend span:nth-child(n+4) { display: none; }
  .paper-graph-stage,
  .paper-graph-stage canvas { min-height: 0; }
  .paper-graph-detail { right: 10px; bottom: 10px; width: calc(100% - 20px); max-height: 35%; padding: 14px; }
}

/* Academic discovery: one workspace, five mutually exclusive modes. */
[data-ad-mode-panel][hidden] { display: none !important; }
.ad-mode-copy {
  max-width: 42em;
  margin: 10px 0 0;
  color: var(--rh-muted);
  font-size: 12px;
  line-height: 1.72;
}
.ad-mode-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
  padding: 7px;
  border: 1px solid var(--ad-border);
  border-radius: 23px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 16px 44px rgba(45, 55, 47, .06);
  backdrop-filter: blur(18px) saturate(120%);
}
.ad-mode-tabs button {
  display: grid;
  min-height: 54px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: var(--rh-muted);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 220ms ease, border-color 220ms ease, transform 300ms var(--rh-ease), box-shadow 300ms ease;
}
.ad-mode-tabs button img { width: 18px; height: 18px; opacity: .64; }
.ad-mode-tabs button span { min-width: 0; font-size: 12px; font-weight: 680; white-space: nowrap; }
.ad-mode-tabs button small { font-size: 10px; opacity: .7; }
.ad-mode-tabs button:hover,
.ad-mode-tabs button:focus-visible { color: var(--rh-ink); background: rgba(244, 243, 237, .86); transform: translateY(-1px); }
.ad-mode-tabs button[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #58798a, #476b7e);
  box-shadow: 0 11px 25px rgba(70, 104, 121, .19);
}
.ad-mode-tabs button[aria-pressed="true"] img { filter: brightness(0) invert(1); opacity: 1; }
.ad-literature-tools.is-filter-only { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-literature-tools.is-filter-only > label { min-width: 0; }
.ad-catalog[data-ad-mode-panel="resources"] { padding-top: 28px; }
html[data-theme="dark"] .ad-mode-tabs { background: rgba(23, 30, 26, .74); }
html[data-theme="dark"] .ad-mode-tabs button:hover,
html[data-theme="dark"] .ad-mode-tabs button:focus-visible { background: rgba(255, 255, 255, .07); }

@media (max-width: 1100px) {
  .ad-mode-tabs { grid-template-columns: repeat(5, minmax(142px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .ad-mode-tabs::-webkit-scrollbar { display: none; }
  .ad-literature-tools.is-filter-only { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ad-mode-copy { font-size: 11px; }
  .ad-mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 9px;
    border-radius: 20px;
    overflow: visible;
  }
  .ad-mode-tabs button { min-height: 52px; padding-inline: 12px; border-radius: 14px; }
  .ad-mode-tabs button:last-child { grid-column: 1 / -1; }
  .ad-literature-tools.is-filter-only { grid-template-columns: 1fr 1fr; }
  .ad-catalog[data-ad-mode-panel="resources"] { padding-top: 18px; }
}
