:root {
  --ll-navy: #0d2b6e;
  --ll-navy-dark: #071b49;
  --ll-copper: #cd8544;
  --ll-cream: #fffaf3;
  --ll-ink: #18202a;
  --ll-focus: #ffbf47;
  --ll-select-border: #1a4480;
}

body {
  color: var(--ll-ink);
  background: #f7f8fa;
}

.top-bar,
.top-bar-section li:not(.has-form) a:not(.button),
.top-bar.expanded .title-area {
  background: var(--ll-navy);
}

.top-bar-section li:not(.has-form) a:not(.button):hover,
.top-bar-section li.active:not(.has-form) a:not(.button) {
  background: var(--ll-navy-dark);
}

.top-bar .name img {
  width: 42px;
  max-height: 34px;
  object-fit: contain;
}

#contentbody {
  background: #fff;
  border-top: 4px solid var(--ll-copper);
  box-shadow: 0 2px 10px rgba(13, 43, 110, 0.08);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ll-navy);
}

a {
  color: #075ea8;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ll-navy-dark);
  text-decoration: underline;
}

button,
.button,
input[type="submit"],
input[type="button"] {
  background-color: var(--ll-navy);
  border-color: var(--ll-navy-dark);
  color: #fff !important;
  text-decoration: none;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: #1a4480;
  border-color: #1a4480;
  color: #fff !important;
  text-decoration: none;
}

button:active,
.button:active,
input[type="submit"]:active,
input[type="button"]:active {
  background-color: var(--ll-navy-dark);
  border-color: var(--ll-navy-dark);
  color: #fff !important;
}

a.button:visited {
  color: #fff !important;
}

.panel {
  background: var(--ll-cream);
  border-color: #d9c7b5;
  border-left: 4px solid var(--ll-copper);
}

/*
 * Accessible select styling: a persistent high-contrast border plus a
 * prominent focus indicator that is not dependent on colour alone.
 */
select {
  min-height: 2.75rem;
  padding: 0.45rem 2.25rem 0.45rem 0.65rem;
  border: 2px solid var(--ll-select-border) !important;
  border-radius: 4px;
  background-color: #fff;
  color: var(--ll-ink);
  box-shadow: 0 1px 2px rgba(7, 27, 73, 0.12);
}

select:hover {
  border-color: var(--ll-navy-dark) !important;
}

select:focus,
button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 4px solid var(--ll-focus) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ll-navy-dark);
}

select:disabled {
  border-color: #71767a !important;
  background: #e6e6e6;
  color: #565c65;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
