/*
 * PlantPorium printable care sheet.
 * One page, A4 or US Letter. Stands alone: it is loaded by the care sheet page
 * only, never by the rest of the site.
 *
 * Fonts (all SIL Open Font License): Lora, Nunito Sans, Kaushan Script.
 */

@font-face { font-family: "PP Lora"; font-weight: 400; font-style: normal; font-display: block; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PP Lora"; font-weight: 400; font-style: italic; font-display: block; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "PP Lora"; font-weight: 700; font-style: normal; font-display: block; src: url("../fonts/lora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PP Nunito"; font-weight: 400; font-display: block; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PP Nunito"; font-weight: 700; font-display: block; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PP Nunito"; font-weight: 800; font-display: block; src: url("../fonts/nunito-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "PP Kaushan"; font-weight: 400; font-display: block; src: url("../fonts/kaushan-script-latin-400-normal.woff2") format("woff2"); }

* { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html, body { margin: 0; }
body { background: #e8e4d6; font-family: "PP Nunito", system-ui, sans-serif; }

.pp-cs-paper-a4 { --pw: 210mm; --ph: 297mm; --lines: 5; --lines-long: 6; --intro-lines: 8; }
.pp-cs-paper-letter { --pw: 215.9mm; --ph: 279.4mm; --lines: 4; --lines-long: 5; --intro-lines: 7; }

/* On-screen toolbar (hidden when printing) ------------------------------- */

.pp-cs-bar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	padding: 12px 18px;
	background: #1f4d12;
	color: #fff;
	font-size: 15px;
}
.pp-cs-bar a { color: #fff; }
.pp-cs-back { margin-right: auto; font-weight: 700; text-decoration: none; padding: 8px 0; }
.pp-cs-papers { display: inline-flex; align-items: center; gap: 6px; }
.pp-cs-papers a { padding: 8px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; text-decoration: none; }
.pp-cs-papers a[aria-current="true"] { background: #fff; color: #1f4d12; font-weight: 700; }
.pp-cs-print { font: inherit; font-weight: 800; padding: 10px 18px; border: 0; border-radius: 6px; background: #f4b3c8; color: #4a0f26; cursor: pointer; }
.pp-cs-hint { flex-basis: 100%; font-size: 13px; opacity: .85; }

.pp-cs-wrap { margin: 22px auto 40px; }
.pp-cs-stage { transform-origin: top left; }

/* The page --------------------------------------------------------------- */

.pp-cs-page {
	position: relative;
	width: var(--pw);
	height: var(--ph);
	overflow: hidden;
	background: #fdfbf4;
	color: #1d2a1f;
	box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.pp-cs-photo { position: absolute; top: 0; right: 0; width: 53%; height: 36.5%; }
.pp-cs-photo img { display: block; width: 100%; height: 100%; object-fit: cover; clip-path: url(#pp-cs-curve); }
.pp-cs-photo .pp-cs-noimg { position: absolute; inset: 0; background: #dbe7cf; display: flex; align-items: center; justify-content: center; color: #6f9a4f; clip-path: url(#pp-cs-curve); }
.pp-cs-photo .pp-cs-noimg svg { width: 38mm; height: 38mm; stroke-width: 1; }
.pp-cs-photo > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.pp-cs-head { position: absolute; top: 0; left: 0; width: 49%; height: 36.5%; padding: 1.6% 0 0 4.2%; display: flex; flex-direction: column; overflow: hidden; }
.pp-cs-logo { align-self: center; height: 17mm; width: auto; margin-right: 6mm; }
.pp-cs-ribbon {
	align-self: center;
	margin: 2.5mm 6mm 0 0;
	background: #2f6b1d;
	color: #fff;
	font-weight: 800;
	letter-spacing: .32em;
	font-size: 10.5pt;
	padding: 1.3mm 7mm 1.3mm 8mm;
	clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%);
}
.pp-cs-name { font-family: "PP Lora", serif; font-weight: 700; margin: 3mm 0 0 0; line-height: 1.05; color: #16301a; letter-spacing: -.01em; }
.pp-cs-botanical { font-family: "PP Lora", serif; font-style: italic; font-size: 14pt; color: #234a25; display: flex; align-items: center; gap: 4mm; margin: 1.5mm 6mm 0 2mm; }
.pp-cs-botanical:before, .pp-cs-botanical:after { content: ""; flex: 1; height: .35mm; background: #5e9e2e; }
.pp-cs-intro { font-family: "PP Lora", serif; font-size: 10.8pt; line-height: 1.42; margin: 3.5mm 9mm 0 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--intro-lines); line-clamp: var(--intro-lines); overflow: hidden; }
.pp-cs-intro.is-tall { -webkit-line-clamp: 5; line-clamp: 5; }

/* Summary bar */
.pp-cs-bar-strip {
	position: absolute;
	left: 2%;
	right: 2%;
	top: 37.3%;
	height: 5.3%;
	background: #2f6b1d;
	border-radius: 4.5mm;
	display: flex;
	align-items: center;
	color: #fff;
	box-shadow: 0 .6mm 0 #1f4d12;
}
.pp-cs-bar-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2.2mm;
	height: 62%;
	padding: 0 2mm;
	border-left: .3mm solid rgba(255, 255, 255, .55);
	font-weight: 700;
	font-size: 8.8pt;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.pp-cs-bar-item:first-child { border-left: 0; }
.pp-cs-bar-item svg { flex: none; width: 30px; height: 30px; stroke-width: 1.5; }
.pp-cs-bar-item span { min-width: 0; }

/* Four cards */
.pp-cs-cards {
	position: absolute;
	left: 2%;
	right: 2%;
	top: 45%;
	height: 34%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 1fr;
	gap: 6mm 5mm;
}
.pp-cs-card { position: relative; border-radius: 3mm; box-shadow: 0 .5mm 1.8mm rgba(60, 50, 20, .18); overflow: hidden; }
.pp-cs-card:nth-child(3):last-child { grid-column: 1 / -1; }
.pp-cs-card h2 { margin: 0; height: 11.5mm; padding-left: 23mm; display: flex; align-items: center; font-family: "PP Lora", serif; font-weight: 700; font-size: 15pt; letter-spacing: .01em; text-transform: uppercase; color: #16301a; white-space: nowrap; }
.pp-cs-card p { margin: 0; padding: 5mm 5mm 0 8mm; font-size: 11.4pt; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines); line-clamp: var(--lines); overflow: hidden; }
.pp-cs-card.is-long p { font-size: 10.4pt; -webkit-line-clamp: var(--lines-long); line-clamp: var(--lines-long); }
.pp-cs-card.is-short p { font-size: 12.6pt; line-height: 1.5; }
.pp-cs-badge { position: absolute; left: 3mm; top: -1mm; width: 16mm; height: 16mm; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: .8mm solid #fff; box-shadow: 0 .5mm 1.5mm rgba(0, 0, 0, .25); color: #fff; z-index: 1; }
.pp-cs-badge svg { width: 30px; height: 30px; stroke-width: 1.5; }
.pp-cs-c-light { background: #fffbea; } .pp-cs-c-light h2 { background: #fbe9a6; } .pp-cs-c-light .pp-cs-badge { background: #eab308; }
.pp-cs-c-water { background: #f2f9fe; } .pp-cs-c-water h2 { background: #bfe0f5; } .pp-cs-c-water .pp-cs-badge { background: #1d8fd1; }
.pp-cs-c-feed  { background: #fff3f5; } .pp-cs-c-feed h2  { background: #f8c3cf; } .pp-cs-c-feed .pp-cs-badge  { background: #d6406a; }
.pp-cs-c-prune { background: #f6faea; } .pp-cs-c-prune h2 { background: #d3e6ae; } .pp-cs-c-prune .pp-cs-badge { background: #4f8a1e; }

/* Top tips */
.pp-cs-tips { position: absolute; left: 4.2%; right: 27%; top: 81%; display: flex; align-items: center; gap: 5mm; }
.pp-cs-tips h3 { font-family: "PP Kaushan", cursive; font-weight: 400; font-size: 30pt; margin: 0; color: #16301a; white-space: nowrap; width: 44mm; }
.pp-cs-tips ul { list-style: none; margin: 0; padding: 1mm 0 1mm 5mm; border-left: .4mm solid #2f6b1d; flex: 1; }
.pp-cs-tips li { display: flex; align-items: center; gap: 2.5mm; font-size: 10.6pt; line-height: 1.3; padding: 1.9mm 0; border-top: .2mm solid #e3dfcf; }
.pp-cs-tips li:first-child { border-top: 0; }
.pp-cs-tick { flex: none; width: 5.5mm; height: 5.5mm; border-radius: 50%; background: #d9eeb8; display: flex; align-items: center; justify-content: center; }
.pp-cs-tick svg { width: 3.4mm; height: 3.4mm; }

.pp-cs-corner { position: absolute; right: 0; bottom: 1.9%; width: 23%; }
.pp-cs-url { position: absolute; left: 4.2%; bottom: 2.7%; font-size: 8pt; color: #3d5a3f; }
.pp-cs-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 1.9%; background: #2f6b1d; }

/* Printing --------------------------------------------------------------- */

@media print {
	html, body { background: none; }
	.pp-cs-bar { display: none; }
	.pp-cs-wrap { width: auto !important; height: auto !important; margin: 0; }
	.pp-cs-stage { transform: none !important; width: auto !important; }
	.pp-cs-page { box-shadow: none; height: calc(var(--ph) - .3mm); break-after: avoid; page-break-after: avoid; }
}
