/* Recipe page. Reuses tokens, header and tile styles from mosaic.css. */

.rstage {
	--f: 1px;
	width: min(100%, 1168px);
	margin: 0 auto;
	padding-bottom: 56px;
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: 8px;
	align-items: stretch;
}

.sr {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hero */
.rhero {
	grid-column: 1 / -1;
	height: 220px;
	background: var(--paper) url("../art/tropical-leaves-original.svg") no-repeat 20% 38% / cover;
}
.rhero .seal { position: absolute; left: 22px; top: 6px; width: 200px; }
.rhero .chip {
	position: absolute; left: 250px; right: 20px; bottom: 20px;
	max-width: 560px;
	background: var(--paper); color: var(--navy);
	border-radius: 16px; padding: 16px 24px 18px;
}
.rhero .chip .kicker { color: var(--coral); margin-bottom: 8px; }
.rhero h1 { font-size: 46px; }

/* Intro and tools */
.rblurb { padding: 18px 22px; font-size: 16px; line-height: 1.5; display: flex; align-items: center; }
.rblurb p { margin: 0; }
.rtools {
	padding: 18px 22px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
}
.tool-group { display: flex; flex-direction: column; gap: 10px; }
.makes { margin: 0; font-size: 14.5px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.js-only { display: none; }
.js .js-only { display: inline-flex; }
html:not(.js) .js-only { display: none !important; }
.js .js-only[hidden] { display: none; }

.seg { border: 0; margin: 0; padding: 4px; background: var(--paper); border-radius: 999px; gap: 4px; align-self: flex-start; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
	cursor: pointer; padding: 10px 18px; border-radius: 999px;
	font-family: var(--display); text-transform: uppercase; font-size: 14px; line-height: 1;
}
.seg input:checked + label { background: var(--navy); color: var(--paper); }
.seg input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn {
	font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
	background: var(--navy); color: var(--paper);
	border: 0; border-radius: 12px; padding: 12px 16px; cursor: pointer;
	text-decoration: none; align-items: center; display: inline-flex; line-height: 1.2;
}
.btn:hover { background: var(--blue); }
.btn[aria-pressed="true"] { background: var(--coral); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* Ingredients */
.ring { padding: 24px 24px 22px; display: flex; flex-direction: column; }
.ring .kicker { color: var(--orange); }
.ring h2 { font-size: 28px; margin: 8px 0 14px; color: var(--paper); }
.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li { border-top: 1.5px dashed rgba(254, 241, 244, 0.28); }
.checks li:first-child { border-top: 0; }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; cursor: pointer; font-size: 15.5px; line-height: 1.35; position: relative; }
.checks input, .rsteps input { position: absolute; opacity: 0; pointer-events: none; }
.checks b { color: var(--orange); font-weight: 700; }
.checks i { font-style: normal; display: block; font-size: 12.5px; opacity: 0.8; }
.box { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 2px solid var(--orange); border-radius: 5px; position: relative; }
.checks input:checked ~ .box { background: var(--orange); }
.checks input:checked ~ .box::after {
	content: ""; position: absolute; left: 4px; top: 0px; width: 5px; height: 10px;
	border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.checks input:checked ~ .txt { opacity: 0.5; text-decoration: line-through; }
.checks input:focus-visible ~ .box { outline: 3px solid var(--paper); outline-offset: 2px; }
.nonuts { margin-top: auto; background: var(--coral); border-radius: 14px; padding: 14px; text-align: center; color: var(--paper); }
.nonuts .display { font-size: 22px; }
.nonuts .kicker { font-size: 10px; margin-top: 6px; color: var(--paper); }

/* Steps */
.rsteps { padding: 22px 24px 18px 22px; }
.rsteps .kicker { color: var(--blue); }
.rsteps h2 { font-size: 30px; color: var(--coral); margin: 8px 0 14px; }
.rsteps ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.rsteps li { counter-increment: s; margin-bottom: 6px; }
.rsteps label { display: flex; gap: 16px; align-items: flex-start; cursor: pointer; position: relative; padding: 8px 0; font-size: 16px; line-height: 1.45; }
.num {
	flex: none; position: relative; width: 38px; height: 38px; border-radius: 50%;
	background: var(--coral); color: var(--paper);
	display: grid; place-items: center;
	font-family: var(--display); font-size: 18px; line-height: 1;
}
.num::before { content: counter(s); padding-top: 1px; }
.rsteps li:nth-child(3n+2) .num { background: var(--blue); }
.rsteps li:nth-child(3n) .num { background: var(--orange); color: var(--navy); }
.rsteps input:checked ~ .num { background: var(--navy); color: transparent; }
.rsteps input:checked ~ .num::after {
	content: ""; position: absolute; left: 14px; top: 7px; width: 8px; height: 15px;
	border: solid var(--paper); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.rsteps input:checked ~ .body { opacity: 0.45; }
.rsteps input:focus-visible ~ .num { outline: 3px solid var(--navy); outline-offset: 3px; }
.body { display: block; padding-top: 1px; }
.body .h { display: block; font-family: var(--display); text-transform: uppercase; font-size: 15px; line-height: 1.2; margin-bottom: 3px; color: var(--navy); }

/* Footer */
.rfoot {
	grid-column: 1 / -1;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
	padding: 16px 22px;
}
.rfoot p { margin: 0; }
.rfoot .tag { font-size: 14px; line-height: 1.4; }
.rfoot .url, .rfoot .url a { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); text-decoration: none; }

/* Mobile */
@media (max-width: 799px) {
	.rstage { grid-template-columns: minmax(0, 1fr); }
	.rhero { height: 292px; }
	.rhero .seal { width: 140px; left: 14px; top: 8px; }
	.rhero .chip { left: 14px; right: 14px; bottom: 14px; padding: 12px 18px 14px; max-width: none; }
	.rhero h1 { font-size: 28px; }
	.rtools { flex-direction: column; align-items: stretch; }
	.seg { align-self: stretch; }
	.seg label { flex: 1; text-align: center; padding: 12px 6px; font-size: 13px; }
	.tool-actions .btn { flex: 1 1 calc(50% - 8px); justify-content: center; text-align: center; }
	#wake { flex-basis: 100%; }
	.rsteps { padding: 20px 18px 14px; }
	.rsteps label { gap: 14px; }
}

/* Print: one Letter page, close to the downloadable card */
@media print {
	@page { size: letter; margin: 0.4in; }
	html, body { background: #fff; }
	body, .tile, .num, .seg label, .btn { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.site-header, .tool-actions, .seg, .tool-group > .kicker, .rfoot .url { display: none !important; }
	.rstage { width: 100%; padding: 0; grid-template-columns: 2.55in minmax(0, 1fr); gap: 6px; }
	.page { padding: 0; }
	.rhero { height: 1.75in; }
	.rhero .seal { width: 1.75in; left: 0.1in; top: 0; }
	.rhero .chip { left: 2.15in; right: 0.15in; bottom: 0.15in; padding: 10px 18px 12px; }
	.rhero h1 { font-size: 34px; }
	.rblurb, .rtools { padding: 10px 16px; font-size: 12px; }
	.rtools { align-items: center; }
	.rtools { justify-content: center; text-align: center; }
	.makes { font-size: 15px; }
	.makes strong { font-family: var(--display); text-transform: uppercase; font-weight: 400; }
	.ring { padding: 16px 16px 14px; }
	.ring h2 { font-size: 22px; margin: 6px 0 8px; }
	.checks { margin-bottom: 12px; }
	.checks label { padding: 5px 0; font-size: 12px; }
	.checks i { font-size: 10.5px; }
	.box { width: 14px; height: 14px; }
	.nonuts { padding: 10px; }
	.nonuts .display { font-size: 17px; }
	.rsteps { padding: 14px 12px 6px 14px; }
	.rsteps h2 { font-size: 22px; margin: 6px 0 8px; }
	.rsteps label { padding: 4px 0; gap: 10px; font-size: 12px; line-height: 1.38; }
	.num { width: 28px; height: 28px; font-size: 13px; }
	.body .h { font-size: 12px; margin-bottom: 1px; }
	.rfoot { padding: 8px 14px; }
	.rfoot .tag { font-size: 11px; }
	.tile, .rsteps li, .checks li { break-inside: avoid; }
}
