/* ─────────────────────────────────────────────────────────────
   hub.css — additions for the multi-page version.
   Loaded after base.css and style.css. Uses the existing
   design tokens only, so light/dark mode both work.
   ───────────────────────────────────────────────────────────── */

/* ── Skip link (accessibility + crawlable landmark) ── */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: var(--space-4) 0 0;
  background: var(--color-bg);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.breadcrumb li { max-width: none; }
.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--color-text-faint);
}
.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-text-muted); }

/* ── Hub card grid (homepage) ── */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 640px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }

.hub-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.hub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.hub-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.hub-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}
.hub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-2);
}
.hub-card:hover .hub-card-cta { color: var(--color-primary-hover); }

/* ── Quick answers definition list (homepage) ── */
.quick-facts { margin: 0; }
.quick-facts dt {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.quick-facts dt:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.quick-facts dd {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 68ch;
}
.quick-facts dd a { color: var(--color-primary); font-weight: 500; }

/* ── "Explore the rest of the hub" internal link block ── */
.related-section { border-top: 1px solid var(--color-divider); }
.related-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}
@media (min-width: 700px) { .related-list { grid-template-columns: repeat(2, 1fr); } }

.related-list li { max-width: none; }
.related-list a {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition-interactive),
              background var(--transition-interactive);
}
.related-list a:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-offset);
}
.related-list strong {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}
.related-list span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Multi-page fix: page-view is always visible now ── */
main.page-view,
main.page-view.active { display: block; }
