/* phpBB Sverige: shared layout;
 palette variables are supplied by the design extension. */
:root {
    --se-primary:#125580;
    --se-link:#145e8c;
    --se-surface:#fff;
    --se-alt:#eef4f8;
    --se-text:#243747;
    --se-muted:#536779;
    --se-border:#cbd8e2;
    --se-page:#e5edf3;
    color-scheme:light
}

html {
    height:auto;
    min-height:100%;
    scroll-padding-bottom:100px
}

body {
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:12px;
    line-height:1.5;
    color:var(--se-text);
    background:var(--se-page);
    isolation:isolate;
    padding:28px 20px;
    min-height:100vh;
    box-sizing:border-box
}

a,a:visited,a.forumtitle,a.topictitle,.postlink,.postlink:visited {
    color:var(--se-link)
}

a:hover,a.forumtitle:hover,a.topictitle:hover {
    color:var(--se-link);
    text-decoration:underline
}

:where(a,button,input,select,textarea,summary):focus-visible {
    outline:3px solid var(--se-link);
    outline-offset:3px
}

.se-season {
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none
}
.se-season img {
    width:100%;
    height:100%;
    object-fit:cover
}
.se-season:after {
    content:"";
    position:absolute;
    inset:0;
    background:rgba(12,29,43,.16)
}

.wrap {
    max-width:1180px;
    min-width:0;
    margin:0 auto;
    padding:20px;
    background:var(--se-surface);
    border:1px solid var(--se-border);
    border-radius:16px;
    box-shadow:0 12px 48px #10233225
}

.headerbar {
    background:linear-gradient(115deg,var(--se-primary),color-mix(in srgb,var(--se-primary),#081926 55%));
    border-radius:11px 11px 0 0;
    padding:18px 20px;
    margin:0;
    min-height:80px;
    color:#fff
}

.site-description {
    float:none;
    width:auto
}
.logo {
    padding:0
}
.site_logo {
    max-width:100%;
    background-size:contain;
    background-repeat:no-repeat;
    background-position:left center
}

#phpbb-main-menu {
    max-width:none;
    margin:0 0 16px;
    background:var(--se-primary);
    box-shadow:none;
    border-radius:0 0 11px 11px
}

.main-menu {
    flex-wrap:wrap
}
.main-menu>li>a {
    padding:13px 12px;
    font-family:inherit;
    font-weight:600;
    font-size:13px;
    color:#fff;
    min-height:22px
}

.main-menu>li:hover>a,.main-menu>li:focus-within>a {
    background:#ffffff18;
    color:#fff
}

.main-menu .has-dropdown:focus-within>ul {
    display:block
}
.main-menu ul {
    background:var(--se-surface);
    border:1px solid var(--se-border);
    border-radius:10px;
    box-shadow:0 10px 25px #10233222
}

.main-menu ul li a {
    color:var(--se-text);
    font-size:14px
}
.main-menu ul li a:hover {
    background:var(--se-alt);
    color:var(--se-link)
}

.menu-search {
    padding:6px 10px;
    margin-left:auto
}
.menu-search-input {
    background:var(--se-surface);
    color:var(--se-text);
    border-color:var(--se-border);
    min-height:34px;
    width:150px;
    font-size:13px
}
.menu-search-button {
    height:36px;
    background:#ffffff1f
}
.mobile-menu {
    display:none!important
}

.navbar {
    background:var(--se-alt);
    border:1px solid var(--se-border);
    border-radius:10px;
    padding:7px 12px;
    color:var(--se-muted)
}

.navbar a {
    color:var(--se-link)
}
.linklist>li {
    font-size:12px
}
.nav-breadcrumbs {
    padding-top:5px;
    border-top:1px solid var(--se-border)
}

.forabg,.forumbg {
    background:var(--se-primary);
    border:1px solid var(--se-border);
    border-radius:10px;
    padding:0;
    overflow:hidden;
    margin-bottom:18px
}

.forabg>.inner,.forumbg>.inner {
    margin:0
}
.forabg .header,.forumbg .header {
    padding:11px 14px;
    color:#fff
}

li.header dt,li.header dd,li.header a,li.header a:visited {
    color:#fff;
    font-family:inherit
}

ul.forums {
    background:var(--se-alt);
    border-radius:0
}
.bg1,.bg2,.bg3,.panel,.post,.cp-mini {
    background:var(--se-alt);
    color:var(--se-text)
}

li.row {
    background:var(--se-surface);
    border-color:var(--se-border);
    padding:8px 12px
}
li.row:nth-child(even) {
    background:var(--se-alt)
}
li.row:hover {
    background:var(--se-alt)
}

li.row strong {
    color:inherit
}
li.row dl {
    padding:5px 0
}
.forumtitle,.topictitle {
    font-family:inherit!important;
    font-weight:650!important;
    font-size:15px!important
}

dl.row-item dt .list-inner {
    padding-left:8px;
    padding-right:12px
}
dl.row-item dt {
    background-position:5px center;
    min-height:48px
}

.forums dl.row-item dt .list-inner {
    padding-left:52px
}
dd.posts,dd.topics,dd.views,dd.lastpost,dd.redirect,dd.mark {
    border-color:var(--se-border);
    color:var(--se-muted)
}

.forums .lastpost,.topics .lastpost {
    font-size:12px
}
.forums .lastpost span,.topics .lastpost span {
    line-height:1.5
}
li.row dt a.subforum {
    color:var(--se-link)
}

h1,h2,h3,h4 {
    font-family:inherit;
    color:var(--se-text)
}
h2 {
    font-weight:650;
    font-size:23px;
    margin-bottom:12px
}
h3 {
    border-color:var(--se-border);
    font-size:12px;
    letter-spacing:.045em;
    color:var(--se-muted);
    padding-bottom:8px
}
p {
    line-height:1.6
}

.panel,.post {
    border:1px solid var(--se-border);
    border-radius:10px;
    padding:16px;
    margin-bottom:14px
}
.post.bg1 {
    background:var(--se-surface)
}
.post.bg2 {
    background:var(--se-alt)
}

.postbody {
    color:var(--se-text)
}
.postbody .content {
    font-family:inherit;
    font-size:15px;
    line-height:1.75;
    color:var(--se-text)
}
.postbody h3 {
    font-size:16px;
    letter-spacing:normal
}
.postprofile {
    border-color:var(--se-border);
    color:var(--se-muted)
}
.postprofile strong {
    color:var(--se-muted)
}

.content h2,.panel h2,.content p,.content li,.signature,.author,.notice,.stat-block,.dropdown-contents,fieldset,dl.faq {
    color:var(--se-text)
}

blockquote {
    background:var(--se-alt);
    border:1px solid var(--se-border);
    border-left:3px solid var(--se-primary);
    border-radius:6px;
    color:var(--se-text)
}
blockquote blockquote {
    background:var(--se-surface)
}

.codebox,.attachbox,.attachbox dd,.pm-message-report {
    background:var(--se-surface);
    border-color:var(--se-border);
    color:var(--se-text)
}
.codebox code {
    color:var(--se-text)
}

input.inputbox,textarea.inputbox,select,.inputbox {
    background:var(--se-surface);
    color:var(--se-text);
    border:1px solid var(--se-border);
    border-radius:6px;
    padding:8px;
    box-sizing:border-box
}
input::placeholder,textarea::placeholder {
    color:var(--se-muted);
    opacity:1
}

.inputbox:hover,.inputbox:focus {
    border-color:var(--se-link)
}
select {
    max-width:100%
}
fieldset dt,fieldset.fields1 dt,fieldset.fields2 dt,label {
    color:var(--se-text)
}

.button,a.button,input.button1,input.button2,a.button1,a.button2 {
    background:var(--se-surface);
    color:var(--se-link);
    border:1px solid var(--se-border);
    border-radius:7px;
    box-shadow:none;
    text-shadow:none;
    padding:8px 13px;
    font-family:inherit
}

.button:hover,input.button1:hover,input.button2:hover {
    background:var(--se-alt);
    color:var(--se-link);
    border-color:var(--se-link)
}
.button .icon {
    color:inherit
}

a.button1,input.button1,.pagination li.active span {
    background:var(--se-primary);
    color:#fff;
    border-color:var(--se-primary)
}

.pagination li a,.pagination li span {
    border-radius:5px;
    border-color:var(--se-border);
    background:var(--se-surface);
    color:var(--se-link);
    padding:5px 9px
}

.dropdown .dropdown-contents {
    background:var(--se-surface);
    border-color:var(--se-border);
    box-shadow:0 8px 30px #10233225
}
.dropdown li,.dropdown li.separator {
    border-color:var(--se-border)
}
.dropdown li:hover {
    background:var(--se-alt)
}
.notification_list .notification-block,.notification_list .bg2 {
    background:var(--se-alt);
    color:var(--se-text)
}

#tabs .tab>a,#minitabs .tab>a,#navigation a {
    background:var(--se-alt);
    color:var(--se-link)
}
#tabs .activetab>a,#minitabs .activetab>a,#navigation #active-subsection a {
    background:var(--se-primary);
    color:#fff;
    border-color:var(--se-primary)
}
#cp-main .panel {
    background:var(--se-alt)
}

.copyright {
    color:var(--se-muted);
    font-size:12px;
    padding:8px 0 22px
}
.copyright p.footer-row {
    font-size:11px!important
}
.copyright>div {
    color:var(--se-muted)!important
}
.copyright img {
    max-width:100%;
    height:auto
}
.page-footer {
    padding-top:12px
}

.se-mobile-nav {
    display:none
}
.se-more-dialog:not([open]) {
    display:none
}
.se-more-dialog {
    background:var(--se-surface);
    color:var(--se-text);
    border:1px solid var(--se-border);
    border-radius:18px;
    padding:20px;
    width:min(420px,calc(100% - 48px));
    max-height:75dvh;
    box-sizing:border-box;
    box-shadow:0 16px 60px #0005
}
.se-more-dialog::backdrop {
    background:#07192799
}
.se-dialog-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}
.se-dialog-heading h2 {
    font-size:20px
}
.se-close {
    border:0;
    border-radius:50%;
    height:44px;
    width:44px;
    background:var(--se-alt);
    color:var(--se-text);
    cursor:pointer
}
.se-more-dialog nav {
    display:grid;
    gap:2px
}
.se-more-dialog nav a {
    padding:12px;
    border-radius:6px;
    font-size:15px;
    color:var(--se-link)
}
.se-more-dialog nav a:hover {
    background:var(--se-alt)
}

.se-theme-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:12px
}
.se-theme-choice {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    padding:16px;
    border:2px solid var(--se-border);
    border-radius:10px;
    cursor:pointer;
    background:var(--se-surface);
    font-size:14px
}
.se-theme-choice:has(input:checked) {
    border-color:var(--se-link);
    box-shadow:0 0 0 1px var(--se-link)
}
.se-theme-swatch {
    display:grid;
    place-items:center;
    border-top:12px solid;
    width:64px;
    height:40px;
    border-radius:6px;
    font-size:20px
}

@media(min-width:901px) {
    .main-menu>li>a .menu-label {
        display:inline
    }
}
@media(min-width:701px) and (max-width:900px) {
    .main-menu>li>a {
        padding:12px
    }
    .main-menu>li>a .menu-label {
        display:none
    }
}

@media(max-width:700px) {
    
body {
        padding:0 0 calc(80px + env(safe-area-inset-bottom));
        font-size:12px
    }
    .se-season-desktop {
        display:none
    }
    .wrap {
        margin:0;
        border:0;
        border-radius:0;
        padding:12px 10px;
        box-shadow:none;
        width:auto;
        min-width:0
    }
    .headerbar {
        min-height:65px;
        border-radius:9px;
        padding:12px 16px
    }
    .site-description {
        margin:0
    }
    .site-description .logo {
        display:block!important
    }
    .site_logo {
        width:265px;
        height:65px;
        max-width:100%
    }
    #phpbb-main-menu {
        display:none
    }
    .navbar {
        margin-top:10px;
        padding:7px 10px
    }
    .navbar .linklist {
        margin:0
    }
    .nav-breadcrumbs {
        margin-top:5px!important
    }
    .headerbar .search-header {
        display:none
    }
    
.forabg,.forumbg {
        margin-bottom:14px;
        border-radius:9px
    }
    .forabg .header,.forumbg .header {
        padding:10px 12px
    }
    li.row {
        padding:10px 9px
    }
    dl.row-item dt .list-inner {
        padding-right:0
    }
    .forums dl.row-item dt .list-inner {
        padding-left:44px
    }
    .forumtitle,.topictitle {
        font-size:15px!important
    }
    ul.topiclist dt {
        width:100%
    }
    .forumbg li.row .row-item {
        display:block
    }
    .forumbg li.row .lastpost {
        display:none
    }
    .forums .lastpost {
        display:none
    }
    li.row dt {
        min-height:44px
    }
    h2 {
        font-size:21px
    }
    .panel,.post {
        padding:12px
    }
    .postprofile {
        width:100%;
        float:none;
        border-left:0;
        border-bottom:1px solid var(--se-border);
        padding-bottom:10px;
        margin-bottom:12px;
        min-height:0
    }
    .postbody,.search .postbody {
        width:100%;
        float:none;
        margin:0
    }
    .has-profile .postbody h3 {
        margin-left:0!important;
        margin-right:0!important
    }
    .postbody .content {
        font-size:15px;
        overflow-wrap:anywhere
    }
    .postbody img,.content img {
        max-width:100%;
        height:auto
    }
    .content iframe,.content video {
        max-width:100%
    }
    .codebox code {
        max-height:300px;
        overflow:auto
    }
    fieldset.fields1 dt,fieldset.fields2 dt {
        width:auto;
        float:none
    }
    fieldset.fields1 dd,fieldset.fields2 dd {
        margin-left:0
    }
    .inputbox,select,input[type=password],input[type=email],input[type=text],textarea {
        font-size:16px!important;
        max-width:100%
    }
    .submit-buttons input {
        min-height:44px
    }
    .pagination li a,.pagination li span {
        padding:7px 10px
    }
    .action-bar .button {
        margin-bottom:5px
    }
    .copyright {
        padding:8px 0 18px
    }
    .copyright>div {
        font-size:12px!important
    }
    .se-mobile-nav {
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        display:flex;
        align-items:stretch;
        z-index:1000;
        background:var(--se-surface);
        border-top:1px solid var(--se-border);
        box-shadow:0 -4px 20px #10233212;
        padding:5px max(5px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left))
    }
    .se-mobile-nav>a,.se-mobile-nav>button {
        position:relative;
        flex:1;
        min-width:0;
        display:flex;
        align-items:center;
        justify-content:center;
        flex-direction:column;
        gap:4px;
        border:0;
        border-radius:9px;
        background:transparent;
        color:var(--se-muted);
        font:600 11px/1.2 system-ui;
        min-height:54px;
        text-decoration:none;
        cursor:pointer
    }
    .se-mobile-nav .icon {
        font-size:21px;
        width:auto;
        height:auto;
        line-height:1.2;
        margin:0
    }
    .se-mobile-nav [aria-current=page] {
        color:var(--se-link);
        background:var(--se-alt)
    }
    .se-badge {
        position:absolute;
        top:0;
        right:20%;
        border-radius:12px;
        padding:2px 5px;
        background:var(--se-primary);
        color:#fff;
        font-size:10px
    }
    .cc-window.cc-banner {
        bottom:calc(70px + env(safe-area-inset-bottom))!important
    }
    .se-more-dialog {
        margin:auto auto calc(85px + env(safe-area-inset-bottom));
        max-height:70dvh
    }
    
#portal-body,#portal-body tbody,#portal-body tr,#portal-body td,#portal-center,#portal-left,#portal-right,.portal-center,.portal-left,.portal-right {
        display:block!important;
        width:auto!important;
        max-width:100%;
        box-sizing:border-box
    }
    #portal-body img {
        max-width:100%;
        height:auto
    }
    table {
        max-width:100%
    }
    .ucp-main,.cp-main {
        min-width:0
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        scroll-behavior:auto!important;
        transition:none!important;
        animation:none!important
    }
}

@media print {
    .se-mobile-nav,.se-season,.se-more-dialog {
        display:none!important
    }
    body {
        padding:0;
        background:white
    }
    .wrap {
        box-shadow:none;
        border:0
    }
}


/* Explicit colors override inherited prosilver text in lists and control panels. */
ul.topiclist dt,ul.topiclist dd,ul.topiclist dt .list-inner,.forum-description,.list-inner .responsive-show,.list-inner .responsive-show strong {
    color:var(--se-text)
}

[data-se-theme="dark"] {
    color-scheme:dark
}

[data-se-theme="dark"] a.username-coloured {
    filter:brightness(1.9) saturate(.8)
}

[data-se-theme="dark"] .copyright>a {
    display:inline-block;
    background:#fff;
    border-radius:8px;
    padding:6px 12px
}

fieldset {
    min-width:0
}

@media(max-width:700px) {
    
    #postform,#postform fieldset,#postform .panel,#message-box,#smiley-box {
        min-width:0;
        max-width:100%;
        box-sizing:border-box
    }
    
    #postform #subject,#message-box textarea {
        width:100%
    }
    
    #postform dl dd {
        white-space:normal
    }
    
    #format-buttons {
        display:flex;
        flex-wrap:wrap;
        gap:4px
    }
    
    #format-buttons .button {
        margin:0
    }
    
    #smiley-box {
        float:none;
        width:auto
    }
}
ul.topiclist li.header dt,
ul.topiclist li.header dd,
ul.topiclist li.header a {
    color: #FFFFFF;
}

/* Depth and motion: keep the familiar phpBB Sverige blue, with a separate slate menu. */
.headerbar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 100px;
    min-height: 0;
    padding: 14px 20px;
    box-sizing: border-box;
    background: linear-gradient(180deg, color-mix(in srgb, var(--se-primary), #0065a8 25%) 0%, #06273f 62%, #020e19 100%);
    box-shadow: inset 0 1px 0 #b7e8ff99;
}
.headerbar .inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
}
.headerbar .site-description { margin: 0; }
.headerbar .logo { display: flex; align-items: center; }
.headerbar .site_logo { height: 72px; width: 272px; }
.se-header-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#phpbb-main-menu {
    position: relative;
    background: linear-gradient(180deg, color-mix(in srgb, var(--se-primary), #637887 80%), color-mix(in srgb, var(--se-primary), #283b49 85%));
    border-top: 1px solid #b3d2e24d;
    box-shadow: inset 0 1px 0 #ffffff14, 0 3px 7px #10253520;
}
.main-menu > li > a { transition: background-color .2s ease, color .2s ease; }
.main-menu > li:hover > a, .main-menu > li:focus-within > a { background: #061a2d44; }
.forabg, .forumbg {
    position: relative;
    background: linear-gradient(180deg, color-mix(in srgb, var(--se-primary), #269add 24%), var(--se-primary) 42px, color-mix(in srgb, var(--se-primary), #031c31 45%));
    box-shadow: 0 3px 10px #16394c12, inset 0 1px 0 #ffffff70;
    transition: box-shadow .3s ease;
}
ul.topiclist li.header dt, ul.topiclist li.header dd,
ul.topiclist li.header dt .list-inner, ul.topiclist li.header a { color: #fff; }
li.row {
    position: relative;
    background: linear-gradient(180deg, color-mix(in srgb, var(--se-alt), var(--se-primary) 5%), var(--se-alt));
    border-top-color: color-mix(in srgb, var(--se-surface), transparent 30%);
    border-bottom-color: var(--se-border);
    transition: none;
}
li.row:nth-child(even) { background: linear-gradient(180deg, var(--se-alt), color-mix(in srgb, var(--se-alt), var(--se-primary) 8%)); }
li.row:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--se-alt), var(--se-primary) 5%), var(--se-alt)); }
li.row:nth-child(even):hover { background: linear-gradient(180deg, var(--se-alt), color-mix(in srgb, var(--se-alt), var(--se-primary) 8%)); }
/* All topic and forum rows reserve the same space for their status icon. */
li.row dl.row-item dt .list-inner { padding-left: 52px; }
li.header dl.row-item dt .list-inner { padding-left: 0; }
.action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.action-bar::after { display: none; }
.action-bar > .button, .action-bar .dropdown-container > .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
}
.action-bar > .button {
    color: #fff;
    background: linear-gradient(180deg, var(--se-primary), color-mix(in srgb, var(--se-primary), #061b30 24%));
    border-color: var(--se-primary);
    box-shadow: inset 0 1px 0 #ffffff28;
}
.action-bar .search-box { float: none; margin: 0; max-width: 330px; flex: 1 1 210px; }
.action-bar .search-box form, .action-bar .search-box fieldset { width: 100%; }
.action-bar .search-box fieldset { display: flex; align-items: stretch; }
.action-bar .search-box input.inputbox {
    float: none;
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    height: 40px;
    margin: 0;
    border-radius: 7px 0 0 7px;
}
.action-bar .search-box .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    flex: 0 0 40px;
    height: 40px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border-left: 0;
}
.action-bar .search-box .button-search-end { border-radius: 0 7px 7px 0; }
.action-bar .pagination { float: none; margin: 0 0 0 auto; line-height: 1.5; }
.button { transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    .section-index .forabg::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 2px;
        background: linear-gradient(110deg, transparent 34%, #69b8e4 45%, #ffffff 50%, #d6b575 55%, transparent 66%);
        background-size: 300% 100%;
        background-position: 100% 0;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        z-index: 2;
        opacity: 0;
    }
    .section-index .forabg:hover::after { animation: se-border-sweep 1.3s ease-out both; }
    .main-menu > li > a .icon { transition: transform .22s ease; }
    .main-menu > li > a:hover .icon { transform: translateY(-2px); }
}
@keyframes se-border-sweep {
    0% { background-position: 100% 0; opacity: 0; }
    20% { opacity: .85; }
    80% { opacity: .85; }
    100% { background-position: 0 0; opacity: 0; }
}
@media (max-width:700px) {
    .headerbar { height: 86px; padding: 11px 16px; }
    .headerbar .site_logo { height: 64px; width: 265px; }
    li.row dl.row-item dt .list-inner { padding-left: 44px; }
    .action-bar .search-box { max-width: none; flex: 1 1 170px; }
    .action-bar .pagination { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion:reduce) {
    .se-header-particles { display: none; }
}
.action-bar > .rightside { margin-left: auto; }

/* Override prosilver's hover text-shadow and independent icon color. */
.button:hover, .button:focus {
    text-shadow: none;
}
.button:hover .icon, .button:focus .icon {
    color: inherit;
}
/* Primary actions use the same light hover palette as the other buttons. */
 .action-bar > a.button:hover,
.action-bar > a.button:focus-visible {
    color: var(--se-link);
    background: linear-gradient(180deg, var(--se-surface), var(--se-alt));
    border-color: var(--se-link);
    box-shadow: inset 0 1px 0 #ffffff28;
    text-shadow: none;
}

/* Shared navigation accent and outlined status icons. */
:root { --se-gold: #d3ad62; }
.main-menu > li > a { position: relative; }
.main-menu > li > a[aria-current="page"] {
    background: #071b2c36;
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--se-gold);
}
.main-menu > li > a[aria-current="page"] .icon { color: #f1d394; }
.se-mobile-nav [aria-current="page"] { box-shadow: inset 0 2px 0 var(--se-gold); }
li.row.se-unread { box-shadow: inset 3px 0 0 var(--se-primary); }
.se-unread-label {
    display: inline-block;
    vertical-align: middle;
    padding: 2px 7px;
    margin: 0 0 2px 8px;
    border-radius: 20px;
    border: 1px solid var(--se-border);
    background: var(--se-surface);
    color: var(--se-link);
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
    white-space: nowrap;
}
.se-unread-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--se-link); vertical-align:middle; }
li.row dl.row-item { background-image: none; }
li.row dl.row-item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--se-border);
    background: var(--se-surface);
    pointer-events: none;
}
li.row dl.row-item::after {
    content: "";
    position: absolute;
    clear: none;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--se-muted);
    mask: url("images/status-chat.svg") center / contain no-repeat;
    pointer-events: none;
}
li.row.se-unread dl.row-item::before { background:var(--se-primary); border-color:var(--se-primary); }
li.row.se-unread dl.row-item::after { background:#fff; }
li.row dl.row-item[class*="_mine"]::before { box-shadow: 2px 2px 0 var(--se-gold); }
li.row dl.row-item[class*="sticky_"]::after { mask-image:url("images/status-pin.svg"); }
li.row dl.row-item[class*="announce_"]::after, li.row dl.row-item[class*="global_"]::after { mask-image:url("images/status-announce.svg"); }
li.row dl.row-item[class*="_hot"]::after { mask-image:url("images/status-hot.svg"); }
li.row dl.row-item[class*="_locked"]::after { mask-image:url("images/status-lock.svg"); }
li.row dl.row-item.forum_link::after { mask-image:url("images/status-link.svg"); }
li.row dl.row-item.topic_moved::after { mask-image:url("images/status-moved.svg"); }
li.row .row-item-link { z-index:2; }

/* Author cards retain phpBB's profile fields and contact controls. */
.post .se-profile-card {
    box-sizing:border-box;
    padding:16px;
    border:1px solid var(--se-border);
    border-top:3px solid var(--se-primary);
    border-radius:12px;
    background:linear-gradient(180deg,var(--se-surface),var(--se-alt));
    margin:0 0 12px;
    width:200px;
    color:var(--se-muted);
}
.se-profile-card dt, .se-profile-card dd { margin-left:0; line-height:1.55; }
.se-profile-card dt { font-size:15px; font-weight:650; }
.se-profile-card .avatar-container { margin-bottom:12px!important; overflow:visible!important; }
.se-profile-card .avatar { float:none; display:inline-block; margin:0; }
.se-profile-card .avatar img { border-radius:12px; max-width:100%; max-height:140px; object-fit:contain; }
.se-avatar-fallback {
    display:grid;
    place-items:center;
    width:66px;
    height:66px;
    border-radius:16px;
    border:1px solid var(--se-border);
    background:var(--se-alt);
    color:var(--se-link)!important;
    font-size:28px;
    font-weight:600;
    text-decoration:none!important;
}
.se-profile-card .profile-rank { display:inline-block; padding:3px 8px; margin:5px 0 12px; border:1px solid var(--se-border); border-radius:6px; font-size:11px; background:var(--se-surface); color:var(--se-muted); }
.se-profile-card .profile-posts, .se-profile-card .profile-joined { margin-bottom:7px; font-size:11px; white-space:normal; overflow-wrap:anywhere; }
.se-profile-card .profile-posts strong, .se-profile-card .profile-joined strong { display:block; font-size:10px; letter-spacing:.035em; text-transform:uppercase; }
.se-profile-card .profile-posts a { font-size:15px; font-weight:650; }
.se-profile-card .profile-contact { border-top:1px solid var(--se-border); padding-top:10px; margin-top:12px; }
.se-profile-online { display:flex; align-items:center; gap:6px; color:var(--se-link); font-size:11px; margin:7px 0; }
.se-profile-online > span { width:6px; height:6px; border-radius:50%; background:var(--se-link); }
.post.online { background-image:none; }
.post.unreadpost { border-left:3px solid var(--se-primary); }
@media(max-width:700px) {
    .post .se-profile-card {
        width:100%;
        padding:10px 12px;
        min-height:0;
        overflow:visible;
        margin:0 0 14px;
        border-top-width:1px;
        border-left:3px solid var(--se-primary);
        border-bottom-width:1px;
        display:flow-root;
    }
    .se-profile-card .avatar-container { float:left; margin:0 12px 0 0!important; }
    .se-profile-card .avatar img { width:auto!important; max-width:48px; max-height:48px; border-radius:10px; }
    .se-profile-card .se-avatar-fallback { width:46px; height:46px; border-radius:10px; font-size:23px; }
    .se-profile-card dt { min-height:23px; font-size:14px; }
    .se-profile-card dd.profile-rank { display:inline-block; font-size:10px; padding:1px 5px; margin:4px 6px 0 0; }
    .se-profile-card dd.se-profile-online { display:inline-flex; font-size:10px; margin:4px 0 0; }
    .se-profile-card .profile-contact, .se-profile-card .profile-joined, .se-profile-card .profile-posts { display:none; }
    .se-unread-label { margin-left:5px; font-size:9px; }
}

.se-topic-icon { vertical-align:middle; max-width:20px; max-height:20px; margin-right:5px; object-fit:contain; }

/* Compact section bars, consistent table headings and two tinted post surfaces. */
.forabg .header, .forumbg .header { padding:5px 12px; }
li.header dt, li.header dd { padding-top:0; padding-bottom:0; margin-top:1px; margin-bottom:1px; line-height:1.5; }
li.header dl.row-item dt, li.header dl.row-item dd { min-height:0; }
.main-menu > li:first-child > a { border-bottom-left-radius:10px; }
.forumbg-table { padding:0; }
.forumbg table.table1 { margin:0; border-collapse:separate; border-spacing:0; }
.forumbg table.table1 thead th {
    color:#fff;
    font-size:11px;
    line-height:1.5;
    padding:8px 10px;
    background:transparent;
    vertical-align:middle;
}
.forumbg table.table1 thead th a, .forumbg table.table1 thead th a:visited { color:#fff; }
.forumbg table.table1 tbody td, .forumbg table.table1 tbody th { color:var(--se-text); padding:10px; border-color:var(--se-border); }
.forumbg table.table1 tbody tr.bg1 { background:var(--se-alt); }
.forumbg table.table1 tbody tr.bg2 { background:color-mix(in srgb,var(--se-alt),var(--se-primary) 6%); }
.forumbg table.table1 tbody tr:hover { background:color-mix(in srgb,var(--se-alt),var(--se-primary) 9%); }
.post.bg1 { background:var(--se-alt); }
.post.bg2 { background:color-mix(in srgb,var(--se-alt),var(--se-primary) 7%); }
.post-buttons .button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:27px;
    height:27px;
    padding:3px 5px;
    line-height:1;
    box-sizing:border-box;
}
.post-buttons .button .icon { font-size:13px; line-height:1; }
/* Keep the compact phpBB document silhouettes, with the framed treatment. */
li.row dl.row-item::after { mask-image:url("images/status-document.svg"); }
li.row dl.row-item[class*="sticky_"]::after { mask-image:url("images/status-pin.svg"); }
li.row dl.row-item[class*="announce_"]::after, li.row dl.row-item[class*="global_"]::after { mask-image:url("images/status-announce.svg"); }
li.row dl.row-item[class*="_hot"]::after { mask-image:url("images/status-hot.svg"); }
li.row dl.row-item[class*="_locked"]::after { mask-image:url("images/status-lock.svg"); }
li.row dl.row-item.forum_link::after { mask-image:url("images/status-link.svg"); }
li.row dl.row-item.topic_moved::after { mask-image:url("images/status-moved.svg"); }
.post .se-profile-card {
    position:relative;
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    gap:4px 8px;
    padding:20px 10px 10px;
    border-top-width:2px;
}
.se-profile-card dt { display:contents; }
.se-profile-card .avatar-container { grid-column:1; grid-row:1 / span 2; margin:0!important; float:none; }
.se-profile-card .avatar-container:after { display:none; }
.se-profile-card .avatar img { max-width:44px; max-height:48px; border-radius:9px; }
.se-profile-card .se-avatar-fallback { width:42px; height:42px; font-size:22px; border-radius:10px; }
.se-profile-card .se-profile-name { grid-column:2; grid-row:1; align-self:end; font-size:13px; overflow-wrap:anywhere; line-height:1.3; }
.se-profile-card dd { grid-column:1 / -1; margin:0; }
.se-profile-card dd.profile-rank { grid-column:2; grid-row:2; justify-self:start; align-self:start; font-size:10px; padding:1px 5px; margin:0 0 4px; }
.se-profile-card .profile-posts, .se-profile-card .profile-joined { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px; margin:0; font-size:11px; }
.se-profile-card .profile-posts strong, .se-profile-card .profile-joined strong { display:inline; text-transform:none; letter-spacing:normal; font-size:11px; }
.se-profile-card .profile-posts a { font-size:12px; }
.se-profile-card .profile-contact { display:flex; align-items:center; gap:5px; padding-top:6px; margin-top:3px; font-size:11px; }
.se-profile-card dd.se-online-tab {
    position:absolute;
    top:0;
    right:0;
    border-radius:0 9px 0 7px;
    padding:1px 8px;
    margin:0;
    background:var(--se-primary);
    color:#fff;
    font-size:9px;
    line-height:1.6;
    font-weight:600;
    letter-spacing:.02em;
}
@media(max-width:700px) {
    .post .se-profile-card { padding:18px 10px 8px; grid-template-columns:40px minmax(0,1fr); gap:2px 8px; }
    .se-profile-card .se-avatar-fallback { width:38px; height:38px; font-size:20px; }
    .se-profile-card .avatar img { max-width:38px; max-height:40px; }
    .se-profile-card .profile-posts, .se-profile-card .profile-joined, .se-profile-card .profile-contact { display:none; }
    .post-buttons .button { height:32px; min-width:32px; }
    .post-buttons > li { margin-right:4px; }
    .forumbg table.table1 thead th { padding:7px 5px; font-size:10px; }
    .forumbg table.table1 tbody td, .forumbg table.table1 tbody th { padding:8px 5px; }
}
.se-profile-card dd.se-online-tab { display:block; }

/* Denser forum lists: remove stacked row padding rather than shrinking the text. */
ul.topiclist li.row { padding:4px 10px; }
ul.topiclist li.row dl { padding:0; margin:0; }
ul.topiclist li.row dt { min-height:40px; }
ul.topiclist li.row dt .list-inner { padding-top:2px; padding-bottom:2px; }
ul.topiclist li.row dd { padding:2px 0; margin-bottom:0; min-height:0; }
ul.topiclist li.row dd.lastpost { line-height:1.4; }
.forums .lastpost span, .topics .lastpost span { line-height:1.4; }
.forabg .header, .forumbg .header, .forumbg-table table.table1 thead tr {
    background:linear-gradient(180deg,var(--se-primary),#061e32);
}
.forabg, .forumbg { background:#061e32; }
.action-bar > a.button { padding-left:10px; padding-right:10px; font-size:13px; }
.action-bar .search-box input.inputbox { font-family:inherit; font-size:13px; }

/* A full-size desktop avatar, with compact metadata below it. */
.post .se-profile-card { grid-template-columns:minmax(0,1fr); padding-top:12px; }
.se-profile-card .avatar-container { grid-column:1; grid-row:1; justify-self:center; }
.se-profile-card .avatar img { width:120px!important; height:120px!important; max-width:120px; max-height:120px; object-fit:contain; border-radius:12px; }
.se-profile-card .se-avatar-fallback { width:120px; height:120px; font-size:48px; border-radius:16px; box-sizing:border-box; }
.se-profile-card .se-profile-name { grid-column:1; grid-row:2; justify-self:center; margin-top:4px; }
.se-profile-card dd.profile-rank { grid-column:1; grid-row:3; justify-self:center; margin:0 0 4px; }
.se-profile-card dd.se-online-tab {
    width:66px;
    height:66px;
    top:-2px;
    right:-1px;
    padding:0;
    border-radius:0 10px 0 0;
    overflow:hidden;
    background:transparent;
    pointer-events:none;
}
.se-online-tab > span {
    display:block;
    position:absolute;
    width:96px;
    top:14px;
    right:-25px;
    transform:rotate(45deg);
    background:var(--se-primary);
    color:#fff;
    text-align:center;
    font-size:9px;
    line-height:18px;
    box-shadow:0 1px 3px #10253530;
}
@media(max-width:700px) {
    ul.topiclist li.row { padding:6px 8px; }
    .action-bar .search-box input.inputbox { font-size:16px!important; }
    .post .se-profile-card { grid-template-columns:64px minmax(0,1fr); padding:12px 14px 12px 10px; }
    .se-profile-card .avatar-container { grid-column:1; grid-row:1 / span 2; }
    .se-profile-card .avatar img { width:64px!important; height:64px!important; max-width:64px; max-height:64px; }
    .se-profile-card .se-avatar-fallback { width:64px; height:64px; font-size:28px; }
    .se-profile-card .se-profile-name { grid-column:2; grid-row:1; justify-self:start; margin-top:0; padding-right:16px; }
    .se-profile-card dd.profile-rank { grid-column:2; grid-row:2; justify-self:start; margin-bottom:0; }
}

/* Align both search inputs and keep forum permissions small and quiet. */
.action-bar .search-box input.inputbox { padding-left:8px; }
.permissions { margin-top:16px; }
.permissions h3 { font-size:10px; margin:0 0 7px; padding-bottom:5px; }
.se-permissions-list { display:flex; flex-wrap:wrap; gap:5px 18px; list-style:none; margin:0; padding:0; }
.se-permissions-list li { display:flex; align-items:center; gap:6px; font-size:11px; line-height:1.6; color:var(--se-muted); }
.se-permissions-list .icon { margin:0; width:12px; font-size:11px; color:var(--se-muted); }
/* Absolute grid children must not be confined to the inset content grid. */
.se-profile-card dd.se-online-tab { grid-column:auto; grid-row:auto; right:-1px; top:-2px; }
.site_logo { background-image:url("images/logotyp-gold.svg"); }
@media(max-width:700px) {
    .se-permissions-list { gap:5px 12px; }
    .se-permissions-list li { flex:0 1 calc(50% - 6px); font-size:10px; }
}

/* Shared row alignment keeps the title, counts and last post on one centre line. */
ul.topiclist li.row:hover,
ul.topiclist li.row:focus-within {
    background:color-mix(in srgb,var(--se-alt),var(--se-primary) 13%);
}
ul.topiclist li.row { transition:background-color .18s ease; }
ul.topiclist li.row dl.row-item::before {
    width:42px;
    height:42px;
    box-sizing:border-box;
    left:3px;
    border-radius:10px;
}
ul.topiclist li.row dl.row-item::after { left:14px; }
@media(min-width:701px) {
    ul.topiclist dl.row-item { display:flex; align-items:center; }
    ul.topiclist dl.row-item dt { float:none; flex:1; width:auto; min-width:0; margin-right:0; }
    ul.topiclist dl.row-item dt .list-inner { margin-right:0; }
    ul.topiclist li.row dl.row-item dt { display:flex; align-items:center; }
    ul.topiclist li.row dl.row-item dt .list-inner { width:100%; box-sizing:border-box; }
    ul.topiclist dl.row-item dd { float:none; flex-shrink:0; }
    ul.topiclist li.row dl.row-item dd {
        display:flex;
        flex-direction:column;
        align-self:stretch;
        justify-content:center;
    }
    ul.topiclist li.row dl.row-item dd.posts,
    ul.topiclist li.row dl.row-item dd.topics,
    ul.topiclist li.row dl.row-item dd.views { align-items:center; }
}

/* The community introduction occupies the same width as the forum blocks. */
.copyright .se-about {
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);
    gap:18px 24px;
    padding:18px 20px;
    margin:18px 0;
    border:1px solid var(--se-border);
    border-top:2px solid var(--se-gold);
    border-radius:10px;
    background:linear-gradient(135deg,var(--se-alt),var(--se-surface));
    text-align:left;
    color:var(--se-muted);
    font-size:12px;
    line-height:1.6;
}
.se-about h2 { font-size:15px; margin:0 0 7px; color:var(--se-text); }
.se-about h2 .icon { color:var(--se-link); margin-right:5px; }
.copyright .se-about p { font-size:inherit; line-height:inherit; margin:0; }
.se-about-mission { border-left:1px solid var(--se-border); padding-left:24px; }
.se-about-sponsor { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin-top:10px; color:var(--se-muted); }
.se-about-sponsor span { font-size:10px; }
.se-about-sponsor img { width:130px; height:auto; max-width:100%; }
@media(max-width:700px) {
    .copyright .se-about { grid-template-columns:minmax(0,1fr); padding:14px; gap:12px; font-size:11px!important; }
    .se-about-mission { border-left:0; border-top:1px solid var(--se-border); padding:12px 0 0; }
}
@media(max-width:700px) {
    ul.topiclist li.row dl.row-item dt .list-inner { padding-left:52px; }
}

/* Keep an opaque base throughout hover; gradients otherwise expose the dark container while the background colour transitions. */
ul.topiclist li.row { background:var(--se-alt); }
ul.topiclist li.row:nth-child(even) { background:color-mix(in srgb,var(--se-alt),var(--se-primary) 5%); }
ul.topiclist li.row:hover, ul.topiclist li.row:nth-child(even):hover,
ul.topiclist li.row:focus-within { background:color-mix(in srgb,var(--se-alt),var(--se-primary) 13%); }
.se-more-dialog .se-mobile-submenu { padding-left:36px; font-size:12px; }
/* The reference themes carry their own tones through the header and navigation. */
body[data-se-theme="forest"] .headerbar { background:linear-gradient(180deg,#235347,#0B2B26 65%,#051F20); }
body[data-se-theme="wine"] .headerbar { background:linear-gradient(180deg,#9E8189,#6B5560 65%,#3E3239); }
body[data-se-theme="sverige"] .headerbar { background:linear-gradient(180deg,#253745,#11212D 65%,#06141B); }
body[data-se-theme="forest"] #phpbb-main-menu { background:linear-gradient(180deg,#235347,#163832); }
body[data-se-theme="wine"] #phpbb-main-menu { background:linear-gradient(180deg,#6B5560,#3E3239); }
body[data-se-theme="sverige"] #phpbb-main-menu { background:linear-gradient(180deg,#4A5C6A,#253745); }
body:is([data-se-theme="forest"],[data-se-theme="wine"],[data-se-theme="sverige"]) :is(.forabg,.forumbg) { background:var(--se-primary); }
body:is([data-se-theme="forest"],[data-se-theme="wine"],[data-se-theme="sverige"]) :is(.forabg,.forumbg) .header { background:linear-gradient(180deg,var(--se-primary),color-mix(in srgb,var(--se-primary),#000 28%)); }
body:is([data-se-theme="forest"],[data-se-theme="wine"],[data-se-theme="sverige"]) .se-profile-card { background:linear-gradient(180deg,var(--se-surface),var(--se-alt)); }
/* Keep secondary text readable on the hover surfaces of the lighter themes. */
body[data-se-theme="blue"] ul.topiclist li.row:is(:hover,:focus-within) { background:color-mix(in srgb,var(--se-alt),var(--se-primary) 10%); }
body[data-se-theme="wine"] ul.topiclist li.row:is(:hover,:focus-within) { background:color-mix(in srgb,var(--se-surface),var(--se-primary) 8%); }

/* Full-post decoration stays behind content and never receives pointer input. */
.post.se-effect-post { isolation:isolate; }
.se-post-particles { position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; z-index:0; pointer-events:none; }
.post.se-effect-post > .inner { position:relative; z-index:1; }
@media(prefers-reduced-motion:reduce) { .se-post-particles { display:none!important; } }
@media print { .se-post-particles { display:none!important; } }

/* Rank artwork stands on its own; the badge treatment is only for text ranks. */
.se-profile-card dd.profile-rank.profile-rank-image {
    padding:0;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    line-height:1;
}
.se-profile-card dd.profile-rank-image img {
    display:block;
    max-width:100%;
    height:auto;
    border:0;
    border-radius:0;
    background:none;
    box-shadow:none;
}

/* Post-count ranks need their text as well as the level artwork. */
.se-profile-card .profile-rank-label { display:block; line-height:1.5; }
.se-profile-card dd.profile-rank-image img { margin-inline:auto; }
