/* Editorial showcase for real Palma catalogue previews. */
.palma-category-visual + .segmented-nav-container {
  margin-top: 18px !important;
}

.palma-featured-carousel[hidden] {
  display: none !important;
}

.palma-featured-carousel {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin: 2px 0 26px;
  overflow: hidden;
  color: #f7f7f5;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  isolation: isolate;
}

.palma-featured-stage {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(286px, 0.78fr) minmax(0, 1.9fr);
}

.palma-featured-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 30px 28px 26px;
  background: #0a0a0a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.palma-featured-eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.palma-featured-kicker,
.palma-featured-context {
  color: #a8a8a5;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.palma-featured-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #707070;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.palma-featured-counter strong {
  color: #fff;
  font-size: 20px;
  font-weight: 770;
}

.palma-featured-heading {
  margin-top: 52px;
}

.palma-featured-context {
  display: block;
  margin-bottom: 12px;
  color: #d4d4d1;
}

.palma-featured-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: var(--font-title), "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 38px;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.palma-featured-heading p {
  max-width: 390px;
  margin: 18px 0 0;
  color: #a7a7a4;
  font-size: 13px;
  font-weight: 510;
  line-height: 1.55;
  letter-spacing: 0;
}

.palma-featured-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin-top: 28px;
}

.palma-featured-open,
.palma-featured-export {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-sizing: border-box;
  padding: 0 15px;
  border-radius: 5px;
  font-family: var(--font-title), "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.palma-featured-open {
  color: #090909;
  background: #f7f7f5;
  border: 1px solid #f7f7f5;
}

.palma-featured-open:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.palma-featured-export {
  color: #d4d4d1;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.palma-featured-export:hover,
.palma-featured-export[aria-pressed="true"] {
  color: #fff;
  background: #191919;
  border-color: rgba(255, 255, 255, 0.34);
}

.palma-featured-export[aria-pressed="true"] .material-symbols-rounded {
  font-variation-settings: "FILL" 1;
}

.palma-featured-open .material-symbols-rounded,
.palma-featured-export .material-symbols-rounded {
  font-size: 18px;
}

.palma-featured-direction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.palma-featured-direction-button {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 0;
  color: #b9b9b6;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease;
}

.palma-featured-direction-button--next {
  grid-template-columns: minmax(0, 1fr) 22px;
  padding: 8px 0 8px 12px;
  border-right: 0;
  text-align: right;
}

.palma-featured-direction-button:hover {
  color: #fff;
}

.palma-featured-direction-button .material-symbols-rounded {
  font-size: 18px;
}

.palma-featured-direction-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.palma-featured-direction-copy > span {
  color: #6f6f6f;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.palma-featured-direction-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: currentColor;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.palma-featured-theatre {
  position: relative;
  min-width: 0;
  min-height: 610px;
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

.palma-featured-reflection {
  position: absolute;
  inset: -14%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.36;
  filter: blur(50px) saturate(1.48);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 82%, transparent 100%);
  pointer-events: none;
  transform: translateZ(0);
  transition: opacity 240ms ease;
}

.palma-featured-reflection::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
}

.palma-featured-reflection iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  max-width: none;
  border: 0;
  pointer-events: none;
  transform-origin: center center;
}

.palma-featured-device {
  position: absolute;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  transition: opacity 200ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.palma-featured-device--desktop {
  inset: 34px 60px 42px 34px;
  z-index: 1;
  border-radius: 5px;
}

.palma-featured-device--mobile {
  right: 24px;
  bottom: 22px;
  z-index: 3;
  width: 190px;
  height: 382px;
  border-radius: 9px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.64), 0 0 0 5px #080808;
}

.palma-featured-device-bar {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  padding: 0 11px;
  color: #929292;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  font-weight: 720;
  line-height: 1;
  text-transform: uppercase;
}

.palma-featured-device--mobile .palma-featured-device-bar {
  height: 27px;
  padding: 0 9px;
  font-size: 8px;
}

.palma-featured-canvas {
  position: absolute;
  inset: 31px 0 0;
  overflow: hidden;
  background: rgba(8, 8, 8, 0.42);
}

.palma-featured-device--mobile .palma-featured-canvas {
  inset-block-start: 27px;
}

.palma-featured-canvas iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  max-width: none;
  border: 0;
  background: #0d0d0d;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

.palma-featured-live.is-changing .palma-featured-device--desktop {
  opacity: 0.42;
  transform: translateX(8px);
}

.palma-featured-live.is-changing .palma-featured-reflection {
  opacity: 0.08;
}

.palma-featured-live.is-changing .palma-featured-device--mobile {
  opacity: 0.42;
  transform: translateX(-6px);
}

.palma-featured-carousel[data-direction="previous"] .palma-featured-live.is-changing .palma-featured-device--desktop {
  transform: translateX(-8px);
}

.palma-featured-carousel[data-direction="previous"] .palma-featured-live.is-changing .palma-featured-device--mobile {
  transform: translateX(6px);
}

.palma-featured-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  background: #080808;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.palma-featured-live.is-loading .palma-featured-loader {
  opacity: 0.28;
  animation: palma-featured-loading 900ms ease-in-out 150ms infinite alternate;
}

.palma-featured-sequence {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #090909;
}

.palma-featured-sequence-button {
  position: relative;
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  padding: 13px 14px;
  color: #7e7e7e;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease;
}

.palma-featured-sequence-button:last-child {
  border-right: 0;
}

.palma-featured-sequence-button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  background: #fff;
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: left center;
  transition: opacity 160ms ease, transform 220ms ease;
}

.palma-featured-sequence-button:hover {
  color: #d7d7d4;
  background: #101010;
}

.palma-featured-sequence-button[aria-selected="true"] {
  color: #fff;
  background: #111;
}

.palma-featured-sequence-button[aria-selected="true"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.palma-featured-sequence-number {
  color: #626262;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.palma-featured-sequence-button[aria-selected="true"] .palma-featured-sequence-number {
  color: #fff;
}

.palma-featured-sequence-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.palma-featured-sequence-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: currentColor;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.palma-featured-sequence-copy span {
  overflow: hidden;
  color: #686868;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.palma-featured-carousel:focus-visible,
.palma-featured-open:focus-visible,
.palma-featured-export:focus-visible,
.palma-featured-direction-button:focus-visible,
.palma-featured-sequence-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: -3px;
}

@keyframes palma-featured-loading {
  from { opacity: 0.18; }
  to { opacity: 0.42; }
}

@media (max-width: 1180px) {
  .palma-featured-stage {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.65fr);
  }

  .palma-featured-heading {
    margin-top: 38px;
  }

  .palma-featured-heading h2 {
    font-size: 32px;
  }

  .palma-featured-device--desktop {
    right: 46px;
  }

  .palma-featured-device--mobile {
    width: 168px;
    height: 350px;
  }
}

@media (max-width: 900px) {
  .palma-featured-stage {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .palma-featured-copy {
    min-height: 0;
    padding: 26px 24px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .palma-featured-heading {
    max-width: 630px;
    margin-top: 30px;
  }

  .palma-featured-actions {
    max-width: 460px;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .palma-featured-direction {
    max-width: 520px;
    margin-top: 30px;
  }

  .palma-featured-theatre {
    min-height: 520px;
  }

  .palma-featured-device--desktop {
    inset: 26px 54px 34px 24px;
  }

  .palma-featured-device--mobile {
    right: 22px;
    bottom: 18px;
    width: 174px;
    height: 352px;
  }

  .palma-featured-sequence {
    grid-auto-columns: minmax(174px, 1fr);
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .palma-featured-sequence::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .palma-category-visual + .segmented-nav-container {
    margin-top: 12px !important;
  }

  .palma-featured-carousel {
    margin-bottom: 18px;
  }

  .palma-featured-copy {
    padding: 22px 18px 18px;
  }

  .palma-featured-eyebrow {
    padding-bottom: 15px;
  }

  .palma-featured-heading {
    margin-top: 26px;
  }

  .palma-featured-heading h2 {
    font-size: 28px;
    line-height: 1.05;
  }

  .palma-featured-heading p {
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.5;
  }

  .palma-featured-actions {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 22px;
  }

  .palma-featured-direction {
    margin-top: 24px;
    padding-top: 17px;
  }

  .palma-featured-direction-button {
    min-height: 56px;
    padding-right: 9px;
  }

  .palma-featured-direction-button--next {
    padding-right: 0;
    padding-left: 9px;
  }

  .palma-featured-theatre {
    min-height: 458px;
  }

  .palma-featured-reflection {
    inset: -8%;
    opacity: 0.22;
    filter: blur(42px) saturate(1.2);
  }

  .palma-featured-device--desktop {
    inset: 16px 26px 26px 14px;
  }

  .palma-featured-device--mobile {
    right: 13px;
    bottom: 13px;
    width: 128px;
    height: 286px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65), 0 0 0 4px #080808;
  }

  .palma-featured-device--mobile .palma-featured-device-bar {
    padding: 0 7px;
  }

  .palma-featured-sequence {
    grid-auto-columns: minmax(166px, 72vw);
  }

  .palma-featured-sequence-button {
    min-height: 76px;
    padding: 12px;
  }
}

@media (max-width: 380px) {
  .palma-featured-heading h2 {
    font-size: 25px;
  }

  .palma-featured-theatre {
    min-height: 420px;
  }

  .palma-featured-device--desktop {
    right: 18px;
  }

  .palma-featured-device--mobile {
    width: 112px;
    height: 252px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .palma-featured-device,
  .palma-featured-reflection,
  .palma-featured-loader,
  .palma-featured-open,
  .palma-featured-export,
  .palma-featured-direction-button,
  .palma-featured-sequence-button,
  .palma-featured-sequence-button::before {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}
