* { box-sizing: border-box; }
body {
  margin: 0;
  color: #161616;
  background: #fff;
  font: 16px/1.5 system-ui, sans-serif;
}
a { color: #0b57d0; }
img { max-width: 100%; height: auto; display: block; }
.sheet figure img, .panel img { width: 100%; max-width: 100%; height: auto; border: 1px solid #e5e5e5; background: #fff; }
h1 { font-size: 1.6rem; font-weight: 650; margin: 0 0 0.3rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.6rem; }
h3 { font-size: 1rem; margin: 1rem 0 0.3rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 0.5rem; top: 0.5rem; background: #fff; }
.site-header { border-bottom: 1px solid #ddd; }
.header-row, .footer-row {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}
.brand { color: inherit; text-decoration: none; font-weight: 650; display: flex; gap: 0.5rem; align-items: center; }
.mark { width: 0.7rem; height: 0.7rem; border: 2px solid #161616; border-radius: 50%; }
.nav { display: flex; gap: 1rem; }
.nav a { color: inherit; text-decoration: none; }
.site-footer { border-top: 1px solid #ddd; margin-top: 3rem; color: #555; font-size: 0.9rem; }
.catalog-page, .prose { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding-top: 1rem; }
.prose img { max-width: min(100%, 640px); height: auto; display: block; margin: 0.6rem 0; }
.filters { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr auto; gap: 0.6rem; align-items: end; }
.filters label { display: grid; gap: 0.2rem; font-size: 0.8rem; color: #555; }
input, select, button {
  font: inherit;
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.4rem 0.5rem;
  width: 100%;
}
button { width: auto; cursor: pointer; }
.count { color: #555; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; align-items: stretch; }
.tiles li { display: flex; min-width: 0; }
.tiles a { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; text-decoration: none; border: 1px solid #e5e5e5; padding: 0.6rem; }
.tiles a:hover { border-color: #111; }
.tiles img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; margin-bottom: 0.7rem; }
.tiles strong { display: block; line-height: 1.3; min-height: 2.6em; }
.tiles span { display: block; color: #555; font-size: 0.85rem; line-height: 1.35; min-height: 2.7em; }
.sheet { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; padding-top: 1rem; }
.sheet-body { min-width: 0; }
.sheet-body p, .sheet-body li, .sheet-body a, .sheet-body dd, .download { overflow-wrap: anywhere; }
.side { position: sticky; top: 0.5rem; align-self: start; display: grid; gap: 0.35rem; }
.side a { color: inherit; text-decoration: none; }
.side a:hover { text-decoration: underline; }
.crumb, .sub { color: #555; }
.overview { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; }
.product { width: 220px; background: #fafafa; }
.specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem; border-top: 1px solid #eee; padding: 0.35rem 0; }
.specs dt { color: #555; }
.specs dd { margin: 0; }
figure { margin: 0.8rem 0; }
figcaption { color: #555; font-size: 0.9rem; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.figures figure { min-width: 0; margin: 0; }
.download { display: inline-block; background: #161616; color: #fff; text-decoration: none; padding: 0.45rem 0.8rem; }
table { border-collapse: collapse; width: 100%; }
th, td { border-top: 1px solid #ddd; text-align: left; padding: 0.35rem 0.4rem 0.35rem 0; }
code { font-family: ui-monospace, monospace; }
.tabs { position: relative; }
.tabs input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tablist { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tablist label { border: 1px solid #ccc; padding: 0.25rem 0.6rem; cursor: pointer; }
.tabs .panel { display: none; }
.tabs input:nth-of-type(1):checked ~ .tablist label:nth-of-type(1),
.tabs input:nth-of-type(2):checked ~ .tablist label:nth-of-type(2),
.tabs input:nth-of-type(3):checked ~ .tablist label:nth-of-type(3),
.tabs input:nth-of-type(4):checked ~ .tablist label:nth-of-type(4) { background: #161616; color: #fff; border-color: #161616; }
.tabs input:nth-of-type(1):checked ~ .panel:nth-of-type(1),
.tabs input:nth-of-type(2):checked ~ .panel:nth-of-type(2),
.tabs input:nth-of-type(3):checked ~ .panel:nth-of-type(3),
.tabs input:nth-of-type(4):checked ~ .panel:nth-of-type(4) { display: block; }
@media (max-width: 800px) {
  .filters, .sheet, .overview, .figures, .header-row { display: block; }
  .side { position: static; margin: 0.8rem 0; }
  .nav { margin-top: 0.4rem; }
}
