/* Homepage-only reading route. Exact records and the shared site shell stay intact. */
body.hq-page { --home-route-offset: 16px; }
body.hq-page main [id] { scroll-margin-top: var(--home-route-offset); }
body.hq-page .home-route {
  position: static; top: 0; z-index: 15;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 0 28px; padding: 4px 0; margin: 0;
  background: #fafaf8;
  border-top: 1px solid #bebeb5; border-bottom: 1px solid #bebeb5;
}
body.hq-page .home-route[data-route-ready] { position: sticky; }
body.hq-page .home-route a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 8px 4px;
  color: #41413b; font: 400 14px/1.4 Arial,Helvetica,sans-serif;
  text-decoration: none; text-align: center;
  overflow-wrap: anywhere;
}
body.hq-page .home-route a:is(:hover,[aria-current="location"]) {
  color: #171717; text-decoration: underline;
  text-underline-offset: .35em; text-decoration-thickness: 2px;
}
body.hq-page .home-study-entry {
  margin-top: 26px; max-width: 660px; padding: 24px;
  color: #fafaf8; background: #171717; border: 1px solid #171717;
}
body.hq-page .home-study-entry .home-study-label {
  margin: 0; color: #d4d4cb; font-size: 11px; line-height: 1.5;
  font-weight: 600; letter-spacing: .075em; text-transform: uppercase;
}
body.hq-page .home-study-entry h2 {
  max-width: 27ch; margin: 10px 0 12px; color: inherit;
  font-size: clamp(24px, 3vw, 30px); line-height: 1.18; letter-spacing: -.02em;
}
body.hq-page .home-study-entry .home-study-description {
  margin: 0; max-width: 60ch; color: inherit; font-size: 15px; line-height: 1.55;
}
body.hq-page .home-study-entry .home-study-boundary {
  margin: 8px 0 0; color: #d4d4cb; font-size: 14px; line-height: 1.5;
}
body.hq-page .home-study-entry .home-study-link {
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 10px; padding: 8px 0; max-width: 100%;
  color: inherit; font-size: 15px; line-height: 1.5; font-weight: 600;
  text-decoration: underline; text-underline-offset: .25em;
}
body.hq-page .home-study-link:hover { text-decoration-thickness: 2px; }
body.hq-page .home-study-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
body.hq-page #origin { border-top: 0; }
body.hq-page .home-prompt .bwh-code { margin: 0; }
body.hq-page .hq-hero { padding-bottom: 28px; }
@media screen and (max-width: 620px) {
  body.bw-paper.hq-page.bw-shell > .bw-header {
    min-height: 60px; padding-top: 8px; padding-bottom: 8px;
  }
  body.hq-page .hq-hero { padding-top: 22px; padding-bottom: 22px; }
  body.hq-page .hq-words { margin-bottom: 18px; }
  body.hq-page .hq-hero-question { margin-top: 16px; }
  body.hq-page .hq-hero .bwh-actions { margin-top: 18px; }
  body.hq-page .home-study-entry { margin-top: 22px; padding: 20px; }
  body.hq-page .home-route { justify-content: space-between; gap: 0 6px; padding: 2px 0; }
  body.hq-page .home-route a { font-size: 13px; padding: 8px 2px; }
  body.hq-page #origin { padding-top: 28px; }
}
/* A short viewport needs its space for content, especially at high zoom. */
@media screen and (max-height: 480px) {
  body.hq-page .home-route,
  body.hq-page .home-route[data-route-ready] { position: static; }
}
@media (prefers-contrast: more) {
  body.hq-page .home-route { border-color: #41413b; }
  body.hq-page .home-route a { color: #171717; }
  body.hq-page .home-study-entry .home-study-label, body.hq-page .home-study-entry .home-study-boundary { color: #fafaf8; }
}
@media (forced-colors: active) {
  body.hq-page .home-route { background: Canvas; border-color: CanvasText; }
  body.hq-page .home-route a, body.hq-page .home-study-entry .home-study-link { color: LinkText; }
  body.hq-page .home-study-entry { background: Canvas; color: CanvasText; border-color: CanvasText; }
  body.hq-page .home-study-entry .home-study-label, body.hq-page .home-study-entry .home-study-boundary { color: CanvasText; }
  body.hq-page .home-route a[aria-current="location"] { color: LinkText; }
}
@media print {
  body.hq-page .home-route { display: none; }
  body.hq-page .home-study-entry { margin-top: 12pt; background: #fff; color: #000; border-color: #777; break-inside: avoid; }
  body.hq-page .home-study-entry .home-study-label, body.hq-page .home-study-entry .home-study-boundary { color: #333; }
  body.hq-page .home-study-entry .home-study-link { color: #000; font-size: 10pt; }
  body.hq-page main [id] { scroll-margin-top: 0; }
}
