/* ---------------------------------------------------------------------------
 * RMS Commerce Core — static pages (About, Contact, Industries, Downloads).
 *
 * Depends on rms-base.css for the component vocabulary (.rms-container,
 * .rms-section, .rms-title, .rms-btn, the form controls, .rms-pills). This
 * file adds only the page layouts. Everything styles against the --rms-*
 * tokens, never a literal brand colour, so the same rules produce three
 * storefronts.
 *
 * Deliberately absent, per platform rule 8: gradients, glows, blur blobs,
 * glassmorphism. The legacy downloads page ships all four.
 * ------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
 * SHARED
 * ------------------------------------------------------------------------- */

/* Honeypot. Off-screen rather than display:none, so an unsophisticated bot
   still "sees" a field to fill. */
.rms-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Post-submit notices. One box, two accents, no icon set. */
.rms-notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-left: 3px solid var(--rms-primary, #0098db);
	border-radius: var(--rms-radius-sm, 6px);
	background: var(--rms-muted, #f6f8fa);
	font-size: 14px;
	line-height: 1.55;
	color: var(--rms-text, #12181d);
}

.rms-notice--error {
	border-left-color: #b3261e;
}

/* Contact facts list, shared by About and Contact. */
.rms-pgfacts {
	margin: 0;
}

.rms-pgfacts__row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--rms-border, #dfe6ec);
}

.rms-pgfacts__row:last-child {
	border-bottom: 0;
}

.rms-pgfacts dt {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rms-text-mut, #5b6b78);
	padding-top: 2px;
}

.rms-pgfacts dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--rms-text, #12181d);
}

.rms-pgfacts dd a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.rms-pgfacts dd a:hover,
.rms-pgfacts dd a:focus {
	color: var(--rms-primary-d, #0078ad);
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * ABOUT
 * ------------------------------------------------------------------------- */

.rms-about__lead {
	border-bottom: 1px solid var(--rms-border, #dfe6ec);
}

.rms-about__para {
	margin: 0 0 14px;
	max-width: 68ch;
	font-size: 15px;
	line-height: 1.7;
	color: var(--rms-text, #12181d);
}

.rms-about__act {
	margin: 18px 0 0;
}

.rms-about__values {
	background: var(--rms-muted, #f6f8fa);
}

.rms-about__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.rms-about__card {
	padding: 18px;
	background: var(--rms-surface, #fff);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
}

.rms-about__cardTitle {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rms-text, #12181d);
}

.rms-about__cardText {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-about__whereGrid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.rms-about__whereFacts {
	padding: 18px 22px;
	background: var(--rms-muted, #f6f8fa);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
}

.rms-about__legal {
	border-top: 1px solid var(--rms-border, #dfe6ec);
}

.rms-about__legalText {
	margin: 0;
	max-width: 80ch;
	font-size: 12px;
	line-height: 1.6;
	color: var(--rms-text-mut, #5b6b78);
}

/* ---------------------------------------------------------------------------
 * CONTACT
 * ------------------------------------------------------------------------- */

.rms-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: 40px;
	align-items: start;
}

.rms-contact__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.rms-contact__form .rms-field {
	margin-bottom: 14px;
}

.rms-contact__submit {
	margin: 18px 0 6px;
}

.rms-contact__map {
	overflow: hidden;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
}

.rms-contact__map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

/* ---------------------------------------------------------------------------
 * INDUSTRIES
 * ------------------------------------------------------------------------- */

.rms-ind-sec {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 28px;
	padding: 26px 0;
	border-top: 1px solid var(--rms-border, #dfe6ec);
	/* Header offset for the homepage strip's #anchor links. */
	scroll-margin-top: 90px;
}

.rms-ind-sec:first-child {
	border-top: 0;
}

.rms-ind-sec__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--rms-text, #12181d);
}

.rms-ind-sec__text {
	margin: 0 0 10px;
	max-width: 52ch;
	font-size: 14px;
	line-height: 1.65;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-ind-sec__cta {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--rms-primary-d, #0078ad);
}

.rms-ind-sec__cta:hover,
.rms-ind-sec__cta:focus {
	text-decoration: underline;
}

.rms-ind-sec__typesTitle {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-inds__cta {
	background: var(--rms-muted, #f6f8fa);
}

.rms-inds__ctaActs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 0;
}

/* ---------------------------------------------------------------------------
 * DOWNLOADS
 * ------------------------------------------------------------------------- */

.rms-dl__filters {
	padding: 14px 0;
	border-top: 1px solid var(--rms-border, #dfe6ec);
	border-bottom: 1px solid var(--rms-border, #dfe6ec);
	background: var(--rms-muted, #f6f8fa);
}

.rms-dl__form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	margin: 0;
}

.rms-dl__form .rms-field {
	margin: 0;
}

.rms-dl__search {
	flex: 1 1 260px;
	max-width: 420px;
}

.rms-dl__types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rms-dl__type {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 4px 14px;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: 999px;
	background: var(--rms-surface, #fff);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	color: var(--rms-text, #12181d);
	cursor: pointer;
}

.rms-dl__type:hover,
.rms-dl__type:focus {
	border-color: var(--rms-text-mut, #5b6b78);
	color: var(--rms-text, #12181d);
}

.rms-dl__type.is-active {
	background: var(--rms-dark, #0b1220);
	border-color: var(--rms-dark, #0b1220);
	color: #fff;
}

.rms-dl__cat .rms-select {
	min-width: 200px;
}

.rms-dl__go {
	margin: 0;
}

.rms-dl__count {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-dl__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rms-dlrow {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 14px;
	background: var(--rms-surface, #fff);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
}

.rms-dlrow__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius-sm, 6px);
	background: var(--rms-muted, #f6f8fa);
	text-decoration: none;
}

.rms-dlrow__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.rms-dlrow__ext {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-dlrow__body {
	flex: 1 1 auto;
	min-width: 0;
}

.rms-dlrow__title {
	margin: 0 0 3px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
	color: var(--rms-text, #12181d);
}

.rms-dlrow__title a {
	color: inherit;
	text-decoration: none;
}

.rms-dlrow__title a:hover,
.rms-dlrow__title a:focus {
	color: var(--rms-primary-d, #0078ad);
	text-decoration: underline;
}

.rms-dlrow__meta {
	margin: 0;
	font-size: 12px;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-dlrow__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex: 0 0 auto;
}

.rms-dlrow__price {
	font-size: 13px;
	font-weight: 700;
	color: var(--rms-text, #12181d);
	white-space: nowrap;
}

.rms-dl__empty {
	margin: 24px 0;
	padding: 28px;
	border: 1px dashed var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
	text-align: center;
	font-size: 14px;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-dl__more {
	margin: 18px 0 0;
	text-align: center;
}

.rms-dl__error {
	margin: 12px 0 0;
	font-size: 13px;
	color: #b3261e;
}

/* ---------------------------------------------------------------------------
 * RESPONSIVE
 * ------------------------------------------------------------------------- */

@media (max-width: 860px) {
	.rms-contact__grid,
	.rms-about__whereGrid,
	.rms-ind-sec {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.rms-dl__search {
		flex-basis: 100%;
		max-width: none;
	}
}

@media (max-width: 640px) {
	.rms-about__grid,
	.rms-contact__row {
		grid-template-columns: 1fr;
	}

	.rms-pgfacts__row {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.rms-dlrow {
		flex-wrap: wrap;
	}

	.rms-dlrow__actions {
		flex-basis: 100%;
		justify-content: flex-start;
	}
}

/* v1.3 — industries page expansion: alternating section grounds, twin CTAs,
   counts inside the category pills. */

.rms-ind-sec:nth-child(even) {
	padding: 26px clamp(18px, 3vw, 32px);
	background: var(--rms-muted, #f6f8fa);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-top: 1px solid var(--rms-border, #dfe6ec);
	border-radius: 14px;
	margin-block: 6px;
}

.rms-ind-sec__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 10px 0 0;
}

.rms-pill__count {
	margin-left: 7px;
	padding-left: 7px;
	border-left: 1px solid var(--rms-border, #dfe6ec);
	font-size: 11px;
	font-weight: 700;
	color: var(--rms-text-mut, #5b6b78);
}
