.shelf-page {
  padding-top: 64px;
}

.shelf-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  align-items: center;
  gap: 64px;
}

.shelf-intro > * {
  min-width: 0;
}

.shelf-intro h1 {
  margin-top: 22px;
  margin-bottom: 0;
}

.shelf-accent {
  color: var(--accent);
}

.shelf-intro .lead {
  max-width: 34em;
}

.shelf-intro-note {
  max-width: 42em;
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 14px;
}

.shelf-route {
  position: relative;
  box-shadow: var(--shadow-window);
}

.shelf-route-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.shelf-route-list {
  display: grid;
  gap: 22px;
  padding-left: 24px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.shelf-route-list li {
  padding-left: 6px;
}

.shelf-route-list li::marker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.shelf-route-list strong,
.shelf-route-list span {
  display: block;
}

.shelf-route-list span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.shelf-route > a {
  font-size: 14px;
}

.shelf-block {
  margin-top: 80px;
  scroll-margin-top: 24px;
}

.shelf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 28px;
}

.shelf-section-head > div {
  flex: 1 1 420px;
  min-width: 0;
}

.shelf-section-head h2,
.shelf-block > .panel > h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.shelf-section-head p {
  margin-bottom: 0;
}

.shelf-section-head > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.shelf-platforms {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-panel);
}

.shelf-platforms [role="tab"] {
  flex: 1 0 auto;
}

.shelf-platform-copy {
  max-width: var(--reading-max);
  margin-bottom: 28px;
}

.shelf-platform-copy h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.shelf-platform-copy p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.shelf-cards .client-head {
  align-items: flex-start;
}

.shelf-cards .client-card > p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.shelf-cards .client-actions {
  flex-direction: column;
  align-items: stretch;
}

.shelf-cards .client-actions .btn {
  width: 100%;
  min-height: 50px;
  overflow-wrap: anywhere;
}

.shelf-cards .client-actions .btn-primary {
  min-height: 54px;
}

.shelf-requirements {
  margin-top: 36px;
}

.shelf-requirements h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.shelf-block > .panel > .grid {
  margin-top: 24px;
}

.shelf-block > .panel .prose > h3:first-child {
  margin-top: 0;
}

.shelf-block > .panel .prose p:last-child {
  margin-bottom: 0;
}

.shelf-core-table caption {
  padding: 16px 18px;
  background: var(--bg-panel);
  color: var(--text-muted);
  text-align: left;
  font-size: 13px;
}

.shelf-core-table .btn {
  min-height: 48px;
  white-space: nowrap;
}

.shelf-core-table th[scope="row"] {
  font-weight: 600;
}

@media (max-width: 900px) {
  .shelf-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .shelf-route {
    max-width: var(--reading-max);
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shelf-page {
    padding-top: 40px;
  }

  .shelf-block {
    margin-top: 56px;
  }

  .shelf-intro .cta {
    margin-top: 24px;
    gap: 10px;
  }

  .shelf-intro .cta .btn {
    flex: 1 1 180px;
  }

  .shelf-platforms {
    padding: 10px;
    border-radius: var(--r-lg);
  }

  .shelf-section-head {
    margin-bottom: 20px;
  }

  .shelf-cards .client-head {
    gap: 12px;
  }

  .shelf-cards .client-head h3 {
    font-size: 19px;
    overflow-wrap: anywhere;
  }

  .shelf-cards .client-actions .btn {
    padding-inline: 16px;
  }

  .shelf-route-list {
    margin-top: 22px;
    margin-bottom: 22px;
  }
}