/* Shared entry-page navigation and compact mobile reading paths. */
body.reader-entry-page .top-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35em;
}

body.reader-entry-page .action-card,
body.reader-entry-page .page-grid > *,
body.reader-entry-page .reader-path-grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.reader-entry-page .search-band {
  padding-block: clamp(24px, 5vw, 48px);
  border-top: 0;
}

body.reader-entry-page .search-band h1 {
  margin: 12px auto;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

body.priority-hub .page-hero {
  min-height: 0 !important;
  padding-block: clamp(28px, 5vw, 64px) !important;
}

body.priority-hub .page-hero h1 {
  max-width: 17ch !important;
  font-size: clamp(40px, 5vw, 68px) !important;
  line-height: 1.05 !important;
}

body.reader-entry-page .site-header .nav-action {
  color: #050505 !important;
  background: #fff !important;
  border: 1px solid #b7b7b7 !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] body.reader-entry-page .site-header .nav-action {
  color: #f7f7f7 !important;
  background: #111 !important;
  border-color: #777 !important;
}

@media (max-width: 760px) {
  body.reader-entry-page .site-header .top-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }

  body.reader-entry-page .site-header .top-nav a {
    display: grid;
    place-items: center;
    min-height: 44px !important;
    padding: 8px 4px !important;
    border: 1px solid currentColor !important;
    border-radius: 4px !important;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 560px) {
  body.reader-entry-page .page-grid,
  body.reader-entry-page .reader-path-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
