* {
  box-sizing: border-box;
}

body {
  margin:0;
  color:#263547;
  background:#fff;
  font: 1rem/1.6 "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color:#254e7a;
  text-underline-offset:.18em;
}

a:hover {
  color:#944b2b;
}

a:focus-visible {
  outline: 3px solid #235a88;
  outline-offset: 3px;
}

h1,h2,h3,p {
  margin-top:0;
}

.aisle {
  width:min(1150px,calc(100% - 46px));
  margin:auto;
}

.top-nav {
  background:#edf2f5;
  color:#37495e;
  border-bottom:1px solid #dce2e7;
  font-size:.9rem;
}

.top-nav .aisle {
  padding-block:7px;
}

.shop-head {
  border-bottom:1px solid #d4dce4;
}

.shop-head > div,.rm-footer > div {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  min-height:82px;
}

.joint-name {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:clamp(1.45rem,2.7vw,2.1rem);
  color:#1e3a58;
  font-weight:650;
  letter-spacing:-.045em;
  text-decoration:none;
}

.shop-head nav {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.shop-head nav a {
  color:#273f56;
}

h1 {
  font-size:clamp(2rem,4.2vw,3.45rem);
  line-height:1.07;
  letter-spacing:-.044em;
  margin:0 0 .45em;
}

.rm-category-wall,.rm-module {
  margin-block:36px 48px;
}

.rm-module-header {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:clamp(1.4rem,2.6vw,1.9rem);
  line-height:1.18;
}

.rm-module-header::after {
  content:"";
  flex:1;
  height:1px;
  background:#d8dfe5;
}

.wall-items {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  border-block-start:1px solid #d8dfe5;
  border-inline-start:1px solid #d8dfe5;
}

.rm-category-wall-item {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
  padding:22px 12px;
  border-bottom:1px solid #d8dfe5;
  border-right:1px solid #d8dfe5;
  text-align:center;
  text-decoration:none;
  color:#25394f;
  font-size:.97rem;
  line-height:1.3;
}

.rm-category-wall-item:hover {
  background:#f2f6f7;
}

.rm-category-wall-item img {
  max-width:100%;
  object-fit:contain;
}

.shelf-copy {
  max-width:830px;
  border-left:4px solid #d49a69;
  padding-left:clamp(16px,3vw,34px);
  font-size:1.06rem;
}

.crumbs {
  margin:24px 0;
  font-size:.96rem;
}

.rm-module-item header {
  margin:22px 0 28px;
  padding:clamp(22px,3.5vw,42px);
  background:#f0f4f6;
  border-radius:5px;
}

.rm-module-item header p {
  margin:0;
  max-width:70ch;
  color:#40546a;
  font-size:1.15rem;
}

.file-columns {
  display:grid;
  grid-template-columns:minmax(0,2.4fr) minmax(220px,1fr);
  gap:clamp(22px,5vw,64px);
  align-items:start;
}

.rm-detail {
  font-size:1.07rem;
}

.rm-detail h2 {
  font-size:1.6rem;
  line-height:1.2;
  margin:1.3em 0 .45em;
}

.rm-detail > div:first-child h2 {
  margin-top:0;
}

.topic-guide {
  border:1px solid #ced8e2;
  padding:20px;
}

.topic-guide h2,.attached h2 {
  font-size:1.25rem;
}

.topic-guide ul,.attached ul {
  padding-left:1.15em;
}

.topic-guide li {
  margin-bottom:.45em;
}

.attached {
  border-top:1px solid #c8d3dd;
  margin-top:24px;
  padding-top:18px;
}

.rm-footer {
  background:#223b50;
  color:white;
  margin-top:45px;
}

.rm-footer a {
  color:white;
}

@media (max-width:900px) {
  .wall-items {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:700px) {
  .aisle {
    width:calc(100% - 30px);
  }
  .file-columns {
    grid-template-columns:1fr;
  }
  .shop-head > div,.rm-footer > div {
    flex-wrap:wrap;
    min-height:0;
    padding:16px 0;
  }
  .shop-head nav {
    font-size:.94rem;
  }
  .wall-items {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .rm-category-wall-item {
    padding:16px 8px;
  }
}

.rm-search {
  display: grid;
  width: min(250px,100%);
  gap: 2px;
  padding-block: 9px;
}

.rm-search label {
  font-size: .86rem;
  font-weight: 600;
  color: #384b5c;
}

.rm-search input {
  font: inherit;
  border: 1px solid #aebac5;
  border-radius: 3px;
  padding: 5px 10px;
  min-width: 0;
  width: 100%;
}

.rm-search input:focus-visible {
  outline: 2px solid #235a88;
  outline-offset: 2px;
}

.rm-search[hidden],.rm-category-wall-item[hidden] {
  display: none;
}

.search-count:empty {
  display: none;
}

.search-count {
  margin: 0 0 10px;
  color: #36536b;
}

.catalog-title {
  font-size: clamp(2.2rem,4vw,3.55rem);
  max-width: 21ch;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0,.84fr) minmax(0,1.3fr);
  gap: clamp(22px,3vw,40px);
  align-items: start;
}

.feature-row figure {
  margin: 0;
  padding: 10px;
  border: 1px solid #d8dfe5;
}

.feature-row img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-row .shelf-copy {
  border: 0;
  padding: 0;
}

@media (max-width:760px) {
  .shop-head > div {
    flex-wrap: wrap;
  }
  .rm-search {
    order: 2;
    width: 100%;
    padding: 0;
  }
  .feature-row {
    grid-template-columns: 1fr;
  }
  .feature-row img {
    max-height: 340px;
    object-fit: cover;
  }
}
