/**
 * Faktaboks Styles
 * Three types: ind (float right), citat (guillemets), ude (margin)
 *
 * Design: Option A (large open-quote) for ind/ude
 *         Option D (guillemets « ») for citat
 */

/* SHARED */

.faktaboks__title {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* (ind) */

.faktaboks--ind {
    display: block;
    float: right;
    clear: right;
    position: relative;
    width: 200px;
    padding: 0.4rem 0.6rem 0.4rem 2rem;
    margin: 0.25rem 0 1rem 1.25rem;
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
}

.faktaboks--ind::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 42px;
    line-height: 1;
    font-style: normal;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--color-text-secondary, #666);
    opacity: 0.3;
}

/* Align left override */
.faktaboks--ind.faktaboks--align-left {
    float: left;
    clear: left;
    margin: 0.25rem 1.25rem 1rem 0;
}

.faktaboks--ind .faktaboks__content {
    display: block;
    text-wrap: pretty;
}

/* QUOTE */

.faktaboks--citat {
    display: inline;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    text-wrap: pretty;
}
.faktaboks--citat .faktaboks__content {
    display: inline;
    text-wrap: pretty;
}

.faktaboks--citat .faktaboks__content::before {
    content: "\00AB\00A0";
    font-style: normal;
    font-weight: 500;
    color: var(--color-text-secondary, #666);
}

.faktaboks--citat .faktaboks__content::after {
    content: "\00A0\00BB";
    font-style: normal;
    font-weight: 500;
    color: var(--color-text-secondary, #666);
}

/* (ude) — Right margin*/

.faktaboks--ude {
    display: block;
    position: absolute;
    right: -240px;
    width: 220px;
    padding: 0.4rem 1.25rem 0.4rem 2.2rem;
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.7;
    text-wrap: pretty;
}

.faktaboks--ude::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -6px;
    font-size: 48px;
    line-height: 1;
    font-style: normal;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--color-text-secondary, #666);
    opacity: 0.3;
}

.faktaboks--ude .faktaboks__content {
    display: block;
    text-wrap: pretty;
}


/*
.faktaboks--ra { }
.faktaboks--ya { }
*/

/* PARENT CONTAINER */

.one-column-text-block-wrapper .content-wrapper {
    position: relative;
    overflow: visible;
}

.one-column-text-block-wrapper .mt-2.mb-2 {
    position: relative;
    overflow: visible;
}

/* TEXT RESETS */

.faktaboks__content,
.faktaboks__content p {
    font-size: inherit;
    font-weight: normal;
    line-height: inherit;
    margin: 0;
}

.faktaboks + p,
.faktaboks ~ p {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
}

.one-column-text-block-wrapper .mb-3 {
    font-size: 1rem;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 1400px) {
    .faktaboks--ind {
        position: relative;
        right: auto;
        width: auto;
        max-width: 300px;
        margin: 1rem 0 1rem 1.5rem;
    }

    .faktaboks--ude {
        position: relative;
        right: auto;
        width: auto;
        max-width: 300px;
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .faktaboks--ind {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }

    .faktaboks--ude {
        padding: 0.4rem 1rem 0.4rem 2.2rem;
        font-size: 0.9rem;
        max-width: 100%;
    }
}