/* GTM Auctions: front-end lists. Colours can be overridden per site with these variables. */
.gtmda {
	--gtmda-post-bar: #0c71ed;
	--gtmda-roster-bar: #0c71ed; /* Same blue as the article lists (user, 2026-11-16). */
	--gtmda-bar-text: #fff;
	--gtmda-rule: #e2e2e2;
	--gtmda-muted: #555;
	--gtmda-btn: #0c71ed;
	--gtmda-btn-text: #fff;
	margin: 0 0 1.5em;
}
/* White on blue. !important on the text: themes set their own h3 colour (GSM's turned it black). */
.gtmda .gtmda__heading {
	margin: 0 0 1em;
	padding: .5em .75em;
	text-align: center;
	background: var(--gtmda-roster-bar) !important;
	color: var(--gtmda-bar-text) !important;
}
.gtmda.gtmda--post .gtmda__heading { background: var(--gtmda-post-bar) !important; }
.gtmda--widget .gtmda__heading,
.gtmda--compact .gtmda__heading { padding: .35em .5em; font-size: 1em; }
.gtmda__empty { text-align: center; }
.gtmda__more { text-align: center; font-weight: 700; margin-top: 1em; }
.gtmda img { max-width: 100%; height: auto; display: block; }

/* Sponsor credit: a light panel, so the dark logo reads on dark themes too. */
.gtmda__credit { margin: 1.25em 0 0; text-align: center; }
.gtmda__credit a {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: .2em;
	padding: .5em 1em;
	border-radius: 4px;
	background: #fff;
	color: #555 !important;
	text-decoration: none !important;
}
.gtmda__credit-text { font-size: .8em; font-style: italic; }
.gtmda .gtmda__credit img { width: 200px; max-width: 100%; }
.gtmda--widget .gtmda__credit img,
.gtmda--compact .gtmda__credit img { width: 160px; }

/* post / roster */
.gtmda-lot { padding: 0 0 1.25em; margin: 0 0 1.25em; border-bottom: 1px solid var(--gtmda-rule); }
.gtmda-lot:last-of-type { border-bottom: 0; }
.gtmda-lot__title { display: block; margin: .4em 0 .25em; }
.gtmda-lot__desc p { margin: 0 0 .5em; }
.gtmda-lot__meta { color: var(--gtmda-muted); font-size: .95em; margin: .25em 0; }
.gtmda-lot__link { margin-top: .5em; }
.gtmda-lot--item { display: flex; gap: 1.25em; align-items: flex-start; }
.gtmda-lot--item .gtmda-lot__media { flex: 0 0 25%; max-width: 25%; text-align: center; }
.gtmda-lot--item .gtmda-lot__body { flex: 1 1 auto; min-width: 0; }
.gtmda-lot--item .gtmda-lot__title { margin-top: 0; }
.gtmda-lot--vehicle .gtmda-lot__media img { width: 100%; }
.gtmda-btn {
	display: inline-block;
	margin-top: .5em;
	padding: .35em .9em;
	border-radius: 3px;
	background: var(--gtmda-btn) !important;
	color: var(--gtmda-btn-text) !important;
	text-decoration: none !important;
	font-size: .9em;
	font-weight: 600;
}
@media (max-width: 600px) {
	.gtmda-lot--item { display: block; }
	.gtmda-lot--item .gtmda-lot__media { max-width: none; }
	.gtmda-lot--item .gtmda-lot__media img { width: 100%; }
	.gtmda-lot--item .gtmda-lot__title { margin-top: .5em; }
}

/* widget / compact */
.gtmda-w { margin: 0 0 1.1em; }
.gtmda-w img { width: 100%; margin-bottom: .35em; }
.gtmda-w__title { font-weight: 700; }
.gtmda-w .gtmda-lot__meta { font-size: .9em; }
.gtmda-c { margin: .5em 0 0 1.1em; padding: 0; }
.gtmda-c li { margin: 0 0 .35em; }

/*
 * Text links underlined, like the sites' own "innerhref" links (GSM and ECM Additional CSS: solid black underline),
 * so they read as links in sidebars whatever the theme does. A site can change the line colour with
 * --gtmda-underline. Not the image links, buttons or the sponsor credit.
 */
.gtmda .gtmda-w__title a,
.gtmda .gtmda-c a {
	text-decoration-line: underline !important;
	text-decoration-style: solid !important;
	text-decoration-color: var(--gtmda-underline, #000) !important;
}

/* VIEW ALL LOTS (0.2.0): blue, underlined in the same blue. A site can change the colour with --gtmda-more. */
.gtmda .gtmda__more { margin: .75em 0 .5em; font-size: 1.15em; }
.gtmda .gtmda__more a {
	color: var(--gtmda-more, #0000ff) !important;
	text-decoration-line: underline !important;
	text-decoration-style: solid !important;
	text-decoration-color: currentColor !important;
}
