/* Copyright (C) Rein Ytterberg */
.resource-page h1,
.resource-page h2,
.resource-page h3,
.resource-page p,
.resource-page figure {
  margin: 0;
}
.resource-page h1,
.resource-page h2 {
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.resource-page em {
  color: var(--blue);
  font-style: normal;
}
.resource-opening {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 36px;
  align-items: end;
  padding-top: 50px;
  padding-bottom: 42px;
}
.resource-opening h1 {
  font-size: clamp(2.8rem, 5.3vw, 5.2rem);
}
.resource-opening p {
  font-size: 18px;
  padding-bottom: 5px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 24px;
}
.section-heading h2,
.requirements-copy h2,
.resource-close h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}
.section-heading p {
  max-width: 48ch;
}
.resource-tabs {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.resource-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  color: #172947;
  background: transparent;
  padding: 10px 0;
  font-weight: 700;
}
.resource-tabs button[aria-pressed='true'] {
  color: var(--blue);
  border-color: var(--blue);
}
.warehouse-scene {
  position: relative;
  overflow: hidden;
  background: #dce6ef;
}
.warehouse-scene > img {
  width: 100%;
  height: clamp(360px, 39vw, 480px);
  display: block;
  object-fit: cover;
  object-position: center 48%;
}
.scene-order {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  background: #fffefaef;
  padding: 14px 20px;
  border-left: 5px solid #174ee0;
  box-shadow: 0 5px 22px #19284722;
}
.scene-order span {
  font-size: 13px;
  color: #3c5774;
}
.scene-order b {
  font-size: 22px;
}
.scene-order small {
  font-size: 14px;
}
.resource-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #142941;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 20px #11274430;
}
.resource-pin i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #63748c;
}
.pin-mobile {
  left: 6%;
  top: 67%;
}
.pin-person {
  left: 37%;
  top: 46%;
}
.pin-arm {
  right: 8%;
  top: 27%;
}
.warehouse-scene[data-job='routine'] .pin-arm {
  background: #154ddd;
  color: white;
}
.warehouse-scene[data-job='routine'] .pin-arm i {
  background: white;
}
.warehouse-scene[data-job='damage'] .pin-person,
.warehouse-scene[data-job='unavailable'] .pin-person {
  background: #154ddd;
  color: white;
}
.warehouse-scene[data-job='damage'] .pin-person i,
.warehouse-scene[data-job='unavailable'] .pin-person i {
  background: white;
}
.warehouse-scene[data-job='damage'] .pin-arm,
.warehouse-scene[data-job='unavailable'] .pin-arm {
  background: #fff0e6;
  color: #923306;
}
.scene-decision {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 17px 24px;
  background: #102943f5;
  color: white;
  display: flex;
  gap: 16px;
  align-items: center;
}
.scene-decision > span {
  font-size: 30px;
  color: #95c3ff;
}
.scene-decision b {
  font-size: 21px;
}
.scene-decision p {
  font-size: 15px;
}
.job-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #cdd8e6;
}
.job-comparison > div {
  display: grid;
  gap: 7px;
}
.job-comparison span {
  font-size: 14px;
  color: #4c6080;
}
.job-comparison b {
  font-size: 17px;
  line-height: 1.4;
}
.task-boundary {
  font-size: 14px;
  padding: 14px 0 0;
}
.requirements-section {
  background: #eef4fc;
  margin-top: 60px;
  padding: 50px 0;
}
.requirements-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.65fr;
  gap: 40px;
  align-items: center;
}
.requirements-copy p {
  margin: 20px 0 16px;
}
.requirements-copy a,
.provider-api a,
.space-footnote a {
  color: #164bbb;
  font-weight: 700;
}
.requirements-visual {
  background: white;
  padding: 20px;
  border-top: 4px solid #174ee0;
}
.requirement-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #dce4f0;
}
.requirement-top span {
  font-size: 13px;
  color: #4b6079;
}
.requirements-centre {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.requirements-list {
  display: grid;
  gap: 18px;
}
.requirements-list b {
  display: block;
  font-size: 14px;
  color: #164bbb;
}
.requirements-list span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}
.requirements-product {
  text-align: center;
}
.requirements-product img {
  width: 100%;
  height: 130px;
  object-fit: contain;
}
.requirements-product span {
  display: block;
  font-size: 13px;
}
.requirement-bottom {
  padding-top: 13px;
  border-top: 1px solid #dce4f0;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.requirement-bottom > span {
  color: var(--orange);
  font-size: 27px;
}
.providers-section {
  padding-top: 60px;
  padding-bottom: 54px;
}
.provider-directory {
  border: 1px solid #bacce1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 34px #1e42620c;
}
.directory-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #142e4c;
  color: white;
  padding: 18px 22px;
}
.directory-top b {
  display: block;
  font-size: 21px;
}
.directory-top span {
  font-size: 13px;
  color: #c4d7ee;
}
.directory-top label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.directory-top select {
  padding: 10px;
  border-radius: 5px;
  font: inherit;
  border: 0;
  background: white;
  color: #172947;
}
.provider-list {
  min-height: 354px;
  background: white;
}
.provider-row {
  display: grid;
  grid-template-columns: 110px 1fr 155px 130px;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #dce4f0;
}
.provider-row[hidden] {
  display: none;
}
.provider-thumb {
  height: 80px;
  border-radius: 7px;
  background-image: url('assets/robotics-pilot.webp');
  background-repeat: no-repeat;
  background-size: 360%;
}
.robot-thumb {
  background-position: 96% 15%;
}
.person-thumb {
  background-position: 43% 32%;
}
.storage-thumb {
  background-position: 0% 8%;
}
.provider-description > span {
  font-size: 13px;
  color: #4c6382;
}
.provider-description h3 {
  font-size: 19px;
  line-height: 1.35;
}
.provider-description p {
  font-size: 14px;
  margin-top: 4px;
}
.provider-availability b,
.provider-availability span {
  display: block;
  font-size: 14px;
}
.provider-availability span {
  color: #4c6382;
  margin-top: 4px;
}
.provider-row button {
  padding: 10px 12px;
  background: #edf3ff;
  color: #194dcc;
  border: 1px solid #adc4f4;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}
.directory-foot {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 13px 22px;
  background: #f3f6fa;
  font-size: 13px;
}
.directory-foot b {
  white-space: nowrap;
}
.provider-flow {
  display: grid;
  grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;
  gap: 12px;
  margin: 28px 0 20px;
  align-items: center;
}
.provider-flow b {
  display: block;
  color: #174ee0;
  font-size: 19px;
}
.provider-flow span {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}
.provider-flow i {
  color: #174ee0;
  font-style: normal;
  font-size: 24px;
}
.provider-api {
  text-align: center;
  font-size: 15px;
}
.space-resource-section {
  background: #101a2b;
  color: white;
  padding: 50px 0;
}
.space-resource-section em {
  color: #8eb4ff;
}
.space-resource-section .resource-tabs button {
  color: #c9d8f0;
}
.space-resource-section .resource-tabs button[aria-pressed='true'] {
  color: white;
  border-color: #8eb4ff;
}
.space-resource-art {
  position: relative;
}
.space-resource-art img {
  width: 100%;
  height: clamp(290px, 37vw, 430px);
  object-fit: cover;
  display: block;
}
.space-resource-art figcaption {
  background: #1c3452;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
}
.space-resource-art figcaption > span {
  color: #acd0ff;
  font-size: 30px;
}
.space-resource-art b {
  font-size: 21px;
}
.space-resource-art p {
  font-size: 16px;
  margin-top: 4px;
}
.space-factors {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #42536b;
  font-size: 16px;
  font-weight: 700;
  color: #bdd2f4;
}
.space-footnote {
  font-size: 14px;
  margin-top: 16px !important;
}
.space-footnote a {
  color: #b5ccff;
}
.resource-close {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 60px;
}
.resource-close p {
  margin-bottom: 22px;
}
.resource-page .reserved-text {
  display: grid;
}
.reserved-text > span {
  grid-area: 1 / 1;
}
.reserved-text .size-reserve {
  visibility: hidden;
  pointer-events: none;
}
#resource-dialog {
  width: min(780px, calc(100vw - 30px));
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 25px 100px #0005;
  font-family: Arial, sans-serif;
}
.offer-windowbar {
  background: #eaf0f8;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
}
.offer-windowbar span {
  margin-left: auto;
  font-size: 13px;
}
.offer-windowbar button {
  border: 0;
  background: transparent;
  font-size: 26px;
}
.offer-body {
  padding: 24px;
}
.offer-body > span {
  color: #2258bc;
  font-size: 14px;
}
.offer-body h2 {
  font-size: 28px;
  margin: 10px 0 22px;
}
.offer-content {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 24px;
}
.offer-image {
  min-height: 220px;
  border-radius: 8px;
  background-image: url('assets/robotics-pilot.webp');
  background-size: 330%;
  background-repeat: no-repeat;
}
.offer-body dl {
  margin: 0;
}
.offer-body dt {
  font-size: 13px;
  font-weight: 700;
  color: #425c7e;
}
.offer-body dd {
  margin: 4px 0 16px;
  font-size: 16px;
  line-height: 1.4;
}
.offer-link {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #edf4ff;
  padding: 14px;
  margin: 18px 0;
  font-size: 14px;
}
.offer-link > span {
  font-size: 28px;
  color: #174ee0;
}
#offer-check {
  padding: 12px 18px;
  color: white;
  background: #174ee0;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}
#offer-result {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
}
#offer-result:not(:empty) {
  display: block;
  margin-top: 18px;
  padding: 16px;
  background: #fff2d6;
}
#offer-result b {
  display: block;
  margin-bottom: 6px;
}
#offer-result p {
  font-size: 15px;
}
@media (max-width: 900px) {
  .resource-opening,
  .section-heading,
  .requirements-layout,
  .resource-close {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .provider-row {
    grid-template-columns: 80px 1fr 120px;
    gap: 12px;
  }
  .provider-availability {
    display: none;
  }
  .requirements-centre {
    grid-template-columns: 1fr 0.8fr 1fr;
  }
  .scene-decision b {
    font-size: 18px;
  }
}
@media (max-width: 600px) {
  .resource-opening {
    padding-top: 32px;
  }
  .resource-opening p {
    font-size: 16px;
  }
  .resource-opening h1 {
    font-size: 2.65rem;
  }
  .resource-tabs {
    gap: 16px;
  }
  .resource-tabs button {
    font-size: 14px;
  }
  .warehouse-scene > img {
    height: 400px;
    object-position: 54% center;
  }
  .scene-order {
    top: 12px;
    left: 12px;
    padding: 10px 12px;
  }
  .scene-order b {
    font-size: 19px;
  }
  .resource-pin {
    font-size: 11px;
    padding: 5px;
    gap: 5px;
  }
  .pin-mobile {
    left: 2%;
    top: 63%;
  }
  .pin-person {
    left: 28%;
    top: 43%;
  }
  .pin-arm {
    right: 2%;
    top: 30%;
  }
  .scene-decision {
    padding: 14px;
    gap: 10px;
  }
  .scene-decision p {
    font-size: 14px;
  }
  .job-comparison {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .job-comparison > div {
    grid-template-columns: 110px 1fr;
    gap: 10px;
  }
  .job-comparison b {
    font-size: 15px;
  }
  .requirements-section,
  .providers-section,
  .space-resource-section {
    margin-top: 0;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .warehouse-section {
    padding-bottom: 36px;
  }
  .requirements-centre {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .requirements-product {
    grid-column: 1/-1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .requirements-product img {
    width: 130px;
    height: 100px;
  }
  .directory-top {
    flex-wrap: wrap;
    padding: 16px;
  }
  .directory-top label {
    width: 100%;
    justify-content: space-between;
  }
  .directory-top select {
    max-width: 75%;
  }
  .provider-row {
    grid-template-columns: 70px 1fr;
    padding: 16px;
  }
  .provider-thumb {
    grid-row: span 2;
  }
  .provider-row button {
    grid-column: 2;
    width: fit-content;
  }
  .provider-description h3 {
    font-size: 17px;
  }
  .provider-list {
    min-height: 510px;
  }
  .directory-foot {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .provider-flow {
    grid-template-columns: 1fr 15px 1fr;
    gap: 18px;
  }
  .provider-flow i:nth-of-type(2) {
    display: none;
  }
  .space-resource-art b {
    font-size: 18px;
  }
  .space-resource-art p {
    font-size: 14px;
  }
  .space-factors {
    justify-content: flex-start;
    gap: 12px 26px;
  }
  .resource-close {
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .offer-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .offer-image {
    min-height: 150px;
    max-height: 150px;
    background-size: 170%;
  }
  .offer-body {
    padding: 18px;
  }
}
.provider-row.matching-capability {
  background: #edf4ff;
  box-shadow: inset 4px 0 #174ee0;
}
.provider-row.other-capability {
  background: #f5f6f8;
}
.provider-row button:disabled {
  background: transparent;
  color: #596981;
  border-color: transparent;
  cursor: default;
}
