* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #26272a;
  font: 16px/1.55 Arial,Helvetica,sans-serif;
  background: white;
}

a {
  color: #901a16;
  text-underline-offset: .18em;
}

a:hover {
  color: #cb1f16;
}

header {
  background: #333438;
  color: white;
}

.bar,nav,main,footer {
  max-width: 1220px;
  margin: auto;
  padding: 20px clamp(16px,4vw,50px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bar img {
  display: block;
  width: 128px;
  height: 58px;
  object-fit: contain;
}

.bar span {
  font-size: 14px;
  max-width: 223px;
}

.bar form {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.bar label {
  font-size: 12px;
  color: #eee;
}

.bar input,.bar button {
  font: inherit;
  padding: 9px 12px;
  border: 0;
  border-radius: 3px;
}

.bar input {
  display: block;
  width: clamp(150px,29vw,350px);
  color: #161616;
  background: white;
}

.bar button,.cta {
  background: #a7201b;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

nav {
  display: flex;
  gap: 4px;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  background: #a32019;
  flex-wrap: wrap;
}

nav a {
  color: white;
  padding: 13px 7px;
  font-weight: bold;
  text-decoration: none;
}

nav a:hover,.cta:hover {
  color: white;
  text-decoration: underline;
}

main {
  min-height: 67vh;
  padding-top: 30px;
  padding-bottom: 65px;
}

h1,h2,h3 {
  line-height: 1.16;
}

h1 {
  font-size: clamp(26px,4vw,44px);
  margin: .35em 0 .8em;
}

h2 {
  margin: 1.2em 0 .5em;
  font-size: clamp(21px,3vw,28px);
}

img {
  max-width: 100%;
  height: auto;
}

p,li {
  overflow-wrap: anywhere;
}

.back,small,.notice {
  font-size: 14px;
  color: #5e5e61;
}

.back {
  display: inline-block;
  margin: 6px 0;
}

.hero {
  background-size: cover;
  background-position: center;
  padding: clamp(26px,6vw,85px) clamp(22px,5vw,68px);
  color: white;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero h1 {
  max-width: 560px;
}

.cta {
  padding: 10px 20px;
  text-decoration: none;
}

.tiles {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(225px,100%),1fr));
  gap: 10px;
}

.tiles li {
  border: 1px solid #dadadd;
}

.tiles a {
  display: block;
  height: 100%;
  padding: 16px;
  color: #333;
  text-decoration: none;
}

.tiles a:hover {
  color: #a32019;
  background: #faf8f8;
}

.gallery {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding: 8px 0;
}

.gallery figure {
  flex: 0 0 190px;
  margin: 0;
}

.gallery img {
  width: 190px;
  height: 165px;
  object-fit: contain;
}

.gallery figcaption {
  font-size: 12px;
}

.files {
  padding-left: 1.3em;
}

.files li {
  margin-bottom: 8px;
}

.files small {
  margin-left: 8px;
}

.notice {
  padding: 12px;
  background: #f5f4f2;
}

table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

th,td {
  padding: 7px 12px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background: #f7f7f8;
}

details {
  margin: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: bold;
}

footer {
  margin: 0;
  max-width: none;
  background: #323335;
  color: #eee;
}

footer a {
  color: white;
}

.variants {
  font-size: 14px;
}

.search-results {
  font-weight: bold;
}

[hidden] {
  display: none!important;
}

@media(max-width:650px) {
  .bar {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .bar span {
    max-width: 50%;
  }

  .bar form {
    width: 100%;
    margin: 0;
  }

  .bar label {
    flex: 1;
  }

  .bar input {
    width: 100%;
  }

  nav {
    justify-content: flex-start;
    gap: 0 8px;
  }

  nav a {
    font-size: 14px;
    padding: 8px 4px;
  }

  .hero {
    min-height: 220px;
  }

  .gallery figure {
    flex-basis: 148px;
  }

  .gallery img {
    width: 148px;
    height: 120px;
  }

}

.tile-image {
  display: block;
  width: 112px;
  height: 92px;
  margin-bottom: 10px;
  object-fit: contain;
  object-position: left center;
}
