/* Loaded only when the WordPress header and footer are showing. */

/* The WordPress header replaces the forum's own logo bar.
   The forum's navigation bar (Quick links, Search, Login, Notifications) stays. */
.headerbar { display: none; }

/* Same page background as the website, with the header flush to the top. */
body { background-color: #fdf8ec; padding: 0; }

/* Remove the white bordered box around the forum, and line it up with the website's width. */
#wrap.wrap {
	box-sizing: border-box;
	max-width: 1160px;
	min-width: 0;
	margin: 0 auto;
	padding: 28px 24px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}
#page-header { margin-bottom: 4px; }
.navbar { border-radius: 14px; }
.forabg, .forumbg { border-radius: 14px; }

/* Space between the forum and the website footer. */
.hg-chrome--footer { margin-top: 48px; }

@media (max-width: 700px) {
	#wrap.wrap { padding: 16px 16px 0; }
}

/* ------------------------------------------------------------------
   The MonkeyPC colours and fonts for the forum (replaces phpBB blue)
   Chocolate #402408 · banana #f6c945 · cream #fdf8ec · green only for links
------------------------------------------------------------------- */
body, #wrap { color: #5b3a1a; font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, h4, a.forumtitle, a.topictitle { font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; }
h2, h3, .stat-block h3, .stat-block h3 a { color: #402408; }
h3, .stat-block h3 { border-bottom-color: #e9d8b4; }
a { color: #2a7a0d; }
a:hover { color: #402408; }
a.forumtitle, a.topictitle, a.lastsubject { color: #402408; }
h2.topic-title a, .postbody h3 a, .postbody h3.first a { color: #402408; }
h2.topic-title a:hover, .postbody h3 a:hover { color: #2a7a0d; }
a.forumtitle:hover, a.topictitle:hover, a.lastsubject:hover { color: #2a7a0d; }

/* Navigation bars */
.navbar { background-color: #fff; border: 1px solid #e9d8b4; }
.navbar ul.linklist { border-top-color: #e9d8b4; }
.navbar a, .navbar .crumb a { color: #402408; }
.navbar a:hover { color: #2a7a0d; }

/* Forum and topic lists: chocolate frame, white and cream rows */
.forabg, .forumbg { background: #402408 none; }
.forabg .header a, .forumbg .header a, li.header dt, li.header dd { color: #fff; }
.forabg .header a:hover, .forumbg .header a:hover { color: #f6c945; }
ul.forums, ul.topics { background: #fff none; filter: none; }
ul.topiclist li { color: #5b3a1a; }
ul.topiclist li.row { background-color: #fff; }
ul.topiclist li.row.bg2 { background-color: #fdf8ec; }
ul.topiclist dd { border-left-color: #f1e8d3; }
li.row { border-top-color: #fff; border-bottom-color: #e9d8b4; }
li.row strong { color: #402408; }
li.row:hover, ul.topiclist li.row.bg2:hover { background-color: #f6edd6; }
li.row:hover dd { border-left-color: #e9d8b4; }
.forabg .inner, .forumbg .inner { border-radius: 0 0 10px 10px; overflow: hidden; }

/* Forum and topic icons in the brand colours */
dl.row-item[class*="_read"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%23fdf8ec' stroke='%23e9d8b4' stroke-width='2'/%3E%3Cpath d='M10 11.5h12a2.5 2.5 0 0 1 2.5 2.5v6a2.5 2.5 0 0 1-2.5 2.5h-6.5l-4 3v-3H10A2.5 2.5 0 0 1 7.5 20v-6A2.5 2.5 0 0 1 10 11.5z' fill='none' stroke='%235b3a1a' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
dl.row-item[class*="_unread"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23f6c945'/%3E%3Cpath d='M10 11.5h12a2.5 2.5 0 0 1 2.5 2.5v6a2.5 2.5 0 0 1-2.5 2.5h-6.5l-4 3v-3H10A2.5 2.5 0 0 1 7.5 20v-6A2.5 2.5 0 0 1 10 11.5z' fill='none' stroke='%23402408' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
dl.row-item[class*="_locked"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%23f1e8d3' stroke='%23e9d8b4' stroke-width='2'/%3E%3Crect x='10.5' y='15' width='11' height='8.5' rx='2' fill='%235b3a1a'/%3E%3Cpath d='M12.5 15v-2.5a3.5 3.5 0 0 1 7 0V15' fill='none' stroke='%235b3a1a' stroke-width='2'/%3E%3C/svg%3E"); }

/* Panels, posts and stat blocks */
.panel { background-color: #fff; color: #402408; border: 1px solid #e9d8b4; }
.bg1 { background-color: #fff; }
.bg2 { background-color: #fdf8ec; }
.bg3 { background-color: #f1e8d3; }
.post { border: 1px solid #e9d8b4; border-radius: 14px; }
.postprofile { border-left-color: #e9d8b4; }
.postprofile, .postprofile dd, .postprofile dt { color: #5b3a1a; }
.content { color: #402408; font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif; }
.stat-block { color: #5b3a1a; }

/* Buttons */
.button { background: #fff none; border-color: #e9d8b4; color: #402408; box-shadow: none; border-radius: 999px; }
.button:hover, .button:focus { background: #f6edd6 none; border-color: #d9c39a; color: #402408; text-shadow: none; }
.button .icon, .button-secondary { color: #5b3a1a; }
.button:hover .icon, .button:focus .icon, .button-secondary:hover, .button-secondary:focus { color: #2a7a0d; }
input.button1, .button1 { background: #f6c945 none; border-color: #e6b92f; color: #402408; border-radius: 999px; }
input.button1:hover, .button1:hover { background: #e6b92f none; color: #402408; }
input.button2, .button2 { background: #fff none; border-color: #e9d8b4; color: #402408; border-radius: 999px; }

/* Pagination */
.pagination li a { background: #fff; border-color: #e9d8b4; color: #402408; }
.pagination li.active span { background: #402408; border-color: #402408; color: #fff; }
.pagination li a:hover { background: #402408; border-color: #402408; color: #fff; }

/* Form fields */
.inputbox { border-color: #e9d8b4; }
.inputbox:hover, .inputbox:focus { border-color: #d9a400; }

/* ------------------------------------------------------------------
   Text sizes and spacing
------------------------------------------------------------------- */
/* Forum bars use the same type as the website menu (15px, semi-bold). */
.navbar ul.linklist > li,
.navbar ul.linklist > li > a,
.navbar .crumb,
.navbar .crumb a,
#page-footer .navbar,
#page-footer .navbar a {
	font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
}
#page-footer .copyright, #page-footer .copyright a { font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif; font-size: 13px; }

/* Category header: a proper title instead of tiny capitals */
.forabg ul.topiclist li.header dl.row-item,
.forumbg ul.topiclist li.header dl.row-item { padding-top: 10px; padding-bottom: 8px; }
.forabg ul.topiclist li.header dt,
.forumbg ul.topiclist li.header dt,
.forabg ul.topiclist li.header dt a,
.forumbg ul.topiclist li.header dt a {
	font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-transform: none;
	color: #fff;
}
.forabg ul.topiclist li.header dd,
.forumbg ul.topiclist li.header dd {
	font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 25px;
	color: #e9dcc3;
}
ul.topiclist.forums, ul.topiclist.topics { border-radius: 0 0 12px 12px; overflow: hidden; }

/* Quick login on the board index: tidy card with labels above the boxes */
#page-body form.headerspace { margin: 28px 0 24px; }
#page-body form.headerspace h3 { margin: 0 0 12px; }
#page-body fieldset.quick-login {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 20px;
	background: #fff;
	border: 1px solid #e9d8b4;
	border-radius: 14px;
	padding: 18px 20px 20px;
	font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	color: #402408;
}
#page-body fieldset.quick-login label[for="username"],
#page-body fieldset.quick-login label[for="password"] {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 200px;
	margin: 0;
	font-weight: 600;
	white-space: normal;
}
#page-body fieldset.quick-login input.inputbox {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #e9d8b4;
	border-radius: 10px;
	background: #fdf8ec;
	font: 16px "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	color: #402408;
}
#page-body fieldset.quick-login input.inputbox:focus { border-color: #d9a400; background: #fff; outline: 2px solid #fdf0c4; }
#page-body fieldset.quick-login > a,
#page-body fieldset.quick-login label[for="autologin"] { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin: 0; }
#page-body fieldset.quick-login .responsive-hide { display: none; }
#page-body fieldset.quick-login input.button2 {
	height: 44px;
	padding: 0 26px;
	margin: 0;
	background: #f6c945;
	border: 0;
	border-radius: 999px;
	font: 700 15px "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	color: #402408;
	cursor: pointer;
}
#page-body fieldset.quick-login input.button2:hover { background: #e6b92f; }
.stat-block { margin-top: 0; }

/* Forms and pages such as Register, Login and the Terms agreement: larger, clearer text */
.panel h2, .content h2 {
	font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	font-size: 26px;
	font-weight: 800;
	color: #402408;
	border-bottom-color: #e9d8b4;
	padding-bottom: 10px;
}
.panel .content, .panel .content p, .panel p {
	font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: #402408;
}
fieldset, fieldset dl, fieldset dt, fieldset dd {
	font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	font-size: 15px;
	color: #402408;
}
fieldset dl { padding: 10px 0; }
fieldset dt label { font-weight: 700; font-size: 15px; color: #402408; }
fieldset dt span, fieldset dd span.explain { font-size: 14px; line-height: 1.5; color: #5b3a1a; }
fieldset .inputbox, fieldset select, fieldset textarea {
	font: 16px "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	color: #402408;
	padding: 8px 12px;
	min-height: 42px;
	box-sizing: border-box;
	border: 1px solid #e9d8b4;
	border-radius: 10px;
	background-color: #fff;
}
fieldset textarea.inputbox { min-height: 120px; }
fieldset .inputbox:focus, fieldset select:focus { border-color: #d9a400; outline: 2px solid #fdf0c4; }
fieldset.submit-buttons input.button1, fieldset.submit-buttons input.button2,
fieldset.submit-buttons .button1, fieldset.submit-buttons .button2 {
	font: 700 15px "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	padding: 10px 24px;
	min-height: 44px;
}
.panel hr, .content hr { border-top-color: #e9d8b4; }

/* Finishing touches */
#page-body fieldset.quick-login label, #page-body fieldset.quick-login label span { color: #402408; }
.forabg ul.topiclist li.header dt .list-inner, .forumbg ul.topiclist li.header dt .list-inner { padding-left: 10px; }
.panel { border-radius: 14px; padding: 14px 20px; margin-bottom: 14px; }
#page-body fieldset.quick-login input.inputbox { width: 100% !important; max-width: none; }

/* ------------------------------------------------------------------
   Dark mode, switched on with the moon button in the website header.
   Same warm darks as the website: page #17110a, cards #221910,
   lines #3d2e1e, text #f4e9d8, banana for highlights.
------------------------------------------------------------------- */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background-color: #17110a; }
html[data-theme="dark"] body, html[data-theme="dark"] #wrap,
html[data-theme="dark"] ul.topiclist li, html[data-theme="dark"] .stat-block,
html[data-theme="dark"] .postprofile, html[data-theme="dark"] .postprofile dd, html[data-theme="dark"] .postprofile dt,
html[data-theme="dark"] fieldset dt span, html[data-theme="dark"] fieldset dd span.explain { color: #cbb79a; }
html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] .stat-block h3, html[data-theme="dark"] .stat-block h3 a,
html[data-theme="dark"] .content, html[data-theme="dark"] .panel, html[data-theme="dark"] .panel h2, html[data-theme="dark"] .content h2,
html[data-theme="dark"] .panel .content, html[data-theme="dark"] .panel .content p, html[data-theme="dark"] .panel p,
html[data-theme="dark"] fieldset, html[data-theme="dark"] fieldset dl, html[data-theme="dark"] fieldset dt, html[data-theme="dark"] fieldset dd,
html[data-theme="dark"] fieldset dt label, html[data-theme="dark"] li.row strong,
html[data-theme="dark"] #page-body fieldset.quick-login, html[data-theme="dark"] #page-body fieldset.quick-login label,
html[data-theme="dark"] #page-body fieldset.quick-login label span { color: #f4e9d8; }
html[data-theme="dark"] h3, html[data-theme="dark"] .stat-block h3, html[data-theme="dark"] .panel h2, html[data-theme="dark"] .content h2,
html[data-theme="dark"] .panel hr, html[data-theme="dark"] .content hr { border-color: #3d2e1e; }
html[data-theme="dark"] a { color: #9be36a; }
html[data-theme="dark"] a:hover { color: #f6c945; }
html[data-theme="dark"] a.forumtitle, html[data-theme="dark"] a.topictitle, html[data-theme="dark"] a.lastsubject { color: #f4e9d8; }
html[data-theme="dark"] a.forumtitle:hover, html[data-theme="dark"] a.topictitle:hover, html[data-theme="dark"] a.lastsubject:hover { color: #f6c945; }

/* Bars and lists */
html[data-theme="dark"] .navbar { background-color: #221910; border-color: #3d2e1e; }
html[data-theme="dark"] .navbar ul.linklist { border-top-color: #3d2e1e; }
html[data-theme="dark"] .navbar a, html[data-theme="dark"] .navbar .crumb a { color: #f4e9d8; }
html[data-theme="dark"] .navbar a:hover { color: #f6c945; }
html[data-theme="dark"] .forabg, html[data-theme="dark"] .forumbg { background: #3d2409 none; }
html[data-theme="dark"] ul.forums, html[data-theme="dark"] ul.topics { background: #221910 none; }
html[data-theme="dark"] ul.topiclist li.row { background-color: #221910; }
html[data-theme="dark"] ul.topiclist li.row.bg2 { background-color: #1d150d; }
html[data-theme="dark"] li.row { border-top-color: #221910; border-bottom-color: #3d2e1e; }
html[data-theme="dark"] ul.topiclist dd { border-left-color: #3d2e1e; }
html[data-theme="dark"] li.row:hover, html[data-theme="dark"] ul.topiclist li.row.bg2:hover { background-color: #2b2015; }
html[data-theme="dark"] li.row:hover dd { border-left-color: #4a3826; }
html[data-theme="dark"] dl.row-item[class*="_read"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%232b2015' stroke='%233d2e1e' stroke-width='2'/%3E%3Cpath d='M10 11.5h12a2.5 2.5 0 0 1 2.5 2.5v6a2.5 2.5 0 0 1-2.5 2.5h-6.5l-4 3v-3H10A2.5 2.5 0 0 1 7.5 20v-6A2.5 2.5 0 0 1 10 11.5z' fill='none' stroke='%23cbb79a' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-theme="dark"] dl.row-item[class*="_locked"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%232b2015' stroke='%233d2e1e' stroke-width='2'/%3E%3Crect x='10.5' y='15' width='11' height='8.5' rx='2' fill='%23cbb79a'/%3E%3Cpath d='M12.5 15v-2.5a3.5 3.5 0 0 1 7 0V15' fill='none' stroke='%23cbb79a' stroke-width='2'/%3E%3C/svg%3E"); }

/* Posts and panels */
html[data-theme="dark"] .panel, html[data-theme="dark"] .bg1, html[data-theme="dark"] #page-body fieldset.quick-login { background-color: #221910; border-color: #3d2e1e; }
html[data-theme="dark"] .bg2 { background-color: #1d150d; }
html[data-theme="dark"] .bg3 { background-color: #2b2015; }
html[data-theme="dark"] .post { border-color: #3d2e1e; }
html[data-theme="dark"] .postprofile { border-left-color: #3d2e1e; }
html[data-theme="dark"] blockquote { background-color: #2b2015; border-color: #4a3826; color: #f4e9d8; }
html[data-theme="dark"] blockquote blockquote { background-color: #221910; }
html[data-theme="dark"] .codebox { background-color: #120d08; border-color: #3d2e1e; }
html[data-theme="dark"] .codebox code { color: #e9dcc3; }
html[data-theme="dark"] .codebox p { border-bottom-color: #3d2e1e; color: #cbb79a; }
html[data-theme="dark"] .signature { border-top-color: #3d2e1e; }
html[data-theme="dark"] .author, html[data-theme="dark"] .postbody .author { color: #cbb79a; }

/* Buttons, menus, pagination and fields */
html[data-theme="dark"] .button { background: #2b2015 none; border-color: #3d2e1e; color: #f4e9d8; }
html[data-theme="dark"] .button:hover, html[data-theme="dark"] .button:focus { background: #35281b none; border-color: #5a4430; color: #fff; }
html[data-theme="dark"] .button .icon, html[data-theme="dark"] .button-secondary { color: #cbb79a; }
html[data-theme="dark"] .button:hover .icon, html[data-theme="dark"] .button:focus .icon { color: #f6c945; }
html[data-theme="dark"] input.button2, html[data-theme="dark"] .button2 { background: #2b2015 none; border-color: #3d2e1e; color: #f4e9d8; }
html[data-theme="dark"] .dropdown .dropdown-contents { background: #221910; border-color: #3d2e1e; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
html[data-theme="dark"] .dropdown .pointer { border-color: #3d2e1e transparent; }
html[data-theme="dark"] .dropdown .pointer-inner { border-color: #221910 transparent; }
html[data-theme="dark"] .dropdown li { border-color: #3d2e1e; }
html[data-theme="dark"] .pagination li a { background: #221910; border-color: #3d2e1e; color: #f4e9d8; }
html[data-theme="dark"] .pagination li.active span { background: #f6c945; border-color: #f6c945; color: #402408; }
html[data-theme="dark"] .pagination li a:hover { background: #3d2409; border-color: #3d2409; color: #fff; }
html[data-theme="dark"] .inputbox, html[data-theme="dark"] fieldset .inputbox, html[data-theme="dark"] fieldset select,
html[data-theme="dark"] fieldset textarea, html[data-theme="dark"] select, html[data-theme="dark"] textarea,
html[data-theme="dark"] #page-body fieldset.quick-login input.inputbox { background-color: #17110a; border-color: #3d2e1e; color: #f4e9d8; }
html[data-theme="dark"] .inputbox:focus, html[data-theme="dark"] fieldset .inputbox:focus,
html[data-theme="dark"] #page-body fieldset.quick-login input.inputbox:focus { background-color: #1d150d; border-color: #f6c945; outline-color: #3d2e1e; }
html[data-theme="dark"] .tabs .tab > a { background: #221910; color: #cbb79a; border-color: #3d2e1e; }
html[data-theme="dark"] .tabs .activetab > a { background: #2b2015; color: #f4e9d8; }
html[data-theme="dark"] .cp-main .panel, html[data-theme="dark"] .cp-menu { background-color: #221910; }
html[data-theme="dark"] #page-footer .copyright, html[data-theme="dark"] #page-footer .copyright a { color: #9d8a6e; }
html[data-theme="dark"] h2.topic-title a, html[data-theme="dark"] .postbody h3 a, html[data-theme="dark"] .postbody h3.first a { color: #f4e9d8; }
html[data-theme="dark"] h2.topic-title a:hover, html[data-theme="dark"] .postbody h3 a:hover { color: #f6c945; }
html[data-theme="dark"] .postprofile strong, html[data-theme="dark"] .content strong, html[data-theme="dark"] .author strong { color: #f4e9d8; }
html[data-theme="dark"] .pagination li a, html[data-theme="dark"] .pagination li a.button { background: #221910; border-color: #3d2e1e; color: #f4e9d8; }

/* ------------------------------------------------------------------
   Dark mode tidy-up (1.4.2): stat boxes, counts, last post, headings
------------------------------------------------------------------- */
/* "Who is online" and "Statistics" as matching cards in both modes */
.stat-block { background: #fff; border: 1px solid #e9d8b4; border-radius: 14px; padding: 14px 18px 16px; margin: 0 0 14px; }
.stat-block h3 { margin-top: 0; }
html[data-theme="dark"] .stat-block { background: #221910 !important; border-color: #3d2e1e !important; color: #cbb79a !important; }
html[data-theme="dark"] .stat-block h3, html[data-theme="dark"] .stat-block h3 a { color: #f4e9d8 !important; border-bottom-color: #3d2e1e !important; }
html[data-theme="dark"] .stat-block strong { color: #f4e9d8 !important; }

/* Forum list: readable numbers, descriptions and last post */
html[data-theme="dark"] ul.topiclist li.row dd,
html[data-theme="dark"] ul.topiclist li.row dd span,
html[data-theme="dark"] ul.topiclist dd.posts,
html[data-theme="dark"] ul.topiclist dd.topics,
html[data-theme="dark"] ul.topiclist dd.lastpost,
html[data-theme="dark"] ul.topiclist dd.lastpost time { color: #cbb79a !important; }
html[data-theme="dark"] ul.topiclist dd.posts, html[data-theme="dark"] ul.topiclist dd.topics { color: #f4e9d8 !important; font-weight: 600; }
html[data-theme="dark"] ul.topiclist li.row dt .list-inner { color: #b9a585 !important; }
html[data-theme="dark"] ul.topiclist a.lastsubject { color: #f4e9d8 !important; }
html[data-theme="dark"] ul.topiclist a.lastsubject:hover { color: #f6c945 !important; }
html[data-theme="dark"] ul.topiclist dd { border-left-color: #3d2e1e !important; }

/* Small headings like "Login • Register" */
html[data-theme="dark"] #page-body form.headerspace h3,
html[data-theme="dark"] #page-body form.headerspace h3 a { color: #f4e9d8 !important; border-bottom-color: #3d2e1e !important; }

/* Date line and icons in the bars */
html[data-theme="dark"] #page-body > p.right, html[data-theme="dark"] .time { color: #cbb79a; }
html[data-theme="dark"] .navbar .icon, html[data-theme="dark"] #page-footer .icon { color: #f6c945 !important; }
/* Group-coloured names (e.g. admins in dark red) stay readable on dark */
html[data-theme="dark"] .username-coloured { filter: brightness(1.7) saturate(0.9); }
.stat-block p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   Topic pages (1.5.0): readable posts in dark mode, tidy buttons
------------------------------------------------------------------- */
/* Topic title: a proper page heading */
h2.topic-title, h2.forum-title { font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 22px 0 4px; }
.has-profile .postbody h3 { font-size: 20px; }

/* Post text: bigger and easier to read, in both modes */
.postbody .content { font-size: 16px; line-height: 1.7; color: #402408; }
.postbody .content h1, .postbody .content h2, .postbody .content h3 { color: #402408; }
html[data-theme="dark"] .postbody,
html[data-theme="dark"] .postbody .content,
html[data-theme="dark"] .postbody .content p,
html[data-theme="dark"] .postbody .content li,
html[data-theme="dark"] .postbody .content span:not([style*="color"]),
html[data-theme="dark"] .postbody .content h1,
html[data-theme="dark"] .postbody .content h2,
html[data-theme="dark"] .postbody .content h3 { color: #f4e9d8 !important; }
html[data-theme="dark"] .postbody .content a { color: #9be36a !important; }

/* Post title and "by ... date" line */
.postbody h3 { font-size: 22px; margin-bottom: 4px; }
.postbody h3 img { display: none; }
.postbody .author { font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif; font-size: 14px; color: #8a6a45; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #e9d8b4; }
.postbody .author .icon, .postbody .author a.unread .icon { display: none; }
html[data-theme="dark"] .postbody .author { color: #b9a585 !important; border-bottom-color: #3d2e1e; }

/* Profile column */
.postprofile dd, .postprofile dt { font-size: 14px; line-height: 1.6; }
.postprofile .profile-rank { color: #8a6a45; }
html[data-theme="dark"] .postprofile .profile-rank { color: #b9a585; }

/* Bar above and below posts: Post Reply, tools, search, page count all the same height */
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 16px; }
.action-bar > * { float: none !important; margin: 0 !important; }
.action-bar .pagination { margin-left: auto !important; font-size: 14px; color: #8a6a45; }
.action-bar .button, .action-bar .dropdown-container > .button { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; font: 700 15px "Instrument Sans", "Segoe UI", system-ui, sans-serif; }
.action-bar > a.button:first-child { background: #402408; border-color: #402408; color: #fff; }
.action-bar > a.button:first-child .icon { color: #f6c945 !important; }
.action-bar > a.button:first-child:hover { background: #5a3513; border-color: #5a3513; }

/* Search this topic: one rounded box with the buttons inside */
.action-bar .search-box { display: block; }
.action-bar .search-box fieldset { display: flex; align-items: center; height: 40px; box-sizing: border-box; padding: 0 4px 0 0; border: 1px solid #e9d8b4; border-radius: 999px; background: #fff; overflow: hidden; }
.action-bar .search-box .inputbox { height: 38px; min-height: 0; border: 0 !important; border-radius: 0; background: transparent; padding: 0 8px 0 16px; width: 170px; font: 15px "Instrument Sans", "Segoe UI", system-ui, sans-serif; color: #402408; box-shadow: none; outline: none; }
.action-bar .search-box .button { height: 32px; width: 32px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: transparent; }
.action-bar .search-box .button:hover { background: #f6edd6; }
.action-bar .search-box:focus-within fieldset { border-color: #d9a400; }

/* Edit, delete, report, info and quote: small matching round buttons */
.post-buttons { display: flex; gap: 6px; }
.post-buttons li { margin: 0 !important; }
.post-buttons .button { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fdf8ec; border-color: #e9d8b4; }
.post-buttons .button:hover { background: #f6c945; border-color: #e6b92f; }

/* Icons in chocolate, not green, so the bar looks calm */
.action-bar .button .icon, .post-buttons .button .icon, .search-box .button .icon { color: #5b3a1a !important; }
.action-bar .button:hover .icon, .post-buttons .button:hover .icon { color: #402408 !important; }

/* The same in dark mode */
html[data-theme="dark"] .action-bar .pagination { color: #b9a585; }
html[data-theme="dark"] .action-bar > a.button:first-child { background: #f6c945; border-color: #f6c945; color: #2a1a0b; }
html[data-theme="dark"] .action-bar > a.button:first-child .icon { color: #2a1a0b !important; }
html[data-theme="dark"] .action-bar > a.button:first-child:hover { background: #ffd95e; border-color: #ffd95e; }
html[data-theme="dark"] .action-bar .search-box fieldset { background: #17110a; border-color: #3d2e1e; }
html[data-theme="dark"] .action-bar .search-box .inputbox { background: transparent !important; color: #f4e9d8; }
html[data-theme="dark"] .action-bar .search-box .button:hover { background: #2b2015; }
html[data-theme="dark"] .post-buttons .button { background: #2b2015; border-color: #3d2e1e; }
html[data-theme="dark"] .post-buttons .button:hover { background: #f6c945; border-color: #f6c945; }
html[data-theme="dark"] .action-bar .button .icon, html[data-theme="dark"] .post-buttons .button .icon, html[data-theme="dark"] .search-box .button .icon { color: #e9dcc3 !important; }
html[data-theme="dark"] .post-buttons .button:hover .icon { color: #2a1a0b !important; }

@media (max-width: 700px) {
	.action-bar .search-box .inputbox { width: 120px; }
	.action-bar .pagination { margin-left: 0 !important; width: 100%; text-align: left; float: none; }
	.postbody .content { font-size: 15.5px; }
}
