.page-shell {
  padding-block: 48px 64px;
  min-height: 65vh;
}
.page-intro {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}
.page-intro h1 {
  font-size: clamp(1.8rem, 3.1vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--title);
  margin: 16px 0;
}
.page-intro p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}
.eyebrow-small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--violet-text);
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.hub-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s;
}
.hub-card:hover {
  border-color: var(--link);
}
.hub-card > img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
}
.hub-card-copy {
  min-width: 0;
}
.hub-card h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--indigo-text);
  margin: 8px 0 10px;
}
.hub-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}
.hub-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--link);
  font-weight: 700;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 22px;
}
.catalog-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 30px;
}
.hub-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
}
.hub-heading img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.hub-heading h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--title);
  line-height: 1.2;
  margin: 0 0 8px;
}
.hub-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 24px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 680px;
}
.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.resource-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 16px;
}
.resource-section summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--indigo-text);
}
.resource-section summary > span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 10px;
}
.resource-section ul {
  list-style: none;
  margin: 0;
  padding: 0 22px 12px;
}
.resource-section li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.resource-section a {
  display: block;
  text-decoration: none;
  min-width: 0;
}
.resource-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
}
.resource-desc {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
  line-height: 1.65;
}
.resource-origin {
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  color: var(--muted);
}
.fallback-nav {
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.error-page {
  min-height: 65vh;
  padding-block: 72px;
}
.error-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--title);
  line-height: 1.3;
}
.error-page p {
  max-width: 65ch;
  color: var(--muted);
}
@media (max-width: 760px) {
  .page-shell {
    padding-block: 32px 40px;
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .hub-card {
    padding: 22px;
    gap: 14px;
  }
  .hub-card > img {
    width: 42px;
    height: 42px;
  }
  .page-intro {
    text-align: left;
  }
  .hub-heading {
    align-items: flex-start;
  }
  .search-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .resource-section li {
    flex-direction: column;
    gap: 8px;
  }
  .resource-section summary {
    padding: 16px;
  }
  .resource-section ul {
    padding-inline: 16px;
  }
  .resource-origin {
    white-space: normal;
  }
}
