html {
  scroll-behavior: smooth;
}

body.hg-shell {
  margin: 0;
  min-height: 100vh;
  background: var(--hg-color-surface);
  color: var(--hg-color-ink);
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-body);
  font-weight: var(--hg-weight-body);
  line-height: var(--hg-leading-body);
  font-kerning: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.hg-shell *,
.hg-shell *::before,
.hg-shell *::after {
  box-sizing: border-box;
}

.hg-shell a {
  color: inherit;
}

.hg-shell a:focus-visible {
  box-shadow: var(--hg-focus-ring);
  outline: none;
}

.hg-shell h1,
.hg-shell h2,
.hg-shell h3,
.hg-shell p,
.hg-shell figure {
  margin-top: 0;
}

.hg-frame {
  width: min(calc(100% - (var(--hg-page-gutter) * 2)), var(--hg-page-max));
  margin-inline: auto;
}

.hg-skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--hg-color-ink);
  color: var(--hg-color-surface);
  transform: translateY(-200%);
}

.hg-skip-link:focus {
  transform: translateY(0);
}

.hg-global-header {
  position: relative;
  z-index: 10;
  background: var(--hg-color-surface);
}

.hg-header {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hg-wordmark {
  margin-bottom: 0;
  font-family: var(--hg-font-wordmark);
  font-size: 1.75rem;
  font-weight: var(--hg-weight-strong);
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.hg-nav,
.hg-footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  font-size: var(--hg-text-small);
  font-weight: var(--hg-weight-strong);
}

.hg-nav a,
.hg-footer-nav a {
  text-decoration: none;
}

.hg-nav a:hover,
.hg-footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.hg-menu-mark {
  display: none;
  width: 1.45rem;
}

.hg-menu-mark i {
  display: block;
  height: 1px;
  margin-block: 0.3rem;
  background: var(--hg-color-ink);
}

.hg-main {
  min-height: 70vh;
}

/* Home: reference hero */
.hg-home-hero {
  min-height: clamp(27rem, 38vw, 34rem);
  padding: var(--hg-section-space) 0 calc(var(--hg-section-space) * 1.05);
}

.hg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.7fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: center;
}

.hg-home-title {
  margin-bottom: 0;
  max-width: 12ch;
  font-family: var(--hg-font-wordmark);
  font-size: var(--hg-text-h1);
  font-weight: var(--hg-weight-strong);
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-break: keep-all;
}

.hg-home-title span {
  display: block;
}

.hg-hero-checklist {
  position: relative;
  width: 100%;
  max-width: 24rem;
  margin: 3.2rem 0 0 auto;
  padding: 2rem 2.1rem 1.8rem;
  background: var(--hg-color-soft);
  box-shadow: 0 0.75rem 1.8rem rgb(17 17 14 / 9%);
  transform: rotate(-0.3deg);
}

.hg-hero-checklist h2 {
  margin-bottom: 1.1rem;
  font-size: var(--hg-text-small);
  line-height: 1.4;
}

.hg-hero-checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hg-hero-checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid var(--hg-color-line);
  font-size: var(--hg-text-small);
  line-height: 1.45;
}

.hg-hero-checklist li::before {
  position: absolute;
  left: 0.1rem;
  content: "✓";
  font-size: var(--hg-text-caption);
}

.hg-pencil-mark {
  position: absolute;
  top: -0.75rem;
  right: 4.8rem;
  width: 2px;
  height: 1.7rem;
  background: var(--hg-color-control);
  transform: rotate(7deg);
}

/* Home: cobalt workbench */
.hg-workbench-rail {
  padding: var(--hg-section-space) 0;
  background: var(--hg-color-problem);
  color: var(--hg-color-on-dark);
}

.hg-workbench-rail-grid {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.65fr) minmax(0, 5fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}

.hg-workbench-rail-intro {
  padding-top: 0.25rem;
}

.hg-workbench-rail-intro p {
  margin-bottom: 0.65rem;
  color: var(--hg-color-on-dark);
  font-size: var(--hg-text-caption);
  font-weight: var(--hg-weight-bold);
}

.hg-workbench-rail-intro h2 {
  max-width: 7rem;
  margin-bottom: 0;
  color: var(--hg-color-on-dark);
  font-size: var(--hg-text-small);
  font-weight: var(--hg-weight-medium);
  line-height: 1.6;
}

.hg-paper-card-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2.3vw, 2.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hg-paper-card {
  position: relative;
  min-width: 0;
  min-height: var(--hg-card-min-block);
  padding: 1.3rem 1.05rem 1rem;
  background: var(--hg-color-soft);
  box-shadow: 0 0.8rem 1.6rem rgb(0 0 0 / 18%);
  color: var(--hg-color-ink);
  font-family: var(--hg-font-wordmark);
}

.hg-paper-card:nth-child(2) {
  transform: rotate(0.35deg);
}

.hg-paper-card:nth-child(3) {
  transform: rotate(-0.4deg);
}

.hg-paper-card:nth-child(5) {
  transform: rotate(0.25deg);
}

.hg-paper-card:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: clamp(-1.8rem, -1.45vw, -1rem);
  color: var(--hg-color-on-dark);
  content: "→";
  font-family: var(--hg-font-body);
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.hg-paper-card strong {
  display: block;
  margin-bottom: 1.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--hg-color-line);
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-caption);
}

.hg-paper-card p {
  margin-bottom: 0.85rem;
  font-size: var(--hg-text-card);
  line-height: 1.65;
  word-break: keep-all;
}

.hg-paper-card ul {
  margin: 0 0 1rem;
  padding-left: 1.05rem;
  font-size: var(--hg-text-small);
  line-height: 1.75;
}

.hg-paper-card small {
  position: absolute;
  right: 0.85rem;
  bottom: 0.8rem;
  left: 0.85rem;
  padding: 0.5rem;
  background: var(--hg-color-soft-strong);
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-caption);
  text-align: center;
}

.hg-card-diagram {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--hg-font-body);
  font-size: var(--hg-text-card);
  text-align: center;
}

.hg-amber-arrow {
  display: block;
  margin-top: 1rem;
  color: var(--hg-color-control);
  font-size: 2rem;
  text-align: right;
}

/* Home: question categories */
.hg-question-section {
  padding: var(--hg-section-space) 0;
}

.hg-question-section h2 {
  margin-bottom: 1.6rem;
  font-family: var(--hg-font-wordmark);
  font-size: var(--hg-text-h2);
  font-weight: var(--hg-weight-strong);
  letter-spacing: -0.02em;
}

.hg-question-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--hg-color-line);
}

.hg-question-route {
  position: relative;
  display: flex;
  min-height: clamp(10.75rem, 13vw, 12rem);
  flex-direction: column;
  padding: 1rem 1.5rem 2.6rem;
  border-right: 1px solid var(--hg-color-line);
  text-decoration: none;
}

.hg-question-route:last-child {
  border-right: 0;
}

.hg-route-number {
  margin-bottom: 1rem;
  font-size: var(--hg-text-caption);
  font-weight: var(--hg-weight-bold);
}

.hg-question-route strong {
  margin-bottom: 0.5rem;
  font-size: var(--hg-text-card);
}

.hg-question-route > span:not(.hg-route-number) {
  color: var(--hg-color-muted);
  font-size: var(--hg-text-small);
  line-height: 1.65;
  word-break: keep-all;
}

.hg-question-route i {
  position: absolute;
  right: 1.15rem;
  bottom: 0.8rem;
  font-size: 1.25rem;
  font-style: normal;
}

.hg-question-route:hover i {
  transform: translateX(0.3rem);
}

/* Home: black CTA + notebook */
.hg-notebook-cta {
  overflow: hidden;
  padding-top: 0.8rem;
}

.hg-notebook-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.31fr) minmax(0, 0.79fr);
  align-items: end;
}

.hg-question-cta {
  position: relative;
  z-index: 2;
  min-height: clamp(14rem, 18vw, 16rem);
  padding: 2.7rem 2.5rem;
  background: var(--hg-color-ink);
  color: var(--hg-color-surface);
}

.hg-question-cta h2 {
  max-width: 12rem;
  margin-bottom: 1.9rem;
  color: var(--hg-color-on-dark);
  font-size: var(--hg-text-subhead);
  font-weight: var(--hg-weight-strong);
  line-height: 1.55;
  word-break: keep-all;
}

.hg-question-cta a,
.hg-next-question > a {
  display: inline-flex;
  min-width: 10.5rem;
  min-height: var(--hg-control-min-block);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 55%);
  color: var(--hg-color-on-dark);
  font-size: var(--hg-text-small);
  text-decoration: none;
}

.hg-notebook-scene {
  position: relative;
  z-index: 3;
  margin: 0 0 -0.8rem -1.8rem;
}

.hg-notebook-scene img {
  display: block;
  width: 108%;
  max-width: none;
  height: auto;
}

/* Article masthead */
.hg-article-masthead {
  padding: 2.2rem 0 2.1rem;
}

.hg-back-link {
  display: inline-block;
  margin-bottom: 3.7rem;
  color: var(--hg-color-muted);
  font-size: var(--hg-text-small);
  text-decoration: none;
}

.hg-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.hg-article-title {
  max-width: 17ch;
  margin-bottom: 2.2rem;
  font-family: var(--hg-font-wordmark);
  font-size: var(--hg-text-h1);
  font-weight: var(--hg-weight-strong);
  letter-spacing: -0.02em;
  line-height: 1.12;
  word-break: keep-all;
}

.hg-article-meta {
  display: flex;
  gap: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hg-color-ink);
  color: var(--hg-color-muted);
  font-size: var(--hg-text-caption);
}

.hg-article-workspace {
  display: grid;
  grid-template-columns: minmax(11.5rem, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(2.5rem, 5vw, 5.2rem);
  padding: 2.1rem 0 2.5rem;
}

/* Article evidence timeline */
.hg-article-evidence-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 1.35rem;
}

.hg-article-evidence-rail::before {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.1rem;
  width: 1px;
  background: var(--hg-color-line);
  content: "";
}

.hg-article-evidence-rail section {
  position: relative;
}

.hg-article-evidence-rail section::before {
  position: absolute;
  top: 0.1rem;
  left: -1.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--hg-color-surface);
  border-radius: 50%;
  background: var(--hg-color-problem);
  box-shadow: 0 0 0 1px var(--hg-color-problem);
  content: "";
}

.hg-article-evidence-rail section[data-hg-evidence-state="assumption"]::before {
  background: var(--hg-color-control);
  box-shadow: 0 0 0 1px var(--hg-color-control);
}

.hg-article-evidence-rail header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  font-size: var(--hg-text-caption);
  line-height: 1.35;
}

.hg-article-evidence-rail header strong {
  font-size: var(--hg-text-small);
}

.hg-article-evidence-rail header span {
  color: var(--hg-color-muted);
  font-family: var(--hg-font-body);
}

.hg-article-evidence-rail section > p {
  min-height: clamp(8rem, 10vw, 9rem);
  margin-bottom: 0;
  padding: 1.2rem 1rem;
  background: var(--hg-color-soft);
  box-shadow: 0 0.45rem 1.1rem rgb(17 17 14 / 8%);
  font-family: var(--hg-font-wordmark);
  font-size: var(--hg-text-small);
  line-height: 1.7;
  transform: rotate(-0.35deg);
  word-break: keep-all;
}

.hg-article-evidence-rail section:nth-child(2) > p {
  transform: rotate(0.4deg);
}

.hg-article-evidence-rail small {
  display: block;
  margin-top: -1.4rem;
  padding: 0 0.75rem 0.55rem;
  color: var(--hg-color-muted);
  font-size: var(--hg-text-caption);
  text-align: right;
}

.hg-article-evidence-rail section[data-hg-evidence-state="assumption"] small {
  text-decoration-color: var(--hg-color-control);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
}

/* Article prose */
.hg-article-content {
  min-width: 0;
}

.hg-article-body,
.hg-article-step {
  max-width: 51rem;
  font-size: var(--hg-text-body);
  line-height: 1.85;
}

.hg-article-body > *:first-child {
  margin-top: 0;
}

.hg-article-body h2,
.hg-article-body h3 {
  margin-top: 2.3rem;
}

.hg-article-body a {
  color: var(--hg-color-problem);
  text-underline-offset: 0.25rem;
}

.hg-article-body img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.hg-article-step {
  margin-top: 2rem;
}

.hg-article-step h2 {
  margin-bottom: 0.55rem;
  font-size: var(--hg-text-subhead);
  line-height: 1.4;
}

.hg-article-step p {
  margin-bottom: 0;
}

.hg-source-strip {
  margin-top: 2.7rem;
}

.hg-source-strip > h2 {
  margin-bottom: 0.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hg-color-line);
  font-size: var(--hg-text-small);
}

.hg-source-strip > h2 span {
  color: var(--hg-color-muted);
  font-family: var(--hg-font-body);
  font-weight: var(--hg-weight-body);
}

.hg-source-strip ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hg-source-strip li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.4rem;
  min-width: 0;
  font-size: var(--hg-text-caption);
}

.hg-source-strip li > span {
  font-family: var(--hg-font-wordmark);
}

.hg-source-strip li p {
  margin-bottom: 0.55rem;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.hg-source-strip li i {
  grid-column: 1 / -1;
  font-size: 1.25rem;
  font-style: normal;
}

.hg-next-question {
  display: flex;
  min-height: clamp(8.5rem, 11vw, 10rem);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.7rem 2.1rem;
  background: var(--hg-color-soft);
}

.hg-next-question p {
  margin-bottom: 0.25rem;
  font-size: var(--hg-text-caption);
  font-weight: var(--hg-weight-bold);
}

.hg-next-question h2 {
  margin-bottom: 0.25rem;
  font-family: var(--hg-font-wordmark);
  font-size: var(--hg-text-subhead);
  font-weight: var(--hg-weight-strong);
}

.hg-next-question small {
  color: var(--hg-color-muted);
  font-size: var(--hg-text-caption);
}

.hg-next-question > a {
  min-width: 13rem;
  border-color: var(--hg-color-ink);
  background: var(--hg-color-ink);
}

/* Archive and shortcode-safe legacy modules */
.hg-hero {
  padding: 5rem 0;
}

.hg-hero .hg-title,
.hg-archive-hero .hg-title {
  font-family: var(--hg-font-wordmark);
  font-size: var(--hg-text-h1);
  font-weight: var(--hg-weight-strong);
  letter-spacing: -0.02em;
}

.hg-eyebrow {
  color: var(--hg-color-muted);
  font-size: var(--hg-text-small);
  font-weight: var(--hg-weight-bold);
}

.hg-cta-primary {
  display: inline-flex;
  min-height: var(--hg-control-min-block);
  align-items: center;
  padding: 0.75rem 1.2rem;
  background: var(--hg-color-ink);
  color: var(--hg-color-surface);
  text-decoration: none;
}

.hg-article-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hg-color-line);
  list-style: none;
}

.hg-article-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hg-color-line);
}

.hg-article-row time {
  color: var(--hg-color-muted);
  font-size: var(--hg-text-caption);
}

.hg-article-row a {
  font-weight: var(--hg-weight-bold);
  text-decoration: none;
}

.hg-companion-module,
.hg-workbench-empty {
  padding: 1rem;
  border: 1px solid var(--hg-color-line);
  font-size: var(--hg-text-small);
}

.hg-workbench-module-head {
  display: flex;
  gap: 0.65rem;
}

.hg-workbench-stage-index {
  color: var(--hg-color-muted);
  font-size: var(--hg-text-caption);
}

.hg-workbench-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.hg-workbench-stage {
  padding: 1.25rem;
  border: 1px solid var(--hg-color-line);
}

.hg-workbench-stage h3 {
  font-size: var(--hg-text-card);
}

.hg-workbench-stage p {
  color: var(--hg-color-muted);
  font-size: var(--hg-text-small);
}

.hg-workbench [data-hg-stage="question"] {
  border-top-color: var(--hg-color-problem);
}

.hg-workbench [data-hg-stage="observation"] {
  border-top-color: var(--hg-color-ink);
}

.hg-workbench [data-hg-stage="evidence"] {
  border-top-color: var(--hg-color-evidence);
}

.hg-workbench [data-hg-stage="boundary"] {
  border-top-color: var(--hg-color-control);
}

.hg-workbench [data-hg-stage="experiment"] {
  border-top-color: var(--hg-color-action);
}

.hg-global-footer {
  padding: 1.65rem 0 1.8rem;
  border-top: 1px solid var(--hg-color-line);
  background: var(--hg-color-surface);
}

.hg-footer-grid {
  display: grid;
  grid-template-columns: auto minmax(16rem, 1fr) auto auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.hg-footer-note,
.hg-footer-copy {
  margin-bottom: 0;
  color: var(--hg-color-muted);
  font-size: var(--hg-text-caption);
}

.hg-footer-copy {
  text-align: right;
}

@media (max-width: 1080px) {
  .hg-hero-grid {
    gap: 4rem;
  }

  .hg-workbench-rail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hg-workbench-rail-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .hg-workbench-rail-intro h2 {
    max-width: none;
  }

  .hg-paper-card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .hg-paper-card {
    padding-inline: 0.8rem;
  }

  .hg-paper-card:not(:last-child)::after {
    display: none;
  }

  .hg-question-route {
    padding-inline: 1rem;
  }

  .hg-footer-grid {
    grid-template-columns: auto 1fr auto;
  }

  .hg-footer-nav {
    display: none;
  }
}

@media (max-width: 820px) {
  .hg-header {
    min-height: 4.7rem;
  }

  .hg-nav {
    display: none;
  }

  .hg-menu-mark {
    display: block;
  }

  .hg-home-hero {
    min-height: 0;
    padding: 2rem 0 3.5rem;
  }

  .hg-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .hg-home-title {
    max-width: 11ch;
  }

  .hg-hero-checklist {
    max-width: 22rem;
    margin-top: 0;
  }

  .hg-paper-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-paper-card {
    min-height: 12.5rem;
  }

  .hg-paper-card:not(:last-child)::after {
    display: none;
  }

  .hg-question-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hg-question-route {
    border-bottom: 1px solid var(--hg-color-line);
  }

  .hg-question-route:nth-child(2n) {
    border-right: 0;
  }

  .hg-notebook-grid {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.75fr);
  }

  .hg-question-cta {
    padding: 2rem 1.5rem;
  }

  .hg-article-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hg-article-evidence-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-left: 0;
  }

  .hg-article-evidence-rail::before,
  .hg-article-evidence-rail section::before {
    display: none;
  }

  .hg-source-strip ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hg-wordmark {
    font-size: 1.45rem;
  }

  .hg-home-title {
    line-height: 1.12;
  }

  .hg-hero-checklist {
    width: 92%;
    padding: 1.55rem;
  }

  .hg-workbench-rail {
    padding-block: 1.8rem;
  }

  .hg-paper-card-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .hg-paper-card {
    min-height: 0;
  }

  .hg-paper-card small {
    position: static;
    display: block;
    margin-top: 0.75rem;
  }

  .hg-question-section {
    padding-block: 2rem;
  }

  .hg-question-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hg-question-route,
  .hg-question-route:nth-child(2n) {
    min-height: 9rem;
    border-right: 0;
  }

  .hg-notebook-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .hg-question-cta {
    min-height: 13rem;
    padding-inline: 2rem;
  }

  .hg-notebook-scene {
    margin: -0.8rem -1rem 0;
  }

  .hg-notebook-scene img {
    width: 116%;
    margin-left: -8%;
  }

  .hg-article-masthead {
    padding-top: 1.5rem;
  }

  .hg-back-link {
    margin-bottom: 2.5rem;
  }

  .hg-article-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hg-article-evidence-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hg-article-evidence-rail section > p {
    min-height: 0;
  }

  .hg-source-strip ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .hg-source-strip li {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--hg-color-line);
  }

  .hg-next-question {
    width: min(calc(100% - (var(--hg-page-gutter) * 2)), var(--hg-page-max));
    flex-direction: column;
    align-items: stretch;
  }

  .hg-next-question > a {
    width: 100%;
  }

  .hg-footer-grid {
    grid-template-columns: 1fr auto;
  }

  .hg-footer-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hg-article-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hg-workbench-path {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
