/* TWR Gothic — maintained stylesheet for prosilver 3.3.19.
   Conservative cleanup: preserve selector order and responsive overrides. */
@import url("../../prosilver/theme/stylesheet.css");
:root {--twr-ink:#151515;--twr-panel:#111116;--twr-panel2:#1a1821;--twr-purple:#a56ac5;--twr-border:#65406e;--twr-text:#ded9e2;--twr-red:#ad355e}
html,body {background:#09090d!important;color:var(--twr-text)}
#wrap {min-width:0;margin:0 auto 24px!important;padding:0 12px 22px!important;border:1px solid #503052!important;border-radius:0 0 9px 9px!important;box-shadow:0 8px 45px #000b;background:rgba(11,10,15,.94)!important}
/* Branded header */
#page-header .headerbar {margin:0!important;padding:0!important;border:0!important;border-radius:0!important;position:relative}
#page-header .headerbar .inner {min-height:inherit;position:relative}
#page-header .headerbar .site-description {float:none!important;width:100%;height:100%;min-height:inherit;display:block!important;text-align:center}
#page-header .headerbar .site-description h1,#page-header .headerbar .site-description p {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#page-header .headerbar .site_logo {display:none!important}
#page-header .headerbar .search-header {position:absolute;right:16px;bottom:10px;z-index:2}
/* Global navigation */
.navbar {background:linear-gradient(180deg,#231a2b,#121117)!important;color:#e6d7ee!important;border:1px solid #54345d!important;border-radius:5px!important}
#page-header .navbar {margin-top:0!important;border-top:2px solid #82458e!important}
.navbar a,.navbar a:link,.navbar a:visited,.linklist a,.linklist a:link {color:#d9b9e9!important}
.navbar a:hover,.linklist a:hover {color:#fff!important;text-shadow:0 0 8px #a56ac5}
a:link,a:visited {color:#c49adb}a:hover {color:#f3c4f0}
h1,h2,h3 {color:#e9dce9}
/* Forum categories */
.forabg,.forumbg {background:linear-gradient(180deg,#48234f,#1a111f 38px,#101014 39px)!important;border:1px solid #75417c!important;border-radius:8px!important;box-shadow:0 2px 12px #0009;margin-bottom:15px!important;padding:4px!important}
.forabg .header,.forumbg .header {background:linear-gradient(90deg,rgba(104,42,104,.5),rgba(29,15,36,.8))!important;border-bottom:1px solid #874d89!important}
.forabg .header a,.forumbg .header a,.forabg .header dt,.forumbg .header dt {color:#f2dff6!important;font-family:Georgia,'Times New Roman',serif;font-weight:normal;letter-spacing:.035em;text-shadow:0 0 9px #9c539a}
.forabg .header dt,.forumbg .header dt {font-size:1.35em!important}
.forabg ul.topiclist li,.forumbg ul.topiclist li {background:#141318!important}
.forabg ul.topiclist li.row:nth-child(even),.forumbg ul.topiclist li.row:nth-child(even) {background:#1a1720!important}
li.row:hover {background:#25202c!important}
ul.topiclist li {color:#d3cbd7!important;border-color:#443347!important}
ul.topiclist dt .forumtitle,ul.topiclist dt .topictitle {color:#e7d4ef!important}
ul.topiclist dt .forumtitle:hover,ul.topiclist dt .topictitle:hover {color:#fff!important}
.forumtitle,.topictitle {font-weight:600}
/* Post panels: never impose a new color on user-written BBCode text */
.post,.post.bg1,.post.bg2,.post.bg3,.bg1,.bg2,.bg3 {background-color:var(--twr-ink)!important;background-image:none!important;color:#d7d7d7}
.post {border:1px solid #3e3443!important;border-radius:6px!important;margin-bottom:12px!important;padding:10px!important}
.postbody {color:#d7d7d7!important}
.postbody .content {background:transparent!important}
.postbody h3 a {color:#bfa3d2!important}
.postprofile {border-color:#705278!important;color:#d4c7d9!important}
.postprofile a.username-coloured,.postprofile .username {font-weight:700}
.postprofile .avatar img {max-width:100%;height:auto}
.signature {border-top:1px solid #625169!important;padding-top:12px!important;max-width:100%}
.signature img,.postbody .content img {max-width:100%!important;height:auto!important;object-fit:contain}
.postbody .content,.signature {overflow-wrap:anywhere}
/* Buttons, forms, utilities */
.button,.button1,.button2,.dropdown-trigger {background:linear-gradient(#302039,#18131e)!important;color:#e9d6ef!important;border:1px solid #724d7d!important;border-radius:4px!important}
.button:hover,.button1:hover,.button2:hover {background:#4c2b57!important;color:#fff!important}
.panel,.cp-main .panel,.cp-mini,.dropdown .dropdown-contents {background:#1a1820!important;color:#e5dfe7!important;border:1px solid #46364c!important}
input.inputbox,textarea.inputbox,select {background:#121216!important;color:#f1e8f2!important;border:1px solid #73567a!important}
blockquote,.codebox {background:#211c26!important;border-color:#5a4162!important;color:#ded7e2!important}
blockquote blockquote {background:#29212f!important}
.pagination li a {background:#24192a!important;border-color:#65406e!important;color:#ead7ee!important}
@media (max-width:700px) {
 #wrap {width:100%;padding:0 7px 15px!important;border-left:0!important;border-right:0!important}
 #page-header .headerbar .search-header {display:none}
 .postprofile {max-width:100%}
 .forabg .header dt,.forumbg .header dt {font-size:1.05em!important}
}

/* TWR GOTHIC v1.1 — index and atmosphere refinements */
html {overflow-x:hidden}
body {overflow-x:clip}
/* Leave the cityscape visible outside a gently textured stone content panel. */
#wrap {box-sizing:border-box!important;width:calc(100% - 76px)!important;max-width:1450px!important;
 padding:0 15px 24px!important;background:linear-gradient(135deg,rgba(21,18,25,.92),rgba(9,9,13,.95) 45%,rgba(17,14,22,.93))!important;
 box-shadow:0 14px 60px #000d,0 0 0 1px #291d31!important}
/* Decorative category title bar: use the existing phpBB category links and counts. */
.forabg,.forumbg {padding:3px!important;margin-bottom:19px!important;
 background:linear-gradient(160deg,#48284f,#211524 44px,#111015 45px)!important;
 border:1px solid #704576!important;box-shadow:0 6px 18px #0009,inset 0 1px 0 #91639b55!important}
.forabg > .inner > ul.topiclist > li.header,
.forumbg > .inner > ul.topiclist > li.header,
.forabg ul.topiclist li.header,.forumbg ul.topiclist li.header {
 position:relative;background:linear-gradient(90deg,#372039 0%,#241729 60%,#1b151e 100%)!important;
 border-bottom:1px solid #86528c!important;min-height:42px;box-shadow:inset 0 1px 0 #9c5ba744!important}
.forabg ul.topiclist li.header::before,.forumbg ul.topiclist li.header::before {
 content:'✧';position:absolute;left:10px;top:50%;transform:translateY(-50%);
 font:25px Georgia,serif;color:#d2b3d9;text-shadow:0 0 10px #b360d6;pointer-events:none}
.forabg ul.topiclist li.header::after,.forumbg ul.topiclist li.header::after {
 content:'';position:absolute;left:42px;right:8px;bottom:2px;height:1px;
 background:linear-gradient(90deg,#bd79d2aa,transparent 78%);pointer-events:none}
.forabg ul.topiclist li.header dt,.forumbg ul.topiclist li.header dt {padding-left:34px!important;
 font-family:Georgia,'Times New Roman',serif!important;letter-spacing:.055em!important;font-size:1.25em!important}
.forabg ul.topiclist li.header dt a,.forumbg ul.topiclist li.header dt a,
.forabg ul.topiclist li.header .forumtitle {color:#f0d9f2!important;text-shadow:0 0 9px #9c549c88!important}
.forabg ul.topiclist li.row,.forumbg ul.topiclist li.row {border-bottom:1px solid #403045!important}
.forabg ul.topiclist li.row:hover,.forumbg ul.topiclist li.row:hover {background:#241d29!important}
/* Allow the forum and topic listing to breathe, without squeezing post content. */
#page-body {min-width:0}
#page-body .forabg,#page-body .forumbg {min-width:0}
@media (max-width:1050px) {
 #wrap {width:calc(100% - 28px)!important;padding-left:10px!important;padding-right:10px!important}

}
@media (max-width:700px) {
 #wrap {width:100%!important;max-width:100%!important;padding-left:7px!important;padding-right:7px!important}

 .forabg ul.topiclist li.header dt,.forumbg ul.topiclist li.header dt {font-size:1.03em!important}
}

/* TWR Gothic v1.2: contrast, genuine two-column index rail, responsive margins and sigils. */
:root { --twr-text:#e6e0e9; }

@media(min-width:1100px) {
 #wrap {width:calc(100% - 300px)!important;max-width:1510px!important;min-width:0!important;padding:0 16px 25px!important}

}
@media(min-width:800px) and (max-width:1099px) {
 #wrap {width:calc(100% - 200px)!important;max-width:none!important}

}
@media(max-width:799px) {#wrap{width:calc(100% - 22px)!important}}
/* Header refinement: metallic edge, occult seal and an ornamental rule, no fake categories. */
.forabg ul.topiclist li.header,.forumbg ul.topiclist li.header {min-height:51px!important;background:linear-gradient(90deg,#452747,#25182d 54%,#18131e)!important;border-top:1px solid #9d6ba3!important;border-bottom:2px solid #a56aa9!important;box-shadow:inset 0 1px 0 #ffffff1d,0 3px 12px #0008!important}
.forabg ul.topiclist li.header::before,.forumbg ul.topiclist li.header::before {content:'☽'!important;left:13px!important;color:#d7c4df!important;font-size:27px!important;text-shadow:0 0 8px #b987d8!important}
.forabg ul.topiclist li.header::after,.forumbg ul.topiclist li.header::after {left:48px!important;right:12px!important;bottom:4px!important;height:2px!important;background:linear-gradient(90deg,#bb8fc5aa,#78448444,transparent)!important}
.forabg ul.topiclist li.header dt,.forumbg ul.topiclist li.header dt {padding-left:42px!important;letter-spacing:.065em!important;font-size:1.32em!important;line-height:1.5!important}
/* Restore contrast in phpBB's default black/dark-gray UI text without touching authored inline post colors. */
body,#page-body,.panel,.cp-mini,.cp-main,.forabg,.forumbg,dl.row-item,ul.topiclist,li.row,.stat-block,.postprofile,.postbody,.content {color:#e1dbe6}
.forabg dd,.forumbg dd,.forabg dt,.forumbg dt,.responsive-show,.responsive-hide,dt,dd,.postprofile dt,.postprofile dd,.postprofile strong,.postprofile span,.postbody .author,.postbody .notice,.postbody .post-buttons,.stat-block p,.stat-block dt,.stat-block dd,.panel p,.panel dt,.panel dd,.panel label,.panel span,.panel strong,.cp-mini p,.cp-mini span,.cp-main p,.cp-main span {color:#ddd4e2}
li.header dt,li.header dd {color:#f1e3f3!important}
.forabg .header dd,.forumbg .header dd {color:#f2e4f3!important}
.forabg .row dd,.forumbg .row dd {color:#cfc4d6!important}
.forabg .row dd a,.forumbg .row dd a {color:#d7a8eb!important}
.forabg .row dd span,.forumbg .row dd span {color:#c8bacf!important}
.postbody .content a {color:#d4a1ed}
fieldset,fieldset dl,fieldset dt,fieldset dd,fieldset label,.pagination,.pagination li,.breadcrumbs,.topiclist .lastpost,.topiclist .posts,.topiclist .views,.topiclist .topics {color:#e2d9e7}
select,option,input,textarea {color:#f2e9f4!important;background-color:#17131c!important}
/* Custom sigils: phpBB prosilver row-item icon classes; no change to forum logic. */
dl.row-item.forum_read,dl.row-item.forum_read_subforum,dl.row-item.forum_link,dl.row-item.topic_read,dl.row-item.topic_read_mine {background-image:url('./images/twr-sigil-read.svg')!important;background-size:45px 45px!important;background-position:8px center!important}
dl.row-item.forum_unread,dl.row-item.forum_unread_subforum,dl.row-item.topic_unread,dl.row-item.topic_unread_mine,dl.row-item.topic_unread_hot,dl.row-item.topic_unread_hot_mine {background-image:url('./images/twr-sigil-unread.svg')!important;background-size:45px 45px!important;background-position:8px center!important}
dl.row-item.forum_read_locked,dl.row-item.forum_unread_locked,dl.row-item.topic_read_locked,dl.row-item.topic_unread_locked {background-image:url('./images/twr-sigil-locked.svg')!important;background-size:45px 45px!important;background-position:8px center!important}
dl.row-item.forum_read_subforum,dl.row-item.forum_unread_subforum {background-image:url('./images/twr-sigil-subforum.svg')!important}
/* Some phpBB builds put the state class on the containing li instead. */
li.row.forum_read dl.row-item,li.row.forum_read_subforum dl.row-item {background-image:url('./images/twr-sigil-read.svg')!important;background-size:45px 45px!important;background-position:8px center!important}
li.row.forum_unread dl.row-item,li.row.forum_unread_subforum dl.row-item {background-image:url('./images/twr-sigil-unread.svg')!important;background-size:45px 45px!important;background-position:8px center!important}
li.row.forum_read_locked dl.row-item,li.row.forum_unread_locked dl.row-item {background-image:url('./images/twr-sigil-locked.svg')!important;background-size:45px 45px!important;background-position:8px center!important}
/* Prevent squeezed header labels and overflow. */
.forabg .header dd,.forumbg .header dd {white-space:nowrap!important;font-size:11px!important}
#page-body,#page-body * {min-width:0}
@media(max-width:1250px){.forabg .header dd,.forumbg .header dd {font-size:10px!important}}

/* ==============================================================
   TWR Gothic v1.3 - approved refinements (overrides v1.0-v1.2)
   ============================================================= */

/* Medium-size unformatted post text, preserving author BBCode colors/sizes. */
.postbody .content {font-size:15px!important;line-height:1.6!important}
/* Interface text contrast: do not override user-authored post body colors. */
.forabg .row .forumtitle + br + span,
.forabg .row .forumtitle ~ span,
.forabg .row dt .responsive-show,
.forabg .row dt .responsive-hide,
.forabg .row dt small,
.forumbg .row dt small,
.forabg .row dt,
.forumbg .row dt,
.forabg .row dt strong,
.forumbg .row dt strong,
.postprofile dt,.postprofile dd,.postbody .author,
fieldset dl dt,fieldset dl dd,.panel fieldset dl dt,.panel fieldset dl dd,
.dropdown .dropdown-contents, .dropdown .dropdown-contents li,
.stat-block,.stat-block p,.stat-block span {color:#d9d0df!important}
.forabg .row dt a.username-coloured,.forumbg .row dt a.username-coloured {color:inherit}
/* Keep moderator usernames' phpBB assigned colors. */
.forabg .row dt a.username-coloured[style],.forumbg .row dt a.username-coloured[style] {color:revert-layer}
/* Uniform, stable action buttons (no sprite hover overlays). */
a.button,a.button1,a.button2,input.button1,input.button2,button.button,
.buttons .button,.button-icon,.button-secondary,.button-search,.dropdown-trigger {
 background:#24192b!important;background-image:linear-gradient(180deg,#35223d,#211627)!important;
 border:1px solid #866092!important;color:#e9dbea!important;
 box-shadow:none!important;text-shadow:none!important;
 transition:background-color .15s ease,border-color .15s ease!important;
}
a.button:hover,a.button:focus,a.button1:hover,a.button2:hover,
input.button1:hover,input.button2:hover,button.button:hover,
.buttons .button:hover,.button-icon:hover,.button-secondary:hover,.button-search:hover,
.dropdown-trigger:hover {
 background:#40284c!important;background-image:none!important;
 border-color:#b98ac5!important;color:#fff!important;
 box-shadow:0 0 0 1px #8c599b44!important;text-decoration:none!important;
}
a.button .icon,a.button:hover .icon,.button .icon,.button:hover .icon,
.button1 .icon,.button2 .icon,.button-secondary .icon,
.button .icon::before,.button:hover .icon::before {
 color:#d9b5e4!important;text-shadow:none!important;
}
.button .icon,.button1 .icon,.button2 .icon {vertical-align:middle!important}
/* Active page number: violet, not phpBB blue. */
.pagination li.active span,.pagination li.active a,.pagination li.active,
.pagination li.active span:hover,.pagination li.active a:hover {
 background:#583263!important;background-image:none!important;
 border-color:#b48bc2!important;color:#fff!important;
 box-shadow:none!important;
}
.pagination li a:hover {background:#3b2744!important;color:#fff!important;border-color:#b48bc2!important}
/* Search boxes, focus, autocomplete and search buttons. */
input:focus,textarea:focus,select:focus,input.inputbox:focus,textarea.inputbox:focus,
.search-box input:focus,.search-header input:focus,#search_keywords:focus,
.search-box .inputbox:focus,.search-header .inputbox:focus {
 outline:1px solid #a276b3!important;outline-offset:0!important;
 border-color:#a276b3!important;box-shadow:0 0 7px #7a438d77!important;
 background-color:#17111d!important;
}
.search-box,.search-header .search-box {box-shadow:none!important}
.search-box .button,.search-header .button {border-color:#866092!important}
/* Category headers: single-line column titles; less empty vertical space. */
.forabg,.forumbg {margin-bottom:15px!important}
.forabg ul.topiclist li.header,.forumbg ul.topiclist li.header {
 min-height:43px!important;
 background:linear-gradient(90deg,#462347 0%,#27192e 54%,#18131d 100%)!important;
 border-top:1px solid #9c6a9e!important;
 border-bottom:1px solid #a878b1!important;
}
.forabg ul.topiclist li.header::before,.forumbg ul.topiclist li.header::before {
 content:'✧'!important;font-size:24px!important;color:#d9b8e2!important;
}
.forabg ul.topiclist li.header dt,.forumbg ul.topiclist li.header dt {
 font-size:1.16em!important;line-height:1.35!important;
}
/* phpBB uses dl with dt, dd.topics, dd.posts, dd.lastpost. Explicit grid
   fixes last-post heading wrapping under topics on desktop. */
@media(min-width:701px) {
 .forabg ul.topiclist li.header dl,.forumbg ul.topiclist li.header dl {
  display:grid!important;grid-template-columns:minmax(0,1fr) 72px 72px minmax(170px,26%)!important;
  align-items:center!important;gap:0!important;min-height:40px!important;
 }
 .forabg ul.topiclist li.header dt,.forumbg ul.topiclist li.header dt,
 .forabg ul.topiclist li.header dd,.forumbg ul.topiclist li.header dd {
  float:none!important;width:auto!important;margin:0!important;
  min-width:0!important;white-space:nowrap!important;box-sizing:border-box!important;
 }
 .forabg ul.topiclist li.header dd,.forumbg ul.topiclist li.header dd {
  font-size:10px!important;text-align:center!important;padding:0 3px!important;
 }
 .forabg ul.topiclist li.header dd.lastpost,.forumbg ul.topiclist li.header dd.lastpost {
  text-align:left!important;padding-left:9px!important;
 }
}
/* Complete the state family: use the existing sigils for all topic types. */
dl.row-item.topic_read_hot,dl.row-item.topic_read_hot_mine,
dl.row-item.topic_read_mine,dl.row-item.topic_read,dl.row-item.topic_moved {
 background-image:url('./images/twr-sigil-read.svg')!important;background-size:45px 45px!important;background-position:8px center!important;
}
dl.row-item.topic_unread_hot,dl.row-item.topic_unread_hot_mine,
dl.row-item.topic_unread,dl.row-item.topic_unread_mine {
 background-image:url('./images/twr-sigil-unread.svg')!important;background-size:45px 45px!important;background-position:8px center!important;
}
dl.row-item.topic_read_sticky,dl.row-item.topic_read_sticky_mine,
dl.row-item.topic_unread_sticky,dl.row-item.topic_unread_sticky_mine {
 background-image:url('./images/twr-sigil-sticky.svg')!important;background-size:45px 45px!important;background-position:8px center!important;
}
dl.row-item.topic_read_announce,dl.row-item.topic_read_announce_mine,
dl.row-item.topic_unread_announce,dl.row-item.topic_unread_announce_mine,
dl.row-item.topic_read_global,dl.row-item.topic_unread_global {
 background-image:url('./images/twr-sigil-announcement.svg')!important;background-size:45px 45px!important;background-position:8px center!important;
}
dl.row-item.topic_read_locked,dl.row-item.topic_unread_locked,
dl.row-item.topic_read_locked_mine,dl.row-item.topic_unread_locked_mine,
dl.row-item.forum_read_locked,dl.row-item.forum_unread_locked {
 background-image:url('./images/twr-sigil-locked.svg')!important;background-size:45px 45px!important;background-position:8px center!important;
}
/* Match the new state icons in cases where phpBB marks the parent row. */
li.row[class*="topic_"] dl.row-item {background-size:45px 45px!important;background-position:8px center!important}
/* Responsive header uses phpBB's native simplified column layout. */
@media(max-width:700px){
 .forabg ul.topiclist li.header dl,.forumbg ul.topiclist li.header dl {display:block!important}
}

#page-header .headerbar {
 background:transparent!important;
 background-image:none!important;
 border:0!important;
 box-shadow:none!important;
 
}
#page-header .headerbar .inner {background:transparent!important}
/* Prevent a thin colored rule from reading as a banner/background seam. */
#page-header .navbar {border-top:1px solid #61406b!important}
/* Keep controls readable where the background is more detailed. */
#page-header .headerbar .search-header {background:rgba(12,9,17,.45);border-radius:5px}
@media (max-width:799px) {
 body {background-position:center top!important;background-size:auto 100vh!important}
}

body {
 background-image:linear-gradient(90deg,rgba(5,4,9,.15),rgba(10,8,15,.20) 22%,rgba(10,8,15,.30) 50%,rgba(10,8,15,.20) 78%,rgba(5,4,9,.15)),url('./images/twr-v15-city.webp')!important;
 background-repeat:no-repeat!important;
 background-position:center center!important;
 background-size:cover!important;
 background-attachment:fixed!important;
}
#page-header .headerbar {
 position:relative!important;
 isolation:isolate;
 overflow:visible!important;
 background:transparent!important;
 background-image:none!important;
 
}
#page-header .headerbar::before {
 content:'';
 position:absolute;
 z-index:-1;
 pointer-events:none;
 left:0;right:0;top:0;bottom:-45px;
 
 background-position:center top;
 background-size:100% auto;
 background-repeat:no-repeat;

}

#page-header .navbar {position:relative;z-index:2}
#page-header .headerbar .search-header {z-index:3;background:rgba(12,9,17,.7)!important}
@media (max-width:799px) {
 body {background-size:auto 100vh!important;background-position:center center!important}
 #page-header .headerbar {min-height:0!important}
 #page-header .headerbar::before {bottom:-20px;background-size:cover;background-position:center top}
}

/* ============================================================
   TWR Gothic v1.6 — banner exactly matches forum container
   Cityscape remains unchanged from v1.5.
   ============================================================ */
#page-header .headerbar {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  min-height:0!important;
  height:clamp(175px,21vw,320px)!important;
  position:relative!important;
  overflow:hidden!important;
  border:0!important;
  background:transparent!important;
}
#page-header .headerbar::before {
  content:'';
  position:absolute;
  z-index:-1;
  inset:0!important;
  background:url('./images/twr-v16-banner.webp') center 43% / cover no-repeat!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}
/* Preserve full visibility of title: do not darken the header artwork. */
#wrap {
  background:rgba(11,10,15,.94)!important;
}
#page-header .headerbar .search-header {
  z-index:3;
  background:rgba(12,9,17,.75)!important;
}
@media(max-width:799px){
  #page-header .headerbar {
    width:100%!important;
    margin:0!important;
    height:clamp(110px,24vw,190px)!important;
  }
  #page-header .headerbar::before {
    background-position:center center!important;
  }
}

/* TWR Gothic — fix sticky locked topic icons */
dl.row-item.sticky_read_locked_mine,
dl.row-item.sticky_read_locked,
dl.row-item.sticky_unread_locked_mine,
dl.row-item.sticky_unread_locked {
    background-image: url('./images/twr-sigil-locked.svg') !important;
    background-size: 45px 45px !important;
    background-position: 8px center !important;
}

/* TWR Gothic — seven 85px category headers (replace previous category-header CSS). */
@media (min-width: 701px) {
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) {
    height:85px !important; min-height:85px !important; padding:0 !important;
    background:#120d18 !important; box-sizing:border-box !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="])::before,
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="])::after {content:none !important;display:none !important;}
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) dl {
    display:grid !important; grid-template-columns:minmax(0,54%) 10% 10% 26% !important;
    height:85px !important; margin:0 !important; padding:0 !important;
    align-items:stretch !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) dt {
    height:85px !important; min-width:0 !important; padding:0 !important; margin:0 !important;
    background-position:center !important; background-repeat:no-repeat !important;
    background-size:100% 85px !important; box-sizing:border-box !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) dt a {
    display:block !important; width:100% !important; height:85px !important;
    font-size:0 !important; line-height:0 !important; color:transparent !important;
    text-shadow:none !important; overflow:hidden !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) dd {
    position:relative !important; z-index:1 !important; margin:0 !important;
    padding:0 3px !important; height:85px !important; box-sizing:border-box !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    background:#120d18 !important; color:#f0e0f5 !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f=1&"]) dt,
  .forabg ul.topiclist li.header:has(a[href$="viewforum.php?f=1"]) dt {
    background-image: url("./images/twistedminds.png") !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f=3&"]) dt,
  .forabg ul.topiclist li.header:has(a[href$="viewforum.php?f=3"]) dt {
    background-image: url("./images/hearts.png") !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f=21&"]) dt,
  .forabg ul.topiclist li.header:has(a[href$="viewforum.php?f=21"]) dt {
    background-image:url("./images/offbeats.png") !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f=12&"]) dt,
  .forabg ul.topiclist li.header:has(a[href$="viewforum.php?f=12"]) dt {
    background-image:url("./images/umbral.png") !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f=15&"]) dt,
  .forabg ul.topiclist li.header:has(a[href$="viewforum.php?f=15"]) dt {
    background-image:url("./images/loa.png") !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f=18&"]) dt,
  .forabg ul.topiclist li.header:has(a[href$="viewforum.php?f=18"]) dt {
    background-image:url("./images/stone.png") !important;
  }
  .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f=9&"]) dt,
  .forabg ul.topiclist li.header:has(a[href$="viewforum.php?f=9"]) dt {
    background-image:url("./images/laby.png") !important;
  }
}

/* TWR Gothic — User Control Panel navigation tabs */

#tabs a {
    background: #211629 !important;
    color: #e9d8f0 !important;
    border: 1px solid #704276 !important;
    border-bottom: none !important;
    border-radius: 6px 6px 0 0 !important;
    text-shadow: none !important;
}

#tabs a:hover {
    background: #392044 !important;
    color: #ffffff !important;
}

#tabs .activetab a,
#tabs .activetab a:hover {
    background: #4a2054 !important;
    color: #ffffff !important;
    border-color: #b46ac0 !important;
}

/* TWR Gothic — UCP sidebar navigation */

#navigation a {
    background: #1c1623 !important;
    color: #e9d8f0 !important;
    border-bottom: 1px solid #503357 !important;
    text-shadow: none !important;
}

#navigation a:hover {
    background: #392044 !important;
    color: #ffffff !important;
}

#navigation #active-subsection a,
#navigation #active-subsection a:hover {
    background: #4a2054 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

/* TWR Gothic — UCP content text colors */

#cp-main h2,
#cp-main h3,
#cp-main dt,
#cp-main label,
#cp-main .panel,
#cp-main .panel p,
#cp-main .panel strong {
    color: #e9d8f0 !important;
}

/* Activity statistics and profile details */
#cp-main dl.details dt {
    color: #d8c5df !important;
}

#cp-main dl.details dd {
    color: #cbb5d5 !important;
}

/* Preserve the Gothic link colors */
#cp-main a {
    color: #d88ce8;
}

#cp-main a:hover {
    color: #ffffff;
}

/* TWR Gothic — UCP radio buttons and checkboxes */

#cp-main input[type="radio"],
#cp-main input[type="checkbox"] {
    accent-color: #a65bb5 !important;
}

/* TWR Gothic — UCP notification preferences table */

#cp-main .notification_list,
#cp-main .notification_list td,
#cp-main .notification_list th {
    color: #e9d8f0 !important;
}

#cp-main .notification_list thead th {
    color: #e9d8f0 !important;
    background-color: #25182d !important;
}

#cp-main .notification_list tbody td {
    color: #e9d8f0 !important;
}

#cp-main .notification_list tbody tr {
    background-color: #17121d !important;
}

/* TWR Gothic - UCP Notification Options */

#cp-main table.table1.responsive:has(input[name^="notification.type."]) {
    background-color: #1b1720 !important;
}

/* Notification descriptions */
#cp-main table.table1.responsive:has(input[name^="notification.type."]) tbody td {
    color: #eadcf0 !important;
}

/* Column headings */
#cp-main table.table1.responsive:has(input[name^="notification.type."]) thead th {
    color: #e8c9f0 !important;
    background-color: #26182d !important;
}

/* Notification section headings */
#cp-main table.table1.responsive:has(input[name^="notification.type."]) tr.bg3 td {
    color: #e8c9f0 !important;
    background-color: #34203d !important;
    font-weight: bold !important;
}

/* Alternating notification rows */
#cp-main table.table1.responsive:has(input[name^="notification.type."]) tr.bg1 td {
    background-color: #19151e !important;
}

#cp-main table.table1.responsive:has(input[name^="notification.type."]) tr.bg2 td {
    background-color: #211a27 !important;
}

/* TWR Gothic - Notifications Dropdown */

/* Dropdown heading */
.dropdown-extended .header {
    background: #34203d !important;
    color: #f0d9f5 !important;
    border-bottom: 1px solid #704878 !important;
}

/* Heading text */
.dropdown-extended .header,
.dropdown-extended .header strong {
    color: #f0d9f5 !important;
}

/* Settings and Mark all read */
.dropdown-extended .header a {
    color: #dba8ed !important;
}

.dropdown-extended .header a:hover {
    color: #ffffff !important;
}

/* Notification timestamps */
.dropdown-extended .notification-time {
    color: #bda0c9 !important;
}

/* Bottom See All link */
.dropdown-extended .footer,
.dropdown-extended .footer a {
    color: #e4b9f0 !important;
}

/* TWR Gothic - Fix Notification Header Text Shadow */

.dropdown-extended .header,
.dropdown-extended .header strong,
.dropdown-extended .header a,
.dropdown-extended .header span {
    text-shadow: none !important;
    filter: none !important;
}

/* TWR Gothic - FAQ Section Headings */

.content h2,
.content h2 a,
.panel .content h2 {
    color: #dba8ed !important;
    text-shadow: none !important;
}

/* ============================================================
   TWR Gothic — stable index two-column layout
   The forum list and statistics are independent columns.
   All earlier #page-body grid positioning is disabled here.
   ============================================================ */
body.section-index #page-body {
    display: block !important;
}
body.section-index #page-body .twr-index-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    clear: both;
}
body.section-index #page-body .twr-index-forums {
    flex: 1 1 0;
    min-width: 0;
}
body.section-index #page-body .twr-index-sidebar {
    flex: 0 0 280px;
    width: 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
body.section-index #page-body .twr-index-sidebar > .stat-block {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    background: #17131d !important;
    border: 1px solid #5d3d68 !important;
    border-radius: 8px !important;
    color: #e5dce9 !important;
    overflow-wrap: anywhere;
}
body.section-index #page-body .twr-index-sidebar > .stat-block h3 {
    color: #e3b9f0 !important;
    border-bottom: 1px solid #5d3d68 !important;
    padding-bottom: 7px;
    margin-bottom: 7px;
}
body.section-index #page-body .twr-index-sidebar > .stat-block p {
    margin: 0;
}
@media (max-width: 1099px) {
    body.section-index #page-body .twr-index-layout {
        display: block;
    }
    body.section-index #page-body .twr-index-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
        gap: 14px;
        margin-top: 18px;
    }
}
/* ==========================================
   TWR GOTHIC - MEMBERS LIST COLORS
   ========================================== */

body.section-memberlist .table1 {
    background: #17131d !important;
    border-color: #5d3d68 !important;
}

/* Column headings */
body.section-memberlist .table1 thead th {
    background: #26172d !important;
    color: #e3b9f0 !important;
    border-color: #5d3d68 !important;
}

/* Member rows */
body.section-memberlist .table1 tbody tr,
body.section-memberlist .table1 tbody tr.bg1,
body.section-memberlist .table1 tbody tr.bg2 {
    background: #17131d !important;
}

/* Alternating row shading */
body.section-memberlist .table1 tbody tr:nth-child(even) {
    background: #201824 !important;
}

/* Text and dividing lines */
body.section-memberlist .table1 tbody td {
    color: #e5dce9 !important;
    border-color: #5d3d68 !important;
}

/* Dates, ranks and secondary information */
body.section-memberlist .table1 tbody td span,
body.section-memberlist .table1 tbody td .rank-img {
    color: #c9b2d2 !important;
}

/* Preserve username and other link colors */
body.section-memberlist .table1 tbody td a {
    color: #e3a2f0 !important;
}
/* ==========================================
   TWR GOTHIC - MEMBER PROFILE COLORS
   ========================================== */

/* Profile information labels and values */
body.section-memberlist .panel,
body.section-memberlist .panel dl,
body.section-memberlist .panel dt,
body.section-memberlist .panel dd,
body.section-memberlist .panel p,
body.section-memberlist .panel span {
    color: #e5dce9 !important;
}

/* Profile statistics and secondary information */
body.section-memberlist .panel .details,
body.section-memberlist .panel .details dt,
body.section-memberlist .panel .details dd,
body.section-memberlist .panel .profile-details {
    color: #c9b2d2 !important;
}

/* Keep profile links lavender */
body.section-memberlist .panel a {
    color: #e3a2f0 !important;
}
/* TWR Gothic - Topic search placeholder */

body.section-viewtopic input::placeholder {
    color: #bda6c8 !important;
    opacity: 1;
}
/* TWR Gothic — Checkbox and radio button colors */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #9653a8;
}
/* TWR Gothic — Default post and preview text */
.postbody .content,
#preview .content,
.post-preview .content {
    color: #e5dce9;
}
/* TWR Gothic — Search form refinements */
body.section-search select {
    scrollbar-color: #765080 #17131d;
    scrollbar-width: thin;
}

body.section-search input[type="number"] {
    background-color: #141218 !important;
    color: #e5dce9 !important;
    border: 1px solid #765080 !important;
    box-shadow: none !important;
}
/* TWR Gothic — Form label hover colors */
fieldset dl:hover dt label,
fieldset dl dt label:hover,
fieldset dl:hover dt {
    color: #e5dce9 !important;
}
/* TWR Gothic — Number input spinner styling */
input[type="number"] {
    color-scheme: dark;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    filter: sepia(1) hue-rotate(225deg) saturate(1.5);
}
/* =========================================
   TWR GOTHIC - Information Message Headings
   ========================================= */

#message h2,
#message h3,
.panel #message h2,
.panel #message h3 {
    color: #e3b9f0 !important;
}
/* =========================================
   TWR GOTHIC - Search Results Link Hover
   ========================================= */

body.section-search #page-body a:hover,
body.section-search #page-body a:focus {
    color: #f0d5ff !important;
}

body.section-search #page-body a:hover .icon,
body.section-search #page-body a:focus .icon {
    color: #f0d5ff !important;
}
/* =========================================
   TWR GOTHIC - Search Results Colors
   ========================================= */

/* Search field placeholder */
body.section-search input::placeholder {
    color: #bba5c8 !important;
    opacity: 1;
}

/* Highlighted search keywords */
body.section-search .posthilit {
    background-color: #50305f !important;
    color: #f0d5ff !important;
    border-radius: 3px;
    padding: 1px 3px;
}

/* Search results navigation arrows */
body.section-search #page-body a .icon {
    color: #c9a3df !important;
}

/* =========================================
   TWR GOTHIC - Moderator Control Panel Tables
   ========================================= */

/* Table headings */
body.section-mcp table.table1 thead th,
body.section-mcp table.table1 thead th a {
    color: #e3b9f0 !important;
    background-color: #251b2e !important;
}

/* Table borders */
body.section-mcp table.table1,
body.section-mcp table.table1 tbody,
body.section-mcp table.table1 tbody tr,
body.section-mcp table.table1 tbody td {
    border-color: #5d3d68 !important;
}

/* Alternating table rows */
body.section-mcp table.table1 tbody tr:nth-child(odd) {
    background-color: #17131d !important;
}

body.section-mcp table.table1 tbody tr:nth-child(even) {
    background-color: #1e1825 !important;
}

/* Table row hover */
body.section-mcp table.table1 tbody tr:hover {
    background-color: #302238 !important;
}

/* Table text */
body.section-mcp table.table1 tbody td {
    color: #e5dce9 !important;
}

/* Links and navigation icons */
body.section-mcp table.table1 a,
body.section-mcp table.table1 .icon {
    color: #c9a3df !important;
}

body.section-mcp table.table1 a:hover,
body.section-mcp table.table1 a:hover .icon {
    color: #f0d5ff !important;
}
/* =========================================
   TWR GOTHIC - MCP Column Dividers
   ========================================= */

body.section-mcp #cp-main ul.topiclist dd,
body.section-mcp #cp-main ul.topiclist li.row dd,
body.section-mcp #cp-main li.row dl dd {
    border-left-color: #5d3d68 !important;
    border-right-color: #5d3d68 !important;
}

body.section-mcp #cp-main ul.topiclist li.header,
body.section-mcp #cp-main ul.topiclist li.header dl {
    border-bottom-color: #5d3d68 !important;
}
/* Dropdown option colors */
select option {
    background-color: #19151f;
    color: #e8d5f5;
}

select option:checked,
select option:hover,
select option:focus {
    background-color: #563365;
    color: #f2e4ff;
}
/* Selection box scrollbars */
select[multiple],
select[size] {
    scrollbar-width: thin;
    scrollbar-color: #79548e #19151f;
}

select[multiple]::-webkit-scrollbar,
select[size]::-webkit-scrollbar {
    width: 10px;
    background: #19151f;
}

select[multiple]::-webkit-scrollbar-track,
select[size]::-webkit-scrollbar-track {
    background: #19151f;
}

select[multiple]::-webkit-scrollbar-thumb,
select[size]::-webkit-scrollbar-thumb {
    background: #79548e;
    border-radius: 5px;
}

select[multiple]::-webkit-scrollbar-button,
select[size]::-webkit-scrollbar-button {
    background-color: #19151f;
    color: #c9a4df;
}
/* FAQ - Back to top icon */
.faq .top .icon,
.faq .back2top .icon,
#faqlinks ~ .panel .top .icon,
a.top .icon {
    color: #c9a0dc !important;
}
/* Team page - table borders */
#page-body table.table1,
#page-body table.table1 tbody,
#page-body table.table1 tbody tr,
#page-body table.table1 tbody td {
    border-color: #503b59 !important;
}
#register h2,
#register h2 a,
body.section-ucp #page-body h2,
body.section-ucp #page-body h2 a {
    color: #c9a0dc !important;
}
/* Registration section headings and dividers */
#register h3 {
    color: #c9a0dc !important;
    border-bottom-color: #503b59 !important;
}

#register hr,
#register h2 {
    border-color: #503b59 !important;
}
/* Guest login headings and dividers */
body.section-ucp #login h2,
body.section-ucp #login h3,
body.section-ucp #login hr {
    border-color: #503b59 !important;
}

body.section-ucp #login h3 {
    color: #c9a0dc !important;
}
/* Password recovery heading divider */
#reset_password .content h2 {
    border-bottom-color: #503b59 !important;
}
/* Forum index column dividers */
ul.topiclist dd {
    border-left-color: #503b59 !important;
}
/* Forum search placeholder */
#forum-search input::placeholder {
    color: #b5a3bf !important;
    opacity: 1 !important;
}
/* Dramatic Gothic Topics heading */
body.section-viewforum li.header dt,
body.section-viewforum li.header dt .list-inner {
    font-family: 'Cinzel Decorative', Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 3px;
    color: #e4c6f2 !important;
    text-shadow:
    1px 1px 0 #493052,
    2px 2px 0 #291a30,
    3px 3px 0 #160d1c,
    4px 5px 5px #000000,
    0 0 8px rgba(185, 110, 220, 0.55),
    0 0 14px rgba(140, 50, 180, 0.35);
}
/* Locally hosted Gothic heading font */
@font-face {
    font-family: 'Cinzel Decorative';
    src: url('./fonts/CinzelDecorative-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* TWR Gothic — Mobile category artwork */
@media (max-width: 700px) {

    .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) {
        height: 65px !important;
        min-height: 65px !important;
        padding: 0 !important;
        background: #120d18 !important;
    }

    .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="])::before,
    .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="])::after {
        content: none !important;
        display: none !important;
    }

    .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) dl {
        display: block !important;
        height: 65px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) dt {
        width: 100% !important;
        height: 65px !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        box-sizing: border-box !important;
    }

    .forabg ul.topiclist li.header dt .list-inner {
        margin: 0 !important;
        padding: 0 !important;
    }

    .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) dt a {
        display: block !important;
        width: 100% !important;
        height: 65px !important;
        font-size: 0 !important;
        line-height: 0 !important;
        color: transparent !important;
        text-shadow: none !important;
    }

    .forabg ul.topiclist li.header:has(a[href*="viewforum.php?f="]) dd {
        display: none !important;
    }

    /* Welcome */
    .forabg li.header:has(a[href*="viewforum.php?f=1&"]) dt,
    .forabg li.header:has(a[href$="viewforum.php?f=1"]) dt {
        background-image: url("./images/twistedminds.png") !important;
    }

    /* Hearts Remembered */
    .forabg li.header:has(a[href*="viewforum.php?f=3&"]) dt,
    .forabg li.header:has(a[href$="viewforum.php?f=3"]) dt {
        background-image: url("./images/hearts.png") !important;
    }

    /* Off Beats */
    .forabg li.header:has(a[href*="viewforum.php?f=21&"]) dt,
    .forabg li.header:has(a[href$="viewforum.php?f=21"]) dt {
        background-image: url("./images/offbeats.png") !important;
    }

    /* Umbral Shadows */
    .forabg li.header:has(a[href*="viewforum.php?f=12&"]) dt,
    .forabg li.header:has(a[href$="viewforum.php?f=12"]) dt {
        background-image: url("./images/umbral.png") !important;
    }

    /* Land of the Loa */
    .forabg li.header:has(a[href*="viewforum.php?f=15&"]) dt,
    .forabg li.header:has(a[href$="viewforum.php?f=15"]) dt {
        background-image: url("./images/loa.png") !important;
    }

    /* Stonehaven */
    .forabg li.header:has(a[href*="viewforum.php?f=18&"]) dt,
    .forabg li.header:has(a[href$="viewforum.php?f=18"]) dt {
        background-image: url("./images/stone.png") !important;
    }

    /* The Labyrinth */
    .forabg li.header:has(a[href*="viewforum.php?f=9&"]) dt,
    .forabg li.header:has(a[href$="viewforum.php?f=9"]) dt {
        background-image: url("./images/laby.png") !important;
    }
}
/* TWR - Quick Reply styling */
#qr_postform h2 {
    color: #c9a0dc !important;
    border-bottom-color: #503b59 !important;
}
/* TWR - Default post text colour */
.postbody .content {
    color: #e6e0e9;
}
/* TWR - Correct targeted post text colour */
.post:target .content {
    color: #e6e0e9 !important;
}