/* Blog hub + article pages (linked per-page by Blog.razor, ArticleLayout.razor,
   and the Home teaser section). Global tokens come from 01-foundation.css. */

/* ---------- hub + teaser cards ---------- */

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.blog-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(23, 25, 28, .12), 0 10px 30px rgba(23, 25, 28, .10);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.blog-card-title {
    font-size: 1.1rem;
}

.blog-card-blurb {
    font-size: 14.5px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 13px;
    color: var(--silver-500);
}

.blog-listing-note {
    margin-top: 28px;
}

/* ---------- article shell ---------- */

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.article-breadcrumbs a {
    color: var(--gold-400);
}

.article-breadcrumbs span {
    color: var(--silver-500);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    color: var(--silver-100);
    font-size: 14.5px;
}

.article-container {
    max-width: 800px;
}

/* ---------- article body typography ---------- */

.article-body p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.article-body h2 {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-500);
    margin: 26px 0 14px;
}

.article-body h3 {
    margin: 20px 0 10px;
}

.article-body ul {
    margin: 0 0 16px 22px;
    color: var(--steel-700);
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-answer {
    background: var(--gold-100);
    border-left: 4px solid var(--gold-500);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    line-height: 1.7;
}

.article-formula {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--charcoal-900);
    background: var(--off-white);
    border: 1px solid var(--silver-100);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-align: center;
}

/* ---------- prev/next navigation ---------- */

.article-next {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.article-next-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.article-next-card:hover {
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(23, 25, 28, .12);
}

.article-next-forward {
    text-align: right;
    align-items: flex-end;
}

.article-next-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold-600);
}

.article-next-title {
    font-weight: 600;
    color: var(--charcoal-900);
}

.article-all-link {
    margin-top: 18px;
}
