/* =============================================================================
   HiveMind — /learn content layer (article + hub extras).
   Loaded alongside commercial.css (light theme). AEO-oriented article styling.
   ========================================================================== */

/* article meta / byline (E-E-A-T) */
.article-meta {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9rem; color: var(--body); margin-bottom: 2rem;
}
.article-meta .author { color: var(--label); font-weight: 600; }
.article-meta .dot { color: var(--border); }

/* answer-first box (the liftable passage answer engines quote) */
.answer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}
.answer p { margin: 0; font-size: 1.1rem; color: var(--label); line-height: 1.6; }

/* pillar: list of articles in the cluster */
.article-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.article-list li {
    border-top: 1px solid var(--border); padding: 1.25rem 0;
}
.article-list a { text-decoration: none; color: var(--heading); font-weight: 600; font-size: 1.1rem; }
.article-list a:hover { color: var(--accent); }
.article-list p { margin: 0.35rem 0 0; color: var(--body); font-size: 0.95rem; }
.article-list .soon { color: var(--body); font-weight: 600; font-size: 1.05rem; }

/* /learn hub: cluster cards */
.hub-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.hub-card {
    display: block; padding: 1.5rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    text-decoration: none; transition: box-shadow 0.2s, border-color 0.2s;
}
.hub-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.hub-card h3 { color: var(--heading); font-size: 1.15rem; margin-bottom: 0.5rem; }
.hub-card p { color: var(--body); font-size: 0.95rem; margin: 0; }
.hub-card .count { display: inline-block; margin-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.hub-card.disabled { opacity: 0.55; pointer-events: none; }

/* Metaphysics capstone — set apart, centered beneath the practical clusters */
.hub-capstone {
    display: block; max-width: 440px; margin: 2.75rem auto 0; padding: 1.75rem 2rem;
    text-align: center; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    text-decoration: none; transition: box-shadow 0.2s, border-color 0.2s;
}
.hub-capstone:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.hub-capstone h3 { color: var(--heading); font-size: 1.25rem; margin-bottom: 0.5rem; }
.hub-capstone p { color: var(--body); font-size: 0.95rem; font-style: italic; margin: 0 auto; max-width: 38ch; }
.hub-capstone .count { display: inline-block; margin-top: 0.85rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* Series navigation beneath an article — tiny type */
.series-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 0; font-size: 0.78rem; letter-spacing: 0.02em; }
.series-nav a { color: var(--muted, #6b7280); text-decoration: none; font-weight: 500; }
.series-nav a:hover { color: var(--accent); }
.series-nav a:last-child { margin-left: auto; }

.badge-soon {
    display: inline-block; font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; padding: 0.15rem 0.5rem; border-radius: 1rem;
    background: var(--accent-light); color: var(--accent-hover); margin-left: 0.5rem; vertical-align: middle;
}

/* a touch more breathing room for in-article product links */
.inline-cta {
    margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--accent-light);
    border-radius: var(--radius-md); font-size: 0.98rem; color: var(--label);
}
.inline-cta a { font-weight: 600; }

/* comparison tables in articles */
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.prose thead th { background: var(--surface); color: var(--heading); font-weight: 600; }
.prose tbody tr:nth-child(even) td { background: #fafcff; }
.prose td:first-child { font-weight: 500; color: var(--label); }
