/**
 * Official Links box + government band (v1.24.0; box moved up in v1.24.1).
 *
 * Enqueued only on single job pages where the box (and band) render.
 * No JavaScript — the buttons are plain links.
 *
 * Theme traps handled here:
 * - The theme sets `a { color: #669933 }` and
 *   `a:hover, a:focus { text-decoration: underline !important }` —
 *   every button rule below re-asserts its own colour and uses
 *   `text-decoration: none !important` on hover/focus.
 * - The theme sets `#content ul { list-style: circle inside; }` —
 *   the box contains no lists, and every selector is scoped under
 *   .jre-official-links / .jre-govt-band anyway.
 */

/* ---- Government band: slim deep-green strip under the job title. ---- */
.jre-govt-band {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #1b4332;
	color: #fff;
	border-radius: 6px;
	padding: 9px 14px;
	margin: 0 0 16px;
	line-height: 1.4;
}

.jre-govt-band-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.jre-govt-band-title {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.jre-govt-band-sub {
	font-size: 12.5px;
	opacity: 0.85;
}

/* ---- Official Links box. ---- */
/* v1.24.1: the box sits right after the facts panel, which has only
   a 4px bottom margin — the 16px top margin keeps the gap even with
   the header's other blocks (the band uses a 16px bottom margin). */
.jre-official-links {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 16px 18px;
	margin: 16px 0 20px;
}

/* Government jobs: formal notice style — warm background, solid
   green left border. */
.jre-official-links--govt {
	background: #fdfbf7;
	border: 1px solid #e9e6de;
	border-left: 4px solid #1b4332;
}

.jre-official-links-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: #1b4332;
	line-height: 1.4;
}

.jre-official-links-title-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.jre-official-links-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

a.jre-official-links-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 9px 16px;
	border: 1px solid #1b4332;
	border-radius: 6px;
	background: #fff;
	color: #1b4332;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

a.jre-official-links-btn:hover,
a.jre-official-links-btn:focus {
	background: #1b4332;
	color: #fff;
	text-decoration: none !important;
}

/* The Apply button is filled — it is the primary action. */
a.jre-official-links-btn--apply {
	background: #1b4332;
	color: #fff;
}

a.jre-official-links-btn--apply:hover,
a.jre-official-links-btn--apply:focus {
	background: #143325;
	border-color: #143325;
	color: #fff;
	text-decoration: none !important;
}

/* Mobile: buttons stack full-width. */
@media (max-width: 480px) {
	.jre-official-links-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	a.jre-official-links-btn {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}

	.jre-govt-band-sub {
		font-size: 12px;
	}
}
