@font-face {
  font-family: "GDS Transport";
  src: url("../fonts/gds-transport.woff2") format("woff2");
}

@font-face {
  font-family: "GDS Transport";
  src: url("../fonts/gds-transport-bold.woff2") format("woff2");
  font-weight: 700;
}

:root {
  --edge-padding: 20%;
}

html,
body,
input {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "GDS Transport", arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-underline-offset: 0.1578em;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  min-height: 50px;
  padding-left: var(--edge-padding);
  padding-right: var(--edge-padding);
  display: flex;
  align-items: center;
  background-color: #1d70b8;
}

header a {
  color: #ffffff;
}

.header {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-left: var(--edge-padding);
  padding-right: var(--edge-padding);
  background-color: #f4f8fb;
}

.header > svg {
  padding: 10px 0;
  border-bottom: 3px solid transparent;
}

.header > svg:hover {
  border-bottom: 3px solid #ffffff;
  cursor: pointer;
}

.header > p {
  color: #000000;
  font-weight: bold;
}

.header > a {
  color: #1d70b8;
}

.header > p {
  text-wrap: nowrap;
}

@media (max-width: 80rem) {
  .header > a {
    display: none;
  }
}

#header-container {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  font-weight: 700;
}

.govuk-logo-dot {
  fill: #00ffe0;
}

#links-container {
  height: 100%;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 80rem) {
  #links-container {
    display: none;
  }
}

.link {
  all: unset;
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: inset 0 4px 0 0 transparent, inset 0 -4px 0 0 transparent;
  transition: box-shadow 0.1s ease, color 0.1s ease;
}

.link:hover {
  box-shadow: inset 0 4px 0 0 transparent, inset 0 -4px 0 0 #ffffff;
}

#page-header {
  display: none;
  flex-direction: column;
  padding-left: var(--edge-padding);
  padding-right: var(--edge-padding);
}

#page-header.index {
  background-color: #d2e2f1;
  margin-bottom: 2rem;
}

#page-header:not(.index) {
  background-color: #ffffff;
}

#page-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 2rem 0;
}

@media (max-width: 74em) {
  #page-title {
    font-size: 2rem;
  }
}

#subproject-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 3rem;
}

#subproject {
  font-size: 1.5rem;
}

main {
  display: flex;
  align-items: flex-start;
  max-width: 980px;
  padding-left: var(--edge-padding);
  padding-right: var(--edge-padding);
}

main.index .local-toc {
  display: none;
}

#main-content {
  width: 100%;
  box-sizing: border-box;
  padding-top: 2rem;
}

#search-results > h2 {
  margin-top: 0;
}

.global-toc > ul {
  padding-left: 0;
}

.global-toc a {
  color: #505a5f;
  text-decoration: none;
  font-size: 1.15rem;
}

.caption-text a {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #000000;
  margin-top: 0;
}

.toc-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toc-container,
.toc-subitems {
  border-bottom: 1px solid #ddd;
  padding: 1.5rem 0;
}

.toc-toggle {
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  color: #1d70b8;
  font-size: 1rem;
  padding: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  aspect-ratio: 1 / 1;
}

.toc-toggle:hover {
  color: #003078;
  background: #f3f2f1;
  box-shadow: 0 -2px #f3f2f1, 0 4px #f3f2f1;
}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid #1d70b8;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-weight: bolder;
}

.toc-header {
  cursor: pointer;
  color: #1d70b8;
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration-thickness: max(1px, 0.0625rem);
}

.toc-section a:hover {
  color: #003078;
  text-decoration-thickness: max(3px, 0.1875rem, 0.12em);
}

.toc-subitems {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;

  transition: max-height var(--duration, 0.6s) ease,
    opacity var(--duration, 0.6s) ease, padding var(--duration, 0.6s) ease,
    margin var(--duration, 0.6s) ease;
}

.toc-subitems.expanded {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  max-height: 500px;
  opacity: 1;
}

.page-link {
  background-color: red;
}

#route-container {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 1.5rem;
}

.route-item {
  all: unset;
  text-decoration: underline;
}

.route-item:hover {
  text-decoration-thickness: 3px;
  cursor: pointer;
}

.route-divider {
  content: "";
  display: block;
  width: 0.4375em;
  height: 0.4375em;
  margin: auto 0;
  transform: rotate(45deg);
  border: solid;
  border-width: 1px 1px 0 0;
  border-color: #505a5f;
}

main section {
  font-size: 1.1875rem;
}

main section > h1 {
  margin-top: 0;
  font-size: 3rem;
  font-weight: 700;
}

main section > h2 {
  font-size: 1.6875rem;
  font-weight: 700;
  margin-top: 48px;
}

.headerlink {
  display: none;
}

.admonition {
  padding: 2px 0 2px 20px;
}

.admonition-title {
  display: none;
}

.admonition.note {
  border-left: 10px solid #b1b4b6;
}

.admonition.danger {
  border-left: 10px solid #e74c3c;
}

a {
  color: #1d70b8;
}

code {
  background-color: #f5f5f5;
  color: #d63384;
  font-family: Consolas, Monaco, "Courier New", monospace;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.95em;
}

.highlight {
  padding: 24px;
  background: rgb(249, 248.5, 248) !important;
  overflow-x: scroll;
}

.button-container {
  font-weight: 400;
  font-size: 1.1875rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 8px 10px 7px;
  margin-bottom: 22px;
  border: 2px solid rgba(0, 0, 0, 0);
  border-radius: 0;
  text-align: center;
  vertical-align: top;
  cursor: pointer;
  -webkit-appearance: none;
  width: max-content;
}

.button-container.primary {
  color: #fff;
  background-color: #00703c;
  box-shadow: 0 2px 0 rgb(0, 44.8, 24);
}

.button-container.primary:hover {
  background-color: rgb(0, 89.6, 48);
}

.button-container.secondary {
  color: #0b0c0c;
  background-color: #f3f2f1;
  box-shadow: 0 2px 0 #929191;
}

.button-container.secondary:hover {
  background-color: #dbdad9;
}

button {
  all: unset;
}

.sphinx-tabs button {
  cursor: pointer;
}

table caption {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: start;
  margin: 15px 0;
}

table thead,
table tbody {
  font-size: 1.1875rem;
  line-height: 1.3157894737;
}

table th {
  text-align: left;
  vertical-align: top;
}

table th,
table tbody td {
  border-bottom: 1px solid #b1b4b6;
}

table p {
  margin: 0;
  padding: 10px 20px 10px 0;
}

#version-container {
  color: #0c2d4a;
  background-color: #bbd4ea;
  padding: 2px 8px 3px;
  font-size: 0.875rem;
  width: max-content;
}

#version-container > p {
  margin: 0;
}

[id] {
  scroll-margin-top: 1.5rem;
}

footer {
  border-top: 10px solid #1d70b8;
  color: #0b0c0c;
  background: #f4f8fb;
  margin-top: auto;
  padding: 3rem;
  display: flex;
  justify-content: center;
}

.footer-content {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-meta {
  height: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 1rem;
}

.footer-meta-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  all: unset;
  text-decoration: underline;
  text-decoration-thickness: max(1px, 0.0625rem);
  text-underline-offset: 0.1578em;
  text-align: center;
  padding-top: 2rem;
}

.footer-logo:hover {
  cursor: pointer;
  text-decoration-thickness: 3px;
}

.footer-logo::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 112px;
  text-align: center;
  white-space: nowrap;
  background: currentcolor;
  -webkit-mask-image: url(../images/footer-logo.svg);
  mask-image: url(../images/footer-logo.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 50% 0;
  mask-position: 50% 0;
  -webkit-mask-size: 125px 102px;
  mask-size: 125px 102px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  cursor: pointer;
}

.footer-links a {
  text-decoration: underline;
  color: #000000;
}

.footer-links a:hover {
  text-decoration-thickness: 3px;
}

.notification-container {
  color: #ffffff;
  border: 5px solid #1d70b8;
  background-color: #1d70b8;
  font-weight: 700;
}

.notification-container > p {
  font-size: 1.1875rem;
  margin: 0.5rem 1rem;
}

.notification-content {
  font-size: 1.5rem;
  color: #000000;
  background-color: #ffffff;
  padding: 20px;
}

.button-nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: 5rem 0;
}

img {
  margin: 2rem 0;
}

img.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.app-site-search__wrapper {
  margin-left: auto;
  display: flex;
  height: 100%;
  min-width: 2rem;
}

.app-site-search__wrapper > form {
  height: 100%;
  width: 100%;
  padding: 0.25rem 0;
  box-sizing: border-box;
}

.app-site-search__wrapper input {
  padding: 0 8px;
  height: 100%;
  width: 100%;
  font-size: 1.25rem;
}

.app-site-search__wrapper input:focus {
  outline: 3px solid #fd0;
  outline-offset: 0;
}

@media (max-width: 80rem) {
  .app-site-search__wrapper {
    width: 100%;
  }
}

@media (max-width: 30rem) {
  .app-site-search__wrapper {
    display: none;
  }
}

main:has(.search) h2 {
  font-size: 3rem;
}

.highlighted {
  background-color: #fd0;
}

.spacer {
  min-height: 3rem;
}

figure {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
}

figure > a {
  display: contents;
}

figcaption p {
  margin-bottom: 0;
}

figure img {
  margin: 0.5rem 0 2rem;
}

.caption-number {
  padding-right: 1rem;
}

.sidebar {
  position: sticky;
  top: 0;
  padding-top: 2rem;
  padding-right: 6rem;
}

.sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar ul li {
  list-style: none;
}

.sidebar ul li ul {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (max-width: 80rem) {
  .sidebar {
    display: none;
  }
}

.local-toc > ul > li a {
  text-decoration: none;
}

.sidebar .local-toc > ul > li > a {
  color: #505a5f;
  font-size: 1.3rem;
  font-weight: 400;
}

.local-toc > ul > li > ul > li > a:hover {
  color: #003078;
}

#contents {
  display: none;
}

.nested-localtoc {
  padding-left: 2rem;
  color: red;
}

.nested-localtoc a {
  color: #1d70b8;
  font-size: 1rem;
}

main[class^="shared"] > .sidebar {
  display: none;
}

.govuk-tag {
  color: #0c2d4a;
  background-color: #bbd4ea;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  width: min-content;
  font-size: 1.185rem;
}

.govuk-tag > p {
  margin: 0;
}
