/* =============================================
   Blog Post Page Styles
   Shared across all generated blog posts
   ============================================= */

.post-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 15px 4rem;
}

.post-hero {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 2rem;
}

.post-hero-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.post-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-hero-meta .sep { color: var(--divider); }

.post-hero h1 {
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-hero .post-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

.post-tags-hero {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.post-tags-hero a {
    font-size: 12px;
    color: var(--text-light);
    border: 1px solid var(--divider);
    padding: 2px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.post-tags-hero a:hover { color: var(--theme); border-color: var(--theme); }

/* ---- Body typography ---- */
.post-content { font-size: 16.5px; line-height: 1.85; font-weight: 300; }
.post-content p { margin-bottom: 1.4rem; }

.post-content h2 {
    font-size: 1.45rem;
    font-weight: 500;
    margin: 2.5rem 0 0.9rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--divider);
}
.post-content h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 2rem 0 0.6rem;
}
.post-content h4 {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 1.5rem 0 0.4rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.4rem;
}
.post-content li { margin-bottom: 0.4rem; line-height: 1.75; }
.post-content strong { font-weight: 500; }
.post-content em { font-style: italic; }

.post-content blockquote {
    margin: 1.8rem 0;
    padding: 1rem 1.4rem;
    border-left: 3px solid var(--theme);
    background: rgba(0,0,0,0.02);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    font-size: 15.5px;
    color: var(--text-light);
}
html[data-theme="dark"] .post-content blockquote { background: rgba(255,255,255,0.03); }
.post-content blockquote p { margin-bottom: 0; }

.post-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13.5px;
    background: rgba(0,0,0,0.05);
    padding: 1px 5px;
    border-radius: 3px;
}
html[data-theme="dark"] .post-content code { background: rgba(255,255,255,0.08); }

.post-content pre {
    background: rgba(0,0,0,0.04);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    margin-bottom: 1.4rem;
}
html[data-theme="dark"] .post-content pre { background: rgba(255,255,255,0.05); }
.post-content pre code { background: none; padding: 0; }

/* ---- Tables ---- */
.post-content .table-wrap { overflow-x: auto; margin: 1.8rem 0; }

.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}
.post-content th {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 12px;
    border-bottom: 2px solid var(--divider);
    text-align: left;
    white-space: nowrap;
}
.post-content td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--divider);
    vertical-align: top;
}
.post-content tr:last-child td { border-bottom: none; }

/* ---- Back link ---- */
.back-link {
    font-size: 13.5px;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.back-link:hover { color: var(--theme); text-decoration: none; }

/* ---- Images ---- */
.post-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 1.2rem 0;
}

/* ---- Horizontal rule ---- */
.post-content hr {
    border: 0;
    border-top: 1px solid var(--divider);
    margin: 2rem 0;
}

/* ---- Post footer ---- */
.post-footer-note {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
    font-size: 13.5px;
    color: var(--text-light);
    font-style: italic;
}

/* ---- TLDR box ---- */
.tldr-box {
    border: 1px solid var(--divider);
    border-left: 3px solid var(--theme);
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.5rem 1rem;
    margin: 2rem 0;
    background: rgba(0,0,0,0.02);
}
html[data-theme="dark"] .tldr-box { background: rgba(255,255,255,0.03); }
.tldr-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme);
    margin-bottom: 0.8rem;
}
.tldr-box ul {
    margin: 0;
    padding-left: 1.2rem;
}
.tldr-box li {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 0.55rem;
    color: var(--text);
}
.tldr-box li:last-child { margin-bottom: 0; }

/* ---- Stat row ---- */
.stat-row {
    display: flex;
    gap: 12px;
    margin: 1.8rem 0;
    flex-wrap: nowrap;
}
.stat-card {
    flex: 1;
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 1rem 0.8rem;
    text-align: center;
    min-width: 0;
}
.stat-num {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}
.stat-label {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.3;
}

/* ---- Model cards ---- */
.model-card {
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 2rem 0 0.6rem;
}
.model-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.model-card-name {
    font-weight: 500;
    font-size: 15px;
}
.model-card-verdict {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.verdict-best  { background: rgba(52,168,83,0.12);  color: #1a7a3a; }
.verdict-mid   { background: rgba(255,153,0,0.12);  color: #a06000; }
.verdict-poor  { background: rgba(220,50,50,0.12);  color: #b02020; }
html[data-theme="dark"] .verdict-best { color: #5de87a; }
html[data-theme="dark"] .verdict-mid  { color: #ffb740; }
html[data-theme="dark"] .verdict-poor { color: #ff7070; }

.model-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}
.model-metrics span strong { color: var(--text); }

/* ---- Finding callout ---- */
.finding {
    background: rgba(0,0,0,0.03);
    border-left: 3px solid var(--theme);
    border-radius: 0 6px 6px 0;
    padding: 0.9rem 1.2rem;
    margin: 1.5rem 0;
    font-size: 15px;
}
html[data-theme="dark"] .finding { background: rgba(255,255,255,0.04); }
.finding p { margin-bottom: 0; }

/* ---- Charts ---- */
.chart-wrap {
    margin: 2rem 0;
    padding: 1.2rem;
    border: 1px solid var(--divider);
    border-radius: 8px;
}
.chart-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
}
.chart-caption {
    font-size: 12.5px;
    color: var(--text-light);
    margin-top: 0.6rem;
    font-style: italic;
}

/* ---- Table cell highlights ---- */
.post-content td.best   { color: #1a7a3a; font-weight: 500; }
.post-content td.worst  { color: #b02020; font-weight: 500; }
.post-content td.within { background: rgba(52,168,83,0.08); font-weight: 500; }
html[data-theme="dark"] .post-content td.best  { color: #5de87a; }
html[data-theme="dark"] .post-content td.worst { color: #ff7070; }
html[data-theme="dark"] .post-content td.within { background: rgba(52,168,83,0.15); }

.post-content tr.separator td {
    background: rgba(0,0,0,0.03);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    padding: 6px 12px;
}
html[data-theme="dark"] .post-content tr.separator td { background: rgba(255,255,255,0.04); }

@media (max-width: 600px) {
    .post-hero h1 { font-size: 1.25rem; white-space: normal; }
    .stat-row { flex-wrap: wrap; }
    .stat-card { flex: 1 1 calc(50% - 6px); }
}
