/* v38: reading-first layout (760px article measure), TOC, tables, charts,
   compare CTA + share. Mirrors the product page's card system,
   geometry and type scale (product.css conventions). */
.blog-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px 32px 36px;
}
.blog-content { min-height: 40vh; }
.blog-breadcrumbs { margin: 10px 0 14px; }
.blog-loading {
    text-align: center; padding: 70px 20px; color: var(--text-muted, #68758d);
}
.blog-loading .spinner { margin: 0 auto 12px; }
.blog-loading strong { display: block; font-size: 18px; color: var(--text-dark, #0b1430); margin-bottom: 6px; }

.blog-card {
    border: 1px solid var(--border, #e6ebf4);
    border-radius: var(--radius-lg, 18px);
    background: var(--bg-white, #fff);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 20, 48, 0.06));
    padding: 28px clamp(20px, 4vw, 44px) 34px;
}
.blog-empty { text-align: center; }
.blog-empty h1 { margin: 0 0 10px; font-size: clamp(22px, 3.5vw, 30px); }
.blog-empty p { color: var(--text-muted, #68758d); margin: 0 auto 18px; max-width: 460px; font-size: 15.5px; line-height: 1.6; }

.blog-company {
    margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 12.5px; font-weight: 700; color: var(--text-muted, #68758d);
}
.blog-title {
    margin: 0 0 14px; font-size: clamp(27px, 4.2vw, 40px); line-height: 1.14;
    color: var(--text-dark, #0b1430); font-weight: 800;
}
.blog-verdict {
    margin: 12px 0 0; font-size: 17px; font-weight: 600; color: var(--text-mid, #344056); line-height: 1.55;
}

.blog-stars {
    position: relative; display: inline-flex; align-items: baseline;
    font-size: 24px; line-height: 1;
}
/* v119: the fill clips against the star row only - the track's width is
   exactly the five background glyphs, never the numeric label. */
.blog-stars-track {
    position: relative; display: inline-flex; align-items: baseline;
}
.blog-stars-bg { color: var(--border, #d5dbe7); }
.blog-stars-fill {
    position: absolute; inset: 0; overflow: hidden; white-space: nowrap;
    color: #f5a623;
}
.blog-stars-num { margin-left: 8px; font-size: 15px; font-weight: 700; color: var(--text-mid, #344056); }

.blog-meta-row {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    margin: 14px 0 4px; font-size: 13.5px; color: var(--text-muted, #68758d);
}
.blog-published time { font-weight: 650; color: var(--text-mid, #344056); }

.blog-hero {
    margin: 20px 0 4px;
}
.blog-hero img {
    width: 100%; max-height: 420px; object-fit: contain;
    background: var(--bg-page, #eef1f7); border-radius: var(--radius-lg, 14px); padding: 10px;
}
.blog-hero figcaption, .blog-figure figcaption {
    margin: 8px 2px 0; font-size: 13px; color: var(--text-muted, #68758d); line-height: 1.5;
}

.blog-intro {
    font-size: 17px; line-height: 1.75; color: var(--text-mid, #344056);
    margin: 22px 0 8px;
}
.blog-section { margin-top: 30px; }
.blog-section h2, .blog-pros h2, .blog-cons h2, .blog-videos h2 {
    font-size: 21px; margin: 0 0 12px; color: var(--text-dark, #0b1430);
    line-height: 1.3; font-weight: 750;
}
.blog-section p {
    margin: 0 0 14px; font-size: 16px; line-height: 1.78; color: var(--text-mid, #344056);
    white-space: pre-line;
}
.blog-figure { margin: 20px 0 6px; }
.blog-figure img {
    width: 100%; max-height: 360px; object-fit: contain;
    background: var(--bg-page, #eef1f7); border-radius: 14px; padding: 10px;
}

.blog-pros-cons {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px; margin-top: 30px;
}
.blog-pros ul, .blog-cons ul { margin: 0; padding-left: 20px; }
.blog-pros li, .blog-cons li { margin: 8px 0; font-size: 15px; line-height: 1.6; color: var(--text-mid, #344056); }
.blog-pros li::marker { color: #1a9c5d; }
.blog-cons li::marker { color: #e05252; }

.blog-videos { margin-top: 30px; }
.blog-video { margin-top: 12px; }
.blog-video iframe {
    width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px;
    background: var(--bg-page, #eef1f7);
}
.blog-video-title { margin: 8px 0 0; font-size: 13.5px; color: var(--text-muted, #68758d); }

.blog-cta { margin-top: 32px; }
.blog-cheapest {
    border: 1.5px solid var(--primary, #1358ff);
    background: var(--primary-bg, #edf3ff);
    border-radius: 14px; padding: 20px 22px; text-align: center;
}
.blog-cheapest-label { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted, #68758d); }
.blog-cheapest-price { margin: 6px 0 2px; font-size: 32px; font-weight: 800; color: var(--text-dark, #0b1430); }
.blog-cheapest-market { margin: 0 0 14px; font-size: 13.5px; color: var(--text-muted, #68758d); }

.blog-links {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px;
}
.blog-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 20px; border-radius: 10px; font-weight: 650; font-size: 14px;
    border: 1.5px solid var(--border, #dfe6f2); background: var(--bg-white, #fff);
    color: var(--text-dark, #0b1430); text-decoration: none; cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.blog-btn:hover { border-color: var(--primary, #1358ff); color: var(--primary, #1358ff); }
.blog-btn-primary {
    background: var(--primary, #1358ff); border-color: var(--primary, #1358ff); color: #fff;
}
.blog-btn-primary:hover { background: #0d47d8; color: #fff; }

@media (max-width: 760px) {
    .blog-page { padding: 6px 14px 28px; }
    .blog-card { padding: 20px 16px 26px; border-radius: 14px; }
    .blog-title { font-size: clamp(24px, 6.4vw, 30px); }
    .blog-section h2, .blog-pros h2, .blog-cons h2, .blog-videos h2 { font-size: 19px; }
    .blog-section p { font-size: 15px; }
}


/* ===================== v38: reading-first layout ===================== */
.blog-page .blog-card,
.blog-page > .breadcrumbs {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.blog-page { scroll-behavior: smooth; }

/* header: meta column + share button */
.blog-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.blog-header-main { flex: 1 1 auto; min-width: 0; }
.blog-header-share { flex: 0 0 auto; }
.blog-share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 13px; border-radius: 10px;
    border: 1px solid var(--border, #dfe6f2); background: var(--bg-white, #fff);
    color: var(--text-mid, #344056); cursor: pointer; font-weight: 700; font-size: 14px;
}
.blog-share-btn:hover { border-color: var(--primary, #1358ff); color: var(--primary, #1358ff); }

/* product-name links inside the article */
.blog-product-link { color: var(--primary, #1358ff); text-decoration: underline; text-decoration-color: rgba(19, 88, 255, 0.35); text-underline-offset: 2px; }
.blog-product-link:hover { text-decoration-color: currentColor; }

/* table of contents */
.blog-toc {
    border: 1px solid var(--border, #e6ebf4); background: var(--bg-page, #f6f8fc);
    border-radius: 14px; padding: 16px 22px; margin: 22px 0 6px;
}
.blog-toc-title { margin: 0 0 8px; font-size: 15px; color: var(--text-dark, #0b1430); }
.blog-toc ol { margin: 0; padding-left: 20px; }
.blog-toc li { margin: 5px 0; font-size: 14.5px; }
.blog-toc a { color: var(--primary, #1358ff); text-decoration: none; }
.blog-toc a:hover { text-decoration: underline; }

/* generated tables */
.blog-table-wrap { margin: 20px 0 8px; overflow-x: auto; }
.blog-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.blog-table caption {
    caption-side: top; text-align: left; font-size: 13px;
    color: var(--text-muted, #68758d); margin-bottom: 6px;
}
.blog-table th, .blog-table td {
    border: 1px solid var(--border, #e6ebf4);
    padding: 9px 12px; text-align: left; vertical-align: top; line-height: 1.5;
}
.blog-table th { background: var(--bg-page, #eef1f7); font-weight: 700; color: var(--text-dark, #0b1430); }
.blog-table tbody tr:nth-child(even) { background: var(--bg-page, #f6f8fc); }

/* generated bar charts */
.blog-chart { margin: 20px 0 8px; }
.blog-chart-caption { font-size: 13px; color: var(--text-muted, #68758d); margin: 0 0 10px; }
.blog-chart-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.blog-chart-label { flex: 0 0 34%; font-size: 13.5px; color: var(--text-mid, #344056); text-align: right; }
.blog-chart-track { flex: 1 1 auto; background: var(--bg-page, #eef1f7); border-radius: 6px; height: 18px; overflow: hidden; }
.blog-chart-bar { display: block; height: 100%; background: var(--primary, #1358ff); border-radius: 6px; }
.blog-chart-value { flex: 0 0 60px; font-size: 13px; font-weight: 700; color: var(--text-dark, #0b1430); }

/* pricing section: the product page's distribution card */
.blog-distribution { margin: 20px 0 8px; }
.blog-history { margin: 20px 0 8px; }
.blog-compare { margin: 20px 0 8px; }
.blog-compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.blog-compare-table th, .blog-compare-table td { padding: 8px 10px; border-bottom: 1px solid var(--border, #e2e8f0); text-align: left; vertical-align: top; }
.blog-compare-table tbody th { font-weight: 700; color: var(--text-muted, #68758d); white-space: nowrap; }
.blog-compare-market { color: #1358ff; text-decoration: none; font-weight: 700; }
.blog-compare-market:hover { text-decoration: underline; }
.blog-compare-view-toggle { display: inline-flex; background: var(--border, #eef2f8); border-radius: 10px; padding: 3px; gap: 3px; margin: 4px 0 14px; }
.blog-compare-view-toggle button { border: none; background: transparent; padding: 7px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--text-muted, #68758d); }
.blog-compare-view-toggle button.is-active { background: var(--bg-white, #fff); color: var(--text-dark, #0b1430); box-shadow: 0 1px 3px rgba(11, 20, 48, 0.12); }
.blog-compare-link { display: inline-block; margin-top: 14px; }

/* breadcrumbs use the product page classes (navbar.css renders the >) */
.blog-company-link { color: var(--primary, #1358ff); }

/* cheapest quick-link spacing (quick-listing-link styles come from product.css) */
.blog-cheapest { margin-top: 28px; }

/* compare CTA (compare-page styling language) */
.blog-compare-cta { margin: 30px 0 8px; }
.blog-compare-inner {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    border: 1.5px dashed var(--primary, #1358ff); background: var(--primary-bg, #edf3ff);
    border-radius: 14px; padding: 20px 22px;
}
.blog-compare-text h2 { margin: 0 0 6px; font-size: 19px; color: var(--text-dark, #0b1430); }
.blog-compare-text p { margin: 0; font-size: 14.5px; color: var(--text-mid, #344056); max-width: 440px; line-height: 1.55; }
.blog-compare-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px;
    background: var(--primary, #1358ff); border: 1.5px solid var(--primary, #1358ff);
    color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.blog-compare-btn:hover { background: #0d47d8; color: #fff; }

/* v70: inline comparison card under the CTA (current product vs its rival) */
.blog-compare-inline {
    margin-top: 14px;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border, #e6ebf4);
    border-radius: 14px;
    padding: 10px 16px 14px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 20, 48, 0.06));
}
.blog-compare-inline[hidden] { display: none; }
.blog-compare-table-scroll { overflow-x: auto; }


@media (max-width: 760px) {
    .blog-chart-label { flex-basis: 42%; font-size: 12.5px; }
    .blog-compare-inner { flex-direction: column; align-items: flex-start; }
}

/* ===================== v53: product-page comments width =====================
   The comments section matches the product page's full content column on
   desktop instead of the narrow reading column; mobile keeps the column. */
@media (min-width: 761px) {
    .blog-page .blog-card .comments-section {
        max-width: 1240px;
        margin-left: auto;
        margin-right: auto;
    }
}
/* ===================== v72b: article-shaped loading skeleton =====================
   The "Building this product's blog" state: a status row (spinner + ETA) and
   shimmering title/paragraph/media placeholders that mirror the article. */
.blog-skeleton-card { text-align: left; }
.blog-skeleton-top {
    display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px;
}
.blog-skeleton-top .spinner { margin: 0; flex-shrink: 0; }
.blog-skeleton-head strong {
    display: block; font-size: 18px; color: var(--text-dark, #0b1430); margin-bottom: 6px;
}
.blog-skeleton-head p {
    margin: 0 0 4px; color: var(--text-muted, #68758d); font-size: 14px; line-height: 1.5;
}
.blog-skeleton-eta { font-weight: 600; color: var(--primary, #1358ff); }
.blog-skeleton-body {
    border-top: 1px solid var(--border, #e6ebf4);
    padding-top: 18px;
    display: grid;
    gap: 12px;
}
.blog-sk {
    position: relative;
    overflow: hidden;
    background: var(--bg-page, #eef1f7);
    border-radius: 8px;
}
.blog-sk::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: blog-sk-shimmer 1.4s infinite;
}
@keyframes blog-sk-shimmer {
    100% { transform: translateX(100%); }
}
.blog-sk-title { height: 26px; width: 62%; margin-bottom: 4px; }
.blog-sk-line { height: 13px; }
.blog-sk-line.w70 { width: 70%; }
.blog-sk-line.w80 { width: 80%; }
.blog-sk-line.w85 { width: 85%; }
.blog-sk-line.w90 { width: 90%; }
.blog-sk-media { height: 180px; border-radius: 12px; margin: 4px 0; }
@media (prefers-reduced-motion: reduce) {
    .blog-sk::after { animation: none; }
}


/* ===================== v81 (issue 4): identical card width =====================
   Every blog card renders at exactly the reading measure - wide payload
   tables/images/pre blocks must never stretch (or shrink) the card. */
.blog-page .blog-card {
    width: 100%;
    overflow-x: auto;
}
.blog-card img,
.blog-card table,
.blog-card pre {
    max-width: 100%;
}
.blog-card table {
    display: block;
    overflow-x: auto;
}

/* ===================== v72b: /blogs index cards ===================== */
.blogs-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border, #e6ebf4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(11, 20, 48, 0.06));
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blogs-card:hover,
.blogs-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(11, 20, 48, 0.12);
}
.blogs-card-link { display: block; text-decoration: none; color: inherit; }
.blogs-card-media {
    height: 150px;
    background: var(--bg-page, #eef1f7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blogs-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blogs-card-body { padding: 14px 16px 16px; }
.blogs-card-meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--text-muted, #68758d);
}
.blogs-card-title {
    margin: 0 0 8px; font-size: 16.5px; line-height: 1.35; font-weight: 750;
    color: var(--text-dark, #0b1430);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blogs-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px;
}
.blogs-card-minutes { font-size: 12.5px; color: var(--text-muted, #68758d); font-weight: 600; }
.blogs-card-cta { font-size: 13px; font-weight: 750; color: var(--primary, #1358ff); }.blogs-card-price {
    font-size: 13.5px;
    font-weight: 750;
    color: var(--text-dark, #0b1430);
}
.blogs-card-foot-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}/* v75: uniform card dimensions - every card is EXACTLY the same width and
   height regardless of its content (fixed card box + reserved slots for
   the meta line, the two-line title and the stars row), and the foot pins
   to the card bottom so every card's content sits at the same y positions. */
.blogs-card { height: 340px; overflow: hidden; }
.blogs-card-link { display: flex; flex-direction: column; height: 100%; }
.blogs-card-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.blogs-card-meta { min-height: 16px; }
.blogs-card-title { height: 45px; }
.blogs-card-stars { min-height: 24px; margin: 0 0 8px; }
.blogs-card-foot { margin-top: auto; }

/* ===================== v82 (issue 2): EXACTLY equal blog cards =====================
   .results-grid sets justify-items:center, so cards without an explicit width
   shrank to fit their CONTENT and centred in the column - a short title made a
   narrow card. Pin every /blogs card to the full grid-column width and guard
   the fixed height so the payload can never influence the card box. */
#blogs-grid .blogs-card {
    width: 100%;
    min-width: 0;
    height: 340px;
    min-height: 340px;
}
#blogs-grid .blogs-card-link {
    width: 100%;
}
#blogs-grid .blogs-card-media {
    height: 150px;
    min-height: 150px;
    flex: 0 0 150px;
}