.resource-hero.resource-file-first {
  padding-block: clamp(42px, 6vw, 96px);
  background-position: center right;
}

.resource-file-first h1 {
  max-width: 17ch;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
  margin-block: 0 26px;
}

.resource-file-search {
  display: grid;
  gap: 8px;
  width: min(100%, 590px);
}

.resource-file-search label { font-weight: 600; }
.resource-file-query { display: flex; align-items: center; gap: 8px; }
.resource-file-query input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #a5a5a5;
  border-radius: 6px;
  padding: 10px 13px;
  background: #fff;
  color: #181818;
  font: inherit;
}

.resource-file-first .resource-file-query .button {
  min-height: 48px;
  margin: 0;
  padding: 12px 18px;
  line-height: 1.35;
  white-space: nowrap;
}
.resource-file-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin-block-start: 9px; }
.resource-file-shortcuts button {
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  color: #181818;
  border: 1px solid #9b9b9b;
  border-radius: 6px;
  background: #fafafa;
  cursor: pointer;
}

.resource-file-shortcuts button:hover { border-color: #181818; background: #fff; }
.resource-file-first .resource-project-link {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 0;
  color: #181818;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resource-catalog-guide .manufacturer-design-tools { margin: 0 0 clamp(24px, 4vw, 46px); }
.resource-catalog-guide #resource-brand-title { margin-block: 0 14px; }
.resource-catalog-guide .toolbox-grid { margin-top: 22px; }
.resource-document-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  background: #f5f5f5;
}
.resource-document-help h2 { margin: 0 0 14px; }
.resource-document-help p { max-width: 62ch; margin: 0 0 8px; }
.resource-document-help .button { flex: 0 0 auto; }

.afs-document-entry {
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}
.afs-document-entry h2 { font-size: clamp(20px, 3vw, 28px); margin: 0 0 6px; }
.afs-document-entry p { margin: 0 0 6px; }
.afs-document-entry a { text-decoration: underline; text-underline-offset: 3px; }

.afs-document-request {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 0 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 14px;
  min-width: 0;
}
.afs-document-request legend { font-weight: 650; }
.afs-document-request label, .afs-document-request input { width: 100%; min-width: 0; }
.afs-document-request input { display: block; margin-top: 5px; }
.afs-document-request .afs-document-finish { grid-column: 1 / -1; }
.afs-preview-notice {
  margin: 0;
  padding: 8px 18px;
  color: #181818;
  background: #f5f5f5;
  border-bottom: 1px solid #ccc;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 650px) {
  .resource-hero.resource-file-first {
    background: #f5f5f5;
    padding-block: 38px;
  }
  .resource-file-query { display: grid; }
  .resource-file-query button { justify-self: start; }
  .resource-file-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resource-file-shortcuts button { text-align: left; padding-inline: 9px; }
  .resource-document-help { display: grid; }
  .resource-document-help .button { justify-self: start; }
}
@media (max-width: 420px) {
  .afs-document-request { grid-template-columns: minmax(0, 1fr); }
}
