/*
 *  [ 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;
    }
}


/*
   *  -[ 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;
}

/* ========================================================================== */
/* VICE HORIZON — original neon coastal visual system                         */
/* ========================================================================== */

:root {
    --vice-pink: #ff2f92;
    --vice-hot: #ff176f;
    --vice-orange: #ff7a45;
    --vice-cyan: #21e6ff;
    --vice-purple: #8b43ff;
    --vice-ink: #080713;
    --vice-panel: rgba(19, 16, 38, .82);
    --vice-line: rgba(255, 255, 255, .1);
    --vice-muted: #aaa8bd;
    --vice-gradient: linear-gradient(115deg, var(--vice-orange), var(--vice-pink) 45%, var(--vice-purple));
}

html { scroll-behavior: smooth; }

body,
body.dark,
body.pushable > .pusher,
body.dark > .pusher {
    background:
        radial-gradient(circle at 8% 28%, rgba(255, 47, 146, .13), transparent 30rem),
        radial-gradient(circle at 94% 68%, rgba(33, 230, 255, .07), transparent 28rem),
        var(--vice-ink);
    color: #f7f5ff;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .2;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 80%, transparent);
}

::selection { background: var(--vice-pink); color: #fff; }

#wrapper { margin-bottom: 0; overflow: hidden; }

/* Navigation */
#navbar.ui.secondary.menu,
body.dark #navbar.ui.secondary.menu:not(.inverted) {
    position: relative;
    z-index: 20;
    padding: .75rem 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(8, 7, 19, .88);
    box-shadow: 0 10px 40px rgba(0,0,0,.22);
    backdrop-filter: blur(20px) saturate(140%);
}

#navbar .ui.container { display: flex; align-items: center; }

#navbar.ui.menu .item,
body.dark #navbar.ui.menu .item:not(.active) {
    position: relative;
    color: rgba(255,255,255,.72) !important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

#navbar.ui.menu > .ui.container > .item:not(.vice-brand):hover,
#navbar.ui.menu > .ui.container > .active.item {
    color: #fff !important;
    background: rgba(255,255,255,.07);
    transform: translateY(-1px);
}

#navbar.ui.menu > .ui.container > .active.item::after {
    content: "";
    position: absolute;
    left: 25%; right: 25%; bottom: -.8rem;
    height: 2px;
    background: var(--vice-gradient);
    box-shadow: 0 0 12px var(--vice-pink);
}

#navbar .vice-brand {
    display: flex !important;
    align-items: center;
    gap: .65rem;
    padding-left: 0;
    margin-right: 1.3rem;
}

.vice-brand-mark {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    color: #fff;
    font: italic 900 1.35rem/1 Arial Black, sans-serif;
    background: var(--vice-gradient);
    border-radius: .65rem .65rem .65rem .15rem;
    box-shadow: 0 0 24px rgba(255,47,146,.42);
    transform: skew(-7deg);
}

.vice-brand-copy { display: flex; flex-direction: column; line-height: 1; }
.vice-brand-copy strong { color: #fff; font-size: .88rem; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; }
.vice-brand-copy small { margin-top: .35rem; color: var(--vice-pink); font-size: .48rem; letter-spacing: .2em; }

#navbar .ui.button,
#navbar .ui.label {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: #fff;
    box-shadow: none;
}

#navbar .ui.primary.button { border: 0; background: var(--vice-gradient); }

/* Hero */
.ui.masthead.vice-hero {
    position: relative;
    min-height: clamp(31rem, 67vh, 48rem);
    display: flex;
    align-items: center;
    margin: 0 0 3.8rem;
    padding: 6rem 0 7rem;
    overflow: hidden;
    isolation: isolate;
    background-image:
        linear-gradient(90deg, rgba(7,6,18,.94) 0%, rgba(7,6,18,.7) 40%, rgba(7,6,18,.1) 75%),
        linear-gradient(0deg, var(--vice-ink) 0%, transparent 30%),
        var(--custom-banner, url('../assets/images/vice-horizon.png'));
    background-position: center;
    background-size: cover;
    border-radius: 0 0 6vw 0;
    color: #fff;
}

.ui.masthead.vice-hero::after {
    content: "";
    position: absolute;
    inset: auto -5% -7rem 38%;
    z-index: -1;
    height: 12rem;
    background: var(--vice-gradient);
    filter: blur(80px);
    opacity: .26;
    transform: rotate(-4deg);
}

.vice-hero-noise {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .2;
    background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px);
    mix-blend-mode: overlay;
}

.vice-sun {
    position: absolute;
    right: 7vw;
    top: 12%;
    z-index: -1;
    width: clamp(10rem, 18vw, 18rem);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: .15;
    background: repeating-linear-gradient(to bottom, #ffb55a 0 9px, transparent 9px 14px);
    filter: drop-shadow(0 0 35px #ff2f92);
}

.vice-hero-grid { width: 100%; }
.vice-hero-copy { animation: vice-rise .8s cubic-bezier(.2,.75,.25,1) both; }

.vice-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--vice-cyan);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.vice-kicker .circle.icon { margin: 0; color: var(--vice-pink); font-size: .55rem; filter: drop-shadow(0 0 6px var(--vice-pink)); }

.ui.masthead.vice-hero h1 {
    max-width: 760px;
    margin: .85rem 0 1.35rem;
    color: #fff;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(4rem, 8.2vw, 8rem);
    font-weight: 900;
    line-height: .76;
    letter-spacing: -.025em;
    text-transform: uppercase;
    text-shadow: 0 8px 40px rgba(0,0,0,.35);
}

.ui.masthead.vice-hero h1 span { display: block; }
.ui.masthead.vice-hero h1 em {
    display: inline-block;
    padding-right: .12em;
    color: transparent;
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: .55em;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    background: var(--vice-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    transform: rotate(-5deg) translate(.65em, -.08em);
    filter: drop-shadow(0 0 18px rgba(255,47,146,.3));
}

.ui.masthead.vice-hero .vice-hero-copy > p {
    max-width: 540px;
    margin: 0 0 2rem;
    color: rgba(255,255,255,.73);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
}

.vice-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.vice-hero-actions .ui.button {
    margin: 0;
    padding: 1.15rem 1.65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease;
}

.vice-hero-actions .ui.primary.button {
    background: var(--vice-gradient);
    box-shadow: 0 12px 34px rgba(255,47,146,.3);
}

.vice-hero-actions .ui.button:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(255,47,146,.4); }

.ui.masthead .vice-server-column .connect-server {
    position: relative;
    width: min(100%, 17rem);
    margin-left: auto;
    padding: 1.5rem;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 1.4rem;
    background: linear-gradient(145deg, rgba(18,14,42,.78), rgba(255,255,255,.07));
    box-shadow: 0 25px 70px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    animation: vice-float 5s ease-in-out infinite;
}

.ui.masthead .connect-server::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--vice-gradient);
}

.vice-live { display: block; margin-bottom: 1rem; color: rgba(255,255,255,.55); font-size: .62rem; font-weight: 900; letter-spacing: .18em; }
.vice-live i { display: inline-block; width: .55rem; height: .55rem; margin-right: .4rem; border-radius: 50%; background: #35f5a2; box-shadow: 0 0 12px #35f5a2; }
.ui.masthead .connect-server .ui.header { margin: .35rem 0; font-weight: 800; }
.ui.masthead .connect-server .ui.header:first-of-type { font-size: 1.35rem; }
.ui.masthead .connect-server .ui.header span { color: var(--vice-cyan); cursor: pointer; }

/* Main content and cards */
.vice-content { position: relative; }

.vice-section-heading {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    margin: 0 0 2rem;
}

.vice-section-heading h2 {
    margin: .4rem 0 0;
    color: #fff;
    font: 900 clamp(2rem, 4vw, 3.5rem)/1 Impact, Haettenschweiler, sans-serif;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.vice-section-heading h2 em { color: var(--vice-pink); font-family: 'Brush Script MT', cursive; font-size: 1.1em; font-weight: 400; text-transform: none; }
.vice-section-line { flex: 1; height: 1px; margin-bottom: .55rem; background: linear-gradient(90deg, rgba(255,255,255,.18), transparent); }

.ui.card,
.ui.cards > .card,
.ui.segment,
.ui.attached.segment,
body.dark .ui.card,
body.dark .ui.segment,
body.dark .ui.segment.attached:not(.basic),
body.dark .ui.vertical.menu {
    color: rgba(255,255,255,.78);
    border: 1px solid var(--vice-line);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, rgba(25,21,46,.92), rgba(13,11,27,.94));
    box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.035);
}

.ui.card { overflow: hidden; }
.ui.card > .content,
.ui.cards > .card > .content { border-top-color: var(--vice-line); }

#news-post { position: relative; margin-bottom: 1.6rem; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
#news-post::before { content: ""; display: block; height: 4px; background: var(--vice-gradient); }
#news-post:hover { transform: translateY(-5px); border-color: rgba(255,47,146,.35); box-shadow: 0 24px 65px rgba(0,0,0,.3), 0 0 30px rgba(255,47,146,.08); }
#news-post > .content { padding: 1.6rem; }
#news-post .header a { color: #fff !important; font-size: 1.3rem; font-weight: 900; }
#news-post .meta { margin-top: .6rem; color: var(--vice-pink) !important; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#news-post .description { margin-top: 1.4rem; color: rgba(255,255,255,.7); line-height: 1.75; }
#news-post .extra.content { padding: 1rem 1.6rem; background: rgba(0,0,0,.14); }

.ui.primary.button,
.ui.primary.buttons .button,
body.dark .ui.primary.button {
    color: #fff;
    border-radius: 999px;
    background: var(--vice-gradient);
    box-shadow: 0 8px 22px rgba(255,47,146,.2);
}

.ui.button { border-radius: .75rem; }
.ui.label, .badge { border-radius: 999px; }

.ui.header,
body.dark .ui.header,
.ui.card > .content > .header,
body.dark .ui.card > .content > .header { color: #fff; }

a, body.dark .ui.segment a { color: var(--vice-cyan); }
a:hover { color: #fff; }

.ui.table,
body.dark .ui.table { color: rgba(255,255,255,.72); border: 1px solid var(--vice-line); border-radius: 1rem; background: rgba(18,15,34,.78); }
.ui.table thead th,
body.dark .ui.table thead th { color: #fff; border-color: var(--vice-line); background: rgba(255,255,255,.045); }
.ui.table tr td { border-color: var(--vice-line); }
.ui.selectable.table tbody tr:hover { background: rgba(255,47,146,.08) !important; }

.ui.form label, body.dark .ui.form .field > label { color: rgba(255,255,255,.72); }
.ui.form input:not(.button),
.ui.form textarea,
.ui.selection.dropdown,
body.dark .ui.form input:not(.button),
body.dark .ui.form textarea,
body.dark .ui.selection.dropdown {
    color: #fff !important;
    border: 1px solid var(--vice-line) !important;
    border-radius: .8rem !important;
    background: rgba(255,255,255,.05) !important;
}
.ui.form input:focus, .ui.form textarea:focus { border-color: var(--vice-pink) !important; box-shadow: 0 0 0 3px rgba(255,47,146,.1) !important; }

.ui.breadcrumb, .ui.breadcrumb a, .ui.breadcrumb .divider { color: rgba(255,255,255,.55); }
.ui.breadcrumb .active.section { color: #fff; }

/* Popups, sidebars and footer */
.ui.popup,
.ui.dropdown .menu,
body.dark .ui.popup,
body.dark .ui.dropdown .menu {
    color: rgba(255,255,255,.72);
    border: 1px solid var(--vice-line);
    border-radius: .9rem;
    background: #151128;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.ui.dropdown .menu > .item { color: rgba(255,255,255,.7) !important; }
.ui.dropdown .menu > .item:hover { color: #fff !important; background: rgba(255,47,146,.1) !important; }

#toc.ui.sidebar { background: #0d0b1b; }
#toc.ui.sidebar::before { content: ""; display: block; height: 5px; background: var(--vice-gradient); }
#toc.ui.sidebar .item { border-color: var(--vice-line); }

#footer.ui.inverted.segment {
    position: relative;
    margin-top: 5rem;
    padding: 4.5rem 0 3.5rem;
    border: 0;
    border-radius: 5vw 0 0;
    background: linear-gradient(140deg, #15102d, #090814 60%);
    box-shadow: inset 0 1px rgba(255,255,255,.08);
}

#footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--vice-gradient); }
#footer .ui.header { color: #fff; font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; }
#footer .ui.inverted.link.list .item, #footer .ui.inverted.link.list a.item { color: rgba(255,255,255,.55); }
#footer .ui.inverted.link.list a.item:hover { color: var(--vice-cyan); }
.darkmode-toggle-label { background: linear-gradient(90deg, #25203a, #3a2141); border: 1px solid var(--vice-line); }
.darkmode-ball { background: var(--vice-gradient); }

@keyframes vice-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes vice-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(.5deg); }
}

.vice-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.75,.25,1);
}

.vice-reveal.vice-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    #navbar .vice-brand { margin-right: auto; }
    .ui.masthead.vice-hero { min-height: 36rem; padding: 5rem 0; background-position: 62% center; }
    .ui.masthead.vice-hero .vice-hero-copy { width: 72% !important; text-align: left !important; }
    .vice-server-column { display: none !important; }
}

@media (max-width: 768px) {
    #navbar.ui.secondary.menu { padding: .55rem 1rem; }
    #navbar.ui.secondary.menu .vice-brand { display: flex !important; }
    #navbar.ui.secondary.menu .toc.item { display: flex; margin-left: auto; color: #fff !important; background: rgba(255,255,255,.08); }
    #navbar .right.menu { display: none; }
    .ui.masthead.vice-hero { min-height: 34rem; margin-bottom: 2.6rem; padding: 4.5rem 1rem; border-radius: 0 0 2.5rem 0; background-position: 66% center; }
    .ui.masthead.vice-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5,4,13,.25); }
    .ui.masthead.vice-hero .vice-hero-copy { width: 100% !important; }
    .ui.masthead.vice-hero h1 { font-size: clamp(3.5rem, 17vw, 5.2rem); }
    .ui.masthead.vice-hero h1 em { transform: rotate(-5deg) translate(.15em, -.03em); }
    .vice-section-heading { gap: 1rem; }
    .vice-section-line { display: none; }
    #footer.ui.inverted.segment { border-radius: 2.5rem 0 0; }
}

@media (max-width: 480px) {
    .vice-brand-copy { display: none; }
    .vice-hero-actions { align-items: stretch; flex-direction: column; }
    .vice-hero-actions .ui.button { width: 100%; }
    .ui.masthead.vice-hero .vice-hero-copy > p { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ========================================================================== */
/* VICE HORIZON 2.0 — bolder poster direction                                 */
/* ========================================================================== */

:root {
    --vice-pink: #ff2a8a;
    --vice-yellow: #ffcf40;
    --vice-coral: #ff674d;
    --vice-cyan: #25e9ff;
    --vice-black: #09070d;
    --vice-paper: #fff7ed;
    --vice-gradient: linear-gradient(120deg, #ffcf40 0%, #ff674d 30%, #ff2a8a 65%, #923cff 100%);
}

body,
body.dark,
body.pushable > .pusher,
body.dark > .pusher {
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 42, 138, .12), transparent 24rem),
        radial-gradient(circle at 12% 74%, rgba(124, 48, 255, .09), transparent 28rem),
        #09070d;
}

/* Harder, campaign-style top navigation */
#navbar.ui.secondary.menu,
body.dark #navbar.ui.secondary.menu:not(.inverted) {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
    min-height: 5rem;
    padding: .85rem max(1rem, 2vw);
    border-bottom: 1px solid rgba(255,255,255,.13);
    background: linear-gradient(180deg, rgba(4,3,8,.88), rgba(4,3,8,.28) 78%, transparent);
    box-shadow: none;
    backdrop-filter: none;
}

#navbar.ui.menu .item,
body.dark #navbar.ui.menu .item:not(.active) {
    color: rgba(255,255,255,.82) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .13em;
}

#navbar.ui.menu > .ui.container > .item:not(.vice-brand):hover,
#navbar.ui.menu > .ui.container > .active.item {
    color: #fff !important;
    background: rgba(255,42,138,.16);
}

#navbar.ui.menu > .ui.container > .active.item::after {
    left: 18%;
    right: 18%;
    bottom: -.95rem;
    height: 3px;
    background: var(--vice-pink);
    box-shadow: 0 0 18px var(--vice-pink);
}

#navbar .vice-brand { gap: .8rem; margin-right: 1.8rem; }

.vice-brand-mark {
    position: relative;
    width: 3rem;
    height: 3rem;
    overflow: visible;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 0;
    background: var(--vice-gradient);
    box-shadow: 4px 4px 0 #101018, 0 0 30px rgba(255,42,138,.4);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transform: rotate(-4deg);
}

.vice-brand-mark b {
    color: #fff;
    font: italic 1000 1.35rem/.9 Impact, Haettenschweiler, sans-serif;
    letter-spacing: -.08em;
    text-shadow: 2px 2px 0 rgba(70,10,75,.8);
    transform: skew(-6deg);
}

.vice-brand-copy strong { font: 900 1rem/1 Impact, Haettenschweiler, sans-serif; letter-spacing: .06em; }
.vice-brand-copy small { color: var(--vice-yellow); font-size: .46rem; font-weight: 900; }

#navbar .right.menu .ui.button,
#navbar .right.menu .ui.label {
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 0;
    clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

/* Full cinematic game-poster hero */
.ui.masthead.vice-hero {
    min-height: min(50rem, 92vh);
    margin: 0;
    padding: 8.5rem 0 9rem;
    border-radius: 0;
    background-image:
        linear-gradient(90deg, rgba(5,3,9,.98) 0%, rgba(5,3,9,.86) 25%, rgba(5,3,9,.24) 56%, rgba(5,3,9,.04) 78%),
        linear-gradient(0deg, rgba(5,3,9,.9) 0%, transparent 28%, rgba(5,3,9,.18) 100%),
        url('../assets/images/vice-horizon-v2.png');
    background-position: center center;
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.4rem), 62% 100%, 0 calc(100% - 1.4rem));
}

.ui.masthead.vice-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(112deg, transparent 42%, rgba(255,42,138,.08) 42.2%, transparent 42.7%),
        linear-gradient(112deg, transparent 45%, rgba(255,207,64,.07) 45.2%, transparent 45.6%);
    pointer-events: none;
}

.ui.masthead.vice-hero::after {
    inset: auto auto -5rem -5%;
    width: 62%;
    height: 12rem;
    opacity: .42;
    background: linear-gradient(90deg, var(--vice-pink), var(--vice-coral));
    filter: blur(90px);
}

.vice-hero-noise {
    opacity: .32;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px),
        radial-gradient(rgba(255,255,255,.18) .5px, transparent .8px);
    background-size: auto, 5px 5px;
    mix-blend-mode: soft-light;
}

.vice-sun { display: none; }

.vice-hero-roman {
    position: absolute;
    left: 39%;
    top: 51%;
    z-index: -1;
    color: transparent;
    font: italic 1000 clamp(17rem, 31vw, 32rem)/.7 Impact, Haettenschweiler, sans-serif;
    letter-spacing: -.13em;
    -webkit-text-stroke: 3px rgba(255,255,255,.16);
    text-shadow: 18px 20px 0 rgba(255,42,138,.05);
    transform: translate(-50%, -50%) rotate(-6deg);
    user-select: none;
}

.vice-hero-rail {
    position: absolute;
    left: max(1rem, calc((100vw - 1280px) / 2 - 3.6rem));
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255,255,255,.42);
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .25em;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left top;
}

.vice-hero-rail i { width: 2rem; height: 1px; background: var(--vice-pink); }
.vice-hero-grid { position: relative; z-index: 3; }

.ui.masthead.vice-hero .vice-hero-copy { padding-left: 2rem; }

.vice-kicker {
    padding: .5rem .75rem .45rem;
    color: #120811;
    background: var(--vice-yellow);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .62rem;
    letter-spacing: .22em;
    box-shadow: 6px 6px 0 var(--vice-pink);
    transform: rotate(-1deg);
}

.vice-kicker .circle.icon { color: var(--vice-pink); filter: none; }

.ui.masthead.vice-hero h1 {
    max-width: 680px;
    margin: 1.25rem 0 1.4rem;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(4.8rem, 8.2vw, 8.6rem);
    line-height: .74;
    letter-spacing: -.035em;
    text-transform: uppercase;
    text-shadow: 6px 8px 0 rgba(0,0,0,.5), 0 20px 55px rgba(0,0,0,.45);
    transform: skew(0, -1deg);
}

.ui.masthead.vice-hero h1 span {
    max-width: 8ch;
    overflow-wrap: break-word;
}

.ui.masthead.vice-hero h1 em {
    display: block;
    width: max-content;
    margin: -.04em 0 0 .35em;
    padding: 0 .16em .09em .05em;
    color: #ff3b94;
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: .57em;
    line-height: .95;
    background: none;
    -webkit-text-fill-color: #ff3b94;
    -webkit-text-stroke: 1px rgba(255,255,255,.15);
    filter: drop-shadow(3px 4px 0 #551457) drop-shadow(0 0 20px rgba(255,42,138,.35));
    transform: rotate(-7deg);
}

.ui.masthead.vice-hero .vice-hero-copy > p {
    max-width: 500px;
    margin-bottom: 2.2rem;
    padding-left: 1rem;
    color: rgba(255,255,255,.78);
    border-left: 4px solid var(--vice-pink);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.65;
    text-shadow: 0 2px 10px #000;
}

.vice-hero-actions { gap: .7rem; }

.vice-hero-actions .ui.button {
    min-width: 12rem;
    padding: 1.2rem 1.7rem;
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    font-size: .68rem;
    letter-spacing: .14em;
}

.vice-hero-actions .ui.primary.button {
    color: #140813;
    background: var(--vice-yellow);
    box-shadow: 7px 7px 0 var(--vice-pink);
}

.vice-hero-actions .ui.primary.button:hover {
    color: #fff;
    background: var(--vice-pink);
    box-shadow: 7px 7px 0 var(--vice-yellow);
}

.vice-hero-actions .ui.basic.inverted.button {
    border: 1px solid rgba(255,255,255,.45) !important;
    background: rgba(5,3,10,.48) !important;
    backdrop-filter: blur(9px);
}

.ui.masthead .vice-server-column .connect-server {
    position: absolute;
    right: 1.2rem;
    bottom: -14rem;
    width: 14.5rem;
    padding: 1.15rem 1.25rem;
    border: 0;
    border-left: 4px solid var(--vice-cyan);
    border-radius: 0;
    background: rgba(7,5,14,.82);
    box-shadow: 10px 10px 0 rgba(255,42,138,.75), 0 18px 60px rgba(0,0,0,.4);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    animation: none;
    backdrop-filter: blur(12px);
}

.ui.masthead .connect-server::before { height: 2px; background: var(--vice-cyan); }
.vice-live { margin-bottom: .7rem; color: var(--vice-cyan); }
.ui.masthead .connect-server .ui.header:first-of-type { font: 900 1.15rem/1.2 Arial, sans-serif; }

/* Angled campaign ticker */
.vice-city-strip {
    position: relative;
    z-index: 12;
    width: 106%;
    margin: -4.9rem 0 4rem -3%;
    padding: 1.05rem 0;
    overflow: hidden;
    color: #120711;
    background: var(--vice-yellow);
    border-top: 3px solid #140b12;
    border-bottom: 3px solid #140b12;
    box-shadow: 0 8px 0 var(--vice-pink), 0 18px 40px rgba(0,0,0,.28);
    transform: rotate(-1.35deg);
}

.vice-city-strip-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.2rem, 3vw, 3.5rem);
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
    font: 900 clamp(.72rem, 1vw, .92rem)/1 Arial, sans-serif;
    letter-spacing: .12em;
}

.vice-city-strip-track span b { margin-right: .45rem; color: var(--vice-pink); font-family: Impact, sans-serif; font-size: 1.4em; }
.vice-city-strip-track .star.icon { margin: 0; color: var(--vice-pink); }

/* Content now feels like editorial game campaign pages */
.vice-section-heading { margin: 0 0 2.6rem; align-items: center; }
.vice-section-heading .vice-kicker { color: var(--vice-paper); background: var(--vice-pink); box-shadow: 5px 5px 0 var(--vice-yellow); }

.vice-section-heading h2 {
    margin-top: 1.1rem;
    color: var(--vice-paper);
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .82;
    letter-spacing: -.025em;
    text-shadow: 5px 6px 0 rgba(255,42,138,.16);
}

.vice-section-heading h2 em {
    display: inline-block;
    color: var(--vice-pink);
    font-size: .8em;
    filter: drop-shadow(3px 3px 0 #54134e);
    transform: rotate(-5deg);
}

.vice-section-line { height: 4px; background: linear-gradient(90deg, var(--vice-pink), var(--vice-yellow), transparent); }

.ui.card,
.ui.cards > .card,
.ui.segment,
.ui.attached.segment,
body.dark .ui.card,
body.dark .ui.segment,
body.dark .ui.segment.attached:not(.basic),
body.dark .ui.vertical.menu {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 0;
    background: linear-gradient(145deg, #17121e, #0e0b13);
    box-shadow: 10px 10px 0 rgba(255,42,138,.045), 0 24px 60px rgba(0,0,0,.25);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

#news-post { margin-bottom: 2rem; }
#news-post::before { height: 7px; background: var(--vice-gradient); }
#news-post::after {
    content: none;
    position: absolute;
    top: 1.5rem;
    right: -2.65rem;
    width: 10rem;
    padding: .38rem 0;
    color: #120811;
    background: var(--vice-yellow);
    font: 900 .55rem/1 Arial, sans-serif;
    letter-spacing: .15em;
    text-align: center;
    transform: rotate(45deg);
}

#news-post:hover { transform: translate(-3px, -5px); border-color: rgba(255,42,138,.45); box-shadow: 13px 15px 0 rgba(255,42,138,.12), 0 28px 65px rgba(0,0,0,.34); }
#news-post > .content { padding: 2rem; }
#news-post .header a { font-family: Impact, Haettenschweiler, sans-serif; font-size: 1.75rem; letter-spacing: .02em; text-transform: uppercase; }
#news-post .meta { color: var(--vice-yellow) !important; }
#news-post .extra.content { background: #0a080d; }

.ui.primary.button,
.ui.primary.buttons .button,
body.dark .ui.primary.button {
    border-radius: 0;
    color: #120811;
    background: var(--vice-yellow);
    box-shadow: 4px 4px 0 var(--vice-pink);
    clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
    font-weight: 900;
    text-transform: uppercase;
}

.ui.primary.button:hover { color: #fff; background: var(--vice-pink); }

.ui.top.attached.header,
body.dark .ui.top.attached.header,
.ui.card > .content.header,
body.dark .ui.card > .content.header {
    border: 0;
    border-bottom: 3px solid var(--vice-pink);
    background: #18121f;
    font-family: Arial, sans-serif;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

#footer.ui.inverted.segment {
    border-radius: 0;
    clip-path: polygon(0 2.4rem, 36% 0, 100% 1.4rem, 100% 100%, 0 100%);
    background:
        linear-gradient(110deg, rgba(255,42,138,.12), transparent 38%),
        #09070d;
}

@media (max-width: 1100px) {
    .vice-hero-rail { display: none; }
    .ui.masthead.vice-hero .vice-hero-copy { padding-left: 1rem; }
    .vice-city-strip-track { justify-content: flex-start; padding-left: 2rem; }
}

@media (max-width: 991px) {
    .ui.masthead.vice-hero {
        min-height: 45rem;
        padding-top: 9rem;
        background-image:
            linear-gradient(90deg, rgba(5,3,9,.94) 0%, rgba(5,3,9,.66) 52%, rgba(5,3,9,.16) 100%),
            linear-gradient(0deg, rgba(5,3,9,.88), transparent 45%),
            url('../assets/images/vice-horizon-v2.png');
        background-position: 64% center;
    }
    .ui.masthead.vice-hero .vice-hero-copy { width: 70% !important; }
    .vice-hero-roman { left: 34%; opacity: .7; }
}

@media (max-width: 768px) {
    #navbar.ui.secondary.menu { min-height: 4.3rem; padding: .55rem 1rem; }
    .vice-brand-mark { width: 2.65rem; height: 2.65rem; }
    .ui.masthead.vice-hero {
        min-height: 43rem;
        padding: 8rem 1rem 8.5rem;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 58% 100%, 0 calc(100% - .8rem));
        background-image:
            linear-gradient(90deg, rgba(5,3,9,.93), rgba(5,3,9,.6) 65%, rgba(5,3,9,.24)),
            linear-gradient(0deg, rgba(5,3,9,.9), transparent 45%),
            url('../assets/images/vice-horizon-v2.png');
        background-position: 68% center;
    }
    .ui.masthead.vice-hero .vice-hero-copy { width: 100% !important; padding-left: 0; }
    .ui.masthead.vice-hero h1 { font-size: clamp(4rem, 18vw, 6.4rem); }
    .ui.masthead.vice-hero h1 span { max-width: 7ch; }
    .ui.masthead.vice-hero .vice-hero-copy > p { max-width: 26rem; font-size: .95rem; }
    .vice-hero-roman { left: 45%; top: 47%; font-size: 19rem; opacity: .62; }
    .vice-city-strip { margin-top: -3.7rem; margin-bottom: 3.3rem; }
    .vice-city-strip-track { animation: vice-marquee 14s linear infinite; }
    .vice-section-heading h2 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
    #news-post > .content { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .ui.masthead.vice-hero { background-position: 71% center; }
    .ui.masthead.vice-hero h1 em { margin-left: .08em; }
    .vice-hero-actions .ui.button { min-width: 0; }
    .vice-city-strip { width: 112%; margin-left: -6%; }
}

@keyframes vice-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-38%); }
}

/* ========================================================================== */
/* VICE HORIZON 2.1 — floating pill navigation + editable copy                */
/* ========================================================================== */

#navbar.ui.secondary.menu,
body.dark #navbar.ui.secondary.menu:not(.inverted) {
    top: 1.25rem;
    right: auto;
    left: 50%;
    width: min(1320px, calc(100% - 2.5rem));
    min-height: 4.65rem;
    padding: .55rem .75rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: linear-gradient(115deg, rgba(12,8,18,.9), rgba(27,12,31,.78));
    box-shadow:
        0 22px 55px rgba(0,0,0,.38),
        0 0 0 1px rgba(255,42,138,.06),
        inset 0 1px rgba(255,255,255,.1);
    transform: translateX(-50%);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
}

#navbar > .ui.container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

#navbar.ui.menu .item,
body.dark #navbar.ui.menu .item:not(.active) {
    border-radius: 999px;
}

#navbar.ui.menu > .ui.container > .item:not(.vice-brand):hover,
#navbar.ui.menu > .ui.container > .active.item {
    background: linear-gradient(110deg, rgba(255,42,138,.2), rgba(146,60,255,.14));
}

#navbar.ui.menu > .ui.container > .active.item::after {
    right: 28%;
    bottom: .15rem;
    left: 28%;
    border-radius: 999px;
}

#navbar .vice-brand {
    margin-right: 1rem;
    padding: .25rem .9rem .25rem .25rem;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
}

.vice-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    box-shadow: 3px 3px 0 #101018, 0 0 26px rgba(255,42,138,.38);
    clip-path: none;
}

#navbar .right.menu .ui.button,
#navbar .right.menu .ui.label {
    border-radius: 999px;
    clip-path: none;
}

/* The ribbon text is markup now so it can be edited in theme settings. */
#news-post::after { content: none; display: none; }

.vice-news-ribbon {
    position: absolute;
    top: 1.5rem;
    right: -2.65rem;
    z-index: 3;
    width: 10rem;
    padding: .38rem 0;
    color: #120811;
    background: var(--vice-yellow);
    font: 900 .55rem/1 Arial, sans-serif;
    letter-spacing: .15em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
}

@media (max-width: 1180px) {
    #navbar.ui.secondary.menu,
    body.dark #navbar.ui.secondary.menu:not(.inverted) {
        width: calc(100% - 1.5rem);
    }

    #navbar .vice-brand-copy { display: none; }
    #navbar .vice-brand { padding-right: .25rem; }
}

@media (max-width: 768px) {
    #navbar.ui.secondary.menu,
    body.dark #navbar.ui.secondary.menu:not(.inverted) {
        top: .65rem;
        width: calc(100% - 1rem);
        min-height: 3.85rem;
        padding: .35rem .45rem;
        border-radius: 999px;
    }

    #navbar .vice-brand {
        margin-right: auto;
        padding: .15rem;
    }

    .vice-brand-mark {
        width: 2.65rem;
        height: 2.65rem;
    }

    #navbar.ui.secondary.menu .toc.item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.7rem;
        height: 2.7rem;
        margin: 0 0 0 auto;
        padding: 0;
        border-radius: 50%;
        background: var(--vice-gradient);
    }
}
