/* DWSL additions to Kadence. Colors come from the palette in functions.php. */

/* ---- Identity bar: Howley College logo on white ---- */
/* Clear space = half the dragon's height (logo 32px, so 16px all round). */
.dwsl-identity {
	background: #FFFFFF;
	border-bottom: 1px solid #E5EAF0;
}

.dwsl-identity__inner {
	max-width: var(--global-content-width, 1290px);
	margin: 0 auto;
	padding: 16px var(--global-content-edge-padding, 1.5rem);
}

.dwsl-identity__logo {
	display: inline-block;
	padding: 0 16px 0 0;
	line-height: 0;
}

.dwsl-identity__logo img {
	display: block;
	width: auto;
	height: 32px;
}

@media (max-width: 600px) {
	.dwsl-identity__inner {
		padding-top: 13px;
		padding-bottom: 13px;
	}

	.dwsl-identity__logo img {
		height: 26px;
	}
}

/* ---- Home page video banner ---- */
.dwsl-hero {
	position: relative;
	overflow: hidden;
	background: #07294D url("../images/hero-poster.jpg") center bottom / cover no-repeat;
	aspect-ratio: 1074 / 236; /* the clip's shape */
	min-height: 180px;
	max-height: 420px;
	width: 100%;
}

.dwsl-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 100%; /* any trimming comes off the empty top of the plot, never the frequency axis */
}

/* The right side of the clip is the quietest, so the tagline sits there over a fade. */
.dwsl-hero__text {
	position: absolute;
	inset: 0 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: min(55%, 640px);
	padding: 0 clamp(16px, 4vw, 48px);
	background: linear-gradient(to left, rgba(4, 26, 51, 0.85) 30%, rgba(4, 26, 51, 0));
}

.dwsl-hero__tagline {
	margin: 0;
	color: #FFC600;
	font-size: clamp(1.25rem, 2.6vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	text-align: right;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.dwsl-hero__toggle {
	position: absolute;
	right: 12px;
	bottom: 10px;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 4px;
	background: rgba(4, 26, 51, 0.7);
	color: #FFFFFF;
	font-size: 0.75rem;
	line-height: 1.4;
	cursor: pointer;
}

.dwsl-hero__toggle:hover,
.dwsl-hero__toggle:focus-visible {
	border-color: #FFC600;
	color: #FFC600;
}

@media (max-width: 600px) {
	.dwsl-hero__text {
		width: 100%;
		justify-content: center;
		background: rgba(4, 26, 51, 0.55);
	}

	.dwsl-hero__tagline {
		text-align: center;
	}
}

/* No moving video for people who ask for reduced motion: the poster shows instead. */
@media (prefers-reduced-motion: reduce) {
	.dwsl-hero__video,
	.dwsl-hero__toggle {
		display: none;
	}
}

/* Every page except home: the clip's own shape, capped at 280px. Up to ~1280px wide
   the whole frame shows; wider screens lose only empty plot area at the top. */
.dwsl-hero--strip {
	min-height: 96px;
	max-height: 280px;
}

.dwsl-hero--strip .dwsl-hero__tagline {
	font-size: clamp(1.25rem, 2.2vw, 2rem);
}

/* On pages the banner carries the page title (h1), so Kadence's title banner is hidden. */
.page .entry-hero.page-hero-section {
	display: none;
}

/* ---- Members page (page 14): same size and shape for every person photo ---- */
/* Photos range from 150x200 to 1849x2560 and were resized by hand to 295-327px wide,
   so small originals looked blurry and shapes varied. The group photo isn't in columns. */
.page-id-14 .wp-block-columns .wp-block-image img {
	width: 180px !important; /* overrides each photo's inline width */
	height: auto !important;
	aspect-ratio: 3 / 4 !important;
	object-fit: cover;
	object-position: 50% 25%; /* keep faces in frame */
	border-radius: 6px;
}

.page-id-14 .wp-block-columns .wp-block-image figcaption {
	font-size: 0.85rem;
}

/* ---- Footer social links (white outline buttons on the dark footer) ---- */
.site-footer .footer-social-wrap .social-button {
	color: #FFFFFF;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
}

.site-footer .footer-social-wrap .social-button:hover,
.site-footer .footer-social-wrap .social-button:focus-visible {
	color: #FFC600;
	border-color: #FFC600;
}

.site-footer .site-bottom-footer-inner-wrap .site-footer-section {
	align-items: center;
	text-align: center;
}

/* ---- Header and footer details ---- */
.site-footer .site-bottom-footer-wrap,
.site-footer .site-bottom-footer-wrap a {
	color: #FFFFFF;
}

.site-footer .site-bottom-footer-wrap a:hover {
	color: #FFC600;
}

/* Gold underline on the current menu item. */
.main-navigation .primary-menu-container > ul > li.current-menu-item > a {
	box-shadow: inset 0 -3px 0 #FFC600;
}
