/*
 * /youtube-ads-management/, the body sections added 2026-11-20 (agency-trial unit; ops repo
 * docs/design/2026-11-20-agency-trial/03-plan.md): the weekly work pictured as what the customer receives, the
 * "What's included" split, and spacing for the shared blocks the page now carries (placements, review cards, brand
 * logos, crosslinks). Loaded last by inc/managed-ads.php. Tokens frozen: the explainer's --xp-* and the page's --mga-*.
 *
 * Phone first at 375; 768 puts the included split side by side; 960 puts the weekly rows in two columns.
 */

/* ---- What does Sprizzy do for my YouTube ads each week? (navy) ------------------------------- */

.mga-wk__rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.mga-wk__row {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px;
	border-radius: var(--mga-radius);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.mga-wk__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.template-managed .mga-wk__text h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
	color: #fff;
}

.template-managed .mga-wk__text p {
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	color: #d6defa;
}

/* The frames: small product pictures of what lands in the customer's inbox. Decorative (aria-hidden); the row's text
   carries the meaning. */
.mga-wk__frame {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	margin-top: auto;
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	color: var(--xp-ink);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
	font-size: 14px;
	line-height: 1.35;
}

.mga-mail__top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mga-mail__av {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 38%, #fff 0 18%, transparent 19%), radial-gradient(circle at 50% 100%, #fff 0 38%, transparent 39%), linear-gradient(135deg, var(--xp-accent), var(--mga-blue2));
}

.mga-mail__from {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 13px;
	line-height: 1.25;
	color: var(--xp-meta);
}

.mga-mail__from b {
	font-weight: 600;
	color: var(--xp-ink);
}

.mga-mail__tag {
	margin-left: auto;
	padding: 3px 8px;
	border-radius: 999px;
	background: #f1f1f1;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--xp-meta);
}

.template-managed .mga-mail__subj {
	margin: 12px 0 8px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--xp-ink);
}

.mga-mail__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.mga-mail__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--xp-body);
}

.mga-wk__tick {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: -1px;
	padding: 2px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #e6edff;
	color: var(--xp-accent);
}

.mga-mail__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.mga-mail__btns span {
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid var(--xp-rule);
	font-size: 13px;
	font-weight: 600;
	color: var(--xp-ink);
}

.mga-mail__btns .is-main {
	border-color: var(--xp-accent);
	background: var(--xp-accent);
	color: #fff;
}

/* Every new upload: the new video slides to the front and takes the "Promoting now" pill. */
.mga-up {
	display: grid;
	gap: 8px;
}

.mga-up__card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 10px;
	border: 1px solid var(--xp-rule);
}

.mga-up__card--new {
	border-color: var(--xp-accent);
	box-shadow: 0 0 0 3px #e6edff;
}

.mga-up__card--old {
	opacity: 0.6;
}

.mga-up__thumb {
	position: relative;
	flex: none;
	width: 72px;
	height: 40px;
	border-radius: 6px;
	background: linear-gradient(135deg, #ffd600 0%, #ff8a3d 55%, #ff3d6e 100%);
}

.mga-up__card--old .mga-up__thumb {
	background: linear-gradient(135deg, #b9c4dd, #8a96b3);
}

.mga-up__thumb i {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	margin: -7px 0 0 -4px;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
}

.mga-up__lines {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

.mga-up__lines b {
	font-size: 14px;
	font-weight: 600;
}

.mga-up__pill {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--xp-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.mga-up__muted {
	font-size: 12px;
	color: var(--xp-meta);
}

/* Any time: a reply and the answer. */
.mga-chat {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.template-managed .mga-chat__b {
	max-width: 85%;
	margin: 0;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.35;
}

.template-managed .mga-chat__b--you {
	align-self: flex-end;
	border-bottom-right-radius: 4px;
	background: #f1f1f1;
	color: var(--xp-ink);
}

.template-managed .mga-chat__b--us {
	align-self: flex-start;
	border-bottom-left-radius: 4px;
	background: var(--xp-accent);
	color: #fff;
}

/* Motion: only when allowed. js/managed-ads.js adds .is-in to each row the moment it starts to scroll into view; the
   animations hold their first frame only from then on, so a row is never hidden before that (no script, a screenshot
   or a crawler sees every row, static). */
@media (prefers-reduced-motion: no-preference) {
	.mga-wk__row.is-in {
		animation: mga-wk-rise 0.5s ease both;
	}

	.mga-wk__row.is-in .mga-wk__tick path {
		stroke-dasharray: 16;
		animation: mga-wk-tick 0.4s ease 0.35s both;
	}

	.mga-wk__row.is-in .mga-mail__list li:nth-child(2) .mga-wk__tick path { animation-delay: 0.5s; }
	.mga-wk__row.is-in .mga-mail__list li:nth-child(3) .mga-wk__tick path { animation-delay: 0.65s; }

	.mga-wk__row.is-in .mga-up__card--new {
		animation: mga-wk-slide 0.45s ease 0.4s both;
	}

	.mga-wk__row.is-in .mga-chat__b--us {
		animation: mga-wk-rise 0.4s ease 0.6s both;
	}
}

@keyframes mga-wk-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes mga-wk-tick {
	from { stroke-dashoffset: 16; }
	to { stroke-dashoffset: 0; }
}

@keyframes mga-wk-slide {
	from { opacity: 0; transform: translateX(18px); }
	to { opacity: 1; transform: none; }
}

/* ---- What's included ------------------------------------------------------------------------ */

.mga-inc__split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.mga-inc__col {
	padding: 22px 20px;
	border-radius: var(--mga-radius);
	border: 1px solid var(--xp-rule);
	background: #fff;
}

.mga-inc__col--us {
	border-color: transparent;
	background: radial-gradient(100% 120% at 0% 0%, var(--mga-blue2) 0%, rgba(58, 91, 214, 0) 60%), var(--xp-accent);
	color: #fff;
	box-shadow: var(--mga-shadow);
}

.template-managed .mga-inc__col h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--xp-ink);
}

.template-managed .mga-inc__col--us h3 {
	color: #fff;
}

.mga-inc__who {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--xp-tint);
	color: var(--xp-accent);
	font-size: 13px;
	font-weight: 700;
}

.mga-inc__col--us .mga-inc__who {
	background: #fff;
}

.mga-inc__who .lp_icon {
	width: 20px;
	height: 20px;
}

.mga-inc__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.mga-inc__col li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 17px;
	line-height: 1.4;
	color: var(--xp-body);
}

.mga-inc__col--us li {
	color: #fff;
}

.mga-inc__col li .lp_icon {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
}

.mga-inc__col--us li .lp_icon,
.mga-inc__col--us li .lp_icon * {
	color: #fff;
	stroke: currentColor;
	stroke-width: 2.4;
}

.template-managed .mga-inc__note {
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.45;
	color: var(--xp-meta);
}

/* ---- Shared blocks on this page --------------------------------------------------------------- */

/* Placements (sprizzy_landing_placements): the landing stylesheet's section in the box the landing pages give it (their
   .content: 93% wide, up to 1300 px). Its own stacking context keeps the blue band (z-index -9, hanging 80 px below the
   frames) above this page's white ground; clip stops the 100vw band from widening the page. */
.mga-place {
	position: relative;
	z-index: 0;
	isolation: isolate;
	width: 93%;
	max-width: 1300px;
	margin: 0 auto;
	padding: 8px 0 120px;
	overflow-x: clip;
}

.template-managed .mga-place .section-placements {
	margin-top: 40px;
}

.template-managed .mga-place .section-placements h2 {
	max-width: 900px; /* the landing cap (590 px, 40 px line on 50 px type) broke the question into two touching lines */
	font-weight: 600;
	line-height: 1.1;
}

.mga-says .rs-says__grid {
	/* The card tokens from css/results.css (set on its .rs root, which this page does not have). */
	--rs-ink: var(--xp-ink);
	--rs-body: var(--xp-body);
	--rs-meta: var(--xp-meta);
	--rs-rule: var(--xp-rule);
	--rs-accent: var(--xp-accent);
	--rs-yellow: #ffd600;
	--rs-ground: #fff;
	--rs-radius: var(--mga-radius);
	margin-left: auto;
	margin-right: auto;
}

.mga-says .rs-say {
	border: 1px solid var(--xp-rule);
	box-shadow: 0 6px 18px rgba(16, 32, 90, 0.06);
}

.template-managed .mga-says__vary {
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--xp-meta);
}

.mga-brands {
	padding: 8px 16px 0;
}

.template-managed .mga-xlinks {
	margin-top: 64px;
}

/* The explainer's link colour would turn every card blue; the shared panel's own ink (style.css) wins here. */
.template-managed .mga-xlinks li:not(.xl-all) a {
	color: #1e293b;
}

.template-managed .mga-xlinks li:not(.xl-all) a:hover,
.template-managed .mga-xlinks li:not(.xl-all) a:focus-visible {
	color: #2563eb;
}

/* css/real_estate_promotion.css (loaded for the placements block) pushes .site-header down to 25 px at 540 and below;
   this page keeps the site's own 18 px (style.css), so the hero does not move. */
@media screen and (max-width: 540px) {
	body.page-template-page-managed-youtube-ads .site-header {
		margin-top: 18px;
	}
}

/* ---- 768 and wider ------------------------------------------------------------------------- */

@media (min-width: 768px) {
	.mga-inc__split {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 20px;
		align-items: stretch;
	}

	.mga-inc__col {
		padding: 28px;
	}
}

/* ---- 960 and wider: the weekly rows two by two ------------------------------------------------ */

@media (min-width: 960px) {
	.mga-wk__rows {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.mga-wk__row {
		padding: 24px;
	}

	.template-managed .mga-xlinks {
		margin-top: 96px;
	}

	.mga-says .rs-says__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
