/* ==========================================================================
   OPRANIC - Long-form post design system
   --------------------------------------------------------------------------
   Laddas via opranic_conditional_styles() på post-IDs:
     - 25482 (Infravärmare bäst i test 2026)
     - 25551 (Gasolvärmare eller infravärmare - vad är bäst 2026)
     ⚠️ + WPML-översättningar (hanteras via opranic_is_post_or_translation)

   Detta är design-systemet för långa SEO-artiklar (köp- och jämförelse-
   guider). Inte bäst-i-test-specifikt - alla long-form artiklar med
   .opr-post-strukturen kan använda denna.

   När nya bäst-i-test/jämförelseguide-poster skapas: lägg till deras
   post-ID i opranic_conditional_styles() i functions.php.

   Innehåll:
     1. Layout (.opr-post container)
     2. Hero + Ingress
     3. Bilder (.opr-post__img + figcaption)
     4. Platshållare (.opr-post__placeholder)
     5. Interna länkrutor (.opr-post__guide-link)
     6. Produktsektioner (.opr-post__product + specs)
     7. CTA-knappar (.opr-post__cta)
     8. Driftkostnad-widget (.opr-post__cost-widget)
     9. Slutsats-ruta (.opr-post__conclusion)
    10. CLS-fix specifikt för post 25482

   Version: 2026-04-30 (refactor v2.5 - extraherad från Customizer Additional CSS)
   ========================================================================== */

/* ==========================================================================
   1. LAYOUT
   ========================================================================== */

.opr-post {
    font-family: inherit;
    color: #262626;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Rubriker */
.opr-post h1 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    line-height: 1.2;
}
.opr-post h2 {
    font-size: clamp(19px, 2.2vw, 26px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #EE9305;
}
.opr-post p {
    margin: 0 0 20px;
    font-size: 16px;
}

/* ==========================================================================
   2. HERO + INGRESS
   ========================================================================== */

.opr-post__hero {
    margin: 0 0 48px;
    border-radius: 6px;
    overflow: hidden;
}
.opr-post__hero img {
    width: 100%;
    height: auto;
    display: block;
}

.opr-post__ingress {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    border-left: 4px solid #EE9305;
    padding-left: 20px;
    margin: 0 0 40px;
}

/* ==========================================================================
   3. BILDER I ARTIKEL
   ========================================================================== */

.opr-post__img {
    margin: 32px 0;
    border-radius: 6px;
    overflow: hidden;
}
.opr-post__img img {
    width: 100%;
    height: auto;
    display: block;
}
.opr-post__img figcaption {
    font-size: 13px;
    color: #666;
    padding: 10px 14px;
    background: #f8f8f8;
    border-left: 3px solid #EE9305;
}

/* ==========================================================================
   4. PLATSHÅLLARE (för bilder under produktion)
   ========================================================================== */

.opr-post__placeholder {
    margin: 32px 0;
    border-radius: 6px;
    border: 2px dashed #EE9305;
    background: #fff9f0;
    padding: 32px 24px;
    text-align: center;
}
.opr-post__placeholder p {
    margin: 0;
    font-size: 14px;
    color: #888;
    font-style: italic;
}
.opr-post__placeholder strong {
    display: block;
    font-size: 15px;
    color: #EE9305;
    margin-bottom: 6px;
    font-style: normal;
}

/* ==========================================================================
   5. INTERNA LÄNKRUTOR (.opr-post__guide-link)
   ========================================================================== */

.opr-post__guide-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border-left: 4px solid #EE9305;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin: 12px 0;
    text-decoration: none;
    color: #262626;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}
.opr-post__guide-link:hover {
    background: #ffe9c4;
    color: #262626;
}
.opr-post__guide-link::before {
    content: "\27A1";
    color: #EE9305;
    font-size: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   6. PRODUKTSEKTIONER
   ========================================================================== */

.opr-post__product {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    margin: 40px 0;
}
.opr-post__product-img img {
    width: 100%;
    height: auto;
    display: block;
}
.opr-post__product-body {
    padding: 28px 28px 24px;
}
.opr-post__product-body h2 {
    margin-top: 0;
    border-bottom-color: #EE9305;
}

.opr-post__product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin: 20px 0 24px;
    font-size: 14px;
}
.opr-post__product-specs dt {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.opr-post__product-specs dd {
    margin: 0 0 12px;
    color: #262626;
    font-weight: 500;
    font-size: 14px;
}

/* ==========================================================================
   7. CTA-KNAPPAR
   ========================================================================== */

.opr-post__cta {
    display: inline-block;
    background: #EE9305;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s;
}
.opr-post__cta:hover {
    background: #d4820a;
    color: #fff;
}

/* ==========================================================================
   8. DRIFTKOSTNAD-WIDGET (för inbäddade kalkyler)
   ========================================================================== */

.opr-post__cost-widget {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px;
    margin: 32px 0;
}

/* ==========================================================================
   9. SLUTSATS-RUTA (mörk sammanfattnings-box)
   ========================================================================== */

.opr-post__conclusion {
    background: #1a1a1a;
    color: #f6f6f6;
    border-radius: 8px;
    padding: 32px 36px;
    margin: 48px 0 32px;
}
.opr-post__conclusion h2 {
    color: #EE9305;
    border-bottom-color: #EE9305;
    margin-top: 0;
}
.opr-post__conclusion p {
    color: #e0e0e0;
}
.opr-post__conclusion .opr-post__cta {
    margin-top: 16px;
    margin-right: 12px;
}
.opr-post__conclusion .opr-post__cta--ghost {
    background: transparent;
    border: 2px solid #EE9305;
    color: #EE9305;
}
.opr-post__conclusion .opr-post__cta--ghost:hover {
    background: #EE9305;
    color: #fff;
}

/* ==========================================================================
   10. RESPONSIVT
   ========================================================================== */

@media (max-width: 600px) {
    .opr-post__product-specs {
        grid-template-columns: 1fr;
    }
    .opr-post__conclusion {
        padding: 24px 20px;
    }
    .opr-post__cost-widget {
        padding: 18px 14px;
    }
}

/* ==========================================================================
   11. CLS-FIX SPECIFIKT FÖR POST 25482 (hero-bild)
   ========================================================================== */

body.postid-25482 .vc_single_image-wrapper {
    aspect-ratio: 970 / 600;
    display: block;
}
body.postid-25482 .vc_single_image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* === SLUT på opr-post CSS ================================================ */