/* ============================================================
   NCrypted.net - Blog (ncrypted.net/blog)
   Ink + amber theme. Loaded AFTER net-theme.css (section base).
   ============================================================ */

.blog-wrap { max-width: 820px; margin: 0 auto; }

/* ---------- Post header ---------- */
.blog-hero {
    background: var(--net-bg-soft);
    border-bottom: 1px solid var(--net-line);
    padding: 40px 0 30px;
}
.blog-crumb {
    font-size: 13px; color: var(--net-muted); margin-bottom: 16px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.blog-crumb a { color: var(--net-muted); text-decoration: none; }
.blog-crumb a:hover { color: var(--net-ink); }
.blog-crumb-sep { color: var(--net-line); }
.blog-crumb-cur { color: var(--net-ink); font-weight: 600; }

.blog-title {
    font-size: 40px; line-height: 1.16; font-weight: 800;
    color: var(--net-ink); margin: 10px 0 14px; letter-spacing: -0.4px;
}
.blog-meta {
    font-size: 14px; color: var(--net-muted); margin: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.blog-meta strong { color: var(--net-ink); }
.blog-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--net-line); display: inline-block; }

/* ---------- Index hero ---------- */
.blog-hero-sm { padding: 66px 0 62px; }
.blog-hero-inner { grid-template-columns: 1fr; gap: 0; max-width: 760px; }
.blog-hero-sm h1 { font-size: 46px; margin: 8px 0 14px; }
.blog-hero-sm .net-hero-sub { max-width: 680px; }

/* ---------- Article body ---------- */
.blog-main { padding: 44px 0 56px; }
.blog-featured { margin: 0 0 30px; }
.blog-featured img {
    width: 100%; height: auto; border-radius: var(--net-radius);
    display: block; max-height: 460px; object-fit: cover;
}
.blog-body { font-size: 17px; line-height: 1.75; color: var(--net-text); }
.blog-body > *:first-child { margin-top: 0; }
.blog-body p { margin: 0 0 18px; }
.blog-body h2 { font-size: 27px; line-height: 1.25; font-weight: 800; color: var(--net-ink); margin: 40px 0 14px; }
.blog-body h3 { font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--net-ink); margin: 30px 0 12px; }
.blog-body h4 { font-size: 18px; font-weight: 700; color: var(--net-ink); margin: 24px 0 10px; }
.blog-body a { color: var(--net-accent); text-decoration: underline; text-underline-offset: 3px; }
.blog-body a:hover { color: var(--net-accent-3); }
.blog-body ul, .blog-body ol { margin: 0 0 18px; padding-left: 24px; }
.blog-body li { margin-bottom: 8px; }
.blog-body img { max-width: 100%; height: auto; border-radius: var(--net-radius); display: block; margin: 22px auto; }
.blog-body figure { margin: 24px 0; }
.blog-body figure img { margin: 0 auto; }
.blog-body figcaption { font-size: 13px; color: var(--net-muted); text-align: center; margin-top: 8px; }
.blog-body blockquote {
    border-left: 4px solid var(--net-accent-2); background: var(--net-bg-soft);
    margin: 24px 0; padding: 14px 20px; border-radius: 0 var(--net-radius) var(--net-radius) 0;
    color: var(--net-ink); font-style: italic;
}
.blog-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.blog-body th, .blog-body td { border: 1px solid var(--net-line); padding: 10px 12px; text-align: left; }
.blog-body th { background: var(--net-bg-soft); font-weight: 700; color: var(--net-ink); }
.blog-body hr { border: 0; border-top: 1px solid var(--net-line); margin: 34px 0; }

/* ---------- Author bio panel (NO profile link) ---------- */
.blog-author {
    display: flex; gap: 16px; align-items: flex-start; margin-top: 40px;
    padding: 22px; background: var(--net-bg-soft);
    border: 1px solid var(--net-line); border-radius: var(--net-radius);
}
.blog-author-photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blog-author-mark {
    width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
    background: var(--net-ink); color: var(--net-accent-2);
    display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
}
.blog-author-tx { display: flex; flex-direction: column; }
.blog-author-name { font-weight: 800; color: var(--net-ink); font-size: 16px; }
.blog-author-role { font-size: 13px; color: var(--net-muted); margin-bottom: 8px; }
.blog-author-bio { margin: 0; font-size: 14px; color: var(--net-text); line-height: 1.6; }

/* ---------- Cards (index + related) ---------- */
.blog-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--net-paper); border: 1px solid var(--net-line);
    border-radius: var(--net-radius); text-decoration: none; color: var(--net-text);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--net-shadow); border-color: var(--net-accent-2); }
.blog-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--net-bg-soft); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.blog-card:not(.blog-card-has-img) .blog-card-body { padding-top: 22px; }
.blog-card-cat {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
    font-weight: 700; color: var(--net-accent-3); margin-bottom: 9px;
}
.blog-card h3 { font-size: 18px; line-height: 1.34; font-weight: 700; color: var(--net-ink); margin: 0 0 10px; }
.blog-card p {
    font-size: 14px; color: var(--net-muted); margin: 0 0 16px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--net-accent); }
.blog-related { border-top: 1px solid var(--net-line); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .blog-title { font-size: 30px; }
    .blog-hero-sm h1 { font-size: 32px; }
    .blog-body { font-size: 16px; }
    .blog-body h2 { font-size: 23px; }
    .blog-main { padding: 32px 0 44px; }
}

/* author archive link */
.blog-author-all { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--net-accent); text-decoration: none; }
.blog-author-all:hover { text-decoration: underline; }
a.net-eyebrow { text-decoration: none; }
