/* =========================================================================
   SwapMeet Cards — V3 homepage components
   Implements the approved homepage comp: announcement strip, hero with a
   vertical slide rail, shortcut strip, card-type grid, featured projects,
   six-step process, FAQ accordion, the dark quote bar and the four-column
   footer. Responsive rules for these components live at the end of this file
   because sections.css is loaded after style.css and pages.css.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Announcement strip
   ---------------------------------------------------------------------- */
.smc-announce {
	background: var(--smc-navy);
	color: #fff;
}

.smc-announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 34px;
	padding-block: 7px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 400;
	letter-spacing: 0.01em;
	text-align: center;
}

.smc-announce__inner:hover {
	color: #fff;
}

.smc-announce__arrow {
	transition: transform 0.18s var(--smc-ease);
}

.smc-announce__inner:hover .smc-announce__arrow {
	transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   Hero — vertical slide rail plus wide promotional canvas
   ---------------------------------------------------------------------- */
.smc-hero {
	background: var(--smc-bg);
	overflow: visible;
	padding-block: 0;
}

.smc-hero__box {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	align-items: stretch;
	min-height: 470px;
	background: linear-gradient(180deg, #fbfaf8 0%, #f6f4f0 100%);
	overflow: hidden;
}

.smc-hero__rail {
	display: flex;
	flex-direction: column;
	background: var(--smc-white);
	border-right: 1px solid var(--smc-border);
}

.smc-hero__railtitle {
	margin: 0;
	padding: 22px 22px 14px;
	color: var(--smc-navy);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.smc-hero__raillist {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.smc-hero__railbtn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px 18px 16px 22px;
	border-left: 3px solid transparent;
	color: var(--smc-navy);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	transition: background-color 0.18s var(--smc-ease), color 0.18s var(--smc-ease),
		border-color 0.18s var(--smc-ease);
}

.smc-hero__railbtn:hover {
	background: var(--smc-surface-2);
}

.smc-hero__railbtn.is-active {
	background: var(--smc-crimson-tint);
	border-left-color: var(--smc-crimson);
	color: var(--smc-crimson);
	font-weight: 700;
}

.smc-hero__railicon svg {
	width: 20px;
	height: 20px;
}

.smc-hero__raillabel {
	flex: 1 1 auto;
}

.smc-hero__railchev {
	width: 13px;
	height: 13px;
	opacity: 0.5;
	transform: rotate(-90deg);
}

.smc-hero__railbtn.is-active .smc-hero__railchev {
	opacity: 1;
}

.smc-hero__canvas {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 26px 34px 18px;
}

.smc-hero__slide {
	display: none;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: 26px;
	flex: 1 1 auto;
}

.smc-hero__slide.is-active {
	display: grid;
}

.smc-hero__slide .smc-hero__copy {
	padding-top: 0;
}

.smc-hero__title {
	font-size: 50px;
	line-height: 1.06;
	letter-spacing: -0.022em;
	color: var(--smc-navy);
}

.smc-hero__desc {
	margin: 14px 0 0;
	max-width: 42ch;
	color: var(--smc-body);
	font-size: 18px;
	line-height: 1.45;
}

.smc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 22px;
}

.smc-hero__slide .smc-hero__media {
	position: relative;
	align-self: center;
	margin: 0;
}

.smc-hero__slide .smc-hero__media img {
	width: 100%;
	max-height: 340px;
	object-fit: contain;
	object-position: center;
}

.smc-hero__controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 10px;
}

.smc-hero__count {
	color: var(--smc-muted-2);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
}

.smc-hero__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--smc-border-2);
	border-radius: 50%;
	background: var(--smc-white);
	color: var(--smc-navy);
	transition: border-color 0.18s var(--smc-ease), color 0.18s var(--smc-ease);
}

.smc-hero__arrow:hover {
	border-color: var(--smc-crimson);
	color: var(--smc-crimson);
}

.smc-hero__chev {
	width: 15px;
	height: 15px;
}

.smc-hero__arrow[data-smc-slideprev] .smc-hero__chev {
	transform: rotate(90deg);
}

.smc-hero__arrow[data-smc-slidenext] .smc-hero__chev {
	transform: rotate(-90deg);
}

/* -------------------------------------------------------------------------
   Shortcut strip
   ---------------------------------------------------------------------- */
.smc-shortcuts {
	background: var(--smc-white);
	border-bottom: 1px solid var(--smc-border);
}

.smc-shortcuts__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smc-shortcut {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 26px 24px;
	border-left: 1px solid var(--smc-border);
	color: var(--smc-navy);
	transition: background-color 0.18s var(--smc-ease);
}

.smc-shortcuts__grid li:first-child .smc-shortcut {
	border-left: 0;
}

.smc-shortcut:hover {
	background: var(--smc-surface-2);
}

.smc-shortcut__icon {
	display: inline-flex;
	color: var(--smc-navy);
}

.smc-shortcut__icon svg {
	width: 30px;
	height: 30px;
}

.smc-shortcut__text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.smc-shortcut__text b {
	font-size: 16px;
	font-weight: 700;
}

.smc-shortcut__text span {
	color: var(--smc-muted);
	font-size: 13.5px;
	line-height: 1.4;
}

.smc-shortcut__chev {
	width: 14px;
	height: 14px;
	color: var(--smc-muted-2);
}

.smc-shortcut:hover .smc-shortcut__chev {
	color: var(--smc-crimson);
}

/* -------------------------------------------------------------------------
   Card-type grid (V3 tiles)
   ---------------------------------------------------------------------- */
.smc-types__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.smc-typecard {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--smc-navy);
}

.smc-typecard__media,
.smc-typecard > img,
.smc-typecard > svg,
.smc-typecard .smc-ph {
	display: block;
	width: 100%;
	aspect-ratio: 623 / 318;
	background: var(--smc-surface-2);
	object-fit: cover;
	overflow: hidden;
}

.smc-typecard__media img,
.smc-typecard__media svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--smc-ease);
}

.smc-typecard:hover .smc-typecard__media img,
.smc-typecard:hover .smc-typecard__media svg {
	transform: scale(1.035);
}

.smc-typecard__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 2px 0;
}

.smc-typecard__row b {
	font-size: 17px;
	font-weight: 700;
}

.smc-typecard__chev {
	width: 14px;
	height: 14px;
	color: var(--smc-muted-2);
	transition: transform 0.18s var(--smc-ease), color 0.18s var(--smc-ease);
}

.smc-typecard:hover .smc-typecard__chev {
	color: var(--smc-crimson);
	transform: translateX(3px);
}

.smc-typecard:hover .smc-typecard__row b {
	color: var(--smc-crimson);
}

/* -------------------------------------------------------------------------
   Featured projects
   ---------------------------------------------------------------------- */
.smc-projects__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.smc-project {
	display: grid;
	grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	height: 100%;
	padding: 16px;
	border: 1px solid var(--smc-border);
	background: var(--smc-white);
	color: var(--smc-navy);
	transition: border-color 0.18s var(--smc-ease), box-shadow 0.18s var(--smc-ease);
}

.smc-project:hover {
	border-color: var(--smc-border-2);
	box-shadow: var(--smc-shadow-card);
}

.smc-project__media img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.smc-project__body {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.smc-project__body b {
	font-size: 19px;
	font-weight: 700;
}

.smc-project__desc {
	color: var(--smc-muted);
	font-size: 14.5px;
	line-height: 1.45;
}

.smc-badge {
	align-self: flex-start;
	padding: 3px 9px;
	border: 1px solid var(--smc-border-2);
	color: var(--smc-muted);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------------
   Process — six numbered steps
   ---------------------------------------------------------------------- */
.smc-process__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--smc-border);
	border-bottom: 1px solid var(--smc-border);
}

.smc-process__step {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 18px;
	border-left: 1px solid var(--smc-border);
}

.smc-process__step:first-child {
	border-left: 0;
}

.smc-process__icon {
	display: inline-flex;
	color: var(--smc-navy);
}

.smc-process__icon svg {
	width: 24px;
	height: 24px;
}

.smc-process__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.smc-process__text em {
	color: var(--smc-crimson);
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.smc-process__text b {
	color: var(--smc-navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.smc-process__chev {
	width: 13px;
	height: 13px;
	margin-left: auto;
	color: var(--smc-muted-2);
}

/* -------------------------------------------------------------------------
   FAQ accordion
   ---------------------------------------------------------------------- */
.smc-accordion {
	border: 1px solid var(--smc-border);
}

.smc-acc + .smc-acc {
	border-top: 1px solid var(--smc-border);
}

.smc-acc__q {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 18px 22px;
	color: var(--smc-navy);
	font-size: 17px;
	font-weight: 500;
	text-align: left;
}

.smc-acc__q:hover {
	background: var(--smc-surface-2);
}

.smc-acc__icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	color: var(--smc-navy);
	opacity: 0.55;
}

.smc-acc__q span {
	flex: 1 1 auto;
}

.smc-acc__chev {
	width: 15px;
	height: 15px;
	color: var(--smc-muted-2);
	transition: transform 0.2s var(--smc-ease);
}

.smc-acc.is-open .smc-acc__chev {
	transform: rotate(180deg);
}

.smc-acc__a {
	padding: 0 22px 20px 56px;
}

.smc-acc__a p {
	margin: 0;
	max-width: 88ch;
	color: var(--smc-muted);
	font-size: 15.5px;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Quote bar — dark, one-line form
   ---------------------------------------------------------------------- */
.smc-quote {
	background: var(--smc-navy);
	color: #fff;
}

.smc-quote__inner {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	padding-block: 30px;
}

.smc-quote__copy {
	flex: 1 1 280px;
}

.smc-quote__title {
	color: #fff;
	font-size: 30px;
	line-height: 1.2;
}

.smc-quote__desc {
	margin: 7px 0 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 15px;
}

.smc-quote__form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 2 1 620px;
	flex-wrap: wrap;
}

.smc-field--inline {
	flex: 1 1 170px;
	min-width: 0;
}

.smc-field--inline input,
.smc-field--inline select {
	width: 100%;
	min-height: 52px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: var(--smc-radius);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 15px;
}

.smc-field--inline input::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

.smc-field--inline select option {
	color: var(--smc-navy);
}

/*
 * The quote fields live inside a white card (pages.css), but the inline rules
 * above describe a field placed directly on the navy section: white text on a
 * translucent surface. Inside the white card that renders white on white, so
 * the placeholder and the two selects were unreadable. Restore the card's own
 * dark-on-light treatment for these three fields only.
 */
.smc-quote__form .smc-field input,
.smc-quote__form .smc-field select {
	padding: 0;
	border: 0;
	background: none;
	color: var(--smc-navy);
	font-size: 14px;
}

.smc-quote__form .smc-field input::placeholder {
	color: var(--smc-muted-2);
}

.smc-quote__form .smc-field select option {
	color: var(--smc-navy);
}

.smc-quote__submit {
	flex: 0 0 auto;
	min-height: 52px;
	font-size: 16.31px;
}

.smc-quote__sample {
	flex: 0 0 auto;
	color: #fff;
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.smc-quote__sample:hover {
	color: #fff;
	opacity: 0.82;
}

.smc-quote__done {
	flex: 2 1 520px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: var(--smc-radius);
	background: rgba(255, 255, 255, 0.08);
}

.smc-quote__done strong {
	color: #fff;
	font-size: 17px;
}

.smc-quote__done span {
	color: rgba(255, 255, 255, 0.78);
	font-size: 14.5px;
}

.smc-quote__error {
	flex: 2 1 520px;
	margin: 0;
	color: #ffd9e2;
	font-size: 14.5px;
}

/* -------------------------------------------------------------------------
   Footer — four columns, social profiles and the legal bar
   ---------------------------------------------------------------------- */
.smc-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto;
	gap: 40px;
	align-items: start;
	padding-block: 44px 30px;
}

.smc-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.smc-footer__blurb {
	margin: 0;
	max-width: 34ch;
	color: var(--smc-footer-link);
	font-size: 13.5px;
	line-height: 1.55;
}

.smc-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.smc-footer__h {
	margin: 0 0 12px;
	color: var(--smc-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.smc-footer__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
}

.smc-social {
	display: flex;
	align-items: center;
	gap: 10px;
}

.smc-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--smc-muted-2);
	transition: color 0.18s var(--smc-ease);
}

.smc-social a:hover {
	color: var(--smc-crimson);
}

.smc-social svg {
	width: 20px;
	height: 20px;
}

.smc-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-block: 18px;
	border-top: 1px solid var(--smc-border);
}

.smc-footer__copy,
.smc-footer__note {
	margin: 0;
	color: var(--smc-muted-2);
	font-size: 12.5px;
}

.smc-footer__legal {
	display: flex;
	align-items: center;
	gap: 18px;
}

.smc-footer__legal a {
	color: var(--smc-muted-2);
	font-size: 12.5px;
}

.smc-footer__legal a:hover {
	color: var(--smc-crimson);
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 1280px) {
	.smc-hero__box {
		grid-template-columns: 224px minmax(0, 1fr);
	}

	.smc-hero__title {
		font-size: 42px;
	}

	.smc-process__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.smc-process__step:nth-child(3n + 1) {
		border-left: 0;
	}

	.smc-process__step:nth-child(n + 4) {
		border-top: 1px solid var(--smc-border);
	}
}

@media (max-width: 1080px) {
	.smc-hero__box {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.smc-hero__rail {
		border-right: 0;
		border-bottom: 1px solid var(--smc-border);
	}

	.smc-hero__railtitle {
		padding: 14px 18px 8px;
	}

	.smc-hero__raillist {
		flex-direction: row;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.smc-hero__railbtn {
		flex: 0 0 auto;
		width: auto;
		padding: 12px 16px;
		border-left: 0;
		border-bottom: 3px solid transparent;
		white-space: nowrap;
	}

	.smc-hero__railbtn.is-active {
		border-left-color: transparent;
		border-bottom-color: var(--smc-crimson);
	}

	.smc-hero__railchev {
		display: none;
	}

	.smc-hero__canvas {
		padding: 24px 22px 16px;
	}

	.smc-hero__slide {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.smc-hero__slide .smc-hero__media {
		order: -1;
	}

	.smc-hero__slide .smc-hero__media img {
		max-height: 260px;
	}

	.smc-types__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.smc-shortcuts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smc-shortcut:nth-child(odd),
	.smc-shortcuts__grid li:nth-child(odd) .smc-shortcut {
		border-left: 1px solid var(--smc-border);
	}

	.smc-shortcuts__grid li:first-child .smc-shortcut {
		border-left: 0;
	}

	.smc-shortcuts__grid li:nth-child(n + 3) .smc-shortcut {
		border-top: 1px solid var(--smc-border);
	}

	.smc-projects__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.smc-footer__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.smc-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smc-footer__aside {
		align-items: flex-start;
	}
}

@media (max-width: 900px) {
	.smc-types__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smc-process__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smc-process__step:nth-child(2n + 1) {
		border-left: 0;
	}

	.smc-process__step:nth-child(n + 3) {
		border-top: 1px solid var(--smc-border);
	}

	.smc-quote__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.smc-quote__form {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media (max-width: 620px) {
	.smc-announce__inner {
		font-size: 12px;
	}

	.smc-hero__canvas {
		padding: 20px 18px 14px;
	}

	.smc-hero__title {
		font-size: 32px;
	}

	.smc-hero__desc {
		font-size: 16px;
	}

	.smc-shortcuts__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.smc-shortcuts__grid li .smc-shortcut {
		border-left: 0;
		border-top: 1px solid var(--smc-border);
	}

	.smc-shortcuts__grid li:first-child .smc-shortcut {
		border-top: 0;
	}

	.smc-types__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.smc-process__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.smc-process__step {
		border-left: 0;
	}

	.smc-process__step:nth-child(n + 2) {
		border-top: 1px solid var(--smc-border);
	}

	.smc-project {
		grid-template-columns: minmax(0, 1fr);
	}

	.smc-acc__q {
		padding: 15px 16px;
		font-size: 15.5px;
	}

	.smc-acc__a {
		padding: 0 16px 16px 48px;
	}

	.smc-field--inline {
		flex: 1 1 100%;
	}

	.smc-quote__submit {
		width: 100%;
	}

	.smc-footer__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.smc-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =========================================================================
   Inner-page components
   ========================================================================= */

/* -------------------------------------------------------------------------
   Breadcrumbs
   ---------------------------------------------------------------------- */
.smc-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.smc-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.smc-crumbs span[aria-current] {
	color: var(--smc-navy);
	font-weight: 500;
}

.smc-crumbs__sep {
	color: var(--smc-border-2);
}

/* -------------------------------------------------------------------------
   Inner-page hero
   ---------------------------------------------------------------------- */
.smc-phero {
	background: linear-gradient(180deg, #f7f5f1 0%, #fdfcfa 100%);
	padding-block: 48px 52px;
}

.smc-phero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
	align-items: center;
	gap: 52px;
}

.smc-phero__title {
	font-size: clamp(34px, 3.9vw, 58px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--smc-navy);
	max-width: 20ch;
}

.smc-phero__lead {
	margin: 16px 0 0;
	max-width: 58ch;
	color: var(--smc-body);
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.5;
}

.smc-phero__media {
	margin: 0;
}

.smc-phero__media img,
.smc-phero__media svg {
	width: 100%;
	height: auto;
	max-height: 340px;
	object-fit: contain;
}

.smc-phero__media img {
	border-radius: var(--smc-radius-lg);
}

.smc-phero--404 .smc-phero__grid {
	grid-template-columns: minmax(0, 1fr);
}

/* Search field */
.smc-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	max-width: 620px;
}

.smc-search__field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
}

.smc-search__icon {
	position: absolute;
	left: 14px;
	display: inline-flex;
	color: var(--smc-muted-2);
	pointer-events: none;
}

.smc-search__icon svg {
	width: 18px;
	height: 18px;
}

.smc-search input[type="search"] {
	width: 100%;
	min-height: 54px;
	padding: 0 16px 0 44px;
	border: 1px solid var(--smc-border-2);
	border-radius: var(--smc-radius);
	background: var(--smc-white);
	color: var(--smc-navy);
	font-size: 15px;
}

.smc-search .smc-btn {
	min-height: 54px;
}

/* Commit points */
.smc-commits {
	display: grid;
	/* Three commit points in a four-column track left the last quarter of the
	   row empty on every category page. */
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 20px;
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--smc-border-2);
}

.smc-commits li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.smc-commits__icon {
	display: inline-flex;
	margin-top: 1px;
	color: var(--smc-crimson);
}

.smc-commits__icon svg {
	width: 20px;
	height: 20px;
}

.smc-commits li > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.smc-commits b {
	color: var(--smc-navy);
	font-size: 14.5px;
	font-weight: 700;
}

.smc-commits li > span:last-child > span {
	color: var(--smc-muted);
	font-size: 13px;
	line-height: 1.45;
}

/* -------------------------------------------------------------------------
   Product grid and tiles
   ---------------------------------------------------------------------- */
.smc-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px 22px;
}

.smc-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smc-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--smc-navy);
}

.smc-tile__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--smc-surface-2);
	overflow: hidden;
}

.smc-tile__media img,
.smc-tile__media svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--smc-ease);
}

.smc-tile:hover .smc-tile__media img,
.smc-tile:hover .smc-tile__media svg {
	transform: scale(1.035);
}

.smc-tile__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 14px;
}

.smc-tile__body b {
	font-size: 16.5px;
	font-weight: 700;
}

.smc-tile:hover .smc-tile__body b {
	color: var(--smc-crimson);
}

.smc-tile__tags {
	color: var(--smc-muted);
	font-size: 13px;
	line-height: 1.45;
}

.smc-linkarrow--sm {
	font-size: 13.5px;
}

.smc-linkarrow--sm .smc-arrow--sm {
	width: 14px;
	height: 14px;
}

/* -------------------------------------------------------------------------
   Catalogue layout — sidebar plus filterable grid
   ---------------------------------------------------------------------- */
.smc-catalog {
	padding-block: 46px 60px;
}

.smc-catalog__grid {
	display: grid;
	grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
	gap: 54px;
	align-items: start;
}

.smc-catalog__main {
	min-width: 0;
}

.smc-catalog__intro {
	margin: 0 0 20px;
	max-width: 80ch;
	color: var(--smc-body);
	font-size: 16.5px;
	line-height: 1.55;
}

.smc-catalog__head {
	margin: 40px 0 22px;
}

.smc-catalog__tabs,
.smc-guides__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--smc-border);
}

.smc-catpanel[hidden] {
	display: none;
}

.smc-side {
	position: sticky;
	top: 104px;
}

.smc-side__h {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--smc-navy);
	color: var(--smc-navy);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.smc-side__group + .smc-side__group {
	border-top: 1px solid var(--smc-border);
}

.smc-side__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 14px 0;
	color: var(--smc-navy);
	font-size: 14.5px;
	font-weight: 700;
	text-align: left;
}

.smc-side__toggle svg {
	width: 18px;
	height: 18px;
	opacity: 0.7;
}

.smc-side__chev {
	margin-left: auto;
	width: 13px;
	height: 13px;
	transition: transform 0.2s var(--smc-ease);
}

.smc-side__toggle[aria-expanded="false"] .smc-side__chev {
	transform: rotate(-90deg);
}

.smc-side__list {
	padding-bottom: 8px;
}

.smc-side__list li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	color: var(--smc-body);
	font-size: 14.5px;
}

.smc-side__list li a:hover {
	color: var(--smc-crimson);
}

.smc-side__list li a[aria-current="page"] {
	color: var(--smc-crimson);
	font-weight: 700;
}

.smc-side__list--flat li a {
	justify-content: flex-start;
	padding: 11px 12px;
	border: 1px solid var(--smc-border);
	margin-bottom: 8px;
	font-size: 14.5px;
	font-weight: 500;
}

.smc-side__list--flat li a[aria-current="page"] {
	background: var(--smc-crimson-tint);
	border-color: var(--smc-crimson);
}

.smc-side__list--flat .smc-side__chev {
	margin-left: auto;
	width: 13px;
	height: 13px;
}

.smc-side__cta {
	margin-top: 26px;
	padding: 20px;
	background: var(--smc-surface-2);
	border-radius: var(--smc-radius-lg);
}

.smc-side__cta h3 {
	margin: 0 0 8px;
	font-size: 17px;
}

.smc-side__cta p {
	margin: 0 0 14px;
	color: var(--smc-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.smc-side__cta .smc-btn + .smc-btn {
	margin-top: 10px;
}

/* -------------------------------------------------------------------------
   Packaging hub
   ---------------------------------------------------------------------- */
.smc-tabs--wide {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	border-bottom: 1px solid var(--smc-border);
	margin-bottom: 30px;
}

.smc-tabs--wide .smc-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 15px 12px;
	border-bottom: 3px solid transparent;
	font-size: 14.5px;
	font-weight: 500;
}

.smc-tabs--wide .smc-tab svg {
	width: 18px;
	height: 18px;
}

.smc-tabs--wide .smc-tab.is-active {
	border-bottom-color: var(--smc-crimson);
	color: var(--smc-crimson);
	font-weight: 700;
}

.smc-phpanel {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.smc-phpanel__copy h2 {
	margin-bottom: 12px;
	max-width: 24ch;
}

.smc-phpanel__copy p {
	margin: 0 0 18px;
	max-width: 68ch;
	color: var(--smc-body);
	font-size: 16px;
	line-height: 1.55;
}

.smc-phpanel__media {
	margin: 0 0 16px;
}

.smc-phpanel__media img {
	width: 100%;
	height: auto;
	border-radius: var(--smc-radius-lg);
}

.smc-phpanel__side {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.smc-optcard {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--smc-border);
	border-radius: var(--smc-radius-lg);
	background: var(--smc-white);
}

.smc-optcard.is-active {
	border-color: var(--smc-crimson);
	background: var(--smc-crimson-tint);
}

.smc-optcard__thumb {
	flex: 0 0 auto;
	width: 78px;
	height: 58px;
	overflow: hidden;
	border-radius: var(--smc-radius);
	background: var(--smc-surface-2);
}

.smc-optcard__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smc-optcard__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1 1 auto;
	min-width: 0;
}

.smc-optcard__text b {
	color: var(--smc-navy);
	font-size: 15px;
	font-weight: 700;
}

.smc-optcard__text span {
	color: var(--smc-muted);
	font-size: 13px;
	line-height: 1.45;
}

.smc-optcard__radio {
	flex: 0 0 auto;
	color: var(--smc-border-2);
}

.smc-optcard__radio svg {
	width: 22px;
	height: 22px;
}

.smc-optcard.is-active .smc-optcard__radio {
	color: var(--smc-crimson);
}

/* -------------------------------------------------------------------------
   Explore-all strip and the comparison table
   ---------------------------------------------------------------------- */
.smc-explore {
	margin-top: 52px;
	padding-top: 40px;
	border-top: 1px solid var(--smc-border);
}

.smc-h3 {
	font-size: clamp(21px, 1.8vw, 27px);
	line-height: 1.25;
	margin-bottom: 22px;
}

.smc-explore__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 22px;
}

.smc-explore__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	color: var(--smc-navy);
}

.smc-explore__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--smc-surface-2);
	overflow: hidden;
}

.smc-explore__media img,
.smc-explore__media svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smc-explore__card b {
	font-size: 15px;
	font-weight: 700;
}

.smc-explore__card:hover b {
	color: var(--smc-crimson);
}

.smc-explore__desc {
	color: var(--smc-muted);
	font-size: 13px;
	line-height: 1.45;
}

.smc-compare {
	margin-top: 52px;
	padding-top: 40px;
	border-top: 1px solid var(--smc-border);
}

.smc-tablewrap {
	overflow-x: auto;
}

.smc-table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	font-size: 14.5px;
}

.smc-table th,
.smc-table td {
	padding: 14px 16px;
	border: 1px solid var(--smc-border);
	text-align: left;
	vertical-align: top;
}

.smc-table thead th {
	background: var(--smc-surface-2);
	color: var(--smc-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.smc-table tbody th {
	color: var(--smc-navy);
	font-weight: 700;
	white-space: nowrap;
}

.smc-table tbody td {
	color: var(--smc-body);
}

/* -------------------------------------------------------------------------
   Sample bar
   ---------------------------------------------------------------------- */
.smc-samplebar {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 46px;
	padding: 22px 26px;
	border: 1px solid var(--smc-border);
	border-radius: var(--smc-radius-lg);
	background: var(--smc-surface-2);
}

.smc-samplebar__icon {
	display: inline-flex;
	color: var(--smc-crimson);
}

.smc-samplebar__icon svg {
	width: 30px;
	height: 30px;
}

.smc-samplebar__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1 1 320px;
}

.smc-samplebar__text b {
	color: var(--smc-navy);
	font-size: 16.5px;
	font-weight: 700;
}

.smc-samplebar__text span {
	color: var(--smc-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Specification list
   ---------------------------------------------------------------------- */
.smc-speclist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 10px 26px;
	margin-top: 8px;
}

.smc-speclist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--smc-body);
	font-size: 15px;
	line-height: 1.5;
}

.smc-speclist__tick {
	margin-top: 3px;
	color: var(--smc-crimson);
}

.smc-speclist__tick svg,
.smc-speclist__tick {
	width: 17px;
	height: 17px;
}

/* -------------------------------------------------------------------------
   FAQ page
   ---------------------------------------------------------------------- */
.smc-faqpage {
	padding-block: 46px 60px;
}

.smc-faqpage__grid {
	display: grid;
	grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
	gap: 54px;
	align-items: start;
}

.smc-faqgroup + .smc-faqgroup {
	margin-top: 36px;
}

/* -------------------------------------------------------------------------
   Guides listing
   ---------------------------------------------------------------------- */
.smc-guides {
	padding-block: 40px 60px;
}

.smc-guides__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--smc-border);
}

.smc-guide {
	border-bottom: 1px solid var(--smc-border);
}

.smc-guide > a {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
	align-items: center;
	gap: 26px;
	padding: 18px 0;
	color: var(--smc-navy);
}

.smc-guide:hover > a {
	background: var(--smc-surface-2);
}

.smc-guide__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--smc-surface-2);
}

.smc-guide__media img,
.smc-guide__media svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smc-guide__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.smc-guide__body b {
	font-size: 17.5px;
	font-weight: 700;
}

.smc-guide:hover .smc-guide__body b {
	color: var(--smc-crimson);
}

.smc-guide__body > span:last-child {
	color: var(--smc-muted);
	font-size: 14px;
	line-height: 1.5;
}

.smc-guide[hidden] {
	display: none;
}

/* -------------------------------------------------------------------------
   Quality process cards
   ---------------------------------------------------------------------- */
.smc-quality {
	padding-block: 50px 60px;
}

.smc-quality__intro {
	margin: -6px 0 26px;
	max-width: 82ch;
	color: var(--smc-body);
	font-size: 16px;
	line-height: 1.55;
}

.smc-quality__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.smc-quality__grid li {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.smc-quality__grid figure {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--smc-surface-2);
}

.smc-quality__grid figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smc-quality__grid b {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--smc-navy);
	font-size: 15.5px;
	font-weight: 700;
}

.smc-quality__grid b em {
	color: var(--smc-crimson);
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.smc-quality__grid li > span {
	color: var(--smc-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.smc-quality__cta {
	margin-top: 32px;
}

/* -------------------------------------------------------------------------
   Article
   ---------------------------------------------------------------------- */
.smc-prose--article {
	max-width: 72ch;
}

.smc-article__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0 0;
	color: var(--smc-muted-2);
	font-size: 13.5px;
}

.smc-aside__h {
	margin: 0 0 8px;
	font-size: 19px;
}

/* -------------------------------------------------------------------------
   Responsive — inner pages
   ---------------------------------------------------------------------- */
@media (max-width: 1280px) {
	.smc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.smc-explore__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.smc-quality__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1080px) {
	.smc-phero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.smc-phero__media {
		order: -1;
	}

	.smc-commits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smc-catalog__grid,
	.smc-faqpage__grid,
	.smc-pagebody__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.smc-side,
	.smc-aside {
		position: static;
	}

	.smc-phpanel {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.smc-tabs--wide {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.smc-tabs--wide .smc-tab {
		border: 1px solid var(--smc-border);
		border-bottom-width: 3px;
	}
}

@media (max-width: 900px) {
	.smc-grid,
	.smc-grid--three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smc-explore__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smc-guide > a {
		grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
	}

	.smc-guide > a > .smc-linkarrow {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.smc-commits {
		grid-template-columns: minmax(0, 1fr);
	}

	.smc-search {
		flex-direction: column;
		align-items: stretch;
	}

	.smc-grid,
	.smc-grid--three,
	.smc-explore__grid,
	.smc-quality__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.smc-tabs--wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.smc-guide > a {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.smc-optcard {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.smc-typecard__media img,
	.smc-typecard__media svg,
	.smc-tile__media img,
	.smc-tile__media svg,
	.smc-announce__arrow,
	.smc-typecard__chev,
	.smc-side__chev {
		transition: none;
	}
}

/* =========================================================================
   Related card types — internal-link block on every catalog page

   Three columns on desktop, two at 1080px and one at 620px. The base rules sit
   above their own media queries so the narrower layouts win on source order, as
   this block is appended after the section's existing breakpoints.
   ========================================================================= */
.smc-related {
	margin-top: 46px;
	padding-top: 30px;
	border-top: 1px solid var(--smc-border);
}

.smc-related__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.smc-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.smc-related__item {
	display: flex;
	flex-direction: column;
	padding: 18px 18px 16px;
	background: var(--smc-white);
	border: 1px solid var(--smc-border);
	border-radius: 10px;
	transition: border-color 0.18s var(--smc-ease), box-shadow 0.18s var(--smc-ease);
}

.smc-related__item:hover {
	border-color: var(--smc-border-2);
	box-shadow: 0 14px 30px -22px rgba(7, 27, 50, 0.4);
}

.smc-related__title {
	margin: 0;
	color: var(--smc-navy);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.smc-related__desc {
	margin: 7px 0 14px;
	color: var(--smc-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.smc-related__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	color: var(--smc-crimson);
	font-size: 13px;
	font-weight: 600;
}

.smc-related__link .smc-arrow {
	width: 14px;
	height: 14px;
	transition: transform 0.18s var(--smc-ease);
}

.smc-related__link:hover .smc-arrow {
	transform: translateX(2px);
}

/* Guide sidebar additions */
.smc-aside__h--sub {
	margin-top: 26px;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.smc-aside__list--anchors a {
	font-size: 13.5px;
}

.smc-aside__related {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.smc-aside__related a {
	display: block;
	padding: 12px 14px;
	background: var(--smc-white);
	border: 1px solid var(--smc-border);
	border-radius: 8px;
	transition: border-color 0.18s var(--smc-ease), background-color 0.18s var(--smc-ease);
}

.smc-aside__related a:hover {
	background: var(--smc-surface-2);
	border-color: var(--smc-border-2);
}

.smc-aside__related b {
	display: block;
	color: var(--smc-navy);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
}

.smc-aside__related span {
	display: block;
	margin-top: 4px;
	color: var(--smc-muted);
	font-size: 12px;
	line-height: 1.45;
}

@media (max-width: 1080px) {
	.smc-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.smc-related__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.smc-related__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ====== SMC category page UI ====== */
/* =========================================================================
   Card-category page: specification at a glance

   Replaces the installer's boilerplate body, which said the same four lines on
   every one of the twenty category pages, and states the five decisions a card
   buyer actually has to make.
   ========================================================================= */
.smc-facts {
	margin: 0 0 26px;
}

.smc-facts__h {
	margin: 0 0 14px;
	color: var(--smc-navy);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.smc-facts__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	background: var(--smc-border);
	border: 1px solid var(--smc-border);
	border-radius: 10px;
	overflow: hidden;
}

.smc-facts__row {
	padding: 13px 16px;
	background: var(--smc-white);
}

.smc-facts__row dt {
	margin: 0 0 3px;
	color: var(--smc-muted-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.smc-facts__row dd {
	margin: 0;
	color: var(--smc-navy);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.smc-overview__lead {
	margin: 0 0 22px;
	color: var(--smc-body);
	font-size: 16.5px;
	line-height: 1.6;
}

.smc-overview__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.smc-overview__tags li {
	padding: 5px 12px;
	border: 1px solid var(--smc-border-2);
	border-radius: 999px;
	color: var(--smc-muted);
	font-size: 12.5px;
	font-weight: 500;
}

.smc-overview__next {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 22px;
	border-top: 1px solid var(--smc-border);
}

/* Hero call to action on a category page */
.smc-phero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.smc-phero__actions .smc-btn {
	min-height: 50px;
	padding: 0 22px;
	font-size: 15.5px;
}

/* The filter row sits above the grid and should not out-shout the actions. */
.smc-phero .smc-search {
	margin-top: 18px;
	max-width: 520px;
}

.smc-phero .smc-search input[type="search"],
.smc-phero .smc-search .smc-btn {
	min-height: 46px;
	font-size: 14px;
}

/* =========================================================================
   Tiles

   The media box has a fixed ratio, so a two-line title pushed its own call to
   action below its neighbours' and left the grid rows ragged.
   ========================================================================= */
.smc-tile__body {
	flex: 1 1 auto;
}

.smc-tile__body .smc-linkarrow {
	margin-top: auto;
}

.smc-tile__media img,
.smc-tile__media svg {
	background: var(--smc-surface-2);
}

/* Two columns rather than one below 620px: twenty full-width tiles made the
   catalogue page about twice its necessary length on a phone. */
@media (max-width: 620px) {
	.smc-catalog .smc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
	}

	.smc-catalog .smc-tile__body b {
		font-size: 14.5px;
	}

	.smc-catalog .smc-tile__tags,
	.smc-catalog .smc-tile__body .smc-linkarrow {
		font-size: 12px;
	}

	.smc-facts__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The fifth fact is the odd one out in a two-column grid; spanning it stops the
   table ending on an empty grey cell. */
.smc-facts__row:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

/* The white card already separates the three fields, so the extra right rule
   from sections.css duplicates the divider darker than the card's own border. */
.smc-quote__form .smc-field {
	border-right-color: var(--smc-border);
}

.smc-quote__form .smc-field:last-of-type {
	border-right: 0;
}

/* ====== SMC phone layout ====== */
/* -------------------------------------------------------------------------
   Phone widths

   A grid or flex child defaults to min-width:auto, so one wide control can widen
   its track past the viewport and drag the whole row sideways. That is what
   clipped the hero lead to a single cut-off line and pushed the burger past the
   right edge, leaving a phone with no route into the navigation.
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.smc-header__inner,
	.smc-phero__grid,
	.smc-phero__copy,
	.smc-phero__media,
	.smc-catalog__grid,
	.smc-catalog__main,
	.smc-pagebody__grid {
		min-width: 0;
	}

	.smc-phero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.smc-phero__title,
	.smc-phero__lead {
		max-width: 100%;
	}

	/* The burger is the only way into the navigation below 900px. */
	.smc-header__actions .smc-burger,
	.smc-header__actions .smc-searchbtn {
		display: inline-flex;
		flex: 0 0 auto;
	}

	/* Twenty sibling links stacked in one column doubled the page length, and the
	   tile grid right below already lists every card type with its own photo. */
	.smc-side {
		display: none;
	}

	.smc-catalog__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The stacked search field should fill the column, not sit beside a wrapped
	   full-width button. */
	.smc-phero .smc-search {
		flex-direction: column;
		align-items: stretch;
		max-width: 100%;
	}
}

/* A full-width crimson Search bar competed with the primary call to action. */
@media (max-width:900px){.smc-phero .smc-search .smc-btn{align-self:flex-start;padding:0 26px;min-height:46px;font-size:14.5px}}


/* =========================================================================
   Category page: ordering band

   The six-card "Related Card Types" grid under the catalogue repeated the
   same six card types the grid above had just shown. The band below answers
   the ordering questions instead, and keeps the neighbouring card types as
   text links.
   ========================================================================= */
.smc-orderfaq {
	margin-top: 52px;
	padding-top: 42px;
	border-top: 1px solid var(--smc-border);
}

.smc-orderfaq__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	gap: 46px;
	align-items: start;
}

.smc-orderfaq__lead {
	margin: 10px 0 24px;
	max-width: 62ch;
	color: var(--smc-muted);
	font-size: 15px;
	line-height: 1.55;
}

.smc-orderfaq__aside {
	padding: 26px 24px;
	border: 1px solid var(--smc-border);
	border-radius: var(--smc-radius-lg);
	background: #f7f5f1;
}

.smc-orderfaq__aside h3 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.3;
	color: var(--smc-navy);
}

.smc-orderfaq__aside p {
	margin: 0 0 18px;
	color: var(--smc-muted);
	font-size: 14px;
	line-height: 1.55;
}

.smc-orderfaq__aside .smc-btn + .smc-btn {
	margin-top: 10px;
}

.smc-orderfaq__links {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--smc-border-2);
}

.smc-orderfaq__links b {
	display: block;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--smc-muted);
}

.smc-orderfaq__links ul {
	display: grid;
	gap: 7px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.smc-orderfaq__links a {
	color: var(--smc-navy);
	font-size: 14px;
	text-decoration: underline;
	text-decoration-color: var(--smc-border-2);
	text-underline-offset: 3px;
}

.smc-orderfaq__links a:hover {
	color: var(--smc-crimson);
	text-decoration-color: currentColor;
}

/* Four tabs wrapped onto two ragged lines below 720px, with the active
   underline stranded under the first one. One scrollable row keeps the
   active tab and its underline together. */
@media (max-width: 720px) {
	.smc-catalog__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.smc-catalog__tabs::-webkit-scrollbar {
		display: none;
	}

	.smc-catalog__tabs .smc-tab {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

@media (max-width: 1000px) {
	.smc-orderfaq__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.smc-orderfaq__aside {
		max-width: 520px;
	}
}
