/* UMass handbook: book navigation rail + article + "On this page" rail.
   Builds on the post chrome (post-layout.css, toc.css) and main.css tokens;
   only the book-specific pieces live here. */

.wrap.hb-wrap {
  max-width: var(--frame-width);
}

/* <main> grows to push the footer to the screen's bottom edge (main.css);
   pass that height down so the grid — and the rail's cell with it — fills
   the space, letting the rail run all the way to the footer. */
.hb-page .page-content {
  display: flex;
  flex-direction: column;
}

.hb-page .page-content > .hb-wrap {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hb {
  flex: 1 0 auto;
  --hb-rail: 256px;
  display: grid;
  grid-template-columns: var(--hb-rail) minmax(0, 1fr) auto;
  gap: var(--space-10);
  align-items: start;
  padding-top: var(--space-2);
}

.hb-main {
  min-width: 0;
}

.hb .post {
  padding-bottom: 0;
}

.hb .post-navigation {
  margin-top: var(--space-12);
}

.hb .post {
  max-width: var(--measure-wide);
  margin-inline: 0;
}

/* Right column: "On this page" + share + newsletter card, sticky together.
   The TOC's own sticky/scroll box is flattened so the column moves as one. */
.hb-aside {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 240px;
  max-height: calc(100vh - var(--header-height) - var(--space-12));
  overflow-y: auto;
  scrollbar-width: none;
}

.hb .table-of-contents {
  position: static;
  width: auto;
  max-height: none;
  overflow: visible;
  margin: 0;
}

.hb-newsletter-inline {
  display: none;
  margin-top: var(--space-10);
}

.hb .post-toc-sidebar {
  padding-top: var(--space-2);
}

.hb .post-content :is(h2, h3, h4) {
  scroll-margin-top: calc(var(--header-height) + var(--space-6));
}

.hb .post-content > h2:first-child {
  margin-top: 0;
}

.hb .post-content :target {
  animation: hb-target 1.6s var(--ease);
}

@keyframes hb-target {
  0%, 30% { background-color: var(--highlight-strong); }
  100% { background-color: transparent; }
}

/* --- Book rail ---------------------------------------------------------- */

/* The rail is a sticky panel capped at the viewport height: brand and
   search stay put and the chapter list scrolls in its own area. Its grid
   cell is size-contained and stretched to the article, so the rail is never
   taller than the page and a short page grows no blank gap.
   z-index: sticky makes the rail its own stacking context, and the search
   panel inside it has to paint over the article. */
.hb-rail {
  align-self: stretch;
  contain: size;
  z-index: 30;
}

.hb-sidebar {
  position: sticky;
  z-index: 30;
  top: calc(var(--header-height) + var(--space-2));
  max-height: min(calc(100vh - var(--header-height) - var(--space-12)), 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-2);
  min-width: 0;
}

.hb-sidebar > .hb-brand,
.hb-sidebar > .hb-search,
.hb-sidebar > .hb-sidebar-foot {
  flex: 0 0 auto;
}

/* Scroll area: thin scrollbar that only shows on hover, plus edge fades
   (toggled by assets/js/handbook.js) when there is more to scroll. */
.hb-nav {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 calc(-1 * var(--space-2)) 0 0;
  padding: var(--space-1) var(--space-2) var(--space-2) 0;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
  transition: scrollbar-color var(--duration) var(--ease);
}

.hb-nav:hover,
.hb-nav:focus-within {
  scrollbar-color: var(--line-strong) transparent;
}

.hb-nav::-webkit-scrollbar {
  width: 6px;
}

.hb-nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: var(--radius-full);
}

.hb-nav:hover::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.hb-nav[data-fade~="top"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px);
  mask-image: linear-gradient(to bottom, transparent, #000 28px);
}

.hb-nav[data-fade~="bottom"] {
  -webkit-mask-image: linear-gradient(to top, transparent, #000 28px);
  mask-image: linear-gradient(to top, transparent, #000 28px);
}

.hb-nav[data-fade~="top"][data-fade~="bottom"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.hb-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 22%, rgba(206, 94, 56, 0.16) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 64%, rgba(74, 84, 214, 0.2) 0 3px, transparent 4px),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 14px 14px,
    var(--surface);
  transition: border-color var(--duration) var(--ease);
}

.hb-brand:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.hb-overline {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0;
}

.hb-brand-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.hb-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-nav-group + .hb-nav-group {
  margin-top: var(--space-2);
}

/* Chapter header: a pure toggle (native <details>), never a link. */
.hb-nav-summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px var(--space-2) 7px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color var(--duration-fast) var(--ease);
}

.hb-nav-summary::-webkit-details-marker {
  display: none;
}

.hb-nav-summary:hover {
  background: var(--surface-hover);
}

.hb-nav-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.hb-nav-num {
  flex: 0 0 auto;
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  color: var(--ink-subtle);
}

.hb-nav-label {
  flex: 1 1 auto;
  min-width: 0;
}

.hb-nav-count {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 0 6px;
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
  color: var(--ink-subtle);
  background: var(--surface-sunken);
  border-radius: var(--radius-full);
}

details[open] > .hb-nav-summary .hb-nav-count {
  display: none;
}

.hb-nav-chevron {
  flex: 0 0 auto;
  color: var(--ink-subtle);
  transform: rotate(-90deg);
  transition: transform var(--duration) var(--ease);
}

details[open] > .hb-nav-summary .hb-nav-chevron {
  transform: none;
}

.hb-nav-articles {
  margin: 2px 0 var(--space-2) calc(var(--space-3) + 6px) !important;
  border-left: 1px solid var(--line);
}

.hb-nav-link {
  display: block;
  margin-left: -1px;
  padding: 5px var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 1px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease);
}

/* main.css colours visited links; in a book rail that reads as "selected". */
.hb-brand:visited {
  color: var(--ink);
}

.hb-nav-link:visited {
  color: var(--ink-muted);
}

.hb-nav-link:hover {
  color: var(--ink);
  border-left-color: var(--line-strong);
  text-decoration: none;
}

.hb-nav-link[aria-current="page"] {
  color: var(--accent);
  font-weight: var(--weight-medium);
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.hb-sidebar-foot {
  margin: 0;
  padding: var(--space-3) var(--space-3) 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--ink-subtle);
  line-height: var(--leading-normal);
}

.hb-sidebar-foot a {
  color: var(--ink-muted);
}

/* --- Search ------------------------------------------------------------- */

.hb-search {
  position: relative;
}

.hb-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.hb-search-icon {
  position: absolute;
  left: var(--space-3);
  color: var(--ink-subtle);
  pointer-events: none;
}

.hb-search-input {
  width: 100%;
  height: 38px;
  padding: 0 var(--space-10) 0 calc(var(--space-3) + 22px);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--surface-sunken);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.hb-search-input::-webkit-search-cancel-button {
  display: none;
}

.hb-search-input:hover {
  border-color: var(--line);
}

.hb-search-input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hb-search-kbd {
  position: absolute;
  right: var(--space-2);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: var(--weight-medium) var(--text-2xs) / 1 var(--font-mono);
  color: var(--ink-subtle);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  pointer-events: none;
}

.hb-search-input:focus + .hb-search-kbd {
  opacity: 0;
}

.hb-search-results {
  position: fixed;
  z-index: 1100;
  width: 480px;
  max-height: 560px;
  overflow-y: auto;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hb-search-results[hidden] {
  display: none;
}

.hb-search-status {
  margin: 0;
  padding: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-subtle);
}

.hb-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--ink);
  text-decoration: none;
}

.hb-result:hover,
.hb-result[aria-selected="true"] {
  background: var(--surface-hover);
  text-decoration: none;
}

.hb-result-path {
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.hb-result-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent);
}

.hb-result-section {
  color: var(--ink);
  font-weight: var(--weight-medium);
}

.hb-result-snippet {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-result mark {
  background: var(--highlight-strong);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.hb-search-hint {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-1) 0 0;
  padding: var(--space-2) var(--space-3) var(--space-1);
  border-top: 1px solid var(--line);
  font-size: var(--text-2xs);
  color: var(--ink-subtle);
}

.hb-search-hint kbd {
  font: inherit;
  font-family: var(--font-mono);
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}

/* --- Article header ----------------------------------------------------- */

.hb-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  font-size: var(--text-sm);
  color: var(--ink-subtle);
}

.hb-breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--line-strong);
}

.hb-breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.hb-breadcrumbs a:hover {
  color: var(--accent);
}

.hb .post-header .hb-overline {
  margin-bottom: var(--space-3);
}

.hb .post-header h1 {
  max-width: 28ch;
}

.hb-callout {
  display: flex;
  gap: var(--space-3);
  margin: 0 0 var(--space-8);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--highlight-soft);
  border: 1px solid var(--highlight-strong);
  border-radius: var(--radius-md);
}

.hb-callout svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #a16207;
}

.hb-callout p {
  margin: 0;
}

/* --- Content ------------------------------------------------------------ */

.hb .post-content .responsive-container {
  position: relative;
  max-width: var(--measure-wide);
  aspect-ratio: 780 / 540;
  margin: var(--space-6) 0 var(--space-8);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.hb .post-content .responsive-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hb .post-content .table-wrapper {
  margin: var(--space-6) 0 var(--space-8);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hb .post-content .table-wrapper table {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.hb .post-content table img {
  max-width: 220px;
  max-height: 180px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}

.hb .post-content table td:has(img) {
  background: #fff;
}

.hb-table-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0 calc(-1 * var(--space-4));
}

.hb-table-tools .hb-search-input {
  max-width: 300px;
  padding-left: var(--space-3);
}

.hb-table-count {
  font-size: var(--text-sm);
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.hb-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: left;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}

.hb-sort::after {
  content: "↕";
  font-size: 0.85em;
  color: var(--ink-subtle);
  opacity: 0.6;
}

th[aria-sort="ascending"] .hb-sort::after { content: "↑"; opacity: 1; color: var(--accent); }
th[aria-sort="descending"] .hb-sort::after { content: "↓"; opacity: 1; color: var(--accent); }

/* --- Landing page ------------------------------------------------------- */

.hb-hero {
  position: relative;
  margin: 0 0 var(--space-10);
  padding: var(--space-10) var(--space-8) var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
}

.hb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(110deg, transparent 30%, #000 85%);
  opacity: 0.8;
}

.hb-hero-art {
  position: absolute;
  right: -10px;
  top: 50%;
  z-index: -1;
  width: 320px;
  height: auto;
  transform: translateY(-50%);
  opacity: 0.9;
  pointer-events: none;
}

.hb-hero h1 {
  max-width: 18ch;
  margin: var(--space-3) 0 var(--space-4);
  font-size: var(--text-4xl);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
}

.hb-hero-lede {
  max-width: 44ch;
  margin: 0 0 var(--space-6);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
}

.hb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--ink-subtle);
}

.hb-hero-meta strong {
  color: var(--ink);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.hb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hb-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}

/* main.css colours visited links (a:visited), which would turn the button
   labels blue — or invisible on the primary button. */
.hb-button:visited {
  color: var(--ink);
}

.hb-button-primary:visited {
  color: var(--accent-contrast);
}

.hb-button:hover {
  background: var(--surface-hover);
  text-decoration: none;
}

.hb-button-primary {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
}

.hb-button-primary:hover {
  color: var(--accent-contrast);
  background: var(--accent-hover);
}

.hb-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
}

.hb-chapter-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hb-chapter-card h2 {
  margin: 0;
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
}

.hb-chapter-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.hb-chapter-card h2 a:hover {
  color: var(--accent);
}

.hb-chapter-card p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--ink-muted);
}

.hb-chapter-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: auto 0 0;
  padding: var(--space-2) 0 0;
  list-style: none;
}

.hb-chapter-card li a {
  display: inline-block;
  padding: 3px var(--space-2);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.hb-chapter-card li a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

/* "+N more" chip: links to the chapter overview, which lists every page. */
.hb-chapter-card li a.hb-chapter-more {
  color: var(--accent);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hb-chapter-card li a.hb-chapter-more:hover {
  background: var(--accent-soft);
  box-shadow: none;
}

.hb-section-title {
  margin: var(--space-16) 0 var(--space-2);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-tighter);
}

/* --- Mobile contents bar + drawer --------------------------------------- */

.hb-mobile-bar {
  display: none;
}

.hb-scrim {
  display: none;
}

@media screen and (max-width: 1280px) {
  .hb {
    grid-template-columns: var(--hb-rail) minmax(0, 1fr);
  }

  .hb .post-toc-sidebar {
    display: none;
  }

  .hb-newsletter-inline {
    display: block;
  }
}

@media screen and (max-width: 1024px) {
  .hb {
    display: block;
  }

  .hb-mobile-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 calc(-1 * var(--gutter)) var(--space-6);
    padding: var(--space-2) var(--gutter);
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .hb-mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    height: 36px;
    padding: 0 var(--space-3);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
  }

  /* main.css caps svg at max-width: 100%, which collapses an icon inside a
   shrink-to-fit flex button to zero width. */
.hb-mobile-toggle svg {
  flex: none;
}

.hb-mobile-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--text-sm);
    color: var(--ink-muted);
  }

  .hb-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    width: min(320px, 86vw);
    max-height: none;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--paper);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform 240ms var(--ease), visibility 0s linear 240ms;
  }

  .hb-nav-open .hb-sidebar {
    transform: none;
    visibility: visible;
    transition: transform 240ms var(--ease);
  }

  .hb-nav-open .hb-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--overlay);
  }

}

@media screen and (max-width: 600px) {
  .hb-hero {
    padding: var(--space-6) var(--space-5);
    margin-inline: calc(-1 * var(--space-1));
  }

  .hb-hero h1 {
    font-size: var(--text-3xl);
  }

  .hb-hero-art {
    opacity: 0.25;
  }

  .hb .post-content table img {
    max-width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb .post-content :target {
    animation: none;
  }

  .hb-sidebar {
    transition: none !important;
  }
}
