:root {
	--st-bg: #f6f8fb;
	--st-surface: #ffffff;
	--st-surface-soft: #f9fbfd;
	--st-sidebar-surface: #f3f6fa;
	--st-text: #1f2937;
	--st-muted: #6b7280;
	--st-border: #e5e7eb;
	--st-border-strong: #d9e1eb;
	--st-accent: #345c8a;
	--st-accent-strong: #27486f;
	--st-accent-soft: #eaf2fb;
	--st-success: #2e7d32;
	--st-danger: #d92d20;
	--st-radius: 18px;
	--st-radius-sm: 12px;
	--st-max-width: 1240px;
	--st-header-height: 72px;
	--st-left-col: 240px;
	--st-right-col: 240px;
	--st-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
	--st-shadow-header: 0 2px 14px rgba(15, 23, 42, 0.18);
	--st-trans: 0.2s ease;
}

html,
body {
	min-height: 100%;
	background: var(--st-bg);
	color: var(--st-text);
}

body {
	font-size: 15px;
	line-height: 1.6;
}

body,
button,
input,
select,
textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#wrap.smarttheme-wrap,
#wrap.smarttheme-wrap button,
#wrap.smarttheme-wrap input,
#wrap.smarttheme-wrap select,
#wrap.smarttheme-wrap textarea,
#wrap.smarttheme-wrap h1,
#wrap.smarttheme-wrap h2,
#wrap.smarttheme-wrap h3,
#wrap.smarttheme-wrap p,
#wrap.smarttheme-wrap a,
#wrap.smarttheme-wrap li,
#wrap.smarttheme-wrap dt,
#wrap.smarttheme-wrap dd,
#wrap.smarttheme-wrap .forumtitle,
#wrap.smarttheme-wrap .responsive-hide,
#wrap.smarttheme-wrap .content,
#wrap.smarttheme-wrap .panel,
#wrap.smarttheme-wrap .post,
#wrap.smarttheme-wrap .row,
#wrap.smarttheme-wrap .search-box input,
#wrap.smarttheme-wrap input.button1,
#wrap.smarttheme-wrap input.button2 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a,
a:link,
a:visited {
	color: var(--st-accent);
}

a:hover,
a:focus {
	color: var(--st-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
dd,
dt,
label,
.small,
.responsive-show {
	color: var(--st-text);
}

/* ----------------------------------------
   Header
----------------------------------------- */

.smarttheme-topband {
	width: 100%;
	background: var(--st-accent);
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.smarttheme-inner {
	max-width: var(--st-max-width);
	margin: 0 auto;
	padding: 0 1rem;
}

.smarttheme-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	min-height: var(--st-header-height);
	padding: 0.8rem 0;
	color: #f8faff;
	position: relative;
	z-index: 10;
}

.smarttheme-header-left {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.smarttheme-header-right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	flex-shrink: 0;
}

.smarttheme-mobile-menu-trigger,
.smarttheme-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: var(--st-radius-sm);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color var(--st-trans), color var(--st-trans), transform var(--st-trans);
}

.smarttheme-mobile-menu-trigger:hover,
.smarttheme-mobile-menu-trigger:focus,
.smarttheme-header-icon:hover,
.smarttheme-header-icon:focus {
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	text-decoration: none;
}

.smarttheme-header-icon.is-active,
.smarttheme-header-icon.has-unread {
	background: rgba(255, 255, 255, 0.22);
	color: var(--st-accent-strong);
}

.smarttheme-header-icon.is-active:hover,
.smarttheme-header-icon.is-active:focus,
.smarttheme-header-icon.has-unread:hover,
.smarttheme-header-icon.has-unread:focus {
	background: rgba(255, 255, 255, 0.28);
	color: var(--st-accent-strong);
}

.smarttheme-mobile-menu-trigger {
	flex-shrink: 0;
}

.smarttheme-branding,
.smarttheme-branding-link,
.smarttheme-branding-text {
	min-width: 0;
}

.smarttheme-branding-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: #f8faff;
	min-width: 0;
}

.smarttheme-branding-link:hover,
.smarttheme-branding-link:focus {
	color: #fff;
	text-decoration: none;
}

.smarttheme-branding .site_logo {
	flex-shrink: 0;
	width: auto;
	height: 34px;
	max-width: 120px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
}

.smarttheme-branding-text {
	display: inline-flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.smarttheme-branding-title {
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smarttheme-branding-subtitle {
	font-size: 0.9em;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.84);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smarttheme-header-icon {
	position: relative;
	font-size: 1rem;
}

.smarttheme-header-badge {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--st-danger);
	color: #fff;
	font-size: 0.66rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.smarttheme-header-auth {
	display: inline-flex;
	align-items: center;
	padding: 0.7rem 0.95rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: background-color var(--st-trans);
}

.smarttheme-header-auth:hover,
.smarttheme-header-auth:focus {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	text-decoration: none;
}

/* ----------------------------------------
   Mobile slide-out
----------------------------------------- */

.smarttheme-mobile-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.42);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--st-trans), visibility var(--st-trans);
	z-index: 70;
}

.smarttheme-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(86vw, 340px);
	background: var(--st-surface);
	border-right: 1px solid var(--st-border);
	box-shadow: 10px 0 28px rgba(15, 23, 42, 0.16);
	transform: translateX(-102%);
	transition: transform var(--st-trans);
	z-index: 80;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.smarttheme-mobile-drawer-head {
	background: var(--st-accent);
	color: #fff;
	min-height: var(--st-header-height);
	padding: 0 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.smarttheme-mobile-drawer-user {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.smarttheme-mobile-drawer-userlink,
.smarttheme-mobile-drawer-userlink:link,
.smarttheme-mobile-drawer-userlink:visited {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	flex: 1 1 auto;
	color: #fff;
	text-decoration: none;
}

.smarttheme-mobile-drawer-userlink:hover,
.smarttheme-mobile-drawer-userlink:focus {
	color: #fff;
	text-decoration: none;
}

.smarttheme-mobile-drawer-avatar {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	flex-shrink: 0;
	overflow: hidden;
}

.smarttheme-mobile-drawer-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 999px;
}

.smarttheme-mobile-drawer-avatar .avatar,
.smarttheme-mobile-drawer-avatar span.avatar {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
}

.smarttheme-mobile-drawer-usertext {
	min-width: 0;
}

.smarttheme-mobile-drawer-name {
	margin: 0;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smarttheme-mobile-drawer-name,
.smarttheme-mobile-drawer-name .username-coloured,
.smarttheme-mobile-drawer-name .username,
.smarttheme-mobile-drawer-name a {
	color: #fff !important;
}

.smarttheme-mobile-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: var(--st-radius-sm);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.smarttheme-mobile-drawer-close:hover,
.smarttheme-mobile-drawer-close:focus {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.smarttheme-mobile-drawer-body {
	padding: 0.55rem 0.75rem 0.7rem;
	overflow: auto;
	display: grid;
	gap: 0.5rem;
}

.smarttheme-mobile-drawer .smarttheme-sidebar-section + .smarttheme-sidebar-section {
	margin-top: 0;
	padding-top: 0.5rem;
}

.smarttheme-mobile-drawer .smarttheme-sidebar-title {
	margin-bottom: 0.35rem;
}

.smarttheme-mobile-drawer .smarttheme-sidebar-link {
	min-height: 34px;
	padding: 0.46rem 0.68rem;
}

body.smarttheme-menu-open {
	overflow: hidden;
}

body.smarttheme-menu-open .smarttheme-mobile-drawer-backdrop {
	opacity: 1;
	visibility: visible;
}

body.smarttheme-menu-open .smarttheme-mobile-drawer {
	transform: translateX(0);
}

/* ----------------------------------------
   Core layout shell
----------------------------------------- */

#wrap.smarttheme-wrap {
	max-width: var(--st-max-width);
	margin: 0 auto;
	padding: 0 1rem 1.25rem;
	background: transparent;
	border: 0;
	box-shadow: none;
}

#page-body {
	background: transparent;
	margin-top: 0;
}

/* SmartTheme owns the breadcrumb row */
#nav-main,
#nav-footer {
	display: none !important;
}

#nav-breadcrumbs,
#nav-breadcrumbs .inner,
#nav-breadcrumbs .breadcrumbs,
#nav-breadcrumbs .linklist,
#nav-breadcrumbs .navlinks,
#nav-breadcrumbs li.crumb {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.smarttheme-breadcrumb-bar {
	background: #f5f8fc;
	padding: 0.2rem 0;   /* equal top + bottom */
}

.smarttheme-breadcrumb-bar .smarttheme-inner {
	min-width: 0;
	overflow: hidden;
}

.st-breadcrumbs,
.smarttheme-breadcrumbs {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	min-height: 26px;   /* slightly reduced */
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.st-breadcrumbs > .breadcrumbs,
.smarttheme-breadcrumbs > .breadcrumbs {
	display: flex;
	align-items: center;
	gap: 0.14rem;
	margin: 0;
	padding: 0;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
	white-space: nowrap;
}

.st-breadcrumbs .crumb,
.smarttheme-breadcrumbs .crumb {
	display: inline-flex;
	align-items: center;
	font-size: 0.82rem;
	line-height: 1.3;
	font-weight: 400;
	color: #8a95a3;
	min-width: 0;
	flex: 0 0 auto;
}

.st-breadcrumbs .crumb:last-child,
.smarttheme-breadcrumbs .crumb:last-child {
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}

.st-breadcrumbs .crumb:last-child > a,
.st-breadcrumbs .crumb:last-child > span,
.smarttheme-breadcrumbs .crumb:last-child > a,
.smarttheme-breadcrumbs .crumb:last-child > span {
	display: block;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.st-breadcrumbs .crumb::before,
.smarttheme-breadcrumbs .crumb::before {
	content: "›";
	margin: 0 0.38rem;
	color: #bcc5d0;
	font-weight: 400;
}

.st-breadcrumbs .crumb:first-child::before,
.smarttheme-breadcrumbs .crumb:first-child::before {
	display: none;
}

.st-breadcrumbs .crumb a,
.st-breadcrumbs .crumb a:link,
.st-breadcrumbs .crumb a:visited,
.smarttheme-breadcrumbs .crumb a,
.smarttheme-breadcrumbs .crumb a:link,
.smarttheme-breadcrumbs .crumb a:visited {
	color: #8a95a3;
	text-decoration: none;
	font-weight: 400;
}

.st-breadcrumbs .crumb a:hover,
.st-breadcrumbs .crumb a:focus,
.smarttheme-breadcrumbs .crumb a:hover,
.smarttheme-breadcrumbs .crumb a:focus {
	color: #667383;
	text-decoration: none;
	font-weight: 400;
}

.st-breadcrumbs .crumb .icon,
.smarttheme-breadcrumbs .crumb .icon {
	font-size: 0.84em;
	margin-right: 0.14rem;
	color: #a2acb8;
}

.st-breadcrumbs,
.st-breadcrumbs *,
.st-breadcrumbs a,
.st-breadcrumbs span,
.smarttheme-breadcrumbs,
.smarttheme-breadcrumbs *,
.smarttheme-breadcrumbs a,
.smarttheme-breadcrumbs span {
	font-weight: 400 !important;
}

.page-body,
.panel,
.post,
.forabg,
.forumbg,
.navbar {
	border-radius: var(--st-radius);
}

.navbar,
.panel,
.post,
.forabg,
.forumbg {
	background: var(--st-surface);
	border-color: var(--st-border);
}

.navbar {
	box-shadow: var(--st-shadow-soft);
}

hr,
.cp-menu,
.navigation {
	border-color: var(--st-border);
}

/* ----------------------------------------
   Index layout
----------------------------------------- */

.smarttheme-index-layout {
	display: grid;
	grid-template-columns: minmax(var(--st-left-col), var(--st-left-col)) minmax(0, 1fr) minmax(var(--st-right-col), var(--st-right-col));
	gap: 1rem;
	align-items: start;
	margin: 0;
}

.smarttheme-index-centre {
	min-width: 0;
	padding-top: 0;
}

.smarttheme-centre-tools {
	margin: 0 0 1rem;
}

.smarttheme-centre-tabs {
	margin: 0 0 0.75rem;
}

.smarttheme-centre-tabs .sp-view-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.45rem;
	padding: 0.35rem;
	background: var(--st-surface-soft);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow-soft);
}

.smarttheme-centre-tabs .sp-view-tabs a {
	min-height: 44px;
	padding: 0 1rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid transparent;
	color: var(--st-accent);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.smarttheme-centre-tabs .sp-view-tabs a:hover {
	background: var(--st-accent-soft);
	color: var(--st-accent-strong);
	text-decoration: none;
}

.smarttheme-centre-tabs .sp-view-tabs a.active {
	background: var(--st-accent);
	border-color: var(--st-accent);
	color: #ffffff;
	box-shadow: 0 6px 14px rgba(53, 92, 136, 0.16);
}

.smarttheme-centre-tabs .sp-view-tabs a.active:hover {
	background: var(--st-accent-strong);
	border-color: var(--st-accent-strong);
	color: #ffffff;
}

.smarttheme-centre-start {
	margin: 0;
}

.smarttheme-centre-start .sp-start-conversation-button {
	width: 100%;
	min-height: 50px;
	padding: 0.9rem 1rem;
	border: 0;
	border-radius: var(--st-radius-sm);
	background: var(--st-accent);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(53, 92, 136, 0.16);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.smarttheme-centre-start .sp-start-conversation-button:hover {
	background: var(--st-accent-strong);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(53, 92, 136, 0.19);
	text-decoration: none;
}

.smarttheme-index-sidebar {
	min-width: 0;
}

.smarttheme-index-sidebar--left,
.smarttheme-index-sidebar--right {
	position: sticky;
	top: 0;
	margin-top: 0;
}

.smarttheme-sidebar-shell {
	background: var(--st-sidebar-surface);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius);
	padding: 1rem;
	box-shadow: none;
}

.smarttheme-sidebar-section + .smarttheme-sidebar-section {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--st-border-strong);
}

.smarttheme-sidebar-title {
	margin: 0 0 0.45rem;
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: var(--st-text);
}

.smarttheme-sidebar-links,
.smarttheme-sidebar-stats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smarttheme-sidebar-links li + li,
.smarttheme-sidebar-stats li + li {
	margin-top: 0.15rem;
}

.smarttheme-sidebar-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	min-height: 38px;
	padding: 0.58rem 0.78rem;
	border-radius: var(--st-radius-sm);
	color: var(--st-text);
	text-decoration: none;
	transition: background-color var(--st-trans), color var(--st-trans);
}

.smarttheme-sidebar-link:hover,
.smarttheme-sidebar-link:focus {
	background: #ffffff;
	color: var(--st-accent);
	text-decoration: none;
}

.smarttheme-sidebar-link-text,
.smarttheme-sidebar-link-meta {
	display: inline-block;
	min-width: 0;
}

.smarttheme-sidebar-link-meta {
	color: var(--st-muted);
	font-size: 0.9rem;
	white-space: nowrap;
}

.smarttheme-sidebar-stats li,
.smarttheme-sidebar-online,
.smarttheme-sidebar-copy {
	color: var(--st-muted);
	font-size: 0.93rem;
	line-height: 1.55;
}

.smarttheme-sidebar-online {
	margin: 0;
}

.smarttheme-sidebar-copy strong {
	color: var(--st-text);
	font-weight: 600;
}

.smarttheme-sidebar-copy a,
.smarttheme-sidebar-copy a:link,
.smarttheme-sidebar-copy a:visited {
	color: var(--st-accent);
	text-decoration: none;
}

.smarttheme-sidebar-copy a:hover,
.smarttheme-sidebar-copy a:focus {
	color: var(--st-text);
	text-decoration: none;
}

/* ----------------------------------------
   Existing custom forum/category card layout
----------------------------------------- */

.smarttheme-index-centre .forabg,
.smarttheme-index-centre .forumbg,
.smarttheme-index-centre .topiclist,
.smarttheme-index-centre ul.topiclist,
.smarttheme-index-centre li.row,
.smarttheme-index-centre dl.row-item {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.smarttheme-viewforum-centre .forum-title {
	margin: 0 0 0.85rem;
	padding: 0 0.2rem;
	font-size: 1.45rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.smarttheme-viewforum-centre .rules,
.smarttheme-viewforum-centre .stat-block,
.smarttheme-viewforum-centre .action-bar {
	margin-bottom: 0.85rem;
}

.smarttheme-viewforum-centre .action-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem;
	padding: 0.75rem 0.9rem;
	background: var(--st-surface);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow-soft);
}

.smarttheme-viewforum-centre .action-bar.bar-bottom {
	margin: 0.85rem 0 0;
}

.smarttheme-viewforum-centre .action-bar .search-box {
	margin-left: auto;
}

.smarttheme-viewforum-centre .action-bar .pagination {
	margin-left: auto;
}

.smarttheme-viewforum-centre .action-bar .button,
.smarttheme-viewforum-centre .action-bar .button:link,
.smarttheme-viewforum-centre .action-bar .button:visited {
	border-radius: 999px;
	border: 1px solid var(--st-border);
	background: var(--st-accent);
	color: #ffffff;
	font-weight: 600;
}

.smarttheme-viewforum-centre .action-bar .button:hover,
.smarttheme-viewforum-centre .action-bar .button:focus {
	background: var(--st-accent-strong);
	color: #ffffff;
	text-decoration: none;
}

.smarttheme-viewforum-centre .action-bar .search-box input.inputbox.search {
	min-height: 38px;
	border-radius: 999px;
	border: 1px solid var(--st-border);
	padding: 0 0.9rem;
	background: #ffffff;
}

.smarttheme-viewforum-centre .action-bar .search-box .button-search,
.smarttheme-viewforum-centre .action-bar .search-box .button-search-end {
	min-height: 38px;
	min-width: 38px;
	border-radius: 999px;
}

.smarttheme-viewforum-centre .forumbg {
	background: var(--st-surface);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow-soft);
	overflow: hidden;
}

.smarttheme-viewforum-centre .forumbg .topiclist.header {
	background: var(--st-surface-soft);
	border-bottom: 1px solid var(--st-border);
}

.smarttheme-viewforum-centre .forumbg .topiclist.topics > .row {
	border-bottom: 1px solid var(--st-border);
}

.smarttheme-viewforum-centre .forumbg .topiclist.topics > .row:last-child {
	border-bottom: 0;
}

.smarttheme-viewforum-centre .forumbg .list-inner {
	padding: 0.85rem 0.9rem;
}

.smarttheme-viewforum-centre .rules .inner,
.smarttheme-viewforum-centre .stat-block {
	padding: 0.85rem 0.95rem;
	background: var(--st-surface-soft);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius);
}

.smarttheme-viewforum-centre .stat-block h3 {
	margin: 0 0 0.45rem;
	font-size: 1rem;
	font-weight: 700;
}

.smarttheme-viewforum-centre .stat-block p,
.smarttheme-viewforum-centre .rules .inner {
	color: var(--st-muted);
}

.smarttheme-category-block {
	margin: 0 0 1.8rem;
}

.smarttheme-category-header {
	margin: 0 0 0.9rem;
	padding: 0 0.2rem;
}

.smarttheme-category-title {
	margin: 0;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--st-text);
}

.smarttheme-category-title a,
.smarttheme-category-title a:link,
.smarttheme-category-title a:visited {
	color: var(--st-text);
	text-decoration: none;
}

.smarttheme-category-title a:hover,
.smarttheme-category-title a:focus {
	color: var(--st-accent);
	text-decoration: none;
}

.smarttheme-category-desc {
	margin: 0.35rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--st-muted);
}

.smarttheme-forum-list {
	display: grid;
	gap: 0.8rem;
}

.smarttheme-forum-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: start;
	padding: 1rem;
	background: var(--st-surface);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow-soft);
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.smarttheme-forum-card:hover {
	background: var(--st-surface-soft);
	border-color: #dbe4ef;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.smarttheme-forum-card__icon {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 3rem;
	min-width: 3rem;
}

.smarttheme-forum-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 14px;
	background: var(--st-accent-soft);
	color: var(--st-accent);
	font-size: 1.2rem;
	line-height: 1;
}

.smarttheme-forum-image,
.smarttheme-forum-image img {
	display: block;
	max-width: 3rem;
	height: auto;
}

.smarttheme-forum-card__main {
	min-width: 0;
}

.smarttheme-forum-title-row {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
	margin: 0 0 0.2rem;
}

.smarttheme-unread-dot {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 999px;
	background: var(--st-success);
	flex: 0 0 auto;
}

.smarttheme-forum-title,
.smarttheme-forum-title .forumtitle,
.smarttheme-forum-title .forumtitle:link,
.smarttheme-forum-title .forumtitle:visited {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--st-text);
	text-transform: none !important;
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background-image: none !important;
}

.smarttheme-forum-title,
.smarttheme-forum-title .forumtitle {
	display: inline-block;
}

.smarttheme-forum-title .forumtitle:hover,
.smarttheme-forum-title .forumtitle:focus {
	color: var(--st-accent);
	text-decoration: none;
}

.smarttheme-forum-description {
	margin: 0.3rem 0 0.8rem;
	color: var(--st-muted);
	font-size: 1rem;
	line-height: 1.55;
}

.smarttheme-forum-moderators,
.smarttheme-forum-subforums {
	margin: 0.45rem 0 0;
	color: var(--st-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.smarttheme-forum-moderators strong,
.smarttheme-forum-subforums strong {
	color: var(--st-text);
	font-weight: 600;
}

.smarttheme-forum-subforums a,
.smarttheme-forum-subforums a:link,
.smarttheme-forum-subforums a:visited,
.smarttheme-forum-moderators a,
.smarttheme-forum-moderators a:link,
.smarttheme-forum-moderators a:visited {
	color: var(--st-accent);
	text-decoration: none;
}

.smarttheme-forum-subforums a:hover,
.smarttheme-forum-subforums a:focus,
.smarttheme-forum-moderators a:hover,
.smarttheme-forum-moderators a:focus {
	color: var(--st-text);
	text-decoration: none;
}

.smarttheme-forum-lastpost {
	margin-top: 0.8rem;
	padding-top: 0.75rem;
	border-top: 1px solid #edf0f3;
	min-width: 0;
}

.smarttheme-forum-lastpost-label {
	display: block;
	margin: 0 0 0.25rem;
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--st-muted);
}

.smarttheme-forum-lastpost-title-row {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	margin: 0 0 0.2rem;
}

.smarttheme-forum-lastpost-title,
.smarttheme-forum-lastpost-title:link,
.smarttheme-forum-lastpost-title:visited {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	font-size: 1rem;
	line-height: 1.4;
	font-weight: 600;
	color: var(--st-text);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smarttheme-forum-lastpost-title:hover,
.smarttheme-forum-lastpost-title:focus {
	color: var(--st-accent);
	text-decoration: none;
}

.smarttheme-forum-lastpost-title-text {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smarttheme-forum-lastpost-icon-inline {
	display: inline-flex;
	align-items: center;
	margin-left: 0.25rem;
	color: var(--st-accent);
	vertical-align: middle;
	position: relative;
	top: -0.05em;
}

.smarttheme-forum-lastpost-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.2rem;
	row-gap: 0;
	margin-top: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--st-muted);
}

.smarttheme-forum-lastpost-meta a,
.smarttheme-forum-lastpost-meta a:link,
.smarttheme-forum-lastpost-meta a:visited {
	color: var(--st-accent);
	text-decoration: none;
}

.smarttheme-forum-lastpost-meta a:hover,
.smarttheme-forum-lastpost-meta a:focus {
	color: var(--st-text);
	text-decoration: none;
}

.smarttheme-forum-lastpost-meta > a.username,
.smarttheme-forum-lastpost-meta > a.username-coloured,
.smarttheme-forum-lastpost-meta > span.username,
.smarttheme-forum-lastpost-meta > span.username-coloured {
	margin-left: 0.2rem;
}

.smarttheme-forum-lastpost-meta time {
	white-space: nowrap;
}

.smarttheme-forum-lastpost-sep {
	display: inline-block;
	margin: 0 0.35rem;
	color: #9aa4b2;
}

.smarttheme-forum-card__stats {
	min-width: 130px;
	padding-top: 0.1rem;
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
}

.smarttheme-forum-stat {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	white-space: nowrap;
}

.smarttheme-forum-stat-label,
.smarttheme-forum-stat-value {
	display: inline;
}

.smarttheme-forum-stat-label {
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--st-muted);
}

.smarttheme-forum-stat-value {
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 700;
	color: var(--st-text);
}

.smarttheme-forum-stat--empty {
	visibility: hidden;
}

.smarttheme-forum-card__main-link,
.smarttheme-forum-card__main-link:link,
.smarttheme-forum-card__main-link:visited,
.smarttheme-forum-card__main-link:hover,
.smarttheme-forum-card__main-link:focus,
.smarttheme-forum-card__main-link:active,
.smarttheme-forum-lastpost-linkblock,
.smarttheme-forum-lastpost-linkblock:link,
.smarttheme-forum-lastpost-linkblock:visited,
.smarttheme-forum-lastpost-linkblock:hover,
.smarttheme-forum-lastpost-linkblock:focus {
	display: block;
	text-decoration: none !important;
	color: inherit;
}

.smarttheme-forum-lastpost-linkblock {
	margin-top: 0;
	border-radius: 10px;
	transition: background 0.15s ease;
}

.smarttheme-forum-lastpost-linkblock:hover {
	background: #f4f7fb;
}

.smarttheme-forum-card__main-link * {
	text-decoration: none !important;
}

.smarttheme-index-centre .forum-image {
	margin: 0;
}

.smarttheme-index-centre .subforum.unread,
.smarttheme-index-centre .subforum.read {
	padding-left: 0;
	background: none;
}


/* ----------------------------------------
   Viewtopic desktop post flow
----------------------------------------- */

@media (min-width: 761px) {
	.topic-title {
		display: none;
	}

	.post.has-profile .postbody {
		float: none;
		width: auto;
		margin-right: 0;
		overflow: visible;
		min-height: 0;
	}

	.post.has-profile .postbody .postprofile {
		float: inline-end;
		width: clamp(210px, 24%, 280px);
		margin-inline-start: 1rem;
		margin-bottom: 0.75rem;
		padding-inline-start: 1rem;
		border: 0;
		position: relative;
	}

	.post.has-profile .postbody .postprofile::before {
		content: "";
		position: absolute;
		inset-block: 0;
		inset-inline-start: 0;
		width: 1px;
		background: var(--st-border-strong);
		border-radius: 999px;
	}

	.post.has-profile .postbody h3,
	.post.has-profile .postbody .author,
	.post.has-profile .postbody .content,
	.post.has-profile .postbody .notice,
	.post.has-profile .postbody .rules {
		clear: none;
		overflow: visible;
	}

.post.has-profile .postbody h3 {
	float: none;
	margin-right: 0;
	margin-bottom: 0.45em !important;
}

	.post.has-profile .postbody .author {
		margin-bottom: 0.8em;
	}

	.post.has-profile .postbody .content {
		min-height: 0;
	}

.post.has-profile .postbody .post-buttons {
	position: static;
	inset: auto;
	float: none;
	clear: none;
	display: block;
	margin: 0.55rem 0 0.8rem;
	padding: 0;
	list-style: none;
	text-align: left;
}

.post.has-profile .postbody .post-buttons li {
	display: inline-block;
	float: none;
	margin: 0 0.35rem 0 0;
}

	.post.has-profile .postbody .signature {
		clear: inline-end;
		width: auto;
	}
}

/* ----------------------------------------
   Responsive
----------------------------------------- */

@media (max-width: 1100px) {
	.smarttheme-index-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.smarttheme-index-sidebar--left {
		display: none;
	}

	.smarttheme-index-sidebar--right {
		display: none;
		position: static;
	}
}

@media (min-width: 1101px) {
	.smarttheme-mobile-menu-trigger,
	.smarttheme-mobile-drawer,
	.smarttheme-mobile-drawer-backdrop {
		display: none;
	}
}

@media (max-width: 760px) {
	.smarttheme-header {
		min-height: 66px;
		padding: 0.7rem 0;
	}

	.smarttheme-viewforum-centre .action-bar {
		padding: 0.65rem 0.75rem;
		gap: 0.55rem;
	}

	.smarttheme-viewforum-centre .action-bar .search-box,
	.smarttheme-viewforum-centre .action-bar .pagination {
		margin-left: 0;
		width: 100%;
	}

	.smarttheme-viewforum-centre .forumbg .list-inner {
		padding: 0.7rem 0.75rem;
	}

	.smarttheme-branding .site_logo {
		height: 30px;
		max-width: 100px;
	}

	.smarttheme-forum-card {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.smarttheme-forum-card__stats {
		grid-column: 1 / -1;
		text-align: left;
		border-top: 1px solid #edf0f3;
		padding-top: 0.75rem;
		margin-left: 4rem;
		min-width: 0;
		align-items: flex-start;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.75rem 1.2rem;
	}

	.smarttheme-forum-stat {
		min-width: 110px;
	}

	.smarttheme-forum-lastpost-title,
	.smarttheme-forum-lastpost-title:link,
	.smarttheme-forum-lastpost-title:visited,
	.smarttheme-forum-lastpost-title-text {
		white-space: normal;
		overflow: visible;
		text-overflow: initial;
	}

	.smarttheme-forum-lastpost-meta time {
		flex: 0 0 100%;
		margin-top: 0.15rem;
	}

	.smarttheme-forum-lastpost-sep {
		display: none;
	}

	.smarttheme-category-title {
		font-size: 1.34rem;
	}
}

@media (max-width: 560px) {
	.smarttheme-inner,
	#wrap.smarttheme-wrap {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}

	.smarttheme-branding-subtitle {
		display: none;
	}

	.smarttheme-branding .site_logo {
		height: 28px;
		max-width: 88px;
	}

	.smarttheme-header-right {
		gap: 0.25rem;
	}

	.smarttheme-forum-card {
		padding: 0.95rem;
		gap: 0.85rem;
	}

	.smarttheme-forum-card__icon {
		width: 2.7rem;
		min-width: 2.7rem;
	}

	.smarttheme-forum-icon-wrap {
		width: 2.7rem;
		height: 2.7rem;
		font-size: 1.08rem;
	}

	.smarttheme-forum-image,
	.smarttheme-forum-image img {
		max-width: 2.7rem;
	}

	.smarttheme-forum-title {
		font-size: 1.12rem;
	}

	.smarttheme-forum-description,
	.smarttheme-forum-lastpost-title,
	.smarttheme-forum-lastpost-meta,
	.smarttheme-forum-card__stats,
	.smarttheme-category-desc {
		font-size: 0.98rem;
	}

	.smarttheme-forum-card__stats {
		margin-left: 3.55rem;
	}
}
