/* NCC News – privacy notice (fix #14 in fixes.md) */

/* The cookie notice, a bar at the bottom of the screen, styled like the theme (your request, 2026-10-12):
   the menu bar's blue #203299 with white text (10.6:1), and a white button like the theme's menu button,
   in the menu's Montserrat capitals (button text 10.6:1). */
.ncc-cookie-notice {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1rem;
	background: #203299;
	color: #fff;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
	font-size: 0.9375rem;
	line-height: 1.5;
}
.ncc-cookie-notice__text {
	flex: 1 1 20rem; /* text and button side by side when there's room; stacked on phones */
	max-width: 56rem;
	margin: 0;
	color: #fff;
}
.ncc-cookie-notice__text a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
}
.ncc-cookie-notice__dismiss {
	padding: 0.55rem 1.25rem;
	background: #fff;
	color: #203299;
	border: 2px solid transparent; /* shows as a border in Windows high-contrast mode */
	border-radius: 4px;
	font-family: Montserrat, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
}
/* Under the mouse and with keyboard focus the button stays white-and-blue. Two classes are needed: the theme's
   own "button:hover, button:focus" rule (its colour settings) otherwise turned the label white on this pale
   background (1.2:1, found 2026-10-14) and, on focus, made the button dark. */
.ncc-cookie-notice .ncc-cookie-notice__dismiss:hover,
.ncc-cookie-notice .ncc-cookie-notice__dismiss:focus {
	background: #e9ecf8;
	color: #203299;
	border-color: transparent;
}
/* A visible keyboard outline on the notice's link and button even when the accessibility plugin isn't on (the
   theme removes focus outlines). The same SU Orange ring as that plugin's, so the two never look different. */
.ncc-cookie-notice a:focus-visible,
.ncc-cookie-notice button:focus-visible {
	outline: 3px solid #f76900 !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #000e54 !important;
}
/* Phones: a more compact bar. */
@media (max-width: 37.5em) {
	.ncc-cookie-notice {
		gap: 0.5rem 1rem;
		padding: 0.625rem 0.875rem;
		font-size: 0.875rem;
		line-height: 1.45;
	}
	.ncc-cookie-notice__dismiss {
		padding: 0.45rem 1.25rem;
		font-size: 0.875rem;
	}
}
/* While the notice is open, lift the theme's "back to top" button above it. */
.ncc-has-cookie-notice .ta_upscr {
	bottom: calc(var(--ncc-notice-height, 0px) + 0.75rem) !important;
}

/* The footer line under the copyright, where "Privacy Policy" goes. The accessibility plugin has the same rule,
   so the line looks the same with either plugin switched off. */
.mg-footer-copyright .ncc-su-links {
	margin: 0.4rem 0 0;
}
.mg-footer-copyright .ncc-su-links a {
	text-decoration: underline;
}
