/**
 * MinersDB frontend.
 *
 * Everything is prefixed .mdb- so the plugin does not leak into the rest of
 * the site. On the database, directory and stock pages the plugin renders the
 * whole document, so this file also carries the page chrome.
 */

.mdb-body {
	--mdb-ink: #43311b;
	--mdb-body: #4e4335;
	--mdb-muted: #6f6455;
	--mdb-line: #e3daca;
	--mdb-soft: #f8f5ee;
	--mdb-gold: #b4863c;
	--mdb-link: #7a5a24;
	--mdb-lock: #fbf6ea;
	--mdb-gold-bright: #e8be81;

	margin: 0;
	background: #fff;
	color: var(--mdb-body);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

.mdb-body * {
	box-sizing: border-box;
}

.mdb-body img {
	max-width: 100%;
	height: auto;
}

.mdb-skip {
	position: absolute;
	left: -9999px;
}

.mdb-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 20;
	padding: 8px 12px;
	background: #fff;
	border: 2px solid var(--mdb-ink);
}

.mdb-body :focus-visible {
	outline: 2px solid var(--mdb-gold);
	outline-offset: 2px;
}

/* --------------------------------------------------------------- topbar */

.mdb-topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--mdb-ink);
	color: #fff;
}

/* The WordPress admin bar is fixed over the top of the page for logged in
   users, so the sticky header has to start below it. */
.admin-bar .mdb-topbar {
	top: 32px;
}


@media screen and (max-width: 782px) {
	.admin-bar .mdb-topbar {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .mdb-topbar {
		top: 0;
	}
}

.mdb-topbar-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 24px;
	min-height: 54px;
}

.mdb-brand {
	display: flex;
	align-items: center;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
}

.mdb-brand img {
	max-height: 32px;
	width: auto;
}

.mdb-topnav {
	display: flex;
	gap: 4px;
	margin-right: auto;
}

.mdb-topnav a {
	padding: 6px 12px;
	border-radius: 3px;
	color: #ded5c1;
	font-size: 14px;
	text-decoration: none;
}

.mdb-topnav a:hover {
	background: #55412a;
	color: #fff;
}

.mdb-topnav a[aria-current="page"] {
	background: #55412a;
	color: #fff;
}

.mdb-topbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.mdb-topbar-actions .mdb-muted {
	color: #b9a98c;
}

.mdb-btn-ghost {
	background: transparent;
	border: 1px solid #6b5636;
	color: #f3ede1;
}

.mdb-btn-ghost:hover,
.mdb-btn-ghost:focus-visible {
	background: #55412a;
	color: #fff;
}

.mdb-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 34px;
	margin-left: auto;
	border: 1px solid #6b5636;
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
}

.mdb-nav-toggle .mdb-rail-toggle-bars,
.mdb-nav-toggle .mdb-rail-toggle-bars::before,
.mdb-nav-toggle .mdb-rail-toggle-bars::after {
	background: #fff;
}

/* ----------------------------------------------------------------- page */

.mdb-page {
	max-width: 1600px;
	margin: 0 auto;
	padding: 24px;
	min-height: 60vh;
}

.mdb-footer {
	margin-top: 48px;
	border-top: 1px solid var(--mdb-line);
	background: var(--mdb-soft);
}

.mdb-footer-inner {
	max-width: 1600px;
	margin: 0 auto;
	padding: 20px 24px;
	font-size: 12px;
	color: var(--mdb-muted);
}

.mdb-footer p {
	margin: 0 0 4px;
}

.mdb-shell,
.mdb-stock,
.mdb-directory {
	--mdb-ink: #43311b;
	--mdb-body: #4e4335;
	--mdb-muted: #6f6455;
	--mdb-line: #e3daca;
	--mdb-soft: #f8f5ee;
	--mdb-gold: #b4863c;
	--mdb-link: #7a5a24;
	--mdb-lock: #fbf6ea;
	--mdb-gold-bright: #e8be81;

	color: var(--mdb-body);
	font-size: 14px;
	line-height: 1.5;
}

.mdb-shell *,
.mdb-stock *,
.mdb-directory * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- shell */

.mdb-shell {
	position: relative;
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr) 230px;
	gap: 20px;
	align-items: start;
}

/* Collapsed: the menu is hidden and its column given back to the table. */
.mdb-shell.is-collapsed {
	grid-template-columns: 34px minmax(0, 1fr) 230px;
}

.mdb-shell.is-collapsed .mdb-rail {
	display: none;
}

.mdb-shell-narrow {
	grid-template-columns: 190px minmax(0, 1fr);
}

.mdb-rail-toggle {
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 28px;
	border: 1px solid var(--mdb-line);
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
}

.mdb-rail-toggle-bars,
.mdb-rail-toggle-bars::before,
.mdb-rail-toggle-bars::after {
	display: block;
	width: 14px;
	height: 2px;
	background: var(--mdb-ink);
}

.mdb-rail-toggle-bars::before,
.mdb-rail-toggle-bars::after {
	content: "";
	position: relative;
}

.mdb-rail-toggle-bars::before {
	top: -4px;
}

.mdb-rail-toggle-bars::after {
	top: 2px;
}

.mdb-rail {
	position: sticky;
	top: 70px;
	padding: 34px 16px 0 0;
	border-right: 1px solid var(--mdb-line);
}

.mdb-rail-heading {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--mdb-muted);
}

.mdb-rail-list {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.mdb-rail-list li + li {
	margin-top: 2px;
}

.mdb-rail-list a {
	display: block;
	padding: 4px 8px;
	border-radius: 3px;
	color: var(--mdb-ink);
	text-decoration: none;
}

.mdb-rail-list a:hover,
.mdb-rail-list a:focus-visible {
	background: var(--mdb-soft);
}

.mdb-rail-list a.is-active {
	background: var(--mdb-ink);
	color: #fff;
}

/**
 * Themes wrap page content in a narrow column, which leaves no room for a
 * sixteen column table. This breaks the shell out to the full viewport width
 * without needing a custom page template. Turn it off with full="no".
 */
.mdb-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc( 50% - 50vw );
	margin-right: calc( 50% - 50vw );
	padding: 0 24px;
}

/* Inside the plugin's own page the width is already right. */
.mdb-page .mdb-full {
	width: auto;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}

@media (max-width: 782px) {
	.mdb-full {
		padding: 0 12px;
	}
}

/* -------------------------------------------------------------- toolbar */

.mdb-intro {
	margin: 0 0 16px;
	max-width: 68ch;
}

.mdb-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 12px;
}

.mdb-toolbar input[type="search"],
.mdb-toolbar select {
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--mdb-line);
	border-radius: 3px;
	background: #fff;
	color: var(--mdb-ink);
	font-size: 13px;
}

.mdb-toolbar input[type="search"] {
	min-width: 240px;
}

.mdb-count {
	margin: 0 0 0 auto;
	color: var(--mdb-muted);
	font-size: 13px;
}

/* --------------------------------------------------- top scroll bar */

.mdb-scroll-top {
	overflow-x: auto;
	overflow-y: hidden;
	margin-bottom: 2px;
	border: 1px solid var(--mdb-line);
	border-bottom: none;
	border-radius: 3px 3px 0 0;
	background: var(--mdb-soft);
}

.mdb-scroll-top > div {
	height: 1px;
}

/* ------------------------------------------------------------- tags */

.mdb-tag {
	display: inline-block;
	margin: 1px 3px 1px 0;
	padding: 1px 6px;
	border: 1px solid var(--mdb-line);
	border-radius: 10px;
	background: #fff;
	font-size: 11px;
	white-space: nowrap;
}

.mdb-table tbody tr:nth-child(even) .mdb-tag {
	background: #fff;
}

.mdb-tags {
	white-space: normal;
	min-width: 130px;
}

/* -------------------------------------------------- column explainers */

.mdb-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	margin-left: 5px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 9px;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	vertical-align: middle;
	opacity: .75;
}

.mdb-info:hover {
	opacity: 1;
}

.mdb-info-pop {
	position: absolute;
	z-index: 30;
	max-width: 280px;
	padding: 10px 12px;
	border: 1px solid var(--mdb-line);
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(67, 49, 27, .18);
	color: var(--mdb-body);
	font-size: 12.5px;
	line-height: 1.45;
	white-space: normal;
}

.mdb-info-pop[hidden] {
	display: none;
}

/* ---------------------------------------------------------------- table */

.mdb-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--mdb-line);
	border-radius: 3px;
	background: #fff;
}

.mdb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.mdb-table th,
.mdb-table td {
	padding: 6px 8px;
	border-bottom: 1px solid var(--mdb-line);
	text-align: left;
}

.mdb-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--mdb-ink);
	color: #fff;
	font-weight: 600;
	font-size: 12px;
	cursor: pointer;
	user-select: none;
}

.mdb-table thead th:hover {
	background: #55412a;
}

.mdb-table thead th::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 5px;
	vertical-align: middle;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
}

.mdb-table thead th[aria-sort="ascending"]::after {
	border-bottom: 4px solid #fff;
}

.mdb-table thead th[aria-sort="descending"]::after {
	border-top: 4px solid #fff;
}

.mdb-table tbody tr:nth-child(even) {
	background: var(--mdb-soft);
}

.mdb-table tbody tr:hover {
	background: #f1eadb;
}

.mdb-col-name {
	position: sticky;
	left: 0;
	z-index: 1;
	background: inherit;
	font-weight: 600;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mdb-table tbody tr:nth-child(odd) .mdb-col-name {
	background: #fff;
}

.mdb-table tbody tr:nth-child(even) .mdb-col-name {
	background: var(--mdb-soft);
}

.mdb-table thead .mdb-col-name {
	z-index: 3;
	background: var(--mdb-ink);
}

.mdb-col-name a {
	color: var(--mdb-link);
	text-decoration: none;
}

.mdb-col-name a:hover {
	text-decoration: underline;
}

.mdb-num {
	text-align: right;
}

.mdb-ticker {
	color: var(--mdb-muted);
	font-size: 12px;
	letter-spacing: 0.02em;
}

.mdb-date {
	color: var(--mdb-muted);
	font-size: 12px;
}

.mdb-col-free {
	background: #f9f7f2;
}

.mdb-table tbody tr:nth-child(even) .mdb-col-free {
	background: #f2eee5;
}

.mdb-col-metric {
	background: #fbf7ee;
}

.mdb-table tbody tr:nth-child(even) .mdb-col-metric {
	background: #f3eddf;
}

/* Group header above the column names, so the paid block reads as one thing. */
.mdb-group-row th {
	padding: 5px 8px;
	background: #55412a;
	border-bottom: 1px solid #5b472f;
	border-right: 1px solid #5b472f;
	font-size: 11px;
	font-weight: 600;
	color: #ded5c1;
	cursor: default;
	position: sticky;
	top: 0;
	z-index: 3;
}

.mdb-group-row th.mdb-col-free {
	background: #5b472f;
	color: #ded5c1;
}

.mdb-group-row th.mdb-col-metric {
	background: #6b5227;
	color: #e8be81;
}

.mdb-group-row th::after {
	content: none;
}

.mdb-cat-row th {
	position: sticky;
	top: 25px;
	z-index: 3;
	padding: 4px 8px;
	background: #55412a;
	border-right: 1px solid #5b472f;
	font-size: 11px;
	font-weight: 600;
	color: #ded5c1;
	cursor: default;
}

.mdb-cat-row th::after {
	content: none;
}

.mdb-cat-row th.mdb-col-free {
	background: #4d3c28;
}

.mdb-cat-row th.mdb-col-metric {
	background: #5e4922;
	color: #e8be81;
}

.mdb-table thead tr:last-child th {
	top: 49px;
}

.mdb-metric-notice {
	margin: 0 0 8px;
	padding: 8px 12px;
	border: 1px dashed #dcc79b;
	border-radius: 3px;
	background: var(--mdb-lock);
	font-size: 13px;
}

.mdb-metric-notice a {
	color: var(--mdb-gold);
}

.mdb-hidden-cell {
	color: #c9bca3;
	letter-spacing: 2px;
	text-align: center;
}

.mdb-empty td {
	padding: 28px 12px;
	color: var(--mdb-muted);
}

.mdb-note {
	margin: 10px 0 0;
	color: var(--mdb-muted);
	font-size: 12px;
}

/* ---------------------------------------------------------------- stars */

.mdb-stars {
	color: var(--mdb-gold);
	letter-spacing: 1px;
}

.mdb-stars-off {
	color: #ded5c1;
}

.mdb-stars-empty {
	color: var(--mdb-muted);
}

/* ------------------------------------------------------------ right rail */

.mdb-aside {
	position: sticky;
	top: 16px;
	display: grid;
	gap: 14px;
}

.mdb-card {
	padding: 14px;
	border: 1px solid var(--mdb-line);
	border-radius: 3px;
	background: #fff;
}

.mdb-card-quiet {
	background: var(--mdb-soft);
}

.mdb-card-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mdb-ink);
}

.mdb-stat {
	margin: 0;
	font-size: 30px;
	line-height: 1.1;
	font-weight: 600;
	color: var(--mdb-ink);
	font-variant-numeric: tabular-nums;
}

.mdb-stat-label,
.mdb-muted {
	color: var(--mdb-muted);
	font-size: 12px;
}

.mdb-stat-label {
	margin: 2px 0 0;
}

.mdb-toplist {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
}

.mdb-toplist li {
	margin-bottom: 4px;
}

.mdb-toplist a {
	color: var(--mdb-link);
	text-decoration: none;
}

.mdb-toplist-score {
	float: right;
	color: var(--mdb-muted);
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- locked */

.mdb-locked-free {
	border-style: solid;
	border-color: #e3daca;
	background: #f9f7f2;
}

.mdb-locked-free .mdb-locked-title {
	color: var(--mdb-body);
}

.mdb-fact-locked {
	font-size: 15px;
}

.mdb-input-table th {
	width: 220px;
}

.mdb-locked {
	padding: 16px;
	border: 1px dashed #dcc79b;
	border-radius: 3px;
	background: var(--mdb-lock);
	text-align: center;
}

.mdb-locked-title {
	margin: 0 0 4px;
	font-weight: 600;
	color: var(--mdb-gold);
	font-size: 13px;
}

.mdb-locked-text {
	margin: 0 0 10px;
	font-size: 13px;
}

.mdb-btn {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 3px;
	background: var(--mdb-gold-bright, #e8be81);
	color: #43311b;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
}

.mdb-btn:hover,
.mdb-btn:focus-visible {
	background: #dcae6a;
	color: #43311b;
}

.mdb-lock-inline {
	text-decoration: none;
	font-size: 11px;
}

/* --------------------------------------------------------- detail page */

.mdb-crumbs {
	margin-bottom: 12px;
	font-size: 12px;
	color: var(--mdb-muted);
}

.mdb-crumbs a {
	color: var(--mdb-link);
	text-decoration: none;
}

.mdb-crumbs span {
	margin: 0 5px;
}

.mdb-stock-head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--mdb-ink);
}

.mdb-stock-logo {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.mdb-stock-id {
	flex: 1 1 260px;
}

.mdb-stock-id h1 {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
	color: var(--mdb-ink);
}

.mdb-stock-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 6px 0 0;
	font-size: 13px;
}

.mdb-badge {
	padding: 2px 8px;
	border-radius: 2px;
	background: var(--mdb-soft);
	border: 1px solid var(--mdb-line);
	font-size: 12px;
	color: var(--mdb-ink);
}

.mdb-stock-link {
	margin: 4px 0 0;
	font-size: 13px;
}

.mdb-stock-link a {
	color: var(--mdb-link);
}

.mdb-stock-price {
	text-align: right;
}

.mdb-price-now {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	color: var(--mdb-ink);
	font-variant-numeric: tabular-nums;
}

.mdb-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	margin: 0 0 24px;
	background: var(--mdb-line);
	border: 1px solid var(--mdb-line);
}

.mdb-facts > div {
	padding: 10px 12px;
	background: #fff;
}

.mdb-facts dt {
	font-size: 12px;
	color: var(--mdb-muted);
}

.mdb-facts dd {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--mdb-ink);
	font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- tabs */

.mdb-tablist {
	display: flex;
	gap: 2px;
	border-bottom: 1px solid var(--mdb-line);
}

.mdb-tab {
	padding: 9px 18px;
	border: 1px solid transparent;
	border-bottom: none;
	background: none;
	color: var(--mdb-muted);
	font-size: 14px;
	cursor: pointer;
}

.mdb-tab.is-active {
	border-color: var(--mdb-line);
	background: #fff;
	color: var(--mdb-ink);
	font-weight: 600;
	margin-bottom: -1px;
	border-bottom: 1px solid #fff;
}

.mdb-panel {
	padding-top: 20px;
	max-width: 1100px;
}

.mdb-panel[hidden] {
	display: none;
}

.mdb-block {
	margin-bottom: 26px;
}

.mdb-block h2 {
	margin: 0 0 8px;
	font-size: 16px;
	color: var(--mdb-ink);
}

.mdb-block p {
	max-width: 68ch;
}

.mdb-columns .mdb-block p {
	max-width: none;
}

.mdb-score-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 10px;
}

.mdb-score-total {
	margin: 0;
	font-size: 32px;
	font-weight: 600;
	color: var(--mdb-ink);
	font-variant-numeric: tabular-nums;
}

.mdb-score-total span {
	font-size: 16px;
	color: var(--mdb-muted);
	font-weight: 400;
}

.mdb-score-table {
	width: 100%;
	max-width: 480px;
	border-collapse: collapse;
	font-size: 13px;
}

.mdb-score-table th {
	width: 120px;
	padding: 5px 10px 5px 0;
	text-align: left;
	font-weight: 400;
	color: var(--mdb-body);
}

.mdb-score-table td {
	padding: 5px 0;
	font-variant-numeric: tabular-nums;
}

.mdb-score-bar {
	width: 240px;
	padding-right: 14px !important;
}

.mdb-score-bar span {
	display: block;
	height: 8px;
	min-width: 2px;
	background: var(--mdb-gold);
	border-radius: 1px;
}

/* ------------------------------------------------- profile two columns */

/**
 * Two columns, filling row by row, so the sections pair up:
 * description / weakness, scoring inputs / scorecard, timeline / forecast.
 * align-items: start keeps a short section from stretching to match a long
 * one beside it.
 */
.mdb-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 44px;
	align-items: start;
}

@media (max-width: 900px) {
	.mdb-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Pasted content should not break the column it sits in. */
.mdb-block img,
.mdb-reply-body img {
	max-width: 100%;
	height: auto;
}

.mdb-block iframe,
.mdb-reply-body iframe {
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

.mdb-block table,
.mdb-reply-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-bottom: 10px;
}

.mdb-block table th,
.mdb-block table td,
.mdb-reply-body table th,
.mdb-reply-body table td {
	padding: 5px 8px;
	border: 1px solid var(--mdb-line);
	text-align: left;
}

/* ------------------------------------------------------ recent activity */

.mdb-recent {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.mdb-recent li {
	padding: 6px 0;
	border-bottom: 1px solid var(--mdb-line);
}

.mdb-recent a {
	color: var(--mdb-link);
	text-decoration: none;
	font-weight: 600;
}

.mdb-recent .mdb-muted {
	margin-left: 8px;
}

/* ---------------------------------------------------------------- forum */

.mdb-forum-board {
	margin-bottom: 32px;
}

.mdb-forum-board h2 {
	margin: 0 0 6px;
	font-size: 18px;
	color: var(--mdb-ink);
}

.mdb-forum-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--mdb-line);
	background: #fff;
	font-size: 13px;
}

.mdb-forum-table th {
	padding: 7px 10px;
	background: var(--mdb-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-align: left;
}

.mdb-forum-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--mdb-line);
}

.mdb-forum-table tbody tr:nth-child(even) {
	background: var(--mdb-soft);
}

.mdb-forum-title a {
	color: var(--mdb-link);
	text-decoration: none;
	font-weight: 600;
}

.mdb-forum-title a:hover {
	text-decoration: underline;
}

.mdb-forum-last .mdb-muted {
	margin-left: 6px;
}

.mdb-forum-pager {
	display: flex;
	gap: 4px;
	margin-top: 10px;
}

.mdb-forum-pager a,
.mdb-forum-pager span {
	min-width: 28px;
	padding: 4px 6px;
	border: 1px solid var(--mdb-line);
	border-radius: 3px;
	text-align: center;
	font-size: 13px;
	text-decoration: none;
	color: var(--mdb-link);
}

.mdb-forum-pager .is-current {
	background: var(--mdb-ink);
	border-color: var(--mdb-ink);
	color: #fff;
}

/* ----------------------------------------------------------- discussion */

.mdb-discussion-head {
	margin: 0 0 14px;
}

.mdb-replies {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	max-width: 760px;
}

.mdb-replies li {
	padding: 10px 0;
	border-top: 1px solid var(--mdb-line);
}

.mdb-reply-meta {
	margin: 0 0 4px;
	font-size: 13px;
}

.mdb-reply-meta .mdb-muted {
	margin-left: 8px;
}

.mdb-reply-body p {
	margin: 0 0 6px;
	color: var(--mdb-body);
}

.mdb-reply-body a {
	color: var(--mdb-link);
}

/* -------------------------------------------------------------- threads */

.mdb-thread {
	max-width: 860px;
}

.mdb-thread-head {
	padding-bottom: 14px;
	border-bottom: 2px solid var(--mdb-ink);
}

.mdb-thread-head h1 {
	margin: 0;
	font-size: 24px;
	color: var(--mdb-ink);
}

.mdb-thread-meta {
	margin: 6px 0 0;
	font-size: 13px;
}

.mdb-thread-meta a {
	color: var(--mdb-link);
}

.mdb-thread-meta .mdb-muted {
	margin-left: 10px;
}

.mdb-thread-replies {
	margin-top: 24px;
}

.mdb-thread-replies h2 {
	font-size: 16px;
	color: var(--mdb-ink);
}

.mdb-comment-list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.mdb-comment-list .comment,
.mdb-comment-list .pingback {
	padding: 14px 0;
	border-top: 1px solid var(--mdb-line);
	list-style: none;
}

.mdb-comment-list .children {
	margin: 12px 0 0 28px;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--mdb-line);
	padding-left: 14px;
}

.mdb-comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--mdb-ink);
}

.mdb-comment-list .comment-author img {
	border-radius: 50%;
}

.mdb-comment-list .comment-metadata {
	margin-bottom: 6px;
	font-size: 12px;
	color: var(--mdb-muted);
}

.mdb-comment-list .comment-metadata a {
	color: var(--mdb-muted);
	text-decoration: none;
}

.mdb-comment-list .reply a {
	font-size: 12px;
	color: var(--mdb-link);
	text-decoration: none;
}

.mdb-thread-replies textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--mdb-line);
	border-radius: 3px;
	font: inherit;
	font-size: 14px;
}

.mdb-thread-replies .form-submit input[type="submit"],
.mdb-thread-replies .submit {
	padding: 8px 16px;
	border: none;
	border-radius: 3px;
	background: var(--mdb-ink);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.mdb-thread-replies .comment-reply-title {
	font-size: 16px;
	color: var(--mdb-ink);
}

/* ------------------------------------------------------------ directory */

.mdb-directory-count {
	margin: 0 0 10px;
	color: var(--mdb-muted);
	font-size: 13px;
}

.mdb-alpha {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--mdb-line);
	margin-bottom: 22px;
}

.mdb-alpha a,
.mdb-alpha span {
	display: inline-block;
	min-width: 26px;
	padding: 3px 0;
	text-align: center;
	text-transform: uppercase;
	font-size: 13px;
	border-radius: 2px;
}

.mdb-alpha a {
	background: var(--mdb-soft);
	color: var(--mdb-link);
	text-decoration: none;
}

.mdb-alpha a:hover {
	background: var(--mdb-ink);
	color: #fff;
}

.mdb-alpha span {
	color: #c9bca3;
}

.mdb-alpha-group {
	margin-bottom: 24px;
	scroll-margin-top: 20px;
}

.mdb-alpha-group h2 {
	margin: 0 0 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--mdb-line);
	font-size: 18px;
	color: var(--mdb-ink);
}

.mdb-alpha-list {
	columns: 3 220px;
	column-gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.mdb-alpha-list li {
	break-inside: avoid;
	margin-bottom: 3px;
}

.mdb-alpha-list a {
	color: var(--mdb-link);
	text-decoration: none;
}

.mdb-alpha-list a:hover {
	text-decoration: underline;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1100px) {
	.mdb-shell {
		grid-template-columns: 190px minmax(0, 1fr);
	}

	.mdb-aside {
		grid-column: 1 / -1;
		position: static;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

@media (max-width: 900px) {
	.mdb-nav-toggle {
		display: inline-flex;
	}

	.mdb-topnav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		gap: 0;
		padding: 8px;
		background: var(--mdb-ink);
		border-top: 1px solid #55412a;
	}

	.mdb-topnav.is-open {
		display: flex;
	}

	.mdb-topbar-inner {
		position: relative;
		flex-wrap: wrap;
		gap: 12px;
		padding: 0 14px;
	}

	.mdb-topbar-actions {
		order: 3;
	}
}

@media (max-width: 782px) {
	.mdb-page {
		padding: 16px 14px;
	}

	.mdb-footer-inner {
		padding: 16px 14px;
	}

	.mdb-shell,
	.mdb-shell-narrow {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdb-rail-toggle {
		position: static;
		margin-bottom: 10px;
	}

	.mdb-shell,
	.mdb-shell.is-collapsed {
		grid-template-columns: minmax(0, 1fr);
	}

	.mdb-rail {
		display: none;
		position: static;
		padding: 0 0 16px;
		border-right: none;
		border-bottom: 1px solid var(--mdb-line);
		margin-bottom: 16px;
	}

	.mdb-shell:not(.is-collapsed) .mdb-rail {
		display: block;
	}

	.mdb-count {
		margin-left: 0;
		width: 100%;
	}

	.mdb-stock-price {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mdb-shell *,
	.mdb-stock * {
		transition: none !important;
	}
}
