/* ============================================================
   OSPA - Blog
   Index, post layout and the in-article components
   (summary box, callouts, numbered cards, comparison, quiz...).
   Loaded only on /blog/ pages. Uses the tokens from main.css.
   ============================================================ */

/* ---------- Blog index ---------- */
.blog-hero {
    padding: 56px 0 var(--sp-xxl);
    text-align: center;
}
.blog-hero .breadcrumbs { justify-content: center; }
.blog-hero .badge-pill { margin-bottom: var(--sp-md); }
.blog-hero h1 {
    font-size: 52px;
    letter-spacing: -1.6px;
    line-height: 1.08;
    max-width: 16ch;
    margin: 0 auto var(--sp-md);
}
.blog-hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 58ch;
    margin-inline: auto;
}

.blog-index { padding-top: 0; }
.blog-featured {
    margin-bottom: var(--sp-xxl);
}
.blog-featured-link {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    background: var(--surface-card);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.blog-featured-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-featured-media { position: relative; min-height: 380px; }
.blog-featured-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.blog-featured-link:hover .blog-featured-media img { transform: scale(1.03); }
.blog-featured-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--sp-sm);
    padding: var(--sp-xxl);
}
.blog-featured-flag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--muted);
}
.blog-featured-body h2 { font-size: 34px; letter-spacing: -1px; line-height: 1.15; }
.blog-featured-body p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.blog-featured-body .btn { margin-top: var(--sp-sm); }

.blog-grid-head { margin-bottom: var(--sp-lg); }
.blog-grid-head h2 { font-size: 28px; letter-spacing: -0.5px; }

.blog-filters { display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-bottom: var(--sp-lg); }
.blog-filter {
    padding: 8px 16px;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline);
    font-size: 14px;
    font-weight: 500;
    color: var(--body);
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.blog-filter:hover { background: var(--surface-soft); }
.blog-filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-lg);
}
.blog-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-index .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-grid-item[hidden] { display: none; }

.blog-card { height: 100%; }
.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--hairline);
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--canvas);
    transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
}
.blog-card-link:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.blog-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-card); }
.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.blog-card-link:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-cat {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}
.blog-card-cat--inline { position: static; background: var(--canvas); }
.blog-card-body { display: flex; flex-direction: column; gap: var(--sp-xs); flex: 1; padding: var(--sp-lg); }
.blog-card-body h3 { font-size: 20px; line-height: 1.3; }
.blog-card-body p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.blog-card-meta { display: inline-flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted-soft); }
.blog-card-more {
    margin-top: auto;
    padding-top: var(--sp-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.blog-card-arrow { display: inline-block; transition: transform var(--dur-fast) ease; }
.blog-card-link:hover .blog-card-arrow { transform: translateX(-4px); }

/* ---------- Post: progress & hero ---------- */
.post-progress {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 3px;
    z-index: 310;
    pointer-events: none;
}
.post-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--badge-violet), var(--ink));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 80ms linear;
}

.post-hero { padding: 40px 0 var(--sp-xxl); }
.post-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--sp-xxl);
    align-items: center;
}
.post-hero .badge-pill { margin-bottom: var(--sp-md); }
.post-hero h1 {
    font-size: 50px;
    line-height: 1.08;
    letter-spacing: -1.6px;
    margin-bottom: var(--sp-md);
}
.post-lede { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 52ch; }
.post-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    margin-top: var(--sp-lg);
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--hairline-soft);
}
.post-meta-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-card); }
.post-meta-text { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.post-meta-text strong { color: var(--ink); font-size: 15px; }
.post-cover {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 520px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--surface-card);
    box-shadow: var(--shadow-lg);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Post: layout ---------- */
.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    align-items: start;
    padding-bottom: var(--sp-section);
}
.post-main { min-width: 0; max-width: 760px; }
.post-aside { align-self: stretch; }
.post-aside-sticky {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.post-toc {
    padding: var(--sp-lg);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
}
.post-toc strong { display: block; margin-bottom: var(--sp-sm); font-size: 14px; color: var(--ink); }
.post-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.post-toc li { counter-increment: toc; }
.post-toc a {
    display: flex;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--r-md);
    border-inline-start: 2px solid transparent;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.post-toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-soft);
    padding-top: 1px;
    font-variant-numeric: tabular-nums;
}
.post-toc a:hover { background: var(--surface-soft); color: var(--ink); }
.post-toc a.is-active { background: var(--surface-card); color: var(--ink); font-weight: 600; border-inline-start-color: var(--ink); }

.post-aside-cta {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface-dark);
    color: var(--on-dark);
}
.post-aside-cta img { width: 100%; height: 150px; object-fit: cover; opacity: 0.9; }
.post-aside-cta-body { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-lg); }
.post-aside-cta-body strong { font-size: 18px; color: var(--on-dark); }
.post-aside-cta-body span { font-size: 14px; color: var(--on-dark-soft); margin-bottom: var(--sp-xs); }
.post-aside-cta .btn-primary { background: var(--canvas); color: var(--ink); }

.post-toc-mobile { display: none; }

/* ---------- Post: body typography ---------- */
.post-body { font-size: 17px; line-height: 1.85; color: var(--body); }
.post-body > * + *,
.post-section > * + * { margin-top: var(--sp-lg); }
.post-section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.post-body > .post-section + .post-section { margin-top: 64px; }
.post-body h2 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.8px;
}
.post-body h3 { font-size: 21px; margin-top: var(--sp-xl); }
.post-body p { color: var(--body); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a:not(.btn):not(.post-cta-link) {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-decoration-color: var(--badge-violet);
    text-underline-offset: 4px;
    transition: text-decoration-color var(--dur-fast) ease;
}
.post-body a:not(.btn):not(.post-cta-link):hover { text-decoration-color: var(--ink); }
.post-body ul:not([class]),
.post-body ol:not([class]) { padding-inline-start: 1.3em; }
.post-body ul:not([class]) li + li,
.post-body ol:not([class]) li + li { margin-top: 8px; }
.post-body ul:not([class]) li::marker { color: var(--badge-violet); }
.post-body ol:not([class]) li::marker { font-weight: 700; color: var(--ink); }

.post-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--badge-violet);
    letter-spacing: 0.3px;
}
.post-kicker + h2 { margin-top: 6px !important; }

/* ---------- Components ---------- */

/* Summary box: the answer-first block search engines and AI read first */
.post-tldr {
    position: relative;
    padding: var(--sp-xl);
    background: var(--surface-card);
    border-radius: var(--r-xl);
}
.post-tldr-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--sp-sm);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--on-primary);
    font-size: 12px;
    font-weight: 600;
}
.post-tldr p { font-size: 18px; line-height: 1.75; color: var(--ink); }
.post-tldr ul { list-style: none; margin-top: var(--sp-md); display: grid; gap: 10px; }
.post-tldr li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.6; }
.post-tldr li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Callouts */
.post-callout {
    display: flex;
    gap: var(--sp-md);
    padding: var(--sp-lg);
    border-radius: var(--r-lg);
    background: #f5f3ff;
    border: 1px solid #ede9fe;
}
.post-callout-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--canvas);
    font-size: 18px;
    line-height: 1;
}
.post-callout-body { font-size: 16px; line-height: 1.7; }
.post-callout-body strong:first-child { display: block; margin-bottom: 4px; font-size: 16px; }
.post-callout-body ul { margin-top: 6px; padding-inline-start: 1.2em; }
.post-callout--tip { background: #ecfdf5; border-color: #d1fae5; }
.post-callout--warn { background: #fff7ed; border-color: #ffedd5; }
.post-callout--note { background: #f5f3ff; border-color: #ede9fe; }

/* Pull quote */
.post-quote {
    position: relative;
    margin-inline: 0;
    padding: var(--sp-lg) var(--sp-xl);
    border-inline-start: 4px solid var(--ink);
}
.post-quote p {
    font-size: 24px;
    line-height: 1.45;
    letter-spacing: -0.4px;
    font-weight: 500;
    color: var(--ink);
}
.post-quote cite { display: block; margin-top: var(--sp-sm); font-size: 14px; font-style: normal; color: var(--muted); }

/* Stat tiles */
.post-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-sm);
}
.post-stat {
    padding: var(--sp-lg);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    text-align: center;
}
.post-stat strong {
    display: block;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -1px;
    font-weight: 700;
    color: var(--ink);
}
.post-stat span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Numbered benefit cards */
.post-numbered { list-style: none; counter-reset: num; display: grid; gap: var(--sp-md); }
.post-numbered > li {
    counter-increment: num;
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: var(--sp-md);
    padding: var(--sp-lg);
    border: 1px solid var(--hairline);
    border-radius: var(--r-xl);
    background: var(--canvas);
    scroll-margin-top: calc(var(--nav-h) + 24px);
    transition: box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
}
.post-numbered > li:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.post-numbered > li::before {
    content: counter(num);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--on-primary);
    font-size: 24px;
    font-weight: 700;
}
.post-numbered h3 { margin: 0 0 6px !important; font-size: 20px; }
.post-numbered p { font-size: 16px; line-height: 1.75; }
.post-numbered p + p { margin-top: var(--sp-xs); }
.post-why {
    display: inline-flex;
    gap: 6px;
    margin-top: var(--sp-sm);
    padding: 6px 12px;
    border-radius: var(--r-md);
    background: var(--surface-soft);
    font-size: 14px;
    line-height: 1.55;
    color: var(--body);
}
.post-why b { color: var(--ink); white-space: nowrap; }

/* Figure */
.post-figure { margin-inline: 0; }
.post-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-xl);
    background: var(--surface-card);
}
.post-figure figcaption { margin-top: var(--sp-xs); font-size: 14px; color: var(--muted); text-align: center; }

/* Steps timeline */
.post-steps { list-style: none; position: relative; display: grid; gap: var(--sp-md); }
.post-steps::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    inset-inline-start: 17px;
    width: 2px;
    background: var(--hairline);
}
.post-steps li { position: relative; padding-inline-start: 56px; counter-increment: step; }
.post-steps { counter-reset: step; }
.post-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--canvas);
    border: 2px solid var(--ink);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.post-steps strong { display: block; font-size: 17px; }
.post-steps small { margin-inline-start: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.post-steps p { font-size: 16px; line-height: 1.7; color: var(--muted); }

/* Versus cards */
.post-vs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-md);
}
.post-vs-card {
    padding: var(--sp-lg);
    border-radius: var(--r-xl);
    border: 1px solid var(--hairline);
    background: var(--canvas);
}
.post-vs-card--accent { background: var(--surface-dark); border-color: var(--surface-dark); color: var(--on-dark); }
.post-vs-card--accent h3,
.post-vs-card--accent strong { color: var(--on-dark); }
.post-vs-card--accent p,
.post-vs-card--accent li { color: var(--on-dark-soft); }
.post-vs-card h3 { margin: 0 0 4px !important; font-size: 20px; }
.post-vs-card > p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.post-vs-card ul { list-style: none; margin-top: var(--sp-md); display: grid; gap: 8px; font-size: 15px; line-height: 1.55; }
.post-vs-card li { display: flex; gap: 8px; }
.post-vs-card li::before { content: "•"; color: var(--badge-violet); font-weight: 700; }
.post-vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--badge-violet);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--canvas);
    z-index: 1;
}

/* Myth vs fact */
.post-myths { display: grid; gap: var(--sp-sm); }
.post-myth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.post-myth > div { padding: var(--sp-md) var(--sp-lg); font-size: 15px; line-height: 1.65; }
.post-myth-false { background: var(--surface-soft); color: var(--muted); }
.post-myth-false p { text-decoration: line-through; text-decoration-color: rgba(239, 68, 68, 0.5); }
.post-myth-true { background: var(--canvas); }
.post-myth-tag {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.post-myth-false .post-myth-tag { color: var(--error); }
.post-myth-true .post-myth-tag { color: #059669; }

/* Checklist */
.post-checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-sm); }
.post-checklist li {
    display: flex;
    gap: 10px;
    padding: 14px var(--sp-md);
    border-radius: var(--r-lg);
    background: var(--surface-soft);
    font-size: 15px;
    line-height: 1.55;
}
.post-checklist li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Inline CTA */
.post-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
    padding: var(--sp-lg) var(--sp-xl);
    border-radius: var(--r-xl);
    background: var(--surface-dark);
    background-image: radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.35), transparent 55%);
}
.post-cta-text strong { display: block; font-size: 20px; color: var(--on-dark); }
.post-cta-text p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--on-dark-soft); }
.post-cta-actions { display: flex; align-items: center; gap: var(--sp-md); flex-shrink: 0; }
.post-cta-link { font-size: 14px; font-weight: 600; color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Quiz */
.post-quiz {
    padding: var(--sp-xl);
    border-radius: var(--r-xl);
    border: 1px solid var(--hairline);
    background: linear-gradient(180deg, var(--surface-soft), var(--canvas));
}
.post-quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-md); margin-bottom: var(--sp-md); }
.post-quiz-head strong { font-size: 20px; color: var(--ink); }
.post-quiz-score {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--on-primary);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.post-quiz-options { display: grid; gap: var(--sp-xs); }
.post-quiz-option {
    display: flex;
    gap: var(--sp-sm);
    align-items: center;
    padding: 12px var(--sp-md);
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    background: var(--canvas);
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.post-quiz-option:hover { border-color: var(--muted-soft); }
.post-quiz-option input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.post-quiz-option:has(input:checked) { border-color: var(--ink); background: var(--surface-soft); }
.post-quiz-result {
    margin-top: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--r-lg);
    background: var(--ink);
    color: var(--on-primary);
    font-size: 16px;
    line-height: 1.65;
}
.post-quiz-result strong { color: var(--on-primary); }

/* Chooser */
.post-chooser {
    padding: var(--sp-xl);
    border-radius: var(--r-xl);
    background: var(--surface-card);
}
.post-chooser > strong { display: block; font-size: 20px; color: var(--ink); margin-bottom: var(--sp-md); }
.post-chooser-options { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.post-chooser-options button {
    padding: 10px 16px;
    border-radius: var(--r-pill);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.post-chooser-options button:hover { border-color: var(--ink); }
.post-chooser-options button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }
.post-chooser-answer {
    margin-top: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--r-lg);
    background: var(--canvas);
    font-size: 16px;
    line-height: 1.7;
    animation: post-fade-in var(--dur-med) var(--ease-out);
}
.post-chooser-answer strong:first-child { display: block; margin-bottom: 2px; }
@keyframes post-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Tables inside the post use the site price table */
.post-body .price-table-wrap { max-width: none; }
@media (min-width: 768px) {
    .post-table tbody th[scope="row"],
    .post-table thead th:first-child { width: 24%; }
    .post-table thead th,
    .post-table tbody td { text-align: start; }
    .post-body .price-table tbody th,
    .post-body .price-table tbody td { padding: 16px 18px; }
}
.post-body .price-table td { font-size: 15px; line-height: 1.6; }

/* Sources */
.post-sources {
    padding: var(--sp-md) var(--sp-lg);
    border-radius: var(--r-lg);
    border: 1px dashed var(--hairline);
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
}
.post-sources strong { display: block; color: var(--ink); margin-bottom: 4px; }
.post-sources ol { padding-inline-start: 1.2em; }
.post-sources li + li { margin-top: 4px; }

/* FAQ inside the post */
.post-faq { max-width: none; }

/* ---------- Post footer ---------- */
.post-footer { margin-top: var(--sp-xxl); display: grid; gap: var(--sp-lg); }
.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-xs);
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--hairline-soft);
    font-size: 14px;
    color: var(--muted);
}
.post-share > span { margin-inline-end: var(--sp-xs); }
.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: background-color var(--dur-fast) ease;
}
.post-share-btn:hover { background: var(--surface-soft); }
.post-author {
    display: flex;
    gap: var(--sp-md);
    padding: var(--sp-lg);
    border-radius: var(--r-xl);
    background: var(--surface-card);
}
.post-author img { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--canvas); }
.post-author strong { display: block; color: var(--ink); margin-bottom: 4px; }
.post-author p { font-size: 14px; line-height: 1.65; color: var(--muted); }

.post-related { background: var(--surface-soft); }
.post-related .section-head { margin-bottom: var(--sp-xl); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .post-main { max-width: 760px; margin-inline: auto; }
    .post-aside { display: none; }
    .post-toc-mobile {
        display: block;
        margin-bottom: var(--sp-xl);
        border: 1px solid var(--hairline);
        border-radius: var(--r-lg);
        background: var(--canvas);
    }
    .post-toc-mobile summary {
        display: flex;
        justify-content: space-between;
        padding: 14px var(--sp-md);
        font-weight: 600;
        color: var(--ink);
        cursor: pointer;
        list-style: none;
    }
    .post-toc-mobile summary::-webkit-details-marker { display: none; }
    .post-toc-mobile summary::after { content: "+"; font-size: 20px; line-height: 1; }
    .post-toc-mobile[open] summary::after { content: "−"; }
    .post-toc-mobile ol { padding: 0 var(--sp-md) var(--sp-md) var(--sp-md); padding-inline-start: 2.2em; font-size: 15px; }
    .post-toc-mobile li + li { margin-top: 6px; }
    .post-toc-mobile a { color: var(--body); }
    .post-hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-xl); }
    .post-cover { aspect-ratio: 16 / 10; max-height: none; }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .blog-hero { padding-top: 32px; }
    .blog-hero h1 { font-size: 34px; letter-spacing: -0.8px; }
    .blog-hero p { font-size: 16px; }
    .blog-featured-link { grid-template-columns: minmax(0, 1fr); }
    .blog-featured-media { min-height: 0; aspect-ratio: 16 / 10; }
    .blog-featured-body { padding: var(--sp-lg); }
    .blog-featured-body h2 { font-size: 26px; }
    .blog-grid,
    .blog-grid--2,
    .blog-index .blog-grid { grid-template-columns: minmax(0, 1fr); }

    .post-hero { padding-top: 24px; padding-bottom: var(--sp-xl); }
    .post-hero h1 { font-size: 32px; letter-spacing: -0.8px; }
    .post-lede { font-size: 17px; }
    .post-layout { padding-bottom: 64px; }
    .post-body { font-size: 16px; }
    .post-body h2 { font-size: 26px; letter-spacing: -0.5px; }
    .post-body > .post-section + .post-section { margin-top: var(--sp-xxl); }
    .post-tldr { padding: var(--sp-lg); }
    .post-tldr p { font-size: 17px; }
    .post-quote { padding: var(--sp-md) var(--sp-lg); }
    .post-quote p { font-size: 20px; }
    .post-stats { grid-template-columns: minmax(0, 1fr); }
    .post-stat { display: flex; align-items: center; gap: var(--sp-md); text-align: start; padding: var(--sp-md); }
    .post-stat strong { font-size: 28px; min-width: 80px; }
    .post-stat span { margin-top: 0; }
    .post-numbered > li { grid-template-columns: minmax(0, 1fr); padding: var(--sp-md); gap: var(--sp-sm); }
    .post-numbered > li::before { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
    .post-vs { grid-template-columns: minmax(0, 1fr); }
    .post-vs-badge { position: relative; top: auto; left: auto; transform: none; margin: -28px auto; }
    .post-myth { grid-template-columns: minmax(0, 1fr); }
    .post-checklist { grid-template-columns: minmax(0, 1fr); }
    .post-cta { flex-direction: column; align-items: stretch; padding: var(--sp-lg); }
    .post-cta-actions { justify-content: space-between; }
    .post-quiz,
    .post-chooser { padding: var(--sp-lg); }
    .post-callout { padding: var(--sp-md); gap: var(--sp-sm); }
}
