/* ForumX R105: shared settings, three distinct forum skins. */
html[data-layout]{--fx105-width:1240px;--fx105-row:12px;--fx105-cover-image:url('forumx-cover-r98.webp')}
html[data-design-width="wide"]{--fx105-width:1440px}
html[data-design-density="compact"]{--fx105-row:9px}
html[data-layout] body.fx-r98 #content.page-shell,html[data-layout] body.fx-r98 .fx98-headrow,html[data-layout] body.fx-r98 .fx98-cover-nav{max-width:var(--fx105-width)!important}
html[data-layout] body.fx-r98 #content .fx98-forum-row{min-height:72px;padding:var(--fx105-row) 14px!important}
html[data-layout] body.fx-r98 #content .fx98-category{border-radius:3px;overflow:hidden}
html[data-layout] body.fx-r98 .fx105-category-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:10px 14px;background:var(--fx98-tint);color:var(--fx98-link);font-size:14px;min-width:0}
html[data-layout] body.fx-r98 .fx105-category-heading::-webkit-details-marker{display:none}
html[data-layout] body.fx-r98 .fx105-category-heading>span{display:flex;align-items:center;gap:8px;min-width:0}
html[data-layout] body.fx-r98 .fx105-category-heading::after{content:'−';font-size:19px;margin-left:auto;flex:none}
html[data-layout] body.fx-r98 .fx98-category:not([open])>.fx105-category-heading::after{content:'+'}
html[data-layout] body.fx-r98 .fx98-category[open]>.fx105-category-heading{border-bottom:1px solid var(--fx98-line)}
html[data-layout] body.fx-r98 .fx105-category-heading p{margin:0;font-size:12px;color:var(--fx98-muted)}
html[data-layout] body.fx-r98 .fx105-category-heading:focus-visible{outline:2px solid var(--fx98-link);outline-offset:-3px}
html[data-layout] body.fx-r98 .fx105-notice{display:flex;align-items:center;gap:10px;border-left:3px solid var(--fx98-link);padding:10px 14px;margin:0 0 16px;background:var(--fx98-tint);color:var(--fx98-text);font-size:13px;overflow-wrap:anywhere}
html[data-layout] body.fx-r98 .fx105-notice .forumx-icon{flex:none}
html[data-layout] body.fx-r98 .fx98-menu{z-index:80;max-height:calc(100dvh - 65px);overflow:auto}
html[data-layout] body.fx-r98 .fx98-appearance form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html[data-layout] body.fx-r98 .fx98-appearance form label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px}
html[data-layout] body.fx-r98 .fx98-appearance form select{width:100%;min-width:0}
html[data-design-sidebar="none"] body.fx-r98 :is(.fx98-side,.fx104-side){display:none!important}
html[data-design-sidebar="none"] body.fx-r98 :is(.fx98-classic-grid,.fx104-forum-grid){grid-template-columns:minmax(0,1fr)!important}
/* Classical: tabbed masthead and clear last-post columns. */
html[data-layout="classic"] body.fx-r98 #content .fx105-category-heading{background:var(--fx98-tint);padding:8px 14px;font-size:14px}
html[data-layout="classic"] body.fx-r98 #content .fx98-forum-main strong{font-size:14px}
html[data-layout="classic"] body.fx-r98 #content .fxp-author-area{padding-top:20px!important}
html[data-layout="classic"] body.fx-r98 #content .fxp-author-area::after{content:'';position:absolute;right:-6px;top:28px;width:10px;height:10px;transform:rotate(45deg);border-top:1px solid var(--fx98-line);border-right:1px solid var(--fx98-line);background:var(--fx98-soft)}
/* Modern: single-row desktop header, lean flat categories, horizontal author area. */
html[data-layout="modern"] body.fx-r98 #content .fx105-category-heading{background:var(--fx98-panel);border-left:3px solid var(--fx98-link);padding:11px 14px}
html[data-layout="modern"] body.fx-r98 #content .fx98-category{border-radius:6px}
html[data-layout="modern"] body.fx-r98 #content .fxp-post{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"author" "meta" "body" "footer"!important;border-radius:6px!important}
html[data-layout="modern"] body.fx-r98 #content .fxp-author-area{flex-direction:row!important;justify-content:flex-start!important;padding:12px 16px!important;border-right:0!important;border-bottom:1px solid var(--fx98-line)!important;background:var(--fx98-panel)!important}
html[data-layout="modern"] body.fx-r98 #content .fxp-author-profile{flex-direction:row!important;gap:12px!important;align-items:center!important}
html[data-layout="modern"] body.fx-r98 #content .fxp-author-copy{align-items:flex-start!important;text-align:left!important}
html[data-layout="modern"] body.fx-r98 #content .fxp-author-ranks{justify-content:flex-start!important}
html[data-layout="modern"] body.fx-r98 #content :is(.fxp-avatar,.fxp-avatar-wrap){width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;flex:0 0 48px!important}
html[data-layout="modern"] body.fx-r98 #content .fxp-author-stats{display:none!important}
/* Cover: adjustable masthead, small image strips only in selected categories. */
html[data-layout="cover"] body.fx-r98 .fx98-headrow{max-width:none!important;min-height:var(--fx105-cover-height);background-image:var(--fx105-cover-image);padding-left:max(24px,calc((100vw - var(--fx105-width))/2));padding-right:max(24px,calc((100vw - var(--fx105-width))/2))}
html[data-layout="cover"] body.fx-r98 .fx98-actions{right:max(24px,calc((100vw - var(--fx105-width))/2))}
html[data-layout="cover"] body.fx-r98 #content .fx105-category-heading{background:var(--fx98-soft);border-left:3px solid var(--fx98-link)}
html[data-layout="cover"] body.fx-r98 #content .fx105-visual-category .fx98-forum-main::before{content:'';display:block;flex:0 0 74px;height:48px;border-radius:3px;background:var(--fx105-cover-image) center/cover}
html[data-layout="cover"] body.fx-r98 #content .fx105-visual-category .fx98-forum-icon{display:none}
html[data-layout="cover"] body.fx-r98 #content .fxp-author-area::before{content:'';width:calc(100% + 24px);height:44px;margin:-18px -12px 12px;background:var(--fx105-cover-image) center/cover;opacity:.8}
html[data-layout="cover"] body.fx-r98 #content .fxp-post{border-top:1px solid var(--fx98-line)!important}
@media(min-width:1001px){
 html[data-design-sidebar="left"] body.fx-r98 :is(.fx98-classic-grid,.fx104-forum-grid):not(.fx100-no-modules):not(.fx104-no-side){grid-template-columns:260px minmax(0,1fr)!important}
 html[data-design-sidebar="left"] body.fx-r98 :is(.fx98-side,.fx104-side){grid-column:1;grid-row:1}
 html[data-design-sidebar="left"] body.fx-r98 :is(.fx103-main,.fx104-main){grid-column:2;grid-row:1}
 html[data-design-sidebar="none"] body.fx-r98 :is(.fx103-main,.fx104-main){grid-column:1}
 html[data-layout]:not([data-layout="cover"])[data-design-header="inline"] body.fx-r98 .fx98-headrow{flex-wrap:nowrap;gap:24px}
 html[data-layout]:not([data-layout="cover"])[data-design-header="inline"] body.fx-r98 .fx98-primary{order:0;flex-basis:auto;border:0;height:64px;flex:1}
 html[data-layout]:not([data-layout="cover"])[data-design-header="inline"] body.fx-r98 .fx98-primary a[aria-current]{border-radius:0;background:var(--fx98-tint);color:var(--fx98-link)!important}
 html[data-layout]:not([data-layout="cover"])[data-design-sticky="1"] body.fx-r98 .fx98-header{position:sticky;top:0;z-index:70}
 html[data-layout="cover"][data-design-sticky="1"] body.fx-r98 .fx98-cover-nav{position:sticky;top:0;z-index:70}
 html[data-layout] body.fx-r98 #content .fx98-forum-row{grid-template-columns:minmax(0,1fr) 52px 60px 200px}
}
@media(max-width:1000px){
 html[data-layout] body.fx-r98 :is(.fx98-classic-grid,.fx104-forum-grid){grid-template-columns:minmax(0,1fr)!important}
 html[data-layout] body.fx-r98 :is(.fx98-side,.fx104-side){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 html[data-layout] body.fx-r98 .fx103-stat-heading{grid-column:1/-1;margin:0 0 -12px!important}
 html[data-layout] body.fx-r98 :is(.fx98-side,.fx104-side) .fx100-statistics{grid-column:1/-1}
 html[data-design-sidebar="none"] body.fx-r98 :is(.fx98-side,.fx104-side){display:none!important}
 html[data-layout] body.fx-r98 #content .fx98-forum-row{grid-template-columns:minmax(0,1fr) 48px 52px!important}
 html[data-layout] body.fx-r98 #content .fx98-last{grid-column:1/-1!important;border-left:0;padding:0 0 0 44px!important;display:flex}
 html[data-layout] body.fx-r98 #content .fx98-last img{display:none}
 html[data-layout] body.fx-r98 #content .fx98-last>span{display:flex;gap:8px;flex-wrap:wrap}
 html[data-layout] body.fx-r98 #content .fx98-last small{margin-top:0}
}
@media(max-width:760px){
 html[data-layout] body.fx-r98 .fx105-category-heading{padding:9px 12px!important;font-size:13px!important}
 html[data-layout] body.fx-r98 .fx105-category-heading p{display:none}
 html[data-layout] body.fx-r98 #content .fx98-forum-row{padding:var(--fx105-row) 10px!important;gap:8px;min-height:65px}
 html[data-layout] body.fx-r98 #content .fx98-forum-main{gap:10px}
 html[data-layout] body.fx-r98 #content .fx98-forum-main strong{font-size:14px}
 html[data-layout] body.fx-r98 #content .fx98-forum-main small{font-size:11px}
 html[data-layout] body.fx-r98 :is(.fx98-side,.fx104-side){display:flex!important}
 html[data-design-sidebar="none"] body.fx-r98 :is(.fx98-side,.fx104-side){display:none!important}
 html[data-layout="cover"] body.fx-r98 .fx98-headrow{min-height:min(var(--fx105-cover-height),150px);padding:48px 12px 16px}
 html[data-layout="cover"] body.fx-r98 .fx98-actions{right:12px}
 html[data-layout="cover"] body.fx-r98 #content .fxp-author-area::before{display:none}
 html[data-layout="classic"] body.fx-r98 #content .fxp-author-area::after{display:none}
 html[data-layout="cover"] body.fx-r98 #content .fx105-visual-category .fx98-forum-main::before{flex-basis:48px;height:40px}
 html[data-layout="cover"] body.fx-r98 #content .fx105-visual-category .fx98-last{padding-left:58px!important}
 html[data-layout="modern"] body.fx-r98 #content :is(.fxp-avatar,.fxp-avatar-wrap){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;flex:0 0 40px!important}
}
html[data-layout] body.fx-r98 .fx105-unread{display:inline-block;width:7px;height:7px;margin-left:7px;border-radius:50%;background:var(--fx98-link);vertical-align:middle}
html[data-layout] body.fx-r98 .fx98-forum-row.is-unread .fx98-forum-main strong{font-weight:750}
/* A masthead scrolls away; its navigation remains visible. */
@media(min-width:1001px){html[data-layout="cover"][data-design-sticky="1"] body.fx-r98 .fx98-header{position:sticky;top:calc(-1 * var(--fx105-cover-height));z-index:70}html[data-layout="cover"][data-design-sticky="1"] body.fx-r98 .fx98-cover-nav{position:relative}}
html[data-layout="cover"][data-design-header="inline"] body.fx-r98 .fx98-cover-nav{justify-content:flex-start;gap:32px}
html[data-layout="cover"][data-design-header="inline"] body.fx-r98 .fx98-cover-nav .fx98-create{margin-left:auto}
/* Explicit user visibility overrides the legacy community layout selectors. */
html[data-layout][data-design-sidebar="none"] body.fx-r98 #content :is(.fx98-side,.fx104-side){display:none!important}
html[data-layout][data-design-sidebar="none"] body.fx-r98 #content :is(.fx98-classic-grid,.fx104-forum-grid){grid-template-columns:minmax(0,1fr)!important}
