/* ─── GovData Ad Services — Zone Placeholder Styles ───────────────────────── */
/* Reuses the existing terminal CSS variables (--bg-2, --line, --accent,       */
/* --ink-3) and the .corner bracket pattern from terminal.css.                 */

.govads-slot {
	display: block;
	background: var(--bg-2, #0d0d12);
	border: 1px solid var(--line, #1e2230);
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
	/* width/height set inline by PHP renderer — prevents CLS */
}

/* Corner bracket decoration — exact match to .corner pattern in terminal.css */
.govads-slot::before,
.govads-slot::after {
	content: "";
	position: absolute;
	width: 8px;
	height: 8px;
	border: 1px solid var(--accent, #00a0d2);
	opacity: 0.35;
	pointer-events: none;
	z-index: 1;
}
.govads-slot::before {
	top: -1px;
	left: -1px;
	border-right: 0;
	border-bottom: 0;
}
.govads-slot::after {
	bottom: -1px;
	right: -1px;
	border-left: 0;
	border-top: 0;
}

/* PIPEDA/CASL-compliant "AD" disclosure label */
.govads-label {
	position: absolute;
	bottom: 4px;
	right: 6px;
	font-family: "JetBrains Mono", "Courier New", monospace;
	font-size: 9px;
	letter-spacing: 0.15em;
	color: var(--ink-3, #3a3f52);
	text-transform: uppercase;
	pointer-events: none;
	z-index: 2;
}

/* Image ads */
.govads-img-wrap {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}
.govads-img-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* HTML5 / rich ads */
.govads-html-wrap {
	display: block;
	width: 100%;
	height: 100%;
}

/* Zone-specific layout helpers */

/* Leaderboard zones (728x90, 970x90) — center in content column */
.govads-slot[data-zone="archive_after_search"],
.govads-slot[data-zone="archive_before_pagination"],
.govads-slot[data-zone="mp_profile_mid_content"],
.govads-slot[data-zone="dashboard_below_hero"] {
	max-width: 100%;
	margin: 12px auto;
}

/* Footer zone — full-width with top separator */
.govads-slot[data-zone="global_footer"] {
	max-width: 100%;
	margin: 0 0 16px;
}

/* Sidebar zone — fit inside .prof-side column */
.govads-slot[data-zone="mp_profile_sidebar"] {
	margin: 14px 0 0;
}

/* Hover state — subtle brightness lift */
.govads-img-wrap:hover img,
.govads-html-wrap:hover {
	opacity: 0.92;
	transition: opacity 0.15s;
}
