:root {
  --hhe-bg: #0e1114;
  --hhe-panel: #171c20;
  --hhe-panel-2: #20272c;
  --hhe-text: #f4f1e8;
  --hhe-muted: #b8b7ae;
  --hhe-line: #3b454d;
  --hhe-accent: #f0c84b;
  --hhe-accent-2: #8bd3c7;
  --hhe-danger: #f2a97f;
  --hhe-header: rgba(14, 17, 20, 0.96);
  --hhe-hero-start: #20272c;
  --hhe-hero-end: #111518;
  --hhe-review: #2b201c;
  --hhe-field: #0e1114;
}

html[data-theme="light"] {
  --hhe-bg: #f4f1e8;
  --hhe-panel: #fffdf6;
  --hhe-panel-2: #ece7d9;
  --hhe-text: #1c241f;
  --hhe-muted: #58625d;
  --hhe-line: #b7b0a0;
  --hhe-accent: #745600;
  --hhe-accent-2: #0f645b;
  --hhe-danger: #8e3e21;
  --hhe-header: rgba(244, 241, 232, 0.96);
  --hhe-hero-start: #fffdf6;
  --hhe-hero-end: #e8e3d6;
  --hhe-review: #fff1e9;
  --hhe-field: #fffdf8;
}

.hh-encyclopedia-page,
.hh-encyclopedia-hub {
  margin: 0;
  background: var(--hhe-bg);
  color: var(--hhe-text);
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.75;
  color-scheme: dark;
}

html[data-theme="light"] .hh-encyclopedia-page,
html[data-theme="light"] .hh-encyclopedia-hub {
  color-scheme: light;
}

.hh-encyclopedia-page a,
.hh-encyclopedia-hub a,
.hh-encyclopedia-entry-point a {
  color: inherit;
}

.hh-encyclopedia-header {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(12rem, 1fr) auto auto auto;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--hhe-line);
  background: var(--hhe-header);
}

.hh-encyclopedia-header > a {
  display: grid;
  min-height: 2.75rem;
  align-content: center;
  text-decoration: none;
  line-height: 1.15;
}

.hh-encyclopedia-header > a span {
  color: var(--hhe-accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.hh-encyclopedia-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.hh-encyclopedia-header nav a {
  display: inline-grid;
  min-height: 2.75rem;
  align-items: center;
}

.hh-encyclopedia-header > .hh-theme-toggle,
.hh-encyclopedia-header > .hh-search-open {
  width: auto;
  min-width: 2.75rem;
  margin: 0;
}

.hh-encyclopedia-header a:focus-visible,
.hh-encyclopedia-header button:focus-visible {
  outline: 3px solid var(--hhe-accent);
  outline-offset: 3px;
}

.hh-encyclopedia-header nav a,
.hh-encyclopedia-breadcrumb a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.hh-encyclopedia-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
  color: var(--hhe-muted);
  font-size: 0.86rem;
}

.hh-encyclopedia-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.hh-encyclopedia-main > article {
  width: min(900px, 100%);
  margin: 0 auto;
}

.hh-encyclopedia-hero,
.hh-encyclopedia-hub-hero {
  padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3.6rem);
  border: 1px solid var(--hhe-line);
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--hhe-hero-start), var(--hhe-hero-end) 68%);
}

.hh-encyclopedia-hero > p:first-child,
.hh-encyclopedia-hub-hero > p:first-child {
  margin: 0 0 0.7rem;
  color: var(--hhe-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hh-encyclopedia-hero h1,
.hh-encyclopedia-hub-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hh-encyclopedia-hero h1 + p,
.hh-encyclopedia-hub-hero h1 + p {
  max-width: 56rem;
  margin: 1.2rem 0 0;
  color: var(--hhe-muted);
}

.hh-editorial-visual {
  box-sizing: border-box;
  margin: 1.3rem auto 0;
  overflow: hidden;
  border: 1px solid var(--hhe-line);
  border-radius: 0.9rem;
  background: var(--hhe-panel);
}

.hh-editorial-visual img {
  box-sizing: border-box;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 26rem;
  margin-inline: auto;
  object-fit: contain;
}

.hh-editorial-visual--portrait {
  width: min(30rem, 100%);
}

.hh-editorial-visual--portrait img {
  padding: clamp(0.8rem, 3vw, 1.5rem);
  background: linear-gradient(145deg, var(--hhe-panel-2), var(--hhe-panel));
}

.hh-editorial-visual--landscape {
  width: min(56rem, 100%);
}

.hh-editorial-visual--gallery {
  width: min(56rem, 100%);
}

.hh-editorial-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.hh-editorial-visual-card {
  overflow: hidden;
  border: 1px solid var(--hhe-line);
  border-radius: 0.45rem;
  background: var(--hhe-panel-2);
}

.hh-editorial-visual-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: none;
  padding: 0;
  background: #fff;
  object-fit: contain;
}

.hh-editorial-visual-card p {
  margin: 0;
  padding: 0.55rem 0.65rem;
  color: var(--hhe-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.hh-editorial-visual figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--hhe-line);
  color: var(--hhe-muted);
  text-align: center;
  font-size: 0.86rem;
}

.hh-encyclopedia-section,
.hh-encyclopedia-review,
.hh-encyclopedia-related,
.hh-encyclopedia-controls,
.hh-encyclopedia-group {
  margin-top: 1.3rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--hhe-line);
  border-radius: 0.8rem;
  background: var(--hhe-panel);
}

.hh-encyclopedia-section h2,
.hh-encyclopedia-review h2,
.hh-encyclopedia-related h2,
.hh-encyclopedia-controls h2,
.hh-encyclopedia-group h2 {
  margin-top: 0;
  line-height: 1.35;
}

.hh-encyclopedia-review {
  border-color: var(--hhe-danger);
  background: var(--hhe-review);
}

.hh-encyclopedia-meta {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
}

.hh-encyclopedia-meta caption {
  margin-bottom: 0.7rem;
  text-align: left;
  color: var(--hhe-muted);
}

.hh-encyclopedia-meta th,
.hh-encyclopedia-meta td {
  padding: 0.8rem;
  border-top: 1px solid var(--hhe-line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.hh-encyclopedia-meta th {
  width: 12rem;
  color: var(--hhe-accent-2);
}

.hh-encyclopedia-sources {
  padding-left: 1.3rem;
  overflow-wrap: anywhere;
}

.hh-encyclopedia-sources li {
  margin-block: 0.65rem;
}

.hh-encyclopedia-sources small {
  display: block;
  color: var(--hhe-muted);
}

.hh-reference-facets {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hhe-line);
}

.hh-reference-facets h3 {
  margin-bottom: 0.4rem;
}

.hh-reference-facets ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hh-reference-facets li {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--hhe-line);
  border-radius: 999px;
  background: var(--hhe-panel-2);
  font-size: 0.84rem;
}

.hh-reference-facets li strong,
.hh-nen-type-links strong {
  color: var(--hhe-accent-2);
}

.hh-nen-type-links a {
  text-underline-offset: 0.22em;
}

.hh-encyclopedia-related > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
}

.hh-encyclopedia-related > div a,
.hh-encyclopedia-back {
  display: grid;
  padding: 1rem;
  border: 1px solid var(--hhe-line);
  border-radius: 0.6rem;
  background: var(--hhe-panel-2);
  text-decoration: none;
}

.hh-encyclopedia-related small {
  color: var(--hhe-accent-2);
}

.hh-encyclopedia-back {
  margin-top: 0.8rem;
  text-align: center;
}

.hh-encyclopedia-controls > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  min-width: 0;
}

.hh-encyclopedia-controls label:first-child {
  grid-column: span 2;
}

.hh-encyclopedia-controls label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--hhe-muted);
  font-size: 0.86rem;
}

.hh-encyclopedia-controls input,
.hh-encyclopedia-controls select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--hhe-line);
  border-radius: 0.5rem;
  background: var(--hhe-field);
  color: var(--hhe-text);
  font: inherit;
}

.hh-encyclopedia-groups {
  display: grid;
  gap: 1rem;
}

.hh-encyclopedia-group header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0 1rem;
}

.hh-encyclopedia-group header p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--hhe-accent-2);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.hh-encyclopedia-group header h2,
.hh-encyclopedia-group header span {
  margin-bottom: 0;
}

.hh-encyclopedia-group ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hh-encyclopedia-group li a {
  display: grid;
  gap: 0.3rem;
  min-height: 100%;
  padding: 0.9rem;
  border: 1px solid var(--hhe-line);
  border-radius: 0.55rem;
  background: var(--hhe-panel-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.hh-encyclopedia-group li a:hover,
.hh-encyclopedia-group li a:focus-visible,
.hh-encyclopedia-related a:hover,
.hh-encyclopedia-related a:focus-visible {
  border-color: var(--hhe-accent);
}

.hh-encyclopedia-group li span {
  color: var(--hhe-muted);
  font-size: 0.8rem;
}

.hh-review-badge {
  color: var(--hhe-danger);
}

.hh-encyclopedia-footer {
  padding: 2rem max(1rem, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--hhe-line);
  color: var(--hhe-muted);
}

.hh-encyclopedia-entry-point {
  margin: 2rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid currentColor;
  border-radius: 0.8rem;
}

.hh-encyclopedia-entry-point h2 {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .hh-encyclopedia-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.7rem;
  }

  .hh-encyclopedia-header > a,
  .hh-encyclopedia-header nav {
    grid-column: 1 / -1;
  }

  .hh-encyclopedia-header > a {
    grid-row: 1;
  }

  .hh-encyclopedia-header nav {
    display: grid;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: 0.5rem;
  }

  .hh-encyclopedia-header nav a {
    min-width: 0;
    padding: 0.35rem 0.25rem;
    justify-items: center;
    text-align: center;
    font-size: clamp(0.78rem, 4vw, 0.92rem);
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .hh-encyclopedia-header > .hh-theme-toggle {
    grid-column: 1;
    grid-row: 3;
  }

  .hh-encyclopedia-header > .hh-search-open {
    grid-column: 2;
    grid-row: 3;
  }

  .hh-encyclopedia-header > .hh-theme-toggle,
  .hh-encyclopedia-header > .hh-search-open {
    width: 100%;
    min-width: 0;
  }

  .hh-encyclopedia-header .hh-theme-toggle__label,
  .hh-encyclopedia-header .hh-search-open__label {
    display: inline;
  }

  .hh-encyclopedia-controls > div {
    grid-template-columns: 1fr;
  }

  .hh-encyclopedia-controls label:first-child {
    grid-column: auto;
  }

  .hh-encyclopedia-meta th,
  .hh-encyclopedia-meta td {
    display: block;
    width: auto;
  }

  .hh-encyclopedia-meta td {
    padding-top: 0;
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* The shared badge is styled for the migrated pages' side column (right-aligned
   with a rule on its left).  In this single-column article it reads as a stray
   line, so it is restated as an inline pair beside the category chips. */
.hh-editorial-article .hh-edition {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: baseline;
  padding: 0.6rem 0 0;
  border-left: 0;
  text-align: left;
}
.hh-editorial-article .hh-edition strong {
  font-size: 0.82rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--hhe-line);
  border-radius: 999px;
}
.hh-editorial-article .hh-edition span {
  font-size: 0.82rem;
  color: var(--hhe-muted);
}
.hh-editorial-article .hh-editorial-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Editorial encyclopedia entries use a single-column reading flow.  The
   shared theme's sticky TOC is intended for its three-column article grid;
   here it would cover the following sections while the reader scrolls. */
.hh-encyclopedia-page .hh-editorial-article > .hh-toc {
  position: static;
  top: auto;
  z-index: auto;
  max-height: none;
  overflow: visible;
  background: var(--hhe-panel);
}

/* Comparison tables and fact lists inside article sections. */
.hh-table-wrap{overflow-x:auto;margin:1rem 0}
.hh-encyclopedia-table{border-collapse:collapse;width:100%;font-size:.9rem}
.hh-encyclopedia-table caption{text-align:left;font-size:.82rem;color:var(--hhe-muted);padding-bottom:.4rem}
.hh-encyclopedia-table th,.hh-encyclopedia-table td{border:1px solid var(--hhe-line);padding:.45rem .6rem;text-align:left;vertical-align:top}
.hh-encyclopedia-table thead th{background:var(--hhe-panel-2);white-space:nowrap}
.hh-encyclopedia-table tbody th{background:var(--hhe-panel);white-space:nowrap;font-weight:600}
.hh-encyclopedia-list{margin:.8rem 0;padding-left:1.3rem}
.hh-encyclopedia-list li{margin:.35rem 0;line-height:1.75}
.hh-list-heading{margin:1rem 0 .2rem;font-weight:600}
.hh-encyclopedia-subsection{margin:1.2rem 0 0}
.hh-encyclopedia-subsection h3{font-size:1.02rem;margin:0 0 .4rem}

/* 2026-08-07 article reader: persistent navigation in dedicated rails. */

.hh-encyclopedia-page .hh-encyclopedia-header,
.hh-encyclopedia-hub .hh-encyclopedia-header {
  position: sticky;
  z-index: 50;
  top: 0;
}

.hh-encyclopedia-page .hh-encyclopedia-main {
  width: min(1280px, calc(100% - 2rem));
  padding-top: .5rem;
}

.hh-encyclopedia-page .hh-encyclopedia-main > article {
  width: 100%;
  max-width: none;
}

.hh-reader-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(10.5rem, 13rem) minmax(0, 46rem) minmax(13rem, 16rem);
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.hh-reader-core,
.hh-reader-toc-rail,
.hh-reader-related-rail {
  min-width: 0;
}

.hh-reader-core {
  grid-column: 2;
}

.hh-reader-toc-rail {
  grid-column: 1;
  grid-row: 1;
}

.hh-reader-related-rail {
  grid-column: 3;
  grid-row: 1;
}

.hh-reader-toc-rail > .hh-toc,
.hh-reader-related-rail > .hh-encyclopedia-related {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100dvh - 6.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.hh-reader-toc-rail > .hh-toc {
  padding: 1rem;
  background: var(--hhe-panel);
}

.hh-reader-toc-rail .hh-toc h2 {
  margin-bottom: .55rem;
  font-size: 1rem;
}

.hh-reader-toc-rail .hh-toc a {
  min-height: 2.2rem;
  padding-block: .35rem;
  font-size: .72rem;
}

.hh-reader-core > .hh-encyclopedia-hero {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: .8rem;
}

.hh-reader-core > .hh-encyclopedia-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hh-reader-core > .hh-encyclopedia-hero h1 + p {
  margin-top: .75rem;
  font-size: .9rem;
  line-height: 1.7;
}

.hh-reader-core .hh-editorial-article > :is(.hh-editorial-heading, .hh-page-tools, .hh-editorial-lead) {
  margin-inline: 0;
}

.hh-reader-core .hh-editorial-heading {
  margin-top: .8rem;
  padding: .8rem 1rem;
  border: 1px solid var(--hhe-line);
  border-radius: .7rem;
  background: var(--hhe-panel);
}

.hh-editorial-article .hh-edition {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .9rem;
  padding: .5rem 0 0;
  border-left: 0;
  text-align: left;
}

.hh-editorial-article .hh-edition strong {
  padding: .15rem .55rem;
  border: 1px solid var(--hhe-line);
  border-radius: 999px;
  font-size: .78rem;
}

.hh-editorial-article .hh-edition span {
  color: var(--hhe-muted);
  font-size: .78rem;
}

.hh-editorial-article .hh-editorial-heading {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.hh-reader-core .hh-page-tools {
  margin-block: .65rem;
}

.hh-reader-core .hh-editorial-lead {
  margin: .8rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--hhe-accent);
  background: var(--hhe-panel);
}

.hh-reader-core .hh-editorial-lead p:last-child {
  margin-bottom: 0;
}

.hh-reader-core .hh-editorial-visual {
  margin-top: .9rem;
}

.hh-reader-core .hh-editorial-visual img {
  max-height: 620px;
}

.hh-reader-core .hh-encyclopedia-section,
.hh-reader-core .hh-encyclopedia-review {
  margin-top: .9rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.hh-reader-core .hh-encyclopedia-section h2 {
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--hhe-line);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.hh-reader-core .hh-encyclopedia-section p {
  margin-block: .75rem;
  line-height: 1.9;
}

.hh-reader-related-rail > .hh-encyclopedia-related {
  margin: 0;
  padding: .9rem;
  border-radius: .7rem;
}

.hh-reader-related-rail .hh-encyclopedia-related h2 {
  margin-bottom: .55rem;
  font-size: 1rem;
}

.hh-reader-related-rail .hh-encyclopedia-related > div {
  grid-template-columns: 1fr;
  gap: .45rem;
}

.hh-reader-related-rail .hh-encyclopedia-related > div a {
  padding: .65rem .7rem;
  border-radius: .45rem;
}

.hh-reader-related-rail .hh-encyclopedia-related strong {
  font-size: .78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hh-reader-related-rail .hh-encyclopedia-related small {
  font-size: .66rem;
}

.hh-reader-related-rail .hh-encyclopedia-back {
  padding: .65rem;
  font-size: .72rem;
}

.hh-reader-mobile-toc {
  display: none;
}

@media (max-width: 67.5rem) {
  .hh-reader-layout {
    grid-template-columns: minmax(10rem, 12rem) minmax(0, 46rem);
  }

  .hh-reader-related-rail {
    grid-column: 2;
    grid-row: auto;
  }

  .hh-reader-related-rail > .hh-encyclopedia-related {
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: .9rem;
  }

  .hh-reader-related-rail .hh-encyclopedia-related > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  .hh-encyclopedia-page .hh-encyclopedia-main {
    width: min(100% - 1rem, 46rem);
  }

  .hh-reader-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hh-reader-core,
  .hh-reader-related-rail {
    grid-column: 1;
  }

  .hh-reader-toc-rail {
    display: none;
  }

  .hh-reader-mobile-toc {
    display: block;
    margin-top: .7rem;
    border: 1px solid var(--hhe-line);
    border-radius: .65rem;
    background: var(--hhe-panel);
  }

  .hh-reader-mobile-toc > summary {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .8rem;
    font-weight: 700;
    list-style: none;
  }

  .hh-reader-mobile-toc > summary::-webkit-details-marker {
    display: none;
  }

  .hh-reader-mobile-toc > summary::after {
    color: var(--hhe-accent);
    content: "+";
  }

  .hh-reader-mobile-toc[open] > summary::after {
    content: "−";
  }

  .hh-reader-mobile-toc nav {
    padding: 0 .8rem .8rem;
    border-top: 1px solid var(--hhe-line);
  }

  .hh-reader-mobile-toc ol {
    margin: .6rem 0 0;
    padding-left: 1.3rem;
  }

  .hh-reader-mobile-toc li {
    margin: .3rem 0;
  }

  .hh-reader-mobile-toc a {
    color: var(--hhe-muted);
    font-size: .78rem;
  }

  .hh-reader-core > .hh-encyclopedia-hero {
    padding: 1.1rem;
  }

  .hh-reader-core > .hh-encyclopedia-hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .hh-reader-core .hh-page-tools {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .hh-reader-core .hh-page-tools :is(a, button) {
    flex: 0 0 auto;
  }

  .hh-reader-related-rail .hh-encyclopedia-related > div {
    grid-template-columns: 1fr;
  }
}
