/* Shared by the blog list (index.html) and every post page. */

/* Full-width hero image, fixed and vertically centred behind the page; the post column
   scrolls over it in a 90%-opaque panel, so posts can be any length. */
.blog-hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 120px 16px 60px;
    background: var(--bg) url('../../../img-ai-trader.svg?v=6') center center / 100% auto no-repeat fixed;
}
.blog-panel {
    position: relative; z-index: 1;
    width: 80%;
    background: rgba(17, 17, 17, .9);   /* --surface at 10% transparency */
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(2px);
}
.blog-panel .back { display: inline-block; color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }
.blog-panel .back:hover { color: var(--accent); }
.blog-panel .back + .back { margin-left: 1.5rem; }

/* List of posts */
.post-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.post-list li + li { border-top: 1px solid var(--border); }
.post-list a { display: block; padding: 1.25rem 0; color: var(--text); text-decoration: none; }
.post-list a:hover .post-title { color: var(--accent); }
.post-list time { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .35rem; font-variant-numeric: tabular-nums; }
.post-list .post-title { font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.3; margin: 0; }

/* One post */
.post time { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.post h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.post .body { color: var(--text); line-height: 1.8; }
.post .body p, .post .body ul, .post .body .tbl-wrap { margin-top: 1rem; }
.post .body h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 2.25rem 0 .25rem; }
.post .body ul { padding-left: 1.25rem; }
.post .body li + li { margin-top: .4rem; }
.post .body em { color: var(--accent); font-style: normal; }
.post .body a { color: var(--accent); }
.post .body code { font-size: .9em; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0 .3em; }
.post .body .byline { color: var(--muted); font-size: .9rem; }
.tbl-wrap { overflow-x: auto; }
.post table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.post th, .post td { padding: .55rem .6rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.post th { color: var(--muted); font-weight: 500; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.post td.g { font-family: 'Archivo Black', sans-serif; font-size: 1.1rem; white-space: nowrap; }
.post td.n { text-align: center; font-variant-numeric: tabular-nums; }
.post td.t { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }

@media (max-width: 768px) {
    .blog-hero { padding: 100px 16px 40px; background-size: cover; }
    .blog-panel { width: 100%; padding: 1.5rem; }
}
