* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    sans-serif;
}
header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
header a {
  font-size: 0.95rem;
}
a {
  color: var(--act);
  text-underline-offset: 0.16em;
}
h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 0.65em;
}
h1 {
  font-size: clamp(2rem, 5.3vw, 4.25rem);
  max-width: 20ch;
  overflow-wrap: anywhere;
}
h2 {
  font-size: clamp(1.45rem, 3.1vw, 2.2rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0.3em 0 1em;
  max-width: 75ch;
}
.lead {
  font-size: 1.12rem;
  max-width: 68ch;
}
.intro {
  padding: clamp(24px, 5vw, 64px) 0 25px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
}
.field,
.card {
  min-width: 0;
}
.card,
.panel {
  padding: clamp(14px, 2.5vw, 30px);
  border: 1px solid var(--line);
  background: var(--card);
  margin: 0 0 16px;
}
section {
  scroll-margin-top: 14px;
}
.block {
  margin: 25px 0 38px;
}
label {
  display: block;
  font-weight: 650;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  background: var(--card);
  color: var(--ink);
  display: block;
  width: 100%;
  padding: 0.55em 0.65em;
  border: 1px solid var(--line);
  border-radius: 3px;
  margin: 0.25em 0 0.7em;
  min-height: 42px;
}
textarea {
  min-height: 72px;
}
button {
  border: 1px solid var(--act);
  background: var(--card);
  color: var(--act);
  border-radius: 3px;
  cursor: pointer;
  padding: 0.5em 0.8em;
  min-height: 40px;
}
button.primary,
button[aria-pressed="true"] {
  background: var(--act);
  color: var(--on, #fff);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:hover:enabled {
  filter: brightness(0.93);
}
:focus-visible {
  outline: 3px solid var(--focus, #c46618);
  outline-offset: 3px;
}
.actions,
.chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.65rem 0;
}
.note,
.status {
  color: var(--muted);
  font-size: 0.95rem;
}
.status {
  min-height: 1.5em;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.bad {
  color: #a11c2e;
}
.sr-skip {
  position: absolute;
  left: -300vw;
}
.sr-skip:focus {
  left: 12px;
  top: 8px;
  z-index: 5;
  padding: 12px;
  background: var(--card);
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
th,
td {
  padding: 0.55rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
th {
  font-weight: 700;
}
ol,
ul {
  padding-left: 1.25em;
}
.sources li {
  margin: 0.35em 0;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 18px 0 40px;
  font-size: 0.94rem;
}
strong {
  font-weight: 700;
}
[hidden] {
  display: none !important;
}
@media (max-width: 580px) {
  header,
  main,
  footer {
    width: calc(100% - 28px);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .actions button {
    flex: 1 1 auto;
  }
  th,
  td {
    padding: 0.4rem 0.28rem;
  }
  .intro {
    padding-top: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
:root {
  --bg: #f1f5f8;
  --card: #fff;
  --ink: #172d42;
  --muted: #41576c;
  --act: #174e7a;
  --line: #a9bfd1;
}
.catalog {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 24px;
}
.catalog aside {
  background: #e2ebf2;
  padding: 17px;
}
.filters {
  display: grid;
  gap: 6px;
}
.filters button {
  text-align: left;
}
.cards,
.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 12px;
}
.part {
  background: #fff;
  border-top: 3px solid #2b719e;
  padding: 15px;
}
.by {
  font-size: 0.9rem;
  color: var(--muted);
}
.part h3 {
  font:
    700 1.12rem/1.15 ui-monospace,
    monospace;
}
.comparison h4 {
  margin: 12px 0 2px;
}
.comparison article p {
  margin-bottom: 10px;
}
.comparison article button {
  display: block;
  margin-top: 12px;
}
#map {
  font:
    15px/1.5 ui-monospace,
    monospace;
  min-height: 135px;
}
#mapping {
  font-weight: 700;
}
#parts > div {
  min-width: 0;
}
@media (max-width: 740px) {
  .catalog {
    grid-template-columns: 1fr;
  }
  .filters {
    display: flex;
    flex-wrap: wrap;
  }
  .filters button {
    font-size: 0.92rem;
  }
}
