/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* Article/topic imagery comes in mixed sizes and orientations. Every
   thumbnail and hero gets cropped into the same 16:9 "HD" frame instead of
   stretching or leaving letterboxed gaps. Many source images have white
   backgrounds, which vanish into the white page — a grey backdrop plus
   slightly transparent images tints the white to a light grey so every
   thumbnail keeps a visible edge. */
.ratio-hd {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background-color: #b0b0b0;
}

.ratio-hd img {
	display: block;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	object-fit: cover !important;
	object-position: 50% 50%;
	opacity: .85;
}

.ratio-hd iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ratio-hd > a {
	display: block;
	width: 100%;
	height: 100%;
}

/* One article currently has no ImageURL — a themed tile fills the same
   .ratio-hd frame a real photo would, instead of a broken <img>. */
.ratio-hd-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--cnvs-themecolor), rgba(var(--cnvs-themecolor-rgb, 26, 188, 156), 0.7));
	color: #fff;
	font-size: 2.5rem;
}

#logo img {
	max-height: 56px;
	width: auto;
}

/* Hero slide caption: keep clear of the flexslider's left/right arrows on
   narrow screens, and don't let the default h1 size get too big for a
   phone-width slide. */
#slider .bg-overlay-content > div {
	padding-left: 44px !important;
	padding-right: 44px !important;
}

@media (max-width: 767.98px) {
	#slider h1 {
		font-size: 1.75rem;
	}
}

/* Site accent color: red instead of the template's stock teal. */
:root {
	--cnvs-themecolor: #c0392b;
	--cnvs-themecolor-rgb: 192, 57, 43;
}

/* Hero caption sits over a photo, not a fixed dark background — a few of
   the rotating header photos are quite light, so the white text needs its
   own shadow to stay readable regardless of which one comes up. */
#slider .bg-overlay-content h1,
#slider .bg-overlay-content p {
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Static pages (mw-xs, 608px) and articles (full container, ~1200px) had
   mismatched reading widths — split the difference so both read
   comfortably on desktop. Below 900px the container is already narrower
   than this, so mobile edge padding is unaffected either way. */
.reading-width {
	max-width: 900px;
}

/* "Read More" was the one italic thing on the site (template default) —
   plain text reads more consistently with the rest of the card. */
.more-link {
	font-style: normal;
	font-family: var(--cnvs-body-font);
}

/* The hero's outline button hovers to a white fill (by design, for
   buttons sitting on a photo) — its hover text defaulted to plain dark
   gray. Use the site's red accent instead, everywhere this combination
   (an outline button meant for a photo/dark background) occurs. */
.button.button-border.button-light:hover {
	color: var(--cnvs-themecolor);
}
