/* ============================================================
   KONNEV — Dark Case Study / Product Detail (case-dark.css)
   Pure Obsidian Monochrome #09090B + Hairline Grid
   ============================================================ */

html.cs-dark { background-color: var(--ink); }
html.cs-dark .page-content { background: var(--ink); }

html.cs-dark main {
  --text-primary: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.12);
  --paper: #121215;
  color: #FFFFFF;
}

.cs-hero {
  padding: 136px var(--home-gutter) 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-hero-brand-logo {
  display: inline-flex;
  align-items: center;
}
.cs-hero-brand-logo img {
  height: 86px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.cs-hero-brand-logo .logo-on-light { display: none; }
.cs-hero-brand-logo .logo-on-dark  { display: block; }

.cs-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-crumbs a {
  color: var(--white);
  border-bottom: 1px solid var(--border-dark-strong);
  padding-bottom: 1px;
}

.cs-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.8vw, 80px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.cs-subtitle {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 52ch;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.cs-meta-group { display: flex; flex-direction: column; gap: 6px; }
.cs-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cs-meta-val { font-family: var(--font-display); font-size: 16px; color: var(--white); }

.cs-body-layout {
  padding: 0 var(--home-gutter) var(--home-space);
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.cs-side {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cs-chapters { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cs-chapters a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.cs-chapters a:hover, .cs-chapters a.is-active { color: var(--white); }

.sidebar-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.sidebar-metric-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--white);
}

.sidebar-metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-main { display: flex; flex-direction: column; gap: 52px; }

.cs-media {
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink-2);
}

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

.cs-chapter {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.cs-chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.cs-chapter p {
  font-size: var(--desc-size);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 64ch;
}

.cs-results-band {
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cs-result-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--white);
}

.cs-result-desc { margin-top: 8px; font-size: 14px; line-height: 1.48; color: var(--text-muted); }

@media (max-width: 1024px) {
  .cs-hero { padding-top: 100px; }
  .cs-body-layout { grid-template-columns: 1fr; gap: 36px; }
  .cs-side { position: static; }
  .cs-results-band { grid-template-columns: 1fr; padding: 24px; }
}

/* v2.2.0 — Next Case Study Silo Bar */
.cs-meta-val a { color: var(--white); border-bottom: 1px solid var(--border-dark-strong); padding-bottom: 1px; }
.cs-meta-val a:hover { opacity: 0.72; }
.cs-next-bar {
  margin-top: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.cs-next-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--white);
  transition: opacity 0.2s ease;
}
.cs-next-link:hover { opacity: 0.72; }
