
/* =========================================================================
   DEMOKRATI100.SE - ARTIKEL-CSS (klass-baserad, scopad)
   Påverkar ENBART enskilda artiklar (body.single-post) och sidor (body.page).
   Tema: Parlamentariskt - navy, off-white och gul stjärna. Demokrati-känsla.
   Färgpalett: #1a3a6e (navy djup) | #2d5aa0 (navy ljusare) | #f4c430 (gul stjärna)
               #faf8f3 (papper off-white) | #e8e4dc (papper-kant) | #3a3a3a (mörkgrå text)
   ========================================================================= */


/* -------- RUBRIKER -------- */
body.single-post .entry-content h2,
body.single-post .post-content h2,
body.page .entry-content h2,
body.page .post-content h2 {
    color: #1a3a6e !important;
    border-bottom: 2px solid #1a3a6e !important;
    padding-bottom: 10px !important;
    margin-top: 42px !important;
    margin-bottom: 22px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
    position: relative !important;
}

body.single-post .entry-content h2::after,
body.single-post .post-content h2::after,
body.page .entry-content h2::after,
body.page .post-content h2::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 60px !important;
    height: 2px !important;
    background-color: #f4c430 !important;
}

body.single-post .entry-content h3,
body.single-post .post-content h3,
body.page .entry-content h3,
body.page .post-content h3 {
    color: #1a3a6e !important;
    border-left: 4px solid #f4c430 !important;
    padding-left: 14px !important;
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

body.single-post .entry-content h4,
body.single-post .post-content h4,
body.page .entry-content h4,
body.page .post-content h4 {
    color: #1a3a6e !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 15px !important;
}


/* -------- PUNKTLISTOR (ul) - kryssrutor i röstsedel-stil -------- */
body.single-post .entry-content > ul,
body.single-post .post-content > ul,
body.page .entry-content > ul,
body.page .post-content > ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 20px 0 !important;
    line-height: 1.6 !important;
}

body.single-post .entry-content > ul > li,
body.single-post .post-content > ul > li,
body.page .entry-content > ul > li,
body.page .post-content > ul > li {
    position: relative !important;
    padding-left: 32px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-bottom: 10px !important;
    list-style: none !important;
    font-size: 16px !important;
    color: #3a3a3a !important;
}

body.single-post .entry-content > ul > li::before,
body.single-post .post-content > ul > li::before,
body.page .entry-content > ul > li::before,
body.page .post-content > ul > li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 9px !important;
    width: 14px !important;
    height: 14px !important;
    background-color: #ffffff !important;
    border: 2px solid #1a3a6e !important;
    border-radius: 2px !important;
    box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 0 5px #f4c430 !important;
}

body.single-post .entry-content > ul > li strong,
body.single-post .post-content > ul > li strong,
body.page .entry-content > ul > li strong,
body.page .post-content > ul > li strong {
    color: #1a3a6e !important;
}


/* -------- LJUS PAPPERS LIST-BOX (använd klassen "dem-list") -------- */
body.single-post .dem-list,
body.page .dem-list {
    background: #faf8f3 !important;
    border-left: 4px solid #f4c430 !important;
    border-radius: 4px !important;
    padding: 18px 22px 18px 42px !important;
    margin: 18px 0 !important;
    line-height: 1.7 !important;
    list-style: disc !important;
}

body.single-post .dem-list li,
body.page .dem-list li {
    margin-bottom: 8px !important;
    color: #3a3a3a !important;
    padding-left: 0 !important;
}

body.single-post .dem-list li::before,
body.page .dem-list li::before {
    display: none !important;
    content: none !important;
}

body.single-post .dem-list li strong,
body.page .dem-list li strong {
    color: #1a3a6e !important;
}

body.single-post .dem-list li::marker,
body.page .dem-list li::marker {
    color: #f4c430 !important;
}


/* -------- NUMRERADE LISTOR (ol) - steg-kort med parlamentskänsla -------- */
body.single-post .entry-content > ol,
body.single-post .post-content > ol,
body.page .entry-content > ol,
body.page .post-content > ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 22px 0 !important;
    counter-reset: demstep !important;
}

body.single-post .entry-content > ol > li,
body.single-post .post-content > ol > li,
body.page .entry-content > ol > li,
body.page .post-content > ol > li {
    counter-increment: demstep !important;
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #e8e4dc !important;
    border-left: 4px solid #1a3a6e !important;
    border-radius: 4px !important;
    padding: 16px 20px 16px 64px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 3px rgba(26, 58, 110, 0.08) !important;
    list-style: none !important;
    font-size: 15px !important;
    color: #3a3a3a !important;
    line-height: 1.55 !important;
    min-height: 30px !important;
}

body.single-post .entry-content > ol > li::before,
body.single-post .post-content > ol > li::before,
body.page .entry-content > ol > li::before,
body.page .post-content > ol > li::before {
    content: counter(demstep) !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    background: #1a3a6e !important;
    color: #f4c430 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 15px !important;
    border: 2px solid #f4c430 !important;
}

body.single-post .entry-content > ol > li strong,
body.single-post .post-content > ol > li strong,
body.page .entry-content > ol > li strong,
body.page .post-content > ol > li strong {
    color: #1a3a6e !important;
}


/* -------- TABELLER -------- */
body.single-post .entry-content table,
body.single-post .post-content table,
body.page .entry-content table,
body.page .post-content table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #1a3a6e !important;
    background-color: #ffffff !important;
    margin: 22px 0 !important;
    font-size: 15px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-shadow: 0 2px 4px rgba(26, 58, 110, 0.10) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

body.single-post .entry-content table thead tr,
body.single-post .post-content table thead tr,
body.single-post .entry-content table th,
body.single-post .post-content table th,
body.page .entry-content table thead tr,
body.page .post-content table thead tr,
body.page .entry-content table th,
body.page .post-content table th {
    background-color: #1a3a6e !important;
    color: #ffffff !important;
}

body.single-post .entry-content table th,
body.single-post .post-content table th,
body.page .entry-content table th,
body.page .post-content table th {
    padding: 13px 16px !important;
    font-weight: 600 !important;
    text-align: left !important;
    border: 1px solid #1a3a6e !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
}

body.single-post .entry-content table td,
body.single-post .post-content table td,
body.page .entry-content table td,
body.page .post-content table td {
    padding: 12px 16px !important;
    color: #3a3a3a !important;
    border: 1px solid #e8e4dc !important;
    vertical-align: top !important;
    text-align: left !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

body.single-post .entry-content table tbody tr:nth-child(even),
body.single-post .post-content table tbody tr:nth-child(even),
body.page .entry-content table tbody tr:nth-child(even),
body.page .post-content table tbody tr:nth-child(even) {
    background-color: #faf8f3 !important;
}

body.single-post .entry-content table td:first-child,
body.single-post .post-content table td:first-child,
body.page .entry-content table td:first-child,
body.page .post-content table td:first-child {
    color: #1a3a6e !important;
    font-weight: 500 !important;
}

body.single-post .entry-content table td strong,
body.single-post .post-content table td strong,
body.page .entry-content table td strong,
body.page .post-content table td strong {
    color: #1a3a6e !important;
}


/* =========================================================================
   INFOBOXAR & TANKEBUBBLOR (klass-baserade)
   ========================================================================= */

/* -------- GRANSKAD-BAR (klassen "dem-review-bar") -------- */
body.single-post .dem-review-bar,
body.page .dem-review-bar {
    background: #faf8f3;
    border-left: 4px solid #1a3a6e;
    padding: 12px 18px;
    margin: 0 0 26px 0;
    border-radius: 4px;
    color: #1a3a6e;
    font-size: 14px;
    line-height: 1.6;
}

body.single-post .dem-review-bar a,
body.page .dem-review-bar a {
    color: #1a3a6e;
    text-decoration: underline;
    text-decoration-color: #f4c430;
    text-underline-offset: 3px;
    font-weight: 600;
}


/* -------- INFO-BOX "Bra att veta" (klassen "dem-info-box") -------- */
body.single-post .dem-info-box,
body.page .dem-info-box {
    background-color: #ffffff;
    border: 1px solid #e8e4dc;
    border-left: 5px solid #f4c430;
    padding: 18px 22px;
    margin: 26px 0;
    border-radius: 4px;
    color: #3a3a3a;
    line-height: 1.65;
    box-shadow: 0 1px 3px rgba(26, 58, 110, 0.08);
}

body.single-post .dem-info-box strong,
body.page .dem-info-box strong {
    color: #1a3a6e;
}

body.single-post .dem-info-box a,
body.page .dem-info-box a {
    color: #1a3a6e;
    text-decoration: underline;
    text-decoration-color: #f4c430;
    text-underline-offset: 3px;
    font-weight: 500;
}


/* -------- REDAKTÖRENS RÖST (klassen "dem-editor-tip") -------- */
body.single-post .dem-editor-tip,
body.page .dem-editor-tip {
    background: #1a3a6e;
    color: #faf8f3;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 4px;
    line-height: 1.65;
    box-shadow: 0 3px 8px rgba(26, 58, 110, 0.25);
    border-left: 5px solid #f4c430;
    position: relative;
}

/* Tvinga ALL text inuti boxen till ljus */
body.single-post .dem-editor-tip,
body.single-post .dem-editor-tip *,
body.single-post .dem-editor-tip p,
body.single-post .dem-editor-tip span,
body.single-post .dem-editor-tip h1,
body.single-post .dem-editor-tip h2,
body.single-post .dem-editor-tip h3,
body.single-post .dem-editor-tip h4,
body.single-post .dem-editor-tip h5,
body.single-post .dem-editor-tip h6,
body.single-post .dem-editor-tip li,
body.single-post .dem-editor-tip td,
body.single-post .dem-editor-tip th,
body.page .dem-editor-tip,
body.page .dem-editor-tip *,
body.page .dem-editor-tip p,
body.page .dem-editor-tip span,
body.page .dem-editor-tip h1,
body.page .dem-editor-tip h2,
body.page .dem-editor-tip h3,
body.page .dem-editor-tip h4,
body.page .dem-editor-tip h5,
body.page .dem-editor-tip h6,
body.page .dem-editor-tip li,
body.page .dem-editor-tip td,
body.page .dem-editor-tip th {
    color: #faf8f3 !important;
}

body.single-post .dem-editor-tip strong,
body.page .dem-editor-tip strong {
    display: block;
    margin-bottom: 10px;
    font-size: 17px;
    color: #f4c430 !important;
    letter-spacing: 0.5px;
}

body.single-post .dem-editor-tip a,
body.page .dem-editor-tip a {
    color: #f4c430 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}


/* -------- TANKEBUBBLA / DEBATT-RUTA (klassen "dem-bubble") --------
   Använd med klassen dem-bubble-badge för badge
   och dem-bubble-arrow för nedre pil. -------- */
body.single-post .dem-bubble,
body.page .dem-bubble {
    position: relative;
    background: #ffffff;
    border: 2px solid #1a3a6e;
    padding: 48px 26px 24px 26px;
    margin: 52px 0 40px 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(26, 58, 110, 0.12);
    color: #3a3a3a;
    line-height: 1.65;
}

body.single-post .dem-bubble p,
body.page .dem-bubble p {
    margin-top: 0;
    margin-bottom: 0;
}

body.single-post .dem-bubble-badge,
body.page .dem-bubble-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    background: #1a3a6e;
    color: #f4c430;
    padding: 6px 16px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    z-index: 2;
    text-transform: uppercase;
    border: 1px solid #f4c430;
}

body.single-post .dem-bubble-arrow,
body.page .dem-bubble-arrow {
    position: absolute;
    bottom: -10px;
    left: 48px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-right: 2px solid #1a3a6e;
    border-bottom: 2px solid #1a3a6e;
    transform: rotate(45deg);
}


/* -------- CITATBLOCK / DEMOKRATI-CITAT (klassen "dem-quote") -------- */
body.single-post .dem-quote,
body.page .dem-quote {
    position: relative;
    background: #faf8f3;
    border-left: 5px solid #1a3a6e;
    padding: 24px 28px 24px 64px;
    margin: 30px 0;
    border-radius: 4px;
    font-style: italic;
    font-size: 17px;
    line-height: 1.65;
    color: #1a3a6e;
}

body.single-post .dem-quote::before,
body.page .dem-quote::before {
    content: "\201C";
    position: absolute;
    left: 18px;
    top: 4px;
    font-size: 56px;
    color: #f4c430;
    line-height: 1;
    font-style: normal;
}

body.single-post .dem-quote cite,
body.page .dem-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-style: normal;
    color: #1a3a6e;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* -------- FAKTARUTA / SIFFRA I FOKUS (klassen "dem-fact") -------- */
body.single-post .dem-fact,
body.page .dem-fact {
    background: #ffffff;
    border: 1px solid #e8e4dc;
    border-top: 4px solid #f4c430;
    padding: 22px 24px;
    margin: 26px 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(26, 58, 110, 0.10);
    text-align: center;
}

body.single-post .dem-fact strong,
body.page .dem-fact strong {
    display: block;
    color: #1a3a6e;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

body.single-post .dem-fact span,
body.page .dem-fact span {
    display: block;
    color: #3a3a3a;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================================
   MOBIL (max 700px) - tabeller får kompakt vy
   ========================================================================= */
@media (max-width: 700px) {

    body.single-post .entry-content table,
    body.single-post .post-content table,
    body.page .entry-content table,
    body.page .post-content table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        font-size: 11px !important;
        border-radius: 4px !important;
    }

    body.single-post .entry-content table th,
    body.single-post .post-content table th,
    body.page .entry-content table th,
    body.page .post-content table th {
        padding: 7px 5px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.25 !important;
        text-align: left !important;
        letter-spacing: 0.3px !important;
    }

    body.single-post .entry-content table td,
    body.single-post .post-content table td,
    body.page .entry-content table td,
    body.page .post-content table td {
        padding: 7px 5px !important;
        font-size: 11px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.4 !important;
        vertical-align: top !important;
    }

    body.single-post .dem-bubble,
    body.page .dem-bubble {
        padding: 42px 18px 22px 18px;
    }

    body.single-post .dem-quote,
    body.page .dem-quote {
        padding: 20px 18px 20px 52px;
        font-size: 15px;
    }

    body.single-post .dem-quote::before,
    body.page .dem-quote::before {
        font-size: 42px;
        left: 14px;
    }

    body.single-post .entry-content > ol > li,
    body.single-post .post-content > ol > li,
    body.page .entry-content > ol > li,
    body.page .post-content > ol > li {
        padding: 14px 16px 14px 58px !important;
        font-size: 14px !important;
    }

    body.single-post .entry-content > ol > li::before,
    body.single-post .post-content > ol > li::before,
    body.page .entry-content > ol > li::before,
    body.page .post-content > ol > li::before {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    body.single-post .dem-fact strong,
    body.page .dem-fact strong {
        font-size: 26px;
    }
}
