/* Understated marketplace controls: consistent shapes, solid brand colours. */
.btn,
.hero-cta {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  padding: 11px 20px;
  background: #2c342b;
  color: #fff;
  transition:
    background 0.18s,
    color 0.18s;
}
.btn.gold,
.market-nav > .btn,
.market-home .market-nav > .btn,
.market-home .search-row .btn,
.feedback-form .btn {
  background: #2c342b;
  color: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.btn:hover,
.btn.gold:hover,
.market-home .market-nav > .btn:hover,
.market-home .search-row .btn:hover,
.feedback-form .btn:hover {
  background: #435440;
  transform: none;
}
.btn.outline,
.btn.mint {
  background: #e8ece4;
  color: #2c342b;
  border: 0;
}
.btn.outline:hover,
.btn.mint:hover {
  background: #dce4d6;
}
.hero-cta {
  background: #f0eadc;
  color: #243226;
  margin-top: 22px;
  font-size: 13px;
}
.hero-cta:hover {
  background: #fffaf0;
  transform: none;
}
.hero-cta span {
  color: inherit;
}
.cascade-summary .btn {
  background: #d5bd8b;
  color: #1b2b1f;
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 12px;
}
.cascade-summary .btn:hover {
  background: #e2cca0;
}
.market-home .card-bottom .btn {
  background: #e8ece4;
  color: #2c342b;
  border: 0;
  box-shadow: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12px;
  min-height: 42px;
}
.market-home .card-bottom .btn:hover {
  background: #dce4d6;
}
.icon-btn,
.market-home .card-bottom .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #e8ece4;
  color: #334932;
  box-shadow: none;
}
.icon-btn:hover,
.market-home .card-bottom .icon-btn:hover {
  background: #dce4d6;
}
.market-home .chip {
  background: transparent;
  color: #687367;
  border: 0;
  border-radius: 0;
  min-height: 36px;
  padding: 8px 16px;
  box-shadow: inset 0 -1px transparent;
  transition:
    color 0.18s,
    box-shadow 0.18s;
}
.market-home .chip.active {
  background: transparent;
  color: #253d2a;
  box-shadow: inset 0 -2px #253d2a;
}
.market-home .chip:hover {
  color: #253d2a;
  background: transparent;
}
.ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-symbol .ui-icon {
  width: 32px;
  height: 32px;
}
.market-nav nav a[aria-current],
.market-home .market-nav nav a[aria-current] {
  box-shadow: inset 0 -1px var(--petrol);
}
/* Keyboard users can pause without restoring the visible control strip. */
.market-home .pro-viewport {
  position: relative;
}
.carousel-motion-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.carousel-motion-toggle:focus-visible {
  z-index: 5;
  width: auto;
  height: auto;
  padding: 8px 12px;
  clip-path: none;
  background: #f0eadc;
  color: #243226;
  border-radius: 6px;
}
.carousel-motion-toggle[hidden] {
  display: none;
}
/* Featured project details sit on the photo, on opposite sides of its lower edge. */
.cascade-panel::after {
  background: linear-gradient(0deg, #06130feb, #09181180 36%, transparent 72%);
}
.cascade-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'heading figures' 'context action';
  align-items: end;
  gap: 8px 28px;
  bottom: 24px;
  text-shadow: 0 1px 8px #0006;
}
.cascade-heading {
  grid-area: heading;
  min-width: 0;
}
.cascade-heading > span {
  display: block;
  color: #e3d3b2;
  font-size: 10px;
  margin-bottom: 6px;
}
.cascade-title h3 {
  font-size: 23px;
  overflow-wrap: anywhere;
}
.cascade-title .cascade-summary {
  display: contents;
}
.cascade-title .cascade-context {
  grid-area: context;
  min-width: 0;
}
.cascade-title .cascade-context p {
  font-size: 12px;
}
.cascade-title .cascade-context small {
  color: #d3dcd0;
  font-size: 10px;
}
.cascade-title .cascade-summary .metrics {
  grid-area: figures;
  justify-self: end;
  gap: 24px;
  border: 0;
  padding: 0;
}
.market-home .cascade-title .cascade-summary .metrics strong {
  font-size: 24px;
}
.cascade-title .cascade-summary .metrics small {
  color: #e2e9dc;
  font-size: 9px;
}
.cascade-title .cascade-summary .btn {
  grid-area: action;
  justify-self: end;
  display: inline-flex;
  text-shadow: none;
}
@media (max-width: 1100px) {
  .cascade-title {
    grid-template-areas: 'heading heading' 'context context' 'figures action';
    gap: 8px 14px;
  }
  .cascade-title .cascade-summary .metrics {
    justify-self: start;
  }
  .cascade-track {
    height: 320px;
  }
}
@media (max-width: 760px) {
  .cascade-track {
    height: 380px;
  }
  .cascade-title {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'heading' 'context' 'figures' 'action';
    left: 14px;
    right: 14px;
    bottom: 16px;
    gap: 10px;
  }
  .cascade-title h3 {
    font-size: 18px;
  }
  .cascade-heading > span {
    font-size: 9px;
    margin-bottom: 4px;
  }
  .cascade-title .cascade-context p {
    font-size: 11px;
  }
  .cascade-title .cascade-context small {
    font-size: 9px;
  }
  .cascade-title .cascade-summary .metrics {
    width: 100%;
    gap: 10px;
  }
  .market-home .cascade-title .cascade-summary .metrics strong {
    font-size: 21px;
  }
  .cascade-title .cascade-summary .metrics small {
    font-size: 8px;
  }
  .cascade-title .cascade-summary .btn {
    padding: 10px 15px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .hero-cta,
  .icon-btn,
  .chip {
    transition: none;
  }
}

/* A book action matches the architectural header actions, without a filled button. */
.cascade-title .project-book-action {
  grid-area: action;
  justify-self: end;
  display: inline-flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 2px;
  min-height: 52px;
  background: transparent;
  color: #efe7d8;
  border: 0;
  text-shadow: none;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.project-book-copy {
  position: relative;
  padding-bottom: 7px;
  white-space: nowrap;
}
.project-book-rule {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.project-book-icon {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: visible;
}
.project-book-action:focus-visible {
  outline: 2px solid #e3d3b2;
  outline-offset: 4px;
  border-radius: 4px;
}
.project-book-action .book-leaf {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: left center;
}
@keyframes project-book-turn {
  0% {
    opacity: 0;
    transform: scaleX(1) skewY(0deg);
  }
  12% {
    opacity: 1;
    transform: scaleX(1) skewY(0deg);
  }
  48% {
    opacity: 1;
    transform: scaleX(0.04) skewY(-12deg);
  }
  78% {
    opacity: 1;
    transform: scaleX(-1) skewY(0deg);
  }
  100% {
    opacity: 0;
    transform: scaleX(-1) skewY(0deg);
  }
}
@media (hover: hover) and (pointer: fine) {
  .project-book-action:hover .book-leaf {
    animation: project-book-turn 1.6s ease-in-out infinite;
  }
  .project-book-action:hover .book-leaf--second {
    animation-delay: 0.8s;
  }
}
.project-book-action:focus-visible .book-leaf {
  animation: project-book-turn 1.6s ease-in-out infinite;
}
.project-book-action:focus-visible .book-leaf--second {
  animation-delay: 0.8s;
}
.project-book-action:active .book-leaf {
  animation: project-book-turn 0.8s ease-in-out 1;
}
@media (max-width: 760px) {
  .cascade-title .project-book-action {
    font-size: 12px;
    gap: 8px;
    min-height: 48px;
  }
  .project-book-icon {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-book-action .book-leaf {
    animation: none !important;
  }
}
