* {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    background: #ffffff;
    color: #181818;
}

a {
    color: inherit;
}

.toppfelt {
    background: #0b4f8a;
    color: #ffffff;
    width: 100%;
}

.toppfelt-innhold {
    max-width: 1500px;
    margin: 0 auto;
    padding: 22px 24px 14px;
}

.avisnavn {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 17px;
}

.hovedmeny {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-weight: 700;
    font-size: 16px;
}

.hovedmeny a {
    text-decoration: none;
    padding-bottom: 7px;
    border-bottom: 3px solid transparent;
}

.hovedmeny a:hover {
    border-bottom-color: #ffffff;
}

.sok {
    margin-left: auto;
}

.siste-nytt {
    border-bottom: 1px solid #d7d7d7;
    background: #f5f5f5;
}

.siste-nytt-innhold {
    max-width: 1500px;
    margin: 0 auto;
    padding: 11px 24px;
    display: flex;
    gap: 25px;
    font-size: 14px;
}

.sideoppsett {
    max-width: 1600px;
    margin: 25px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(150px, 220px);
    gap: 28px;
    align-items: start;
}

.annonsekolonne {
    min-width: 0;
}

.annonseplass {
    min-height: 420px;
    border: 1px solid #d6d6d6;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
    padding: 15px;
}

.annonseplass span {
    font-size: 11px;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}

.hovedinnhold {
    min-width: 0;
}

.hovedsak {
    border-bottom: 1px solid #bbbbbb;
    padding-bottom: 28px;
}

.hovedbilde {
    aspect-ratio: 16 / 8;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 15px;
    margin-bottom: 18px;
}

.sakstype {
    color: #0b4f8a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hovedsak h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 4vw, 58px);
    line-height: 1.03;
    margin: 0 0 15px;
}

.ingress {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.45;
    margin: 0;
    max-width: 850px;
}

.sekundaersaker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    border-bottom: 1px solid #bbbbbb;
    padding: 28px 0;
}

.sakskort:first-child {
    border-right: 1px solid #cccccc;
    padding-right: 25px;
}

.kortbilde {
    aspect-ratio: 16 / 9;
    background: #ededed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    margin-bottom: 15px;
}

.sakskort h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.12;
    margin: 0 0 10px;
}

.sakskort p {
    line-height: 1.5;
    margin: 0;
}

.seksjon {
    margin-top: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #bbbbbb;
}

.seksjonstittel {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    border-top: 4px solid #0b4f8a;
    padding-top: 10px;
    margin: 0 0 20px;
}

.saksliste {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.saksliste article {
    border-right: 1px solid #d7d7d7;
    padding-right: 20px;
}

.saksliste article:last-child {
    border-right: 0;
}

.saksliste h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.15;
    margin: 0 0 8px;
}

.saksliste p {
    margin: 0;
    line-height: 1.45;
}

.bunnfelt {
    background: #0b4f8a;
    color: white;
    text-align: center;
    padding: 35px 20px;
    font-size: 14px;
}

.bunnfelt p {
    margin: 5px;
}

@media (max-width: 1100px) {
    .sideoppsett {
        grid-template-columns: 1fr;
        max-width: 900px;
    }

    .annonsekolonne {
        display: none;
    }

    .sok {
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .toppfelt-innhold {
        padding: 17px;
    }

    .avisnavn {
        font-size: 29px;
        margin-bottom: 13px;
    }

    .hovedmeny {
        gap: 12px 18px;
        font-size: 14px;
    }

    .siste-nytt-innhold {
        padding: 10px 17px;
        flex-direction: column;
        gap: 3px;
    }

    .sideoppsett {
        padding: 0 16px;
        margin-top: 18px;
    }

    .sekundaersaker {
        grid-template-columns: 1fr;
    }

    .sakskort:first-child {
        border-right: 0;
        border-bottom: 1px solid #cccccc;
        padding-right: 0;
        padding-bottom: 25px;
    }

    .saksliste {
        grid-template-columns: 1fr;
    }

    .saksliste article {
        border-right: 0;
        border-bottom: 1px solid #dddddd;
        padding: 0 0 18px;
    }

    .hovedsak h1 {
        font-size: 36px;
    }

    .ingress {
        font-size: 19px;
    }
}

.footer-innhold {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
}

.footer-innhold p {
    margin: 0 0 15px;
}

.footer-innhold a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-innhold .kontakt {
    margin-top: 22px;
    margin-bottom: 0;
}


.hoyre-sidekolonne {
    min-width: 0;
}

.arkivboks {
    border: 1px solid #d6d6d6;
    background: #ffffff;
    margin-bottom: 25px;
    padding: 18px;
}

.arkivboks h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #0b4f8a;
}

.arkivboks label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.arkivboks select {
    width: 100%;
    padding: 9px;
    border: 1px solid #bdbdbd;
    background: #ffffff;
    font-size: 14px;
}

.arkivinfo {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
}

@media (max-width: 1100px) {
    .hoyre-sidekolonne {
        display: block;
    }

    .hoyre-sidekolonne .annonseplass {
        display: none;
    }
}

.plussmerke {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    margin-right: 7px;
}

.bildetekst {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #666666;
}

.ingen-saker {
    padding: 50px 0;
}

.saklenke {
    color: inherit;
    text-decoration: none;
}

.saklenke:hover {
    text-decoration: underline;
}

.les-saken {
    margin-top: 18px;
}

.les-saken a {
    color: #0b4f8a;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
}

.les-saken a:hover {
    text-decoration: underline;
}

.avisnavn-lenke {
    color: #ffffff;
    text-decoration: none;
}

.artikkelside {
    min-width: 0;
}

.artikkeloverskrift {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.05;
    margin: 8px 0 18px;
}

.artikkelingress {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.artikkelmeta {
    color: #666666;
    font-size: 14px;
    margin-bottom: 25px;
}

.artikkelbilde {
    width: 100%;
    height: auto;
    display: block;
}

.artikkeltekst {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.65;
    max-width: 850px;
    margin-top: 30px;
}

.artikkeltekst p {
    margin: 0 0 1.25em;
}

/* Mindre hovedbilde på forsiden */
.hovedsak > img {
    width: 50%;
    max-width: 700px;
    height: auto;
    display: block;
    margin-bottom: 18px;
}

/* På selve artikkelsiden skal bildet fortsatt være stort */
.artikkelbilde {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .hovedsak > img {
        width: 100%;
    }
}

/* -------------------------------------------------
   Forside: nyeste sak som tydelig hovedsak
-------------------------------------------------- */

.hovedsak-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.hovedsak-bilde img {
    width: 100%;
    height: auto;
    display: block;
}

.hovedsak-tekst h1 {
    margin-top: 0;
}

.hovedsak-tekst .ingress {
    font-size: 19px;
}


/* -------------------------------------------------
   Mindre saker
-------------------------------------------------- */

.andre-saker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
}

.mindre-sak {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid #d7d7d7;
}

.mindre-sak-bilde img {
    width: 145px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.mindre-sak h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.15;
    margin: 0 0 8px;
}

.mindre-ingress {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.liten-pluss {
    width: 20px;
    height: 20px;
    font-size: 16px;
}


/* -------------------------------------------------
   Artikkelside
   Samme omtrentlige bildestørrelse som forsiden
-------------------------------------------------- */

.artikkelbilde-beholder {
    width: 50%;
    max-width: 700px;
    margin: 25px 0 30px;
}

.artikkelbilde {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.bilde-hjelp {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #777777;
    margin: 6px 0 0;
}


/* Mobil */

@media (max-width: 850px) {

    .hovedsak-layout {
        grid-template-columns: 1fr;
    }

    .andre-saker-grid {
        grid-template-columns: 1fr;
    }

    .artikkelbilde-beholder {
        width: 100%;
    }
}

@media (max-width: 550px) {

    .mindre-sak {
        grid-template-columns: 110px 1fr;
        gap: 12px;
    }

    .mindre-sak-bilde img {
        width: 110px;
        height: 80px;
    }
}


/* =================================================
   ARTIKKELSIDE – AVISOPPSETT
================================================= */

.artikkel-sideoppsett {
    max-width: 1600px;
    margin: 35px auto 70px;
    padding: 0 20px;

    display: grid;
    grid-template-columns:
        minmax(150px, 220px)
        minmax(0, 900px)
        minmax(150px, 220px);

    justify-content: center;
    gap: 30px;
    align-items: start;
}

.artikkel-hovedfelt {
    min-width: 0;
}

.artikkel {
    width: 100%;
}

.artikkeloverskrift {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.04;
    margin: 10px 0 18px;
    max-width: 900px;
}

.artikkelingress {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 0 28px;
}

.artikkel-figur {
    width: 100%;
    margin: 0 0 24px;
}

.artikkel-stort-bilde {
    width: 100%;
    max-height: 720px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.artikkel-figur figcaption {
    margin-top: 7px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
}

.artikkel-info {
    max-width: 720px;
    margin: 20px auto 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #d5d5d5;
    font-family: Arial, Helvetica, sans-serif;
}

.artikkel-info p {
    margin: 5px 0;
}

.forfatter {
    font-size: 14px;
}

.publisering {
    color: #777777;
    font-size: 12px;
}

.artikkeltekst {
    max-width: 720px;
    margin: 25px auto 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.65;
}

.artikkeltekst p {
    margin: 0 0 1.35em;
}


@media (max-width: 1100px) {

    .artikkel-sideoppsett {
        grid-template-columns: 1fr;
        max-width: 900px;
    }

    .artikkel-sideoppsett > .annonsekolonne {
        display: none;
    }

    .artikkel-sideoppsett > .hoyre-sidekolonne .annonseplass {
        display: none;
    }
}


@media (max-width: 700px) {

    .artikkel-sideoppsett {
        margin-top: 22px;
        padding: 0 16px;
    }

    .artikkeloverskrift {
        font-size: 38px;
    }

    .artikkelingress {
        font-size: 20px;
    }

    .artikkeltekst {
        font-size: 18px;
    }
}


/* =================================================
   FORSIDE – KOMPAKT AVISLAYOUT
================================================= */

.forside-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 0.95fr);
    gap: 18px;
    align-items: start;
}

.forside-hovedsak {
    background: #ffffff;
}

.forside-hovedbilde {
    display: block;
}

.forside-hovedbilde img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.forside-hovedtekst {
    padding-top: 12px;
}

.forside-hovedtekst h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.03;
    margin: 5px 0 12px;
}

.forside-hovedingress {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.45;
    margin: 0;
}

.forside-sidefelt {
    display: grid;
    gap: 14px;
}

.forside-liten-sak {
    border-bottom: 1px solid #d5d5d5;
    padding-bottom: 14px;
}

.forside-liten-sak img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}

.forside-liten-sak h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.08;
    margin: 3px 0 0;
}

.forside-nedre-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #bbbbbb;
}

.forside-kort {
    display: grid;
    grid-template-columns: 145px 1fr;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 14px;
    border-bottom: 1px solid #d5d5d5;
    padding-bottom: 18px;
}

.forside-kort > a {
    grid-row: 1 / span 4;
}

.forside-kort img {
    width: 145px;
    height: 105px;
    object-fit: cover;
    display: block;
}

.forside-kort .sakstype {
    margin-bottom: 4px;
}

.forside-kort h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.1;
    margin: 0 0 6px;
}

.forside-kort p {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.forside-kort .les-saken {
    margin-top: 7px;
}

@media (max-width: 900px) {

    .forside-grid {
        grid-template-columns: 1fr;
    }

    .forside-sidefelt {
        grid-template-columns: repeat(2, 1fr);
    }

    .forside-nedre-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .forside-sidefelt {
        grid-template-columns: 1fr;
    }

    .forside-kort {
        grid-template-columns: 110px 1fr;
    }

    .forside-kort img {
        width: 110px;
        height: 80px;
    }

    .forside-hovedtekst h1 {
        font-size: 34px;
    }
}


/* Riktekst i publiserte artikler */

.artikkeltekst h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1.2;
    margin: 1.7em 0 0.6em;
}

.artikkeltekst h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.25;
    margin: 1.5em 0 0.5em;
}

.artikkeltekst strong {
    font-weight: 700;
}

.artikkeltekst ul,
.artikkeltekst ol {
    margin: 1em 0 1.4em 1.7em;
}

.artikkeltekst li {
    margin-bottom: 0.45em;
}

.artikkeltekst blockquote {
    border-left: 4px solid #0b4f8a;
    margin: 1.5em 0;
    padding: 0.3em 0 0.3em 1.2em;
    font-style: italic;
}

.artikkeltekst a {
    color: #0b4f8a;
    text-decoration: underline;
}

/* Ingress skal ha samme skriftstørrelse som brødteksten */
.artikkelingress,
.artikkelingress p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.65;
}

.artikkelingress {
    margin: 0 0 28px;
}

.artikkelingress p {
    margin: 0;
}


/* Journalistfelt */

.journalistfelt {
    max-width: 720px;
    margin: 22px auto 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #d5d5d5;

    display: flex;
    align-items: center;
    gap: 14px;
}

.journalistbilde {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    flex: 0 0 auto;
}

.journalistinfo {
    font-family: Arial, Helvetica, sans-serif;
}

.journalistnavn {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

.journalistinfo .publisering {
    margin: 2px 0;
    font-size: 12px;
    color: #777777;
}


/* Mellomtitler i artikkelen skal ha samme størrelse som brødteksten */
.artikkeltekst h2,
.artikkeltekst h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.65;
    font-weight: 700;
    margin: 1.4em 0 0.45em;
}

/* Nederste saker skal ha samme visuelle størrelse som sidesakene */

.forside-nedre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.forside-kort {
    display: block;
    padding-bottom: 18px;
    border-bottom: 1px solid #d5d5d5;
}

.forside-kort > a {
    display: block;
}

.forside-kort img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}

.forside-kort .sakstype {
    margin: 0 0 5px;
}

.forside-kort h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.08;
    margin: 0 0 7px;
}

.forside-kort p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.forside-kort .les-saken {
    margin-top: 9px;
}

@media (max-width: 700px) {
    .forside-nedre-grid {
        grid-template-columns: 1fr;
    }

    .forside-kort img {
        width: 100%;
        height: auto;
    }
}

/* Nederste saker: samme størrelse som sidesakene ved hovedsaken */

.forside-nedre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.forside-kort {
    display: block;
    padding-bottom: 14px;
    border-bottom: 1px solid #d5d5d5;
}

.forside-kort img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}

.forside-kort h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.08;
    margin: 3px 0 0;
}

.forside-kort p,
.forside-kort .les-saken {
    display: none;
}

/* Nederste saker skal ha samme størrelse som sakene til høyre for hovedsaken */

.forside-nedre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #bbbbbb;
}

.forside-kort {
    display: block;
    min-width: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #d5d5d5;
}

.forside-kort img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
}

.forside-kort .sakstype {
    margin-bottom: 4px;
}

.forside-kort h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.08;
    margin: 3px 0 0;
}

.forside-kort > p,
.forside-kort .les-saken {
    display: none;
}

@media (max-width: 900px) {
    .forside-nedre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .forside-nedre-grid {
        grid-template-columns: 1fr;
    }
}

/* Bilder som legges inn inne i artikkelteksten */

.artikkeltekst figure.image {
    margin: 2em auto;
    max-width: 100%;
}

.artikkeltekst figure.image img {
    width: 100%;
    height: auto;
    display: block;
}

.artikkeltekst figure.image figcaption {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
    margin-top: 6px;
    text-align: left;
}

/* Bildetekster under bilder inne i artikkelteksten */
.artikkeltekst figure.image figcaption {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #555555;
    margin-top: 7px;
    text-align: left;
    font-weight: 400;
}

/* Eventuelle navn eller kreditering i bildetekst */
.artikkeltekst figure.image figcaption strong {
    font-size: 13px !important;
    font-weight: 700;
}

/* Bildetekst i publisert artikkel */
.artikkeltekst h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    color: #555555;
    margin: 6px 0 20px;
}


/* Bildetekst tettere under bilde i publisert artikkel */
.artikkeltekst figure.image {
    margin-bottom: 4px !important;
}

.artikkeltekst h4 {
    margin-top: 2px !important;
    margin-bottom: 18px !important;
}

/* =================================================
   ARKIV
================================================= */

.arkivside h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    margin: 0 0 28px;
}

.arkiv-saker {
    display: grid;
    gap: 22px;
}

.arkiv-sak {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #d5d5d5;
}

.arkiv-sak img {
    width: 220px;
    height: 145px;
    object-fit: cover;
    display: block;
}

.arkiv-sak h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.1;
    margin: 3px 0 7px;
}

.arkiv-sak-tekst > p {
    font-size: 14px;
    line-height: 1.45;
}

.arkiv-dato {
    color: #777777;
    font-size: 12px !important;
    margin: 0 0 8px;
}

@media (max-width: 650px) {

    .arkiv-sak {
        grid-template-columns: 1fr;
    }

    .arkiv-sak img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


/* =================================================
   KATEGORISIDER
================================================= */

.kategoriside h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    margin: 0 0 28px;
    border-bottom: 4px solid #0b4f8a;
    padding-bottom: 9px;
}

.kategori-saker {
    display: grid;
    gap: 22px;
}

.kategori-sak {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #d5d5d5;
}

.kategori-sak img {
    width: 220px;
    height: 145px;
    object-fit: cover;
    display: block;
}

.kategori-sak h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.1;
    margin: 3px 0 8px;
}

.kategori-sak-tekst > p {
    font-size: 14px;
    line-height: 1.45;
}

.kategori-dato {
    color: #777777;
    font-size: 12px !important;
    margin: 0 0 6px;
}

.hovedmeny .aktiv-meny {
    border-bottom-color: #ffffff;
}

@media (max-width: 650px) {

    .kategori-sak {
        grid-template-columns: 1fr;
    }

    .kategori-sak img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


/* =================================================
   SØK
================================================= */

.sokefelt-topp {
    margin-left: auto;
    display: flex;
    gap: 5px;
}

.sokefelt-topp input {
    width: 145px;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.6);
    background: #ffffff;
    color: #181818;
}

.sokefelt-topp button {
    padding: 6px 10px;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.sokside h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    margin: 0 0 22px;
}

.sokefelt-stort {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.sokefelt-stort input {
    flex: 1;
    padding: 11px 12px;
    font-size: 16px;
    border: 1px solid #bdbdbd;
}

.sokefelt-stort button {
    padding: 10px 18px;
    background: #0b4f8a;
    color: #ffffff;
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.sok-oppsummering {
    margin: 0 0 22px;
}

.sok-saker {
    display: grid;
    gap: 22px;
}

.sok-sak {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #d5d5d5;
}

.sok-sak img {
    width: 220px;
    height: 145px;
    object-fit: cover;
    display: block;
}

.sok-sak h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.1;
    margin: 3px 0 7px;
}

.sok-sak-tekst > p {
    font-size: 14px;
    line-height: 1.45;
}

.sok-dato {
    color: #777777;
    font-size: 12px !important;
    margin: 0 0 7px;
}

@media (max-width: 900px) {
    .sokefelt-topp {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 650px) {
    .sok-sak {
        grid-template-columns: 1fr;
    }

    .sok-sak img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


/* Begrens sideannonser til annonsekolonnen */
.aktiv-annonse {
    width: 100%;
    max-width: 220px;
    overflow: hidden;
}

.aktiv-annonse img {
    width: 100% !important;
    max-width: 220px !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

.hoyre-sidekolonne .aktiv-annonse,
.annonsekolonne .aktiv-annonse {
    margin-left: auto;
    margin-right: auto;
}

/* Litt større sideannonser */
.aktiv-annonse {
    max-width: 300px;
}

.aktiv-annonse img {
    max-width: 300px !important;
}

/* =================================================
   FAST 4-SPALTE-PRINSIPP PÅ FORSIDEN

   Hovedsak:             2 spalter
   Saker til høyre:      1 spalte
   Arkiv / annonse:      1 spalte
================================================= */

/* Hovedinnhold + høyre side skal bygge på samme spaltebredde */
.sideoppsett {
    grid-template-columns:
        minmax(150px, 190px)
        minmax(0, 3fr)
        minmax(0, 1fr);
}

/* Hovedfeltet består av 2 + 1 spalte */
.forside-grid {
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

/* Høyre annonse fyller hele sin ene spalte */
.hoyre-sidekolonne .aktiv-annonse {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 8px;
    box-sizing: border-box;
}

.hoyre-sidekolonne .aktiv-annonse img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: block;
}

/* Arkivboksen bruker samme bredde */
.hoyre-sidekolonne .arkivboks {
    width: 100%;
    box-sizing: border-box;
}


/* =================================================
   LIKE BREDE ANNONSESPALTER VENSTRE OG HØYRE
================================================= */

.sideoppsett {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 3fr)
        minmax(0, 1fr);
}

/* Venstre og høyre annonse skal fylle hele sin spalte */
.annonsekolonne .aktiv-annonse,
.hoyre-sidekolonne .aktiv-annonse {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* Bildet skal fylle hele annonsebredden */
.annonsekolonne .aktiv-annonse img,
.hoyre-sidekolonne .aktiv-annonse img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: block;
}

/* Arkivboksen følger samme bredde som høyre annonse */
.hoyre-sidekolonne .arkivboks {
    width: 100%;
    box-sizing: border-box;
}

/* Annonse inne i artikkel */
.artikkel-annonse {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    padding: 10px 0 14px;
    border-top: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
    text-align: center;
}

.artikkel-annonse .annonsemerking {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 7px;
}

.artikkel-annonse img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* =================================================
   ARTIKKELSIDE – FAST 4-SPALTE-PRINSIPP

   Venstre annonse: 1 spalte
   Artikkel:         2 spalter
   Høyre side:       1 spalte
================================================= */

body .sideoppsett {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 2fr)
        minmax(0, 1fr);
    align-items: start;
}

/* Begge sidekolonnene skal være like brede */
.annonsekolonne,
.hoyre-sidekolonne {
    width: 100%;
    min-width: 0;
}

/* Sideannonser fyller nøyaktig én spalte */
.annonsekolonne .aktiv-annonse,
.hoyre-sidekolonne .aktiv-annonse {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
}

/* Selve GIF-/annonsebildet fyller spalten */
.annonsekolonne .aktiv-annonse img,
.hoyre-sidekolonne .aktiv-annonse img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: block;
}

/* Arkiv følger samme bredde som høyre annonse */
.hoyre-sidekolonne .arkivboks {
    width: 100%;
    box-sizing: border-box;
}

/* Artikkelen bruker de to midterste spaltene */
.hovedinnhold {
    width: 100%;
    min-width: 0;
}

/* =================================================
   ARTIKKELSIDE – 1 + 2 + 1 SPALTER
================================================= */

.artikkel-sideoppsett {
    width: 100%;
    max-width: 1600px;
    margin: 25px auto 60px;
    padding: 0 20px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 2fr)
        minmax(0, 1fr);

    gap: 28px;
    align-items: start;
    box-sizing: border-box;
}

.artikkel-sideoppsett > .annonsekolonne,
.artikkel-sideoppsett > .hoyre-sidekolonne {
    width: 100%;
    min-width: 0;
}

.artikkel-sideoppsett > .artikkel-hovedfelt {
    width: 100%;
    min-width: 0;
}

/* Venstre og høyre annonse fyller hver sin ene spalte */
.artikkel-sideoppsett .annonsekolonne .aktiv-annonse,
.artikkel-sideoppsett .hoyre-sidekolonne .aktiv-annonse {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.artikkel-sideoppsett .annonsekolonne .aktiv-annonse img,
.artikkel-sideoppsett .hoyre-sidekolonne .aktiv-annonse img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: block;
}

/* Arkivet har samme bredde som høyre annonse */
.artikkel-sideoppsett .hoyre-sidekolonne .arkivboks {
    width: 100%;
    box-sizing: border-box;
}


/* Bredde på annonser inne i artikkel */

.artikkel-annonse.annonse-1-spalte {
    width: 50%;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.artikkel-annonse.annonse-2-spalter {
    width: 100%;
    max-width: 100%;
}

.artikkel-annonse.annonse-1-spalte img,
.artikkel-annonse.annonse-2-spalter img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 700px) {
    .artikkel-annonse.annonse-1-spalte,
    .artikkel-annonse.annonse-2-spalter {
        width: 100%;
        max-width: 100%;
    }
}

/* =================================================
   STICKY SIDEANNONSER PÅ ARTIKKELSIDEN
================================================= */

/* Sidekolonnene må tillate sticky-posisjonering */
.artikkel-sideoppsett > .annonsekolonne,
.artikkel-sideoppsett > .hoyre-sidekolonne {
    align-self: start;
}

/* Venstre annonse følger med nedover */
.artikkel-sideoppsett > .annonsekolonne .aktiv-annonse {
    position: sticky;
    top: 20px;
}

/* Høyre annonse følger med nedover */
.artikkel-sideoppsett > .hoyre-sidekolonne .aktiv-annonse {
    position: sticky;
    top: 20px;
}

/* På små skjermer skal annonser ikke være sticky */
@media (max-width: 1100px) {
    .artikkel-sideoppsett > .annonsekolonne .aktiv-annonse,
    .artikkel-sideoppsett > .hoyre-sidekolonne .aktiv-annonse {
        position: static;
    }
}

/* =================================================
   STICKY ANNONSER – KORRIGERT
================================================= */

/* Hele grid-raden skal få høyden til artikkelen */
.artikkel-sideoppsett {
    align-items: stretch !important;
}

/* Sidekolonnene skal være like høye som artikkelområdet */
.artikkel-sideoppsett > .annonsekolonne,
.artikkel-sideoppsett > .hoyre-sidekolonne {
    align-self: stretch !important;
    position: relative;
}

/* Venstre annonse følger leseren */
.artikkel-sideoppsett > .annonsekolonne .aktiv-annonse {
    position: sticky !important;
    top: 20px;
}

/* Høyre annonse følger leseren */
.artikkel-sideoppsett > .hoyre-sidekolonne .aktiv-annonse {
    position: sticky !important;
    top: 20px;
}

/* Mobil/nettbrett: ikke sticky */
@media (max-width: 1100px) {
    .artikkel-sideoppsett > .annonsekolonne .aktiv-annonse,
    .artikkel-sideoppsett > .hoyre-sidekolonne .aktiv-annonse {
        position: static !important;
    }
}

/* =================================================
   STICKY ANNONSER PÅ FORSIDEN
================================================= */

/* Grid-raden skal strekke seg etter høyeste innhold */
.sideoppsett {
    align-items: stretch !important;
}

/* Sidekolonnene skal kunne strekke seg langs hele forsiden */
.sideoppsett > .annonsekolonne,
.sideoppsett > .hoyre-sidekolonne {
    align-self: stretch !important;
    position: relative;
}

/* Venstre annonse følger med */
.sideoppsett > .annonsekolonne .aktiv-annonse {
    position: sticky !important;
    top: 20px;
}

/* Høyre annonse følger med */
.sideoppsett > .hoyre-sidekolonne .aktiv-annonse {
    position: sticky !important;
    top: 20px;
}

/* På små skjermer skal de ikke være sticky */
@media (max-width: 1100px) {
    .sideoppsett > .annonsekolonne .aktiv-annonse,
    .sideoppsett > .hoyre-sidekolonne .aktiv-annonse {
        position: static !important;
    }
}


/* =================================================
   FLERE SIDEANNONSER
   Hele gruppen følger siden – annonsene overlapper ikke
================================================= */

.annonse-stabel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* På artikkelsiden følger hele annonsestabelen */
.artikkel-sideoppsett > .annonsekolonne > .annonse-stabel,
.artikkel-sideoppsett > .hoyre-sidekolonne > .annonse-stabel {
    position: sticky;
    top: 20px;
}

/* På forsiden følger hele annonsestabelen */
.sideoppsett > .annonsekolonne > .annonse-stabel,
.sideoppsett > .hoyre-sidekolonne > .annonse-stabel {
    position: sticky;
    top: 20px;
}

/*
   Selve enkeltannonsene skal IKKE være sticky.
   Det er annonse-stabelen som følger siden.
*/
.annonse-stabel > .aktiv-annonse {
    position: static !important;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.annonse-stabel > .aktiv-annonse img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}

/* På mindre skjermer brukes vanlig plassering */
@media (max-width: 1100px) {
    .artikkel-sideoppsett .annonse-stabel,
    .sideoppsett .annonse-stabel {
        position: static;
    }
}



/* =================================================
   PLUSS / ABONNEMENT
================================================= */

.pluss-sperre {
    margin: 35px 0 50px;
    padding: 32px;
    border-top: 5px solid #111;
    border-bottom: 1px solid #cccccc;
    background: #f5f5f5;
    text-align: center;
}

.pluss-sperre-merke {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
}

.pluss-sperre h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    margin: 0 0 10px;
}

.pluss-sperre p {
    margin: 0 0 20px;
    font-size: 17px;
}

.pluss-login-knapp {
    display: inline-block;
    padding: 12px 24px;
    background: #0b4f8a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.login-side {
    max-width: 520px;
    margin: 60px auto;
    padding: 0 20px;
}

.login-boks {
    border: 1px solid #cccccc;
    padding: 32px;
}

.login-boks h1 {
    font-family: Georgia, "Times New Roman", serif;
    margin-top: 0;
}

.login-boks label {
    display: block;
    margin: 18px 0 6px;
    font-weight: 700;
}

.login-boks input {
    width: 100%;
    padding: 11px;
    box-sizing: border-box;
    font-size: 16px;
}

.login-boks button {
    margin-top: 22px;
    padding: 12px 22px;
    border: 0;
    background: #0b4f8a;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.login-feil {
    color: #9b0000;
    font-weight: 700;
}



/* =================================================
   ABONNEMENTSSIDE
================================================= */

.abonnement-side {
    max-width: 760px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.abonnement-boks {
    border-top: 5px solid #0b4f8a;
    padding-top: 25px;
}

.abonnement-boks h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    margin: 0 0 18px;
}

.abonnement-intro {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.abonnement-skjema {
    max-width: 560px;
}

.skjema-felt {
    margin-bottom: 20px;
}

.skjema-felt label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.skjema-felt input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #bdbdbd;
    font-size: 17px;
}

.abonnement-skjema button {
    border: 0;
    background: #0b4f8a;
    color: #ffffff;
    padding: 13px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.abonnement-bekreftelse {
    padding: 25px;
    background: #f3f3f3;
    border: 1px solid #d0d0d0;
}

.abonnement-bekreftelse h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
}

.errorlist {
    color: #a00000;
}

.abonnement-feil {
    padding: 24px;
    border: 1px solid #c9a0a0;
    background: #fff4f4;
}

.abonnement-feil h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
}


.abonnement-feil {
    padding: 24px;
    border: 1px solid #c9a0a0;
    background: #fff4f4;
}

.abonnement-feil h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
}


/* =================================================
   MENINGER – tydelig redaksjonell merking
================================================= */

.mening-merke {
    display: inline-block;
    background: #0b6ea8;
    color: #ffffff !important;
    padding: 4px 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}


/* =================================================
   MENINGER PÅ FORSIDEN
================================================= */

.forside-grid .mening-merke,
.sekundaersaker .mening-merke,
.forside-hovedsak .mening-merke,
.hovedinnhold .mening-merke {
    display: inline-block !important;
    width: auto !important;
    background: #0b6ea8 !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* =================================================
   LOGG INN / LOGG UT I TOPPMENY
================================================= */

.logout-topp {
    display: inline;
    margin: 0;
    padding: 0;
}

.logout-topp button {
    border: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

.logout-topp button:hover {
    text-decoration: underline;
}


/* Innlogget bruker i toppmenyen */

.innlogget-bruker {
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}


/* =================================================
   MIN SIDE
================================================= */

.min-side {
    max-width: 760px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

.min-side-boks {
    border-top: 5px solid #0b4f8a;
    padding-top: 25px;
}

.min-side-boks h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    margin: 0 0 30px;
}

.konto-opplysninger {
    max-width: 560px;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px 20px;
}

.konto-opplysninger dt {
    font-weight: 700;
}

.konto-opplysninger dd {
    margin: 0;
}


.glemt-passord-lenke {
    margin-top: 18px;
}

.glemt-passord-lenke a {
    color: #0b4f8a;
    font-weight: 700;
}


/* =================================================
   MIN SIDE – HANDLINGER
================================================= */

.min-side-handlinger {
    margin-top: 32px;
}

.min-side-knapp {
    display: inline-block;
    padding: 11px 20px;
    background: #0b4f8a;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
}

.min-side-knapp:hover {
    text-decoration: underline;
}


/* =================================================
   MIN SIDE – HANDLINGER
================================================= */

.min-side-handlinger {
    margin-top: 32px;
}

.min-side-knapp {
    display: inline-block;
    padding: 11px 20px;
    background: #0b4f8a;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
}

.min-side-knapp:hover {
    text-decoration: underline;
}


/* ===== RESPONSIV VEVELSTAD BYGDEAVIS START ===== */

/* Grunnsikring */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}


/* =================================================
   NETTBRETT
================================================= */

@media (max-width: 1000px) {

    .toppfelt-innhold {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        box-sizing: border-box;
    }

    .avisnavn {
        width: 100%;
    }

    .avisnavn-lenke {
        display: block;
        max-width: 100%;
    }

    .hovedmeny {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        width: 100%;
    }

    .hovedmeny a,
    .hovedmeny button {
        white-space: nowrap;
    }

    /* Artikkelsiden: én kolonne */
    .artikkel-sideoppsett {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 760px !important;
        padding: 0 18px !important;
        gap: 24px !important;
    }

    /*
       Forsiden. Flere navn er tatt med fordi bare de
       klassene som faktisk finnes får virkning.
    */
    .forside-sideoppsett,
    .forside-oppsett,
    .forside-layout,
    .forside-grid,
    .hovedoppsett {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 760px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box;
    }

    .hovedsak,
    .hovedsak-innhold,
    .hovedinnhold,
    .midtkolonne,
    .innholdskolonne {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .hovedsak img {
        width: 100%;
        height: auto;
    }

    /* Småsaker får bedre plass */
    .andre-saker,
    .småsaker,
    .saker-grid,
    .sak-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    /* Sidekolonner skal ikke presse hovedinnholdet */
    .venstre-kolonne,
    .hoyre-kolonne,
    .venstre-spalte,
    .hoyre-spalte,
    .sidekolonne,
    .annonsekolonne,
    .arkivkolonne {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .annonse-stabel {
        width: 100% !important;
        max-width: 100% !important;
    }

    .annonse-stabel img {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }
}


/* =================================================
   MOBIL
================================================= */

@media (max-width: 650px) {

    body {
        font-size: 16px;
    }

    .toppfelt {
        width: 100%;
    }

    .toppfelt-innhold {
        display: block !important;
        padding: 14px 14px 12px !important;
    }

    .avisnavn {
        margin: 0 0 12px !important;
    }

    .avisnavn-lenke {
        font-size: 27px !important;
        line-height: 1.05 !important;
        word-break: normal;
    }

    .hovedmeny {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px 12px !important;
        align-items: center;
    }

    .hovedmeny a,
    .hovedmeny button,
    .hovedmeny span {
        font-size: 14px !important;
    }

    /* Søket legges på egen linje */
    .sok,
    .sok-form,
    .sokefelt,
    .sokeboks,
    .search-form {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px !important;
    }

    .sok input,
    .sok-form input,
    .sokefelt input,
    .sokeboks input,
    .search-form input {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Alle hovedoppsett blir én kolonne */
    .artikkel-sideoppsett,
    .forside-sideoppsett,
    .forside-oppsett,
    .forside-layout,
    .forside-grid,
    .hovedoppsett {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }

    /* Hovedsak */
    .hovedsak,
    .hovedsak-innhold,
    .hovedinnhold,
    .midtkolonne,
    .innholdskolonne {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hovedsak img,
    .artikkel-sideoppsett img {
        max-width: 100%;
        height: auto;
    }

    .hovedsak h1,
    .artikkel-sideoppsett h1 {
        font-size: clamp(30px, 9vw, 44px) !important;
        line-height: 1.02 !important;
        overflow-wrap: break-word;
    }

    /* Småsakene legges under hverandre */
    .andre-saker,
    .småsaker,
    .saker-grid,
    .sak-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 22px !important;
        width: 100% !important;
    }

    /* Sideinnhold */
    .venstre-kolonne,
    .hoyre-kolonne,
    .venstre-spalte,
    .hoyre-spalte,
    .sidekolonne,
    .annonsekolonne,
    .arkivkolonne {
        width: 100% !important;
        max-width: 100% !important;
        margin: 24px 0 !important;
    }

    /* Annonser skal aldri være bredere enn skjermen */
    .annonse-stabel,
    .annonse,
    .annonse-boks {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .annonse-stabel img,
    .annonse img,
    .annonse-boks img {
        display: block;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Arkiv */
    select {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Artikkeltekst */
    .artikkeltekst {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .artikkeltekst img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Min side / login / abonnement */
    .min-side,
    .login-side {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    .konto-opplysninger {
        display: block !important;
    }

    .konto-opplysninger dt {
        margin-top: 14px;
    }

    .konto-opplysninger dd {
        margin-left: 0;
    }

    /* Footer */
    footer {
        width: 100%;
        box-sizing: border-box;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* Ekstra smale mobiler */
@media (max-width: 400px) {

    .avisnavn-lenke {
        font-size: 23px !important;
    }

    .hovedmeny {
        gap: 5px 10px !important;
    }

    .hovedmeny a,
    .hovedmeny button,
    .hovedmeny span {
        font-size: 13px !important;
    }

    .hovedsak h1,
    .artikkel-sideoppsett h1 {
        font-size: 30px !important;
    }
}

/* ===== RESPONSIV VEVELSTAD BYGDEAVIS SLUTT ===== */


/* =========================================================
   VEVELSTAD BYGDEAVIS – MÅLRETTET MOBIL/NETTBRETT
   ========================================================= */

/*
   Aktiveres enten på smal skjerm eller på en typisk
   berøringsenhet. Desktop-PC beholdes uendret.
*/
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {

    /* Hele forsiden går til én kolonne */
    .sideoppsett {
        display: block !important;
        width: 100% !important;
        max-width: 820px !important;
        margin: 18px auto 45px !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    /* Venstre annonsekolonne bort på mobil/nettbrett */
    .sideoppsett > .annonse-venstre {
        display: none !important;
    }

    /* Hovedinnhold fyller bredden */
    .hovedinnhold {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Hovedsak + sidesaker under hverandre */
    .forside-grid {
        display: block !important;
        width: 100% !important;
    }

    .forside-hovedsak {
        width: 100% !important;
        margin-bottom: 28px !important;
    }

    .forside-hovedbilde,
    .forside-hovedbilde img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .forside-hovedtekst {
        width: 100% !important;
    }

    /* De tre små sakene under hovedsaken */
    .forside-sidefelt {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
        width: 100% !important;
        margin-top: 24px !important;
    }

    .forside-liten-sak {
        min-width: 0 !important;
    }

    .forside-liten-sak img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Nederste saker */
    .forside-nedre-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
        width: 100% !important;
    }

    /* Høyre kolonne flyttes under nyhetene */
    .hoyre-sidekolonne {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 32px !important;
    }

    /* Arkivet beholdes */
    .arkivboks {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Høyre annonser skjules på nettbrett/mobil.
       De skal ikke dominere nyhetsvisningen. */
    .hoyre-sidekolonne .annonse-stabel {
        display: none !important;
    }

    /* Toppfelt */
    .toppfelt-innhold {
        width: 100% !important;
        max-width: 820px !important;
        padding: 15px 16px !important;
        box-sizing: border-box !important;
    }

    .avisnavn {
        font-size: 32px !important;
        line-height: 1.05 !important;
        margin-bottom: 14px !important;
    }

    .hovedmeny {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px 14px !important;
        width: 100% !important;
    }

    .sokefelt-topp {
        width: 100% !important;
        margin: 8px 0 0 !important;
        display: flex !important;
    }

    .sokefelt-topp input {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    /* Tom siste-nytt-linje skal ikke ta plass */
    .siste-nytt:has(.siste-nytt-innhold:empty) {
        display: none !important;
    }
}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 650px), ((hover: none) and (pointer: coarse) and (max-device-width: 900px)) {

    .sideoppsett {
        max-width: 100% !important;
        padding: 0 12px !important;
        margin-top: 14px !important;
    }

    .toppfelt-innhold {
        max-width: 100% !important;
        padding: 13px 12px !important;
    }

    .avisnavn {
        font-size: 26px !important;
    }

    .hovedmeny {
        gap: 7px 12px !important;
    }

    .hovedmeny a,
    .hovedmeny button,
    .innlogget-bruker {
        font-size: 13px !important;
    }

    /* Mobil: alle saker én kolonne */
    .forside-sidefelt,
    .forside-nedre-grid {
        grid-template-columns: 1fr !important;
    }

    .forside-hovedtekst h1 {
        font-size: 36px !important;
        line-height: 1.03 !important;
    }

    .forside-hovedingress {
        font-size: 17px !important;
        line-height: 1.45 !important;
    }

    .forside-liten-sak h2,
    .forside-kort h2 {
        font-size: 24px !important;
        line-height: 1.08 !important;
    }

    /* Nederste kortbilder skal fylle mobilbredden */
    .forside-kort {
        display: block !important;
    }

    .forside-kort img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
    }

    .arkivboks {
        margin-top: 25px !important;
    }

    /* Footer */
    .bunnfelt {
        padding: 28px 14px !important;
    }

    .footer-innhold {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* =========================================================
   NETTBRETT – KORREKSJON
   ========================================================= */

/*
   Nettbrett skal IKKE behandles som mobil.
   Hovedsaken står bredt, mens mindre saker vises i to kolonner.
*/
@media (min-width: 651px) and (max-width: 1100px) {

    .sideoppsett {
        display: block !important;
        width: 100% !important;
        max-width: 900px !important;
        margin: 20px auto 50px !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    .sideoppsett > .annonse-venstre {
        display: none !important;
    }

    .hovedinnhold {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Hovedsaken full bredde */
    .forside-grid {
        display: block !important;
        width: 100% !important;
    }

    .forside-hovedsak {
        width: 100% !important;
        margin-bottom: 30px !important;
    }

    .forside-hovedbilde img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
    }

    .forside-hovedtekst h1 {
        font-size: 42px !important;
        line-height: 1.04 !important;
    }

    /* De tre sakene etter hovedsaken: to kolonner */
    .forside-sidefelt {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
        width: 100% !important;
    }

    .forside-liten-sak img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
    }

    .forside-liten-sak h2 {
        font-size: 24px !important;
    }

    /* Nederste saker: to kolonner */
    .forside-nedre-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }

    .forside-kort img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
    }

    /* Arkivet under nyhetene */
    .hoyre-sidekolonne {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 35px !important;
    }

    .hoyre-sidekolonne .annonse-stabel {
        display: none !important;
    }

    .arkivboks {
        max-width: 500px !important;
        margin: 0 auto 30px !important;
    }
}


/* Mobil skal være én kolonne – kun ekte mobilbredde */
@media (max-width: 650px) {

    .forside-sidefelt,
    .forside-nedre-grid {
        grid-template-columns: 1fr !important;
    }

}

