/* Home showcase: ~70% + ~30% columns, equal right rows, reference-style scale */

.ss-showcase {
  --ss-gap: clamp(12px, 1.5vw, 20px);
  --ss-yellow: #fdf6e3;
  --ss-cell-radius: 16px;

  margin: 0;
  padding: 0;
}

.ss-showcase__frame {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ss-yellow);
}

.ss-showcase__grid {
  display: grid;
  gap: var(--ss-gap);
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(220px, auto);
  box-sizing: border-box;
  min-height: 0;
}

/* Mobile: first (hero) image box taller */
@media (max-width: 767.98px) {
  .ss-showcase__cell--wide {
    min-height: clamp(300px, 58vh, 520px);
  }

  .ss-showcase__cell--wide .ss-showcase__img {
    min-height: clamp(300px, 58vh, 520px);
  }
}

/*
 * Tablet & up: 7fr : 3fr = 70% / 30% (matches “~65–70% / ~30–35%”).
 * Left tile spans 2 rows; right column = two equal 1fr rows (same height).
 * Height scales with viewport so boxes aren’t stuck short (removed hard 58vh/720 cap).
 */
@media (min-width: 768px) {
  .ss-showcase__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    align-content: stretch;
    /* Wide banner proportion: scales up on large screens */
    height: clamp(360px, min(52vw, 62vh), 880px);
    min-height: clamp(360px, min(52vw, 62vh), 880px);
    max-height: none;
  }

  .ss-showcase__cell--wide {
    grid-column: 1;
    grid-row: 1 / -1;
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }
}

@media (min-width: 1024px) {
  .ss-showcase__grid {
    height: clamp(400px, min(46vw, 58vh), 920px);
    min-height: clamp(400px, min(46vw, 58vh), 920px);
  }
}

.ss-showcase__cell {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--ss-cell-radius);
  background: #fff;
  min-height: 0;
}

@media (min-width: 768px) {
  .ss-showcase__cell {
    align-self: stretch;
    height: 100%;
  }
}

.ss-showcase__cell:not(.ss-showcase__cell--lab) {
  display: block;
}

.ss-showcase__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 768px) {
  .ss-showcase__img {
    min-height: 0;
    position: absolute;
    inset: 0;
  }

  .ss-showcase__cell:not(.ss-showcase__cell--lab) {
    min-height: 0;
  }
}

.ss-showcase__cell--lab {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  padding: 12px;
  background: #f5efe4;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
}

@media (min-width: 768px) {
  .ss-showcase__cell--lab {
    min-height: 0;
    height: 100%;
    padding: 12px;
  }
}

.ss-showcase__cell--lab:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.ss-lab {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #fff;
  border-radius: calc(var(--ss-cell-radius) - 4px);
  padding: 12px 14px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  justify-content: center;
}

.ss-lab__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.ss-lab__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b91c1c;
}

.ss-lab__hint {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 500;
}

.ss-lab__body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-shrink: 0;
}

.ss-lab__pdf {
  flex-shrink: 0;
  color: #b91c1c;
  font-size: 1.75rem;
  line-height: 1;
}

.ss-lab__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ss-lab__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.ss-lab__meta {
  font-size: 0.68rem;
  color: #64748b;
}

.ss-lab__footer {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.6rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
