:root {
  --blue: #0a5da8;
  --header-blue: #145b9c;
  --button-blue: #0879da;
  --text: #252525;
  --muted: #5d5d5d;
  --line: #e3e3e3;
  --soft: #f8f8f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

/* The reference page is displayed at an 80% desktop UI scale. */
@media (min-width: 761px) {
  body {
    zoom: .8;
  }
}

.site-header {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 4px 20px;
  background: var(--header-blue);
}

.brand-logo {
  display: block;
  width: 126px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  background: white;
}

main {
  width: 100%;
}

.intro {
  padding: 27px 40px 15px;
}

h1,
.disclaimer h2 {
  margin: 0;
  font-weight: 500;
  color: #202020;
}

h1 {
  font-size: 29px;
  line-height: 1.2;
}

.intro p {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.45;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: start;
  padding: 36px 50px 51px;
}

.quick-links a {
  min-height: 81px;
  display: flex;
  align-items: center;
  padding: 18px 21px;
  color: #171717;
  border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.quick-links a:nth-child(1) {
  width: 498px;
}

.quick-links a:nth-child(2) {
  width: 332px;
}

.quick-links a:nth-child(3) {
  width: 301px;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
  transform: translateY(-1px);
  outline: none;
}

.search-panel {
  margin: 0 20px;
  padding: 40px 40px 41px;
  border: 1px solid #ddd;
  border-radius: 2px;
}

.search-panel h2 {
  width: 412px;
  max-width: 100%;
  margin: 0 0 50px;
  padding: 15px 12px;
  color: #fff;
  background: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  position: relative;
  height: 60px;
  display: block;
  color: #777;
  background: var(--soft);
  border: 1px solid #d9d9d9;
  border-radius: 2px;
}

.field > span:not(.sr-only) {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  font-size: 13px;
  pointer-events: none;
}

.field select,
.field input {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 9px 40px 9px 10px;
  color: #515151;
  background: transparent;
  border: 0;
  border-radius: 2px;
  font: inherit;
  outline: none;
}

.field select {
  appearance: none;
  cursor: pointer;
}

.field > span + select {
  padding-top: 25px;
  font-size: 16px;
}

.primary-filters .field:first-child > span {
  top: 50%;
  transform: translateY(-50%);
}

.primary-filters .field:first-child > span + select {
  color: transparent;
}

.select-field::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  color: #555;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-60%);
  pointer-events: none;
}

.field:focus-within {
  border-color: #7aadd7;
  box-shadow: 0 0 0 2px rgba(10, 93, 168, .1);
}

.search-panel h3 {
  margin: 52px 0 25px;
  font-size: 13px;
  font-weight: 700;
}

.secondary-filters .field {
  height: 60px;
}

.secondary-filters .field:first-child {
  padding-right: 50px;
}

.secondary-filters .field:first-child::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 49px;
  bottom: 0;
  width: 1px;
  background: #d9d9d9;
}

.secondary-filters .field select {
  padding-right: 0;
}

.secondary-filters .select-field::after {
  right: 18px;
}

.text-field input {
  font-size: 16px;
}

.text-field input::placeholder {
  color: #777;
  opacity: 1;
}

.form-actions {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}

.form-actions button {
  min-width: 81px;
  min-height: 41px;
  padding: 8px 12px;
  color: white;
  background: var(--button-blue);
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-actions button:hover,
.form-actions button:focus-visible {
  background: #046abf;
  outline: 2px solid rgba(8, 121, 218, .25);
}

.results {
  margin: 46px 20px 0;
}

.alphabet-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 24px;
}

.alphabet-filter strong {
  font-size: 16px;
}

.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.letter {
  min-width: 38px;
  padding: 2px 6px;
  color: #0875ce;
  background: transparent;
  border: 0;
  font-size: 17px;
  cursor: pointer;
}

.letter:hover,
.letter:focus-visible,
.letter.active {
  color: #00559d;
  font-weight: 700;
  text-decoration: underline;
  outline: none;
}

.report-card {
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.report-toolbar {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-bottom: 1px solid #e4e4e4;
}

.report-view {
  padding: 8px 13px;
  color: #555;
  background: white;
  border: 1px solid #ddd;
  border-radius: 2px;
  font: inherit;
  cursor: pointer;
}

.report-view span {
  margin-right: 5px;
  font-size: 20px;
  vertical-align: -1px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #888;
}

.pagination b {
  font-weight: 400;
}

.pagination button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #8f8f8f;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.detail-row {
  min-height: 51px;
  display: grid;
  grid-template-columns: 480px 1fr;
  border-bottom: 1px solid #e7e7e7;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row > div {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  line-height: 1.35;
}

.detail-row > div:first-child {
  color: #363636;
  background: #f4f4f4;
  font-weight: 700;
}

.detail-row > div:last-child {
  color: #666;
  border-left: 1px solid #eee;
}

.detail-row.tall {
  min-height: 53px;
}

.no-results {
  margin: 0;
  padding: 30px;
  border: 1px solid #ddd;
  text-align: center;
}

.disclaimer {
  padding: 25px 40px 57px;
}

.disclaimer h2 {
  font-size: 24px;
}

.disclaimer p {
  margin: 23px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.45;
}

footer {
  min-height: 93px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #f7f7f7;
  border-top: 1px solid #eee;
  color: #555;
  font-size: 13px;
}

#scrollTop {
  width: 50px;
  height: 50px;
  color: #b0b0b0;
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .quick-links {
    gap: 35px;
  }

  .quick-links a:nth-child(n) {
    width: 100%;
  }

  .detail-row {
    grid-template-columns: 35% 65%;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .quick-links,
  .search-panel {
    display: none;
  }

  .site-header {
    height: 56px;
    padding-left: 14px;
  }

  .brand-logo {
    width: 116px;
    height: 48px;
  }

  .intro {
    padding: 23px 18px 10px;
  }

  h1 {
    font-size: 25px;
  }

  .intro p {
    margin-top: 14px;
    font-size: 15px;
  }

  .quick-links {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 18px 32px;
  }

  .quick-links a {
    min-height: 60px;
    font-size: 15px;
  }

  .search-panel {
    margin: 0 12px;
    padding: 25px 16px;
  }

  .search-panel h2 {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search-panel h3 {
    margin: 30px 0 16px;
  }

  .form-actions {
    margin-top: 12px;
  }

  .results {
    margin: 32px 12px 0;
  }

  .alphabet-filter {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 5px 20px;
  }

  .letter {
    min-width: 31px;
    padding: 5px;
    font-size: 15px;
  }

  .report-toolbar {
    min-height: 54px;
  }

  .pagination {
    gap: 6px;
    font-size: 12px;
  }

  .detail-row {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .detail-row > div {
    min-height: 42px;
    padding: 10px 12px;
  }

  .detail-row > div:first-child {
    min-height: 36px;
    padding-bottom: 6px;
  }

  .detail-row > div:last-child {
    border-left: 0;
  }

  .detail-row > div:last-child:empty {
    display: none;
  }

  .disclaimer {
    padding: 25px 18px 40px;
  }

  .disclaimer h2 {
    font-size: 22px;
  }

  .disclaimer p {
    margin-top: 15px;
    font-size: 14px;
  }

  footer {
    min-height: 76px;
  }

  #scrollTop {
    width: 43px;
    height: 43px;
  }
}

@media (max-width: 420px) {
  .report-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .pagination {
    align-self: flex-end;
  }

  .form-actions button {
    flex: 1;
  }
}
