/**
 * PinScroll article layout.
 *
 * Loaded as a real stylesheet, on the front end, only on a post PinScroll
 * wrote. It used to be an inline <style> block inside the post content, which
 * was a mistake: WordPress removes a tag it does not allow while keeping the
 * text inside it, so on any site where something runs kses over the content —
 * a security plugin, a theme filter, a later re-save — the whole stylesheet
 * became visible paragraph text. And once it was text, wptexturize turned
 * every "--" custom property into an en dash and every quote into a curly one,
 * which is why the page showed .pp-mag{-a:#2f6f61 ...} in the middle of a
 * recipe.
 *
 * Every rule is a class on the element itself. There is no wrapper element and
 * no descendant selector, for two reasons: nothing here can reach a single
 * element the plugin did not write, and the article stays a flat sequence of
 * top-level blocks, so an ad plugin that injects between paragraphs has
 * somewhere to inject.
 *
 * The accent is a custom property with a fallback, set per post in the head.
 */

.pp-mag-hero {
	background: linear-gradient(135deg, var(--pp-pale, #eef3f2), var(--pp-soft, #d1dfdc));
	border-radius: 20px;
	padding: 48px 34px;
	text-align: center;
	margin: 0 0 36px;
	border-top: 6px solid var(--pp-accent, #2f6f61);
}

.pp-mag-hero.pp-niche-coloring { background: linear-gradient(135deg, #fff7fb, #eef7ff); }

/* Coloring pages: printable first, controls beside it, article below it. */
.pp-coloring-stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr);
	gap: 22px;
	align-items: start;
	margin: 30px 0 38px;
}
.pp-coloring-stage .pp-mag-fig { margin: 0; }
.pp-coloring-stage .pp-mag-fig img {
	background: #fff;
	border: 1px solid #e1e6ef;
	border-radius: 20px;
	box-shadow: 0 14px 38px rgba(31, 42, 68, .08);
}
.pp-coloring-tools {
	position: sticky;
	top: 22px;
	background: #fff;
	border: 1px solid #e0e5ef;
	border-radius: 20px;
	padding: 22px;
	box-shadow: 0 14px 38px rgba(31, 42, 68, .08);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.pp-coloring-tools-k {
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--pp-accent, #4f46d9);
	margin-bottom: 7px;
}
.pp-coloring-tools-t {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 750;
	line-height: 1.2;
	color: #18233f;
	margin: 0 0 9px;
}
.pp-coloring-tools-p { color: #667085; font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.pp-coloring-btn,
.pp-coloring-btn:hover,
.pp-coloring-btn:focus,
.pp-coloring-btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 14px;
	margin-top: 10px;
	border-radius: 12px;
	background: var(--pp-accent, #4f46d9);
	color: #fff !important;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none !important;
	border: 1px solid transparent;
	box-shadow: none;
}
.pp-coloring-btn:hover { filter: brightness(.94); transform: translateY(-1px); }
.pp-coloring-btn.is-light { background: #fff; color: #25304a !important; border-color: #dfe4ee; }
.pp-coloring-btn.is-pin { background: #cc092f; }
@media (max-width: 760px) {
	.pp-coloring-stage { grid-template-columns: 1fr; }
	.pp-coloring-tools { position: static; order: -1; }
}
@media print {
	body.pp-print-coloring * { visibility: hidden !important; }
	body.pp-print-coloring .pp-coloring-stage,
	body.pp-print-coloring .pp-coloring-stage .pp-mag-fig,
	body.pp-print-coloring .pp-coloring-stage .pp-mag-fig img { visibility: visible !important; }
	body.pp-print-coloring .pp-coloring-stage { position: absolute; inset: 0; display: block; margin: 0; }
	body.pp-print-coloring .pp-coloring-stage .pp-mag-fig img { width: 100%; max-height: 100vh; object-fit: contain; border: 0; box-shadow: none; }
	body.pp-print-coloring .pp-coloring-tools,
	body.pp-print-coloring .pp-mag-cap { display: none !important; }
}
.pp-mag-hero.pp-niche-crochet,
.pp-mag-hero.pp-niche-diy_crafts { background: linear-gradient(135deg, #fff8f1, var(--pp-pale, #eef3f2)); }
.pp-mag-hero.pp-niche-home_decor { background: linear-gradient(135deg, #f5f1ea, var(--pp-soft, #d1dfdc)); }
.pp-mag-hero.pp-niche-food_roundup,
.pp-mag-hero.pp-niche-food_guide { background: linear-gradient(135deg, #fff7ed, #f5efe4); }
.pp-mag-hero.pp-niche-pets { background: linear-gradient(135deg, #f7f3ff, #eef8f3); }
.pp-mag-hero.pp-niche-sports { background: linear-gradient(135deg, #eef7ff, #e9f4ef); }
.pp-mag-hero.pp-niche-news { background: linear-gradient(135deg, #f2f4f7, #e7edf2); }

.pp-mag-kicker {
	display: inline-block;
	background: var(--pp-dark, #225046);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 5px 16px;
	border-radius: 20px;
	margin-bottom: 16px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-h1 {
	font-size: clamp(23px, 4vw, 40px);
	font-weight: 700;
	color: var(--pp-deep, #183831);
	line-height: 1.2;
	margin: 0 0 12px;
	font-family: Georgia, "Times New Roman", serif;
}

.pp-mag-sub {
	font-size: 16px;
	color: var(--pp-dark, #225046);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-style: italic;
	margin: 0;
}

.pp-mag-toc {
	background: #fff;
	border: 2px solid var(--pp-line, #bcd1cc);
	border-radius: 14px;
	padding: 20px 26px;
	margin: 0 0 34px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-toc-t {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--pp-dark, #225046);
	margin: 0 0 12px;
}

.pp-mag-toc-list {
	padding-left: 20px;
	margin: 0;
}

.pp-mag-toc-list li {
	font-size: 14px;
	color: var(--pp-deep, #183831);
	margin-bottom: 7px;
	font-weight: 500;
}

.pp-mag-toc-list a {
	color: inherit;
	text-decoration: none;
}

.pp-mag-toc-list a:hover {
	text-decoration: underline;
}

.pp-mag-lead {
	font-size: 17px;
	line-height: 1.9;
	margin: 0 0 20px;
}

.pp-mag-drop {
	font-size: 42px;
	font-weight: 700;
	color: var(--pp-dark, #225046);
	float: left;
	line-height: 0.85;
	margin: 8px 8px 0 0;
	font-family: Georgia, "Times New Roman", serif;
}

.pp-mag-box {
	background: linear-gradient(135deg, var(--pp-pale, #eef3f2), var(--pp-soft, #d1dfdc));
	border-left: 5px solid var(--pp-accent, #2f6f61);
	border-radius: 0 12px 12px 0;
	padding: 18px 24px;
	margin: 26px 0;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-box-l {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--pp-dark, #225046);
	margin: 0 0 8px;
	display: block;
}

.pp-mag-box-p {
	font-size: 15px;
	color: var(--pp-deep, #183831);
	margin: 0;
}

.pp-mag-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
	gap: 10px;
	margin: 24px 0 30px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-fact {
	background: #fff;
	border: 1px solid var(--pp-line, #bcd1cc);
	border-radius: 12px;
	padding: 14px 15px;
	box-shadow: 0 4px 16px rgba(31, 48, 42, .05);
}

.pp-mag-fact-l,
.pp-mag-fact-v {
	display: block;
}

.pp-mag-fact-l {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--pp-dark, #225046);
	margin-bottom: 5px;
}

.pp-mag-fact-v {
	font-size: 14px;
	font-weight: 650;
	color: var(--pp-deep, #183831);
	line-height: 1.45;
}

.pp-mag-source {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	background: #f6f7f9;
	border: 1px solid #d9dee5;
	border-radius: 10px;
	padding: 13px 16px;
	margin: 24px 0;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
}

.pp-mag-source-l {
	font-weight: 750;
	color: #344054;
}

.pp-mag-source a {
	color: var(--pp-dark, #225046);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pp-mag-h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(20px, 3vw, 27px);
	color: var(--pp-deep, #183831);
	margin: 44px 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--pp-line, #bcd1cc);
}

.pp-mag-h3 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	color: var(--pp-dark, #225046);
	margin: 26px 0 10px;
}

.pp-mag-p {
	font-size: 16px;
	margin: 0 0 17px;
	line-height: 1.85;
}

.pp-mag-list {
	margin: 0 0 18px;
	padding-left: 22px;
}

.pp-mag-list li {
	margin-bottom: 7px;
}

.pp-mag-fig {
	margin: 32px 0;
}

.pp-mag-fig-secondary {
	max-width: 960px;
	margin: 42px auto;
}

.pp-mag-fig img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}

.pp-mag-cap {
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13px;
	color: var(--pp-dark, #225046);
	text-align: center;
	margin-top: 9px;
	font-style: italic;
}

.pp-mag-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin: 22px 0;
}

.pp-mag-card {
	background: #fff;
	border: 1.5px solid var(--pp-line, #bcd1cc);
	border-radius: 12px;
	padding: 17px 16px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-card-t {
	font-size: 14px;
	font-weight: 700;
	color: var(--pp-deep, #183831);
	margin: 0 0 6px;
}

.pp-mag-card-p {
	font-size: 13px;
	color: #33474a;
	margin: 0;
	line-height: 1.55;
}

.pp-mag-collection {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin: 22px 0 34px;
}

.pp-mag-collection-i {
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 12px;
	align-items: start;
	background: #fff;
	border: 1.5px solid var(--pp-line, #bcd1cc);
	border-radius: 14px;
	padding: 17px;
	box-shadow: 0 5px 18px rgba(31, 48, 42, .05);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-collection-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--pp-dark, #225046);
	color: #fff;
	font-size: 13px;
	font-weight: 750;
}

.pp-mag-collection-t {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--pp-deep, #183831);
	margin: 3px 0 7px;
}

.pp-mag-collection-p {
	font-size: 13px;
	line-height: 1.65;
	color: #33474a;
	margin: 0;
}

.pp-mag-step {
	background: #fff;
	border: 1.5px solid var(--pp-line, #bcd1cc);
	border-radius: 14px;
	padding: 22px 24px;
	margin: 18px 0;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-step-n {
	display: inline-block;
	background: var(--pp-dark, #225046);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: 20px;
	margin-bottom: 9px;
}

.pp-mag-step-t {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	color: var(--pp-deep, #183831);
	margin: 0 0 9px;
	font-weight: 700;
}

.pp-mag-step-p {
	font-size: 15px;
	margin: 0;
}

.pp-mag-faq-i {
	background: #fff;
	border: 1.5px solid var(--pp-line, #bcd1cc);
	border-radius: 12px;
	padding: 18px 20px;
	margin: 0 0 12px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-faq-q {
	font-weight: 700;
	font-size: 15px;
	color: var(--pp-deep, #183831);
	margin: 0 0 9px;
}

.pp-mag-faq-a {
	font-size: 14px;
	color: #2c4145;
	line-height: 1.75;
	margin: 0;
}

.pp-mag-cta {
	background: linear-gradient(135deg, var(--pp-deep, #183831), var(--pp-dark, #225046));
	border-radius: 16px;
	padding: 34px 30px;
	text-align: center;
	margin: 46px 0 0;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-cta-t {
	color: #fff;
	font-size: 23px;
	margin: 0 0 10px;
	border: none;
	padding: 0;
	font-family: Georgia, "Times New Roman", serif;
}

.pp-mag-cta-p {
	color: var(--pp-soft, #d1dfdc);
	margin: 0;
	font-size: 15px;
}

.pp-mag-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 0;
	padding-top: 26px;
	border-top: 2px solid var(--pp-line, #bcd1cc);
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.pp-mag-tag {
	background: var(--pp-pale, #eef3f2);
	border: 1px solid var(--pp-line, #bcd1cc);
	color: var(--pp-deep, #183831);
	font-size: 12px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 20px;
}

/* PinScroll articles are Pinterest-only. The Salam theme injects a Facebook
 * button and a second duplicate share strip outside post_content; hide those
 * only on pages where this stylesheet is enqueued and keep one clear Save
 * action. The remaining Pinterest link is upgraded by the frontend payload. */
.sr-share .sr-facebook-button,
.sr-share-bottom {
	display: none !important;
}

.sr-share-top .sr-share-actions {
	grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 600px) {
	.pp-mag-hero {
		padding: 34px 20px;
	}

	.pp-mag-toc,
	.pp-mag-step {
		padding: 16px 18px;
	}

	.pp-mag-collection {
		grid-template-columns: 1fr;
	}
}

/* Advertising was removed in 6.45. A reserved box still saved in an article
   the cleanup has not reached yet takes no space and shows nothing. */
.pp-ad{display:none!important}
