/* blog_shell.html: the five visual/structural gaps from marketing's competitor
   benchmark (spec ops/specs/2026-09-04-blog-visual-structural-rebuild.md).
   Every rule here is scoped under a .tb-* class blog_shell.html is the only
   template that renders, so this file has zero effect on any other page type.
   Uses the same tokens and inline-style conventions the 137 post files already
   use (var(--sans)/var(--text)/var(--text-dim)/var(--border)/var(--radius)),
   not the app's four-size/three-weight scale, which is scoped to app_shell.html/
   report_shell.html/auth_base.html descendants only (scripts/lint_content.py
   app_templates()) and never touched blog pages. */

.tb-hero {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 32px;
}
.tb-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.tb-freshness {
    color: var(--text-muted);
}

.tb-tldr {
    max-width: 720px;
    margin: 20px auto 0;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}
.tb-tldr :first-child { margin-top: 0; }
.tb-tldr :last-child { margin-bottom: 0; }
.tb-tldr p, .tb-tldr li {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--text-dim);
    line-height: 1.7;
}

.tb-toc {
    max-width: 720px;
    margin: 20px auto 0;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-sizing: border-box;
}
.tb-toc-label {
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.tb-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}
.tb-toc a {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: none;
    line-height: 1.4;
}
.tb-toc a:hover { color: var(--accent); text-decoration: underline; }

.tb-author-card {
    max-width: 720px;
    margin: 40px auto 0;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}
.tb-author-avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--ink-text);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
}
.tb-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tb-author-name {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}
.tb-author-name a { color: inherit; text-decoration: none; }
.tb-author-name a:hover { text-decoration: underline; }
.tb-author-title {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Desktop: the TOC floats beside the centered 720px article, matching the
   AirOps/Profound sidebar pattern marketing cited. Below this width there
   is not enough room beside a centered column for a 230px panel not to
   overlap or run off-screen, so it stays a normal in-flow card instead
   (the "collapsed/expandable block on mobile" D1 asks for; a bordered card
   the reader can skip is the collapsed state, not a JS accordion, to avoid a
   second interaction pattern for one box). */
@media (min-width: 1400px) {
    .tb-toc {
        position: fixed;
        top: 140px;
        left: calc(50% + 390px);
        width: 230px;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        margin: 0;
    }
}

@media (max-width: 640px) {
    .tb-author-card { flex-direction: column; align-items: flex-start; }
}
