.hub {
  margin-block: 30px 22px;
}
.hub-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #4c28ae;
  border-radius: 32px;
  overflow: hidden;
  color: white;
  position: relative;
}
.hub-copy {
  padding: clamp(28px, 5vw, 68px);
  align-self: center;
}
.hub-copy h1 {
  color: white;
  font:
    600 clamp(48px, 6.2vw, 90px)/1.08 Kanit,
    sans-serif;
  letter-spacing: -0.055em;
  margin: 0;
}
.hub-copy em {
  font-style: normal;
  color: #deff80;
}
.hub-copy p {
  font-size: clamp(16px, 2vw, 20px);
  margin: 16px 0 23px;
  max-width: 33ch;
}
.hub-primary,
.hub-consult {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.hub-primary {
  padding: 12px 22px;
  background: #deff80;
  color: #281549;
  border-radius: 30px;
  font-weight: 600;
  gap: 22px;
}
.hub-consult {
  color: white;
  text-decoration: underline;
  text-underline-offset: 5px;
  margin: 6px 10px;
}
.hub-feature figure {
  position: relative;
  margin: 0;
  background: #e3dcf2;
  min-height: 250px;
}
.hub-feature figure img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 33%;
}
.hub-feature figcaption {
  position: absolute;
  right: 6%;
  bottom: 8%;
  background: #ffc7dd;
  color: #302044;
  font:
    600 clamp(18px, 3vw, 32px)/1.3 Kanit,
    sans-serif;
  padding: 4px 18px;
  border-radius: 2px;
  transform: rotate(-7deg);
}
.hub-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.hub-links a {
  background: #f2edff;
  color: #2f1f47;
  border-radius: 18px;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
}
.hub-links a:nth-child(2) {
  background: #eff7ce;
}
.hub-links a:nth-child(3) {
  background: #ffe8f0;
}
.hub-links a > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  background: #fff9;
  border-radius: 14px;
  height: 42px;
  font-size: 24px;
}
.hub-links small {
  color: #584b64;
}
.market {
  padding-block: 22px 46px;
}
.market-head,
.market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.market-head {
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.market-head a {
  color: #664785;
}
.market-head h1 {
  font:
    600 clamp(34px, 5vw, 58px)/1.2 Kanit,
    sans-serif;
  margin: 8px 0;
}
.market-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
#market-nav {
  display: grid;
  position: sticky;
  top: 94px;
  gap: 5px;
}
#market-nav a,
#market-levels button {
  padding: 10px 15px;
  border: 0;
  background: #f2eef8;
  color: #453350;
  border-radius: 12px;
  min-height: 44px;
  text-decoration: none;
}
#market-nav a[aria-current],
#market-levels button[aria-pressed="true"] {
  background: #5833ba;
  color: white;
}
.market-results {
  min-width: 0;
}
.market-results label {
  display: block;
  font-weight: 500;
}
.market-results input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #c9bfd5;
  border-radius: 12px;
  font: inherit;
  margin: 5px 0 12px;
  background: white;
  color: #29163f;
}
#market-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#market-levels button {
  font: inherit;
}
.market-heading {
  margin: 15px 0 8px;
}
.market-heading h2 {
  font-size: 24px;
}
.hub a:focus-visible,
.market :focus-visible {
  outline: 3px solid #fa759e;
  outline-offset: 2px;
}
.catalog-state {
  padding-block: 8px;
}
.hub-links a:hover,
.hub-primary:hover {
  filter: brightness(0.96);
}
@media (max-width: 650px) {
  .hub {
    margin-top: 14px;
  }
  .hub-feature {
    grid-template-columns: 1.15fr 0.85fr;
    border-radius: 22px;
  }
  .hub-copy {
    padding: 24px 12px 24px 18px;
  }
  .hub-copy h1 {
    font-size: clamp(33px, 8.3vw, 50px);
  }
  .hub-copy p {
    font-size: 14px;
    margin: 12px 0;
  }
  .hub-primary {
    padding: 9px 13px;
    gap: 5px;
    font-size: 14px;
  }
  .hub-consult {
    margin: 4px 0;
    font-size: 13px;
  }
  .hub-feature figure {
    min-height: 225px;
  }
  .hub-feature figure img {
    object-position: 50% center;
  }
  .hub-links {
    gap: 6px;
  }
  .hub-links a {
    padding: 12px 8px;
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 4px;
  }
  .hub-links a > span {
    width: 32px;
    height: 32px;
    grid-row: auto;
  }
  .hub-links strong {
    font-size: 13px;
  }
  .hub-links small {
    font-size: 11px;
  }
  .market-layout {
    display: block;
  }
  #market-nav {
    display: flex;
    overflow-x: auto;
    position: static;
    margin-bottom: 14px;
    padding: 3px;
  }
  #market-nav a {
    white-space: nowrap;
    font-size: 14px;
  }
  .market-head {
    gap: 8px;
  }
  .market-head h1 {
    margin: 3px 0;
  }
  .market-head .button {
    font-size: 13px;
  }
}
