#global-header .header-wrapper:after,
#global-header .header-wrapper .header-global:after,
#global-header .header-wrapper .header-global .header-logo:after,
#global-header .header-proposition #proposition-link:after,
#global-header .header-proposition #proposition-links:after,
#footer .footer-meta:after {
  content: "";
  display: block;
  clear: both;
}

#global-header-bar,
#global-cookie-message p,
#footer .footer-wrapper {
  max-width: 960px;
  margin: 0 15px;
}

@media (min-width: 641px) {
  #global-header-bar,
  #global-cookie-message p,
  #footer .footer-wrapper {
    margin: 0 30px;
  }
}

@media (min-width: 1020px) {
  #global-header-bar,
  #global-cookie-message p,
  #footer .footer-wrapper {
    margin: 0 auto;
  }
}

#global-header .header-wrapper:after,
#global-header .header-wrapper .header-global:after,
#global-header .header-wrapper .header-global .header-logo:after,
#global-header .header-proposition #proposition-link:after,
#global-header .header-proposition #proposition-links:after,
#footer .footer-meta:after {
  content: "";
  display: block;
  clear: both;
}

@-ms-viewport {
  width: device-width;
}

html,
body,
button,
input,
table,
td,
th {
  font-family: 'Noto Sans', sans-serif;
}

html,
body,
div,
h1,
h2,
h3,
h4,
h5,
h6,
article,
aside,
footer,
header,
hgroup,
nav,
section {
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

main {
  display: block;
}

.group:before,
.group:after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}

.group:after {
  clear: both;
}

.group {
  zoom: 1;
}

.content-fixed {
  top: 0;
  position: fixed;
}

.shim {
  display: block;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  background-color: #dee0e2;
}

html {
  -ms-overflow-style: scrollbar;
}

body {
  background: white;
  color: #0b0c0c;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ol,
ul,
nav ol,
nav ul {
  list-style: inherit;
}

fieldset {
  border: none;
  padding: 0;
}

a:link {
  color: #005ea5;
}

a:visited {
  color: #4c2c92;
}

a:hover {
  color: #2b8cc4;
}

a:active {
  color: #2b8cc4;
}

html {
  font-size: 62.5%;
  overflow-y: scroll;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
  font-size: 160%;
  margin: 0;
}

b,
strong {
  font-weight: 600;
}

img {
  border: 0;
}

abbr[title] {
  cursor: help;
}

input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button;
  margin-right: 2px;
}

input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.ir {
  display: block;
  text-indent: -999em;
  overflow: hidden;
  background-repeat: no-repeat;
  text-align: left;
  direction: ltr;
}

.ir br {
  display: none;
}

.hidden,
.js-enabled .js-hidden {
  display: none;
  visibility: hidden;
}

.visually-hidden,
.visuallyhidden {
  position: absolute;
  left: -9999em;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus,
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

.invisible {
  visibility: hidden;
}

a {
  -webkit-tap-highlight-color: rgba(0,0,0,0.3);
}

a:focus {
  background-color: #ffdd00;
  outline: 3px solid #ffdd00;
}

a:link:focus {
  color: #005798;
}

.skiplink {
  position: absolute;
  left: -9999em;
}

.skiplink:focus,
.skiplink:visited {
  color: #0b0c0c;
}

.skiplink:focus {
  left: 0;
  z-index: 1;
}

#skiplink-container {
  text-align: center;
  background: #0b0c0c;
}

#skiplink-container div {
  text-align: left;
  margin: 0 auto;
  max-width: 1020px;
}

#skiplink-container .skiplink {
  display: -moz-inline-stack;
  display: inline-block;
  margin: 0.75em 0 0 30px;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
}

#global-header input[type=search]:focus {
  outline: 3px solid #ffdd00;
  outline-offset: -2px;
}

#global-header h1 a:focus {
  background-color: transparent;
  outline: none;
}

#global-header a:focus {
  color: #0b0c0c;
}

#global-header .header-wrapper:after,
#global-header .header-wrapper .header-global:after,
#global-header .header-wrapper .header-global .header-logo:after,
#global-header .header-proposition #proposition-link:after,
#global-header .header-proposition #proposition-links:after,
#footer .footer-meta:after {
  content: "";
  display: block;
  clear: both;
}

#global-header {
  background-color: #0b0c0c;
  width: 100%;
}

#global-header .header-wrapper {
  background-color: #0b0c0c;
  max-width: 990px;
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (min-width: 641px) {
  #global-header .header-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
}

#global-header .header-wrapper .header-global .header-logo {
  float: left;
}

@media (min-width: 769px) {
  #global-header .header-wrapper .header-global .header-logo {
    width: 33.33%;
  }
}

@media screen and (max-width: 379px) {
  #global-header .header-wrapper .header-global .header-logo {
    width: auto;
    float: none;
  }
}

#global-header .header-wrapper .header-global .header-logo .content {
  margin: 0 15px;
}

#global-header .header-wrapper .header-global .header-logo {
  margin-top: 2px;
}

@media (min-width: 769px) {
  #global-header.with-proposition .header-wrapper .header-global {
    float: left;
    width: 33.33%;
  }

  #global-header.with-proposition .header-wrapper .header-global .header-logo,
  #global-header.with-proposition .header-wrapper .header-global .site-search {
    width: 100%;
  }
}

@media (min-width: 769px) {
  #global-header.with-proposition .header-wrapper .header-proposition {
    width: 66.66%;
    float: left;
  }
}

#global-header.with-proposition .header-wrapper .header-proposition .content {
  margin: 0 15px;
}

#global-header #logo {
  float: left;
  overflow: visible;
  color: white;
  font-weight: bold;
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
  text-rendering: optimizeLegibility;
  border-bottom: 1px solid transparent;
  background: url("/static/images/govforms-logo.png?0.24.0") no-repeat;
  background-size: 36px 32px;
  background-position: 0 0;
}

#global-header #logo img {
  margin: 2px 1px 0 0;
  vertical-align: bottom;
  visibility: hidden;
}

#global-header #logo:hover,
#global-header #logo:focus {
  text-decoration: none;
  border-bottom-color: white;
}

#global-header .header-proposition {
  padding-top: 10px;
}

@media (min-width: 769px) {
  #global-header .header-proposition {
    padding-top: 0;
  }
}

#global-header .header-proposition #proposition-name {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 18px;
  line-height: 1.2;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

@media (min-width: 641px) {
  #global-header .header-proposition #proposition-name {
    font-size: 24px;
    line-height: 1.25;
  }
}

#global-header .header-proposition a#proposition-name:hover {
  text-decoration: underline;
}

#global-header .header-proposition a#proposition-name:focus {
  color: #0b0c0c;
}

#global-header .header-proposition a.menu {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  line-height: 1.14286;
  color: white;
  display: block;
  float: right;
  text-decoration: none;
  padding-top: 6px;
}

@media (min-width: 641px) {
  #global-header .header-proposition a.menu {
    font-size: 16px;
    line-height: 1.25;
  }
}

@media (min-width: 769px) {
  #global-header .header-proposition a.menu {
    display: none;
  }
}

#global-header .header-proposition a.menu:hover {
  text-decoration: underline;
}

#global-header .header-proposition a.menu:after {
  display: inline-block;
  font-size: 8px;
  height: 8px;
  padding-left: 5px;
  vertical-align: middle;
  content: " \25BC";
}

#global-header .header-proposition a.menu.js-visible:after {
  content: " \25B2";
}

#global-header .header-proposition #proposition-menu {
  margin-top: 5px;
}

@media (min-width: 769px) {
  #global-header .header-proposition #proposition-menu.no-proposition-name {
    margin-top: 37px;
  }
}

#global-header .header-proposition #proposition-link,
#global-header .header-proposition #proposition-links {
  clear: both;
  margin: 2px 0 0 0;
  padding: 0;
}

.js-enabled #global-header .header-proposition #proposition-link,
.js-enabled #global-header .header-proposition #proposition-links {
  display: none;
}

@media (min-width: 769px) {
  .js-enabled #global-header .header-proposition #proposition-link,
  .js-enabled #global-header .header-proposition #proposition-links {
    display: block;
  }
}

.js-enabled #global-header .header-proposition #proposition-link.js-visible,
.js-enabled #global-header .header-proposition #proposition-links.js-visible {
  display: block;
}

#global-header .header-proposition #proposition-link li,
#global-header .header-proposition #proposition-links li {
  float: left;
  width: 50%;
  padding: 3px 0;
  border-bottom: 1px solid #2e3133;
}

@media (min-width: 769px) {
  #global-header .header-proposition #proposition-link li,
  #global-header .header-proposition #proposition-links li {
    display: block;
    width: auto;
    padding: 0 15px 0 0;
    border-bottom: 0;
  }

  #global-header .header-proposition #proposition-link li.clear-child,
  #global-header .header-proposition #proposition-links li.clear-child {
    clear: left;
  }
}

#global-header .header-proposition #proposition-link a,
#global-header .header-proposition #proposition-links a {
  color: white;
  text-decoration: none;
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: 12px;
  line-height: 1.25;
}

@media (min-width: 641px) {
  #global-header .header-proposition #proposition-link a,
  #global-header .header-proposition #proposition-links a {
    font-size: 14px;
    line-height: 1.42857;
  }
}

@media (min-width: 769px) {
  #global-header .header-proposition #proposition-link a,
  #global-header .header-proposition #proposition-links a {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    text-transform: none;
    font-size: 14px;
    line-height: 1.14286;
    line-height: 23px;
  }
}

@media (min-width: 769px) and (min-width: 641px) {
  #global-header .header-proposition #proposition-link a,
  #global-header .header-proposition #proposition-links a {
    font-size: 16px;
    line-height: 1.25;
  }
}

#global-header .header-proposition #proposition-link a:hover,
#global-header .header-proposition #proposition-links a:hover {
  text-decoration: underline;
}

#global-header .header-proposition #proposition-link a.active,
#global-header .header-proposition #proposition-links a.active {
  color: #1d8feb;
}

#global-header .header-proposition #proposition-link a:focus,
#global-header .header-proposition #proposition-links a:focus {
  color: #0b0c0c;
}

#global-header .header-proposition #proposition-link {
  float: right;
  line-height: 22px;
}

.js-enabled #global-header .header-proposition #proposition-link {
  display: block;
}

@media (min-width: 769px) {
  #global-header .header-proposition #proposition-link {
    float: none;
  }
}

#global-header-bar {
  height: 10px;
  background-color: #005ea5;
}

.js-enabled #global-cookie-message {
  display: none;
}

#global-cookie-message {
  width: 100%;
  background-color: #d5e8f3;
  padding-top: 10px;
  padding-bottom: 10px;
}

#global-cookie-message p {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  line-height: 1.14286;
  margin-top: 0;
  margin-bottom: 0;
}

@media (min-width: 641px) {
  #global-cookie-message p {
    font-size: 16px;
    line-height: 1.25;
  }
}

#footer {
  background-color: #dee0e2;
  border-top: 1px solid #a1acb2;
}

#footer .footer-wrapper {
  background-color: #dee0e2;
  padding-top: 20px;
}

@media (min-width: 641px) {
  #footer .footer-wrapper {
    padding-top: 60px;
  }
}

#footer a {
  color: #454a4c;
}

#footer a:hover {
  color: #171819;
}

#footer h2 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 18px;
  line-height: 1.2;
  font-weight: bold;
  color: #0b0c0c;
  margin: 0;
}

@media (min-width: 641px) {
  #footer h2 {
    font-size: 24px;
    line-height: 1.25;
  }
}

#footer h2 a {
  color: inherit;
}

#footer .footer-meta {
  padding-bottom: 60px;
  clear: both;
  font-size: 0;
  color: #454a4c;
}

#footer .footer-meta .footer-meta-inner {
  display: inline-block;
  vertical-align: bottom;
  width: 100%;
}

@media (min-width: 641px) {
  #footer .footer-meta .footer-meta-inner {
    width: 75%;
  }
}

#footer .footer-meta .footer-meta-inner ul {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  line-height: 1.5;
  display: inline-block;
  list-style: none;
  margin: 0 0 1.5em 0;
  padding: 0;
}

@media (min-width: 641px) {
  #footer .footer-meta .footer-meta-inner ul {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (min-width: 641px) {
  #footer .footer-meta .footer-meta-inner ul {
    margin: 0 0 1em 0;
  }
}

#footer .footer-meta .footer-meta-inner ul li {
  display: inline-block;
  margin: 0 15px 0 0;
}

#footer .footer-meta .footer-meta-inner .open-government-licence {
  clear: left;
  position: relative;
}

@media (min-width: 641px) {
  #footer .footer-meta .footer-meta-inner .open-government-licence {
    padding-left: 53px;
  }
}

#footer .footer-meta .footer-meta-inner .open-government-licence .logo {
  margin-bottom: 1em;
  padding-top: 0;
}

@media (min-width: 641px) {
  #footer .footer-meta .footer-meta-inner .open-government-licence .logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 41px;
    height: 100%;
  }
}

#footer .footer-meta .footer-meta-inner .open-government-licence .logo a {
  display: block;
  width: 41px;
  height: 17px;
  overflow: hidden;
  text-indent: -999em;
  background: url("/static/images/open-government-licence.png?0.24.0") 0 0 no-repeat;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
  #footer .footer-meta .footer-meta-inner .open-government-licence .logo a {
    background-image: url("/static/images/open-government-licence_2x.png?0.24.0");
    background-size: 41px 17px;
  }
}

#footer .footer-meta .footer-meta-inner .open-government-licence p {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  line-height: 1.14286;
  margin: 0;
  padding-top: 0.1em;
}

@media (min-width: 641px) {
  #footer .footer-meta .footer-meta-inner .open-government-licence p {
    font-size: 16px;
    line-height: 1.25;
  }
}

#footer .footer-meta .copyright {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  line-height: 1.14286;
  margin: 30px 0 0 0;
  width: 100%;
  display: block;
}

@media (min-width: 641px) {
  #footer .footer-meta .copyright {
    font-size: 16px;
    line-height: 1.25;
  }
}

@media (min-width: 641px) {
  #footer .footer-meta .copyright {
    display: inline-block;
    text-align: inherit;
    width: 25%;
    padding-top: 15px;
    margin-top: 0;
  }
}

#footer .footer-meta .copyright a {
  display: block;
  background-image: url("/static/images/govuk-crest.png?0.24.0");
  background-repeat: no-repeat;
  background-position: 50% 0%;
  text-align: center;
  text-decoration: none;
  padding: 115px 0 0 0;
}

@media (min-width: 641px) {
  #footer .footer-meta .copyright a {
    background-position: 100% 0%;
  }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
  #footer .footer-meta .copyright a {
    background-image: url("/static/images/govuk-crest-2x.png?0.24.0");
    background-size: 125px 102px;
  }
}

@media (min-width: 641px) {
  #footer .footer-meta .copyright a {
    text-align: right;
  }
}


/* Patches */

/* Assets Front End does not apply this rule
* GDS does and it is REQUIRED for DAC accessibility
 */
a:focus {
  color: #0b0c0c;
  background-color: 	#ffdd00;
  outline: 3px solid 	#ffdd00;
  outline-offset: 0;

  text-decoration: none;
  border-bottom: 4px solid #0b0c0c;

}
#global-header .header-proposition #proposition-links li a:focus,
#global-header #logo:focus {
  color: #0b0c0c;

  text-decoration: none;
  border-bottom: 4px solid #0b0c0c;
  display: inline-block;
}

textarea,
input[type="text"],
input[type="password"],
.form-control {
  padding: 5px 5px 5px 5px;
}

input:focus, textarea:focus, select:focus, tr:focus, #global-header input:focus {
  outline-offset: 0;
  outline: 4px solid #ffdd00;
  padding: 3px 3px 3px 3px;
  border: 4px solid #0b0c0c;
}
.form-control-error:focus, textarea.form-control-error:focus, input.form-control-error[type="text"]:focus, input.form-control-error[type="password"]:focus {
  padding: 5px 5px 5px 5px;
  border: 4px solid #0b0c0c;
}
.button:focus {
	border-color:#fd0;
	outline:3px solid transparent;
	-webkit-box-shadow:inset 0 0 0 1px #fd0;
	box-shadow:inset 0 0 0 1px #fd0
}
.button:focus:not(:active):not(:hover){
	border-color:#fd0;
	color:#0b0c0c;
	background-color:#fd0;
	-webkit-box-shadow:0 2px 0 #0b0c0c;
	box-shadow:0 2px 0 #0b0c0c
}

.heading-caption {
  margin-top: 1em;
  display: block;
  margin-bottom: 0;
  color: #6f777b;
}

.heading-caption + h1.h1-heading,
.heading-caption + form fieldset>legend>h1,
.heading-caption + form h1>label.h1-heading,
.heading-caption + form h1 {
  margin-top: 0;
}

.lookup {
  width: 100%;
}

.lookup input[type="text"] {
  width: 100%;
}

.autocomplete__wrapper {
  z-index: 1;
}

.autocomplete__option {
  font-family: "nta", Arial, sans-serif;
}
