/* Vein-Hub — page-specific layout (home hero, day nav, filters, markdown content) */

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy .eyebrow { margin-bottom: 1rem; }
.hero-copy p.lede { font-size: 1.1rem; color: var(--text); max-width: 46ch; }
.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }

.hero-art {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,7,7,0.9) 100%),
              linear-gradient(90deg, rgba(216,30,44,0.12), transparent 60%);
}

/* Day rail (tutorial navigation) */
.day-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: thin;
}
.day-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.17rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.825em 1.5em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
  white-space: nowrap;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.day-pill:hover { color: var(--white); border-color: var(--red-dim); }
.day-pill.active { background: var(--red); border-color: var(--red); color: var(--white); }

.day-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.day-nav a { flex: 1; }
.day-nav a:last-child { text-align: right; }

/* Filter bar (materials / crafting) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5em 0.9em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.filter-chip:hover { color: var(--white); border-color: var(--red-dim); }
.filter-chip.active { background: var(--panel-hover); border-color: var(--red); color: var(--red-bright); }

.draft-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
  border: 1px solid var(--red-dim);
  padding: 0.15em 0.5em;
  border-radius: var(--radius);
}

.stat-row { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 0.75rem 0; }
.stat { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
.stat b { color: var(--white); font-weight: 700; }

/* Resource tag (tutorial task → material/item link): a .tag that can carry a
   full source sentence, so it needs to wrap and drop the uppercase transform
   on the parenthetical part. */
.resource-tag {
  display: inline-block;
  white-space: normal;
  line-height: 1.5;
  max-width: 100%;
}
.resource-tag .source {
  text-transform: none;
  letter-spacing: normal;
  font-style: italic;
  color: var(--text-faint);
}
.resource-tag:hover { color: var(--red-bright); border-color: var(--red-dim); }
.resource-tag:hover .source { color: var(--text-dim); }

/* Markdown content (Updates / Roadmap pages via Parsedown) */
.md-content { max-width: 74ch; }
.md-content h1, .md-content h2, .md-content h3 { margin-top: 1.8em; }
.md-content h1:first-child, .md-content h2:first-child { margin-top: 0; }
.md-content ul, .md-content ol { color: var(--text); padding-left: 1.3em; }
.md-content li { margin-bottom: 0.4em; }
.md-content code {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
}
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.md-content strong { color: var(--white); }
.md-content a { color: var(--red-bright); border-bottom: 1px solid var(--red-dim); }

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
