/**
 * Hub -- Tesla / xAI / X monochrome system for jonbailey.xyz
 * Pure black canvas, white primary, cool greys. Premium restraint.
 * Accents on project cards collapse to monochrome weight (not multicolor).
 */

:root,
html[data-theme="dark"] {
  --hub-line: rgba(255, 255, 255, 0.1);
  --hub-line-strong: rgba(255, 255, 255, 0.2);
  --hub-glass: rgba(12, 12, 12, 0.72);
  --hub-glass-border: rgba(255, 255, 255, 0.1);
  --hub-elev: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --hub-elev-hover: 0 28px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --hub-shimmer-a: rgba(255, 255, 255, 0.03);
  --hub-shimmer-b: rgba(255, 255, 255, 0.07);
  --card-accent: #ffffff;
}

html[data-theme="light"] {
  --hub-line: rgba(0, 0, 0, 0.08);
  --hub-line-strong: rgba(0, 0, 0, 0.16);
  --hub-glass: rgba(255, 255, 255, 0.82);
  --hub-glass-border: rgba(0, 0, 0, 0.08);
  --hub-elev: 0 16px 40px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --hub-elev-hover: 0 22px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.1);
  --hub-shimmer-a: rgba(0, 0, 0, 0.03);
  --hub-shimmer-b: rgba(0, 0, 0, 0.06);
  --card-accent: #0a0a0a;
}

/* ---- Proof strip (under hero) ---- */
.hub-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  background: var(--bg-elevated);
}

.hub-proof-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.5rem;
}

.hub-proof-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-subtle, var(--text-muted));
}

.hub-proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  justify-content: center;
}

.hub-proof-list a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.hub-proof-list a:hover,
.hub-proof-list a:focus-visible {
  color: var(--text);
}

/* ---- Shared hub section chrome ---- */
.hub-section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.hub-section::before {
  content: none;
}

.hub-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hub-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  font-weight: 500;
}

.hub-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.9rem;
  color: var(--text);
}

.hub-lead {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  margin: 0 0 2.25rem;
  font-weight: 300;
}

.hub-lead strong {
  color: var(--text);
  font-weight: 500;
}

.hub-lead a {
  color: var(--text);
  border-bottom: 1px solid var(--hub-line-strong);
  transition: border-color 0.2s var(--ease);
}

.hub-lead a:hover,
.hub-lead a:focus-visible {
  border-bottom-color: var(--text);
}

/* ---- Language switcher (hub) ---- */
.lang-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.75rem 0.55rem 0.85rem;
  min-height: 40px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 10px) 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.lang-select:hover,
.lang-select:focus-visible {
  color: var(--text);
  border-color: var(--border-strong, var(--border));
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[dir="rtl"] .lang-select {
  padding: 0.55rem 0.85rem 0.55rem 1.75rem;
  background-position: 14px 55%, 10px 55%;
}

/* ---- Pulse feed (collapsed by default, below Projects) ---- */
.hub-pulse {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.pulse-fold {
  border-radius: 16px;
  border: 1px solid var(--hub-line, var(--border));
  background: var(--bg-card, var(--hub-glass));
  overflow: hidden;
}

.pulse-fold-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "eyebrow chevron"
    "title chevron"
    "hint chevron";
  gap: 0.2rem 1rem;
  align-items: center;
  padding: 1.15rem 1.35rem;
  min-height: 52px;
}

.pulse-fold-summary::-webkit-details-marker {
  display: none;
}

.pulse-fold-summary .hub-eyebrow {
  grid-area: eyebrow;
  margin: 0;
}

.pulse-fold-summary .hub-title {
  grid-area: title;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.pulse-fold-hint {
  grid-area: hint;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.4;
}

.pulse-fold-summary::after {
  content: "+";
  grid-area: chevron;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold, var(--text-muted));
  justify-self: end;
  align-self: center;
}

.pulse-fold[open] .pulse-fold-summary::after {
  content: "\2212";
}

.pulse-fold[open] .pulse-fold-hint {
  /* keep hint visible when open for context, or mute it */
  opacity: 0.85;
}

.pulse-fold-body {
  padding: 0 1.35rem 1.35rem;
  border-top: 1px solid var(--hub-line, var(--border));
  padding-top: 1.15rem;
}

.pulse-fold-summary:focus-visible {
  outline: 2px solid var(--accent, var(--gold));
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .pulse-fold-summary {
    transition: none;
  }
}

.pulse-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pulse-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1.15rem;
  align-items: start;
  padding: 1.05rem 1.2rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--hub-line);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.pulse-item:hover,
.pulse-item:focus-within {
  border-color: var(--hub-line-strong);
  transform: translateY(-1px);
  box-shadow: var(--hub-elev);
}

.pulse-date {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle, var(--text-muted));
  white-space: nowrap;
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.pulse-body {
  min-width: 0;
}

.pulse-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
}

.pulse-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 550;
  margin: 0 0 0.3rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.pulse-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 300;
}

.pulse-link {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  align-self: center;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding: 0.35rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  transition: border-color 0.2s var(--ease);
}

.pulse-item:hover .pulse-link,
.pulse-link:focus-visible {
  border-bottom-color: var(--text);
}

@media (max-width: 720px) {
  .pulse-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .pulse-link {
    justify-self: start;
  }
}

/* ---- Project cards (bento) ---- */
.hub-projects {
  border-bottom: 1px solid var(--border);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.85rem;
}

.project-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.45rem 1.4rem 1.35rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--hub-line);
  box-shadow: none;
  min-height: 100%;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  opacity: 0.55;
}

html[data-theme="light"] .project-card::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.2),
    transparent
  );
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--hub-line-strong);
  box-shadow: var(--hub-elev-hover);
  background: var(--bg-elevated);
}

/* Monochrome: all accents map to text weight, not rainbow */
.project-card[data-accent],
.project-card[data-accent="warm-gold"],
.project-card[data-accent="orbital-teal"],
.project-card[data-accent="ethereal-cyan"],
.project-card[data-accent="shadow-charcoal"],
.project-card[data-accent="clean-professional"] {
  --card-accent: var(--text);
}

.project-card--featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.35rem 2rem;
  padding: 1.85rem 1.75rem 1.65rem;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--bg-card);
  border-color: var(--hub-line-strong);
}

html[data-theme="light"] .project-card--featured {
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(0, 0, 0, 0.03), transparent 55%),
    var(--bg-card);
}

.project-card--featured .project-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.project-card--featured .project-card-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .project-card--featured .project-card-aside {
  background: rgba(0, 0, 0, 0.02);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--hub-line);
  background: transparent;
  font-weight: 500;
}

.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .project-status::before {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 600;
  color: var(--text);
}

.project-tagline {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.project-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  font-weight: 300;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-tags li {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hub-line);
  font-weight: 500;
}

.project-latest {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 400;
}

.project-latest span {
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6rem;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  width: fit-content;
  border: 1px solid var(--hub-line-strong);
  color: var(--text);
  background: transparent;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.project-cta:hover,
.project-cta:focus-visible {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
}

.project-card--featured .project-cta {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.project-card--featured .project-cta:hover,
.project-card--featured .project-cta:focus-visible {
  background: transparent;
  color: var(--text);
}

/* Laboratory expandable */
.lab-fold {
  margin-top: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--hub-line);
  background: var(--bg-card);
  overflow: hidden;
}

.lab-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  color: var(--text);
}

.lab-fold > summary::-webkit-details-marker {
  display: none;
}

.lab-fold > summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 300;
}

.lab-fold[open] > summary::after {
  content: "\2212";
}

.lab-fold-body {
  padding: 0 1.3rem 1.4rem;
  border-top: 1px solid var(--hub-line);
  padding-top: 1.15rem;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.75rem;
}

.lab-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.05rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--hub-line);
  background: var(--bg);
  min-height: 100%;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.lab-card:hover,
.lab-card:focus-within {
  border-color: var(--hub-line-strong);
  transform: translateY(-1px);
}

.lab-card h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin: 0;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text);
}

.lab-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  flex: 1;
  font-weight: 300;
}

.lab-card a {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 0.35rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border-color 0.2s var(--ease);
}

.lab-card a:hover,
.lab-card a:focus-visible {
  border-bottom-color: var(--text);
}

/* ---- About hub strip ---- */
.hub-about {
  border-bottom: 1px solid var(--border);
}

.hub-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.25rem;
  align-items: start;
}

.hub-about-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 40rem;
  font-weight: 300;
}

.hub-about-copy p strong {
  color: var(--text);
  font-weight: 500;
}

.hub-disambig {
  padding: 1.2rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 300;
}

.hub-disambig strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 600;
  font-size: 0.95rem;
}

.hub-disambig a {
  color: var(--text);
  border-bottom: 1px solid var(--hub-line-strong);
}

.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
  list-style: none;
  padding: 0;
}

.hub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--hub-line);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.hub-links a:hover,
.hub-links a:focus-visible {
  border-color: var(--text);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .hub-links a:hover,
html[data-theme="light"] .hub-links a:focus-visible {
  background: rgba(0, 0, 0, 0.03);
}

/* ---- FAQ (AEO) ---- */
.hub-faq {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 48rem;
}

.faq-item {
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-a {
  padding: 0 1.2rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-a {
  border-top-color: var(--hub-line);
  padding-top: 0.9rem;
}

.faq-item .faq-a a {
  color: var(--text);
  border-bottom: 1px solid var(--hub-line-strong);
}

/* ---- Connect hub ---- */
.hub-connect-band {
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.hub-connect-band .hub-lead {
  margin-inline: auto;
}

.hub-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.hub-connect-actions a {
  min-height: 48px;
}

/* ---- Nav projects accent (mono) ---- */
.nav-links a[data-nav="projects"] {
  color: var(--text);
}

/* ---- Music bridge ---- */
.hub-music-bridge {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.hub-music-bridge p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 300;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .pulse-item,
  .lab-card,
  .project-cta {
    transition: none !important;
  }
  .project-card:hover,
  .pulse-item:hover,
  .lab-card:hover {
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .project-card,
  .project-card--featured {
    grid-column: span 12;
  }
  .project-card--featured {
    grid-template-columns: 1fr;
  }
  .hub-about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hub-inner {
    width: min(100% - 1.5rem, 1120px);
  }
  .project-card {
    padding: 1.2rem 1.1rem;
  }
  .hub-proof-inner {
    width: min(100% - 1.5rem, 1120px);
  }
}

/* Skeleton while data loads */
.hub-skeleton {
  min-height: 4.5rem;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--hub-shimmer-a),
    var(--hub-shimmer-b),
    var(--hub-shimmer-a)
  );
  background-size: 200% 100%;
  animation: hub-shimmer 1.2s ease-in-out infinite;
  border: 1px solid var(--hub-line);
}

@media (prefers-reduced-motion: reduce) {
  .hub-skeleton {
    animation: none;
  }
}

@keyframes hub-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.hub-error {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem;
  border: 1px dashed var(--hub-line);
  border-radius: 12px;
}
