.mpa-placement{--mpa-border:#d8d8d8;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin:0 auto;padding:20px 16px 16px;box-sizing:border-box;background:#f5f5f5;color:#555;font-family:Arial,Helvetica,sans-serif;overflow:hidden}.mpa-label{position:absolute;top:6px;left:50%;transform:translateX(-50%);font-size:11px;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:#606c78}.mpa-creative{display:grid;place-items:center;width:100%;height:100%;text-align:center}.mpa-creative iframe,.mpa-creative img{display:block;max-width:100%;max-height:100%;margin:auto;border:0}.mpa-creative>a{display:grid;place-items:center;width:100%;height:100%}.mpa-placeholder{display:grid;place-items:center;gap:5px;padding:14px;border:1px dashed #c7c7c7;background:rgba(255,255,255,.58);width:min(100%,720px);box-sizing:border-box}.mpa-placeholder strong{font-size:12px;letter-spacing:.04em;text-transform:uppercase}.mpa-placeholder span{font-size:10px;color:#777}.mpa-slot--billboard{min-height:290px}.mpa-slot--leaderboard{min-height:126px}.mpa-slot--inline{min-height:286px}.mpa-slot--poster{min-height:286px}.mpa-slot--mobile-anchor{display:none}.mpa-close{position:absolute;right:4px;top:4px;display:grid;place-items:center;width:26px;height:26px;min-height:0;padding:0;border:0;border-radius:50%;background:#fff;color:#111;font-size:18px;line-height:1;box-shadow:0 1px 5px rgba(0,0,0,.2)}
@media(max-width:720px){.mpa-slot--billboard{min-height:136px}.mpa-slot--leaderboard{min-height:136px}.mpa-slot--inline,.mpa-slot--poster{min-height:286px}.mpa-slot--mobile-anchor{position:fixed;z-index:9998;right:0;bottom:0;left:0;display:flex;min-height:78px;max-width:none;padding:18px 40px 8px;box-shadow:0 -3px 16px rgba(0,0,0,.15)}.admin-bar .mpa-slot--mobile-anchor{bottom:0}}
@media(prefers-reduced-motion:reduce){.mpa-placement{scroll-behavior:auto}}

/* Standard-page inventory sits between site navigation and page content. */
.oh-page-ad--top { width: 100%; padding: 14px 20px 20px; box-sizing: border-box; border-bottom: 1px solid var(--oh-line, #d8d8d8); background: var(--oh-surface, #fff); }
.oh-page-ad--top .mpa-placement { max-width: 970px; }
@media (max-width: 720px) { .oh-page-ad--top { padding: 8px 10px; } }

/* 1.4: responsive AdSense units and legible reserved inventory in both themes. */
.mpa-label{font-size:11px;font-weight:700}
.mpa-placeholder span{font-size:11px}
.mpa-creative .adsbygoogle{display:block;width:100%;max-width:100%;min-height:250px}
.mpa-slot--poster .mpa-creative{max-width:300px}
html[data-oh-theme="dark"] .mpa-placement{border:1px solid #344151;background:#1b2530;color:#eef3f8}
html[data-oh-theme="dark"] .mpa-label,html[data-oh-theme="dark"] .mpa-placeholder span{color:#b8c5d3}
html[data-oh-theme="dark"] .mpa-is-placeholder .mpa-placeholder{border-color:#516173;background:#243241;color:#eef3f8}
@media(max-width:1024px){.mpa-placement.mpa-is-sticky{position:relative!important;top:auto!important}}

/* 1.5: optional high-impact inventory. Creatives are supplied by the site owner. */
.mpa-slot--takeover {
	min-height: clamp(600px, 72vh, 850px);
	padding: 32px 0 0;
	background: #111820;
	color: #fff;
}
.mpa-slot--takeover .mpa-label { z-index: 2; color: #dce4ee; }
.mpa-slot--takeover .mpa-creative { position: absolute; inset: 0; width: 100%; height: 100%; }
.mpa-slot--takeover .mpa-creative :is(a, img, iframe, video) { width: 100%; height: 100%; max-width: none; max-height: none; }
.mpa-slot--takeover .mpa-creative :is(img, video) { object-fit: cover; }
.mpa-slot--takeover .mpa-placeholder { position: relative; z-index: 1; }
.mpa-slot--takeover .mpa-close { z-index: 4; right: 18px; top: 18px; width: 36px; height: 36px; }
.mpa-slot--paired { min-height: 286px; }
.mpa-slot--floating {
	position: fixed;
	z-index: 9997;
	right: 24px;
	bottom: 24px;
	width: min(360px, calc(100vw - 48px));
	min-height: 250px;
	max-height: min(70vh, 360px);
	padding: 22px 10px 10px;
	border: 1px solid #bfcbd7;
	box-shadow: 0 12px 34px rgba(11, 21, 35, .24);
}
.mpa-slot--floating .mpa-creative { min-height: 210px; }
.mpa-slot--floating .mpa-creative :is(iframe, video) { width: 100%; height: 210px; }
.mpa-slot--floating .mpa-close,
.mpa-slot--mobile-anchor .mpa-close { z-index: 3; }
@media (max-width: 1024px) {
	.mpa-slot--floating { display: none; }
}
@media (max-width: 720px) {
	.mpa-slot--takeover { min-height: clamp(280px, 60vh, 460px); }
	.mpa-slot--paired { min-height: 286px; }
}

/* 1.7: opt-in public availability cards; private placeholders remain admin-only. */
.mpa-placement.mpa-is-inventory {
	min-height: 0;
	padding: 36px 18px 20px;
	overflow: visible;
	border: 1px solid #d5dfeb;
	background: #f7f9fc;
	color: #132238;
}
.mpa-is-inventory .mpa-label { color: #53667f; }
.mpa-is-inventory .mpa-creative { display: block; height: auto; text-align: left; }
.mpa-inventory-card { width: min(100%, 500px); margin-inline: auto; }
.mpa-inventory-card__intro { display: grid; gap: 4px; text-align: center; }
.mpa-inventory-card__intro strong { font-size: clamp(18px, 2vw, 24px); line-height: 1.2; }
.mpa-inventory-card__intro span { font-size: 13px; color: #52627a; }
.mpa-inquiry { margin-top: 16px; }
.mpa-inquiry summary {
	width: fit-content;
	margin: 0 auto;
	padding: 10px 16px;
	border-radius: 4px;
	background: #185abc;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.mpa-inquiry summary:hover,.mpa-inquiry summary:focus-visible { background: #104996; }
.mpa-inquiry summary:focus-visible,.mpa-inquiry :is(input,textarea,button):focus-visible { outline: 3px solid #ffad3d; outline-offset: 2px; }
.mpa-inquiry form { display: grid; gap: 12px; margin-top: 20px; }
.mpa-inquiry form > label:not(.mpa-consent) { display: block; font-size: 13px; font-weight: 600; }
.mpa-inquiry :is(input:not([type="checkbox"]),textarea) {
	width: 100%;
	min-width: 0;
	min-height: 42px;
	box-sizing: border-box;
	padding: 9px 10px;
	border: 1px solid #aebccc;
	border-radius: 4px;
	background: #fff;
	color: #142338;
	font: inherit;
}
.mpa-inquiry label > :is(input:not([type="checkbox"]),textarea) { display: block; margin-top: 5px; }
.mpa-inquiry textarea { resize: vertical; }
.mpa-inquiry .mpa-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.4; }
.mpa-inquiry .mpa-consent input { flex: 0 0 auto; margin-top: 2px; }
.mpa-inquiry .mpa-privacy { margin: -4px 0 0; font-size: 12px; }
.mpa-inquiry .mpa-privacy a { color: #185abc; text-decoration: underline; }
.mpa-inquiry button { min-height: 42px; padding: 9px 16px; border: 0; border-radius: 4px; background: #185abc; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mpa-inquiry button:hover { background: #104996; }
.mpa-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mpa-inquiry-feedback { margin: 12px 0 0; text-align: center; color: #17603c; font-size: 13px; font-weight: 700; }
.mpa-inquiry-feedback--error { color: #a32626; }
.mpa-slot--takeover.mpa-is-inventory,.mpa-slot--floating.mpa-is-inventory,.mpa-slot--mobile-anchor.mpa-is-inventory { position: relative; inset: auto; width: 100%; max-height: none; box-shadow: none; }
.mpa-slot--takeover.mpa-is-inventory,.mpa-slot--floating.mpa-is-inventory { display: flex; }
.mpa-slot--mobile-anchor.mpa-is-inventory { display: none; }
.mpa-slot--takeover.mpa-is-inventory .mpa-creative { position: relative; inset: auto; }
@media (max-width: 1024px) { .mpa-slot--floating.mpa-is-inventory { display: none; } }
@media (max-width: 720px) { .mpa-slot--mobile-anchor.mpa-is-inventory { display: flex; } }
html[data-oh-theme="dark"] .mpa-placement.mpa-is-inventory { border-color: #34485c; background: #192633; color: #f3f7fb; }
html[data-oh-theme="dark"] .mpa-is-inventory :is(.mpa-label,.mpa-inventory-card__intro span) { color: #b5c7da; }
html[data-oh-theme="dark"] .mpa-inquiry :is(input:not([type="checkbox"]),textarea) { border-color: #60758b; background: #0e1925; color: #f3f7fb; }
html[data-oh-theme="dark"] .mpa-inquiry .mpa-privacy a { color: #9bc4ff; }
html[data-oh-theme="dark"] .mpa-inquiry-feedback { color: #8dd8aa; }
html[data-oh-theme="dark"] .mpa-inquiry-feedback--error { color: #ffaaa4; }
html[data-oh-theme="dark"] :is(.oh-home-ad--top,.oh-category-ad--top,.oh-article-ad--top):has(.mpa-is-inventory) { background: #0e141d; border-color: #34485c; }

/* 1.8: let Google's responsive units size themselves, especially on mobile. */
.mpa-placement.mpa-is-adsense { overflow: visible; }
.mpa-is-adsense .mpa-creative { height: auto; min-height: 0; }
.mpa-is-adsense .mpa-creative iframe { max-height: none; }
.mpa-slot--leaderboard .mpa-creative .adsbygoogle { min-height: 90px; }
@media (max-width: 720px) {
	.mpa-slot--billboard .mpa-creative .adsbygoogle,
	.mpa-slot--leaderboard .mpa-creative .adsbygoogle { min-height: 100px; }
}
