#demos .section-head {
  max-width: none;
  text-align: left;
  margin-bottom: clamp(24px, 4vw, 40px);
}

#demos .section-head h2 { margin-bottom: 0; }
#demos .section-rule { margin: 18px 0 0; width: 72px; }

.market-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.market-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6dce3;
  border-radius: 8px;
  background: #fdfbfc;
}

.market-feature__cover {
  margin: 0;
  background: #eef0f3;
  min-width: 0;
}

.market-feature__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.market-feature__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 34px);
}

.market-feature__body h3 { margin: 0 0 12px; font-size: clamp(24px, 2.5vw, 34px); }
.market-feature__body .market-feature__description { color: var(--muted); }
.market-feature__trigger {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.market-feature__trigger span { color: #985873; font-weight: 400; }
.market-feature__trigger::after { content: ""; position: absolute; inset: 0; }
.market-feature:has(.market-feature__trigger:hover) { border-color: #b68a9d; }
.market-feature:has(.market-feature__trigger:focus-visible) {
  outline: 2px solid #426a80;
  outline-offset: 4px;
}
.market-feature__trigger:focus-visible { outline: none; }

@media (min-width: 1050px) {
  .market-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .market-feature-grid { grid-template-columns: minmax(0, 1fr); }
}

#market-dashboard { scroll-margin-top: 84px; }

.market-dialog {
  width: min(960px, calc(100% - 28px));
  max-height: min(88dvh, 960px);
  padding: 0;
  border: 1px solid #e6dce3;
  border-radius: 12px;
  background: #fdfbfc;
  color: var(--ink);
  overscroll-behavior: contain;
}

.market-dialog::backdrop { background: rgb(30 39 47 / 65%); }
body:has(.market-dialog[open]) { overflow: hidden; }

.market-dialog__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(18px, 4vw, 40px);
  border-bottom: 1px solid #e6dce3;
  background: #fdfbfc;
}

.market-dialog__bar .eyebrow { margin: 0; }
.market-dialog__bar .btn { min-width: 44px; padding: 6px 10px; font-size: 24px; }
.market-dialog__content { padding: clamp(18px, 4vw, 40px); }
.market-dialog__content h2 { margin-top: 0; }
.market-dialog__content figure { margin: 26px 0; }
.market-dialog__content img { display: block; width: 100%; height: auto; border: 1px solid #e6dce3; border-radius: 6px; }
.market-dialog__content figcaption { margin-top: 9px; color: var(--muted); font-size: 14px; }
.market-dialog__content h3 { margin: 30px 0 10px; }

@media (prefers-reduced-motion: no-preference) {
  .market-dialog[open] { animation: market-dialog-enter 200ms ease-out; }
}

@keyframes market-dialog-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
