:root {
	--st-bg: #f6f8fb;
	--st-surface: #ffffff;
	--st-sidebar-surface: #f3f6fa;
	--st-text: #1f2937;
	--st-muted: #6b7280;
	--st-border: #e5e7eb;
	--st-accent: #345c8a;
	--st-accent-soft: #eaf2fb;
	--st-radius: 18px;
	--st-max-width: 1380px;
}

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;
}

.smarttheme-topband {
	width: 100%;
	background: var(--st-accent);
}

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

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

.smarttheme-header {
	display: flex;
	align-items: center;
	min-height: 82px;
	padding: 0.9rem 0;
	color: #f8faff;
}

.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;
}

.smarttheme-branding-logo {
	max-height: 44px;
	width: auto;
	display: block;
}

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

.smarttheme-branding-title {
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.smarttheme-branding-subtitle {
	font-size: 0.9em;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.84);
}

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);
}

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

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

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

.smarttheme-index-layout {
	display: grid;
	grid-template-columns: minmax(210px, 250px) minmax(0, 1fr) minmax(210px, 250px);
	gap: 1rem;
	align-items: start;
	margin: 0.35rem 0 0;
}

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

.smarttheme-index-sidebar .panel {
	background: var(--st-sidebar-surface);
	border-color: var(--st-border);
}

.smarttheme-index-panel {
	padding: 0.9rem 1rem;
	margin-bottom: 0.9rem;
}

.smarttheme-index-panel h2,
.smarttheme-index-panel h3 {
	margin: 0 0 0.55rem;
	color: var(--st-text);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.smarttheme-index-panel p,
.smarttheme-index-panel li,
.smarttheme-index-panel dd,
.smarttheme-index-panel dt,
.smarttheme-index-panel .small {
	color: var(--st-muted);
	font-size: 0.93rem;
	line-height: 1.5;
}

.smarttheme-index-panel a,
.smarttheme-index-panel a:link,
.smarttheme-index-panel a:visited {
	color: var(--st-accent);
	font-size: 0.93rem;
	font-weight: 500;
}

.smarttheme-index-panel a:hover,
.smarttheme-index-panel a:focus {
	color: var(--st-text);
}

.smarttheme-index-nav,
.smarttheme-index-stats {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smarttheme-index-nav li + li,
.smarttheme-index-stats li + li {
	margin-top: 0.35rem;
}

.smarttheme-index-stats li {
	color: var(--st-muted);
}

.smarttheme-index-online {
	color: var(--st-muted);
	margin: 0;
	font-size: 0.93rem;
}

/*
 * Board index centre list refinement
 * Keeps phpBB forum markup intact while softening default prosilver list styling.
 */
.smarttheme-index-centre .forabg,
.smarttheme-index-centre .forumbg {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin-bottom: 1rem;
}

.smarttheme-index-centre .forabg > .topiclist,
.smarttheme-index-centre .forumbg > .topiclist {
	margin-bottom: 0.6rem;
}

.smarttheme-index-centre .forabg > .topiclist > li.header,
.smarttheme-index-centre .forumbg > .topiclist > li.header {
	background: transparent;
	border: 0;
	color: var(--st-text);
	padding: 0.15rem 0.2rem 0.45rem;
}

.smarttheme-index-centre .forabg > .topiclist > li.header h2,
.smarttheme-index-centre .forumbg > .topiclist > li.header h2 {
	color: var(--st-text);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.smarttheme-index-centre .forabg > .topiclist > li.header a,
.smarttheme-index-centre .forumbg > .topiclist > li.header a,
.smarttheme-index-centre .forabg > .topiclist > li.header h2 a,
.smarttheme-index-centre .forumbg > .topiclist > li.header h2 a,
.smarttheme-index-centre .forabg > .topiclist > li.header a:visited,
.smarttheme-index-centre .forumbg > .topiclist > li.header a:visited,
.smarttheme-index-centre .forabg > .topiclist > li.header a:hover,
.smarttheme-index-centre .forumbg > .topiclist > li.header a:hover,
.smarttheme-index-centre .forabg > .topiclist > li.header a:focus,
.smarttheme-index-centre .forumbg > .topiclist > li.header a:focus,
.smarttheme-index-centre .forabg > .topiclist > li.header a:active,
.smarttheme-index-centre .forumbg > .topiclist > li.header a:active {
	color: var(--st-text) !important;
	text-decoration: none;
}

.smarttheme-index-centre .forabg .header a,
.smarttheme-index-centre .forumbg .header a,
.smarttheme-index-centre .forabg .header a:visited,
.smarttheme-index-centre .forumbg .header a:visited,
.smarttheme-index-centre .forabg .header a:hover,
.smarttheme-index-centre .forumbg .header a:hover,
.smarttheme-index-centre .forabg .header a:focus,
.smarttheme-index-centre .forumbg .header a:focus,
.smarttheme-index-centre .forabg .header a:active,
.smarttheme-index-centre .forumbg .header a:active {
	color: var(--st-text) !important;
	text-decoration: none;
}

.smarttheme-index-centre li.header dt {
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--st-text) !important;
	margin: 0;
	padding: 0 0.2rem;
}

.smarttheme-index-centre li.header dt a {
	color: inherit !important;
	text-decoration: none;
}

.smarttheme-index-centre li.header {
	margin-bottom: 0.9rem;
}

.smarttheme-index-centre li.header dd {
	display: none;
}

.smarttheme-index-centre ul.topiclist.forums {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	background: transparent;
}

.smarttheme-index-centre ul.topiclist.forums > li.row {
	background: var(--st-surface);
	border: 1px solid var(--st-border);
	border-radius: var(--st-radius);
	margin: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.smarttheme-index-centre ul.topiclist.forums > li.row:hover {
	background: var(--st-accent-soft);
	border-color: #d7e3f4;
	box-shadow: 0 2px 12px rgba(52, 92, 138, 0.08);
}

.smarttheme-index-centre ul.topiclist.forums > li.row dl.row-item {
	padding-top: 0.95rem;
	padding-bottom: 0.95rem;
}

.smarttheme-index-centre ul.topiclist.forums > li.row dd {
	border-left-color: var(--st-border);
	color: var(--st-muted);
}

.smarttheme-index-centre a.forumtitle {
	color: var(--st-text);
	font-size: 1.03rem;
	font-weight: 700;
}

.smarttheme-index-centre a.forumtitle:hover,
.smarttheme-index-centre a.forumtitle:focus {
	color: var(--st-accent);
}

.smarttheme-index-centre .forum-description,
.smarttheme-index-centre .responsive-show,
.smarttheme-index-centre .forum_moderators,
.smarttheme-index-centre .subforums,
.smarttheme-index-centre dd.lastpost,
.smarttheme-index-centre dd.posts,
.smarttheme-index-centre dd.topics {
	color: var(--st-muted);
}

.smarttheme-index-centre dd.lastpost a,
.smarttheme-index-centre .subforums a,
.smarttheme-index-centre .forum_moderators a {
	color: var(--st-accent);
}

.smarttheme-index-centre .badge,
.smarttheme-index-centre .badge.unread {
	background: var(--st-accent-soft);
	color: var(--st-accent);
	border: 1px solid #d7e3f4;
	border-radius: 999px;
	padding: 0.08rem 0.5rem;
	font-weight: 600;
}

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

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

	.smarttheme-index-sidebar {
		order: 2;
	}

	.smarttheme-index-centre {
		order: 1;
	}

	.smarttheme-index-centre ul.topiclist.forums > li.row dl.row-item {
		padding-top: 0.85rem;
		padding-bottom: 0.85rem;
	}
}
