/* US1.dk – fælles forum CSS v2
   KISS: kun forum. Intet andet på US1 påvirkes. */

body:not(.home-page) .forum-wrap,
body:not(.home-page) .thread-wrap{
    max-width:1000px;
    margin:32px auto 50px;
    padding:0 18px;
    color:#1f2a36;
}

/* Tekst direkte på den mørke sidebaggrund */
body:not(.home-page) .forum-title,
body:not(.home-page) .forum-top h1,
body:not(.home-page) .thread-title{
    color:#f6ead8 !important;
    text-shadow:none;
}

body:not(.home-page) .forum-title{
    margin:0 0 6px;
    font-size:32px;
    line-height:1.15;
}

body:not(.home-page) .forum-intro,
body:not(.home-page) .forum-top p{
    color:#d8c9b5 !important;
}

body:not(.home-page) .forum-intro{
    margin:0 0 22px;
    font-size:15px;
}

body:not(.home-page) .forum-back,
body:not(.home-page) .thread-back{
    display:inline-block;
    margin-bottom:14px;
    color:#f0d9c2 !important;
    font-weight:700;
    text-decoration:none;
}

/* Forumoversigt */
body:not(.home-page) .forum-category{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    margin-bottom:10px;
    padding:14px 16px;
    background:#fffaf1;
    border:1px solid #cdbfa8;
    border-left:4px solid #b9362c;
    border-radius:8px;
    text-decoration:none;
    box-shadow:none;
}

body:not(.home-page) .forum-category:hover,
body:not(.home-page) .thread-card:hover{
    background:#f7eddd;
}

body:not(.home-page) .forum-category-icon{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#10233d;
    color:#fff;
    font-size:18px;
    flex-shrink:0;
}

body:not(.home-page) .forum-category-copy{
    min-width:0;
}

body:not(.home-page) .forum-category-copy h2,
body:not(.home-page) .thread-card h2{
    margin:0 0 4px;
    color:#10233d !important;
    text-shadow:none;
}

body:not(.home-page) .forum-category-copy h2{
    font-size:19px;
}

body:not(.home-page) .forum-category-copy p{
    margin:0;
    color:#5f5b53;
    font-size:14px;
    line-height:1.4;
}

body:not(.home-page) .forum-count{
    color:#10233d;
    font-size:13px;
    font-weight:700;
    white-space:nowrap;
    padding-left:10px;
}

/* Kategoriside */
body:not(.home-page) .forum-top{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
}

body:not(.home-page) .forum-top h1{
    margin:0 0 5px;
    font-size:30px;
}

body:not(.home-page) .forum-top p{
    margin:0;
}

body:not(.home-page) .new-thread-button{
    display:inline-block;
    flex-shrink:0;
    padding:10px 14px;
    border:0;
    border-radius:7px;
    background:#b9362c;
    color:#fff !important;
    font-weight:700;
    text-decoration:none;
    box-shadow:none;
}

body:not(.home-page) .thread-card{
    display:block;
    margin-bottom:10px;
    padding:14px 16px;
    background:#fffaf1;
    border:1px solid #cdbfa8;
    border-left:4px solid #b9362c;
    border-radius:8px;
    text-decoration:none;
    box-shadow:none;
}

body:not(.home-page) .thread-card h2{
    font-size:18px;
}

body:not(.home-page) .thread-meta{
    color:#6d6a62;
    font-size:13px;
}

body:not(.home-page) .empty-forum,
body:not(.home-page) .forum-empty,
body:not(.home-page) .login-note{
    padding:16px;
    background:#fffaf1;
    border:1px solid #cdbfa8;
    border-radius:8px;
    color:#10233d;
}

/* Tråd og svar */
body:not(.home-page) .thread-title{
    margin:0 0 20px;
    font-size:30px;
}

body:not(.home-page) .post-card,
body:not(.home-page) .reply-card{
    margin-bottom:18px;
    padding:18px;
    background:#fffaf1;
    border:1px solid #cdbfa8;
    border-left:4px solid #b9362c;
    border-radius:8px;
    box-shadow:none;
    color:#1f2a36;
}

body:not(.home-page) .post-header,
body:not(.home-page) .post-user-info,
body:not(.home-page) .post-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

body:not(.home-page) .post-header{
    justify-content:space-between;
    padding-bottom:12px;
    margin-bottom:14px;
    border-bottom:1px solid #ddd0bb;
}

body:not(.home-page) .post-avatar,
body:not(.home-page) .post-avatar-fallback{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
    flex:0 0 48px;
    border:2px solid #cdbfa8;
}

body:not(.home-page) .post-avatar-fallback{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#10233d;
    color:#fff;
    font-weight:700;
}

body:not(.home-page) .post-user,
body:not(.home-page) .reply-card h2,
body:not(.home-page) .reply-card label{
    color:#10233d !important;
    font-weight:700;
}

body:not(.home-page) .post-user{
    font-size:17px;
}

body:not(.home-page) .post-date,
body:not(.home-page) .image-help{
    color:#6d6a62;
    font-size:13px;
}

body:not(.home-page) .post-body{
    color:#1f2a36;
    line-height:1.6;
    white-space:pre-line;
    overflow-wrap:anywhere;
}

/* Knapper – overstyr kun global knapstil inde i forum */
body:not(.home-page) .forum-wrap .edit-button,
body:not(.home-page) .forum-wrap .delete-button,
body:not(.home-page) .forum-wrap .reply-button,
body:not(.home-page) .thread-wrap .edit-button,
body:not(.home-page) .thread-wrap .delete-button,
body:not(.home-page) .thread-wrap .reply-button{
    padding:8px 12px;
    border:0;
    border-radius:6px;
    color:#fff !important;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    box-shadow:none;
    transform:none;
}

body:not(.home-page) .thread-wrap .edit-button{
    background:#10233d;
}

body:not(.home-page) .thread-wrap .delete-button,
body:not(.home-page) .thread-wrap .reply-button{
    background:#b9362c;
}

body:not(.home-page) .delete-form{
    margin:0;
}

body:not(.home-page) .post-images{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:16px;
}

body:not(.home-page) .post-image{
    width:100%;
    max-height:440px;
    object-fit:contain;
    background:#eee4d1;
    border:1px solid #d3c4ad;
    border-radius:7px;
    cursor:zoom-in;
    display:block;
}

body:not(.home-page) .reply-card h2{
    margin:0 0 14px;
}

/* Formularfelter – forumets egne, ikke hele sitet */
body:not(.home-page) .reply-card textarea,
body:not(.home-page) .reply-card input[type="file"]{
    width:100%;
    box-sizing:border-box;
    padding:12px;
    border:1px solid #cdbfa8;
    border-radius:7px;
    background:#fffdf8;
    color:#1f2a36;
    box-shadow:none;
}

body:not(.home-page) .reply-card textarea{
    min-height:150px;
    resize:vertical;
}

body:not(.home-page) .reply-card input[type="file"]{
    margin-top:7px;
}

body:not(.home-page) .image-help{
    margin:7px 0 14px;
}

body:not(.home-page) .success-box,
body:not(.home-page) .error-box{
    margin-bottom:18px;
    padding:12px;
    border-radius:7px;
}

body:not(.home-page) .success-box{
    background:#eaf7ec;
    color:#1f5a2d;
}

body:not(.home-page) .error-box{
    background:#fee2e2;
    color:#991b1b;
}

/* Billedmodal */
.image-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:99999;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.94);
    padding:20px;
}

.image-modal.open{
    display:flex;
}

.image-modal img{
    max-width:95vw;
    max-height:92vh;
    object-fit:contain;
}

.image-modal-close{
    position:fixed;
    top:14px;
    right:14px;
    width:44px;
    height:44px;
    border:0;
    border-radius:50%;
    background:#10233d !important;
    color:#fff !important;
    font-size:30px;
    cursor:pointer;
    box-shadow:none !important;
}

/* Mobil */
@media(max-width:700px){
    body:not(.home-page) .forum-wrap,
    body:not(.home-page) .thread-wrap{
        margin:20px auto 35px;
        padding:0 12px;
    }

    body:not(.home-page) .forum-title,
    body:not(.home-page) .forum-top h1{
        font-size:27px;
    }

    body:not(.home-page) .thread-title{
        font-size:25px;
    }

    body:not(.home-page) .forum-top{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
    }

    body:not(.home-page) .forum-category{
        grid-template-columns:38px minmax(0,1fr);
        gap:10px;
        padding:12px;
    }

    body:not(.home-page) .forum-category-icon{
        width:34px;
        height:34px;
        font-size:16px;
    }

    body:not(.home-page) .forum-count{
        grid-column:2;
        padding-left:0;
        font-size:12px;
    }

    body:not(.home-page) .post-card,
    body:not(.home-page) .reply-card{
        padding:14px;
    }

    body:not(.home-page) .post-header{
        align-items:flex-start;
        flex-direction:column;
    }

    body:not(.home-page) .post-avatar,
    body:not(.home-page) .post-avatar-fallback{
        width:44px;
        height:44px;
        flex-basis:44px;
    }

    body:not(.home-page) .post-images{
        grid-template-columns:1fr;
    }

    body:not(.home-page) .post-image{
        max-height:none;
    }
}
