﻿@page:first {
    margin: 0.5cm 1.2cm 1.5cm 0;
}

@page {
    margin: 1.5cm 1.2cm 1.5cm 0;
}

body {
    background-color: #ffffff !important;
}

    /* Create a fixed left border for all pages */
    body::before {
        content: '';
        position: fixed;
        left: 170px;
        top: 0;
        bottom: 0;
        width: 4px;
        background-color: #EEEEEE;
        z-index: -1;
    }

div#main-content.container {
    display: block;
    width: 100% !important;
    position: relative;
}

    /* Logo only on first page */
    div#main-content.container::before {
        content: '';
        float: left;
        width: 170px;
        height: 170px;
        background-image: url('/Static/gfx/logo.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        margin-right: 40px;
        shape-outside: margin-box;
    }

    /* Colored gradient section only at top */
    div#main-content.container::after {
        content: '';
        position: absolute;
        left: 170px;
        top: 0;
        height: 150px;
        width: 4px;
        background: linear-gradient( to bottom, #006970 0px, #006970 50px, #78AFB4 50px, #78AFB4 100px, #CDE1DF 100px, #CDE1DF 150px);
        z-index: 1;
    }

.page-content-main.detail-level {
    max-width: 100% !important;
    padding-top: 50px;
}

    .page-content-main.detail-level > * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

/* Ensure the content takes remaining space */
div#main-content.container > * {
    margin-right: 0;
    margin-left: 210px;
    padding-top: 0;
}

/* bilden */
.page-content-main.detail-level > div:has(> div.article-image) {
    width: 65%;
}

/* Ingress */
.page-content-main.detail-level > div.main-intro.flow-text {
    font-size: 14px !important;
    line-height: 18px !important;
    padding-right: 10px;
}

section.page-content-extra {
    display: none;
}

/* remove chatbot*/
div[id*="cludo-experience-container"] {
    display: none;
}

#share-panel.expanded {
    display: none !important;
}

.related-links.page-section {
    page-break-inside: avoid;
}

span.span-heading1 {
    font-size: 28pt !important;
    line-height: 34pt !important;
}

    span.span-heading1::after {
        content: "";
        display: block;
        width: 100%;
        height: 0;
        margin-top: 0;
        margin-bottom: 12pt;
    }


h2 {
    font-size: 24pt !important;
    line-height: 30pt !important;
}

h3 {
    font-size: 20pt !important;
    line-height: 26pt !important;
}

h4 {
    font-size: 18pt !important;
    line-height: 24pt !important;
}

div.main-intro.flow-text > p {
    font-size: 14pt !important;
    line-height: 18pt !important;
    font-weight: 300;
}

.editorial > p {
    font-size: 12pt !important;
    page-break-inside: avoid;
}

/* Target the Shadow DOM host elements specifically for print */
.standard-page-items:has(> div[data-ednia-root]) {
    width: 95% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: block !important;
}

/*dont print avesta.se if href is missing*/
a:not([href]):after {
    display: none;
}
