/* =========================================================
   TheClickUp — Case study showcase (Dribbble-style long-form)
   Single-column, centered, generous whitespace.
   Link after tcu-design-system.css on case study detail pages.
   ========================================================= */

.cs-showcase {
  --cs-bg: #ffffff;
  --cs-muted-bg: #f5f5f5;
  --cs-text: #111111;
  --cs-text-soft: #5c5c5c;
  --cs-radius: 28px;
  --cs-radius-sm: 20px;
  --cs-max: 1080px;
  --cs-prose: 40rem;
  --cs-gap: clamp(48px, 7vw, 96px);
  background: var(--cs-bg);
  color: var(--cs-text);
}

.cs-showcase a:not(.tf-btn):not(.tf-btn-2) {
  color: var(--tcu-blue, #0a5be7);
}

.cs-showcase__shell {
  width: 100%;
  max-width: var(--cs-max);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .cs-showcase__shell {
    padding-inline: 40px;
  }
}

/* ---- Intro: title + category ---- */
.cs-showcase__intro {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
}

.cs-showcase__crumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--cs-text-soft);
}

.cs-showcase__crumb a {
  color: inherit;
  text-decoration: none;
}

.cs-showcase__crumb a:hover {
  color: var(--tcu-blue, #0a5be7);
}

.cs-showcase__crumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #b0b0b0;
}

.cs-showcase__title {
  margin: 0 auto 12px;
  max-width: 18em;
  font-size: clamp(1.75rem, 3.2vw + 0.6rem, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--cs-text);
}

.cs-showcase__category {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--cs-text-soft);
  letter-spacing: 0.01em;
}

/* ---- Hero media ---- */
.cs-showcase__hero {
  margin: 0 auto var(--cs-gap);
  max-width: var(--cs-max);
  padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .cs-showcase__hero {
    padding-inline: 40px;
  }
}

.cs-showcase__hero-frame {
  overflow: hidden;
  border-radius: var(--cs-radius);
  background: var(--cs-muted-bg);
}

.cs-showcase__hero-frame img,
.cs-showcase__hero-frame video,
.cs-showcase__media-frame img,
.cs-showcase__media-frame video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.cs-showcase__hero-frame video {
  background: #0a0a0a;
}

/* ---- Description ---- */
.cs-showcase__desc {
  margin: 0 auto var(--cs-gap);
  max-width: var(--cs-prose);
  padding-inline: 20px;
  text-align: center;
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);
  line-height: 1.75;
  color: var(--cs-text-soft);
}

.cs-showcase__meta {
  margin: -40px auto var(--cs-gap);
  max-width: var(--cs-prose);
  padding-inline: 20px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #8a8a8a;
}

.cs-showcase__meta strong {
  color: #666;
  font-weight: 600;
}

/* ---- Feature split card ---- */
.cs-showcase__feature {
  margin: 0 auto var(--cs-gap);
  max-width: var(--cs-max);
  padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .cs-showcase__feature {
    padding-inline: 40px;
  }
}

.cs-showcase__feature-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--cs-radius);
  background: var(--cs-muted-bg);
}

@media (min-width: 900px) {
  .cs-showcase__feature-card {
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    min-height: 420px;
  }
}

.cs-showcase__feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border-radius: var(--cs-radius-sm);
  margin: 16px;
}

@media (min-width: 900px) {
  .cs-showcase__feature-copy {
    margin: 20px;
    margin-right: 0;
  }
}

.cs-showcase__feature-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.cs-showcase__feature-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--cs-text);
}

.cs-showcase__feature-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--cs-text-soft);
  line-height: 1.5;
}

.cs-showcase__feature-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ececec;
}

.cs-showcase__feature-rows li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--cs-text-soft);
}

.cs-showcase__feature-rows dt,
.cs-showcase__feature-rows .label {
  font-weight: 700;
  color: var(--cs-text);
}

.cs-showcase__feature-media {
  min-height: 260px;
  background: var(--cs-muted-bg);
}

.cs-showcase__feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .cs-showcase__feature-media {
    min-height: 100%;
  }
}

/* ---- Soft band (app / spotlight) ---- */
.cs-showcase__band {
  margin: 0 auto var(--cs-gap);
  max-width: var(--cs-max);
  padding: clamp(40px, 5vw, 64px) max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  border-radius: var(--cs-radius);
  background: var(--cs-muted-bg);
  text-align: center;
}

@media (min-width: 768px) {
  .cs-showcase__band {
    margin-inline: 40px;
    padding-inline: clamp(32px, 5vw, 56px);
    width: auto;
    max-width: calc(var(--cs-max) - 80px);
  }
}

.cs-showcase__band-title {
  margin: 0 auto 28px;
  max-width: 22em;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--cs-text);
}

.cs-showcase__band-media {
  overflow: hidden;
  border-radius: var(--cs-radius-sm);
  background: #fff;
}

.cs-showcase__band-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Stacked gallery ---- */
.cs-showcase__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--cs-gap);
  margin: 0 auto var(--cs-gap);
  max-width: var(--cs-max);
  padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .cs-showcase__gallery {
    padding-inline: 40px;
  }
}

.cs-showcase__media-frame {
  overflow: hidden;
  border-radius: var(--cs-radius);
  background: var(--cs-muted-bg);
}

/* Tall/narrow mockups: keep them from dominating */
.cs-showcase__media-frame--contain {
  background: var(--cs-muted-bg);
  padding: clamp(16px, 3vw, 32px);
}

.cs-showcase__media-frame--contain img {
  margin-inline: auto;
  max-height: min(80vh, 920px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ---- Closing CTA ---- */
.cs-showcase__cta {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 20px clamp(72px, 10vw, 120px);
  margin: 0 auto;
  max-width: 640px;
}

.cs-showcase__cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--cs-text);
}

.cs-showcase__cta p {
  margin: 0 auto 28px;
  max-width: 34em;
  color: var(--cs-text-soft);
  line-height: 1.65;
}

.cs-showcase__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cs-showcase__cta .tf-btn,
.cs-showcase__cta .tf-btn-2 {
  min-height: 48px;
}

.cs-showcase__footer-links {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--cs-text-soft);
}

.cs-showcase__footer-links a {
  text-decoration: none;
}

.cs-showcase__footer-links a:hover {
  text-decoration: underline;
}

/* Disable old bordered card shell if leftover classes remain */
.cs-showcase .tcu-case,
body.cs-page .tcu-case {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.cs-page {
  background: #fff;
}

body.cs-page .flat-spacing {
  padding-top: 0;
}
