.forum { min-height: 100vh; display: flex; flex-direction: column; }
.forum-main { flex: 1; padding-block: clamp(2rem,5vw,4.5rem); }
.forum-head { display: flex; align-items: center; gap: clamp(.75rem,3vw,2.5rem); min-height: 78px; }
.forum-head .brand { margin-right: auto; }
.forum-head .head-link { font-weight: 700; text-decoration: none; }
.forum-head .current, .forum-head .head-link:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .45rem; }
.forum-head form, .forum-head .button { margin: 0; }
.forum .light { background: transparent; color: var(--ink); }
.forum-hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(2rem,6vw,6rem); }
.forum h1 { margin: 0; overflow-wrap: anywhere; }
.forum-hero h1 { font-size: clamp(4rem,8.6vw,8rem); line-height: .98; }
.forum h1 span { color: var(--red); }
.forum-hero p { max-width: 42ch; margin: 1.1rem 0 1.5rem; font-size: clamp(1.05rem,1.45vw,1.3rem); }
.forum-photo { overflow: hidden; border: 2px solid var(--ink); box-shadow: 5px 5px var(--ink); border-radius: 4px; }
.forum-photo img { width: 100%; height: auto; }
.discussions { margin-top: clamp(2.6rem,5vw,5rem); }
.discussions h2 { font-size: clamp(2.5rem,4.4vw,4.3rem); }
.category-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.category-tabs a { padding: .55rem 1rem; border: 1.5px solid var(--ink); border-radius: 4px; text-decoration: none; font-weight: 700; }
.category-tabs a:hover { background: #ffe597; }
.category-tabs a[aria-current] { background: var(--ink); color: white; }
.empty { background: #fffdf3; border: 1px solid var(--line); border-left: 6px solid var(--yellow); padding: clamp(1.2rem,3vw,2.25rem); }
.empty h3 { font-size: clamp(1.7rem,3vw,2.4rem); }
.empty p { margin: .5rem 0 .35rem; }
.topic-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.topic-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem .25rem; border-bottom: 1px solid var(--line); }
.topic-list h3 { margin: .4rem 0 .2rem; font-size: clamp(1.5rem,2.6vw,2.2rem); overflow-wrap: anywhere; }
.topic-list h3 a { text-decoration: none; }
.topic-list h3 a:hover { text-decoration: underline; }
.topic-list p, .row-stats span, .post-meta time { margin: 0; color: #54544d; font-size: .9rem; }
.row-stats { display: grid; text-align: right; flex: none; }
.tag { display: inline-block; padding: .15rem .55rem; border-radius: 2px; font-size: .86rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.produkter { background: #ffda66; } .traning { background: #c0e1c1; } .livsstil { background: #dfc7ed; } .ovrigt { background: #bde2ee; }
.forum .back { display: inline-block; margin-bottom: 1.5rem; }
.reading { max-width: 760px; }
.reading h1 { font-size: clamp(2.8rem,5.5vw,5.3rem); line-height: 1.03; }
.reading > p { max-width: 65ch; }
.reading form { max-width: 620px; margin: 1.4rem 0; gap: .55rem; }
.reading input:not([type=hidden]) { min-width: 0; width: 100%; padding: .7rem; border: 1px solid #75756d; border-radius: 3px; font: inherit; background: white; color: var(--ink); }
.reading label:not(:first-of-type) { margin-top: .65rem; }
.reading form .button, .reading .text-link { justify-self: start; }
.reading .notice { background: #fff0e8; border-left: 4px solid var(--red); padding: .8rem 1rem; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
.opening { background: #fffdf4; border: 1px solid var(--line); border-top: 4px solid var(--yellow); margin: 1.5rem 0 2rem; padding: clamp(1rem,2.5vw,2rem); }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: .9rem 0; }
.reply-title { font-size: 2.2rem; } .reply-title small { font-size: 1.3rem; }
.reply { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.minor { font-size: .88rem; color: #53534d; }
.pager { display: flex; gap: 1.25rem; align-items: center; margin: 1.25rem 0; }
.pager a { font-weight: 700; }
@media (max-width: 700px) {
    .forum-head { min-height: 64px; }
    .forum-head .brand { width: clamp(110px,28vw,160px); }
    .forum-head .button { padding: .45rem .65rem; min-height: 40px; }
    .forum-hero { grid-template-columns: 1fr; gap: 1.5rem; }
    .forum-photo { max-width: 500px; }
    .forum-photo img { aspect-ratio: 2.45; object-fit: cover; }
    .topic-list li { align-items: start; flex-direction: column; gap: .35rem; }
    .row-stats { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; text-align: left; }
}
@media (max-width: 430px) { .forum-head a[href="./#sortiment"] { display: none; } }
