/* Shared navigation for the catalogue and the Products account. */
header.mast.market-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem 1rem;
  padding-inline: clamp(.7rem, 2vw, 4rem);
}
.market-mast .products-brand { justify-self: start; }
body header.market-mast.mast > nav[class] {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 1.3vw, 1.6rem);
  margin: 0;
}
.market-mast .market-discover { justify-self: center; }
.market-mast .market-account { justify-self: end; }
.market-mast .market-discover a { white-space: nowrap; font-weight: 650; }
.market-mast .market-discover a.market-post {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .45em 1.15em;
  background: #ffc254;
  color: #302212;
  border: 1px solid #b97c19;
  border-radius: .45rem;
  text-decoration: none;
}
.market-mast .market-discover a.market-post:hover { background: #ffd07a; }
.market-mast a:focus-visible, .market-entry a:focus-visible {
  outline: 3px solid #16779a;
  outline-offset: 3px;
}

/* Branches open with the disclosure control. Keep labels easy to scan. */
.cat-popup > ul.seller-tree:not([hidden]), [data-index-tree] > ul.seller-tree {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  align-items: start;
  gap: .2rem 1rem;
}
.cat-popup .seller-tree > li, [data-index-tree] .seller-tree > li { border-bottom-color: #e1e9e9; }
.cat-popup .seller-tree summary, [data-index-tree] .seller-tree summary {
  line-height: 1.35;
  font-weight: 550;
  padding: .62rem .35rem;
}
.cat-popup .seller-tree summary::marker, [data-index-tree] summary::marker { color: #527373; }
.cat-popup .seller-tree details[open] > summary, [data-index-tree] details[open] > summary { color: #075a60; font-weight: 700; }

.market-entry { width: 100%; max-width: none; margin: 0; padding: 0; }
.market-welcome { display: grid; grid-template-columns: 1.12fr 1fr; }
.market-story { display: grid; position: relative; isolation: isolate; overflow: hidden; background: #103f43; color: white; align-items: end; }
.market-story img, .market-story::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.market-story img { object-fit: cover; }
.market-story::after { content: ""; background: linear-gradient(0deg, #052c33f5, #052c3380 64%, #052c3326); }
.market-story > div { padding: clamp(1.5rem, 4vw, 6rem); }
.market-story h2 { font-size: clamp(2.4rem, 4.5vw, 6rem); line-height: 1.04; letter-spacing: -.045em; color: white; margin: 0; }
.market-story p { color: white; max-width: 41ch; font-size: clamp(1rem, 1.4vw, 1.4rem); line-height: 1.45; margin: 1rem 0 0; }
.market-welcome .market-auth { display: grid; place-items: center; padding: clamp(1.4rem, 4vw, 6rem); background: #fff; min-width: 0; }
.market-auth .buyer-auth-inner { width: 100%; max-width: 38rem; min-width: 0; }
.market-auth h1 { font-size: clamp(1.8rem, 2.6vw, 3.6rem); line-height: 1.08; }
.market-guide { display: grid; grid-template-columns: 1fr 1fr; background: #eef4f2; }
.market-guide article { padding: clamp(1.4rem, 2.8vw, 4rem); border-block-start: 1px solid #cbdad7; }
.market-guide article + article { border-inline-start: 1px solid #cbdad7; }
.market-guide h2 { font-size: clamp(1.25rem, 1.65vw, 2rem); margin: 0; }
.market-guide p { max-width: 62ch; margin: .55em 0; }
.market-guide a { display: inline-block; padding-block: .5em; margin-inline-end: 1.2em; font-weight: 650; color: #075e75; }

@media (max-width: 680px) {
  header.mast.market-mast { grid-template-columns: minmax(0,1fr) auto; }
  .market-mast .market-account { grid-column: 2; grid-row: 1; }
  .market-mast .market-discover { grid-column: 1 / -1; grid-row: 2; }
  .market-welcome, .market-guide { grid-template-columns: minmax(0,1fr); }
  .market-story > div { padding-block: 1.55rem; }
  .market-story h2 { font-size: 2.2rem; }
  .market-story br { display: none; }
  .market-guide article + article { border-inline-start: 0; }
}
