/* Shared grouped navigation and section catalogues. */
.topbar .header-inner .page-nav.grouped-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(24px, 5vw, 64px);
  row-gap: 0;
  min-width: 0;
}
.topbar .header-inner .page-nav.grouped-nav a {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 10px 0 9px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.section-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 16px;
  color: var(--muted, #b5bac5);
  font-size: 13px;
  line-height: 1.6;
}
.section-context a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: var(--accent, #edc38c);
  text-decoration: none;
}
.section-context a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-context a:focus-visible { outline: 2px solid var(--accent, #edc38c); outline-offset: 4px; }
.topbar + .section-context {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 48px) 0;
}
body[data-page=section-hub] { min-height: 100svh; display: flex; flex-direction: column; }
body[data-page=section-hub] .section-hub { flex: 1; }
.section-hub {
  width: 100%;
  max-width: 1280px;
  min-height: calc(100svh - 205px);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px) clamp(20px, 4vw, 48px) 72px;
}
.section-hub-heading { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.section-hub-heading h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.35; }
.section-hub-heading p { margin: 14px 0 0; color: var(--muted, #b5bac5); font-size: 15px; line-height: 1.8; }
.section-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.section-hub-grid:has(> .section-hub-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-hub-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ffffff20;
  border-radius: 14px;
  background: #0b0e16;
  color: #f3f3f5;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.section-hub-card:hover { border-color: #b77b35a6; background: #10131d; color: #fff; transform: translateY(-3px); }
.section-hub-card:focus-visible { outline: 2px solid var(--accent, #edc38c); outline-offset: 5px; }
.section-hub-art {
  display: block;
  flex: 0 0 170px;
  width: 100%;
  height: 170px;
  min-width: 0;
  background: radial-gradient(ellipse at 65% 25%, #72502728, transparent 70%), #111621;
  color: var(--accent, #edc38c);
  border-bottom: 1px solid #ffffff12;
}
.section-hub-copy { display: flex; flex: 1; flex-direction: column; gap: 13px; min-width: 0; padding: 24px 22px 26px; }
.section-hub-art .hub-success { stroke: #8ad5a8; }
.section-hub-copy h2 { margin: 0; font-size: 24px; line-height: 1.45; color: #fff; overflow-wrap: anywhere; }
.section-hub-copy p { margin: 0; color: var(--muted, #b5bac5); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.section-hub-copy > :last-child:not(h2):not(p) { margin-top: auto; }
@media (max-width: 1050px) {
  .section-hub-grid,
  .section-hub-grid:has(> .section-hub-card:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-hub { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .topbar .header-inner .page-nav.grouped-nav { column-gap: clamp(16px, 5vw, 28px); }
  .topbar .header-inner .page-nav.grouped-nav a { padding: 7px 0; font-size: 13px; }
  .section-context { margin-bottom: 12px; font-size: 12px; }
  .section-hub { padding: 28px 18px 42px; }
  .section-hub-heading { margin-bottom: 26px; }
  .section-hub-heading p { font-size: 14px; }
  .section-hub-grid,
  .section-hub-grid:has(> .section-hub-card:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .section-hub-copy { padding: 22px 22px 25px; }
  .section-hub-copy h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .section-hub-card { transition: none; }
  .section-hub-card:hover { transform: none; }
}
