/* ================================================================
   BLOG POST PAGE - /blogs/vape-guide/<post>   (EV-167, 22 Nov 2026)
   Loaded only by blog_post.php (replaces its old inline <style> block).
   Colours: the same variables + fallbacks as blog-listing.css.
   ================================================================ */

/* ---- page: no second scroll area, no sideways scroll ----
   critical.css gives html/body "overflow-x: hidden" (100vw body). "hidden" makes a scroll box, which stops the
   sticky contents rail; "clip" cuts the same overflow without that. Old browsers keep "hidden" (first line). */
html.fv-post-page,
html.fv-post-page body {
    overflow-x: hidden;
    overflow-x: clip;
}

.wow {
    visibility: visible !important;
}

/* ---- product sliders inside an article ({{#name#}} tags, build_slider()) - kept from the old inline styles ---- */
@media only screen and (min-width: 768px) {
    .building_slider .owl-stage {
        display: flex !important;
    }
}

.building_slider .owl-nav {
    display: none;
}

.building_slider .prodt-brand {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 20.41px;
}

/* ---- layout ---- */
.fv-post-breadcrumb {
    max-width: 1068px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.fv-post-breadcrumb--narrow {
    max-width: 760px;
}

.fv-post {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ink-900, #0f2236);
    font-size: 17px;
    line-height: 1.7;
}

@media (min-width: 992px) {
    .fv-post--has-toc {
        max-width: 1068px;
        display: grid;
        grid-template-columns: 260px minmax(0, 760px);
        grid-template-rows: auto 1fr;
        column-gap: 48px;
        row-gap: 0;
    }

    .fv-post--has-toc > .fv-post-top {
        grid-column: 2;
        grid-row: 1;
    }

    .fv-post--has-toc > .fv-post-main {
        grid-column: 2;
        grid-row: 2;
    }

    .fv-post--has-toc > .fv-post-toc {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
        position: sticky;
        top: 150px;
        margin: 0;
    }
}

/* ---- head ---- */
.fv-post-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 8px 0 12px;
    color: var(--ink-900, #0f2236);
}

.fv-post-standfirst {
    font-size: 19px;
    line-height: 1.5;
    color: var(--ink-600, #4a6383);
    margin: 0 0 14px;
}

.fv-post-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--ink-200, #dbe1e9);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-600, #4a6383);
}

/* the dot goes AFTER each item, so a wrapped phone line never starts with a dot */
.fv-post-meta li:not(:last-child)::after {
    content: "\00B7";
    margin: 0 10px;
    color: var(--ink-500, #8196ad);
}

.fv-post-meta .fv-blog-author {
    font-weight: 600;
    color: var(--ink-900, #0f2236);
}

.fv-post-chips,
.fv-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.fv-post-chips span,
.fv-post-tags span {
    background: var(--teal-100, #d0f4f2);
    color: var(--teal-700, #0d7a74);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.fv-post-tags {
    margin: 32px 0 0;
}

.fv-post-tags span {
    background: var(--ink-100, #eef1f5);
    color: var(--ink-600, #4a6383);
}

/* ---- shared box ---- */
.fv-post-box {
    border: 1px solid var(--ink-200, #dbe1e9);
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0 0 28px;
}

.fv-post-box-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700, #0d7a74);
    margin: 0 0 8px;
    line-height: 1.4;
}

/* ---- quick answer ---- */
.fv-post-qa {
    background: #f1fbfa;
    border-color: var(--teal-100, #d0f4f2);
    border-left: 4px solid var(--teal-700, #0d7a74);
}

.fv-post-qa-text {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
}

.fv-post-qa-points {
    margin: 10px 0 0;
    padding-left: 20px;
    list-style: disc;
}

.fv-post-qa-points li {
    margin: 4px 0;
}

/* ---- lead picture: shown whole (blog pictures are almost square, with text in them) ---- */
.fv-post-hero {
    margin: 0 0 28px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--ink-50, #f6f8fb);
}

.fv-post-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
}

/* ---- contents ---- */
.fv-post-toc {
    border: 1px solid var(--ink-200, #dbe1e9);
    border-radius: 12px;
    background: #fff;
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.4;
}

.fv-post-toc > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--ink-900, #0f2236);
}

.fv-post-toc > summary::-webkit-details-marker {
    display: none;
}

.fv-post-toc-title {
    flex: 1;
}

.fv-post-toc-count {
    background: var(--ink-100, #eef1f5);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-600, #4a6383);
}

.fv-post-toc > summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: var(--ink-500, #8196ad);
}

.fv-post-toc[open] > summary::after {
    content: "\2212";
}

.fv-post-toc ol {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0 0 8px;
    border-top: 1px solid var(--ink-200, #dbe1e9);
}

.fv-post-toc li:not(.fv-post-toc-sub) {
    counter-increment: toc;
}

.fv-post-toc a {
    display: flex;
    gap: 10px;
    padding: 9px 18px;
    color: var(--teal-700, #0d7a74);
    text-decoration: none;
}

.fv-post-toc a::before {
    content: counter(toc) ".";
    min-width: 18px;
    font-weight: 700;
    color: var(--teal-700, #0d7a74);
}

/* h3 (and deeper) under their h2: indented, with a dash instead of a number */
.fv-post-toc .fv-post-toc-sub a {
    padding: 6px 18px 6px 46px;
    font-size: 14px;
    color: var(--ink-600, #4a6383);
}

.fv-post-toc .fv-post-toc-sub a::before {
    content: "\2013";
    min-width: 8px;
    font-weight: 400;
    color: var(--ink-500, #8196ad);
}

.fv-post-toc a:hover {
    background: var(--ink-50, #f6f8fb);
    color: var(--ink-900, #0f2236);
}

@media (min-width: 992px) {
    .fv-post-toc > summary {
        pointer-events: none;
        padding-bottom: 12px;
    }

    .fv-post-toc > summary::after,
    .fv-post-toc-count {
        display: none;
    }

    .fv-post-toc ol {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
}

/* ---- body ---- */
.fv-post-body p {
    margin: 0 0 16px;
}

.fv-post-body h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 40px 0 12px;
    text-align: left !important;
    color: var(--ink-900, #0f2236);
}

.fv-post-body h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 28px 0 10px;
    text-align: left !important;
    color: var(--ink-900, #0f2236);
}

.fv-post-body h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 8px;
}

.fv-post-body h5,
.fv-post-body h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 8px;
}

/* the shop header is about 131 px high when scrolled: jump targets land below it */
.fv-post-body [id],
.fv-post [id] {
    scroll-margin-top: 150px;
}

.fv-post-body a,
.fv-post-faq a,
.fv-post-link {
    color: var(--teal-700, #0d7a74);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fv-post-body ul,
.fv-post-body ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.fv-post-body ul {
    list-style: disc;
}

.fv-post-body ol {
    list-style: decimal;
}

.fv-post-body li {
    margin: 0 0 6px;
}

.fv-post-body ol > li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.fv-post-body ol > li::marker {
    font-weight: 700;
    color: var(--teal-700, #0d7a74);
}

.fv-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.fv-post-body p > img,
.fv-post-body > img,
.fv-post-body figure > img {
    display: block;
    margin: 20px auto;
}

.fv-post-body figure {
    margin: 20px 0;
}

.fv-post-body figcaption {
    font-size: 13.5px;
    color: var(--ink-600, #4a6383);
    text-align: center;
    margin-top: 6px;
}

/* tables scroll sideways inside their own box; the page never does */
.fv-post-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.45;
}

.fv-post-body th,
.fv-post-body td {
    border: 1px solid var(--ink-200, #dbe1e9);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    min-width: 120px;
}

.fv-post-body th {
    background: var(--ink-50, #f6f8fb);
    font-weight: 600;
    white-space: nowrap;
}

.fv-post-body .building_slider img {
    border-radius: 0;
}

/* ---- next step ---- */
.fv-post-next {
    background: var(--ink-50, #f6f8fb);
    margin-top: 32px;
}

.fv-post-next-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

.fv-post-next-text {
    margin: 0 0 14px;
    color: var(--ink-600, #4a6383);
    font-size: 16px;
}

.fv-post-next-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.fv-post-btn {
    display: inline-block;
    background: var(--ink-900, #0f2236);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    padding: 11px 20px;
    border-radius: 8px;
    text-decoration: none;
    min-height: 44px;
}

.fv-post-btn:hover,
.fv-post-btn:focus {
    background: var(--teal-700, #0d7a74);
    color: #fff;
}

/* ---- FAQ (echofaq() markup unchanged; restyled to match the boxes) ---- */
.fv-post-faq,
.fv-post-sources {
    margin: 40px 0 0;
}

.fv-post-faq > h2,
.fv-post-sources > h2,
.fv-post-related > h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 0 0 14px;
    color: var(--ink-900, #0f2236);
}

.fv-post-faq .css-accordion-item {
    border: 1px solid var(--ink-200, #dbe1e9);
    border-radius: 12px;
    margin: 0 0 10px;
    background: #fff;
}

.fv-post-faq .css-accordion-label,
.fv-post-faq .css-accordion-label:hover,
.fv-post-faq .css-accordion-input:checked + .css-accordion-label {
    background: #fff;
    padding: 16px 48px 12px 18px;
    margin: 0;
}

.fv-post-faq .css-accordion-label h3 {
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--ink-900, #0f2236);
}

.fv-post-faq .css-accordion-label::after {
    right: 18px;
    color: var(--ink-900, #0f2236);
}

.fv-post-faq .css-accordion-body {
    border-top: 0;
    padding: 0 18px 16px;
    color: var(--ink-600, #4a6383);
    font-size: 16px;
    line-height: 1.6;
}

.fv-post-faq .css-accordion-body p:last-child {
    margin-bottom: 0;
}

/* ---- sources ---- */
.fv-post-sources {
    border-top: 1px solid var(--ink-200, #dbe1e9);
    padding-top: 24px;
}

.fv-post-sources ol {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink-600, #4a6383);
}

.fv-post-sources li {
    margin: 0 0 8px;
}

.fv-post-sources a {
    color: var(--teal-700, #0d7a74);
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.fv-post-sources-note {
    display: block;
}

/* ---- about the author ---- */
.fv-post-author {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid var(--ink-200, #dbe1e9);
    border-radius: 14px;
    padding: 20px;
    margin: 40px 0 0;
    background: #fff;
}

.fv-post-author-avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--teal-100, #d0f4f2);
    color: var(--teal-700, #0d7a74);
    display: grid;
    place-items: center;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.fv-post-author-body {
    min-width: 0;
}

.fv-post-author-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.fv-post-author-role {
    font-size: 14px;
    font-weight: 500;
    color: var(--teal-700, #0d7a74);
    margin: 2px 0 8px;
}

.fv-post-author-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-600, #4a6383);
    margin: 0 0 8px;
}

/* ---- related / more guides ---- */
.fv-post-related {
    max-width: 1068px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--ink-200, #dbe1e9);
}

.fv-post-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.fv-post-related-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ink-200, #dbe1e9);
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s;
}

.fv-post-related-card:hover {
    box-shadow: 0 6px 20px rgba(15, 34, 54, 0.09);
    color: inherit;
}

.fv-post-related-img {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ink-50, #f6f8fb);
}

.fv-post-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fv-post-related-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fv-post-related-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink-900, #0f2236);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fv-post-related-date {
    font-size: 12px;
    color: var(--ink-500, #8196ad);
}

/* ---- phone ---- */
@media (max-width: 767px) {
    .fv-post {
        font-size: 16px;
    }

    .fv-post-standfirst {
        font-size: 17px;
    }

    .fv-post-body h2 {
        font-size: 22px;
        margin-top: 32px;
    }

    .fv-post-body h3 {
        font-size: 18px;
    }

    .fv-post-box {
        padding: 16px;
    }

    .fv-post-hero {
        border-radius: 10px;
    }

    .fv-post-next-links {
        flex-direction: column;
        align-items: stretch;
    }

    .fv-post-btn {
        text-align: center;
    }

    /* author: 48 px avatar beside the name (not stacked) */
    .fv-post-author {
        gap: 12px;
        padding: 16px;
    }

    .fv-post-author-avatar {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .fv-post-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .fv-post-related-card {
        flex-direction: row;
        align-items: center;
        padding: 10px;
        gap: 12px;
    }

    .fv-post-related-img {
        flex: 0 0 96px;
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }

    .fv-post-related-title {
        -webkit-line-clamp: 3;
    }
}
