/* Case study branded layout — SKE Group source structure, LogiBrisk theme */

.cs-ske {
  --teal: var(--blue-primary);
  --teal2: var(--blue-secondary);
  --teal3: #05122e;
  --teal-lt: var(--cs-accent-light);
  --teal-mid: var(--cs-accent-mid);
  --coral: var(--orange-cta);
  --coral-lt: var(--orange-light);
  --slate: var(--blue-primary);
  --slate2: var(--blue-secondary);
  --sand: var(--bg-light-alt);
  --sand2: var(--cs-accent-light);
  --white: var(--bg-white);
  --offwhite: var(--bg-light-alt);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --light: var(--cs-label);
  --border: #D6DCE5;
  --radius: 12px;
  --font-head: var(--font-heading);
  --navbar-offset: var(--cs-navbar-offset);
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-white);
  font-size: var(--text-base);
  line-height: 1.7;
  padding-top: var(--navbar-offset);
}

.cs-ske *,
.cs-ske *::before,
.cs-ske *::after {
  box-sizing: border-box;
}

.cs-ske a {
  color: inherit;
  text-decoration: none;
}

/* ── PAGE WRAP ── */
.cs-ske .page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section labels — shared via case-study-tokens.css */

.cs-ske .sec-title {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--slate);
  line-height: 1.2;
  margin-bottom: 14px;
}

.cs-ske .sec-body {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.8;
  max-width: 660px;
}

.cs-ske .sec-body em,
.cs-ske .text-accent {
  color: var(--cs-accent);
  font-style: normal;
  font-weight: 600;
}

.cs-ske .section {
  padding: 68px 0;
}

.cs-ske .section + .section {
  padding-top: 0;
}

.cs-ske .divider {
  height: 1px;
  background: var(--border);
}

/* ── ENTITY STRIP ── */
.cs-ske .entity-strip {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-ske .entity-item {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  background: var(--white);
  transition: background 0.2s;
}

.cs-ske .entity-item:last-child {
  border-right: none;
}

.cs-ske .entity-item:hover {
  background: var(--teal-lt);
}

.cs-ske .entity-item::before {
  content: attr(data-num);
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--teal-mid);
  letter-spacing: 0.04em;
}

.cs-ske .entity-icon {
  font-size: var(--text-2xl);
  margin-bottom: 8px;
  display: block;
}

.cs-ske .entity-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--slate);
  line-height: 1.35;
}

/* ── ABOUT BANNER ── */
.cs-ske .about-banner {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cs-ske .about-banner p {
  font-size: var(--text-sm);
  color: var(--cs-hero-tag);
  line-height: 1.85;
  margin: 0;
}

.cs-ske .about-banner p strong {
  color: #fff;
}

.cs-ske .about-banner p em {
  color: var(--teal-mid);
  font-style: normal;
  font-weight: 600;
}

.cs-ske .about-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 40px;
}

.cs-ske .astat {
  text-align: right;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cs-ske .astat:last-child {
  border-bottom: none;
}

.cs-ske .astat-val {
  font-family: var(--font-head);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--teal-mid);
}

.cs-ske .astat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* ── PROFILE TABLE ── */
.cs-ske .profile-table {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-ske .pt-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}

.cs-ske .pt-row:last-child {
  border-bottom: none;
}

.cs-ske .pt-key {
  padding: 16px 20px;
  background: var(--offwhite);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.cs-ske .pt-val {
  padding: 16px 20px;
  font-size: var(--text-sm);
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  border-left: 1px solid var(--border);
}

/* ── CHALLENGE — editorial with sidebar numbers ── */
.cs-ske .challenge-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}

.cs-ske .challenge-text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.cs-ske .pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}

.cs-ske .pain-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.65;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.cs-ske .pain-item:first-child {
  border-top: 1px solid var(--border);
}

.cs-ske .pain-num {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--teal-mid);
  width: 28px;
  flex-shrink: 0;
  margin-top: 1px;
  letter-spacing: 0.03em;
}

.cs-ske .pain-icon {
  font-size: var(--text-base);
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 1px;
}

.cs-ske .pain-text {
  flex: 1;
}

/* sidebar stats box */
.cs-ske .stat-tower {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: calc(var(--navbar-offset) + 8px);
}

.cs-ske .st-card {
  border-radius: var(--radius-md);
  padding: 22px 20px;
  background: var(--teal-lt);
  border: 1px solid var(--teal-mid);
}

.cs-ske .st-val {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--cs-accent-hover);
}

.cs-ske .st-label {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.cs-ske .st-note {
  font-size: var(--text-xs);
  line-height: 1.65;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── SOLUTION ── */
.cs-ske .sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cs-ske .sol-card {
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cs-ske .sol-num {
  font-family: var(--font-head);
  font-size: var(--text-xs);
  font-weight: 800;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-ske .sol-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 8px;
}

.cs-ske .sol-body {
  font-size: var(--text-xs);
  line-height: 1.65;
}

/* ── INTEGRATIONS ── */
.cs-ske .int-label {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 6px;
}

.cs-ske .int-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cs-ske .int-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
}

.cs-ske .int-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── FEATURES — checklist with teal accent ── */
.cs-ske .feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-ske .feat {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  align-items: flex-start;
  background: var(--white);
  transition: background 0.2s;
}

.cs-ske .feat:hover {
  background: var(--teal-lt);
}

.cs-ske .feat:nth-child(2n) {
  border-right: none;
}

.cs-ske .feat:nth-last-child(-n+2) {
  border-bottom: none;
}

.cs-ske .feat-check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--cs-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--text-xs);
  color: #fff;
  font-weight: 800;
  margin-top: 1px;
}

.cs-ske .feat-text {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

.cs-ske .feat-text strong {
  color: var(--slate);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  font-size: var(--text-xs);
}

/* ── RESULTS — silver bg ── */
.cs-ske .results-bg {
  padding: 72px 0;
}

.cs-ske .results-bg .sec-title {
  color: var(--slate);
}

.cs-ske .metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.cs-ske .res-card {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}

.cs-ske .res-val {
  font-family: var(--font-head);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
}

.cs-ske .res-label {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.cs-ske .outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.cs-ske .outcome-card {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--cs-accent);
}

.cs-ske .outcome-text {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.6;
}

.cs-ske .outcome-text strong {
  color: var(--slate);
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 920px) {
  .cs-ske .hero-inner,
  .cs-ske .challenge-wrap,
  .cs-ske .sol-grid,
  .cs-ske .feat-grid,
  .cs-ske .metric-row,
  .cs-ske .outcome-grid,
  .cs-ske .about-banner {
    grid-template-columns: 1fr;
  }

  .cs-ske .hero-diagonal {
    display: none;
  }

  .cs-ske .hero {
    background: var(--teal3);
  }

  .cs-ske .hero-inner {
    padding: 48px 24px 0;
  }

  .cs-ske .hero h1 {
    font-size: var(--text-3xl);
    color: #fff;
  }

  .cs-ske .hero h1 em {
    color: var(--teal-mid);
  }

  .cs-ske .hero-desc {
    color: var(--cs-hero-tag);
  }

  .cs-ske .htag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cs-hero-tag);
  }

  .cs-ske .hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .cs-ske .hero-metrics {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .cs-ske .page {
    padding: 0 24px;
  }

  .cs-ske .stat-tower {
    position: static;
  }

  .cs-ske .tagline-bar {
    padding: 11px 20px;
    justify-content: flex-start;
  }
  .cs-ske .entity-strip {
    flex-direction: column;
  }

  .cs-ske .entity-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .cs-ske .entity-item:last-child {
    border-bottom: none;
  }

  .cs-ske .pt-row {
    grid-template-columns: 1fr;
  }

  .cs-ske .pt-key {
    border-bottom: 1px solid var(--border);
  }

  .cs-ske .pt-val {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .cs-ske .about-stats {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    flex-direction: row;
    justify-content: space-around;
  }

  .cs-ske .astat {
    text-align: center;
  }

  .cs-ske .metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .cs-ske .feat:nth-child(2n) {
    border-right: 1px solid var(--border);
  }

  .cs-ske .feat {
    border-right: none !important;
  }

  .cs-ske .feat:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .cs-ske .feat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .cs-ske .metric-row {
    grid-template-columns: 1fr;
  }

  .cs-ske .outcome-grid {
    grid-template-columns: 1fr;
  }
}
