/* Iron Horses Command Center / Cooperative phpBB overlay v19.2 */
:root{--ih-bg:#101115;--ih-panel:#1c1d23;--ih-panel2:#27232a;--ih-line:#573039;--ih-red:#a93542;--ih-bright:#ec737b;--ih-text:#e9e6e6;--ih-muted:#b6adb1}
html,body#phpbb{background:#101115!important;color:var(--ih-text)!important;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important}
body#phpbb a{color:#f1a3a9}body#phpbb a:hover{color:#fff;text-decoration:underline}
.ih-command-strip{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px max(18px,calc((100vw - 1320px)/2));background:#090a0d;border-bottom:2px solid #a93542;color:#f4eeee;font-size:14px;font-weight:800;letter-spacing:.13em}
.ih-command-strip small{font-size:10px;color:#c57c84;letter-spacing:.15em}.ih-command-strip a{font-size:12px;letter-spacing:normal;text-decoration:none;background:#362026;border:1px solid #83434c;border-radius:4px;padding:8px 12px;color:#fff!important}
#page-header,#logodesc,#topinner,#topmod,#page-footer{background-color:#17171d!important;color:var(--ih-text)!important}
#logodesc{border-bottom:3px solid #a93542!important;box-shadow:0 10px 30px #0008}
#wrap,.wrap,#page-body,.forabg,.forumbg,.panel,.post,.bg1,.bg2,.bg3,.navbar,.stat-block,.inner{box-sizing:border-box}
#wrap{max-width:1360px!important;margin:18px auto!important;background:transparent!important;border:0!important;box-shadow:none!important}
#page-body{min-width:0!important}
.forabg,.forumbg,.panel,.post,.navbar,.stat-block{background:#1c1d23!important;border:1px solid #503039!important;border-radius:7px!important;box-shadow:0 5px 18px #0003;margin-bottom:15px!important;color:var(--ih-text)!important}
.forabg .header,.forumbg .header,.forabg dt,.forumbg dt{color:#f1d9dc!important}
.forabg .header,.forumbg .header{background:#64252e!important}
li.row,.row-item,.bg1,.bg2,.bg3,.postbody,.postprofile{background-color:#1c1d23!important;color:var(--ih-text)!important}
li.row{border-top:1px solid #3c3037!important}li.row:hover{background:#29242b!important}
li.header,ul.topiclist li.header{background:#6c2832!important;color:#fff!important}
.topiclist dt .forumtitle,.topictitle,.postbody .content,.postbody .content p,.postprofile,.postprofile strong,.author,.responsive-hide{color:var(--ih-text)!important}
.postbody .content{font-size:1.04em!important;line-height:1.65!important}
.postprofile{border-color:#573039!important}
h1,h2,h3,.forumtitle,.topic-title{color:#f0d9dc!important}
input.inputbox,textarea.inputbox,select,button,input[type=text],input[type=password]{background:#111318!important;color:#f5f1f2!important;border:1px solid #7b4b53!important;border-radius:4px}
.button,.button1,.button2,input.button1,input.button2,.dropdown-trigger{background:#752b36!important;color:#fff!important;border:1px solid #ac5660!important;border-radius:4px!important;text-shadow:none!important;box-shadow:none!important}
.button:hover,.button1:hover,.button2:hover{background:#a73a49!important;color:#fff!important}
blockquote,.codebox{background:#13151a!important;border:1px solid #62434b!important;color:#e5dfe1!important}
blockquote cite,.codebox p{color:#e5b2b7!important}
.pagination li a,.pagination li span{background:#29252c!important;color:#f0dfe0!important;border-color:#65404a!important}
.breadcrumbs,.linklist,.stat-block p,.copyright{color:#c9bdc1!important}
hr{border-color:#503039!important}
@media(max-width:800px){.ih-command-strip{padding:10px 14px;letter-spacing:.04em}.ih-command-strip small{display:none}#wrap{margin:8px!important}.postprofile{border-color:#573039!important}}
@media(prefers-reduced-motion:no-preference){.button,li.row,.ih-command-strip a{transition:background-color .18s ease,border-color .18s ease}}


/* V19.4 — Iron Horses forum readability and proportional layout */
#top-maincol,#maincol,#bot-maincol{background:#15171b!important}
#page-body{width:80%!important;padding:10px!important}
#side-right{width:20%!important;padding:10px 10px 10px 4px!important}
#main-content-bot,#main-content-bot2{background:#1c1e22!important;border:1px solid #463039!important;border-radius:8px!important}
.content-innerpadding{padding:12px!important}
#side-right .module{background:#222326!important;border:1px solid #50343a!important;border-radius:7px!important;margin-bottom:12px!important}
#side-right h1.sidemenu{background:linear-gradient(180deg,#8c202a,#561b23)!important;color:#fff!important;padding:9px 12px!important;border-radius:5px!important;font-size:1.08em!important}
#side-right ul.sidemenu li{border-bottom:1px solid #3b3437!important}
#side-right ul.sidemenu a{display:block!important;padding:7px 5px!important;color:#e5d5d7!important;line-height:1.35!important}
#side-right ul.sidemenu a:hover{background:#3b252a!important;color:#fff!important}
#side-right ul.sidemenu .icon{color:#d48b91!important}
.forabg,.forumbg{overflow:hidden}
.forabg .header,.forumbg .header,ul.topiclist li.header{background:linear-gradient(180deg,#95202b,#591c25)!important}
.forabg li.row,.forumbg li.row{padding-top:5px!important;padding-bottom:5px!important}
.forabg a.forumtitle,.forumbg a.topictitle,.topiclist a.forumtitle,.topiclist a.topictitle{color:#f1b5b8!important;font-weight:700!important}
.forabg a.forumtitle:hover,.forumbg a.topictitle:hover{color:#fff!important}
.topiclist .row-item .list-inner{line-height:1.5!important}
.topiclist .row-item .list-inner .forumtitle + br{line-height:1.8!important}
.topiclist dd.lastpost,.topiclist dd.posts,.topiclist dd.topics{color:#ddd5d5!important}
.postbody .content{color:#eee9e8!important;font-size:1.05em!important;line-height:1.7!important}
.postprofile{background:#232126!important}
.postbody a,.postprofile a{color:#ef9da3!important}
.ih-command-strip{background:#111216!important;border-bottom:1px solid #77313b!important}
.ih-command-strip a{white-space:nowrap}
:focus-visible{outline:2px solid #f5b2b7!important;outline-offset:2px}
@media(max-width:1100px){
 #page-body,#side-right{float:none!important;width:100%!important;clear:both!important;padding:8px!important}
 #side-right{display:flex!important;flex-wrap:wrap!important;gap:10px!important}
 #side-right .module{flex:1 1 240px!important;min-width:0!important}
 #side-right ul.sidemenu{display:flex!important;flex-wrap:wrap!important;gap:3px 12px!important}
 #side-right ul.sidemenu li{max-width:100%!important}
}
@media(max-width:600px){
 #page-body,#side-right{padding:4px!important}
 .content-innerpadding{padding:7px!important}
 #side-right{display:block!important}
 #side-right .module{width:100%!important}
 .ih-command-strip{flex-wrap:wrap!important;gap:8px!important}
 .forabg,.forumbg,.panel,.post{border-radius:4px!important}
}


/* V19.5 — readable topic view, full-width posts and compact profile cards.
   Scoped to topic pages via :has(.post); forum index retains V19.4 layout. */
body#phpbb:has(#page-body .post) #page-body{width:100%!important;float:none!important;max-width:none!important}
body#phpbb:has(#page-body .post) #side-right{display:none!important}
body#phpbb:has(#page-body .post) #top-maincol,
body#phpbb:has(#page-body .post) #maincol,
body#phpbb:has(#page-body .post) #bot-maincol{width:100%!important;max-width:none!important}
body#phpbb:has(#page-body .post) .post{padding:14px 16px!important;border-color:#63414a!important}
body#phpbb:has(#page-body .post) .postbody .content,
body#phpbb:has(#page-body .post) .postbody .content p,
body#phpbb:has(#page-body .post) .postbody .content li{font-size:15px!important;line-height:1.75!important;overflow-wrap:anywhere}
body#phpbb:has(#page-body .post) .postbody{min-width:0!important}
body#phpbb:has(#page-body .post) .postprofile{background:#252127!important;border:1px solid #5d3b45!important;border-radius:7px!important;padding:12px!important;box-sizing:border-box!important;overflow-wrap:anywhere}
body#phpbb:has(#page-body .post) .postprofile .username,
body#phpbb:has(#page-body .post) .postprofile .username-coloured,
body#phpbb:has(#page-body .post) .postprofile strong{font-size:14px!important;line-height:1.5!important}
body#phpbb:has(#page-body .post) .postprofile dd{line-height:1.5!important}
body#phpbb:has(#page-body .post) .postprofile img{max-width:100%!important;height:auto!important}
body#phpbb:has(#page-body .post) .postbody .author{font-size:13px!important;color:#d4c6c9!important}
@media(max-width:800px){
 body#phpbb:has(#page-body .post) .post{padding:10px!important}
 body#phpbb:has(#page-body .post) .postbody .content,
 body#phpbb:has(#page-body .post) .postbody .content p,
 body#phpbb:has(#page-body .post) .postbody .content li{font-size:15px!important}
 body#phpbb:has(#page-body .post) .postprofile{padding:9px!important;margin-bottom:12px!important}
}

/* V19.5.1 — Reliable Cooperative topic layout: phpBB body class, no :has() dependency. */
body#phpbb.section-viewtopic #side-right {display:none!important;visibility:hidden!important;width:0!important;padding:0!important;margin:0!important;}
body#phpbb.section-viewtopic #page-body {display:block!important;float:none!important;clear:both!important;width:100%!important;max-width:100%!important;flex:1 1 100%!important;}
body#phpbb.section-viewtopic #top-maincol,
body#phpbb.section-viewtopic #maincol,
body#phpbb.section-viewtopic #bot-maincol {width:100%!important;max-width:100%!important;}
body#phpbb.section-viewtopic .postbody .content,
body#phpbb.section-viewtopic .postbody .content p,
body#phpbb.section-viewtopic .postbody .content li {font-size:15px!important;line-height:1.75!important;}
body#phpbb.section-viewtopic .postprofile {background:#252127!important;border:1px solid #5d3b45!important;border-radius:7px!important;padding:12px!important;}
