/* ═══════════════════════════════════════════════════════════════════════════
   M4BConvert — Article Hub Styles
   Reuses the shared token system declared in index.css (:root). No new
   colors are introduced here — only layout for the terminal-style index.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page shell (mirrors .landing-main, narrower for reading) ── */
.article-hub-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.5rem 1.5rem 5rem;
  gap: 3rem;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

/* ── Terminal window ── */
.term-window {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.term-dots { display: flex; gap: 0.32rem; flex-shrink: 0; }
.term-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.term-bar-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.term-body {
  padding: 1.4rem 1.5rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.term-line { white-space: pre-wrap; }
.term-prompt-sym { color: var(--accent-light); }
.term-cmd { color: var(--text); }
.term-dim { color: var(--text-dim); }

.term-cursor {
  display: inline-block;
  width: 6px;
  height: 1em;
  background: var(--text-dim);
  margin-left: 0.35rem;
  vertical-align: -2px;
  animation: term-blink 1s steps(1, end) infinite;
}
@keyframes term-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term-cursor { animation: none; } }

/* ── Listing (ls -la style rows) ── */
.term-listing { margin: 0.9rem 0 0.35rem; }

.term-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.6rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.term-entry:hover { background: var(--bg-hover); }
.term-entry:hover .term-entry-name { color: var(--text); }
.term-entry:hover .term-entry-arrow { color: var(--accent-light); transform: translateX(2px); }

.term-entry-perm {
  flex: 0 0 92px;
  font-size: 0.76rem;
  color: var(--text-dim);
  padding-top: 0.15rem;
}
.term-entry-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.term-entry-headline { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.term-entry-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-ring);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}
.term-entry-meta { font-size: 0.76rem; color: var(--text-dim); }
.term-entry-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.term-entry-arrow {
  margin-left: auto;
  align-self: center;
  color: var(--text-dim);
  display: inline-flex;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.term-entry-desc { font-size: 0.78rem; color: var(--text-dim); }

.term-comment { color: var(--text-dim); margin-top: 0.4rem; display: block; }

/* ── Hub footer note ── */
.article-hub-note {
  font-size: 0.84rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 480px;
  line-height: 1.6;
}

/* ── Homepage "from the articles" teaser card ── */
.article-promo {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.article-promo:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.article-promo-head {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
}
.article-promo-path { font-size: 0.74rem; color: var(--text-dim); }
.article-promo-body { flex: 1; min-width: 0; padding: 1rem 1.1rem; }
.article-promo-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.article-promo-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.article-promo .tool-arrow { margin-right: 1.1rem; flex-shrink: 0; }

@media (max-width: 560px) {
  .article-promo { flex-direction: column; align-items: stretch; }
  .article-promo-head { flex-direction: row; align-items: center; border-right: none; border-bottom: 1px solid var(--border); }
  .article-promo-body { padding: 0.9rem 1.1rem 1.1rem; }
  .article-promo .tool-arrow { display: none; }
}


@media (max-width: 560px) {
  .term-entry-perm { display: none; }
}
