/* MarineTL Premium Showcase 2.2 | Scoped entirely to the dedicated shortcode.
   The premium dark surface is intentional and works inside Fictioneer light/dark themes. */
.showcase.mtl-premium-showcase {
  --mtl-ink: #10171c;
  --mtl-ink-raised: #182229;
  --mtl-paper: #fffaf1;
  --mtl-gold: #e6bf81;
  --mtl-mist: #c4cbca;
  --mtl-radius: 24px;
  --this-shadow-space: 0px;
  --this-arrow-horizontal-padding: 0px;
  --this-pagination-side-padding: 0px;
  --this-pagination-vertical-padding: 0px;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  margin-block: 1rem 2rem;
  padding: 0 1px !important;
  box-sizing: border-box;
  color: var(--mtl-paper);
}

.showcase.mtl-premium-showcase:has(.splide__arrows) {
  --this-arrow-horizontal-padding: 0px;
}

.showcase.mtl-premium-showcase .polygon,
.showcase.mtl-premium-showcase .polygon::before,
.showcase.mtl-premium-showcase .polygon::after {
  clip-path: none !important;
}

.showcase.mtl-premium-showcase .splide__track {
  overflow: hidden;
  padding: 2px 1px 5px !important;
  border-radius: var(--mtl-radius);
}
.showcase.mtl-premium-showcase .showcase__list { align-items: stretch; }
.showcase.mtl-premium-showcase .showcase__list-item {
  position: relative;
  min-width: 0;
  max-width: none;
  height: 530px !important;
  aspect-ratio: auto !important;
  align-self: stretch;
  overflow: hidden;
  contain: layout paint style;
  border: 1px solid rgba(231, 204, 163, .23);
  border-radius: var(--mtl-radius);
  background: var(--mtl-ink);
  box-shadow: 0 10px 40px rgba(5, 10, 15, .16);
}
.showcase.mtl-premium-showcase .showcase__list-item::before { display: none; }
.showcase.mtl-premium-showcase .showcase__list-item-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none !important;
  border-radius: inherit;
}
.showcase.mtl-premium-showcase .showcase__list-item-link:focus-visible {
  outline: 3px solid var(--mtl-gold);
  outline-offset: -6px;
}

/* Editorial split: paper-like reading panel and dramatically framed artwork. */
.showcase.mtl-premium-showcase .showcase__list-item-figure {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  width: 100%;
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(210, 170, 102, .10), transparent 53%),
    repeating-linear-gradient(115deg, transparent 0 27px, rgba(255, 255, 255, .008) 27px 28px),
    var(--mtl-ink);
}
.showcase.mtl-premium-showcase .showcase__image {
  position: relative !important;
  inset: auto !important;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  display: block;
  height: 100%;
  width: 100%;
  max-width: none;
  min-width: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.025);
  transform: scale(1);
  transition: transform .95s cubic-bezier(.2,.75,.2,1);
}
.showcase.mtl-premium-showcase .showcase__image._no-cover {
  background:
    radial-gradient(circle at 68% 24%, rgba(232, 183, 99, .40), transparent 39%),
    linear-gradient(145deg, #424247, #233039 44%, #10171c);
}
.showcase.mtl-premium-showcase .showcase__list-item-figure::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 1;
  inset: 0 0 0 44%;
  background:
    linear-gradient(90deg, var(--mtl-ink) 0, rgba(16,23,28,.82) 12%, rgba(16,23,28,.08) 42%, rgba(16,23,28,.08) 100%),
    linear-gradient(0deg, rgba(8,11,16,.48), transparent 37%, rgba(8,11,16,.22));
}
.showcase.mtl-premium-showcase .showcase__list-item-figure::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  inset: 14px 14px 14px calc(50% + 2px);
  border: 1px solid rgba(255, 243, 214, .24);
  border-radius: 13px;
  box-shadow: inset 0 0 0 7px rgba(7, 12, 17, .10);
}
.showcase.mtl-premium-showcase .mtl-premium__art-stamp {
  position: absolute;
  z-index: 4;
  top: 32px;
  right: 32px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 246, 218, .28);
  border-radius: 8px;
  background: rgba(8, 15, 21, .69);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #f6e0b9;
  font: 700 10px/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .10em;
  white-space: nowrap;
}
.showcase.mtl-premium-showcase .mtl-premium__art-stamp strong {
  font: 500 22px/1 "Iowan Old Style", Georgia, serif;
  letter-spacing: -.02em;
}
.showcase.mtl-premium-showcase .mtl-premium__art-stamp i {
  color: #dbd1c0;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

/* The stock figcaption contains only the title. The plugin enriches it safely. */
.showcase.mtl-premium-showcase .showcase__list-item-figcaption:is(figcaption) {
  position: relative !important;
  inset: auto !important;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 44px clamp(26px, 4vw, 59px) 42px !important;
  margin: 0;
  overflow: hidden;
  background: transparent !important;
  color: var(--mtl-paper) !important;
  text-align: left !important;
  white-space: normal !important;
  text-overflow: clip !important;
  font: inherit !important;
  letter-spacing: normal !important;
  text-shadow: none;
}
.showcase.mtl-premium-showcase .mtl-premium__title {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow-wrap: anywhere;
  text-wrap: balance;
  color: var(--mtl-paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(30px, 3.55vw, 46px);
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -.038em;
}
.showcase.mtl-premium-showcase .mtl-premium__description {
  display: -webkit-box;
  width: 100%;
  max-width: 47ch;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: var(--mtl-mist);
  font: 400 14px/1.63 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}
.showcase.mtl-premium-showcase .mtl-premium__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font: 650 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .015em;
}
.showcase.mtl-premium-showcase .mtl-premium__meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border-radius: 50px;
  border: 1px solid rgba(230,191,129,.30);
  color: #ecd4aa;
  background: rgba(230,191,129,.08);
}
.showcase.mtl-premium-showcase .mtl-premium__meta .mtl-premium__status[data-status="completed"],
.showcase.mtl-premium-showcase .mtl-premium__meta .mtl-premium__status[data-status="complete"] {
  border-color: rgba(133, 202, 174, .38);
  color: #c0e4d5;
  background: rgba(133, 202, 174, .09);
}
.showcase.mtl-premium-showcase .mtl-premium__meta .mtl-premium__rating {
  border-color: rgba(227,237,238,.22);
  color: #c9d4d3;
  background: rgba(227,237,238,.055);
}
/* Compact, tactile CTA. It is a visual part of the single Fictioneer story link,
   not a nested button/anchor (which would introduce invalid interactive markup). */
.showcase.mtl-premium-showcase .mtl-premium__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-shrink: 0;
  width: max-content;
  max-width: 100%;
  min-height: 47px;
  margin-top: auto;
  padding: 0 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255,233,191,.7);
  border-radius: 11px;
  background: #e7c58f;
  box-shadow: 0 9px 28px rgba(0,0,0,.18);
  color: #172027;
  font: 750 13px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .005em;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.showcase.mtl-premium-showcase .mtl-premium__cta-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 46px;
  border-left: 1px solid rgba(23,32,39,.16);
}
.showcase.mtl-premium-showcase .mtl-premium__cta-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  transition: transform .24s ease;
}
@media (hover: hover) {
  .showcase.mtl-premium-showcase .showcase__list-item-link:hover .showcase__image { transform: scale(1.055); }
  .showcase.mtl-premium-showcase .showcase__list-item-link:hover .mtl-premium__cta { background: #f1d6aa; box-shadow: 0 12px 28px rgba(0,0,0,.24); transform: translateY(-1px); }
  .showcase.mtl-premium-showcase .showcase__list-item-link:hover .mtl-premium__cta-icon svg { transform: translateX(3px); }
}

/* Navigation belongs ON the featured artwork, not in a detached bottom rail.
   Splide still generates and owns its native arrows. */
.showcase.mtl-premium-showcase .splide__arrows {
  position: absolute;
  inset: auto 28px 25px auto;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: auto;
  padding: 5px;
  border: 1px solid rgba(242,226,193,.34);
  border-radius: 12px;
  background: rgba(10,17,22,.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 5px 22px rgba(0,0,0,.15);
}
.showcase.mtl-premium-showcase .splide__arrow {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  color: var(--mtl-gold);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.showcase.mtl-premium-showcase .splide__arrow--prev {
  left: auto;
  right: auto;
  transform: scaleX(-1);
}
.showcase.mtl-premium-showcase .splide__arrow--next {
  left: auto;
  right: auto;
  transform: none;
}
.showcase.mtl-premium-showcase .splide__arrow svg {
  width: 17px;
  height: 17px;
  fill: var(--mtl-gold);
}
.showcase.mtl-premium-showcase .splide__arrow:hover {
  background: rgba(230,191,129,.17);
}
.showcase.mtl-premium-showcase .splide__arrow:focus-visible,
.showcase.mtl-premium-showcase .mtl-premium__autoplay:focus-visible {
  outline: 2px solid var(--mtl-gold);
  outline-offset: 3px;
}
/* Fictioneer Splide binds the pause/play button automatically. Place it next to
   the image-overlay arrows, but never over the reading panel. */
.showcase.mtl-premium-showcase .mtl-premium__autoplay {
  position: absolute;
  z-index: 12;
  inset: auto 140px 33px auto;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(242,226,193,.30);
  border-radius: 9px;
  background: rgba(10,17,22,.80);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--mtl-gold);
  cursor: pointer;
}
.showcase.mtl-premium-showcase .mtl-premium__autoplay::before {
  content: "▶";
  font: 650 12px/1 system-ui, sans-serif;
}
.showcase.mtl-premium-showcase .mtl-premium__autoplay.is-active::before {
  content: "Ⅱ";
  font-size: 14px;
}
.showcase.mtl-premium-showcase .mtl-premium__autoplay span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
}
.showcase.mtl-premium-showcase:not(.is-initialized) .mtl-premium__autoplay,
.showcase.mtl-premium-showcase:not(.is-overflow) .splide__arrows,
.showcase.mtl-premium-showcase:not(.is-overflow) .mtl-premium__autoplay { display: none; }
.showcase.mtl-premium-showcase .splide__pagination { display: none !important; }

/* Keep unusually long titles readable in the fixed-height desktop feature. */
@media (min-width: 768px) {
  .showcase.mtl-premium-showcase .showcase__list-item.mtl-premium--long-title .mtl-premium__title {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    font-size: clamp(27px, 2.65vw, 34px);
    line-height: 1.085;
  }
  .showcase.mtl-premium-showcase .showcase__list-item.mtl-premium--long-title .mtl-premium__description {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .showcase.mtl-premium-showcase .showcase__list-item.mtl-premium--extra-long .mtl-premium__title {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    font-size: clamp(24px, 2.3vw, 29px);
    line-height: 1.07;
  }
  .showcase.mtl-premium-showcase .showcase__list-item.mtl-premium--extra-long .mtl-premium__description { display: none; }
}

/* Tablet and narrow content areas. */
@media (min-width: 768px) and (max-width: 1100px) {
  .showcase.mtl-premium-showcase .showcase__list-item { height: 500px !important; }
  .showcase.mtl-premium-showcase .showcase__list-item-figure { grid-template-columns: minmax(0,52%) minmax(0,48%); }
  .showcase.mtl-premium-showcase .showcase__list-item-figcaption:is(figcaption) {
    padding: 34px clamp(26px, 3.9vw, 40px) 32px !important;
    gap: 12px;
  }
  .showcase.mtl-premium-showcase .mtl-premium__title { font-size: clamp(29px, 3.25vw, 36px); }
  .showcase.mtl-premium-showcase .mtl-premium__description { -webkit-line-clamp: 2; line-clamp: 2; }
  .showcase.mtl-premium-showcase .showcase__list-item-figure::after { left: calc(52% + 2px); }
}

/* Mobile is a genuine two-panel story card, not a shrunken desktop hero.
   Auto-height reading panels prevent cropped titles and hidden story buttons. */
@media (max-width: 767px) {
  .showcase.mtl-premium-showcase {
    --mtl-radius: 21px;
    margin-block: .75rem 1.65rem;
    --mtl-art-height: clamp(206px, 59vw, 265px);
    padding-bottom: 0 !important;
  }
  .showcase.mtl-premium-showcase .showcase__list-item {
    height: auto !important;
    min-height: 0;
    border-radius: var(--mtl-radius);
    box-shadow: none;
  }
  .showcase.mtl-premium-showcase .showcase__list-item-figure {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: var(--mtl-art-height) auto;
    height: 100%;
    min-height: 0;
    background: var(--mtl-ink);
  }
  .showcase.mtl-premium-showcase .showcase__image {
    grid-column: 1;
    grid-row: 1;
    object-position: center 35%;
    height: 100%;
    width: 100%;
  }
  .showcase.mtl-premium-showcase .showcase__list-item-figure::before {
    inset: 0 0 auto;
    height: var(--mtl-art-height);
    background: linear-gradient(180deg, rgba(7,13,18,.35), transparent 37%, rgba(7,13,18,.10) 65%, rgba(7,13,18,.42));
  }
  .showcase.mtl-premium-showcase .showcase__list-item-figure::after {
    inset: 11px 11px auto;
    height: calc(var(--mtl-art-height) - 22px);
    width: auto;
    border-radius: 12px;
    box-shadow: none;
  }
  .showcase.mtl-premium-showcase .mtl-premium__art-stamp {
    top: 24px;
    right: 23px;
    gap: 6px;
    padding: 7px 10px;
    font-size: 9px;
  }
  .showcase.mtl-premium-showcase .mtl-premium__art-stamp strong { font-size: 19px; }
  .showcase.mtl-premium-showcase .showcase__list-item-figcaption:is(figcaption) {
    grid-column: 1;
    grid-row: 2;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 28px clamp(19px,6vw,30px) 27px !important;
    border-top: 1px solid rgba(230,191,129,.24);
    background:
      radial-gradient(ellipse at 100% 0%, rgba(224,178,106,.08), transparent 58%),
      var(--mtl-ink) !important;
  }
  .showcase.mtl-premium-showcase .mtl-premium__title {
    font-size: clamp(26px, 7.2vw, 33px);
    line-height: 1.12;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    letter-spacing: -.037em;
  }
  .showcase.mtl-premium-showcase .mtl-premium__description {
    font-size: 12.5px;
    line-height: 1.58;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #bac6c5;
  }
  .showcase.mtl-premium-showcase .mtl-premium__meta { gap: 7px; }
  .showcase.mtl-premium-showcase .mtl-premium__meta > span { min-height: 24px; padding: 4px 9px; font-size: 10px; }
  .showcase.mtl-premium-showcase .mtl-premium__cta {
    min-height: 46px;
    margin-top: 9px;
    padding-left: 17px;
    font-size: 13px;
  }
  .showcase.mtl-premium-showcase .mtl-premium__cta-icon {
    flex-basis: 43px;
    width: 43px;
    height: 45px;
  }
  .showcase.mtl-premium-showcase .splide__arrows {
    inset: calc(var(--mtl-art-height) - 68px) 22px auto auto;
    padding: 4px;
    gap: 4px;
  }
  .showcase.mtl-premium-showcase .splide__arrow { width: 36px; height: 36px; flex-basis: 36px; }
  /* Mobile autoplay is disabled by Splide options: show only the two arrow controls. */
  .showcase.mtl-premium-showcase .mtl-premium__autoplay { display: none !important; }

}
@media (max-width: 359px) {
  .showcase.mtl-premium-showcase { --mtl-art-height: 200px; }
  .showcase.mtl-premium-showcase .showcase__list-item-figcaption:is(figcaption) { padding-inline: 18px !important; gap: 11px; }
  .showcase.mtl-premium-showcase .mtl-premium__title { font-size: 25px; }
  .showcase.mtl-premium-showcase .splide__arrows { right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase.mtl-premium-showcase *, .showcase.mtl-premium-showcase *::before,
  .showcase.mtl-premium-showcase *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .showcase.mtl-premium-showcase .showcase__list-item-link:hover .showcase__image { transform: none; }
}
