/*
 * GOV.UK Frontend v6.1 rebrand — header, footer & service navigation.
 *
 * This app still runs on the legacy govuk-frontend 3.0.0 base. Instead of a
 * full framework upgrade, we port just the v6.1 header, footer and service-nav
 * CSS on top of it so the rebranded look matches the v6.1 apps (dotnet/CDP).
 * Blocks labelled "verbatim v6.1" are copied unchanged from govuk-frontend
 * 6.1.0; the #govuk-footer-scoped rules raise specificity so they win over the
 * 3.0.0 footer styles still shipped in the base stylesheet.
 */

/* Header — verbatim from govuk-frontend v6.1. */
.govuk-header{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:1rem;line-height:1;border-bottom:1px solid transparent;color:#fff;background:var(--govuk-brand-colour,#1d70b8)}
@media print{
  .govuk-header{font-family:sans-serif;font-size:14pt;line-height:1}
}
.govuk-header__container--full-width{padding:0 15px}
.govuk-header__logo{box-sizing:border-box;padding-top:16px;padding-bottom:12px}
.govuk-header__homepage-link{display:inline;margin-right:10px;font-size:30px;text-decoration:none;word-spacing:-.375rem}
.govuk-header__homepage-link>*{word-spacing:0}
.govuk-header__homepage-link:link,.govuk-header__homepage-link:visited{color:#fff;text-decoration:none}
.govuk-header__homepage-link:active,.govuk-header__homepage-link:hover{margin-bottom:-3px;border-bottom:3px solid}
.govuk-header__homepage-link:hover{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:.1578em}
.govuk-header__homepage-link:focus{margin-bottom:0;border-bottom:0;outline:3px solid transparent;color:var(--govuk-focus-text-colour,#0b0c0c);background-color:var(--govuk-focus-colour,#fd0);box-shadow:0 -2px var(--govuk-focus-colour,#fd0),0 4px var(--govuk-focus-text-colour,#0b0c0c);text-decoration:none}
@supports not (text-wrap:balance){
  .govuk-header__homepage-link:focus{-webkit-box-decoration-break:clone;box-decoration-break:clone}
}
.govuk-header__homepage-link:not(:focus){background-color:var(--govuk-brand-colour,#1d70b8)}
.govuk-header__logotype{display:inline-block;position:relative;top:-3px;margin-right:.4375rem;margin-bottom:2px;fill:currentcolor;vertical-align:top}
@media (forced-colors:active){
  .govuk-header__logotype{forced-color-adjust:none;color:linktext}
}
.govuk-header__logotype:last-child{margin-right:0}
.govuk-logo-dot{fill:#00ffe0}
@media print{
  .govuk-logo-dot{fill:currentcolor}
}
@media (forced-colors:active){
  .govuk-logo-dot{fill:currentcolor}
}
:focus .govuk-logo-dot{fill:currentcolor}
@media print{
  .govuk-header{border-bottom-width:0;color:#0b0c0c;background:transparent}
  .govuk-header__homepage-link:link,.govuk-header__homepage-link:visited{color:#0b0c0c}
  .govuk-header__homepage-link:after{display:none}
}

/* Reset base header float and spacing. Keep the 3.0.0 base margin-bottom:-10px
   (it offsets the header height); zeroing it lets the blue masthead grow 10px. */
.govuk-header__logo{float:none;width:auto;padding-right:0}
.govuk-header__container{margin-bottom:-10px;padding-top:0;border-bottom:0}
.govuk-header{border-bottom:0}

.global-banner {
	background-color: #bbd4ea;
}

.global-banner .govuk-warning-text {
	margin: 0;
	padding: 10px 0;
	position: relative;
}

.global-banner .govuk-warning-text--inverted .govuk-warning-text__text {
	color: #000 !important;
}

.global-banner .govuk-warning-text__text {
	display: block;
	padding-left: 50px;
}

.global-banner .govuk-warning-text__icon {
	box-sizing: content-box;
	top: 50%;
	min-width: 32px;
	min-height: 29px;
	margin-top: -20px;
	padding-top: 3px;
	border: 3px solid #000;
	background-color: #000 !important;
	color: #fff;
	font-size: 1.6em;
	line-height: 29px;
}

.global-banner .govuk-link {
	font-weight: inherit;
	text-decoration-thickness: max(1px, 0.0625rem);
	text-underline-offset: 0.1578em;
}

/* Hide the legacy mobile hamburger; the service navigation provides the mobile menu. */
#mobile-menu-header {
	display: none;
}

/* Footer — v6.1 rules layered over the 3.0.0 base. #govuk-footer scoping wins
   specificity; the blue top border + colours come from the scoped block below. */
.govuk-footer__crown {
	margin-bottom: 25px;
}

/* Footer crest — v6.1 :before mechanism (govuk-crest.svg), replacing the
   3.0.0 element-background crest so the copyright item height matches. */
#govuk-footer .govuk-footer__copyright-logo {
	display: inline;
	min-width: 0;
	padding-top: 0;
	background-image: none;
}
#govuk-footer .govuk-footer__copyright-logo:before {
	content: "";
	display: block;
	width: 100%;
	padding-top: 112px;
	background-image: url("/libraries/base-noticing/images/govuk-crest.svg");
	background-repeat: no-repeat;
	background-position: 50% 0;
	background-size: 125px 102px;
	text-align: center;
	white-space: nowrap;
}

/* Footer links + border (scoped to #govuk-footer). */
#govuk-footer.govuk-footer {
	border-top: 10px solid #1d70b8;
	background-color: #f4f8fb;
	font-size: 1.1875rem;
	line-height: 1.3157894737;
	padding-top: 25px;
	padding-bottom: 15px;
}
/* Footer padding at tablet+ (v6.1). */
@media (min-width: 40.0625em) {
	#govuk-footer.govuk-footer {
		padding-top: 40px;
		padding-bottom: 25px;
	}
}
/* v6.1 meta layout: bottom-align + centre items (3.0.0 base omits these). */
#govuk-footer .govuk-footer__meta {
	align-items: flex-end;
	justify-content: center;
}
/* Footer links: aligned column grid — 1 (mobile) / 2 (tablet) / 3 (desktop). */
#govuk-footer .govuk-footer__inline-list {
	display: grid;
	grid-template-columns: auto;
	justify-content: start;
	column-gap: 15px;
	row-gap: 5px;
}
#govuk-footer .govuk-footer__inline-list-item {
	margin: 0;
}
@media (min-width: 40.0625em) {
	#govuk-footer .govuk-footer__inline-list {
		grid-template-columns: repeat(2, auto);
	}
}
@media (min-width: 48.0625em) {
	#govuk-footer .govuk-footer__inline-list {
		grid-template-columns: repeat(3, auto);
	}
}
#govuk-footer .govuk-footer__inline-list:last-child,
#govuk-footer .govuk-footer__meta-custom:last-child {
	margin-bottom: 0;
}
#govuk-footer .govuk-footer__link {
	text-decoration: underline;
	text-decoration-thickness: max(1px, 0.0625rem);
	text-underline-offset: 0.1578em;
	word-break: normal;
	overflow-wrap: normal;
}
#govuk-footer .govuk-footer__link:link {
	color: #1a65a6;
}
#govuk-footer .govuk-footer__link:visited {
	color: #54319f !important;
}
#govuk-footer .govuk-footer__link:hover {
	color: #0f385c;
}
#govuk-footer .govuk-footer__link:active {
	color: #0b0c0c;
}
/* Crown copyright logo colour. */
#govuk-footer .govuk-footer__copyright-logo:link,
#govuk-footer .govuk-footer__copyright-logo:visited {
	color: #0b0c0c !important;
}
/* Balance the OGL licence line. */
#govuk-footer .govuk-footer__licence-description {
	text-wrap: balance;
}
/* FTS "Notices..." line: match the v6.1/dotnet gap (custom class sets 15px).
   bottom margin trims the 3.0.0 base p (20px) to 19px so the grow column
   bottoms out level with dotnet, keeping the flex-end crest aligned. */
#govuk-footer .govuk-foooter-links-ted {
	margin-top: 19px;
	margin-bottom: 19px;
}
/* Keep the footer left-aligned at <=1020px (legacy style.css centres it). */
@media (max-width: 1020px) {
	#govuk-footer.govuk-footer,
	#govuk-footer.govuk-footer ul,
	#govuk-footer.govuk-footer h2 {
		text-align: left !important;
	}
}

/* Service navigation — verbatim from govuk-frontend v6.1 (v6 replaced the
   in-header nav with this component). Mobile "Menu" toggle: service-navigation.js. */
.govuk-service-navigation {font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:1.1875rem;line-height:1.3157894737;border-bottom:1px solid var(--govuk-surface-border-colour,#8eb8dc);color:var(--govuk-surface-text-colour,#0b0c0c);background-color:var(--govuk-surface-background-colour,#f4f8fb)}
@media print{
  .govuk-service-navigation {font-family:sans-serif;font-size:14pt;line-height:1.15}
}
.govuk-service-navigation__container {display:flex;flex-direction:column;align-items:start}
@media (min-width:40.0625em){
  .govuk-service-navigation__container {flex-direction:row;flex-wrap:wrap}
}
.govuk-service-navigation__item,.govuk-service-navigation__service-name {position:relative;margin:10px 0;border-width:0;border-style:solid;border-color:var(--govuk-link-colour,#1a65a6)}
@media (min-width:40.0625em){
  .govuk-service-navigation__item,.govuk-service-navigation__service-name {display:inline-block;margin-top:0;margin-bottom:0;padding:15px 0;line-height:1.5263157895}
  .govuk-service-navigation__item:not(:last-child),.govuk-service-navigation__service-name:not(:last-child) {margin-right:20px}
}
@media (min-width:40.0625em) and (min-width:40.0625em){
  .govuk-service-navigation__item:not(:last-child),.govuk-service-navigation__service-name:not(:last-child) {margin-right:30px}
}
.govuk-service-navigation__service-name+.govuk-service-navigation__wrapper .govuk-service-navigation__list:first-child .govuk-service-navigation__item:first-child,.govuk-service-navigation__service-name+.govuk-service-navigation__wrapper .govuk-service-navigation__toggle[hidden]+.govuk-service-navigation__list .govuk-service-navigation__item:first-child {margin-top:0}
@media (max-width:40.0525em){
  .govuk-service-navigation__item--active {margin-left:-15px;padding-left:10px;border-left-width:5px}
}
@media (min-width:40.0625em){
  .govuk-service-navigation__item--active {padding-bottom:10px;border-bottom-width:5px}
}
.govuk-service-navigation__link {font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:underline;text-decoration-thickness:max(1px,.0625rem);text-underline-offset:.1578em}
@media print{
  .govuk-service-navigation__link {font-family:sans-serif}
}
.govuk-service-navigation__link:hover {text-decoration-thickness:max(3px,.1875rem,.12em);-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;-webkit-text-decoration-skip:none;text-decoration-skip:none}
.govuk-service-navigation__link:focus {outline:3px solid transparent;background-color:var(--govuk-focus-colour,#fd0);box-shadow:0 -2px var(--govuk-focus-colour,#fd0),0 4px var(--govuk-focus-text-colour,#0b0c0c);text-decoration:none}
@supports not (text-wrap:balance){
  .govuk-service-navigation__link:focus {-webkit-box-decoration-break:clone;box-decoration-break:clone}
}
.govuk-service-navigation__link:not(:hover):not(:active) {text-decoration:none}
.govuk-service-navigation__link:link,.govuk-service-navigation__link:visited {color:var(--govuk-link-colour,#1a65a6)}
.govuk-service-navigation__link:hover {color:var(--govuk-link-hover-colour,#0f385c)}
.govuk-service-navigation__link:active {color:var(--govuk-link-active-colour,#0b0c0c)}
.govuk-service-navigation__link:focus {color:var(--govuk-focus-text-colour,#0b0c0c)}
.govuk-service-navigation__service-name {font-weight:700}
.govuk-service-navigation__service-name .govuk-service-navigation__link:active,.govuk-service-navigation__service-name .govuk-service-navigation__link:link,.govuk-service-navigation__service-name .govuk-service-navigation__link:visited {color:var(--govuk-text-colour,#0b0c0c)}
.govuk-service-navigation__service-name .govuk-service-navigation__link:focus {color:var(--govuk-focus-text-colour,#0b0c0c)}
.govuk-service-navigation__wrapper {flex-grow:1}
.govuk-service-navigation__toggle {font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:1.1875rem;line-height:1.3157894737;display:inline-flex;margin:10px 0;padding:0;border:0;color:var(--govuk-link-colour,#1a65a6);background:none;word-break:break-all;cursor:pointer;align-items:center}
@media print{
  .govuk-service-navigation__toggle {font-family:sans-serif;font-size:14pt;line-height:1.15}
}
.govuk-service-navigation__toggle:focus {outline:3px solid transparent;color:var(--govuk-focus-text-colour,#0b0c0c);background-color:var(--govuk-focus-colour,#fd0);box-shadow:0 -2px var(--govuk-focus-colour,#fd0),0 4px var(--govuk-focus-text-colour,#0b0c0c);text-decoration:none}
@supports not (text-wrap:balance){
  .govuk-service-navigation__toggle:focus {-webkit-box-decoration-break:clone;box-decoration-break:clone}
}
.govuk-service-navigation__toggle:after {display:inline-block;width:0;height:0;-webkit-clip-path:polygon(0 0,50% 100%,100% 0);clip-path:polygon(0 0,50% 100%,100% 0);border-color:transparent;border-style:solid;border-width:8.66px 5px 0;border-top-color:inherit;content:"";margin-left:5px}
.govuk-service-navigation__toggle[aria-expanded=true]:after {display:inline-block;width:0;height:0;-webkit-clip-path:polygon(50% 0,0 100%,100% 100%);clip-path:polygon(50% 0,0 100%,100% 100%);border-color:transparent;border-style:solid;border-width:0 5px 8.66px;border-bottom-color:inherit}
.govuk-service-navigation__toggle[hidden] {display:none}
.govuk-service-navigation__service-name+.govuk-service-navigation__wrapper .govuk-service-navigation__toggle {margin-top:0}
.govuk-service-navigation__list {margin:0 0 15px;padding:0;list-style:none}
@media (min-width:40.0625em){
  .govuk-service-navigation__list {display:flex;flex-wrap:wrap;margin-bottom:0}
}
.govuk-service-navigation__active-fallback {font-weight:inherit}

/* Language switcher — FTS-specific (not part of v6.1); top-right of the nav row. */
.govuk-service-navigation__container {
	position: relative;
}

.languageSwitch {
	position: absolute;
	top: 30%;
	right: 0;
}

.languageSwitch li {
	border-left: 1px solid #b1b4b6;
	padding: 0 8px;
	display: inline;
}

.languageSwitch li:first-child {
	border: 0;
}

.language-toggle[aria-current="page"] {
	color: #0b0c0c;
	font-weight: 400;
	text-decoration: none;
}

/* Language link underline: use the browser/govuk default (home.css thins + lowers it on the homepage). */
.languageSwitch .language-toggle {
	text-decoration-thickness: auto;
	text-underline-offset: auto;
}

/* Home / non-GDS pages render the Beta tag as .nav-bar-icon.govuk-beta — match the v6.1 tag size/weight. */
.nav-bar-icon.govuk-beta {
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.25;
	padding: 2px 8px 3px;
	border-radius: 1px;
	text-transform: none;
}

.gem-c-feedback__prompt.user-research-banner,
.gds-banner.user-research-banner {
	background-color: #1d70b8;
	color: #fff;
	margin: 0;
	padding: 10px 0 0;
}

@media (min-width: 40.0625em) {
	.gem-c-feedback__prompt.user-research-banner,
	.gds-banner.user-research-banner {
		display: table;
		width: 100%;
	}
}

.user-research-banner p {
	color: #fff;
	margin-bottom: 19px;
}

.user-research-banner .banner-heading {
	font-weight: 700;
}

.user-research-banner .govuk-link--inverse,
.user-research-banner .govuk-link--inverse:link,
.user-research-banner .govuk-link--inverse:visited,
.user-research-banner .banner-close {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.1em;
}

.user-research-banner .govuk-link--inverse:hover,
.user-research-banner .banner-close:hover {
	text-decoration-thickness: max(3px, 0.1875rem, 0.12em);
}

.user-research-banner .banner-close {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.govuk-cookie-banner {
	background-color: #f3f2f1;
	border-bottom: 10px solid transparent;
	font-size: 19px;
	line-height: 25px;
	padding-top: 20px;
}

.govuk-cookie-banner .govuk-cookie-banner__message {
	margin-bottom: -10px;
}

.govuk-cookie-banner .govuk-grid-row {
	margin-right: -15px;
	margin-left: -15px;
}

.govuk-cookie-banner .govuk-grid-column-two-thirds {
	box-sizing: border-box;
	float: left;
	width: 66.6666%;
	padding: 0 15px;
}

.govuk-cookie-banner .govuk-cookie-banner__content p {
	margin-top: 19px;
	margin-bottom: 19px;
	font-size: 19px;
	line-height: 25px;
}

.govuk-cookie-banner .govuk-button-group {
	align-items: baseline;
	margin-bottom: 15px;
}

.govuk-cookie-banner .govuk-button-group .govuk-button {
	margin-bottom: 17px;
}

.govuk-cookie-banner .govuk-button-group .govuk-link {
	margin-top: 5px;
	margin-bottom: 20px;
}

#standard-holder {
	margin-top: 0;
}

#nav-bar.govuk-phase-banner.header-banner {
	border-top: 0;
	border-bottom: 1px solid #1d70b8;
	display: block;
	height: auto;
	line-height: normal;
	padding: 0;
}

#nav-bar.govuk-phase-banner.header-banner > .govuk-width-container {
	box-sizing: border-box;
	min-height: 40px;
	padding-top: 10px;
	padding-bottom: 10px;
	line-height: normal;
}

#nav-bar.govuk-phase-banner.header-banner .govuk-phase-banner__content {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.25;
}

#nav-bar.govuk-phase-banner.header-banner .govuk-phase-banner__text {
	vertical-align: middle;
	padding-left: 10px;
}

#nav-bar.govuk-phase-banner.header-banner .header-item {
	margin: 0;
}

#nav-bar.govuk-phase-banner.header-banner .clear {
	clear: both;
}

.govuk-header .govuk-link,
.govuk-service-navigation .govuk-link,
.global-banner .govuk-link,
.user-research-banner .govuk-link,
.user-research-banner .govuk-link--inverse,
.user-research-banner .govuk-link--inverse:link,
.user-research-banner .govuk-link--inverse:visited,
#nav-bar.govuk-phase-banner.header-banner .govuk-link {
	text-decoration-thickness: max(1px, 0.0625rem);
	text-underline-offset: 0.1578em;
}

#standard-holder > #header + .canvas #body-inner-canvas > .standard-breadcrumbs {
	margin-top: 14px;
}

@media (max-width: 40.0525em) {
	#nav-bar.govuk-phase-banner.header-banner > .govuk-width-container {
		min-height: 72px;
	}
}

/* Rebrand phase-banner tag (govuk-frontend v6.1): light-blue instead of the legacy
   dark-blue tag. text-transform:none so "Beta" renders mixed-case, not "BETA". */
.govuk-phase-banner__content__tag {
	background-color: #d2e2f1;
	color: #0f385c;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.25;
	margin-top: -2px;
	margin-bottom: -3px;
	margin-right: 0;
	padding: 2px 8px 3px;
	text-transform: none;
	letter-spacing: 0;
	border-radius: 1px;
}
