.jvh-page {
  background: var(--surface-page);
  hyphens: auto;
}

.jvh-page section[id] {
  scroll-margin-top: 7rem;
}

.jvh-page .button {
  gap: var(--space-2);
}

.jvh-hero__grid,
.jvh-interaction__grid,
.jvh-humor__layout {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6);
}

.jvh-hero__copy {
  grid-column: span 5;
  min-width: 0;
  align-self: center;
  max-width: 35rem;
}

.jvh-hero__meta {
  max-width: 28.75rem;
  color: var(--color-muted-ink);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: var(--line-small);
}

.jvh-hero__meta span {
  color: var(--color-turquoise-hover);
}

.jvh-hero__lead {
  max-width: 35rem;
}

.jvh-hero__lead p {
  font-size: var(--text-lead);
  line-height: var(--line-lead);
}

.jvh-hero__actions,
.jvh-android__action,
.jvh-closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: var(--space-3);
}

.jvh-hero__actions > *,
.jvh-android__action > *,
.jvh-closing__actions > * {
  min-width: 0;
}

.jvh-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

.jvh-hero__figure {
  grid-column: span 7;
  min-width: 0;
  margin: 0;
}

.jvh-hero__figure img,
.jvh-interaction__figure img,
.jvh-wide-figure img,
.jvh-visual__figure img {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  border: var(--border-strong);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface-paper);
}

.jvh-hero__figure img,
.jvh-interaction__figure img {
  aspect-ratio: 4 / 3;
}

.jvh-hero__figure img {
  object-position: 65% center;
}

.jvh-toc__panel {
  display: grid;
  min-width: 0;
  grid-template-columns: 3fr 7fr;
  gap: var(--space-5);
  width: min(100%, 61.5rem);
  border-inline-start: 5px solid var(--color-turquoise);
}

.jvh-toc__intro {
  min-width: 0;
  max-width: 22.5rem;
}

.jvh-toc__intro h2 {
  font-size: var(--text-card-title);
}

.jvh-toc__links {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  align-content: start;
}

.jvh-toc__links a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.jvh-toc__links a[aria-current="location"] {
  border-color: var(--color-ink);
  background: rgb(128 203 216 / 30%);
  box-shadow: inset 4px 0 0 var(--color-turquoise-hover);
}

.jvh-toc__toggle {
  display: none;
}

.jvh-locations__copy {
  width: min(100%, 45rem);
  min-width: 0;
}

.jvh-section-lead {
  max-width: 41.25rem;
  font-size: var(--text-lead);
}

.jvh-observations {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-5);
  margin-inline: 0;
  padding-inline-start: 1.8rem;
}

.jvh-observations li {
  min-width: 0;
  padding-inline-start: var(--space-2);
}

.jvh-inline-note {
  display: block;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-inline-start: 4px solid var(--color-turquoise);
  background: rgb(128 203 216 / 22%);
  font-weight: 700;
}

.jvh-wide-figure {
  width: 100%;
  min-width: 0;
  margin: var(--space-6) 0 0;
}

.jvh-wide-figure img,
.jvh-visual__figure img {
  aspect-ratio: 16 / 9;
  object-position: center center;
}

.jvh-wide-figure .figure-caption,
.jvh-visual__figure .figure-caption {
  max-width: 100%;
}

.jvh-search__intro {
  width: min(100%, 40.625rem);
  min-width: 0;
}

.jvh-search__cards {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.jvh-search-card {
  min-width: 0;
}

.jvh-search-card ul {
  margin-bottom: 0;
}

.jvh-console-label,
.jvh-editorial-tag {
  margin-bottom: var(--space-2);
  color: var(--color-muted-ink);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: var(--line-small);
}

.jvh-console-label {
  display: inline-flex;
  padding: var(--space-1) var(--space-2);
  border: var(--border-thin);
  border-radius: var(--radius-xs);
  background: var(--color-turquoise);
}

.jvh-editorial-tag {
  padding-inline-start: var(--space-3);
  border-inline-start: 4px solid var(--color-ochre);
}

.jvh-interaction__copy {
  grid-column: span 6;
  min-width: 0;
  max-width: 35rem;
}

.jvh-emphasis {
  font-size: var(--text-lead);
  line-height: var(--line-lead);
  font-weight: 700;
}

.jvh-clue-block {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: var(--border-strong);
  border-top: 5px solid var(--color-ochre);
  border-radius: var(--radius-md);
  background: var(--surface-paper);
  box-shadow: var(--shadow-paper);
}

.jvh-clue-block > :last-child,
.jvh-tip > :last-child {
  margin-bottom: 0;
}

.jvh-tip {
  margin-top: var(--space-5);
}

.jvh-interaction__figure {
  grid-column: span 6;
  min-width: 0;
  align-self: center;
  margin: 0;
}

.jvh-interaction__figure img {
  object-position: 55% center;
}

.jvh-humor__copy {
  grid-column: span 7;
  min-width: 0;
  max-width: 42.5rem;
}

.jvh-humor__note {
  grid-column: 9 / span 2;
  min-width: 0;
  align-self: center;
  padding: var(--space-4);
  border-inline-start: 4px solid var(--color-turquoise);
  background: rgb(255 247 233 / 72%);
  color: var(--color-muted-ink);
  font-family: var(--font-heading);
  line-height: 1.35;
}

.jvh-humor__closing {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-paper);
}

.jvh-humor__closing p {
  margin-bottom: 0;
}

.jvh-visual__title {
  width: min(100%, 42.5rem);
}

.jvh-visual__figure {
  width: 100%;
  min-width: 0;
  margin: var(--space-5) 0 0;
}

.jvh-zoom-trigger {
  margin-top: var(--space-4);
}

.jvh-visual__analysis {
  width: min(100%, 42.5rem);
  min-width: 0;
  margin-top: var(--space-5);
}

.jvh-visual__analysis ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: 0;
}

.jvh-android__copy {
  width: min(100%, 45rem);
  min-width: 0;
}

.jvh-fact-panel {
  margin-block: var(--space-5);
  padding: var(--space-5);
  border: var(--border-strong);
  border-top: 6px solid var(--color-turquoise);
  border-radius: var(--radius-md-irregular);
  background: var(--surface-paper);
  box-shadow: var(--shadow-paper);
}

.jvh-fact-panel > :last-child {
  margin-bottom: 0;
}

.jvh-android__action {
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 20rem);
  margin-top: var(--space-5);
}

.jvh-android__action small {
  color: var(--color-muted-ink);
}

.jvh-faq__list {
  display: flex;
  flex-direction: column;
  width: min(100%, 47.5rem);
  min-width: 0;
  gap: var(--space-3);
}

.jvh-faq__list details {
  min-width: 0;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-paper);
}

.jvh-faq__list details[open] {
  border-inline-start: 5px solid var(--color-turquoise);
}

.jvh-faq__list summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  list-style: none;
}

.jvh-faq__list summary::-webkit-details-marker {
  display: none;
}

.jvh-faq__list summary::after {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: var(--space-3);
  content: "+";
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.jvh-faq__list details[open] summary::after {
  content: "−";
}

.jvh-faq__answer {
  padding: 0 var(--space-4) var(--space-4);
}

.jvh-faq__answer p {
  max-width: 42.5rem;
  margin-bottom: 0;
}

.jvh-closing__panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 61.5rem);
  min-width: 0;
  gap: var(--space-5);
}

.jvh-closing__copy {
  max-width: 40rem;
}

.jvh-image-dialog {
  width: min(92vw, 75rem);
  max-width: 100%;
  padding: 0;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-paper);
  color: var(--color-ink);
}

.jvh-image-dialog::backdrop {
  background: rgb(57 43 32 / 72%);
}

.jvh-image-dialog__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-4);
  padding: var(--space-4);
}

.jvh-image-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: var(--space-4);
}

.jvh-image-dialog__head h2 {
  min-width: 0;
  margin-bottom: 0;
  font-size: var(--text-card-title);
}

.jvh-image-dialog__close {
  flex: 0 0 auto;
}

.jvh-image-dialog img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

@media (max-width: 63.99rem) {
  .jvh-hero__grid,
  .jvh-interaction__grid,
  .jvh-humor__layout {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .jvh-hero__copy,
  .jvh-hero__figure,
  .jvh-interaction__copy,
  .jvh-interaction__figure {
    grid-column: span 3;
  }

  .jvh-humor__copy {
    grid-column: span 5;
  }

  .jvh-humor__note {
    grid-column: span 5;
    width: 100%;
  }

  .jvh-locations__copy,
  .jvh-search__intro,
  .jvh-visual__title,
  .jvh-visual__analysis,
  .jvh-android__copy,
  .jvh-faq__list {
    width: min(100%, 83.333%);
  }

  .jvh-wide-figure img,
  .jvh-visual__figure img {
    aspect-ratio: 3 / 2;
  }

  .jvh-search__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jvh-search__cards > :nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 52rem) {
  .jvh-hero__grid,
  .jvh-interaction__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .jvh-hero__copy,
  .jvh-hero__figure,
  .jvh-interaction__copy,
  .jvh-interaction__figure {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  .jvh-hero__figure {
    order: 2;
  }

  .jvh-toc__panel {
    grid-template-columns: 1fr;
  }

  .jvh-toc__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .jvh-toc__links {
    display: none;
    grid-template-columns: 1fr;
  }

  .jvh-toc__links.is-open {
    display: grid;
  }

  .jvh-toc__toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
  }

  .jvh-locations__copy,
  .jvh-search__intro,
  .jvh-visual__title,
  .jvh-visual__analysis,
  .jvh-android__copy,
  .jvh-faq__list {
    width: 100%;
  }

  .jvh-humor__layout {
    grid-template-columns: 1fr;
  }

  .jvh-humor__copy,
  .jvh-humor__note {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 39.99rem) {
  .jvh-hero h1 {
    font-size: 2.125rem;
    line-height: 1.12;
  }

  .jvh-hero__actions,
  .jvh-closing__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jvh-hero__actions .button,
  .jvh-closing__actions .button,
  .jvh-hero__actions .jvh-text-link {
    width: 100%;
  }

  .jvh-hero__actions .jvh-text-link {
    justify-content: center;
  }

  .jvh-hero__figure img,
  .jvh-interaction__figure img {
    object-position: 60% center;
  }

  .jvh-search__cards {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .jvh-search__cards > :nth-child(3) {
    grid-column: 1;
  }

  .jvh-observations {
    padding-inline-start: 1.45rem;
  }

  .jvh-wide-figure img,
  .jvh-visual__figure img {
    aspect-ratio: 3 / 2;
  }

  .jvh-fact-panel {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .jvh-android__action {
    width: 100%;
  }

  .jvh-android__action .button {
    width: 100%;
  }

  .jvh-closing__panel {
    width: 100%;
    border-radius: var(--radius-md);
  }

  .jvh-image-dialog {
    width: calc(100% - 2rem);
  }

  .jvh-image-dialog__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jvh-toc__toggle[aria-expanded="true"] span {
    transform: none;
  }
}
