/* Hub archives (/eat/ /do/) — mirrors SPA components/Partners.jsx EatHub/DoHub
 * + shared.jsx HubIntentGrid. SPA carries these rules as inline styles; the
 * WP `.va-hub-*` classes are the parity bridge.
 *
 * Visual contract:
 *  - No image hero. Paper background, text-only intro.
 *  - Intent grid: 3-col on desktop, 4:3 image card + content padding.
 *  - First viewport: hero (~360px) + grid headline + start of cards.
 */

/* ── Intro (hero replacement) ──────────────────────────────────────── */
/* display:flex collapses leading whitespace text nodes that PHP preserves
 * between <section> and the first <div> child (JSX trims them; PHP doesn't).
 * Without this, the anonymous-block box added ~6px above the breadcrumb on
 * WP, shifting every subsequent element down. */
.va-hub-intro {
  padding: 64px 48px 32px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.va-hub-intro > * { width: 100%; }
.va-hub-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.va-hub-crumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.va-hub-crumb span:not(:first-of-type) { color: var(--ink); }
.va-hub-h1 {
  margin: 14px 0 0;
  font-size: clamp(56px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.va-hub-lede {
  margin-top: 22px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.55;
}

/* ── Intent grid ───────────────────────────────────────────────────── */
.va-hub-intent {
  padding: 24px 48px 12px;
  /* Same PHP-whitespace collapse fix as .va-hub-intro. */
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.va-hub-intent-title {
  margin: 10px 0 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.va-hub-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.va-hub-card {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  display: grid;
  grid-template-rows: auto 1fr;
}
.va-hub-card:hover { border-color: var(--ink); }
.va-hub-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.va-hub-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.va-hub-card-body {
  padding: 20px;
}
.va-hub-card-body .eyebrow {
  font-size: 10px;
  color: var(--muted);
}
.va-hub-card-body .eyebrow.is-accent { color: var(--terracotta); }
.va-hub-card-title {
  margin: 8px 0 8px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.va-hub-card-body-p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.va-hub-card-meta {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ionian);
}

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .va-hub-intro { padding: 24px 24px 16px; }
  .va-hub-h1 { font-size: clamp(40px, 11vw, 56px); }
  .va-hub-lede { font-size: 16px; margin-top: 18px; }
  .va-hub-intent { padding: 18px 24px 10px; }
  .va-hub-intent-title { font-size: 32px; }
  .va-hub-intent-grid { grid-template-columns: 1fr; gap: 14px; }
  .va-hub-card-media { aspect-ratio: 16 / 9; }
  .va-hub-card-body { padding: 18px; }
  .va-hub-card-title { font-size: 25px; }
}
