/* Home, directories, details and reading pages. */
.v1 main { min-height: 58vh; padding: 44px 0 72px; }
.v1-home main { padding-top: 56px; }
.v1-home main > h1 { font-size: var(--h2-text-display); max-width: 16ch; line-height: 1; margin-bottom: 24px; }
.v1-home main > .v1-lead { max-width: 54ch; font-size: 17px; }
.v1-home .v1-stats { position: relative; border-top: 0; }
.v1-home .v1-stats::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--h2-spectrum); }
.v1-home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
.v1-home-grid > * { min-width: 0; }
.v1-home-grid h2 { font-size: 30px; }
.v1-home-grid aside { padding: 24px 28px; background: var(--h2-surface); border-radius: var(--h2-radius-card); }
.v1-home-grid aside h2:not(:first-child) { margin-top: 32px; }
.v1-home-grid aside p { font-size: 14px; color: var(--h2-ink-2); }
.v1-home-grid aside p a { display: inline-flex; align-items: center; min-height: 44px; color: var(--h2-action); text-decoration: none; font-weight: 700; }
.v1-home #subscribe { margin-top: 56px; padding: 32px 40px; background: var(--h2-surface-sunk); border-radius: var(--h2-radius-card); }
.v1-home #subscribe h2 { margin-bottom: 14px; }
.v1-home #subscribe > p { margin-bottom: 0; font-size: 14px; }
.v1-home .v1-hero { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); align-items: center; min-height: 610px; }
.v1-hero-copy { position: relative; z-index: 1; padding-block: 28px 40px; }
.v1-hero-copy h1 { font-size: var(--h2-text-display); max-width: 13ch; line-height: .99; }
.v1-hero-copy .v1-lead { max-width: 40ch; }
.v1-hero-visual { position: relative; align-self: stretch; min-width: 0; min-height: 580px; }
.v1-hero-visual canvas { display: block; width: 100%; height: 510px; }
.v1-hero-card { position: absolute; bottom: 72px; left: 16px; display: grid; gap: 2px; max-width: 310px; width: calc(100% - 32px); padding: 16px 20px; background: var(--h2-surface); border-radius: 6px; box-shadow: var(--h2-shadow-2); }
.v1-hero-card h2 { font-family: var(--h2-font-ui); font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0; }
.v1-hero-card h2 a { color: var(--h2-ink); font-size: 15px; }
.v1-hero-card p { margin: 0; font-size: 13px; line-height: 1.45; }
.v1-hero-card a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 700; color: var(--h2-action); text-decoration: none; }
.v1-hero-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px; }
.v1-hero-controls button, .v1-hero-controls select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--h2-line); background: var(--h2-surface); border-radius: var(--h2-radius-control); color: var(--h2-ink); font-size: 12px; }
.v1-hero-controls button { padding: 8px 16px; border-color: var(--h2-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.v1-hero-controls button[data-hero-play] { background: var(--h2-ink); color: var(--h2-surface); }
.v1-hero-controls button:hover { background: var(--h2-surface-sunk); color: var(--h2-ink); }
.v1-hero-controls label { font-size: 12px; color: var(--h2-ink-2); }
/* Up to tablet width the tour controls can wrap onto two rows, so the card and the controls stay in normal flow and never overlap. */
@media (max-width: 1000px) {
  .v1-hero-visual { display: flex; flex-direction: column; min-height: 0; }
  .v1-hero-card { position: relative; bottom: auto; left: auto; z-index: 1; width: auto; margin: -120px 20px 0; }
}
.v1-entries { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-top: 48px; }
.v1-entries > * { padding-top: 24px; border-top: 1px solid var(--h2-line); min-width: 0; }
.v1-entries p { color: var(--h2-ink-2); font-size: 14px; }
.v1-entries figure { margin: 0 0 24px; background: var(--h2-surface); border-radius: var(--h2-radius-card); overflow: hidden; }
.v1-entries figure img { display: block; width: 100%; height: 180px; object-fit: contain; }
.v1-entries .v1-equipment-icon { display: block; width: 48px; height: 48px; margin-bottom: 20px; }
.v1-entries a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14px; color: var(--h2-action); }
.v1-directory main > .v1-lead { max-width: 65ch; font-size: 15px; margin-bottom: 28px; }
.v1-directory [data-static-directory] > .v1-muted { margin-top: 16px; font-size: 12px; }
.v1-detail main > article > h1 { font-size: clamp(38px, 4vw, 54px); max-width: 30ch; line-height: 1.08; }
.v1-detail main > article > .v1-sources { margin-top: 8px; margin-bottom: 28px; max-width: 75ch; }
.v1-detail main > article > p { color: var(--h2-ink-2); font-size: 14px; }
.v1-detail .v1-section > h2 { font-size: 30px; }
.v1-detail .v1-links { max-width: 950px; }
.v1-detail .v1-section > .v1-muted { font-size: 13px; }
.v1-prose { max-width: 76ch; margin-right: auto; }
.v1-prose h1 { font-size: clamp(38px, 4vw, 54px); }
.v1-prose h2 { font-size: 30px; margin-top: 40px; margin-bottom: 16px; }
.v1-prose h3 { margin-top: 28px; }
.v1-prose p, .v1-prose li { font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
.v1-prose ul, .v1-prose ol { padding-left: 22px; }
.v1-prose li + li { margin-top: 8px; }
.v1-prose blockquote { margin: 24px 0; padding: 20px 24px; background: var(--h2-surface-sunk); border-radius: var(--h2-radius-card); }
.v1-prose img { max-width: 100%; height: auto; }
.v1-prose table { display: block; max-width: 100%; overflow-x: auto; }
.v1-directory table th:first-child, .v1-directory table td:first-child { width: 46%; }
.v1-directory table th:last-child, .v1-directory table td:last-child { width: 12%; }
.v1-dashboard main { padding-top: 36px; }
.v1-dashboard > .v1-frame main > h1 { max-width: 26ch; }
.v1-dashboard main > .v1-actions { position: relative; padding-top: 24px; }
.v1-dashboard main > .v1-actions::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--h2-spectrum); }

@media (max-width: 1000px) {
  .v1-home-grid { gap: 36px; }
  .v1-home .v1-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .v1-hero-copy h1 { font-size: 60px; }
}
@media (max-width: 760px) {
  .v1 main, .v1-dashboard main { padding-block: 28px 48px; }
  .v1-home main { padding-top: 36px; }
  .v1 h1 { max-width: 100%; }
  .v1-home main > h1 { font-size: 52px; max-width: 13ch; }
  .v1-home main > .v1-lead { font-size: 15px; }
  .v1-home-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .v1-home-grid h2 { font-size: 28px; }
  .v1-home-grid aside { padding: 24px 20px; }
  .v1-home #subscribe { margin-top: 36px; padding: 26px 20px; }
  .v1-home #subscribe h2 { font-size: 28px; }
  .v1-home .v1-hero { display: flex; flex-direction: column; min-height: 0; }
  .v1-hero-copy { padding-block: 0 16px; width: 100%; }
  .v1-hero-copy h1 { font-size: 55px; }
  .v1-hero-copy .v1-lead { font-size: 15px; }
  .v1-hero-visual { width: calc(100% + 40px); margin-inline: -20px; }
  .v1-hero-visual canvas { height: 400px; }
  .v1-hero-card { max-width: 275px; padding: 14px 16px; }
  .v1-hero-controls { justify-content: center; }
  .v1-entries { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .v1-entries h2 { font-size: 28px; }
  .v1-section { margin-top: 32px; }
  .v1-directory main > .v1-lead { font-size: 14px; }
  .v1-detail main > article > h1 { font-size: 38px; line-height: 1.1; }
  .v1-detail main > article > .v1-sources { margin-bottom: 24px; }
  .v1-detail .v1-section > h2, .v1-prose h2 { font-size: 28px; }
  .v1-prose p, .v1-prose li { font-size: 15px; }
}
