*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1.25rem;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #1c1916;
  background: #f6f3ec;
}

h1,
h2,
h3 {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: #0e4f42;
}

a:hover {
  color: #08382f;
}

:focus-visible {
  outline: 2px solid #0e4f42;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: #1c1916;
  color: #f6f3ec;
  text-decoration: none;
  transform: translateY(-150%);
  z-index: 2;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.site-header {
  border-bottom: 1px solid #d8d0c4;
  background: #f6f3ec;
}

.header-bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.brand {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.2rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 2px solid #0e4f42;
  outline-offset: 3px;
}

.primary-nav ul,
.legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a,
.legal-nav a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 0.45rem 0;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.legal-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4.5rem;
}

.narrow {
  max-width: 40rem;
}

.hero {
  max-width: 46rem;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #d8d0c4;
}

.lede {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.disclaimer {
  margin: 0;
  color: #5c564c;
  font-size: 0.98rem;
}

.portal-section {
  margin-top: 3rem;
}

.portal-section h2 {
  scroll-margin-top: 1rem;
}

.search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  max-width: 46rem;
}

.search input {
  flex: 1 1 14rem;
  min-width: 0;
}

.button,
button {
  display: inline-block;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  background: #0e4f42;
  color: #f6f3ec;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.button:hover,
button:hover {
  background: #08382f;
  color: #f6f3ec;
}

.search button {
  flex: 1 1 16rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d8d0c4;
  background: #fffdf8;
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #d8d0c4;
}

th {
  font-weight: 650;
  background: #ebe6dc;
}

tbody th {
  background: transparent;
  font-weight: 650;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

.note {
  margin-top: 0.85rem;
  color: #5c564c;
  font-size: 0.98rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  margin: 0;
  padding: 1.25rem 1.2rem 0.4rem;
  border: 1px solid #d8d0c4;
  background: #fffdf8;
}

.card p:last-child {
  margin-bottom: 1rem;
}

.faq {
  max-width: 42rem;
}

.faq h3 {
  margin-top: 1.4rem;
}

.entry + .entry {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #d8d0c4;
}

.role {
  margin: 0 0 0.4rem;
  color: #5c564c;
  font-weight: 600;
}

.entry article + article {
  margin-top: 1.5rem;
}

form:not(.search),
.stack {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

form:not(.search) button {
  justify-self: start;
  width: auto;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

legend {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0;
  margin: 0 0 0.25rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #b7ae9f;
  border-radius: 2px;
  background: #fffdf8;
  color: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.stack button,
form.stack button {
  justify-self: start;
  width: auto;
}

.contact-details {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid #d8d0c4;
  max-width: 40rem;
}

.contact-details dt {
  font-weight: 600;
  margin-top: 0.85rem;
}

.contact-details dd {
  margin: 0.15rem 0 0;
}

.cookie-policy {
  margin-top: 2.5rem;
  padding: 1.75rem 0 0.25rem;
  border-top: 2px solid #0e4f42;
  border-bottom: 1px solid #d8d0c4;
}

.switch {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  column-gap: 0.9rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid #d8d0c4;
  font-weight: 400;
}

.switch input {
  position: absolute;
  top: 0.95rem;
  left: 0;
  width: 2.75rem;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-ui {
  width: 2.75rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border: 1px solid #1c1916;
  border-radius: 999px;
  background: #fffdf8;
  position: relative;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #1c1916;
}

.switch input:checked + .switch-ui {
  background: #0e4f42;
  border-color: #0e4f42;
}

.switch input:checked + .switch-ui::after {
  left: 1.35rem;
  background: #f6f3ec;
}

.switch input:disabled {
  cursor: not-allowed;
}

.switch input:disabled + .switch-ui {
  opacity: 0.72;
}

.switch input:focus-visible + .switch-ui {
  outline: 2px solid #0e4f42;
  outline-offset: 3px;
}

.switch-title {
  display: block;
  font-weight: 600;
}

.switch-copy {
  display: block;
  margin-top: 0.2rem;
}

.pref-actions {
  margin-top: 1.25rem;
}

.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  border-top: 1px solid #d8d0c4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .nav-toggle-label {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .nav-toggle:checked ~ .primary-nav {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .primary-nav a {
    padding: 0.7rem 0;
  }
}

@media (min-width: 761px) {
  .nav-toggle,
  .nav-toggle-label {
    display: none;
  }
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .switch-ui::after {
    transition: left 120ms linear;
  }
}

@media (forced-colors: active) {
  .button,
  button {
    border: 1px solid ButtonText;
  }
}
