/* =========================================================
   Bergsøy Historieverden
   /moderne/historie/historie.css
   ========================================================= */

:root{
    --hv-green:#0f5132;
    --hv-green-2:#176b43;
    --hv-green-soft:#eef7f2;
    --hv-gold:#c7a85a;
    --hv-ink:#101827;
    --hv-muted:#64748b;
    --hv-line:#dbe3e8;
    --hv-paper:#fff;
    --hv-bg:#f4f7f6;
    --hv-active:var(--hv-green);
    --hv-active-soft:var(--hv-green-soft);
}

.hv-shell{
    width:min(1420px, calc(100% - 36px));
    margin:38px auto 70px;
    color:var(--hv-ink);
}

.hv-shell *{box-sizing:border-box}

.hv-tone-club{
    --hv-active:#0f5132;
    --hv-active-soft:#eef7f2;
}
.hv-tone-football{
    --hv-active:#166534;
    --hv-active-soft:#ecfdf5;
}
.hv-tone-handball{
    --hv-active:#c85d13;
    --hv-active-soft:#fff5eb;
}
.hv-tone-other{
    --hv-active:#5b4a8d;
    --hv-active-soft:#f4f1fb;
}

/* Tittel */
.hv-world-title{
    position:relative;
    overflow:hidden;
    text-align:center;
    padding:28px 24px 30px;
    border:1px solid var(--hv-line);
    border-radius:24px;
    background:
        radial-gradient(circle at 14% 20%, rgba(199,168,90,.11), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(15,81,50,.08), transparent 30%),
        linear-gradient(180deg,#fff,#f9fbfa);
    box-shadow:0 15px 40px rgba(15,23,42,.06);
}

.hv-world-title:after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    width:180px;
    height:3px;
    transform:translateX(-50%);
    background:linear-gradient(90deg,transparent,var(--hv-gold),transparent);
}

.hv-kicker,
.hv-overline{
    text-transform:uppercase;
    letter-spacing:.20em;
    font-weight:950;
    font-size:.72rem;
    color:var(--hv-active);
}

.hv-world-title h1{
    margin:2px 0 9px;
    font-size:clamp(2.5rem,5vw,4.2rem);
    line-height:.95;
    letter-spacing:-.065em;
}

.hv-world-title p{
    max-width:780px;
    margin:0 auto;
    color:#526071;
    font-size:1rem;
}

/* Navigasjon */
.hv-navblock{
    margin-top:14px;
}

/* Felles hovudnavigasjon for Historieverden */
.hv-mode-nav{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1px;
    margin:14px 0 14px;
    border:1px solid #dbe3e8;
    border-radius:15px;
    overflow:hidden;
    background:#dbe3e8;
    box-shadow:0 6px 18px rgba(15,23,42,.035);
}

.hv-mode-nav a{
    min-height:66px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:10px 16px;
    background:#fff;
    color:#0f172a;
    text-decoration:none;
    transition:.16s ease;
}

.hv-mode-nav a:hover{
    background:#f7faf8;
}

.hv-mode-nav a.is-active{
    background:linear-gradient(135deg,#104e31,#1d643e);
    color:#fff;
}

.hv-mode-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#f0f6f2;
    color:#0f5132;
    font-weight:950;
}

.hv-mode-nav a.is-active .hv-mode-icon{
    background:rgba(255,255,255,.14);
    color:#f0d477;
}

.hv-mode-nav strong{
    display:block;
    font-size:.92rem;
    line-height:1.08;
}

.hv-mode-nav small{
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:.66rem;
    line-height:1.2;
    font-weight:700;
}

.hv-mode-nav a.is-active small{
    color:rgba(255,255,255,.75);
}

.hv-section-tabs{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:8px;
}

.hv-section-tab{
    min-height:94px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    color:var(--hv-ink);
    text-decoration:none;
    border:1px solid var(--hv-line);
    background:linear-gradient(180deg,#fff,#f8faf9);
    transition:.18s ease;
}

.hv-section-tab:hover{
    transform:translateY(-2px);
    border-color:color-mix(in srgb, var(--hv-active) 30%, var(--hv-line));
    box-shadow:0 12px 24px rgba(15,23,42,.08);
}

.hv-section-tab.is-active{
    color:#fff;
    border-color:var(--hv-active);
    background:linear-gradient(135deg,var(--hv-active),color-mix(in srgb,var(--hv-active) 78%,#000));
    box-shadow:0 15px 30px rgba(15,23,42,.17);
}

.hv-section-tab small{
    display:block;
    margin-bottom:2px;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.62rem;
    font-weight:850;
    opacity:.66;
}

.hv-section-tab strong{
    display:block;
    line-height:1.05;
    font-size:.94rem;
}

.hv-section-icon{
    width:46px;
    height:46px;
    min-width:46px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:#fff;
    color:var(--hv-active);
    box-shadow:0 6px 14px rgba(15,23,42,.10);
    font-weight:1000;
    font-size:1.1rem;
}

.hv-view-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    padding:6px;
    border-top:5px solid var(--hv-active);
    background:linear-gradient(180deg,var(--hv-active-soft),#fff);
    border-left:1px solid var(--hv-line);
    border-right:1px solid var(--hv-line);
    border-bottom:1px solid var(--hv-line);
}

.hv-view-tabs a{
    display:flex;
    align-items:center;
    gap:7px;
    padding:10px 14px;
    color:#334155;
    text-decoration:none;
    font-size:.86rem;
    font-weight:900;
    border-radius:10px;
}

.hv-view-tabs a:hover{
    background:#fff;
    color:var(--hv-active);
}

.hv-view-tabs a.is-active{
    color:#fff;
    background:var(--hv-active);
}

/* Hero */
.hv-hero{
    display:grid;
    grid-template-columns:minmax(0,1.7fr) minmax(300px,.72fr);
    gap:16px;
    margin-top:28px;
}

.hv-hero-main{
    position:relative;
    overflow:hidden;
    min-height:365px;
    padding:42px;
    border-radius:26px;
    color:#fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(199,168,90,.18), transparent 30%),
        linear-gradient(135deg,#0d3725,#0f5132 58%,#173b2d);
    box-shadow:0 20px 50px rgba(15,23,42,.15);
}

.hv-hero-main:after{
    content:"HISTORIE";
    position:absolute;
    right:-12px;
    bottom:-24px;
    font-size:clamp(5rem,11vw,10rem);
    font-weight:1000;
    letter-spacing:-.08em;
    color:rgba(255,255,255,.035);
    pointer-events:none;
}

.hv-hero-eyebrow{
    position:relative;
    z-index:1;
    text-transform:uppercase;
    letter-spacing:.16em;
    color:#e3c87e;
    font-size:.72rem;
    font-weight:950;
}

.hv-hero-year{
    position:relative;
    z-index:1;
    margin-top:26px;
    color:#e3c87e;
    font-size:clamp(2.2rem,5vw,4.8rem);
    line-height:.8;
    font-weight:1000;
    letter-spacing:-.06em;
}

.hv-hero-main h2{
    position:relative;
    z-index:1;
    max-width:820px;
    margin:18px 0 13px;
    font-size:clamp(2rem,4vw,3.7rem);
    line-height:.98;
    letter-spacing:-.055em;
}

.hv-hero-main p{
    position:relative;
    z-index:1;
    max-width:760px;
    margin:0;
    color:rgba(255,255,255,.82);
    font-size:1.02rem;
    line-height:1.65;
}

.hv-hero-main code{
    color:#fff;
}

.hv-hero-actions{
    position:relative;
    z-index:1;
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:25px;
}

.hv-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 15px;
    border-radius:999px;
    text-decoration:none;
    font-weight:900;
    font-size:.88rem;
}

.hv-btn-primary{
    color:#0f3425;
    background:#e3c87e;
}

.hv-btn-secondary{
    color:#fff;
    border:1px solid rgba(255,255,255,.28);
    background:rgba(255,255,255,.08);
}

.hv-hero-side{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.hv-stat{
    min-height:150px;
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    border:1px solid var(--hv-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 26px rgba(15,23,42,.055);
}

.hv-stat strong{
    display:block;
    font-size:2rem;
    line-height:1;
    letter-spacing:-.055em;
    color:var(--hv-active);
}

.hv-stat strong small{
    font-size:.82rem;
}

.hv-stat span{
    margin-top:7px;
    color:var(--hv-muted);
    font-size:.79rem;
    line-height:1.2;
}

/* Generelle seksjonar */
.hv-section{
    margin-top:34px;
}

.hv-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:14px;
}

.hv-section-head h2,
.hv-page-head h2{
    margin:3px 0 0;
    font-size:clamp(1.7rem,3vw,2.6rem);
    letter-spacing:-.045em;
}

.hv-section-head > a{
    color:var(--hv-active);
    text-decoration:none;
    font-weight:900;
    font-size:.88rem;
}

.hv-feature-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.hv-feature-card{
    overflow:hidden;
    min-height:260px;
    border:1px solid var(--hv-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 28px rgba(15,23,42,.055);
}

.hv-feature-card.is-large{
    grid-column:span 2;
}

.hv-card-image,
.hv-story-image{
    height:190px;
    overflow:hidden;
    background:#e8eeeb;
}

.hv-feature-card.is-large .hv-card-image{
    height:260px;
}

.hv-card-image img,
.hv-story-image img,
.hv-event-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.hv-card-body,
.hv-story-body{
    padding:20px;
}

.hv-card-meta{
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--hv-muted);
    font-size:.75rem;
    font-weight:800;
}

.hv-year-pill{
    display:inline-block;
    padding:4px 8px;
    border-radius:999px;
    color:#fff;
    background:var(--hv-active);
    font-weight:950;
}

.hv-card-body h3,
.hv-story-body h3{
    margin:11px 0 7px;
    font-size:1.25rem;
    letter-spacing:-.025em;
}

.hv-card-body p,
.hv-story-body p{
    margin:0;
    color:#5c6978;
    line-height:1.55;
    font-size:.91rem;
}

.hv-text-link{
    display:inline-block;
    margin-top:14px;
    color:var(--hv-active);
    text-decoration:none;
    font-weight:900;
    font-size:.84rem;
}

/* Tema */
.hv-topic-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}

.hv-topic-card{
    min-height:106px;
    padding:18px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    border:1px solid var(--hv-line);
    border-radius:17px;
    background:
        linear-gradient(145deg,var(--hv-active-soft),#fff 70%);
}

.hv-topic-card strong{
    font-size:1rem;
}

.hv-topic-card span{
    margin-top:4px;
    color:var(--hv-muted);
    font-size:.78rem;
}

/* Nyare hendingar */
.hv-latest-list{
    overflow:hidden;
    border:1px solid var(--hv-line);
    border-radius:20px;
    background:#fff;
}

.hv-latest-list article{
    display:grid;
    grid-template-columns:130px 1fr;
    gap:20px;
    padding:18px 20px;
    border-bottom:1px solid #edf1f3;
}

.hv-latest-list article:last-child{
    border-bottom:0;
}

.hv-latest-list time{
    color:var(--hv-active);
    font-weight:950;
}

.hv-latest-list small{
    color:var(--hv-muted);
    font-weight:850;
}

.hv-latest-list h3{
    margin:3px 0 5px;
    font-size:1rem;
}

.hv-latest-list p{
    margin:0;
    color:#667281;
    font-size:.86rem;
    line-height:1.45;
}

/* Undersider */
.hv-page-head{
    margin:28px 0 15px;
    padding:25px 28px;
    border:1px solid var(--hv-line);
    border-radius:20px;
    background:#fff;
}

.hv-page-head p{
    margin:7px 0 0;
    color:var(--hv-muted);
}

.hv-empty,
.hv-alert{
    margin-top:18px;
    padding:22px;
    border:1px solid var(--hv-line);
    border-radius:18px;
    background:#fff;
}

.hv-empty strong,
.hv-empty span{
    display:block;
}

.hv-empty span{
    margin-top:5px;
    color:var(--hv-muted);
}

.hv-alert{
    color:#991b1b;
    border-color:#fecaca;
    background:#fef2f2;
}

/* Tidslinje */
.hv-timeline{
    position:relative;
    padding:10px 0 20px;
}

.hv-timeline:before{
    content:"";
    position:absolute;
    left:91px;
    top:12px;
    bottom:0;
    width:2px;
    background:linear-gradient(180deg,var(--hv-gold),var(--hv-active),#dbe3e8);
}

.hv-year-group{
    position:relative;
    display:grid;
    grid-template-columns:130px 1fr;
    gap:24px;
    margin:0 0 26px;
}

.hv-year-marker{
    position:relative;
    z-index:2;
    text-align:right;
    padding-top:5px;
}

.hv-year-marker span{
    display:inline-block;
    padding:8px 13px;
    border-radius:999px;
    color:#fff;
    background:var(--hv-active);
    box-shadow:0 8px 18px rgba(15,23,42,.12);
    font-weight:1000;
}

.hv-year-events{
    display:grid;
    gap:10px;
}

.hv-timeline-event{
    display:grid;
    grid-template-columns:105px minmax(0,180px) 1fr;
    gap:16px;
    padding:16px;
    border:1px solid var(--hv-line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 22px rgba(15,23,42,.045);
}

.hv-timeline-event:not(:has(.hv-event-image)){
    grid-template-columns:105px 1fr;
}

.hv-event-date{
    color:var(--hv-muted);
    font-size:.76rem;
    font-weight:900;
    padding-top:3px;
}

.hv-event-image{
    height:116px;
    overflow:hidden;
    border-radius:13px;
    background:#edf2ef;
}

.hv-category{
    display:inline-block;
    margin-bottom:5px;
    color:var(--hv-active);
    text-transform:uppercase;
    letter-spacing:.07em;
    font-size:.67rem;
    font-weight:950;
}

.hv-event-content h3{
    margin:0 0 6px;
    font-size:1.1rem;
}

.hv-event-content p{
    margin:0;
    color:#667281;
    line-height:1.5;
    font-size:.88rem;
}

.hv-event-links{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:10px;
    font-size:.78rem;
    font-weight:850;
}

.hv-event-links a{
    color:var(--hv-active);
    text-decoration:none;
}

.hv-event-links span{
    color:var(--hv-muted);
}

/* Kortvising */
.hv-story-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.hv-story-card{
    overflow:hidden;
    border:1px solid var(--hv-line);
    border-radius:19px;
    background:#fff;
    box-shadow:0 9px 24px rgba(15,23,42,.05);
}

/* Mobil */
@media (max-width:1150px){
    .hv-section-tabs{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

    .hv-hero{
        grid-template-columns:1fr;
    }

    .hv-hero-side{
        grid-template-columns:repeat(4,1fr);
    }

    .hv-stat{
        min-height:118px;
    }
}

@media (max-width:850px){
    .hv-shell{
        width:min(100% - 20px, 1420px);
        margin-top:18px;
    }

    .hv-section-tabs{
        display:flex;
        overflow-x:auto;
        scrollbar-width:none;
        gap:6px;
    }

    .hv-section-tabs::-webkit-scrollbar,
    .hv-view-tabs::-webkit-scrollbar{
        display:none;
    }

    .hv-section-tab{
        min-width:190px;
        min-height:76px;
        padding:10px;
    }

    .hv-view-tabs{
        flex-wrap:nowrap;
        overflow-x:auto;
        white-space:nowrap;
    }

    .hv-view-tabs a{
        flex:0 0 auto;
    }

    .hv-feature-grid,
    .hv-story-grid{
        grid-template-columns:1fr 1fr;
    }

    .hv-feature-card.is-large{
        grid-column:span 2;
    }

    .hv-topic-grid{
        grid-template-columns:1fr 1fr;
    }

    .hv-hero-side{
        grid-template-columns:1fr 1fr;
    }

    .hv-year-group{
        grid-template-columns:85px 1fr;
        gap:14px;
    }

    .hv-timeline:before{
        left:58px;
    }

    .hv-timeline-event,
    .hv-timeline-event:not(:has(.hv-event-image)){
        grid-template-columns:1fr;
    }

    .hv-event-image{
        height:190px;
    }
}

@media (max-width:560px){
    .hv-world-title{
        padding:22px 14px 24px;
        border-radius:18px;
    }

    .hv-world-title p{
        font-size:.88rem;
    }

    .hv-section-tab{
        min-width:170px;
    }

    .hv-section-icon{
        width:42px;
        height:42px;
        min-width:42px;
    }

    .hv-hero-main{
        min-height:0;
        padding:28px 22px;
        border-radius:20px;
    }

    .hv-hero-side{
        grid-template-columns:1fr 1fr;
    }

    .hv-stat{
        min-height:112px;
        padding:15px;
    }

    .hv-feature-grid,
    .hv-story-grid,
    .hv-topic-grid{
        grid-template-columns:1fr;
    }

    .hv-feature-card.is-large{
        grid-column:auto;
    }

    .hv-section-head{
        align-items:flex-start;
        flex-direction:column;
        gap:6px;
    }

    .hv-latest-list article{
        grid-template-columns:1fr;
        gap:6px;
    }

    .hv-year-group{
        display:block;
        margin-bottom:22px;
    }

    .hv-timeline:before{
        display:none;
    }

    .hv-year-marker{
        text-align:left;
        margin-bottom:9px;
    }

    .hv-page-head{
        padding:20px;
    }
}


/* =========================================================
   HISTORIEVERDEN – MOBILNAVIGASJON
   Brukast saman med historie_nav.php.
   På desktop er hamburgerknappen skjult.
   ========================================================= */

.hv-mobile-nav-toggle{
    display:none;
}

.hv-mode-nav{
    position:relative;
}

/* Litt meir "app"-kjensle på nettbrett og mobil */
@media (max-width:850px){

    .hv-shell{
        width:min(100% - 20px, 1420px);
        margin-top:18px;
    }

    /* Historieverden-topp: mindre luft og meir mobil proporsjon */
    .hv-world-title{
        padding:21px 16px 22px;
        border-radius:18px;
        box-shadow:0 8px 24px rgba(15,23,42,.05);
    }

    .hv-world-title h1{
        font-size:clamp(2.15rem,9vw,3rem);
        line-height:.96;
        margin-bottom:7px;
    }

    .hv-world-title p{
        max-width:620px;
        font-size:.84rem;
        line-height:1.42;
    }

    .hv-kicker,
    .hv-overline{
        font-size:.61rem;
        letter-spacing:.18em;
    }

    /* Knappen som historie_nav.php seinare koplar til */
    .hv-mobile-nav-toggle{
        width:100%;
        min-height:48px;
        margin:9px 0 0;
        padding:8px 11px 8px 13px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        border:1px solid #d6e2db;
        border-radius:13px;
        background:linear-gradient(180deg,#fff,#f7faf8);
        color:#143424;
        font:inherit;
        text-align:left;
        cursor:pointer;
        box-shadow:0 5px 16px rgba(15,23,42,.045);
    }

    .hv-mobile-nav-toggle__left{
        min-width:0;
        display:flex;
        align-items:center;
        gap:10px;
    }

    .hv-mobile-nav-toggle__icon{
        width:31px;
        height:31px;
        flex:0 0 31px;
        display:grid;
        place-items:center;
        border-radius:9px;
        background:#eaf3ed;
        color:var(--hv-green);
        font-size:.9rem;
        font-weight:950;
    }

    .hv-mobile-nav-toggle__text{
        min-width:0;
    }

    .hv-mobile-nav-toggle__text small{
        display:block;
        margin-bottom:2px;
        color:#718078;
        font-size:.56rem;
        font-weight:850;
        text-transform:uppercase;
        letter-spacing:.08em;
    }

    .hv-mobile-nav-toggle__text strong{
        display:block;
        color:#153c28;
        font-size:.79rem;
        line-height:1.1;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .hv-mobile-nav-toggle__burger{
        position:relative;
        width:27px;
        height:27px;
        flex:0 0 27px;
        border-radius:8px;
        background:#0f5132;
        box-shadow:0 3px 8px rgba(15,81,50,.16);
    }

    .hv-mobile-nav-toggle__burger::before,
    .hv-mobile-nav-toggle__burger::after,
    .hv-mobile-nav-toggle__burger span{
        content:"";
        position:absolute;
        left:7px;
        width:13px;
        height:2px;
        border-radius:999px;
        background:#fff;
        transition:.2s ease;
    }

    .hv-mobile-nav-toggle__burger::before{top:8px}
    .hv-mobile-nav-toggle__burger span{top:12.5px}
    .hv-mobile-nav-toggle__burger::after{top:17px}

    /* Desktop-rada blir ei kompakt mobilmeny */
    .hv-mode-nav{
        grid-template-columns:1fr 1fr !important;
        gap:7px !important;
        margin:8px 0 12px !important;
        padding:8px !important;
        border:1px solid #d8e3dd !important;
        border-radius:15px !important;
        overflow:visible !important;
        background:rgba(255,255,255,.96) !important;
        box-shadow:0 10px 28px rgba(15,23,42,.07) !important;
    }

    .hv-mode-nav a{
        min-height:59px !important;
        justify-content:flex-start !important;
        gap:8px !important;
        padding:9px 10px !important;
        border:1px solid #e1e8e4 !important;
        border-radius:11px !important;
        background:#fff !important;
        transform:none !important;
        box-shadow:none !important;
    }

    .hv-mode-nav a:hover{
        transform:none !important;
        border-color:#b8cec0 !important;
        background:#f4f9f6 !important;
        box-shadow:0 4px 11px rgba(15,81,50,.07) !important;
    }

    .hv-mode-nav a.is-active{
        border-color:#0f5132 !important;
        background:linear-gradient(135deg,#104e31,#1d643e) !important;
        box-shadow:0 6px 15px rgba(15,81,50,.17) !important;
    }

    .hv-mode-nav a.is-active:hover{
        background:linear-gradient(135deg,#0d472c,#226f46) !important;
    }

    .hv-mode-icon{
        width:30px !important;
        height:30px !important;
        flex:0 0 30px !important;
        border-radius:8px !important;
        font-size:.82rem !important;
    }

    .hv-mode-nav a:hover .hv-mode-icon{
        transform:none !important;
    }

    .hv-mode-nav strong{
        font-size:.73rem !important;
        line-height:1.05 !important;
    }

    .hv-mode-nav small{
        margin-top:3px !important;
        font-size:.56rem !important;
        line-height:1.18 !important;
    }

    /* Når JS set .is-open på mobilmenyen */
    .hv-mode-nav.is-mobile-collapsed{
        display:none !important;
    }

    .hv-mode-nav.is-mobile-open{
        display:grid !important;
        animation:hvMobileMenuIn .18s ease-out both;
    }

    .hv-mobile-nav-toggle[aria-expanded="true"] .hv-mobile-nav-toggle__burger::before{
        top:12.5px;
        transform:rotate(45deg);
    }

    .hv-mobile-nav-toggle[aria-expanded="true"] .hv-mobile-nav-toggle__burger span{
        opacity:0;
        transform:scaleX(.3);
    }

    .hv-mobile-nav-toggle[aria-expanded="true"] .hv-mobile-nav-toggle__burger::after{
        top:12.5px;
        transform:rotate(-45deg);
    }

    @keyframes hvMobileMenuIn{
        from{opacity:0;transform:translateY(-5px)}
        to{opacity:1;transform:translateY(0)}
    }

    /* Innhaldet skal utnytte skjermen betre */
    .hv-workspace{
        grid-template-columns:1fr !important;
        gap:11px !important;
    }

    .hv-filter-side{
        position:static !important;
        top:auto !important;
    }

    .hv-hero{
        gap:10px;
        margin-top:16px;
    }

    .hv-hero-main{
        min-height:0;
        padding:28px 23px;
        border-radius:19px;
    }

    .hv-hero-year{
        margin-top:20px;
    }

    .hv-hero-main h2{
        margin-top:14px;
    }

    .hv-hero-side{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .hv-stat{
        min-height:100px;
        padding:14px;
        border-radius:15px;
    }

    .hv-stat strong{
        font-size:1.55rem;
    }

    .hv-stat span{
        font-size:.68rem;
    }
}

@media (max-width:560px){

    .hv-shell{
        width:calc(100% - 16px);
        margin-top:14px;
        margin-bottom:45px;
    }

    .hv-world-title{
        padding:18px 12px 20px;
        border-radius:16px;
    }

    .hv-world-title h1{
        font-size:2.1rem;
        letter-spacing:-.055em;
    }

    .hv-world-title p{
        font-size:.76rem;
        line-height:1.38;
    }

    .hv-mode-nav{
        grid-template-columns:1fr !important;
        gap:5px !important;
        padding:6px !important;
    }

    .hv-mode-nav a{
        min-height:53px !important;
        padding:8px 9px !important;
    }

    .hv-mode-nav strong{
        font-size:.75rem !important;
    }

    .hv-mode-nav small{
        font-size:.57rem !important;
    }

    .hv-mobile-nav-toggle{
        min-height:46px;
        border-radius:12px;
    }

    .hv-hero-main{
        padding:24px 18px;
        border-radius:18px;
    }

    .hv-hero-main p{
        font-size:.86rem;
        line-height:1.5;
    }

    .hv-hero-actions{
        gap:7px;
        margin-top:19px;
    }

    .hv-btn{
        min-height:39px;
        padding:9px 13px;
        font-size:.78rem;
    }

    .hv-hero-side{
        grid-template-columns:1fr 1fr;
    }

    .hv-stat{
        min-height:92px;
        padding:12px;
    }

    .hv-stat strong{
        font-size:1.4rem;
    }

    .hv-feature-grid,
    .hv-story-grid,
    .hv-topic-grid{
        grid-template-columns:1fr;
    }

    .hv-feature-card.is-large{
        grid-column:auto;
    }

    .hv-card-image,
    .hv-story-image,
    .hv-feature-card.is-large .hv-card-image{
        height:180px;
    }

    .hv-card-body,
    .hv-story-body{
        padding:16px;
    }

    .hv-section{
        margin-top:25px;
    }

    .hv-section-head{
        margin-bottom:10px;
    }

    .hv-section-head h2,
    .hv-page-head h2{
        font-size:1.55rem;
    }

    .hv-year-group{
        display:block;
        margin-bottom:20px;
    }

    .hv-timeline:before{
        display:none;
    }

    .hv-year-marker{
        text-align:left;
        margin-bottom:8px;
    }

    .hv-timeline-event,
    .hv-timeline-event:not(:has(.hv-event-image)){
        grid-template-columns:1fr;
        gap:8px;
        padding:12px;
        border-radius:14px;
    }

    .hv-event-image{
        height:175px;
    }

    .hv-page-head{
        padding:17px;
        border-radius:15px;
    }
}

/* Respekter brukarar som har redusert rørsle slått på */
@media (prefers-reduced-motion:reduce){
    .hv-mobile-nav-toggle__burger::before,
    .hv-mobile-nav-toggle__burger::after,
    .hv-mobile-nav-toggle__burger span,
    .hv-mode-nav,
    .hv-mode-nav a,
    .hv-mode-icon{
        transition:none !important;
        animation:none !important;
    }
}