/*
 * Material care (1.21.7), loaded by page-care.php only.
 *
 * The same system as the sizing page: one spacing scale from the top down,
 * sections divided by the keyline, columns headed by one heavy rule in the
 * ink (a column head, not a box), paragraphs that use their column, letter
 * spacing 0. Three textures alternate so a long reference page does not read
 * as one list: columns under a rule (the essentials, washing, each piece),
 * rows of a term beside its text (wearing, shine, storage, over time), and
 * a note set off by a rule on its left (the allergy line, the dryer line).
 */

.rc-care-page {
	--rc-care-section: clamp(2.25rem, 4vw, 3.75rem);
	--rc-care-heading: clamp(1.25rem, 2vw, 1.75rem);
	padding-bottom: var(--rc-care-section);
}

.rc-care-page .rc-section {
	margin-top: 0;
	padding-block: var(--rc-care-section);
}

.rc-care-page .rc-section:last-child {
	border-bottom: 0;
}

.rc-care-page :is(h1, h2, h3, p, dt, dd, li) {
	letter-spacing: 0;
}

/* ---------- Title ---------- */

.rc-care-page .rc-page-hero {
	padding-bottom: var(--rc-care-section);
}

.rc-care-page .rc-page-hero h1 {
	margin: 0 0 1.4rem;
}

.rc-care-page .rc-page-hero > .rc-care-hero__text > p {
	max-width: none;
	margin: 0;
}

.rc-care-page .rc-page-hero > .rc-care-hero__text > .rc-care-note {
	margin-top: clamp(1.5rem, 2.4vw, 2.1rem);
}

.rc-care-lede {
	color: var(--rc-ink) !important;
	font-size: clamp(1.1rem, 1.6vw, 1.45rem) !important;
	line-height: 1.42 !important;
	text-wrap: pretty;
}

.rc-care-note {
	margin: 1.6rem 0 0;
	padding-left: 0.95rem;
	border-left: 2px solid var(--rc-ink);
	color: var(--rc-ink);
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
}

/* With the owner's featured image: text and picture side by side, tops
 * aligned, the picture at its own proportions (never cropped or padded),
 * capped in height so a portrait does not push the page down. */
.rc-care-hero--image {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: clamp(2rem, 5vw, 6rem);
	align-items: start;
}

.rc-care-hero__media {
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

.rc-care-hero__media img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: clamp(18rem, 36vw, 34rem);
}

/* ---------- Section headings ---------- */

.rc-care-section > h2,
.rc-care-topic__head h2 {
	margin: 0 0 clamp(1.5rem, 2.6vw, 2.25rem);
	font-size: clamp(1.7rem, 3vw, 2.65rem);
	font-weight: 700;
	line-height: 0.98;
	text-transform: uppercase;
	text-wrap: balance;
}

/* ---------- Columns under a heavy rule ---------- */

.rc-care-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 3.5vw, 3.25rem) clamp(1.5rem, 3vw, 3rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-care-columns--steps {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rc-care-columns--pieces {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rc-care-columns > li {
	display: grid;
	align-content: start;
	gap: 0.8rem;
	margin: 0;
	padding: 1.2rem 0 0;
	border-top: 2px solid var(--rc-ink);
}

.rc-care-columns h3 {
	margin: 0;
	font-size: var(--rc-care-heading);
	font-weight: 700;
	line-height: 1.06;
	text-transform: uppercase;
	text-wrap: balance;
}

.rc-care-columns p {
	max-width: none;
	margin: 0;
	color: var(--rc-graphite);
	font-size: 0.98rem;
	line-height: 1.58;
}

.rc-care-section > .rc-care-columns + .rc-care-note {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* ---------- A term beside its text ---------- */

/* The heading holds the left third, the rows the rest, so a line of text
 * runs to a readable length without a measure cap. */
.rc-care-topic {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(1.5rem, 4vw, 5rem);
	align-items: start;
}

.rc-care-topic__head h2 {
	margin-bottom: 0;
}

.rc-care-topic__head p {
	max-width: 30rem;
	margin: 1.1rem 0 0;
	color: var(--rc-graphite);
	font-size: 1.02rem;
	line-height: 1.55;
}

.rc-care-rows {
	margin: 0;
	border-top: 2px solid var(--rc-ink);
}

.rc-care-rows__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
	gap: clamp(1rem, 2.5vw, 2.5rem);
	padding: 1.15rem 0 1.2rem;
	border-bottom: 1px solid var(--rc-line);
}

.rc-care-rows__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.rc-care-rows dt {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.rc-care-rows dd {
	margin: 0;
	color: var(--rc-graphite);
	font-size: 1rem;
	line-height: 1.58;
}

.rc-care-page a:not(.rc-text-link) {
	color: var(--rc-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* ---------- Care products and the close ---------- */

.rc-care-shop__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-care-close p {
	max-width: none;
	margin: 0;
	color: var(--rc-graphite);
	font-size: 1.02rem;
	line-height: 1.55;
}

/* ---------- Narrower windows ---------- */

@media (max-width: 99.99rem) {
	.rc-care-columns--pieces {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 74.99rem) {
	.rc-care-hero--image {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.rc-care-hero__media {
		justify-content: flex-start;
	}

	.rc-care-hero__media img {
		max-height: 30rem;
	}

	.rc-care-columns,
	.rc-care-columns--steps,
	.rc-care-columns--pieces {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rc-care-topic {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(1.5rem, 3vw, 2.25rem);
	}

	.rc-care-topic__head p {
		max-width: none;
	}
}

@media (max-width: 47.99rem) {
	.rc-care-columns,
	.rc-care-columns--steps,
	.rc-care-columns--pieces {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
	}

	.rc-care-rows__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.35rem;
	}
}
