/*
 *  [ HTML & BODY ]
 */

html,
body {
    background: #f3f6fa;
}

body.pushable>.pusher {
    background: #f3f6fa;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#wrapper {
    margin-bottom: 1rem;
}

/*
   *  [ NAVIGATION BAR ]
   */

.ui.secondary.menu {
    background: #fff;
    padding: 10px;
    margin: 0;
}

.ui.secondary.menu .toc.item {
    display: none;
}

.ui.secondary.menu .toc.item i {
    margin: 0;
}

#navbar .item i {
    margin-right: 5px;
}

.ui.secondary.menu .ui.medium.label {
    padding: .68em 1em .5em .5em;
}

.ui.secondary.menu .ui.medium.label img {
    font-size: 1.09rem;
    margin: -.6em .5em -.6em -.5em;
}

.ui.secondary.inverted.menu .popup .list a.item {
    color: rgba(0, 0, 0, .87) !important;
}

@media only screen and (max-width: 768px) {

    .ui.secondary.menu .menu,
    .ui.secondary.menu .item {
        display: none;
    }

    .ui.secondary.menu .toc.item {
        display: block;
    }
}

.ui.secondary.menu .ui.popup {
    min-width: 200px;
}

.ui.secondary.menu .ui.popup a:not([href]) {
    cursor: default !important;
}

.ui.vertical.inverted.sidebar.menu.left .item .header span.icon {
    float: right;
}

/*
   *  [ HEADER ]
   */

.ui.masthead {
    background: linear-gradient(90deg, rgb(41, 117, 286) 0%, rgb(2, 117, 216) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px;
    padding: 4rem 0;
    border-radius: 0;
    color: #fff;
}

.ui.masthead .connect-server {
    background: rgba(255, 255, 255, .2);
    width: fit-content;
    padding: 1rem 1.5rem;
    margin-left: auto;
    border-radius: .4rem;
    text-align: center;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .1);
}

@media (max-width: 768px) {
    .ui.masthead .ui.grid .ui.row .column>* {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

.ui.masthead .connect-server .ui.header {
    margin: 0;
    color: #fff;
}

/*
   *  -[ SEGMENT ]-
   */

.ui.segment {
    background: #fff;
    border-radius: .28571429rem;
    border: none;
    -webkit-box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
    box-shadow: 0 1px 3px 0 #d4d4d5, 0 0 0 1px #d4d4d5;
}

.ui.segment .ui.list .list>.item .header,
.ui.segment .ui.list>.item .header {
    display: inline-block;
}

.ui.secondary.segment.segment.segment.segment.segment:not(.inverted) {
    border-top: none;
}

/*
   *  [ NEWS POST ]
   */

#news-post .badge,
#news-post .ui.label {
    position: absolute;
    margin: 0;
    padding: .75em 1em;
    width: auto;
    top: 0;
    right: 0;
    text-transform: uppercase;
    border-radius: 0 .21428571rem 0 .28571429rem;
}

/*
   *  [ FORUM NODE ]
   */

#forum-node #last-post {
    width: 250px;
}

#forum-node #last-post .avatar {
    margin: 2px 10px 0 0;
}

/*
   *  [ FORUM PAGE ]
   */

#sticky-threads tbody tr td:last-child:not(:first-child),
#normal-threads tbody tr td:last-child:not(:first-child) {
    text-align: right;
}

#sticky-threads tbody tr td:last-child .ui.image.header .image,
#normal-threads tbody tr td:last-child .ui.image.header .image {
    float: right;
    margin-left: 1rem;
    margin-top: .24rem;
}

#sticky-threads .badge,
#sticky-threads .ui.label,
#normal-threads .badge,
#normal-threads .ui.label {
    position: relative;
    top: -1.2px;
    padding: .3rem .5rem;
    font-size: .7rem;
    margin: 0;
    margin-bottom: .1rem;
    margin-right: .2rem;
}

/*
   *  [ TOPIC PAGE ]
   */

#topic-post #post-sidebar .ui.small.image,
#topic-reply #reply-sidebar .ui.small.image {
    width: 120px;
}

#topic-post #post-sidebar h3,
#topic-reply #reply-sidebar h3 {
    margin: 1rem 0;
}

@media (max-width: 768px) {

    #topic-post #post-sidebar .ui.list,
    #topic-reply #reply-sidebar .ui.list {
        display: none;
    }
}

#topic-post #post-meta [class*="res right floated"] {
    margin-top: -5px;
}

@media (max-width: 576px) {
    #topic-post #post-meta {
        text-align: center;
    }

    #topic-post #post-meta [class*="res right floated"] {
        margin-top: 0;
    }
}

@media only screen and (min-width: 768px) {

    #topic-post #post-sidebar,
    #topic-reply #reply-sidebar {
        border-right: solid 1px rgba(0, 0, 0, .1);
        margin-top: -1.5rem;
        margin-bottom: -1.5rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #topic-post #post-sidebar:before,
    #topic-reply #reply-sidebar:before {
        content: "";
        height: 0;
        border: 8px solid transparent;
        border-right: 8px solid rgba(0, 0, 0, .2);
        position: absolute;
        top: 75px;
        right: 0;
    }

    #topic-post #post-sidebar:after,
    #topic-reply #reply-sidebar:after {
        content: "";
        height: 0;
        border: 8px solid transparent;
        border-right: 8px solid #fff;
        position: absolute;
        top: 75px;
        right: -1px;
    }
}

@media only screen and (max-width: 768px) {

    #topic-post #post-sidebar,
    #topic-reply #reply-sidebar {
        border-bottom: solid 1px rgba(0, 0, 0, .1);
    }
}

.ui.comments {
    max-width: none;
}

.ui.grid.segment.leaderboard_table {
    margin-top: 0;
}

.leaderboard_table .ui.list {
    margin-left: -10px;
}

.leaderboard_table .ui.list li a {
    display: block;
    height: 100%;
    width: 100%;
}

.leaderboard_table .middle.aligned.content {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;;
    white-space: nowrap;
}

.leaderboard_table ol li:before {
    display: none;
}

#reactions {
    margin-top: 1rem;
    padding: .7em 1.2em .7em 1.2em;
    min-height: 32.5px;
    font-size: 12px;
}

#topic-post #post-content {
    display: flex;
    flex-direction: column;
}

#topic-post #post-content {
    padding: .7em 1.2em .7em 1.2em;
    min-height: 32.5px;
}

#post-content #reactions {
    margin-top: auto;
}

.reaction-button, .reaction-button-selected {
    margin-left: 5px;
    margin-right: 5px;
}

.reaction-button {
    opacity: 50%;
}

.reaction-button:hover, .reaction-button-selected {
    opacity: 100%;
    cursor: pointer;
}

#modal-reactions .ui.menu {
    overflow-x: auto;
}

/** Reaction modal tab buttons display non-native emojis as 2.5em wide by default */
.ui.menu .item > img:not(.ui) {
    width: 1em;
}

#topic-post #post-meta {
    margin-right: 1.3em;
}

#topic-post #post-sidebar .groups {
    text-align: center;
}

.inline.fields.labels {
    flex-wrap: wrap;
}

.ui.form .inline.fields.labels .field {
    padding-bottom: 1em;
}

.blockquote {
    border-left: 2px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
}

/*
   *  [ ACCOUNT MESSAGES ]
   */

#view-message #message .header {
    font-size: 1.15rem;
    margin-top: 0.01rem;
}

#view-message #message .meta {
    line-height: 0.95rem;
}

@media (max-width: 768px) {
    #messages table thead tr th:first-child {
        width: 100%;
    }

    #messages table thead tr th:not(:first-child),
    #messages table tbody tr td:not(:first-child) {
        display: none;
    }
}

/*
   *  -[ 404 ERROR ]-
   */

#error-403 .ui.container,
#error-404 .ui.container,
#maintenance .ui.container {
    position: relative;
    min-height: 100vh;
}

#error-403 .ui.segment,
#error-404 .ui.segment,
#maintenance .ui.segment {
    position: absolute;
    transform: translate(-50%, -70%);
    top: 50%;
    left: 50%;
    width: 500px;
    text-align: center;
}

/*
   *  [ PROFILE PAGE ]
   */

#profile-header {
    background: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#profile-header .ui.header {
    margin: 8px 0;
}

#profile-header .ui.label {
    margin: 0;
}

#profile-header .actions {
    position: absolute;
    right: 1rem;
}

#profile a.ui.circular.image.avatar img {
    max-height: 35px;
}

/* Fix avatar images in labels being a few px from touching the top */
.ui.image.label img {
    vertical-align: top !important;
}

/*
   *  [ FORUM SEARCH ]
   */

#forum-search-result h3.ui.header {
    margin-top: 0;
    margin-bottom: 1rem;
}

/*
   *  [ SERVER PAGE ]
   */

[id*="server"] #server-players a:not(:last-child) {
    margin-right: .3rem;
}

/*
   *  [ WIDGETS ]
   */

[id*="widget"] .item .content {
    width: calc(100% - 40px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .content * {
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .description {
    width: calc(100% - 120px) !important;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[id*="widget"] .item .description * {
    overflow: hidden;
}

#widget-online-users .content {
    padding-bottom: .5rem;
}

#widget-online-users .ui.image.label {
    margin-bottom: .5rem;
}

#widget-online-staff .ui.list .item {
    display: flex;
    align-items: center;
}

#widget-online-staff .ui.list .item .content {
    display: flex;
    align-items: center;
}

#widget-online-staff .ui.list .item .content .badge {
    margin-left: .35rem;
}

.fb-page {
    padding-bottom: 14px;
}

/*
   *  -[ FOOTER ]-
   */

.ui.footer.segment {
    position: relative;
    margin: auto 0 -.5rem 0;
    padding: 3em 0;
}

@media only screen and (max-width: 768px) {
    .ui.footer.segment {
        text-align: center;
    }
}

.ui.link.list.list .active.item {
    color: rgba(255, 255, 255, .5);
}

.ui.link.list.list .active.item a:not(.ui) {
    color: rgba(0, 0, 0, .87) !important;
}

.ui.link.list.list .active.item a:not(.ui):hover {
    background: rgba(0, 0, 0, .05) !important;
}

/*
   *  [ TABLE ]
   */

@media (max-width: 576px) {
    .ui.table.res thead tr th:first-child {
        width: 100%;
    }

    .ui.table.res thead tr th:not(:first-child),
    .ui.table.res tbody tr td:not(:first-child) {
        display: none;
    }
}

@media (max-width: 992px) {

    .ui.table.res thead tr th:first-child,
    .ui.table.res thead tr th:last-child {
        width: 50%;
    }

    .ui.table.res thead tr th:not(:first-child):not(:last-child),
    .ui.table.res tbody tr td:not(:first-child):not(:last-child) {
        display: none;
    }
}

/*
   *  -[ GRID ]-
   */

.ui.grid+.grid {
    margin-top: 0.3rem;
}

.ui.row+.row {
    padding-top: 0.3rem;
}

.ui.padded.grid:not(.vertically):not(.horizontally) {
    margin: 0 -1rem 0 -1rem !important;
}

@media only screen and (max-width: 768px) {
    .ui.padded.grid:not(.vertically):not(.horizontally) {
        margin: 0 !important;
    }
}

/*
   *  [ LINK LIST ]
   */

.ui.link.list.list .item a:not(.ui):hover,
.ui.link.list.list a.item:hover {
    background: none;
}

.ui.link.list.list .ui.divider {
    margin: 0.5rem 0;
}

/*
   *  [ USES POPUP ]
   */

#user-popup .header {
    text-align: center;
}

#user-popup .header .ui.header {
    padding: .5rem 0;
}

#user-popup .header .ui.image {
    margin: auto;
}

/*
   *  [ COOKIE NOTICE ]
   */

.cc-window.cc-floating {
    padding: 1rem 1.5rem;
    background-color: #fff !important;
    color: rgba(0, 0, 0, .68) !important;
    -webkit-box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
    box-shadow: 0 1px 3px 0 #bababb, 0 0 1px 1px #bababb;
    border: none;
    border-radius: .28571429rem;
    cursor: default;
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 18px;
    opacity: 1;
    transition: .5s all ease;
}

.cc-window.cc-floating .cc-highlight .cc-btn:first-child {
    color: rgba(0, 0, 0, .68);
}

.cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    -webkit-box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
    box-shadow: 0 0 0 0 rgb(34 36 38 / 15%) inset;
    background-color: #2185d0;
    border-color: #fff;
    border-radius: 5px;
    color: #fff;
}

.cc-revoke.cc-bottom.cc-right {
    color: #fff;
}

/*
   *  [ SPOILER ]
   */

#tinymce .spoiler,
.spoiler {
    color: rgba(0, 0, 0, .87);
    border-radius: .28571429rem;
    -webkit-box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
    box-shadow: 0 0 0 1px rgba(34, 36, 38, .22) inset, 0 0 0 0 transparent;
    border: none;
}

#tinymce .spoiler-toggle,
.spoiler-toggle {
    color: rgba(0, 0, 0, .87);
}

#tinymce .spoiler-text,
.spoiler-text {
    color: rgba(0, 0, 0, .87);
}

/*
   *  [ MESSAGE ]
   */

.ui.message>.close.icon {
    right: .8em;
}

/*
   *  [ UPDATE MESSAGE ]
   */

#update-message {
    margin-bottom: 1rem;
}

#update-message>a {
    color: inherit;
    transition: all .2s ease;
}

#update-message>a:hover {
    filter: contrast(2);
}

#update-message>a>.icon {
    margin-right: .5em;
}

#update-message>a>.icon:not(.close) {
    display: block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    line-height: 1;
    font-size: 3em;
    opacity: .8;
}

/*
   *  [ PAGINATION ]
   */

.ui.mini.pagination.menu .item:first-child,
.ui.mini.pagination.menu .item:last-child {
    padding-top: .5rem;
}

/*
   *  -[ ALIGNMENTS ]-
   */

[class*="left aligned"] {
    text-align: left;
}

[class*="center aligned"] {
    text-align: center;
}

[class*="right aligned"] {
    text-align: right;
}

/*
   *  [ FLOATS ]
   */

[class*="left floated"],
[class*="res left floated"] {
    float: left;
}

[class*="right floated"],
[class*="res right floated"] {
    float: right;
}

[class*="right floated"]+.ui.segment,
[class*="res right floated"]+.ui.segment {
    margin-top: 1rem;
}

@media only screen and (max-width: 576px) {

    [class*="res right floated"],
    [class*="res left floated"] {
        margin-top: 1rem;
        float: none;
    }

    [class*="res right floated"] .button:not(.mini),
    [class*="res left floated"] .button:not(.mini) {
        width: 100%;
        text-align: center;
    }

    [class*="res right floated"] .button:not(:first-child),
    [class*="res left floated"] .button:not(:first-child) {
        margin-top: 0.5rem;
    }
}

/*
   *  [ DISPLAY ]
   */

[display="block"] {
    display: block !important;
}

[display="inline"] {
    display: inline !important;
}

[display="inline block"] {
    display: inline-block !important;
}

/*
   *  [ VISIBILITY ]
   */

@media only screen and (max-width: 576px) {

    [class*="mobile hidden"],
    [class*="tablet only"]:not(.mobile),
    [class*="computer only"]:not(.mobile),
    [class*="large screen only"]:not(.mobile),
    [class*="widescreen only"]:not(.mobile),
    [class*="or lower hidden"] {
        display: none !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 768px) {

    [class*="mobile only"]:not(.tablet),
    [class*="tablet hidden"],
    [class*="computer only"]:not(.tablet),
    [class*="large screen only"]:not(.tablet),
    [class*="widescreen only"]:not(.tablet),
    [class*="or lower hidden"]:not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {

    [class*="mobile only"]:not(.computer),
    [class*="tablet only"]:not(.computer),
    [class*="computer hidden"],
    [class*="large screen only"]:not(.computer),
    [class*="widescreen only"]:not(.computer),
    [class*="or lower hidden"]:not(.tablet):not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1280px) {

    [class*="mobile only"]:not([class*="large screen"]),
    [class*="tablet only"]:not([class*="large screen"]),
    [class*="computer only"]:not([class*="large screen"]),
    [class*="large screen hidden"],
    [class*="widescreen only"]:not([class*="large screen"]),
    [class*="or lower hidden"]:not(.computer):not(.tablet):not(.mobile) {
        display: none !important;
    }
}

@media only screen and (min-width: 1280px) {

    [class*="mobile only"]:not([class*="widescreen"]),
    [class*="tablet only"]:not([class*="widescreen"]),
    [class*="computer only"]:not([class*="widescreen"]),
    [class*="large screen only"]:not([class*="widescreen"]),
    [class*="widescreen hidden"],
    [class*="widescreen or lower hidden"] {
        display: none !important;
    }
}

/*
   *  [ USER BADGES ]
   */

.badge {
    display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 .14285714em;
    background-color: #e8e8e8;
    background-image: none;
    padding: 0.3em .3em;
    color: rgba(0, 0, 0, .6);
    text-transform: none;
    font-size: .85714286rem;
    font-weight: 700;
    border: 0 solid transparent;
    border-radius: .28571429rem;
    -webkit-transition: background .1s ease;
    transition: background .1s ease;
}

a.badge:hover,
a.badge:focus {
    text-decoration: none;
}

.badge:empty {
    display: none;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

a.badge-primary:hover,
a.badge-primary:focus {
    color: #fff;
    background-color: #0062cc;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

a.badge-secondary:hover,
a.badge-secondary:focus {
    color: #fff;
    background-color: #545b62;
}

.badge-success {
    color: #fff;
    background-color: #28a745;
}

a.badge-success:hover,
a.badge-success:focus {
    color: #fff;
    background-color: #1e7e34;
}

.badge-info {
    color: #fff;
    background-color: #17a2b8;
}

a.badge-info:hover,
a.badge-info:focus {
    color: #fff;
    background-color: #117a8b;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

a.badge-warning:hover,
a.badge-warning:focus {
    color: #212529;
    background-color: #d39e00;
}

.badge-danger {
    color: #fff;
    background-color: #dc3545;
}

a.badge-danger:hover,
a.badge-danger:focus {
    color: #fff;
    background-color: #bd2130;
}

.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}

a.badge-light:hover,
a.badge-light:focus {
    color: #212529;
    background-color: #dae0e5;
}

.badge-dark {
    color: #fff;
    background-color: #343a40;
}

a.badge-dark:hover,
a.badge-dark:focus {
    color: #fff;
    background-color: #1d2124;
}

/*
   *  [ OTHER ]
   */

select {
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    padding: 10px !important;
}

.ui.popup {
    z-index: 99999;
    text-align: left;
}

.ui.popup .ui.header {
    margin: 0;
}

.ui.message {
    margin: 0.5em 0;
}

.tox-tinymce {
    min-height: 300px;
}

.forum_post {
    word-wrap: break-word;
}

.forum_post img {
    overflow: auto;
    max-width: 100%;
    height: auto;
}

#post-content .forum_post {
    margin-bottom: 1rem;
}

.ui.checkbox .box:before {
    margin-top: 4px;
}

.ui.checkbox input:checked~.box:after {
    margin-top: 4px;
}

.ui.header .topic.title .label,
.ui.header .topic.title .badge {
    margin-top: -4px;
    vertical-align: middle;
}

#ie-message {
    display: none;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    #ie-message {
        display: initial;
    }
}

#darkmode {
    display: inline-block;
}

.darkmode-toggle {
    opacity: 0;
    position: absolute;
}

.darkmode-toggle:checked+.darkmode-toggle-label .darkmode-ball {
    transform: translateX(24px);
}

.darkmode-toggle-label {
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    height: 26px;
    width: 50px;
    cursor: pointer;
}

.darkmode-ball {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 22px;
    width: 22px;
    transition: transform 0.2s linear;
}

.fa-moon {
    color: #f1c400;
}

.fa-sun {
    color: #f39c00;
}

/*
 Member list search images
 */
.ui.search>.results .result .image {
    border-radius: 0;
}

/*
 Make new members grid avatars fit nicer
 */
#new-members-grid {
    padding: 0.5em;
}

#new-members-grid .column {
    padding: 0.5em;
}

/*
 *  [ EMOJI SIZING ]
 */

.joypixels,
.twemoji {
    height: 1em;
    width: 1em;
    vertical-align: middle;
}

/*
   *  [ DARK MODE ]
   */

body.dark,
body.dark>.pusher,
body.dark .ui.pointing.dropdown>.menu:after {
    background: #222;
}

body.dark .ui.secondary.menu:not(.inverted) {
    background: #303030;
    color: #fff;
}

body.dark .ui.secondary.menu .item.active {
    color: #fff;
}

body.dark .ui.top.attached.menu:not(.inverted) {
    background: #282828;
    border: 1px solid #282828;
}

body.dark .ui.top.attached.menu:not(.inverted) .item {
    color: #fff;
}

body.dark .ui.form input:not(.button) {
    background-color: #303030 !important;
}

body.dark .ui.modal {
    background-color: #303030;
    border: none;
}

body.dark .ui.modal>.content {
    background-color: #303030;
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: #fff;
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.dark .ui.modal>.actions,
body.dark .ui.modal>.header {
    color: rgba(255, 255, 255, 0.6);
    background-color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

body.dark .ui.popup,
body.dark .ui.secondary.menu .ui.popup,
body.dark .ui.menu .dropdown.item .menu,
body.dark .ui.dropdown .menu {
    background-color: #222;
    border: 1px solid #444;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.default.button,
body.dark .ui.mini.icon.button,
body.dark .ui.top.right.attached.label {
    background-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.button.red {
    background-color: #db2828;
    color: #fff;
}

body.dark .ui.image.label,
body.dark .ui.selection.dropdown,
body.dark .ui.selection.visible.dropdown>.text:not(.default) {
    background-color: #282828;
    color: #fff;
}

body.dark .ui.selection.dropdown .ui.label {
    background-color: #303030;
    color: #fff;
}

body.dark .ui.form .ui.selection.dropdown input:not(.button) {
    background-color: #282828 !important;
}

body.dark .ui.form .field .ui.selection.active.dropdown .menu {
    border: 1px solid #282828;
}

body.dark .ui.form .field .ui.dropdown .menu .item {
    background-color: #282828;
    border-top: 1px solid #303030;
    color: #fff;
}

body.dark .ui.form .ui.text input:not(.button) {
    background-color: #282828 !important;
}

body.dark .ui.form .field input {
    background-color: #282828 !important;
}

body.dark .ui.card,
body.dark .ui.segment,
body.dark .ui.segment.attached:not(.basic),
body.dark .ui.vertical.menu {
    background-color: #303030;
    border: 1px solid rgba(0, 0, 0, 0.125);
    -webkit-box-shadow: none;
    box-shadow: none;
}

body.dark .ui.vertical.menu .active.item {
    background-color: #464646;
}

body.dark .ui.vertical.pointing.menu .active.item:after {
    background-color: #464646;
    border-top: 1px solid #464646;
    border-right: 1px solid #464646;
}

body.dark .ui.segment#profile-header {
    border: none;
}

body.dark .ui.attached.tabular.menu {
    border-bottom: none;
}

body.dark .ui.attached.tabular.menu .item.active {
    background-color: #303030;
    border-color: transparent;
}

body.dark .ui.card .content.header {
    background-color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

body.dark .ui.card>.content>.description,
body.dark .ui.cards>.card>.content>.description,
body.dark .ui.card>.content>.description .list .right.floated,
body.dark .ui.card>.content>.header a,
body.dark .ui.segment a,
body.dark .ui.checkbox label,
body.dark .ui.checkbox+label,
body.dark .ui.list .list>.item .description,
body.dark .ui.list>.item .description,
body.dark .ui.vertical.menu .item.active,
body.dark .ui.vertical.menu .item:hover,
body.dark #user-popup .description,
body.dark .ui.search.dropdown.active>input.search,
body.dark .ui.search.selection.dropdown>input.search,
body.dark .ui.selection.dropdown .menu>.message,
body.dark .ui.attached.tabular.menu .item.active,
body.dark .ui.threaded.comments .comment .text {
    color: #fff;
}

body.dark .ui.segment .forum_post a,
body.dark .ui.comments .comment .forum_post a {
    color: #62b6f7;
}

body.dark .ui.card .meta,
.ui.cards>.card .meta,
body.dark .ui.header,
body.dark .ui.header .sub.header,
body.dark .ui.card>.content>.header,
body.dark .ui.cards>.card>.content>.header,
body.dark .ui.secondary.menu .item:not(.active),
body.dark .ui.card>.content>.description .list .item .text,
body.dark .ui.card>.extra,
body.dark .ui.cards>.card>.extra,
body.dark .ui.pointing.dropdown>.menu>.header,
body.dark .ui.dropdown .menu>.item,
body.dark .ui.breadcrumb .icon.divider,
body.dark .ui.vertical.menu .item,
body.dark .ui.segment,
body.dark .ui.form .field>label,
body.dark .ui.list .list>.item .header,
body.dark .ui.list>.item .header,
body.dark .ui.attached.tabular.menu .item,
body.dark .ui.comments .comment .metadata,
body.dark .ui.comments .comment .actions a,
body.dark .ui.card>.extra a:not(.ui),
body.dark .ui.cards>.card>.extra a:not(.ui),
body.dark .ui.relaxed.list .item .content,
body.dark .ui.horizontal.divider,
body.dark .ui.dropdown .menu>.header:not(.ui),
body.dark .ui.link.list.list .active.item,
body.dark .ui.link.list.list .active.item a:not(.ui) {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.menu .ui.dropdown .menu>.item:hover {
    background-color: rgba(0, 0, 0, .05) !important;
}

body.dark .ui.secondary.inverted.menu .popup .list a.item,
body.dark .ui.pointing.dropdown>.menu>.item {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.menu .ui.dropdown .menu>.item:hover,
body.dark .ui.dropdown .menu>.item:hover,
body.dark .ui.menu .ui.dropdown .menu>.item.active,
body.dark .ui.list>.item a.header,
body.dark .ui.link.list.list .active.item a:not(.ui):hover {
    color: #fff !important;
}

body.dark .ui.top.left.popup:before {
    background: #222;
    -webkit-box-shadow: 1px 1px 0 0 #444;
    box-shadow: 1px 1px 0 0 #444;
}

body.dark .ui.right.center.popup:before {
    background: #222;
    -webkit-box-shadow: -1px 1px 0 0 #444;
    box-shadow: -1px 1px 0 0 #444;
}

body.dark .ui.left.center.popup:before {
    background: #222;
    -webkit-box-shadow: 1px -1px 0 0 #444;
    box-shadow: 1px -1px 0 0 #444;
}

body.dark .ui.bottom.left.popup:before {
    background: #222;
    -webkit-box-shadow: 1px 1px 0 0 #222;
    box-shadow: 1px 1px 0 0 #222;
}

body.dark .ui.form textarea {
    background-color: #303030;
    border: 2px solid #282828;
    color: #fff;
}

body.dark .ui.form input:not([type]),
body.dark .ui.form input[type=date],
body.dark .ui.form input[type=datetime-local],
body.dark .ui.form input[type=email],
body.dark .ui.form input[type=file],
body.dark .ui.form input[type=number],
body.dark .ui.form input[type=password],
body.dark .ui.form input[type=search],
body.dark .ui.form input[type=tel],
body.dark .ui.form input[type=text],
body.dark .ui.form input[type=time],
body.dark .ui.form input[type=url] {
    color: #fff;
}

body.dark .ui.mini.message,
body.dark .ui.mini.info.message {
    background-color: #282828;
    box-shadow: 0 0 0 1px #282828 inset, 0 0 0 0 transparent;
    -webkit-box-shadow: 0 0 0 1px #282828 inset, 0 0 0 0 transparent;
}

body.dark .ui.pagination {
    background-color: #303030;
}

body.dark .ui.pagination.menu .item {
    color: #fff;
}

body.dark .ui.pagination.menu .item.active {
    background-color: #282828;
}

body.dark .ui.pagination .disabled.item {
    background-color: rgba(0, 0, 0, .05) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .ui.table {
    background: #303030;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.table thead th {
    background-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.top.attached.header {
    background-color: #282828;
    border-color: #282828;
    color: rgba(255, 255, 255, 0.6);
}

body.dark .ui.table a {
    color: #fff;
}

body.dark .ui.selectable.table tbody tr:hover,
body.dark .ui.table tbody tr td.selectable:hover {
    color: rgba(255, 255, 255, 0.6) !important;
}

@media only screen and (min-width: 768px) {

    body.dark #topic-post #post-sidebar:after,
    #topic-reply #reply-sidebar:after {
        border-right: none;
    }
}

body.dark .forum_post,
body.dark .ui.comments .forum_post.text {
    color: #fff;
}

body.dark .ui.comments .comment .author {
    color: #fff;
}

body.dark .tox .tox-toolbar {
    background-color: #222;
}

body.dark .tox .tox-tbtn {
    color: #fff;
}

body.dark .tox .tox-tbtn:hover,
body.dark .tox .tox-tbtn--enabled,
body.dark .tox .tox-split-button:focus,
body.dark .tox .tox-edit-area__iframe {
    color: #fff;
}

body.dark .tox .tox-tbtn svg {
    fill: #fff;
}

/* Override TinyMCE blue-ish dark theme with neutral dark theme */

body.dark .tox .tox-menu,
body.dark .tox .tox-statusbar,
body.dark .tox .tox-menubar,
body.dark .tox .tox-toolbar,
body.dark .tox .tox-toolbar__overflow,
body.dark .tox .tox-toolbar__primary,
body.dark .tox .tox-dialog,
body.dark .tox .tox-dialog__header,
body.dark .tox .tox-dialog__footer,
body.dark .tox .tox-listboxfield .tox-listbox--select,
body.dark .tox .tox-textarea,
body.dark .tox .tox-textfield,
body.dark .tox .tox-toolbar-textfield,
body.dark .tox .tox-selectfield select {
    background-color: #222;
}

body.dark .tox .tox-dialog-wrap__backdrop {
    background-color: rgba(34, 34, 34, 0.7);
}

body.dark .tox .tox-collection--list .tox-collection__item--enabled {
    background-color: #444;
}

body.dark .tox .tox-collection--list .tox-collection__item--active {
    background-color: #666;
}

body.dark .ui.cards>.green.card,
body.dark .ui.green.card,
body.dark .ui.green.cards>.card {
    -webkit-box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #178f2b, 0 1px 3px 0 #d4d4d5;
    box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #178f2b, 0 1px 3px 0 #d4d4d5;
}

body.dark .ui.cards>.red.card,
body.dark .ui.red.card,
body.dark .ui.red.cards>.card {
    -webkit-box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #db2828, 0 1px 3px 0 #d4d4d5;
    box-shadow: 0 0 0 1px #d4d4d5, 0 5px 0 0 #db2828, 0 1px 3px 0 #d4d4d5;
}

body.dark .ui.tabular.menu {
    border-color: #282828;
}

body.dark .ui.tabular.menu .item {
    color: #fff;
}

body.dark .ui.tabular.menu .active.item {
    background-color: #282828;
    border-color: #282828;
}

body.dark .cc-window.cc-floating {
    -webkit-box-shadow: 0 1px 3px 0 #444, 0 0 1px 1px #444;
    box-shadow: 0 1px 3px 0 #444, 0 0 1px 1px #444;
    background-color: #303030 !important;
    border: 1px solid rgba(0, 0, 0, 0.125);
    color: #fff !important;
}

body.dark .cc-window.cc-floating .cc-highlight .cc-btn:first-child,
body.dark .cc-window.cc-floating .cc-link {
    color: rgba(255, 255, 255, 0.6);
}

body.dark .cc-window.cc-floating .cc-highlight .cc-btn.cc-allow {
    background-color: #282828;
    border-color: transparent;
}

body.dark #reactions.ui.mini.message span {
    color: #fff;
}

body.dark #modal-reactions .ui.menu {
    background-color: #282828;
}

body.dark #modal-reactions .ui.menu .item {
    color: #fff;
}

body.dark #modal-reactions .ui.menu .item.active {
    background-color: #222;
}

body.dark #modal-reactions .ui.large.selection.divided.list.middle.aligned .item .content {
    color: #fff;
}

body.dark ::-webkit-scrollbar-corner {
    background-color: transparent;
}

/*
 * Colours
 */

body.dark .white {
    color: #fff;
}

/*
 * Accessiblity
 */

.screenreader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/*
 *  [ FRIESNET REDESIGN ]
 */

:root {
    --fn-bg: #08090b;
    --fn-bg-soft: #0d0f13;
    --fn-surface: #12151b;
    --fn-surface-2: #171b22;
    --fn-surface-3: #1d222b;
    --fn-border: rgba(255, 255, 255, 0.08);
    --fn-border-strong: rgba(255, 255, 255, 0.14);
    --fn-text: #f3f0e9;
    --fn-muted: #a9a29a;
    --fn-soft: #d7d0c7;
    --fn-accent: #d9482f;
    --fn-accent-hover: #f05a3b;
    --fn-accent-ink: #fff7f1;
    --fn-success: #50c878;
    --fn-warning: #e9b949;
    --fn-danger: #f05252;
    --fn-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
    --fn-radius: 8px;
    --fn-radius-sm: 6px;
    --fn-container-gap: clamp(18px, 3vw, 34px);
}

html,
body,
body.pushable,
body.pushable > .pusher,
body.dark,
body.dark > .pusher {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(240, 90, 59, 0.08), transparent 340px),
        var(--fn-bg) !important;
    color: var(--fn-text);
    font-family: Lato, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    color: var(--fn-text);
    font-size: 15px;
    line-height: 1.55;
}

body::selection {
    background: rgba(240, 90, 59, 0.35);
    color: var(--fn-text);
}

a,
body.dark a {
    color: var(--fn-soft);
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover,
body.dark a:hover {
    color: var(--fn-accent-hover);
}

#wrapper {
    margin-bottom: 0;
}

.ui.container {
    width: min(1160px, calc(100% - 28px)) !important;
}

.fn-main-container {
    padding: var(--fn-container-gap) 0 46px;
}

.ui.header,
body.dark .ui.header,
.ui.header .sub.header,
body.dark .ui.header .sub.header {
    color: var(--fn-text) !important;
}

.ui.header {
    letter-spacing: 0;
}

.fn-section-heading {
    max-width: 760px;
    margin: 0 0 22px;
}

.fn-section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.fn-section-heading h2,
.fn-section-heading h1 {
    margin: 4px 0 7px;
    color: var(--fn-text);
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.fn-section-heading p {
    margin: 0;
    color: var(--fn-muted);
    font-size: 1rem;
}

.fn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fn-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fn-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--fn-accent);
    border-radius: 1px;
}

/*
 * Navigation
 */

.fn-navbar.ui.secondary.menu,
body.dark .fn-navbar.ui.secondary.menu:not(.inverted) {
    position: sticky;
    top: 0;
    z-index: 999;
    min-height: 72px;
    margin: 0;
    padding: 0;
    background: rgba(8, 9, 11, 0.88) !important;
    border-bottom: 1px solid var(--fn-border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.fn-navbar .ui.container {
    display: flex;
    align-items: center;
    min-height: inherit;
    gap: 4px;
    flex-wrap: nowrap;
}

.fn-navbar.ui.menu .item,
body.dark .fn-navbar.ui.menu .item {
    color: var(--fn-muted) !important;
    border-radius: var(--fn-radius-sm);
    font-weight: 700;
    letter-spacing: 0;
}

.fn-navbar.ui.secondary.menu .item {
    margin: 0 2px;
    padding: 11px 12px;
    white-space: nowrap;
}

.fn-navbar.ui.menu .item:hover,
.fn-navbar.ui.menu .item.active,
body.dark .fn-navbar.ui.menu .item:hover,
body.dark .fn-navbar.ui.menu .item.active {
    color: var(--fn-text) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.fn-brand.item {
    flex: 0 0 auto;
    min-width: 188px;
    margin-right: 14px !important;
    padding-left: 0 !important;
    color: var(--fn-text) !important;
}

.fn-brand.item:hover {
    background: transparent !important;
    transform: translateY(-1px);
}

.fn-brand img,
.fn-mobile-brand img {
    width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
    max-height: 58px !important;
    object-fit: contain;
    border-radius: var(--fn-radius-sm);
    margin: 0 10px 0 0 !important;
    background: var(--fn-surface-2);
    border: 1px solid var(--fn-border);
}

.fn-brand span {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.fn-brand strong {
    color: var(--fn-text);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.fn-brand small {
    color: var(--fn-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fn-navbar .right.menu {
    margin-left: auto !important;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.fn-navbar .ui.button,
.fn-navbar .ui.label {
    margin: 0;
}

.fn-navbar .ui.image.label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 12px 6px 6px !important;
    background: var(--fn-surface-2) !important;
    border: 1px solid var(--fn-border) !important;
    color: var(--fn-text) !important;
    border-radius: var(--fn-radius-sm);
}

.fn-navbar .ui.image.label img {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 6px !important;
}

.fn-navbar .ui.popup,
body.dark .fn-navbar .ui.popup,
.ui.popup,
body.dark .ui.popup,
.ui.dropdown .menu,
body.dark .ui.dropdown .menu,
body.dark .ui.secondary.menu .ui.popup {
    background: #101318 !important;
    border: 1px solid var(--fn-border-strong) !important;
    color: var(--fn-muted) !important;
    box-shadow: var(--fn-shadow) !important;
    border-radius: var(--fn-radius) !important;
}

.ui.dropdown .menu > .item,
body.dark .ui.dropdown .menu > .item,
.ui.popup .ui.link.list .item,
body.dark .ui.popup .ui.link.list .item {
    color: var(--fn-soft) !important;
}

.ui.dropdown .menu > .item:hover,
body.dark .ui.dropdown .menu > .item:hover,
.ui.popup .ui.link.list .item:hover {
    background: rgba(240, 90, 59, 0.11) !important;
    color: var(--fn-text) !important;
}

.fn-mobile-nav.ui.sidebar {
    background: #0b0d11 !important;
    border-right: 1px solid var(--fn-border);
}

.fn-mobile-nav.ui.sidebar .item {
    color: var(--fn-soft) !important;
    border-color: var(--fn-border) !important;
}

.fn-mobile-nav.ui.sidebar .item:hover,
.fn-mobile-nav.ui.sidebar .item.active {
    background: rgba(240, 90, 59, 0.12) !important;
    color: var(--fn-text) !important;
}

.fn-mobile-nav.ui.sidebar .menu .item {
    color: var(--fn-muted) !important;
}

.fn-mobile-nav.ui.sidebar .item:not(.fn-mobile-brand) img,
.fn-mobile-nav.ui.sidebar .fn-mobile-account-group > .header img,
.fn-mobile-nav.ui.sidebar .fn-mobile-account-link img {
    display: inline-block !important;
    width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    min-width: 44px;
    object-fit: cover !important;
    margin: 0 10px 0 0 !important;
    border-radius: var(--fn-radius-sm) !important;
    vertical-align: middle !important;
}

.fn-mobile-account-group > .header {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: var(--fn-text) !important;
    line-height: 1.2;
}

.fn-mobile-account-group > .menu {
    margin-top: 10px !important;
}

.fn-mobile-account-heading {
    margin-top: 10px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--fn-border) !important;
}

.fn-mobile-account-heading .header {
    color: var(--fn-accent) !important;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fn-mobile-account-link.fn-mobile-register {
    margin: 10px 12px !important;
    justify-content: center;
    background: var(--fn-accent) !important;
    color: var(--fn-accent-ink) !important;
    border-radius: var(--fn-radius-sm) !important;
    font-weight: 900 !important;
}

.fn-mobile-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 18px 16px !important;
    border-bottom: 1px solid var(--fn-border);
}

.fn-mobile-brand h3 {
    margin: 0;
    color: var(--fn-text);
}

.fn-mobile-brand span {
    display: block;
    color: var(--fn-accent);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

/*
 * Masthead
 */

.ui.masthead.fn-masthead {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 42px 0 38px;
    background-color: #0d0f13;
    background-size: cover;
    background-position: center;
    color: var(--fn-text);
    border-bottom: 1px solid var(--fn-border);
}

.ui.masthead.fn-masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 9, 11, 0.94), rgba(8, 9, 11, 0.74)),
        linear-gradient(180deg, transparent, rgba(8, 9, 11, 0.9));
    pointer-events: none;
}

.ui.masthead.fn-masthead > .ui.container {
    position: relative;
    z-index: 1;
}

.fn-hero-copy h1 {
    margin: 8px 0 8px;
    color: var(--fn-text);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: 0;
}

.fn-hero-copy p {
    max-width: 520px;
    margin: 0;
    color: var(--fn-muted);
    font-size: 1.05rem;
}

.fn-hero-side {
    display: flex !important;
    justify-content: flex-end;
}

.ui.masthead.fn-masthead .connect-server {
    width: min(100%, 340px);
    margin-left: 0;
    padding: 18px 20px;
    background: rgba(18, 21, 27, 0.82);
    border: 1px solid var(--fn-border-strong);
    border-radius: var(--fn-radius);
    box-shadow: var(--fn-shadow);
    color: var(--fn-text);
    text-align: left;
}

.ui.masthead.fn-masthead .connect-server .ui.header {
    color: var(--fn-text) !important;
    font-size: 1.08rem;
}

.ui.masthead.fn-masthead .connect-server span {
    color: var(--fn-muted);
}

/*
 * Surfaces and content blocks
 */

.ui.segment,
.ui.card,
.ui.cards > .card,
.ui.vertical.menu,
.ui.attached.segment,
body.dark .ui.card,
body.dark .ui.segment,
body.dark .ui.segment.attached:not(.basic),
body.dark .ui.vertical.menu {
    background: var(--fn-surface) !important;
    border: 1px solid var(--fn-border) !important;
    border-radius: var(--fn-radius) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22) !important;
    color: var(--fn-soft) !important;
}

.ui.card > .content,
.ui.cards > .card > .content,
.ui.card > .extra,
.ui.cards > .card > .extra {
    border-color: var(--fn-border) !important;
}

.ui.card > .content > .header,
.ui.cards > .card > .content > .header,
.ui.card > .content > .header a,
.ui.cards > .card > .content > .header a,
body.dark .ui.card > .content > .header,
body.dark .ui.cards > .card > .content > .header {
    color: var(--fn-text) !important;
}

.ui.vertical.menu .item,
body.dark .ui.vertical.menu .item,
.ui.vertical.menu .item > a:not(.ui),
body.dark .ui.vertical.menu .item > a:not(.ui) {
    color: var(--fn-soft) !important;
}

.ui.vertical.menu .item:hover,
.ui.vertical.menu .active.item,
body.dark .ui.vertical.menu .item:hover,
body.dark .ui.vertical.menu .active.item {
    background: rgba(240, 90, 59, 0.1) !important;
    color: var(--fn-text) !important;
}

.ui.card .meta,
.ui.cards > .card .meta,
.ui.card > .content > .description,
.ui.cards > .card > .content > .description,
body.dark .ui.card .meta,
body.dark .ui.cards > .card .meta,
body.dark .ui.card > .content > .description,
body.dark .ui.cards > .card > .content > .description {
    color: var(--fn-muted) !important;
}

.ui.card:hover,
.ui.cards > .card:hover,
.fn-route-card:hover {
    border-color: rgba(240, 90, 59, 0.38) !important;
    transform: translateY(-2px);
}

.ui.message,
body.dark .ui.message,
body.dark .ui.mini.message,
body.dark .ui.mini.info.message {
    background: var(--fn-surface-2) !important;
    color: var(--fn-soft) !important;
    border: 1px solid var(--fn-border) !important;
    border-radius: var(--fn-radius) !important;
    box-shadow: none !important;
}

.ui.info.message {
    border-color: rgba(84, 170, 255, 0.28) !important;
}

.ui.success.message,
.ui.positive.message {
    border-color: rgba(80, 200, 120, 0.32) !important;
}

.ui.warning.message {
    border-color: rgba(233, 185, 73, 0.32) !important;
}

.ui.error.message,
.ui.negative.message {
    border-color: rgba(240, 82, 82, 0.36) !important;
}

.ui.message .header {
    color: var(--fn-text) !important;
}

/*
 * Buttons, labels, forms
 */

.ui.button,
.ui.buttons .button,
button.ui.button,
input.ui.button,
input[type="submit"].ui.button {
    border-radius: var(--fn-radius-sm) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.ui.primary.button,
.ui.primary.buttons .button,
.ui.positive.button,
.ui.positive.buttons .button,
input[type="submit"].ui.primary.button,
.fn-register-action {
    background: var(--fn-accent) !important;
    color: var(--fn-accent-ink) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.ui.primary.button:hover,
.ui.primary.buttons .button:hover,
.ui.positive.button:hover,
.ui.positive.buttons .button:hover,
input[type="submit"].ui.primary.button:hover,
.fn-register-action:hover {
    background: var(--fn-accent-hover) !important;
    color: var(--fn-accent-ink) !important;
    transform: translateY(-1px);
}

.ui.default.button,
.ui.button:not(.primary):not(.positive):not(.negative):not(.red):not(.green):not(.blue):not(.teal):not(.orange):not(.yellow),
body.dark .ui.default.button,
body.dark .ui.mini.icon.button {
    background: var(--fn-surface-2) !important;
    color: var(--fn-soft) !important;
    border: 1px solid var(--fn-border) !important;
    box-shadow: none !important;
}

.ui.default.button:hover,
.ui.button:not(.primary):not(.positive):not(.negative):not(.red):not(.green):not(.blue):not(.teal):not(.orange):not(.yellow):hover {
    background: var(--fn-surface-3) !important;
    color: var(--fn-text) !important;
    border-color: var(--fn-border-strong) !important;
}

.ui.negative.button,
.ui.red.button {
    background: rgba(240, 82, 82, 0.14) !important;
    color: #ffb4b4 !important;
    border: 1px solid rgba(240, 82, 82, 0.26) !important;
}

.ui.label,
.badge,
body.dark .ui.image.label {
    border-radius: var(--fn-radius-sm) !important;
}

.ui.label {
    background: var(--fn-surface-3) !important;
    color: var(--fn-soft) !important;
    border: 1px solid var(--fn-border) !important;
}

.ui.form .field > label,
body.dark .ui.form .field > label,
.ui.checkbox label,
body.dark .ui.checkbox label {
    color: var(--fn-soft) !important;
    font-weight: 800;
}

.ui.form input:not([type]),
.ui.form input[type=date],
.ui.form input[type=datetime-local],
.ui.form input[type=email],
.ui.form input[type=file],
.ui.form input[type=number],
.ui.form input[type=password],
.ui.form input[type=search],
.ui.form input[type=tel],
.ui.form input[type=text],
.ui.form input[type=time],
.ui.form input[type=url],
.ui.form textarea,
.ui.selection.dropdown,
select,
body.dark .ui.form input:not([type]),
body.dark .ui.form input[type=date],
body.dark .ui.form input[type=datetime-local],
body.dark .ui.form input[type=email],
body.dark .ui.form input[type=file],
body.dark .ui.form input[type=number],
body.dark .ui.form input[type=password],
body.dark .ui.form input[type=search],
body.dark .ui.form input[type=tel],
body.dark .ui.form input[type=text],
body.dark .ui.form input[type=time],
body.dark .ui.form input[type=url],
body.dark .ui.form textarea,
body.dark .ui.selection.dropdown {
    min-height: 44px;
    background: #0c0e12 !important;
    border: 1px solid var(--fn-border-strong) !important;
    border-radius: var(--fn-radius-sm) !important;
    color: var(--fn-text) !important;
    box-shadow: none !important;
}

.ui.form textarea {
    min-height: 120px;
}

.ui.form input:focus,
.ui.form textarea:focus,
.ui.selection.active.dropdown,
.ui.selection.dropdown:focus {
    border-color: rgba(240, 90, 59, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(240, 90, 59, 0.12) !important;
}

.ui.form input::placeholder,
.ui.form textarea::placeholder {
    color: rgba(215, 208, 199, 0.42);
}

.ui.horizontal.divider,
body.dark .ui.horizontal.divider {
    color: var(--fn-muted) !important;
}

.ui.horizontal.divider::before,
.ui.horizontal.divider::after {
    background-image: linear-gradient(to right, transparent, var(--fn-border), transparent) !important;
}

/*
 * Portal and homepage/news
 */

.fn-portal {
    padding: 6px 0 18px;
}

.fn-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.fn-route-card {
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 20px;
    background: var(--fn-surface);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius);
    color: var(--fn-soft);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

a.fn-route-card {
    color: var(--fn-soft);
}

.fn-route-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    background: rgba(240, 90, 59, 0.11);
    border: 1px solid rgba(240, 90, 59, 0.22);
    border-radius: var(--fn-radius-sm);
    color: var(--fn-accent);
}

.fn-route-icon i {
    margin: 0 !important;
}

.fn-route-card h3 {
    margin: 0 0 10px;
    color: var(--fn-text);
    font-size: 1.18rem;
}

.fn-route-card span {
    margin-top: auto;
    color: var(--fn-accent);
    font-weight: 800;
}

.fn-route-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fn-route-links a {
    color: var(--fn-muted);
}

#news-post.ui.card {
    overflow: hidden;
}

#news-post .content .header {
    padding-right: 82px;
}

#news-post .description.forum_post {
    color: var(--fn-soft);
}

/*
 * Auth pages
 */

.fn-auth-page {
    max-width: 820px;
    margin: 0 auto;
}

.fn-auth-page .fn-section-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.fn-auth-page .fn-eyebrow {
    justify-content: center;
}

.fn-auth-card.ui.segment {
    padding: 26px !important;
}

.fn-auth-card .ui.centered.row > .column {
    width: 100% !important;
    max-width: 640px;
}

.fn-auth-card .ui.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fn-auth-card .ui.form .field {
    margin: 0;
}

.fn-auth-card input[type="submit"],
.fn-auth-card .ui.positive.button,
.fn-auth-card .ui.negative.button {
    min-height: 44px;
}

.fn-auth-card input[type="submit"].ui.button {
    min-width: 150px;
}

.fn-auth-card .ui.equal.width.grid .column {
    min-width: 180px;
}

.fn-auth-card img {
    max-height: 22px;
    margin-right: 8px;
    vertical-align: middle;
}

/*
 * Members
 */

.fn-members-heading {
    margin-bottom: 18px;
}

.fn-members-layout .ui.vertical.menu {
    overflow: hidden;
}

.fn-members-layout .ui.vertical.menu .item,
body.dark .fn-members-layout .ui.vertical.menu .item {
    color: var(--fn-muted) !important;
    border-color: var(--fn-border) !important;
}

.fn-members-layout .ui.vertical.menu .item.active,
.fn-members-layout .ui.vertical.menu .item:hover,
body.dark .fn-members-layout .ui.vertical.menu .item.active,
body.dark .fn-members-layout .ui.vertical.menu .item:hover {
    background: rgba(240, 90, 59, 0.11) !important;
    color: var(--fn-text) !important;
}

#new-members-grid .column img {
    border: 1px solid var(--fn-border-strong);
    background: var(--fn-bg-soft);
    transition: transform 150ms ease, border-color 150ms ease;
}

#new-members-grid .column a:hover img {
    transform: translateY(-2px);
    border-color: rgba(240, 90, 59, 0.45);
}

.fn-members-layout [id^="member_list_"] .item {
    padding: 10px 8px !important;
    border-radius: var(--fn-radius-sm);
}

.fn-members-layout [id^="member_list_"] .item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/*
 * Staff
 */

.fn-staff-page {
    max-width: 1040px;
    margin: 0 auto;
}

.fn-staff-sections {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.fn-staff-rank {
    padding-top: 4px;
}

.fn-staff-rank-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.fn-staff-rank-heading .badge,
.fn-staff-rank-heading .ui.label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.46em 0.78em;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.fn-staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fn-staff-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 18px;
    background: var(--fn-surface);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius);
    color: var(--fn-text);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.fn-staff-card:hover {
    border-color: rgba(217, 72, 47, 0.44);
    color: var(--fn-text);
    transform: translateY(-2px);
}

.fn-staff-card img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    background: var(--fn-bg);
    border: 1px solid var(--fn-border-strong);
    border-radius: var(--fn-radius);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

.fn-staff-card span {
    max-width: 100%;
    overflow: hidden;
    color: var(--fn-text);
    font-size: 1.04rem;
    font-weight: 900;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
 * Profile
 */

#profile-header.ui.segment {
    position: relative;
    overflow: hidden;
    min-height: 290px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 42px 18px 30px !important;
    background-color: #11141a !important;
    background-position: center !important;
    border: 1px solid var(--fn-border) !important;
}

#profile-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 9, 11, 0.18), rgba(8, 9, 11, 0.82)),
        linear-gradient(90deg, rgba(8, 9, 11, 0.72), transparent 52%, rgba(8, 9, 11, 0.62));
    pointer-events: none;
}

#profile-header > center,
#profile-header .actions {
    position: relative;
    z-index: 1;
}

#profile-header > center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#profile-header .ui.tiny.circular.image,
#profile-header img.ui.tiny.circular.image {
    width: 104px;
    height: 104px;
    padding: 4px;
    object-fit: cover;
    background: var(--fn-bg);
    border: 1px solid var(--fn-border-strong);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

#profile-header .ui.header {
    margin: 14px 0 8px;
    color: var(--fn-text) !important;
}

#profile-header .fn-profile-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 520px;
    margin: 0 auto;
}

#profile-header .fn-profile-groups .ui.label,
#profile-header .fn-profile-groups .badge {
    margin: 0 !important;
    font-size: 0.72rem;
}

#profile-header .fn-profile-main-rank .ui.label,
#profile-header .fn-profile-main-rank .badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.42em 0.68em;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    color: inherit;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    opacity: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#profile-header .fn-profile-main-rank .badge-primary {
    background-color: #007bff !important;
    color: #fff !important;
}

#profile-header .fn-profile-main-rank .badge-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

#profile-header .fn-profile-main-rank .badge-success {
    background-color: #28a745 !important;
    color: #fff !important;
}

#profile-header .fn-profile-main-rank .badge-info {
    background-color: #17a2b8 !important;
    color: #fff !important;
}

#profile-header .fn-profile-main-rank .badge-warning {
    background-color: #ffc107 !important;
    color: #1b1300 !important;
    text-shadow: none;
}

#profile-header .fn-profile-main-rank .badge-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

#profile-header .fn-profile-main-rank .badge-light {
    background-color: #f8f9fa !important;
    color: #151515 !important;
    text-shadow: none;
}

#profile-header .fn-profile-main-rank .badge-dark {
    background-color: #343a40 !important;
    color: #fff !important;
}

.fn-profile-badges,
.fn-popover-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.fn-popover-groups {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.fn-popover-badges {
    margin-top: 10px;
}

.fn-profile-badge {
    --badge-colour: var(--fn-accent);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    background: var(--fn-surface-3);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 34%),
        color-mix(in srgb, var(--badge-colour) 28%, #11151b);
    border: 1px solid var(--fn-border-strong);
    border: 1px solid color-mix(in srgb, var(--badge-colour) 72%, transparent);
    border-radius: 8px;
    color: var(--fn-text);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.34);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    overflow: hidden;
    appearance: none;
}

.fn-profile-badge:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

#profile-header .fn-profile-badge img,
.fn-profile-badge img,
.fn-popover-badges .fn-profile-badge img,
.fn-badge-modal .fn-profile-badge img {
    display: block !important;
    width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fn-profile-badge i {
    margin: 0 !important;
    color: var(--fn-text) !important;
    font-size: 1.05rem;
}

.fn-profile-badge-static {
    cursor: default;
}

.fn-profile-badge-static:hover {
    transform: none;
}

.fn-badge-modal .header {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.fn-badge-modal .content p {
    color: var(--fn-soft);
}

.fn-badge-note,
.fn-badge-awarded {
    color: var(--fn-muted) !important;
}

#profile-header .actions {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

#profile-header .actions form {
    display: inline-flex !important;
    margin: 0 !important;
}

#profile-header .actions .ui.icon.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    margin: 0 !important;
}

#profile-header .actions .ui.icon.button > .icon {
    margin: 0 !important;
}

#profile .ui.tabular.menu,
body.dark #profile .ui.tabular.menu {
    border-color: var(--fn-border) !important;
}

#profile .ui.tabular.menu .item,
body.dark #profile .ui.tabular.menu .item {
    color: var(--fn-muted) !important;
    border-radius: var(--fn-radius-sm) var(--fn-radius-sm) 0 0 !important;
}

#profile .ui.tabular.menu .active.item,
body.dark #profile .ui.tabular.menu .active.item {
    background: var(--fn-surface) !important;
    border-color: var(--fn-border) !important;
    color: var(--fn-text) !important;
}

#profile-feed .ui.comments .comment {
    padding: 14px 0;
    border-top: 1px solid var(--fn-border);
}

#profile-feed .ui.comments > .comment:first-child {
    border-top: 0;
}

.ui.comments .comment .author,
body.dark .ui.comments .comment .author {
    color: var(--fn-text) !important;
}

.ui.comments .comment .metadata,
body.dark .ui.comments .comment .metadata,
.ui.comments .comment .actions a,
body.dark .ui.comments .comment .actions a {
    color: var(--fn-muted) !important;
}

.forum_post,
body.dark .forum_post,
body.dark .ui.comments .forum_post.text,
.ui.threaded.comments .comment .text,
body.dark .ui.threaded.comments .comment .text {
    color: var(--fn-soft) !important;
}

/*
 * Forum, tables, pagination, editor-adjacent elements
 */

.ui.table,
body.dark .ui.table {
    overflow: hidden;
    background: var(--fn-surface) !important;
    color: var(--fn-soft) !important;
    border: 1px solid var(--fn-border) !important;
    border-radius: var(--fn-radius) !important;
}

.ui.table td,
.ui.table tbody td,
.ui.table tbody tr td,
.ui.definition.table td,
.ui.celled.table tr td,
body.dark .ui.table td,
body.dark .ui.table tbody td,
body.dark .ui.table tbody tr td,
body.dark .ui.definition.table td,
body.dark .ui.celled.table tr td {
    color: var(--fn-soft) !important;
}

.ui.definition.table tr td:first-child:not(.ignored),
.ui.definition.table tr td.definition,
body.dark .ui.definition.table tr td:first-child:not(.ignored),
body.dark .ui.definition.table tr td.definition {
    background: var(--fn-surface-2) !important;
    color: var(--fn-text) !important;
}

.ui.table thead th,
body.dark .ui.table thead th {
    background: var(--fn-surface-2) !important;
    color: var(--fn-text) !important;
    border-color: var(--fn-border) !important;
}

.ui.table tbody tr,
.ui.table tbody tr td,
body.dark .ui.table tbody tr,
body.dark .ui.table tbody tr td {
    border-color: var(--fn-border) !important;
}

.ui.selectable.table tbody tr:hover,
body.dark .ui.selectable.table tbody tr:hover,
body.dark .ui.table tbody tr td.selectable:hover {
    background: rgba(255, 255, 255, 0.045) !important;
    color: var(--fn-text) !important;
}

.ui.pagination.menu,
body.dark .ui.pagination {
    overflow: hidden;
    background: var(--fn-surface) !important;
    border: 1px solid var(--fn-border) !important;
    border-radius: var(--fn-radius-sm) !important;
}

.ui.pagination.menu .item,
body.dark .ui.pagination.menu .item {
    color: var(--fn-muted) !important;
    border-color: var(--fn-border) !important;
}

.ui.pagination.menu .active.item,
body.dark .ui.pagination.menu .item.active {
    background: var(--fn-accent) !important;
    color: var(--fn-accent-ink) !important;
}

.blockquote,
blockquote {
    border-left-color: var(--fn-accent);
    color: var(--fn-muted);
}

.tox-tinymce {
    border-color: var(--fn-border-strong) !important;
    border-radius: var(--fn-radius) !important;
}

/*
 * Footer
 */

.fn-footer.ui.footer.segment,
body.dark .fn-footer.ui.footer.segment {
    margin: auto 0 0;
    padding: 42px 0;
    background: #07080a !important;
    border-top: 1px solid var(--fn-border);
}

.fn-footer .ui.header {
    color: var(--fn-text) !important;
}

.fn-footer .ui.link.list .item,
.fn-footer .ui.link.list a.item,
.fn-footer .ui.inverted.link.list .item,
.fn-footer .ui.inverted.link.list a.item {
    color: var(--fn-muted) !important;
}

.fn-footer .ui.link.list a.item:hover,
.fn-footer .ui.inverted.link.list a.item:hover,
.fn-footer a:hover {
    color: var(--fn-accent-hover) !important;
}

.darkmode-toggle-label {
    background: var(--fn-surface-2);
    border: 1px solid var(--fn-border);
}

.darkmode-ball {
    background: var(--fn-accent);
}

/*
 * Modals, cookie notice, utility polish
 */

.ui.modal,
body.dark .ui.modal {
    overflow: hidden;
    background: var(--fn-surface) !important;
    border: 1px solid var(--fn-border-strong) !important;
    border-radius: var(--fn-radius) !important;
    box-shadow: var(--fn-shadow) !important;
}

.ui.modal > .header,
.ui.modal > .actions,
.ui.modal > .content,
body.dark .ui.modal > .header,
body.dark .ui.modal > .actions,
body.dark .ui.modal > .content {
    background: var(--fn-surface) !important;
    color: var(--fn-soft) !important;
    border-color: var(--fn-border) !important;
}

.cc-window.cc-floating,
body.dark .cc-window.cc-floating {
    background: var(--fn-surface) !important;
    color: var(--fn-soft) !important;
    border: 1px solid var(--fn-border-strong) !important;
    border-radius: var(--fn-radius) !important;
    box-shadow: var(--fn-shadow) !important;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #07080a;
}

::-webkit-scrollbar-thumb {
    background: #2c3039;
    border: 3px solid #07080a;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a404c;
}

@media only screen and (max-width: 992px) {
    .fn-navbar.ui.secondary.menu {
        min-height: 64px;
    }

    .fn-navbar .ui.container {
        justify-content: space-between;
    }

    .fn-brand.item {
        min-width: 0;
        margin-right: 0 !important;
    }

    .fn-brand strong {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fn-hero-copy h1 {
        font-size: 2.45rem;
    }
}

@media only screen and (max-width: 1100px) {
    .fn-navbar.ui.secondary.menu .menu,
    .fn-navbar.ui.secondary.menu > .ui.container > .item:not(.fn-brand):not(.toc) {
        display: none !important;
    }

    .fn-navbar.ui.secondary.menu .toc.item {
        display: flex !important;
    }

    .fn-menu-toggle {
        margin-left: auto !important;
        background: var(--fn-surface-2) !important;
        border: 1px solid var(--fn-border) !important;
    }
}

@media only screen and (max-width: 768px) {
    .fn-navbar.ui.secondary.menu .menu,
    .fn-navbar.ui.secondary.menu > .ui.container > .item:not(.fn-brand):not(.toc) {
        display: none !important;
    }

    .fn-navbar.ui.secondary.menu .toc.item {
        display: flex !important;
    }

    .fn-menu-toggle {
        margin-left: auto !important;
        background: var(--fn-surface-2) !important;
        border: 1px solid var(--fn-border) !important;
    }

    .ui.masthead.fn-masthead {
        padding: 30px 0;
    }

    .fn-hero-copy,
    .fn-hero-side {
        text-align: left !important;
    }

    .fn-hero-side {
        justify-content: flex-start;
    }

    .ui.masthead.fn-masthead .connect-server {
        width: 100%;
        margin-top: 16px;
    }

    .fn-section-heading h2,
    .fn-section-heading h1 {
        font-size: 1.7rem;
    }

    .fn-auth-card.ui.segment {
        padding: 18px !important;
    }

    .fn-auth-card .ui.form {
        gap: 12px;
    }

    .fn-auth-card input[type="submit"],
    .fn-auth-card .ui.positive.button,
    .fn-auth-card .ui.negative.button,
    .fn-auth-card .ui.button.right.floated {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .fn-auth-card .ui.equal.width.grid,
    .fn-auth-card .ui.equal.width.two.column.grid {
        display: block;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .fn-auth-card .ui.equal.width.grid > .column,
    .fn-auth-card .ui.equal.width.two.column.grid > .column {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 10px;
    }

    #profile-header.ui.segment {
        min-height: 250px;
    }
}

@media only screen and (max-width: 576px) {
    .ui.container {
        width: min(100% - 20px, 1160px) !important;
    }

    .fn-brand img,
    .fn-mobile-brand img {
        width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        max-height: 46px !important;
    }

    .fn-brand strong {
        max-width: 134px;
    }

    .fn-hero-copy h1 {
        font-size: 2rem;
    }

    .fn-portal-grid {
        grid-template-columns: 1fr;
    }

    .fn-staff-grid {
        grid-template-columns: 1fr;
    }

    .fn-auth-card .right.floated {
        float: none !important;
        display: block;
        margin: 10px 0 0 !important;
        text-align: center;
    }

    #profile-header .actions {
        top: 10px;
        right: 10px;
    }
}
