@charset "UTF-8";

/* ============================================================
   APOPSI · SIDOSPÅR V1.11
   Fristående overlay. Påverkar inte .page/.frontpage/main-grid.
   ============================================================ */

.sidetrack-launch{
    position:fixed;
    z-index:720;
    right:0;
    top:26vh;
    width:38px;
    min-height:118px;
    border:1px solid rgba(79,111,116,.38);
    border-right:0;
    border-radius:7px 0 0 7px;
    background:rgba(247,244,236,.97);
    box-shadow:-7px 8px 26px rgba(48,58,54,.08);
    cursor:pointer;
    transition:right .28s ease,background .2s ease;
}
.sidetrack-launch span{
    display:inline-block;
    writing-mode:vertical-rl;
    transform:rotate(180deg);
    color:#506f74;
    font-size:9px;
    font-weight:950;
    letter-spacing:.12em;
}
.sidetrack-launch:hover{background:#efebe2}
body.sidetrack-open .sidetrack-launch{
    right:min(344px,calc(100vw - 52px));
}

.sidetrack-backdrop{
    position:fixed;
    z-index:705;
    inset:0;
    background:rgba(34,40,38,.13);
    backdrop-filter:blur(1px);
}
.sidetrack-backdrop[hidden]{display:none}

.sidetrack-drawer{
    position:fixed;
    z-index:710;
    top:10vh;
    right:0;
    width:min(344px,calc(100vw - 52px));
    height:min(79vh,760px);
    display:flex;
    flex-direction:column;
    background:#f8f5ed;
    border:1px solid rgba(166,170,159,.62);
    border-right:0;
    box-shadow:-20px 22px 60px rgba(38,47,43,.15);
    transform:translateX(102%);
    transition:transform .28s ease;
    overflow:hidden;
}
body.sidetrack-open .sidetrack-drawer{transform:translateX(0)}

.sidetrack-head{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:17px 18px 13px;
    border-bottom:1px solid rgba(166,170,159,.42);
}
.sidetrack-head small{
    display:block;
    margin-bottom:2px;
    color:#8b9277;
    font-size:7px;
    font-weight:900;
    letter-spacing:.12em;
}
.sidetrack-head strong{
    font-family:Georgia,"Times New Roman",serif;
    color:#456367;
    font-size:25px;
    line-height:1;
    letter-spacing:-.035em;
}
.sidetrack-close{
    width:29px;height:29px;
    display:grid;place-items:center;
    border:1px solid rgba(166,170,159,.52);
    border-radius:50%;
    background:transparent;
    color:#69736e;
    font-size:20px;
    line-height:1;
    cursor:pointer;
}

/* Två CENTRERADE rader: 3 + 3 */
.sidetrack-group-tabs{
    flex:0 0 auto;
    display:grid;
    grid-template-columns:repeat(3,max-content);
    justify-content:center;
    align-items:center;
    gap:6px 8px;
    padding:12px 10px 13px;
    border-bottom:1px solid rgba(166,170,159,.32);
}
.sidetrack-group-btn{
    min-width:72px;
    padding:6px 8px;
    border:1px solid transparent;
    border-radius:999px;
    background:transparent;
    color:#7a7f78;
    font-size:8px;
    font-weight:950;
    letter-spacing:.07em;
    cursor:pointer;
}
.sidetrack-group-btn:hover{color:#4f6f74}
.sidetrack-group-btn.active{
    color:#405f64;
    border-color:rgba(111,141,145,.38);
    background:rgba(137,167,170,.11);
}
.sidetrack-mobile-select{display:none}

.sidetrack-panels{
    flex:1 1 auto;
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
}
.sidetrack-panel{
    display:none;
    padding:12px 18px 16px;
}
.sidetrack-panel.active{display:block}
.sidetrack-panel-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    max-width:286px;
    margin:0 auto 3px;
    padding-bottom:7px;
    border-bottom:1px solid rgba(166,170,159,.45);
    color:#5b706c;
    font-size:7.5px;
    font-weight:950;
    letter-spacing:.09em;
}
.sidetrack-panel-title span{
    color:#999b94;
    font-size:7px;
}

/* Samma DNA som MELLAN RADERNA – smalare och tajtare */
.sidetrack-card{
    display:grid;
    grid-template-columns:31px minmax(0,1fr);
    gap:9px;
    max-width:286px;
    margin:0 auto;
    padding:12px 0 11px;
    border-bottom:1px solid rgba(166,170,159,.34);
}
.sidetrack-no{
    padding-top:2px;
    color:#9a9d95;
    font-family:Georgia,"Times New Roman",serif;
    font-size:15px;
    line-height:1;
}
.sidetrack-copy{min-width:0}
.sidetrack-kicker{
    margin-bottom:4px;
    color:#78847d;
    font-size:7.5px;
    font-weight:950;
    letter-spacing:.08em;
}
.sidetrack-card h3{
    margin:0 0 5px;
    color:#424a46;
    font-family:Georgia,"Times New Roman",serif;
    font-size:17px;
    line-height:1.05;
    letter-spacing:-.018em;
    overflow-wrap:anywhere;
}
.sidetrack-card h3 a{
    color:inherit;
    text-decoration:none;
}
.sidetrack-card h3 a:hover{color:#4f6f74}
.sidetrack-card p{
    margin:0 0 6px;
    color:#70766f;
    font-family:Georgia,"Times New Roman",serif;
    font-size:11.5px;
    line-height:1.3;
}
.sidetrack-meta{
    display:flex;
    align-items:center;
    gap:4px;
    color:#95988f;
    font-size:7.5px;
    font-weight:800;
    letter-spacing:.04em;
}
.sidetrack-empty{
    max-width:286px;
    margin:16px auto;
    padding:16px 12px;
    border:1px dashed rgba(166,170,159,.55);
    color:#8a8e86;
    font-size:11px;
    text-align:center;
}
.sidetrack-all{
    display:block;
    max-width:286px;
    margin:12px auto 3px;
    padding-top:8px;
    border-top:1px solid rgba(111,141,145,.26);
    color:#4f6f74;
    font-size:8px;
    font-weight:950;
    letter-spacing:.07em;
    text-decoration:none;
}
.sidetrack-foot{
    flex:0 0 auto;
    display:flex;
    justify-content:space-between;
    gap:10px;
    padding:11px 18px;
    border-top:1px solid rgba(166,170,159,.42);
    color:#8a8d86;
    font-size:8px;
    letter-spacing:.04em;
}
.sidetrack-foot strong{color:#5a706d}

/* ============================================================
   SIDOSPÅR-ARKIV
   ============================================================ */
.sidetrack-archive{
    max-width:960px;
    margin:0 auto;
    padding:36px 18px 70px;
}
.sidetrack-archive-head{
    text-align:center;
    margin-bottom:24px;
}
.sidetrack-archive-head small{
    color:#8b9277;
    font-size:9px;
    font-weight:950;
    letter-spacing:.12em;
}
.sidetrack-archive-head h1{
    margin:6px 0;
    font-family:Georgia,"Times New Roman",serif;
    color:#456367;
    font-size:clamp(42px,7vw,78px);
    line-height:.9;
    letter-spacing:-.055em;
}
.sidetrack-archive-head p{
    color:#7a7d76;
    font-family:Georgia,"Times New Roman",serif;
}
.sidetrack-archive-tabs{
    display:grid;
    grid-template-columns:repeat(3,max-content);
    justify-content:center;
    gap:7px 10px;
    margin:0 auto 30px;
}
.sidetrack-archive-tabs a{
    min-width:86px;
    padding:7px 11px;
    border:1px solid transparent;
    border-radius:999px;
    color:#747b75;
    font-size:8px;
    font-weight:950;
    letter-spacing:.07em;
    text-align:center;
    text-decoration:none;
}
.sidetrack-archive-tabs a.active{
    color:#405f64;
    border-color:rgba(111,141,145,.38);
    background:rgba(137,167,170,.11);
}
.sidetrack-archive-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 42px;
    max-width:780px;
    margin:0 auto;
}
.sidetrack-archive-grid .sidetrack-card{
    max-width:none;
    width:100%;
}
.sidetrack-pagination{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:7px;
    margin-top:32px;
}
.sidetrack-pagination a,
.sidetrack-pagination span{
    min-width:31px;
    padding:7px 9px;
    border:1px solid rgba(166,170,159,.5);
    color:#64716d;
    font-size:9px;
    text-align:center;
    text-decoration:none;
}
.sidetrack-pagination span{
    background:#5a777b;
    border-color:#5a777b;
    color:#fff;
}
.sidetrack-back-home{
    display:inline-block;
    margin-bottom:28px;
    color:#4f6f74;
    font-size:9px;
    font-weight:900;
    letter-spacing:.06em;
    text-decoration:none;
}

@media(max-width:640px){
    .sidetrack-launch{
        top:auto;
        right:12px;
        bottom:12px;
        width:auto;
        min-height:0;
        padding:9px 12px;
        border:1px solid rgba(79,111,116,.38);
        border-radius:999px;
    }
    .sidetrack-launch span{
        writing-mode:horizontal-tb;
        transform:none;
    }
    body.sidetrack-open .sidetrack-launch{right:12px}

    .sidetrack-drawer{
        top:auto;
        bottom:0;
        width:100%;
        height:76vh;
        border:1px solid rgba(166,170,159,.62);
        border-bottom:0;
        transform:translateY(103%);
    }
    body.sidetrack-open .sidetrack-drawer{transform:translateY(0)}
    .sidetrack-group-tabs{display:none}
    .sidetrack-mobile-select{
        display:block;
        padding:11px 18px;
        border-bottom:1px solid rgba(166,170,159,.32);
    }
    .sidetrack-mobile-select span{
        display:block;
        margin-bottom:5px;
        color:#747c76;
        font-size:7px;
        font-weight:950;
        letter-spacing:.09em;
    }
    .sidetrack-mobile-select select{
        width:100%;
        padding:9px 10px;
        border:1px solid rgba(166,170,159,.55);
        background:#fffdf8;
        color:#4c5e5b;
    }
    .sidetrack-archive-grid{grid-template-columns:1fr}
}



.sidetrack-drawer{
    top:4vh;
    height:min(92vh,900px);
}

.sidetrack-card{
    padding:9px 0 8px;
}

.sidetrack-card h3{
    font-size:16px;
    line-height:1.02;
}

.sidetrack-card p{
    font-size:11px;
    line-height:1.22;
    margin-bottom:4px;
}