/* WS6 — Metal Matters (blog hub). Class prefix spf-mm-. Note: 1rem = 10px on this site (html { font-size: 62.5% }).
   Layout sections are left transparent on purpose so the WS3 page watermark shows through; only cards/controls are white. */

.spf-mm-hero,
.spf-mm-main {
	--spf-mm-navy: #003096;
	--spf-mm-yellow: #f6dd03;
	--spf-mm-ink: #1f1f1f;
	--spf-mm-text: #363636;
	--spf-mm-muted: #4a4f5c;
	--spf-mm-line: #e0e3e8;
	--spf-mm-radius: 8px;
	--spf-mm-heading: "Arial Black", Arial, sans-serif;
	--spf-mm-body: "Open Sans", Arial, sans-serif;
}

/* ---------- hero ---------- */
.spf-mm-hero.spf-mm-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	width: 100%;
	min-height: clamp(22rem, 19rem + 7.6vw, 30rem);
	padding: 0 0 clamp(2.2rem, 1.2rem + 2.8vw, 5rem);
	background-color: #1f2430; /* only visible while the photo loads */
}
.spf-mm-hero .brxe-image.spf-mm-hero__img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: 50% 88%; /* forklifts, racks and tubes sit in the lower half of the photo */
}
/* Navy angled label: bleeds off the left edge, text lines up with the page container below. */
.spf-mm-hero .brxe-block.spf-mm-hero__label {
	position: relative;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	padding: clamp(1.6rem, 1rem + 1.6vw, 3rem) clamp(7rem, 3rem + 7vw, 13rem) clamp(1.6rem, 1rem + 1.6vw, 3rem) max(1.5rem, calc((100% - 120rem) / 2));
	background: rgba(0, 48, 150, .88);
	clip-path: polygon(0 0, calc(100% - clamp(3rem, 1.5rem + 3vw, 7rem)) 0, 100% 100%, 0 100%);
}
.spf-mm-hero .spf-mm-hero__title {
	margin: 0;
	color: #fff;
	font-family: var(--spf-mm-heading);
	font-weight: 700;
	font-size: clamp(2.8rem, 1.9rem + 2.6vw, 5.4rem);
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
}
.spf-mm-hero .brxe-divider.spf-mm-hero__rule {
	width: min(20rem, 60%);
	margin: clamp(.8rem, .5rem + .6vw, 1.4rem) 0 clamp(.9rem, .6rem + .7vw, 1.6rem);
}
.spf-mm-hero .spf-mm-hero__tagline {
	margin: 0;
	color: #fff;
	font-family: var(--spf-mm-body);
	font-weight: 800;
	font-size: clamp(1.2rem, .9rem + 1vw, 2.4rem);
	line-height: 1.25;
	letter-spacing: .03em;
	text-transform: uppercase;
}

/* ---------- main area ---------- */
.spf-mm-main.spf-mm-main {
	box-sizing: border-box;
	width: 100%;
	padding: clamp(3rem, 2rem + 2.8vw, 5.6rem) 1.5rem clamp(5rem, 3rem + 5vw, 9rem);
	background: transparent;
}
.spf-mm-main .brxe-container.spf-mm-container {
	width: 120rem;
	max-width: 100%;
}
.spf-mm-main,
.spf-mm-main a {
	font-family: var(--spf-mm-body);
}

/* "Stay informed" heading + yellow rule filling the row (also used, smaller, in the sidebar card) */
.spf-mm-main .brxe-block.spf-mm-headrow {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: .8rem clamp(1.4rem, 1rem + 1vw, 2.6rem);
	width: 100%;
	margin: 0 0 clamp(2.4rem, 1.6rem + 2vw, 4rem);
}
.spf-mm-main .spf-mm-headrow__title {
	margin: 0;
	color: var(--spf-mm-navy);
	font-family: var(--spf-mm-heading);
	font-weight: 700;
	font-size: clamp(2rem, 1.5rem + 1.5vw, 3.2rem);
	line-height: 1.1;
	text-transform: uppercase;
}
.spf-mm-main .brxe-divider.spf-mm-headrow__rule {
	flex: 1 1 8rem;
	width: auto;
	min-width: 8rem;
}
.spf-mm-main .brxe-block.spf-mm-headrow--small {
	flex-wrap: nowrap;
	gap: 1.2rem;
	margin: 0 0 1.8rem;
}
.spf-mm-main .spf-mm-headrow--small .spf-mm-headrow__title {
	font-family: var(--spf-mm-body);
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: .04em;
}
.spf-mm-main .spf-mm-headrow--small .spf-mm-headrow__rule {
	flex: 0 1 7rem;
	min-width: 3rem;
}

/* two columns: posts left (72%), search + recent right (28%); stacked search / posts / recent below 992px */
.spf-mm-main .brxe-block.spf-mm-layout {
	display: grid;
	grid-template-columns: minmax(0, 72fr) minmax(0, 28fr);
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"main search"
		"main recent";
	gap: 2.4rem clamp(2rem, 1rem + 2vw, 3.6rem);
	align-items: start;
	width: 100%;
}
.spf-mm-main .spf-mm-search-wrap { grid-area: search; min-width: 0; }
.spf-mm-main .spf-mm-main-col { grid-area: main; min-width: 0; }
.spf-mm-main .brxe-block.spf-mm-recent-card {
	grid-area: recent;
	box-sizing: border-box;
	min-width: 0;
	padding: 2rem 2rem 1.2rem;
	background: #fff;
	border: 1px solid var(--spf-mm-line);
	border-radius: var(--spf-mm-radius);
	box-shadow: 0 2px 12px rgba(16, 24, 40, .06);
}

/* ---------- topic tabs ---------- */
.spf-mm-browser {
	scroll-margin-top: 2rem;
}
.spf-mm-tabs {
	margin: 0 0 2.4rem;
	padding: .5rem;
	background: #fff;
	border: 1px solid var(--spf-mm-navy);
	border-radius: 7px;
}
.spf-mm-tabs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.spf-mm-tabs__list > li { margin: 0; padding: 0; list-style: none; }
.spf-mm-tab {
	display: block;
	padding: 1rem 1.8rem;
	color: var(--spf-mm-navy);
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: .05em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	border-radius: 5px;
	transition: background-color .15s ease;
}
.spf-mm-tab:hover { background: #e9eefa; }
.spf-mm-tab.is-active,
.spf-mm-tab.is-active:hover {
	color: #fff;
	background: var(--spf-mm-navy);
}

/* ---------- messages ---------- */
.spf-mm-review {
	margin: 0 0 1.6rem;
	padding: 1rem 1.4rem;
	color: var(--spf-mm-ink);
	font-size: 1.3rem;
	line-height: 1.5;
	background: #fff;
	border-left: 5px solid var(--spf-mm-yellow);
	border-radius: 0 var(--spf-mm-radius) var(--spf-mm-radius) 0;
	box-shadow: 0 1px 6px rgba(16, 24, 40, .08);
}
.spf-mm-status {
	margin: 0 0 2rem;
	color: var(--spf-mm-ink);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.5;
}
.spf-mm-status a,
.spf-mm-review a,
.spf-mm-empty a {
	color: var(--spf-mm-navy);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: .2em;
}
.spf-mm-empty {
	padding: 3rem 2.4rem;
	color: var(--spf-mm-text);
	font-size: 1.5rem;
	line-height: 1.6;
	background: #fff;
	border: 1px solid var(--spf-mm-line);
	border-radius: var(--spf-mm-radius);
}
.spf-mm-empty p { margin: 0; }
.spf-mm-empty .spf-mm-empty__title {
	color: var(--spf-mm-navy);
	font-size: 1.8rem;
	font-weight: 800;
}

/* ---------- card grid ---------- */
.spf-mm-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.spf-mm-grid__item { margin: 0; padding: 0; list-style: none; display: flex; }
.spf-mm-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--spf-mm-line);
	border-radius: var(--spf-mm-radius);
	box-shadow: 0 2px 12px rgba(16, 24, 40, .07);
	transition: box-shadow .2s ease, border-color .2s ease;
}
.spf-mm-card:hover,
.spf-mm-card:focus-within {
	border-color: #c9cfdb;
	box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
}
.spf-mm-card__media {
	display: block;
	flex: none;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #e9eefa;
}
.spf-mm-card__media .spf-mm-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.spf-mm-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.4rem 1.6rem 1.6rem;
}
.spf-mm-card__tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem; min-height: 2rem; margin: 0 0 .8rem; }
.spf-mm-chip {
	display: inline-block;
	padding: .5rem .9rem;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1;
	text-transform: uppercase;
	background: var(--spf-mm-navy);
	border-radius: 3px;
}
.spf-mm-chip--draft {
	color: var(--spf-mm-ink);
	background: var(--spf-mm-yellow);
}
.spf-mm-card__date {
	display: block;
	margin: 0 0 .8rem;
	color: var(--spf-mm-muted);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
}
.spf-mm-card__title {
	margin: 0 0 1rem;
	font-family: var(--spf-mm-body);
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1.3;
	text-transform: none;
}
.spf-mm-card__title a {
	color: var(--spf-mm-ink);
	text-decoration: none;
}
.spf-mm-card__title a:hover { color: var(--spf-mm-navy); text-decoration: underline; text-underline-offset: .15em; }
.spf-mm-card__excerpt {
	margin: 0 0 1.4rem;
	color: var(--spf-mm-text);
	font-size: 1.3rem;
	line-height: 1.55;
}
.spf-mm-card__more {
	margin-top: auto;
	color: var(--spf-mm-navy);
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
}
.spf-mm-card__more:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- pagination ---------- */
.spf-mm-pagination { margin: 3.4rem 0 0; }
.spf-mm-pagination__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.spf-mm-pagination__list > li { margin: 0; padding: 0; list-style: none; }
.spf-mm-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 4rem;
	height: 4rem;
	padding: 0 .8rem;
	color: var(--spf-mm-navy);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--spf-mm-navy);
	border-radius: 5px;
	transition: background-color .15s ease;
}
a.spf-mm-page:hover { background: #e9eefa; }
.spf-mm-page.is-current {
	color: #fff;
	background: var(--spf-mm-navy);
}
.spf-mm-page.is-gap { border-color: #b9c2d9; }

/* ---------- search ---------- */
.spf-mm-search {
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	height: 5.4rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--spf-mm-navy);
	border-radius: 7px;
}
.spf-mm-search:focus-within {
	outline: 3px solid var(--spf-mm-navy);
	outline-offset: 2px;
}
.spf-mm-search .spf-mm-search__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0 1.4rem;
	color: var(--spf-mm-ink);
	font-family: var(--spf-mm-body);
	font-size: 1.5rem;
	font-weight: 700;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
}
.spf-mm-search .spf-mm-search__input::placeholder { color: #5a6070; opacity: 1; }
.spf-mm-search .spf-mm-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.spf-mm-search .spf-mm-search__btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 5.6rem;
	margin: 0;
	padding: 0;
	color: #fff;
	background: var(--spf-mm-navy);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .15s ease;
}
.spf-mm-search .spf-mm-search__btn:hover { background: #00227a; }

/* ---------- recent posts ---------- */
.spf-mm-recent { margin: 0; padding: 0; list-style: none; }
.spf-mm-recent__item {
	display: flex;
	gap: 1.4rem;
	align-items: center;
	margin: 0;
	padding: 1.2rem 0;
	list-style: none;
}
.spf-mm-recent__item + .spf-mm-recent__item { border-top: 1px solid #edeff3; }
.spf-mm-recent__thumb {
	display: block;
	flex: none;
	width: 7.2rem;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9eefa;
	border-radius: 4px;
}
.spf-mm-recent__thumb .spf-mm-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.spf-mm-recent__text { min-width: 0; }
.spf-mm-recent__title {
	display: block;
	color: var(--spf-mm-navy);
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.spf-mm-recent__title:hover { text-decoration: underline; text-underline-offset: .15em; }
.spf-mm-recent__date {
	display: block;
	margin-top: .4rem;
	color: var(--spf-mm-muted);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
}
.spf-mm-recent__item .spf-mm-chip--draft { margin-top: .5rem; }
.spf-mm-recent__empty { margin: 0 0 1rem; color: var(--spf-mm-muted); font-size: 1.4rem; }

/* ---------- shared ---------- */
.spf-mm-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.spf-mm-main a:focus-visible,
.spf-mm-main button:focus-visible {
	outline: 3px solid var(--spf-mm-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
}
.spf-mm-search__btn:focus-visible { outline-offset: -3px; outline-color: #fff; box-shadow: none; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
	.spf-mm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.spf-mm-main .brxe-block.spf-mm-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas:
			"search"
			"main"
			"recent";
	}
	.spf-mm-main .brxe-block.spf-mm-recent-card { padding: 2.4rem 2.4rem 1.6rem; }
}
@media (max-width: 600px) {
	/* narrow banner: zoom into the lower half of the photo (forklifts, racks, tubes) so it is not hidden behind the label */
	.spf-mm-hero .brxe-image.spf-mm-hero__img { top: auto; bottom: 0; height: 190%; object-position: 62% 100%; }
	.spf-mm-grid { grid-template-columns: minmax(0, 1fr); }
	.spf-mm-tabs__list { display: grid; grid-template-columns: 1fr 1fr; }
	.spf-mm-tab { padding: 1.1rem .8rem; font-size: 1.2rem; }
	.spf-mm-main .brxe-block.spf-mm-recent-card { padding: 2rem 1.6rem 1rem; }
	.spf-mm-pagination__list { gap: .6rem; }
	.spf-mm-page { min-width: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
	.spf-mm-card, .spf-mm-tab, .spf-mm-page, .spf-mm-search__btn { transition: none; }
}
