/* Denzel of Sweden: befintliga artikelstilar, bevarade för innehåll med dw-klasser. */
/* -------- RUBRIKER -------- */
.entry-content h2,
.post-content h2 {
    color: #c9a961;
    border-bottom: 3px solid #c9a961;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.entry-content h3,
.post-content h3 {
    color: #c9a961;
    border-left: 4px solid #c9a961;
    padding-left: 12px;
    margin-top: 30px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.entry-content h4,
.post-content h4 {
    color: #d4b876;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}


/* -------- BRODTEXT (lasbar farg mot mork bakgrund) -------- */
.entry-content p,
.post-content p {
    color: #f5ecd3;
    line-height: 1.7;
}

.entry-content strong,
.post-content strong {
    color: #c9a961;
}

.entry-content blockquote,
.post-content blockquote {
    border-left: 4px solid #c9a961;
    background: #1f1f1f;
    padding: 16px 22px;
    margin: 22px 0;
    color: #f5ecd3;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}


/* -------- LANKAR I BRODTEXT -------- */
.entry-content p a,
.post-content p a,
.entry-content li a,
.post-content li a {
    color: #d4b876;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content p a:hover,
.post-content p a:hover,
.entry-content li a:hover,
.post-content li a:hover {
    color: #c9a961;
}


/* -------- PUNKTLISTOR (ul) - automatiska checklistor i guld -------- */
.entry-content > ul,
.post-content > ul {
    list-style: none;
    padding-left: 0;
    margin: 18px 0;
    line-height: 1.6;
}

.entry-content > ul > li,
.post-content > ul > li {
    position: relative;
    padding-left: 36px;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-bottom: 10px;
    list-style: none;
    font-size: 16px;
    color: #f5ecd3;
}

.entry-content > ul > li::before,
.post-content > ul > li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    background-color: #2a2418;
    color: #c9a961;
    border: 1px solid #c9a961;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    line-height: 1;
    box-sizing: border-box;
}

.entry-content > ul > li strong,
.post-content > ul > li strong {
    color: #c9a961;
}


/* -------- MORK LIST-BOX (klassen "dw-list") -------- */
.dw-list {
    background: #1f1f1f;
    border: 1px solid #3a3220;
    border-radius: 10px;
    padding: 18px 20px 18px 40px;
    margin: 16px 0;
    line-height: 1.7;
    list-style: disc;
    color: #f5ecd3;
}

.dw-list li {
    margin-bottom: 8px;
    color: #f5ecd3;
    padding-left: 0;
}

.dw-list li::marker {
    color: #c9a961;
}

/* Neutraliserar den globala ul-checkmarken inuti dw-list.
   !important behovs har: maste vinna over .entry-content > ul > li::before. */
.dw-list li::before {
    display: none !important;
    content: none !important;
}

.dw-list li strong {
    color: #c9a961;
}


/* -------- NUMRERADE LISTOR (ol) - steg-kort -------- */
.entry-content > ol,
.post-content > ol {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
    counter-reset: dwstep;
}

.entry-content > ol > li,
.post-content > ol > li {
    counter-increment: dwstep;
    position: relative;
    background: #1f1f1f;
    border: 1px solid #3a3220;
    border-radius: 10px;
    padding: 14px 18px 14px 60px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(201, 169, 97, 0.08);
    list-style: none;
    font-size: 15px;
    color: #f5ecd3;
    line-height: 1.5;
    min-height: 30px;
}

.entry-content > ol > li::before,
.post-content > ol > li::before {
    content: counter(dwstep);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #c9a961;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.entry-content > ol > li strong,
.post-content > ol > li strong {
    color: #c9a961;
}


/* -------- TABELLER -------- */
.entry-content table,
.post-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    border: 1px solid #c9a961;
    background-color: #1f1f1f;
    margin: 20px 0;
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-shadow: 0 1px 3px rgba(201, 169, 97, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.entry-content table thead tr,
.post-content table thead tr,
.entry-content table th,
.post-content table th {
    background-color: #c9a961;
    color: #1a1a1a;
}

.entry-content table th,
.post-content table th {
    padding: 12px 14px;
    font-weight: 700;
    text-align: left;
    border: 1px solid #c9a961;
}

.entry-content table td,
.post-content table td {
    padding: 12px 14px;
    color: #f5ecd3;
    border: 1px solid #3a3220;
    vertical-align: top;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-content table tbody tr:nth-child(even),
.post-content table tbody tr:nth-child(even) {
    background-color: #262626;
}

.entry-content table td:first-child,
.post-content table td:first-child {
    color: #ffffff;
    font-weight: 500;
}

.entry-content table td strong,
.post-content table td strong {
    color: #c9a961;
}

.entry-content table a,
.post-content table a {
    color: #d4b876;
    text-decoration: underline;
}


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

/* -------- GRANSKAD-BAR (klassen "dw-review-bar") -------- */
.dw-review-bar {
    background: #1f1f1f;
    border-left: 4px solid #c9a961;
    padding: 12px 18px;
    margin: 0 0 24px 0;
    border-radius: 6px;
    color: #f5ecd3;
    font-size: 14px;
    line-height: 1.6;
}

.dw-review-bar a {
    color: #c9a961;
    text-decoration: underline;
    font-weight: 600;
}

.dw-review-bar strong {
    color: #c9a961;
}


/* -------- INFO-BOX "Bra att veta" (klassen "dw-info-box") -------- */
.dw-info-box {
    background-color: #1f1f1f;
    border: 1px solid #3a3220;
    border-left: 5px solid #c9a961;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 6px;
    color: #f5ecd3;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(201, 169, 97, 0.08);
}

.dw-info-box strong {
    color: #c9a961;
}

.dw-info-box a {
    color: #d4b876;
    text-decoration: underline;
    font-weight: 500;
}


/* -------- REDAKTORENS TIPS (klassen "dw-editor-tip") -------- */
.dw-editor-tip {
    background: #c9a961;
    color: #1a1a1a;
    padding: 18px 22px;
    margin: 22px 0;
    border-radius: 10px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(201, 169, 97, 0.15);
}

/* Tvingar ALL text inuti boxen till mork for kontrast mot guld.
   !important behovs har: maste vinna over .entry-content p/li/strong-fargerna. */
.dw-editor-tip,
.dw-editor-tip *,
.dw-editor-tip p,
.dw-editor-tip span,
.dw-editor-tip h1,
.dw-editor-tip h2,
.dw-editor-tip h3,
.dw-editor-tip h4,
.dw-editor-tip h5,
.dw-editor-tip h6,
.dw-editor-tip li,
.dw-editor-tip td,
.dw-editor-tip th {
    color: #1a1a1a !important;
}

.dw-editor-tip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.dw-editor-tip a {
    text-decoration: underline;
    font-weight: 600;
}


/* -------- TANKEBUBBLA (klassen "dw-bubble") --------
   Anvands med dw-bubble-badge for badge och dw-bubble-arrow for nedre pil. */
.dw-bubble {
    position: relative;
    background: #1f1f1f;
    border: 2px solid #c9a961;
    padding: 45px 24px 22px 24px;
    margin: 50px 0 38px 0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(201, 169, 97, 0.12);
    color: #f5ecd3;
    line-height: 1.6;
}

.dw-bubble p {
    margin-top: 0;
    margin-bottom: 0;
    color: #f5ecd3;
}

.dw-bubble strong {
    color: #c9a961;
}

.dw-bubble a {
    color: #d4b876;
    text-decoration: underline;
}

.dw-bubble-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    background: #c9a961;
    color: #1a1a1a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 2;
}

.dw-bubble-arrow {
    position: absolute;
    bottom: -11px;
    left: 48px;
    width: 18px;
    height: 18px;
    background: #1f1f1f;
    border-right: 2px solid #c9a961;
    border-bottom: 2px solid #c9a961;
    transform: rotate(45deg);
}


/* -------- VARNINGSBOX (klassen "dw-warning") -------- */
.dw-warning {
    background: #2a1f1f;
    border: 1px solid #8b3a3a;
    border-left: 5px solid #b85450;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 6px;
    color: #f5ecd3;
    line-height: 1.6;
}

.dw-warning strong {
    color: #d97777;
}


/* =========================================================================
   MOBIL (max 700px) - ENDAST tabeller med klassen dw-tabell-kort stackas.
   Vanliga tvakolumnstabeller star kvar som vanlig tabell aven pa mobil.
   Bred tabell (3+ kolumner): satt class="dw-tabell-kort" pa table-taggen.
   Varje cell utom den forsta behover data-label="..." for kortrubriken.
   ========================================================================= */
@media (max-width: 700px) {

    .entry-content table.dw-tabell-kort,
    .post-content table.dw-tabell-kort {
        border: none;
        background: transparent;
        display: block;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .entry-content table.dw-tabell-kort thead,
    .post-content table.dw-tabell-kort thead {
        display: none;
    }

    .entry-content table.dw-tabell-kort tbody,
    .post-content table.dw-tabell-kort tbody {
        display: block;
        width: 100%;
    }

    .entry-content table.dw-tabell-kort tr,
    .post-content table.dw-tabell-kort tr {
        display: block;
        background-color: #1f1f1f;
        border: 1px solid #c9a961;
        border-radius: 10px;
        margin-bottom: 14px;
        padding: 4px 0;
        box-shadow: 0 1px 3px rgba(201, 169, 97, 0.08);
        width: 100%;
        box-sizing: border-box;
    }

    .entry-content table.dw-tabell-kort tr:nth-child(even),
    .post-content table.dw-tabell-kort tr:nth-child(even) {
        background-color: #1f1f1f;
    }

    .entry-content table.dw-tabell-kort td,
    .post-content table.dw-tabell-kort td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 14px;
        border: none;
        border-bottom: 1px solid #3a3220;
        text-align: left;
        font-size: 14px;
        color: #f5ecd3;
    }

    /* Kortrubrik per cell (utom den forsta) via data-label */
    .entry-content table.dw-tabell-kort td:not(:first-child)::before,
    .post-content table.dw-tabell-kort td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #c9a961;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .entry-content table.dw-tabell-kort tbody tr td:last-child,
    .post-content table.dw-tabell-kort tbody tr td:last-child {
        border-bottom: none;
    }

    .entry-content table.dw-tabell-kort tbody tr td:first-child,
    .post-content table.dw-tabell-kort tbody tr td:first-child {
        background-color: #2a2418;
        font-weight: bold;
        color: #c9a961;
        border-radius: 10px 10px 0 0;
    }

    /* Tankebubbla - mindre padding pa mobil */
    .dw-bubble {
        padding: 40px 18px 20px 18px;
    }

    /* Rubriker - lite mindre pa mobil */
    .entry-content h2,
    .post-content h2 {
        font-size: 22px;
    }

    .entry-content h3,
    .post-content h3 {
        font-size: 18px;
    }

    .entry-content h4,
    .post-content h4 {
        font-size: 16px;
    }
}
