/* case-study.css — WikiMapping case study one-pagers
   Same print-friendly system as about.css.
   Brand: #177AB5 (blue)  #0b5e92 (dark blue)  #8BC441 (green)
*/

:root {
  --wm-blue: #177AB5;
  --wm-blue-dark: #0b5e92;
  --wm-green: #8BC441;
  --wm-text: #2d3748;
  --wm-muted: #64748b;
  --wm-bg-alt: #f4f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--wm-text);
  background: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

a { color: var(--wm-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.cs-page {
  max-width: 7.5in;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ──────────────────────────────────────────── */
.cs-header {
  border-bottom: 3px solid var(--wm-blue);
  padding: 0.6rem 0 0.4rem;
}
.cs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cs-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cs-logo {
  height: 32px;
  width: auto;
}
.cs-brand-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--wm-blue);
}
.cs-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--wm-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--wm-bg-alt);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ── Title block ─────────────────────────────────────── */
.cs-title {
  padding: 0.6rem 0 0.4rem;
}
.cs-title h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--wm-blue-dark);
  margin: 0 0 0.2rem;
}
.cs-title .cs-subtitle {
  font-size: 0.75rem;
  color: var(--wm-muted);
  margin: 0;
  font-style: italic;
}

/* ── Two-column main content ─────────────────────────── */
.cs-main {
  display: flex;
  gap: 1.25rem;
  padding: 0.4rem 0;
  border-top: 1px solid #e2e8f0;
}
.cs-col-left {
  flex: 1;
}
.cs-col-right {
  flex: 1;
}

/* ── Section headings within columns ─────────────────── */
.cs-section-head {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--wm-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.5rem 0 0.3rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid #e2e8f0;
}
.cs-section-head:first-child {
  margin-top: 0;
}

/* ── Body text ───────────────────────────────────────── */
.cs-body p {
  font-size: 0.7rem;
  line-height: 1.45;
  color: #475569;
  margin: 0 0 0.4rem;
}

/* ── Step list (numbered) ────────────────────────────── */
.cs-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: cs-step;
}
.cs-steps li {
  counter-increment: cs-step;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  padding: 0.2rem 0;
}
.cs-steps li::before {
  content: counter(cs-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--wm-blue);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.cs-steps li strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--wm-text);
  line-height: 1.2;
}
.cs-steps li span {
  display: block;
  font-size: 0.62rem;
  color: var(--wm-muted);
  line-height: 1.3;
}

/* ── Outcome / highlight box ─────────────────────────── */
.cs-outcome {
  background: var(--wm-bg-alt);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  margin-top: 0.4rem;
}
.cs-outcome strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--wm-blue-dark);
  margin-bottom: 0.15rem;
}
.cs-outcome p {
  font-size: 0.62rem;
  line-height: 1.4;
  color: #475569;
  margin: 0;
}

/* ── WikiMapping's role box ──────────────────────────── */
.cs-role {
  border-left: 3px solid var(--wm-green);
  padding: 0.4rem 0.6rem;
  margin-top: 0.4rem;
  background: #fafdf6;
  border-radius: 0 6px 6px 0;
}
.cs-role strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--wm-blue-dark);
  margin-bottom: 0.15rem;
}
.cs-role p {
  font-size: 0.62rem;
  line-height: 1.4;
  color: #475569;
  margin: 0;
}

/* ── Footer ──────────────────────────────────────────── */
.cs-footer {
  border-top: 3px solid var(--wm-blue);
  padding: 0.4rem 0 0.5rem;
  margin-top: 0.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cs-footer-left {
  font-size: 0.6rem;
  color: #475569;
}
.cs-footer-left strong {
  color: var(--wm-text);
}
.cs-footer-right {
  font-size: 0.6rem;
  color: var(--wm-muted);
  text-align: right;
}

/* ── Responsive (screen only) ────────────────────────── */
@media screen and (max-width: 768px) {
  .cs-main { flex-direction: column; }
  .cs-header-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .cs-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  html { font-size: 100%; }
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .cs-page {
    max-width: 7.5in;
    padding: 0;
  }
  .cs-main {
    display: flex;
    gap: 1.25rem;
  }
  a { color: var(--wm-blue) !important; }
  a[href]::after { content: none; }
}

@page {
  margin: 0.5in;
  size: letter;
}
