/* =========================================================
   Blog styles.css (drop-in replacement)
   Scoped, predictable, and designed for:
   - /post.php and /index.php output wrapped in .blog-wrap
   - post bodies rendered inside .blog-body
   - your current post HTML using:
        .article-wrap, .article-head, .hero, .hero-img, .hero-caption,
        .article-deck, .evidence-list, .evidence-title, .evidence-points,
        .article-bottom-line
   ========================================================= */

/* Base shell */
.blog-wrap {
    --bg: #ffffff;
    --text: #1f2328;
    --muted: #66707a;
    --border: #e6e6e6;
    --soft: #f6f7f8;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.06);
    --radius: 16px;

    max-width: 760px;
    margin: 52px auto;
    padding: 0 20px;

    background: var(--bg);
    color: var(--text);

    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.7;
}

/* Headings */
.blog-wrap h1,
.blog-wrap h2,
.blog-wrap h3 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 12px 0;
}

.blog-wrap h1 {
    font-size: 2.05rem;
}

.blog-wrap h2 {
    font-size: 1.35rem;
    margin-top: 26px;
}

.blog-wrap h3 {
    font-size: 1.15rem;
    margin-top: 18px;
}

/* Meta + deck */
.blog-meta {
    margin: 6px 0 16px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.blog-deck,
.article-deck {
    margin: 0 0 14px 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 600;
}

/* Links */
.blog-wrap a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-wrap a:hover {
    text-decoration-thickness: 2px;
}

/* Cards on index */
.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin: 0 0 14px 0;
    box-shadow: var(--shadow-soft);
}

.blog-card-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
}

.blog-card-title a {
    text-decoration: none;
}

.blog-card-title a:hover {
    text-decoration: underline;
}

/* Body typography */
.blog-body {
    margin-top: 10px;
}

.blog-body p {
    margin: 0 0 14px 0;
}

.blog-body ul,
.blog-body ol {
    margin: 0 0 16px 0;
    padding-left: 1.25rem;
}

.blog-body li {
    margin: 6px 0;
}

.blog-body blockquote {
    margin: 18px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--border);
    background: var(--soft);
    border-radius: 12px;
    color: var(--text);
}

/* Callouts */
.blog-body .callout,
.blog-body .article-bottom-line {
    margin: 18px 0;
    padding: 14px 16px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-weight: 600;
}

/* Images */
.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Code */
.blog-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95em;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 6px;
}

.blog-body pre {
    margin: 18px 0;
    padding: 14px 16px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: auto;
}

.blog-body pre code {
    background: transparent;
    border: 0;
    padding: 0;
}

/* Tables */
.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.98rem;
}

.blog-body th,
.blog-body td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}

.blog-body th {
    background: var(--soft);
}

/* ---------------------------------------------------------
   Article wrapper (optional, matches your post HTML)
   --------------------------------------------------------- */
.blog-body .article-wrap {
    max-width: 100%;
}

.blog-body .article-head {
    margin: 0 0 18px 0;
}

/* Hero (matches your post HTML: .hero, .hero-img, .hero-caption) */
.blog-body .hero {
    margin: 0 0 10px 0;
}

.blog-body .hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.blog-body .hero-caption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ---------------------------------------------------------
   Evidence list: keep real <ol> numbering, but style it
   --------------------------------------------------------- */
.blog-body .evidence-list {
    margin: 18px 0 0 0;
    padding-left: 1.6rem;
}

.blog-body .evidence-list > li {
    margin: 0 0 20px 0;
}

.blog-body .evidence-list > li::marker {
    font-weight: 900;
    font-size: 1.05rem;
    color: #111;
    letter-spacing: -0.01em;
}

.blog-body .evidence-title {
    display: inline-block;
    margin: 0 0 0 6px;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* Evidence points: lighter markers, clear hierarchy */
.blog-body .evidence-points {
    margin: 10px 0 0 0;
    padding-left: 1.1rem;
}

.blog-body .evidence-points li {
    margin: 10px 0;
}

.blog-body .evidence-points li::marker {
    color: #9aa0a6;
    font-size: 0.85rem;
}

/* ---------------------------------------------------------
   Forms (admin pages wrapped in .blog-wrap)
   --------------------------------------------------------- */
.blog-wrap input[type="text"],
.blog-wrap input[type="password"],
.blog-wrap textarea,
.blog-wrap select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
}

.blog-wrap textarea {
    min-height: 260px;
    resize: vertical;
}

.blog-wrap button {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.blog-wrap button:hover {
    opacity: 0.92;
}

/* Small screens */
@media (max-width: 520px) {
    .blog-wrap {
        margin: 34px auto;
    }

    .blog-wrap h1 {
        font-size: 1.85rem;
    }

    .blog-body .evidence-list {
        padding-left: 1.35rem;
    }
}

/* =========================================================
   CSS HYGIENE REVIEW
   v1 — 2026-02-14
   ========================================================= */


/* Byline mobile stacking */
@media (max-width: 520px) {
    .blog-meta .byline-author {
        display: block;
    }
    .blog-meta .byline-date {
        display: block;
        margin-top: 2px;
    }
}



.blog-body .sources {
    margin-top: 10px;
    padding-left: 1.1rem;
}

.blog-body .sources li {
    margin: 8px 0;
    color: var(--text);
}

.blog-body .sources a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
