/*
 * ror-classic chrome. The rules below are copied from the main site's
 * phpBB style (forum/styles/dawar/theme/stylesheet.css, common.css and the
 * prosilver base) so the top bar, header, navblock and footer are pixel
 * identical. Only image paths and a handful of responsive tweaks differ.
 * Application content is styled in resources/css/app.css via tokens.
 */

/* Page ------------------------------------------------------------------ */
html:where(.ror-shared-chrome, .ror-shared-chrome *) {
    height: 100%;
    background-color: transparent;
}

body:where(.ror-shared-chrome, .ror-shared-chrome *) {
    color: var(--ror-text);
    background: var(--ror-bg) var(--ror-bg-image) no-repeat top center fixed;
    margin: 0;
    padding: 0;
    font-family: var(--ror-font);
    font-size: var(--ror-font-size);
}

#wrap:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border: none;
    border-radius: 0;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1152px;
    min-height: calc(100vh - 241px);
}

body.topbar-fixed #wrap:where(.ror-shared-chrome, .ror-shared-chrome *) {
    margin-top: 41px;
}

#page-header:where(.ror-shared-chrome, .ror-shared-chrome *) {
    position: relative;
}

#page-body:where(.ror-shared-chrome, .ror-shared-chrome *) {
    margin: 4px 0;
    padding: 10px 30px 38px;
    position: relative;
    clear: both;
}

.anchor:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: block;
    position: absolute;
    top: -20px;
}

.hidden:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: none !important;
}

.clear:where(.ror-shared-chrome, .ror-shared-chrome *) {
    clear: both;
    display: block;
}

/* Icon font: the main site declares Font Awesome 4.7 as "FontAwesome" after
   FA6 loads, so the small-icon glyphs are the 4.7 drawings. Same here. */
@font-face {
    font-family: 'FontAwesome';
    src: url('plugin_file.php?file=RoRTheme/assets/fonts/fontawesome-webfont.woff2') format('woff2'),
         url('plugin_file.php?file=RoRTheme/assets/fonts/fontawesome-webfont.woff') format('woff'),
         url('plugin_file.php?file=RoRTheme/assets/fonts/fontawesome-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* Links (stylesheet.css:178) ------------------------------------------- */
a:where(.ror-shared-chrome, .ror-shared-chrome *) { color: #F90; text-decoration: none; }
a:hover:where(.ror-shared-chrome, .ror-shared-chrome *) { color: #FFFFFF; }
a:active:where(.ror-shared-chrome, .ror-shared-chrome *) { color: #FF761E; }

/* Top bar (stylesheet.css:2587) ------------------------------------------ */
#top-bar:where(.ror-shared-chrome, .ror-shared-chrome *) {
    background: url('plugin_file.php?file=RoRTheme/assets/images/bar-bg-red.jpg') no-repeat scroll 50% 100% #2a0304;
    border-bottom: 1px solid #7e0505;
    box-shadow: 0 0 3px 3px #000000;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 40px;
    color: #FFF;
    text-shadow: 1px 1px #000000;
    position: relative;
    z-index: 1;
}

#top-bar > .inner:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border-right: 3px solid #450404;
    border-left: 1px solid #230101;
    height: 40px;
    margin: 0 auto;
    max-width: 990px;
    box-sizing: border-box;
}

#top-bar .linklist > li:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border-left: 2px solid #450404;
    border-right: 1px solid #230101;
    margin: 0;
    padding: 0 10px;
    font-size: inherit;
    line-height: inherit;
}

/* Links keep the site-wide orange (a { color: #F90 }); nothing in the bar overrides it. */
#top-bar .linklist > li > a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    text-decoration: none;
}

#top-bar .linklist > li.link:where(.ror-shared-chrome, .ror-shared-chrome *) {
    padding: 0;
}

#top-bar .linklist > li.link > a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    padding: 0 15px !important;
    display: block;
    font-weight: bold;
}

#top-bar .linklist > li.link > a:hover:where(.ror-shared-chrome, .ror-shared-chrome *) {
    background-color: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 7px rgba(255, 255, 255, 0.4);
}

#top-bar .right:where(.ror-shared-chrome, .ror-shared-chrome *) {
    float: right;
}

/* Responsive menu in the top bar (stylesheet.css:2634 + 2344) ----------- */
#top-bar li.responsive-menu:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border: none !important;
    line-height: 20px;
    margin: 5px;
    padding: 3px;
    position: relative;
}

ul.linklist li.responsive-menu a.responsive-menu-link:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: inline-block;
    margin: 0 5px;
    font-size: 0;
    height: 22px;
    width: 16px;
    line-height: 1.2em;
    text-align: center;
    text-decoration: none;
    position: relative;
}

ul.linklist li.responsive-menu a.responsive-menu-link:where(.ror-shared-chrome, .ror-shared-chrome *):before {
    border: none;
    content: '\f0c9';
    color: #888;
    font-family: FontAwesome;
    font-size: 14px !important;
    line-height: 22px !important;
    position: relative;
    height: auto;
    width: auto;
    left: auto;
    top: auto;
}

ul.linklist li.responsive-menu a.responsive-menu-link:hover:where(.ror-shared-chrome, .ror-shared-chrome *):before,
ul.linklist li.responsive-menu.dropdown-visible a.responsive-menu-link:where(.ror-shared-chrome, .ror-shared-chrome *):before {
    color: #FFF;
}

#top-bar .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *) {
    top: 30px;
    left: -6px;
    line-height: 2.2;
    text-shadow: none;
    font-size: 13px;
}

#top-bar .dropdown .dropdown-contents:where(.ror-shared-chrome, .ror-shared-chrome *) {
    min-width: 200px;
    max-height: 70vh;
}

#top-bar .dropdown li:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border-left: 0;
    border-right: 0;
    padding: 0;
    margin: 0;
    height: auto;
    line-height: normal !important;
}

#top-bar .dropdown li a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    padding: 6px 8px;
}

body.topbar-fixed #top-bar:where(.ror-shared-chrome, .ror-shared-chrome *) {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 40;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

body.topbar .navblock:where(.ror-shared-chrome, .ror-shared-chrome *) {
    margin-top: 1px;
    margin-right: 33px;
}

/* Link lists (common.css:311 + stylesheet.css:2753) ---------------------- */
ul.linklist:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: block;
    margin: 0;
    padding: 0;
}

ul.linklist > li:where(.ror-shared-chrome, .ror-shared-chrome *) {
    float: left;
    font-size: 0.9em;
    line-height: 2.2em;
    list-style-type: none;
    margin-right: 10px;
    padding-top: 1px;
    width: auto;
}

ul.linklist > li.rightside:where(.ror-shared-chrome, .ror-shared-chrome *) {
    float: right;
    margin-right: 0;
    margin-left: 10px;
    text-align: right;
}

ul.linklist > li a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    text-decoration: none;
}

ul.linklist > li a:hover:where(.ror-shared-chrome, .ror-shared-chrome *) {
    text-decoration: none;
}

ul.linklist.bulletin > li:where(.ror-shared-chrome, .ror-shared-chrome *):before {
    display: inline-block;
    content: "\2022";
    font-size: inherit;
    line-height: inherit;
    padding-right: 4px;
}

ul.linklist.bulletin > li:first-child:where(.ror-shared-chrome, .ror-shared-chrome *):before,
ul.linklist.bulletin > li.rightside:last-child:where(.ror-shared-chrome, .ror-shared-chrome *):before,
ul.linklist.bulletin > li.no-bulletin:where(.ror-shared-chrome, .ror-shared-chrome *):before {
    content: none;
}

ul.linklist > li.active > a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    text-shadow: 0 0 7px rgba(255, 153, 0, 0.5);
}

/* Icons (stylesheet.css:2780) -------------------------------------------- */
.small-icon:where(.ror-shared-chrome, .ror-shared-chrome *) {
    background: none !important;
    padding: 0;
    position: relative;
}

.small-icon > a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.small-icon > a:where(.ror-shared-chrome, .ror-shared-chrome *):before,
.small-icon > form > a:where(.ror-shared-chrome, .ror-shared-chrome *):before,
#top-bar .small-icon:where(.ror-shared-chrome, .ror-shared-chrome *):before {
    display: inline-block;
    font-family: FontAwesome;
    color: #888;
    text-shadow: 0 0 5px #000;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: inherit;
    text-decoration: none;
    padding-right: 3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.small-icon > a:hover:where(.ror-shared-chrome, .ror-shared-chrome *):before {
    color: #FFF;
    text-shadow: 0 0 16px #009CFF;
}

.dropdown-contents .small-icon > a:where(.ror-shared-chrome, .ror-shared-chrome *):before,
.dropdown-contents .small-icon > form > a:where(.ror-shared-chrome, .ror-shared-chrome *):before {
    width: 1.28571em;
    text-align: center;
}

#top-bar .small-icon:where(.ror-shared-chrome, .ror-shared-chrome *):before,
#top-bar .small-icon.link > a:where(.ror-shared-chrome, .ror-shared-chrome *):before {
    color: inherit;
    padding-right: 5px;
}

/* main site top bar icons */
.small-icon.icon-home > a:where(.ror-shared-chrome, .ror-shared-chrome *):before        { content: '\f015'; }
.small-icon.icon-download > a:where(.ror-shared-chrome, .ror-shared-chrome *):before    { content: '\f0ed'; }
.small-icon.icon-join > a:where(.ror-shared-chrome, .ror-shared-chrome *):before        { content: '\f090'; }
.small-icon.icon-forum > a:where(.ror-shared-chrome, .ror-shared-chrome *):before       { content: '\f0e6'; }
.small-icon.icon-whosonline > a:where(.ror-shared-chrome, .ror-shared-chrome *):before  { content: '\f0c0'; }
.small-icon.icon-killboard > a:where(.ror-shared-chrome, .ror-shared-chrome *):before   { content: '\e561'; }
.small-icon.icon-armory > a:where(.ror-shared-chrome, .ror-shared-chrome *):before      { content: '\f132'; }
.small-icon.icon-bugtracker > a:where(.ror-shared-chrome, .ror-shared-chrome *):before  { content: '\f013'; }
.small-icon.icon-builder > a:where(.ror-shared-chrome, .ror-shared-chrome *):before     { content: '\f0e3'; }
.small-icon.icon-about > a:where(.ror-shared-chrome, .ror-shared-chrome *):before       { content: '\f128'; }
.small-icon.icon-wiki > a:where(.ror-shared-chrome, .ror-shared-chrome *):before        { content: '\f266'; }
.small-icon.icon-facebook > a:where(.ror-shared-chrome, .ror-shared-chrome *):before    { content: '\f09a'; }
.small-icon.icon-twitter > a:where(.ror-shared-chrome, .ror-shared-chrome *):before     { content: '\f099'; }
.small-icon.icon-youtube > a:where(.ror-shared-chrome, .ror-shared-chrome *):before     { content: '\f167'; }
.small-icon.icon-discord > a:where(.ror-shared-chrome, .ror-shared-chrome *):before     { content: '\f392'; }
/* navblock / dropdown icons (phpBB set plus registry additions) */
.small-icon.icon-faq > a:where(.ror-shared-chrome, .ror-shared-chrome *):before         { content: '\f059'; }
.small-icon.icon-logout > a:where(.ror-shared-chrome, .ror-shared-chrome *):before,
.small-icon.icon-logout > form > a:where(.ror-shared-chrome, .ror-shared-chrome *):before { content: '\f011'; }
.small-icon.icon-key > a:where(.ror-shared-chrome, .ror-shared-chrome *):before         { content: '\f084'; }
.small-icon.icon-register > a:where(.ror-shared-chrome, .ror-shared-chrome *):before    { content: '\f044'; }
.small-icon.icon-ucp > a:where(.ror-shared-chrome, .ror-shared-chrome *):before         { content: '\f013'; }
.small-icon.icon-profile > a:where(.ror-shared-chrome, .ror-shared-chrome *):before     { content: '\f007'; }
.small-icon.icon-mcp > a:where(.ror-shared-chrome, .ror-shared-chrome *):before         { content: '\f0e3'; }
.small-icon.icon-acp > a:where(.ror-shared-chrome, .ror-shared-chrome *):before         { content: '\f085'; }
.small-icon.icon-search > a:where(.ror-shared-chrome, .ror-shared-chrome *):before      { content: '\f002'; }
.small-icon.icon-addons > a:where(.ror-shared-chrome, .ror-shared-chrome *):before      { content: '\f12e'; }
.small-icon.icon-collections > a:where(.ror-shared-chrome, .ror-shared-chrome *):before { content: '\f5fd'; }
.small-icon.icon-upload > a:where(.ror-shared-chrome, .ror-shared-chrome *):before      { content: '\f093'; }

/* Header bar (stylesheet.css:77) ----------------------------------------- */
.headerbar:where(.ror-shared-chrome, .ror-shared-chrome *) {
    background: transparent none repeat-x 0 0;
    margin: 0 0 4px;
    min-height: 175px;
    padding: 0;
    position: relative;
    border-radius: 7px;
}

.headerbar > .inner:where(.ror-shared-chrome, .ror-shared-chrome *):after {
    clear: both;
    content: '';
    display: block;
}

#logo:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: block;
    height: 150px;
    padding: 0;
    line-height: 0;
    margin: 10px 10px 25px 10px;
    background: none no-repeat;
}

#logo > img:where(.ror-shared-chrome, .ror-shared-chrome *) {
    height: auto;
    vertical-align: middle;
}

#logo:hover:where(.ror-shared-chrome, .ror-shared-chrome *) {
    text-decoration: none;
}

#site-description:where(.ror-shared-chrome, .ror-shared-chrome *) {
    overflow: hidden;
    width: 100%;
}

#site-description h1:where(.ror-shared-chrome, .ror-shared-chrome *),
#site-description p:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: none;
}

/* Quick search in the header (stylesheet.css:1724) ----------------------- */
.search-header:where(.ror-shared-chrome, .ror-shared-chrome *) {
    background: rgba(40, 40, 40, 0.25);
    border: 1px solid #5e5850;
    /* the forum sits this on top of its navbar; we have no bar below it, so close the box */
    border-radius: 3px;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.5);
    position: absolute;
    float: none;
    height: 45px;
    width: 270px;
    bottom: 0;
    right: 35px;
    text-align: left;
    margin: 0;
}

.search-header fieldset:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border: 0;
    margin: 0;
    padding: 0;
}

.search-header input:where(.ror-shared-chrome, .ror-shared-chrome *) {
    vertical-align: top;
}

.search-header .inputbox:where(.ror-shared-chrome, .ror-shared-chrome *) {
    margin: 7px -7px 0 6px;
    padding: 4px;
    width: 200px;
    height: 31px;
    line-height: 15px;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid #5e5850;
    border-radius: 3px;
    color: #e3d6c4;
    font-family: var(--ror-font);
    font-size: 12px;
    box-sizing: border-box;
}

.search-header .inputbox:focus:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border: 1px solid #FF761E;
    outline: none;
}

.search-header button.search-icon:where(.ror-shared-chrome, .ror-shared-chrome *) {
    background: url('plugin_file.php?file=RoRTheme/assets/images/loupe.png') no-repeat;
    height: 40px;
    width: 40px !important;
    border: none;
    border-radius: 0;
    top: 6px;
    left: 25px;
    padding: 0;
    font-size: 0;
    box-shadow: none;
    position: relative;
    cursor: pointer;
}

/* Navblock: the forum's user box (stylesheet.css:283) -------------------- */
.navblock:where(.ror-shared-chrome, .ror-shared-chrome *) {
    padding: 1px 2px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
}

.navblock > .inner:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border-radius: 0 0 3px 3px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid #5e5850;
    border-top: none;
    padding: 10px;
}

.navblock > .inner:where(.ror-shared-chrome, .ror-shared-chrome *):after {
    clear: both;
    content: '';
    display: block;
}

.navblock .linklist:where(.ror-shared-chrome, .ror-shared-chrome *) {
    padding: 2px 0;
}

.navblock .linklist > li:where(.ror-shared-chrome, .ror-shared-chrome *) {
    height: 24px;
}

/* Header profile + dropdown (prosilver common.css:346, dawar 2369) ------- */
.header-profile:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: inline-block;
    vertical-align: top;
}

a.header-avatar:where(.ror-shared-chrome, .ror-shared-chrome *),
a.header-avatar:hover:where(.ror-shared-chrome, .ror-shared-chrome *) {
    text-decoration: none;
}

a.header-avatar img:where(.ror-shared-chrome, .ror-shared-chrome *) {
    margin-bottom: 2px;
    max-height: 20px;
    vertical-align: middle;
    width: auto;
    margin-right: 4px;
}

a.header-avatar:where(.ror-shared-chrome, .ror-shared-chrome *):after {
    content: '\f0d7';
    font-family: FontAwesome;
    font-size: 12px;
    color: #888;
    padding-left: 5px;
}

.dropdown-container:where(.ror-shared-chrome, .ror-shared-chrome *) {
    position: relative;
}

.dropdown:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: none;
    position: absolute;
    left: 0;
    top: 1.2em;
    z-index: 2;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 9px 0 0;
    margin-right: -500px;
}

ul.linklist .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *) {
    top: 22px;
}

.dropdown-left .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *) {
    left: auto;
    right: 0;
    margin-left: -500px;
    margin-right: 0;
}

.dropdown-visible .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: block;
}

.dropdown .pointer:where(.ror-shared-chrome, .ror-shared-chrome *),
.dropdown .pointer-inner:where(.ror-shared-chrome, .ror-shared-chrome *) {
    position: absolute;
    width: 0;
    height: 0;
    border-top-width: 0;
    border-bottom: 10px solid transparent;
    border-left: 10px dashed transparent;
    border-right: 10px dashed transparent;
    -webkit-transform: rotate(360deg);
    display: block;
}

.dropdown .pointer:where(.ror-shared-chrome, .ror-shared-chrome *) {
    right: auto;
    left: 10px;
    top: -1px;
    z-index: 3;
    border-color: #666 transparent;
}

.dropdown-left .dropdown .pointer:where(.ror-shared-chrome, .ror-shared-chrome *) {
    left: auto;
    right: 10px;
}

.dropdown .pointer-inner:where(.ror-shared-chrome, .ror-shared-chrome *) {
    top: auto;
    bottom: -11px;
    left: -10px;
    border-color: #111 transparent;
}

.dropdown .dropdown-contents:where(.ror-shared-chrome, .ror-shared-chrome *) {
    z-index: 2;
    overflow: hidden;
    overflow-y: auto;
    border: 1px solid #666;
    border-radius: 5px;
    padding: 5px;
    position: relative;
    max-height: 300px;
    margin: 0;
    list-style: none;
    background: #111;
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.8);
    text-align: left;
    min-width: 160px;
}

.dropdown-contents a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: block;
    padding: 5px;
}

.dropdown li:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: list-item;
    border-top: 1px dotted #444;
    float: none !important;
    line-height: normal !important;
    font-size: 1em !important;
    list-style: none;
    margin: 0;
    white-space: nowrap;
    padding: 0;
    height: auto;
}

.dropdown li:first-child:where(.ror-shared-chrome, .ror-shared-chrome *),
.dropdown li.separator + li:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border-top: 0;
}

.dropdown li.separator:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border-top: 1px solid #444;
    padding: 0;
}

.dropdown li.separator:first-child:where(.ror-shared-chrome, .ror-shared-chrome *),
.dropdown li.separator:last-child:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: none !important;
}

/* Footer (custom returnofreckoning.css) ---------------------------------- */
#page-footer:where(.ror-shared-chrome, .ror-shared-chrome *) {
    text-shadow: 1px 1px 1px #000;
    width: 100%;
    background: url('plugin_file.php?file=RoRTheme/assets/images/footer-bg.jpg') repeat-x center bottom;
}

.footer-content:where(.ror-shared-chrome, .ror-shared-chrome *) {
    border: none;
    border-radius: 0;
    margin: 0 auto;
    padding: 0;
    min-height: 200px;
    max-width: 1152px;
}

.column:where(.ror-shared-chrome, .ror-shared-chrome *) {
    float: left;
    padding-bottom: 20px;
    width: 25%;
    text-align: left;
}

.column ul:where(.ror-shared-chrome, .ror-shared-chrome *) {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.column ul a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    color: #f90;
    text-decoration: none;
}

.column ul a:hover:where(.ror-shared-chrome, .ror-shared-chrome *) {
    color: #fff;
}

#sitemap h3:where(.ror-shared-chrome, .ror-shared-chrome *) {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 20px 0 3px;
    padding-bottom: 2px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    font-size: 1.05em;
    border-bottom: 1px solid #444;
}

#final_footer:where(.ror-shared-chrome, .ror-shared-chrome *) {
    text-align: center;
    padding-bottom: 15px;
    clear: both;
    font-size: 12px;
}

.column_ff:where(.ror-shared-chrome, .ror-shared-chrome *) {
    float: left;
    padding-bottom: 20px;
    width: 50%;
    text-align: center;
}

.cff_l:where(.ror-shared-chrome, .ror-shared-chrome *) {
    padding-top: 15px;
}

/* Responsive (dawar responsive.css, trimmed) ---------------------------- */
@media only screen and (max-width: 1100px) {
    #logo:where(.ror-shared-chrome, .ror-shared-chrome *) {
        padding-top: 70px;
    }
}

@media only screen and (max-width: 900px) {
    .column:where(.ror-shared-chrome, .ror-shared-chrome *) {
        width: 50%;
    }
}

@media only screen and (max-width: 700px) {
    body.topbar-fixed #top-bar:where(.ror-shared-chrome, .ror-shared-chrome *) {
        width: auto;
        position: relative;
        top: auto;
    }

    body.topbar-fixed #wrap:where(.ror-shared-chrome, .ror-shared-chrome *) {
        margin-top: 0;
    }

    #top-bar:where(.ror-shared-chrome, .ror-shared-chrome *),
    #top-bar > .inner:where(.ror-shared-chrome, .ror-shared-chrome *) {
        height: auto;
        line-height: 32px;
    }

    #top-bar .linklist > li:where(.ror-shared-chrome, .ror-shared-chrome *) {
        padding: 0 8px;
    }

    #logo:where(.ror-shared-chrome, .ror-shared-chrome *) {
        margin: 0;
        padding-top: 90px;
        height: auto;
    }

    #logo img:where(.ror-shared-chrome, .ror-shared-chrome *) {
        width: 100%;
    }

    .navblock:where(.ror-shared-chrome, .ror-shared-chrome *) {
        position: static;
        margin: 0 !important;
    }

    .navblock > .inner:where(.ror-shared-chrome, .ror-shared-chrome *) {
        border-top: 1px solid #5e5850;
        border-radius: 3px;
    }

    .search-header:where(.ror-shared-chrome, .ror-shared-chrome *) {
        position: static;
        width: auto;
        height: auto;
        margin: 8px 0;
        border-bottom: 1px solid #5e5850;
        border-radius: 3px;
        padding-bottom: 6px;
    }

    .search-header .inputbox:where(.ror-shared-chrome, .ror-shared-chrome *) {
        width: calc(100% - 60px);
    }

    #page-body:where(.ror-shared-chrome, .ror-shared-chrome *) {
        padding: 10px 6px 30px;
    }

    .column:where(.ror-shared-chrome, .ror-shared-chrome *),
    .column_ff:where(.ror-shared-chrome, .ror-shared-chrome *) {
        float: none;
        width: 100%;
    }

    .footer-content:where(.ror-shared-chrome, .ror-shared-chrome *) {
        padding: 0 10px;
    }
}

@media only screen and (max-width: 450px) {
    #top-bar .linklist > li > a:where(.ror-shared-chrome, .ror-shared-chrome *) {
        font-size: 0;
    }

    #top-bar .linklist > li > a:where(.ror-shared-chrome, .ror-shared-chrome *):before {
        font-size: 14px;
    }
}

/* Top bar groups: dropdowns, flyouts, mega menus (WP-21) ----------------- */
/* Made of the theme's own dropdown above (panel, pointer, rows, icons); only
   placement is added here. theme.js opens a group by adding .dropdown-visible
   and marks the bar .ror-nav-js; without scripts a group opens on hover and
   on focus. */

#top-bar > .inner:where(.ror-shared-chrome, .ror-shared-chrome *) {
    position: relative; /* a mega panel spans the bar's content */
}

/* The caret the forum's own dropdowns carry (a.header-avatar:after). */
#top-bar .ror-nav-group > .ror-nav-trigger:where(.ror-shared-chrome, .ror-shared-chrome *):after,
#top-bar .ror-nav-flyout > .ror-nav-trigger:where(.ror-shared-chrome, .ror-shared-chrome *):after {
    content: '\f0d7';
    font-family: FontAwesome;
    font-size: 12px;
    color: var(--ror-muted);
    padding-left: 5px;
}

#top-bar .ror-nav-flyout > .ror-nav-trigger:where(.ror-shared-chrome, .ror-shared-chrome *):after {
    content: '\f0da';
    float: right;
    padding-left: 12px;
}

/* One level at a time: an open group does not open the flyouts inside it
   (.dropdown-visible .dropdown above reaches every level). */
#top-bar .ror-nav-group:not(.dropdown-visible) > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *),
#top-bar .ror-nav-flyout:not(.dropdown-visible) > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: none;
}

#top-bar .ror-nav-group.dropdown-visible > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *),
#top-bar .ror-nav-flyout.dropdown-visible > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *),
#top-bar:not(.ror-nav-js) .ror-nav-group:hover > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *),
#top-bar:not(.ror-nav-js) .ror-nav-group:focus-within > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *),
#top-bar:not(.ror-nav-js) .ror-nav-flyout:hover > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *),
#top-bar:not(.ror-nav-js) .ror-nav-flyout:focus-within > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: block;
}

/* A panel holding flyouts must not clip them. */
#top-bar .ror-nav-panel > .dropdown-contents:where(.ror-shared-chrome, .ror-shared-chrome *) {
    overflow: visible;
    max-height: none;
}

/* Flyout: beside its row, to the right, or to the left near the window's
   right edge (theme.js sets .ror-flyout-left). */
#top-bar .ror-flyout-panel:where(.ror-shared-chrome, .ror-shared-chrome *) {
    top: -6px;
    left: 100%;
    right: auto;
    margin: 0;
    padding: 0 0 0 4px;
}

#top-bar .ror-nav-flyout.ror-flyout-left > .ror-flyout-panel:where(.ror-shared-chrome, .ror-shared-chrome *) {
    left: auto;
    right: 100%;
    padding: 0 4px 0 0;
}

#top-bar .ror-nav-flyout.ror-flyout-left > .ror-nav-trigger:where(.ror-shared-chrome, .ror-shared-chrome *):after {
    content: '\f0d9';
}

#top-bar .ror-flyout-panel > .dropdown-contents:where(.ror-shared-chrome, .ror-shared-chrome *) {
    min-width: 180px;
}

/* Mega menu: a panel as wide as the bar's content, a column per child. */
#top-bar .ror-nav-mega.dropdown-container:where(.ror-shared-chrome, .ror-shared-chrome *) {
    position: static;
}

#top-bar .ror-mega-panel:where(.ror-shared-chrome, .ror-shared-chrome *) {
    left: 0;
    right: 0;
    margin: 0;
}

#top-bar .ror-mega-contents:where(.ror-shared-chrome, .ror-shared-chrome *) {
    min-width: 0;
    padding: 5px 12px 10px;
    white-space: normal;
}

#top-bar .ror-mega-self:where(.ror-shared-chrome, .ror-shared-chrome *) {
    list-style: none;
    margin: 0;
    padding: 0;
}

#top-bar .ror-mega-columns:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 20px;
}

#top-bar .ror-mega-cols-2:where(.ror-shared-chrome, .ror-shared-chrome *) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#top-bar .ror-mega-cols-3:where(.ror-shared-chrome, .ror-shared-chrome *) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#top-bar .ror-mega-cols-4:where(.ror-shared-chrome, .ror-shared-chrome *) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#top-bar .ror-mega-cols-5:where(.ror-shared-chrome, .ror-shared-chrome *) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#top-bar .ror-mega-cols-6:where(.ror-shared-chrome, .ror-shared-chrome *) { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* A column heading looks like the footer's (#sitemap h3). */
#top-bar .ror-mega-heading:where(.ror-shared-chrome, .ror-shared-chrome *) {
    color: var(--ror-text-strong);
    font-family: var(--ror-font-display);
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 10px 0 3px;
    padding: 0 0 2px;
    border-bottom: 1px solid var(--ror-rule);
}

#top-bar .ror-mega-heading a:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: inline;
    padding: 0;
    color: var(--ror-text-strong);
}

#top-bar .ror-mega-heading a:hover:where(.ror-shared-chrome, .ror-shared-chrome *) {
    color: var(--ror-link);
}

#top-bar .ror-mega-column ul:where(.ror-shared-chrome, .ror-shared-chrome *) {
    list-style: none;
    margin: 0;
    padding: 0;
}

#top-bar .ror-mega-column li:where(.ror-shared-chrome, .ror-shared-chrome *) {
    white-space: normal;
}

#top-bar .ror-mega-description:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: block;
    color: var(--ror-muted);
    font-size: 11px;
    padding-top: 2px;
}

@media only screen and (max-width: 900px) {
    #top-bar .ror-mega-cols-4:where(.ror-shared-chrome, .ror-shared-chrome *),
    #top-bar .ror-mega-cols-5:where(.ror-shared-chrome, .ror-shared-chrome *),
    #top-bar .ror-mega-cols-6:where(.ror-shared-chrome, .ror-shared-chrome *) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Inside the "Menu" entry a group is a heading with its links indented
   under it, opened and closed by tapping the heading. */
#top-bar .responsive-menu .ror-nav-group > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *),
#top-bar .responsive-menu .ror-nav-flyout > .dropdown:where(.ror-shared-chrome, .ror-shared-chrome *) {
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
}

#top-bar .responsive-menu .ror-nav-panel .pointer:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: none;
}

#top-bar .responsive-menu .ror-nav-panel > .dropdown-contents:where(.ror-shared-chrome, .ror-shared-chrome *) {
    min-width: 0;
    margin: 0;
    padding: 0 0 4px 16px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

#top-bar .responsive-menu .ror-nav-trigger:where(.ror-shared-chrome, .ror-shared-chrome *) {
    font-weight: bold;
}

#top-bar .responsive-menu .ror-nav-flyout > .ror-nav-trigger:where(.ror-shared-chrome, .ror-shared-chrome *):after {
    content: '\f0d7';
    float: none;
    padding-left: 5px;
}

#top-bar .responsive-menu .ror-mega-columns:where(.ror-shared-chrome, .ror-shared-chrome *) {
    display: block;
}

#top-bar .responsive-menu .ror-mega-heading:where(.ror-shared-chrome, .ror-shared-chrome *) {
    margin: 6px 0 2px;
}
