/* Colours and type scale follow the GOV.UK Design System, checked against the live
   Supplier Registration service. This is not a GOV.UK site, so there is no crown, no
   GOV.UK logotype and no GDS Transport font: the font stack is the one GOV.UK
   recommends for services outside GOV.UK. */
:root {
  --black: #0b0c0c;
  --blue: #1d70b8;
  --blue-dark: #003078;
  --green: #00703c;
  --green-dark: #005a30;
  --green-shadow: #002d18;
  --grey-text: #505a5f;
  --grey-line: #b1b4b6;
  --grey-band: #f3f2f1;
  --surface: #f4f8fb;
  --yellow: #ffdd00;
  --red: #d4351c;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--grey-band); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--black);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: one container (content up to 1368px, the width ithc.org.uk uses) and one
   two-column grid, so every block shares the same edges. */
.container { max-width: 1398px; margin: 0 auto; padding: 0 15px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 30px; }
.col { max-width: 630px; }

h1, h2, h3, p, ul, ol, dl { margin-top: 0; }
h1 { font-size: 32px; line-height: 1.09375; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: 27px; line-height: 1.1111; font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 21px; line-height: 1.1905; font-weight: 700; margin-bottom: 15px; }
p, ul, ol { margin-bottom: 15px; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 5px; }
.lead { font-size: 21px; line-height: 1.1905; margin-bottom: 20px; }
.small { font-size: 14px; line-height: 1.4286; }
hr { margin: 15px 0 30px; border: 0; border-bottom: 1px solid var(--grey-line); }

a { color: var(--blue); text-decoration: underline; text-decoration-thickness: max(1px, .0625rem); text-underline-offset: .1578em; }
a:hover { color: var(--blue-dark); text-decoration-thickness: max(3px, .1875rem, .12em); text-decoration-skip-ink: none; }
a:focus { outline: 3px solid transparent; color: var(--black); background-color: var(--yellow); box-shadow: 0 -2px var(--yellow), 0 4px var(--black); text-decoration: none; }

.skip { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; display: block; padding: 10px 15px; }
.skip:focus { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; outline: 3px solid var(--yellow); outline-offset: 0; box-shadow: none; }

/* Buttons */
.btn {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 8px 10px 7px;
  border: 2px solid transparent;
  border-radius: 0;
  background-color: var(--green);
  box-shadow: 0 2px 0 var(--green-shadow);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1875;
  text-align: center;
  text-decoration: none;
  vertical-align: top;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { background-color: var(--green-dark); color: #fff; }
.btn:active { top: 2px; }
.btn:focus { border-color: var(--yellow); outline: 3px solid transparent; box-shadow: inset 0 0 0 1px var(--yellow); background-color: var(--green); color: #fff; }
.btn:focus:not(:active):not(:hover) { border-color: var(--yellow); background-color: var(--yellow); box-shadow: 0 2px 0 var(--black); color: var(--black); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-start { font-size: 18px; font-weight: 700; line-height: 1; }
.btn-small { width: auto; margin: 0; font-weight: 700; }

/* Header */
.hdr { background: var(--black); color: #fff; }
.hdr-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 30px; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
.hdr-name { color: #fff; font-size: 24px; font-weight: 700; line-height: 1.1; text-decoration: none; }
.hdr-name:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; }
.hdr-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 25px; margin: 0; padding: 0; list-style: none; }
.hdr-nav li { margin: 0; }
.hdr-nav .txt { display: none; }
.hdr-nav a:not(.btn) { color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.hdr-nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 3px; }
.hdr-nav a:not(.btn):focus { color: var(--black); }

.strip { background: var(--surface); border-bottom: 1px solid var(--grey-line); }
.strip p { margin: 0; padding: 10px 0; font-size: 14px; line-height: 1.4286; }

/* Hero */
.hero { background: var(--blue); color: #fff; padding: 30px 0 10px; }
.hero .lead { max-width: 30em; }
.hero a:not(.btn), .hero a:not(.btn):hover { color: #fff; }
.hero a:not(.btn):focus { color: var(--black); }
.hero-cols { margin: 10px 0 20px; }
.hero-cols > div { padding: 15px 0 0; border-top: 2px solid #fff; }
.hero-cols h2 { font-size: 21px; margin-bottom: 10px; }

/* Breadcrumbs sit inside the blue hero on every page below the home page. */
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; font-size: 14px; line-height: 1.4286; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 1px 6px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }

/* Bands */
.band { padding: 30px 0 15px; }
.band-rule { border-top: 1px solid var(--grey-line); }
ul.plain { padding: 0; list-style: none; }
.band-grey { background: var(--grey-band); }

.grid-2 + .grid-2, .grid-2 + .service { margin-top: 10px; }
.service { margin-bottom: 15px; padding-top: 15px; border-top: 1px solid var(--grey-line); }
.service h3 { margin-bottom: 10px; }

.summary { margin: 0 0 20px; }
.summary > div { margin-bottom: 15px; border-bottom: 1px solid var(--grey-line); }
.summary > div:first-child { border-top: 1px solid var(--grey-line); padding-top: 15px; }
.summary dt { margin-bottom: 5px; font-weight: 700; }
.summary dd { margin: 0 0 15px; }

/* Form */
.field { margin-bottom: 20px; }
label { display: block; margin-bottom: 5px; font-weight: 700; }
.optional { font-weight: 400; }
.hint { display: block; margin-bottom: 10px; color: var(--grey-text); }
input, select, textarea { width: 100%; height: 40px; margin: 0; padding: 5px; border: 2px solid var(--black); border-radius: 0; background: #fff; color: var(--black); font: inherit; }
input, textarea { -webkit-appearance: none; appearance: none; }
textarea { display: block; height: auto; min-height: 40px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; box-shadow: inset 0 0 0 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin-bottom: 30px; border: 5px solid var(--green); background: var(--green); }
.notice-title { margin: 0; padding: 2px 15px 5px; color: #fff; font-weight: 700; }
.notice-body { padding: 15px; background: #fff; }
.notice-body p { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3158; }
.error-box { margin-bottom: 30px; padding: 15px; border: 5px solid var(--red); }
.error-box h3 { margin-bottom: 15px; }
.error-box p { margin: 0; font-weight: 700; }
.notice:focus, .error-box:focus { outline: 3px solid var(--yellow); }

/* Footer */
.ftr { padding: 25px 0 15px; border-top: 1px solid var(--grey-line); background: var(--grey-band); font-size: 14px; line-height: 1.4286; }
.ftr a, .ftr a:hover { color: var(--black); }
.ftr h2 { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--grey-line); font-size: 21px; }
.ftr ul { margin: 0 0 25px; padding: 0; list-style: none; }
.ftr li { margin-bottom: 8px; }
.ftr .two-col { columns: 2; column-gap: 30px; }
.ftr .two-col li { break-inside: avoid; }
.ftr hr { margin: 0 0 20px; }
.ftr-meta { display: flex; flex-wrap: wrap; gap: 5px 20px; }
.ftr-legal p { margin-bottom: 10px; }

@media (min-width: 40.0625em) {
  body { font-size: 19px; line-height: 1.3158; }
  .container { max-width: 1428px; padding: 0 30px; }
  h1 { font-size: 48px; line-height: 1.0417; margin-bottom: 30px; }
  h2 { font-size: 36px; margin-bottom: 30px; }
  h3 { font-size: 24px; line-height: 1.25; margin-bottom: 20px; }
  p, ul, ol { margin-bottom: 20px; }
  .lead { font-size: 24px; line-height: 1.25; margin-bottom: 30px; }
  .small { font-size: 16px; line-height: 1.25; }
  hr { margin: 30px 0 60px; }
  .btn { width: auto; margin-bottom: 32px; font-size: 19px; line-height: 1; }
  .btn-start { font-size: 24px; }
  .btn-small { margin: 0; font-size: 16px; }
  .hdr-name { font-size: 30px; line-height: 1; }
  .strip p { font-size: 16px; line-height: 1.25; }
  .hero { padding: 50px 0 30px; }
  .crumbs ol { margin-bottom: 30px; font-size: 16px; line-height: 1.25; }
  .hero-cols h2 { font-size: 24px; }
  .band { padding: 60px 0 40px; }
  .service { margin-bottom: 30px; padding-top: 20px; }
  .field { margin-bottom: 30px; }
  .hint { margin-bottom: 15px; }
  .notice-body { padding: 20px; }
  .notice-body p { font-size: 24px; line-height: 1.25; }
  .error-box { padding: 20px; }
  .ftr { padding: 40px 0 25px; font-size: 16px; line-height: 1.25; }
  .ftr h2 { margin-bottom: 20px; padding-bottom: 20px; font-size: 24px; }
}

@media (min-width: 48.0625em) {
  .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hdr-nav .txt { display: block; }
  .hero-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 30px; }
  /* Columns are flex so the three links share a line even when the text above wraps differently. */
  .hero-cols > div { display: flex; flex-direction: column; padding: 0 25px; border-top: 0; border-left: 2px solid #fff; }
  .hero-cols > div > p:last-child { margin-top: auto; }
  .hero-cols > div:first-child { padding-left: 0; border-left: 0; }
  .hero-cols h2 { font-size: 27px; margin-bottom: 15px; }
  .hero-cols p { margin-bottom: 10px; }
  /* Rows use the same two columns as .grid-2, so the values start on the page's second column. */
  .summary > div, .summary > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 30px; margin: 0; padding: 15px 0; }
  .summary dt, .summary dd { margin: 0; }
  .ftr .two-col { columns: auto; }
}
