/**
 * Case Studies listing — blog-aligned layout with project-library identity.
 * Depends on blog-enterprise.css base classes (.gw-be-*).
 */

/* Center hero + toolbar + count (match Blog hero centering) */
.gw-cs-list .gw-be-hero > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gw-cs-list .gw-be-hero .gw-be-breadcrumb {
  justify-content: center;
}

.gw-cs-list .gw-be-hero .gw-be-hero__desc {
  margin-left: auto;
  margin-right: auto;
}

.gw-cs-list .gw-be-toolbar {
  justify-items: center;
  text-align: center;
}

.gw-cs-list .gw-be-search {
  width: 100%;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.gw-cs-list .gw-be-filters {
  justify-content: center;
}

.gw-cs-list .gw-be-count {
  text-align: center;
}

.gw-cs-list .gw-be-empty {
  text-align: center;
}

.gw-cs-list .gw-be-card {
  min-height: 100%;
}

.gw-cs-list .gw-be-card__body {
  min-height: 11.5rem;
}

.gw-cs-list .gw-be-btn--ghost {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  font-size: 0.8125rem;
}

.gw-cs-card__meta-line {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--be-body, #1b1b1b) 68%, transparent);
}

.gw-cs-card__highlight {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--be-green, #137f15);
}

.gw-cs-list__empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Lower landing sections — match About / Services typography scale */
.gw-cs-list__prose,
.gw-cs-list__links,
.gw-cs-list__faq {
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.gw-cs-list__prose .gw-be-kicker,
.gw-cs-list__links .gw-be-kicker,
.gw-cs-list__faq .gw-be-kicker {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.gw-cs-list__prose h2,
.gw-cs-list__links h2,
.gw-cs-list__faq h2 {
  margin: 0 auto 1.15rem;
  max-width: 40rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--be-heading, #13009a);
  letter-spacing: -0.03em;
}

.gw-cs-list__prose p {
  margin: 0 auto 1.15rem;
  max-width: 42rem;
  font-size: clamp(1.0625rem, 1.8vw, 1.125rem);
  line-height: 1.75;
  color: var(--be-body, #1b1b1b);
}

.gw-cs-list__prose p:last-child {
  margin-bottom: 0;
}

.gw-cs-list__link-list {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  max-width: 52rem;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .gw-cs-list__link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gw-cs-list__link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0.95rem;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--be-heading, #13009a);
  background: var(--be-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--be-heading, #13009a) 12%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gw-cs-list__link-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--be-heading, #13009a) 10%, transparent);
}

.gw-cs-list__faq-panel {
  max-width: 52rem;
  margin: 1.5rem auto 0;
  text-align: left;
  padding: 1.75rem 1.85rem 1.9rem;
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--be-surface, #fff) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--be-heading, #13009a) 10%, transparent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--be-heading, #13009a) 6%, transparent);
}

.gw-cs-list__faq-panel details {
  padding: 1.35rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--be-heading, #13009a) 10%, transparent);
}

.gw-cs-list__faq-panel details:last-child {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.gw-cs-list__faq-panel summary {
  cursor: default;
  pointer-events: none;
  list-style: none;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--be-heading, #13009a);
}

.gw-cs-list__faq-panel summary::-webkit-details-marker,
.gw-cs-list__faq-panel summary::marker {
  display: none;
}

.gw-cs-list__faq-panel p {
  margin: 0.9rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  line-height: 1.75;
  color: var(--be-body, #1b1b1b);
}
