:root {
  --blue: #075ca7;
  --header-blue: #185998;
  --button-blue: #0875d1;
  --text: #262626;
  --muted: #666;
  --border: #dedede;
  --soft-border: #e9e9e9;
  --field-bg: #f9f9f9;
  --label-bg: #f5f5f5;
}

@font-face {
  font-family: "Segoe UI";
  src: local("Segoe UI"), url("segoe-ui-font/Segoe UI.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Segoe UI";
  src: local("Segoe UI Italic"), url("segoe-ui-font/Segoe UI Italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Segoe UI";
  src: local("Segoe UI Bold"), url("segoe-ui-font/Segoe UI Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Segoe UI";
  src: local("Segoe UI Bold Italic"), url("segoe-ui-font/Segoe UI Bold Italic.woff") format("woff");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #fff;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

button,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

.topbar {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 4px 17px;
  background: var(--header-blue);
}

.brand-logo {
  width: 104px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.page-pad {
  padding-left: 33px;
  padding-right: 33px;
}

.intro {
  padding-top: 19px;
}

.intro h1 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 600;
}

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

.quick-links {
  display: grid;
  grid-template-columns: 402px 268px 244px;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  margin-bottom: 42px;
  padding-left: 41px;
  padding-right: 251px;
}

.quick-links button {
  min-height: 67px;
  padding: 17px;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 1px 2px rgb(0 0 0 / 7%);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.quick-links button:hover,
.quick-links button:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.search-panel {
  margin: 0 16px;
  min-height: 369px;
  padding: 33px 33px 32px;
  border: 1px solid #e1e1e1;
  background: #fff;
}

.search-panel h2 {
  width: 335px;
  margin: 0 0 41px;
  padding: 11px 11px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 400;
}

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

.field {
  position: relative;
  display: block;
  height: 50px;
}

.field > span:not(.sr-only) {
  position: absolute;
  z-index: 1;
  left: 9px;
  top: 8px;
  color: #676767;
  font-size: 11px;
  pointer-events: none;
}

.field select,
.field input {
  width: 100%;
  height: 100%;
  color: #333;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
}

.field select {
  padding: 18px 41px 5px 9px;
  appearance: none;
  cursor: pointer;
}

.select-field::after {
  content: "⌄";
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #5d5d5d;
  font-size: 17px;
  pointer-events: none;
}

.field select:focus,
.field input:focus {
  border-color: #7eb4e0;
  box-shadow: 0 0 0 2px rgb(7 92 167 / 10%);
}

.search-panel h3 {
  margin: 42px 0 19px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.filter-grid .field select {
  padding-top: 5px;
}

.activity-field > span:not(.sr-only) {
  top: 17px;
}

.filter-grid .select-field::after {
  border-left: 1px solid var(--border);
}

.name-field input {
  padding: 0 10px;
}

.name-field input::placeholder {
  color: #666;
  opacity: 1;
}

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

.primary-btn {
  min-width: 67px;
  height: 33px;
  padding: 0 12px;
  color: #fff;
  background: var(--button-blue);
  border: 0;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: #055fa9;
  outline: 2px solid rgb(7 92 167 / 25%);
  outline-offset: 2px;
}

.results-section {
  margin: 37px 16px 0;
}

.alphabet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px 15px;
}

.alphabet-row h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.alphabet {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.alphabet button {
  width: 31px;
  height: 26px;
  padding: 0;
  color: #0875d1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.alphabet button:last-child {
  width: 43px;
  font-weight: 700;
}

.alphabet button.active,
.alphabet button:hover,
.alphabet button:focus-visible {
  text-decoration: underline;
  outline: none;
}

.record-card {
  border: 1px solid #e1e1e1;
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}

.record-toolbar {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid var(--soft-border);
}

.report-btn {
  height: 31px;
  padding: 0 11px;
  color: #53616f;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 2px;
  cursor: pointer;
}

.report-btn span {
  margin-right: 3px;
  font-size: 19px;
  line-height: 0;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #848b94;
  font-size: 12px;
}

.pager button {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  color: #9ca3aa;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.pager button:hover,
.pager button:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
  outline: none;
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.record-table th,
.record-table td {
  height: 41px;
  padding: 8px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--soft-border);
  text-align: left;
}

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

.record-table th {
  width: 375px;
  background: var(--label-bg);
  font-size: 12px;
  font-weight: 700;
}

.record-table td {
  color: #59616a;
  overflow-wrap: anywhere;
}

.record-table tr:nth-child(3) th {
  height: 60px;
}

.disclaimer {
  padding-top: 19px;
  padding-bottom: 42px;
}

.disclaimer h2 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
}

.disclaimer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
  font-style: italic;
}

footer {
  position: relative;
  min-height: 64px;
  padding: 31px 16px 14px;
  background: #fafafa;
  color: #3c4650;
  font-size: 11px;
}

#scroll-top {
  position: absolute;
  right: 17px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #9ea6ad;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 50%;
  font-size: 16px;
  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: 1050px) {
  .quick-links {
    grid-template-columns: repeat(3, 1fr);
    padding-right: 33px;
  }
}

@media (max-width: 760px) {
  .page-pad {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro h1 {
    font-size: 23px;
  }

  .quick-links {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 28px 0;
    padding: 0 18px;
  }

  .quick-links button {
    min-height: 54px;
  }

  .search-panel {
    margin: 0 10px;
    padding: 22px 16px;
  }

  .search-panel h2 {
    width: 100%;
    margin-bottom: 25px;
  }

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

  .search-panel h3 {
    margin-top: 28px;
  }

  .alphabet-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .record-toolbar {
    padding: 0 8px;
  }

  .record-table {
    table-layout: auto;
  }

  .record-table th {
    width: 39%;
    min-width: 145px;
  }

  .record-table th,
  .record-table td {
    padding: 9px 8px;
  }
}
