/*
 * Forum replies under articles + the brand share row (owner, Oct 14, 2026). Loaded by UMH_Discourse_Style
 * (includes/class-umh-discourse-style.php), printed after umh-theme.css.
 * One markup (.umh-dc, from our wp-discourse templates), two skins:
 *   brand off  the theme's fonts (Montserrat labels, Lato text) and colours: the lighter-touch fix for today's site
 *   brand on   "Sports desk" tokens (Archivo UI, --umh-* colours); dark mode comes from the tokens
 * Layout is shared. No rule here touches the theme's own comment markup.
 */

/* ======================================================================= skins (custom properties) */
#comments.umh-dc {
	--dc-ink: #222;
	--dc-ink-2: #444;
	--dc-muted: #767676;
	--dc-rule: #e2e2e2;
	--dc-heavy: 2px solid #222;
	--dc-tint: #f4f5f7;
	--dc-paper: #fff;
	--dc-link: #00274c;
	--dc-head: var(--umh-font-display, "Montserrat"), "Lato", Arial, sans-serif;
	--dc-ui: var(--umh-font-ui, "Lato"), Arial, sans-serif;
	--dc-text: var(--umh-font-ui, "Lato"), Arial, sans-serif;
	--dc-head-size: 20px;
	--dc-head-weight: 800;
	--dc-head-wdth: normal;
	--dc-cta-bg: #00274c;
	--dc-cta-fg: #fff;
	--dc-cta-hover: #0b3a6b;
	--dc-radius: 3px;
	--dc-focus: 0 0 0 3px #ffcb05;
	--dc-quote: #ffcb05;
}
body.umh-brand #comments.umh-dc {
	--dc-ink: var(--umh-ink);
	--dc-ink-2: var(--umh-ink-2);
	--dc-muted: var(--umh-muted);
	--dc-rule: var(--umh-rule);
	--dc-heavy: var(--umh-rule-heavy);
	--dc-tint: var(--umh-tint);
	--dc-paper: var(--umh-paper);
	--dc-link: var(--umh-ink);
	--dc-head: var(--umh-font-display);
	--dc-ui: var(--umh-font-ui);
	--dc-text: var(--umh-font-ui);
	--dc-head-size: var(--umh-fs-h3);
	--dc-head-weight: 800;
	--dc-head-wdth: "wdth" var(--umh-wdth-h2);
	--dc-cta-bg: transparent;
	--dc-cta-fg: var(--umh-ink);
	--dc-cta-hover: var(--umh-tint);
	--dc-radius: var(--umh-radius-control);
	--dc-focus: var(--umh-focus);
	--dc-quote: var(--umh-rule);
}

/* ======================================================================= section */
#comments.umh-dc {
	display: block !important;
	float: none;
	clear: both;
	width: 100%;
	max-width: 760px;
	margin: 40px 0 8px;
	padding: 0;
	overflow: visible;
	box-sizing: border-box;
	background: none;
	color: var(--dc-ink);
	font-family: var(--dc-ui);
	font-size: var(--umh-fs-base, 16px);
	line-height: 1.5;
	text-align: left;
}
#comments.umh-dc *,
#comments.umh-dc *::before,
#comments.umh-dc *::after { box-sizing: border-box; }

/* head: heavy rule, title, count, join link */
#comments.umh-dc .umh-dc__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0;
	padding: 10px 0 12px;
	border-top: var(--dc-heavy);
	border-bottom: 1px solid var(--dc-rule);
}
#comments.umh-dc .umh-dc__title {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--dc-ink);
	font-family: var(--dc-head);
	font-size: var(--dc-head-size);
	font-weight: var(--dc-head-weight);
	font-variation-settings: var(--dc-head-wdth);
	line-height: 1.15;
	letter-spacing: -.005em;
	text-transform: none;
}
#comments.umh-dc .umh-dc__count {
	color: var(--dc-muted);
	font-family: var(--dc-ui);
	font-size: var(--umh-fs-meta, 14px);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
#comments.umh-dc .umh-dc__join {
	margin-left: auto;
	color: var(--dc-link);
	font-family: var(--dc-ui);
	font-size: var(--umh-fs-base, 14px);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#comments.umh-dc .umh-dc__join:hover { text-decoration-thickness: 2px; }

/* list */
#comments.umh-dc .umh-dc__list {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}
#comments.umh-dc .umh-dc__item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--dc-rule);
	background: none;
}
#comments.umh-dc .umh-dc__item::before,
#comments.umh-dc .umh-dc__item::marker { content: none; }
#comments.umh-dc .umh-dc__reply {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	column-gap: 12px;
	padding: 18px 0 16px;
}

/* avatar: 32px, 4px radius; the username's first letter shows behind it until (or if) the image loads */
#comments.umh-dc .umh-dc__avatar {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
	margin-top: 1px;
	overflow: hidden;
	border-radius: var(--dc-radius);
	background: var(--dc-tint);
}
#comments.umh-dc .umh-dc__initial {
	display: block;
	width: 32px;
	height: 32px;
	overflow: hidden;
	white-space: nowrap;
	color: transparent;
	font-family: var(--dc-ui);
	font-size: 0; /* only the first letter is drawn, so it centres */
	font-weight: 700;
	line-height: 32px;
	text-align: center;
	text-transform: uppercase;
	user-select: none;
}
#comments.umh-dc .umh-dc__initial::first-letter { color: var(--dc-muted); font-size: var(--umh-fs-base, 15px); }
#comments.umh-dc .umh-dc__avatar img {
	position: absolute;
	inset: 0;
	display: block;
	width: 32px;
	height: 32px;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	background: transparent;
	color: transparent; /* no alt text / broken-image glyph over the initial */
}

#comments.umh-dc .umh-dc__main { min-width: 0; }
#comments.umh-dc .umh-dc__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--dc-ui);
	font-size: var(--umh-fs-base, 15px);
	line-height: 1.35;
}
#comments.umh-dc .umh-dc__name {
	color: var(--dc-ink);
	font-weight: 700;
	overflow-wrap: anywhere;
}
#comments.umh-dc .umh-dc__date,
#comments.umh-dc .umh-dc__date time {
	color: var(--dc-muted);
	font-size: var(--umh-fs-meta, 13px);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
#comments.umh-dc .umh-dc__date:hover { text-decoration: underline; text-underline-offset: 3px; }

/* body: forum voice (sans), comfortable measure and spacing; long words and links wrap */
#comments.umh-dc .umh-dc__body {
	color: var(--dc-ink);
	font-family: var(--dc-text);
	font-size: var(--umh-fs-base, 16px);
	line-height: 1.55;
	overflow-wrap: anywhere;
	word-break: normal;
}
#comments.umh-dc .umh-dc__body p {
	margin: 0 0 .7em;
	padding: 0;
	color: inherit;
	font: inherit;
	line-height: inherit;
}
#comments.umh-dc .umh-dc__body p:empty { display: none; } /* the theme template wraps the body in <p>…</p> */
#comments.umh-dc .umh-dc__body > :last-child,
#comments.umh-dc .umh-dc__body p:last-of-type { margin-bottom: 0; }
#comments.umh-dc .umh-dc__body a {
	color: var(--dc-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
#comments.umh-dc .umh-dc__body :is(ul, ol) { margin: 0 0 .7em 1.3em; padding: 0; }
#comments.umh-dc .umh-dc__body li { margin: 0 0 .25em; padding: 0; list-style: disc; font-size: inherit; }
#comments.umh-dc .umh-dc__body ol li { list-style: decimal; }
#comments.umh-dc .umh-dc__body :is(h1, h2, h3, h4, h5, h6) { margin: .8em 0 .4em; font-family: var(--dc-ui); font-size: var(--umh-fs-item, 16px); font-weight: 700; color: var(--dc-ink); }
#comments.umh-dc .umh-dc__body :is(code, pre) { font-size: var(--umh-fs-base, 14px); background: var(--dc-tint); border-radius: 3px; }
#comments.umh-dc .umh-dc__body pre { padding: 10px; overflow-x: auto; white-space: pre; }
/* images: never wider than the column; emoji stay inline at text size */
#comments.umh-dc .umh-dc__body img { max-width: 100%; height: auto; border-radius: 3px; }
#comments.umh-dc .umh-dc__body img.emoji { display: inline; width: 1.2em; height: 1.2em; margin: 0 .05em; vertical-align: -.2em; border-radius: 0; }
#comments.umh-dc .umh-dc__body .lightbox-wrapper,
#comments.umh-dc .umh-dc__body .lightbox { display: block; max-width: 100%; }
#comments.umh-dc .umh-dc__body .lightbox-wrapper .meta { display: none; }
#comments.umh-dc .umh-dc__body iframe,
#comments.umh-dc .umh-dc__body video { max-width: 100%; }
/* quotes (Discourse aside.quote / blockquote): thin rule, smaller, no theme pull-quote styling */
#comments.umh-dc .umh-dc__body aside.quote,
#comments.umh-dc .umh-dc__body blockquote {
	position: static;
	margin: 0 0 .8em;
	padding: 6px 0 6px 12px;
	border: 0;
	border-left: 3px solid var(--dc-quote);
	background: none;
	color: var(--dc-ink-2);
	font-family: var(--dc-text);
	font-size: var(--umh-fs-base, 15px);
	font-style: normal;
	line-height: 1.5;
	quotes: none;
}
#comments.umh-dc .umh-dc__body blockquote::before,
#comments.umh-dc .umh-dc__body blockquote::after { content: none; }
#comments.umh-dc .umh-dc__body aside.quote blockquote { margin: 0; padding: 0; border: 0; }
#comments.umh-dc .umh-dc__body blockquote p { font: inherit; color: inherit; margin: 0 0 .5em; }
#comments.umh-dc .umh-dc__body aside.quote .title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 4px;
	color: var(--dc-muted);
	font-family: var(--dc-ui);
	font-size: var(--umh-fs-meta, 13px);
	font-weight: 700;
}
#comments.umh-dc .umh-dc__body aside.quote .title img.avatar { width: 18px; height: 18px; border-radius: 3px; }
#comments.umh-dc .umh-dc__body .quote-controls { display: none; }
/* link previews (aside.onebox): a compact card */
#comments.umh-dc .umh-dc__body aside.onebox {
	margin: 0 0 .8em;
	padding: 10px 12px;
	border: 1px solid var(--dc-rule);
	border-radius: var(--dc-radius);
	background: var(--dc-paper);
	font-size: var(--umh-fs-base, 14px);
	line-height: 1.4;
	overflow: hidden;
}
#comments.umh-dc .umh-dc__body aside.onebox header { margin: 0 0 4px; color: var(--dc-muted); font-size: var(--umh-fs-meta, 12px); }
#comments.umh-dc .umh-dc__body aside.onebox header img { display: inline; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
#comments.umh-dc .umh-dc__body aside.onebox h3 { margin: 0 0 4px; font-size: var(--umh-fs-base, 15px); }
#comments.umh-dc .umh-dc__body aside.onebox :is(.thumbnail, .onebox-avatar, img.site-icon + img) { float: right; max-width: 96px; max-height: 96px; margin: 0 0 6px 10px; }
#comments.umh-dc .umh-dc__body aside.onebox .onebox-body p { margin: 0; color: var(--dc-ink-2); }
#comments.umh-dc .umh-dc__body aside.onebox .source,
#comments.umh-dc .umh-dc__body aside.onebox .onebox-metadata { display: none; }
#comments.umh-dc .umh-dc__body .mention { font-weight: 600; text-decoration: none; }

/* per-reply "Reply": a small underlined text link under the reply */
#comments.umh-dc .umh-dc__reply-link {
	display: inline-block;
	float: none;
	margin: 8px 0 0;
	padding: 0;
	background: none;
	color: var(--dc-muted);
	font-family: var(--dc-ui);
	font-size: var(--umh-fs-meta, 13px);
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#comments.umh-dc .umh-dc__reply-link:hover { background: none; color: var(--dc-ink); }

/* foot: one primary action + "21 more replies" */
#comments.umh-dc .umh-dc__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	float: none;
	width: auto;
	margin: 22px 0 0;
	padding: 0;
	overflow: visible;
	font-size: var(--umh-fs-base, 15px);
}
#comments.umh-dc .umh-dc__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--dc-cta-bg);
	border-radius: var(--dc-radius);
	background: var(--dc-cta-bg);
	color: var(--dc-cta-fg);
	font-family: var(--dc-ui);
	font-size: var(--umh-fs-base, 15px);
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	transition: background-color .15s ease, border-color .15s ease;
}
#comments.umh-dc .umh-dc__cta:hover { background: var(--dc-cta-hover); border-color: var(--dc-cta-hover); color: var(--dc-cta-fg); text-decoration: none; }
#comments.umh-dc .umh-dc__cta::after { content: "\2192"; margin-left: 8px; font-weight: 700; }
#comments.umh-dc .umh-dc__more {
	color: var(--dc-link);
	font-family: var(--dc-ui);
	font-size: var(--umh-fs-base, 15px);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#comments.umh-dc .umh-dc__more:empty { display: none; }
#comments.umh-dc .umh-dc__empty { margin: 14px 0 0; color: var(--dc-muted); font-size: var(--umh-fs-base, 15px); }
#comments.umh-dc a:focus-visible { outline: none; box-shadow: var(--dc-focus); border-radius: 2px; }

/* brand off: the theme's link colour (navy) on names; Montserrat caps-free title, Lato text */
body:not(.umh-brand) #comments.umh-dc .umh-dc__title { font-weight: 800; letter-spacing: -.01em; }

/* phones */
@media (max-width: 767px) {
	#comments.umh-dc { margin-top: 32px; }
	#comments.umh-dc .umh-dc__head { padding-bottom: 10px; }
	#comments.umh-dc .umh-dc__join { display: none; } /* the button below says the same thing */
	#comments.umh-dc .umh-dc__reply { padding: 16px 0 14px; column-gap: 10px; }
	#comments.umh-dc .umh-dc__reply-link { display: none; } /* one forum link per section on a phone: the CTA */
	#comments.umh-dc .umh-dc__foot { flex-direction: column; align-items: stretch; gap: 12px; }
	#comments.umh-dc .umh-dc__cta { width: 100%; min-height: 48px; }
	#comments.umh-dc .umh-dc__more { align-self: center; padding: 6px 0; }
}

/* ======================================================================= brand: share bars (built by the umh-share script) */
body.umh-brand :is(.social-sharing-top, .social-sharing-bot).umh-share-on {
	float: none;
	clear: both;
	width: 100%;
	text-align: left;
}
body.umh-brand :is(.social-sharing-top, .social-sharing-bot).umh-share-on > a { display: none !important; }
body.umh-brand .social-sharing-top.umh-share-on { margin: 4px 0 22px; }
body.umh-brand .social-sharing-bot.umh-share-on { margin: 6px 0 4px; }
body.umh-brand .umh-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 4px;
	padding: 8px 0;
	border-top: 1px solid var(--umh-rule);
	border-bottom: 1px solid var(--umh-rule);
	font-family: var(--umh-font-ui);
	font-size: var(--umh-fs-base);
	line-height: 1.2;
}
body.umh-brand .umh-share__k {
	display: inline-block;
	width: auto;
	height: auto;
	margin: 0 6px 0 0;
	padding: 0;
	overflow: visible;
	color: var(--umh-muted);
	font-size: var(--umh-fs-label);
	font-weight: 700;
	letter-spacing: var(--umh-track-label);
	text-transform: uppercase;
}
body.umh-brand .umh-share__set { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; width: auto; height: auto; overflow: visible; margin: 0; padding: 0; }
body.umh-brand .umh-share .umh-share__a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: var(--umh-radius-control);
	background: none;
	color: var(--umh-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease;
}
body.umh-brand .umh-share .umh-share__a span { display: inline; width: auto; height: auto; overflow: visible; margin: 0; padding: 0; color: inherit; font: inherit; }
body.umh-brand .umh-share .umh-share__a svg { flex: none; color: var(--umh-ink-2); }
body.umh-brand .umh-share .umh-share__a:hover { background: var(--umh-tint); color: var(--umh-ink); }
body.umh-brand .umh-share .umh-share__a:hover span { text-decoration: underline; text-underline-offset: 3px; }
body.umh-brand .umh-share .umh-share__a:focus-visible { outline: none; box-shadow: var(--umh-focus); }
body.umh-brand .umh-share .umh-share__a.is-done { color: var(--umh-good); }
body.umh-brand .umh-share .umh-share__a.is-done svg { color: var(--umh-good); }
body.umh-brand .umh-share .umh-share__replies { margin-left: auto; color: var(--umh-ink-2); }
@media (max-width: 767px) {
	body.umh-brand .umh-share { gap: 0 2px; }
	body.umh-brand .umh-share .umh-share__a { min-height: 44px; padding: 0 7px; }
	body.umh-brand .umh-share .umh-share__k { margin-right: 2px; }
	/* icons only on a phone (each link keeps its name for screen readers); "Copied" still shows; replies keep the number */
	body.umh-brand .umh-share__set .umh-share__a:not(.is-done) span,
	body.umh-brand .umh-share__replies .umh-share__w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	body.umh-brand .umh-share__set .umh-share__a { min-width: 44px; justify-content: center; padding: 0; }
	body.umh-brand .umh-share__set .umh-share__a.is-done { padding: 0 8px; }
	body.umh-brand .umh-share .umh-share__a svg { width: 18px; height: 18px; }
}
body.umh-brand .umh-share .umh-share__replies { gap: 0; }
body.umh-brand .umh-share .umh-share__replies svg { margin-right: 6px; }
body.umh-brand .umh-share .umh-share__replies .umh-share__w { white-space: pre; }

/* ---------- maize discipline (owner, Oct 15, 2026): brand on only; maize = the one primary action + the "current" marker ---------- */
body.umh-brand #comments.umh-dc .umh-dc__cta { border: 2px solid var(--umh-ink); }
body.umh-brand #comments.umh-dc .umh-dc__cta:hover { border-color: var(--umh-ink); }
/* the initial behind a forum avatar: muted text (only its first letter is drawn), not transparent (Oct 15, 2026) */
body.umh-brand #comments.umh-dc .umh-dc__initial { color: var(--dc-muted); background: var(--dc-tint); }
