:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172c42;
  background: #eef2f6;
  font-size: 15px;
  line-height: 1.5;
  --blue: #225fc6;
  --border: #d6dfe8;
  --muted: #52657a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
header strong {
  font-size: 22px;
  letter-spacing: -0.7px;
}
.local {
  font-size: 10px;
  letter-spacing: 1.4px;
  margin-left: 18px;
  color: var(--muted);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 24px 40px 48px;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1.1px;
  margin: 6px 0 18px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 16px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 0;
}
.muted,
small {
  color: var(--muted);
}
button,
input {
  font: inherit;
}
button {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  color: #172c42;
  cursor: pointer;
}
button:hover {
  background: #e8eef7;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #82a7ef;
  outline-offset: 3px;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 600;
}
input {
  padding: 11px 13px;
  border: 1px solid #b7c5d5;
  border-radius: 5px;
  min-width: 0;
  background: white;
  color: #172c42;
}
a {
  color: var(--blue);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
nav button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 0 14px;
  color: var(--muted);
}
nav button[aria-current] {
  color: var(--blue);
  box-shadow: inset 0 -3px var(--blue);
  font-weight: 650;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.search {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.search input {
  flex: 1;
}
.catalog-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
aside {
  min-width: 0;
}
#results {
  display: grid;
  gap: 8px;
}
.part-row {
  width: 100%;
  text-align: left;
  padding: 18px;
  display: grid;
  gap: 4px;
  border-radius: 7px;
}
.part-row.selected {
  border-color: var(--blue);
  box-shadow: inset 3px 0 var(--blue);
}
.part-row strong {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.part-row small {
  font-size: 12px;
}
.part-row span {
  font-size: 13px;
}
article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  min-height: 430px;
  padding: 28px;
  min-width: 0;
}
.empty {
  padding: 70px 12px;
  text-align: center;
  color: var(--muted);
}
.part-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.part-header h2 {
  font-size: 32px;
  margin: 8px 0;
}
.badge {
  display: inline-block;
  background: #e8eef7;
  color: #35516f;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 650;
}
.warning {
  background: #fff2d7;
  color: #80530b;
  padding: 12px 14px;
  border-left: 3px solid #b57d1d;
  margin-bottom: 18px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs button[aria-selected="true"] {
  background: #e8eefb;
  color: var(--blue);
  border-color: #aabfe7;
}
.fact,
.offer,
.source-row,
.job,
.case {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.fact-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.value {
  font-size: 18px;
  font-weight: 600;
}
blockquote {
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}
.link-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  font-size: 13px;
}
.notice {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
footer {
  padding: 20px 40px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.login {
  max-width: 510px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
  margin: 70px auto;
}
.login h1 {
  font-size: 36px;
  margin-top: 14px;
}
.login form {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.login label {
  font-size: 13px;
  font-weight: 600;
}
.login .muted {
  font-size: 12px;
}
#status {
  color: #923b20;
  margin-bottom: 12px;
}
#more {
  width: 100%;
  margin-top: 12px;
}
dialog {
  width: min(800px, 90vw);
  max-height: 85vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  color: #172c42;
}
dialog::backdrop {
  background: #10223580;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #eef2f6;
  padding: 16px;
}
#source-content {
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
.evaluation-summary {
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  margin: 20px 0;
}
.case {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.pass {
  color: #236641;
}
.fail {
  color: #a13925;
}
@media (max-width: 760px) {
  header {
    height: 66px;
    padding: 0 18px;
  }
  .local {
    display: none;
  }
  main {
    padding: 18px 16px 30px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  article {
    padding: 20px;
  }
  .section-heading {
    display: block;
  }
  h1 {
    font-size: 27px;
  }
  .login {
    margin: 30px auto;
    padding: 24px;
  }
  .login h1 {
    font-size: 31px;
  }
  footer {
    padding: 18px;
  }
  .fact-top {
    display: block;
  }
  .part-row {
    padding: 14px;
  }
  .search {
    gap: 6px;
  }
  nav {
    margin-bottom: 24px;
  }
}

.bom-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.bom-line strong {
  flex: 1;
  min-width: 160px;
}
.bom-line input {
  width: 110px;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  margin: 20px 0;
}
.listing-grid section {
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.part-header > button {
  display: block;
  margin-top: 14px;
}
#bom form {
  margin-bottom: 24px;
}
