/* =========================================================================
   CASE STUDY "READ MORE" PAGES (case-*.html)
   Loads after brand.css and base.css. Same brand: deep sky header and CTA,
   light sky body with one white article card, red only on tags, points and buttons.
   ========================================================================= */
body { margin: 0; }

/* Top bar */
.cs-top { background: var(--sky); }
.cs-top .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; border-bottom: 1px solid rgba(248,250,252,.22); }
.cs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cloud); font-weight: 800; }
.cs-brand svg { width: 32px; height: 32px; flex: none; }
.cs-brand small { display: block; font: 600 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(248,250,252,.85); }
.cs-back { color: var(--cloud); text-decoration: none; font: 600 15px/1 var(--body); display: inline-flex; align-items: center; gap: 8px; }
.cs-back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.cs-head { background: var(--sky); color: var(--cloud); padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 80px); }
.cs-head .wrap { display: grid; gap: 18px; justify-items: start; }
.cs-head h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); line-height: 1; max-width: 18ch; }
.cs-lead { max-width: 60ch; font: 500 clamp(17px, 1.45vw, 20px)/1.6 var(--pop); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cs-meta span { font: 600 13px/1 var(--body); color: #FFFFFF; border: 1.5px solid rgba(255,255,255,.7); padding: 8px 12px; border-radius: 999px; }
.cs-meta b { font-weight: 800; }
.cs-gh { display: inline-flex; align-items: center; gap: 8px; color: #FFFFFF; font: 700 15px/1 var(--body); text-decoration: none; margin-top: 6px; }
.cs-gh svg { width: 18px; height: 18px; }
.cs-gh:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Body: light sky with a white article card */
.cs-body { background: linear-gradient(180deg, var(--sky-light-top) 0%, var(--sky-light-bottom) 100%); padding-block: clamp(40px, 6vw, 80px); color: var(--text-strong); }
.cs-article { max-width: 900px; margin: 0 auto; background: #FFFFFF; border-radius: 18px; padding: clamp(24px, 4vw, 56px);
  box-shadow: 0 34px 70px -40px rgba(26,110,159,.7), 0 0 0 1px rgba(26,110,159,.10) inset; display: grid; gap: clamp(36px, 4vw, 52px); }
.cs-sec { display: grid; gap: 14px; }
.cs-label { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-ink); }
.cs-sec h2 { font: 700 clamp(24px, 2.4vw, 32px)/1.2 var(--pop); letter-spacing: -.02em; color: var(--text-strong); }
.cs-sec h3 { font: 700 18px/1.3 var(--pop); color: var(--text-strong); margin-top: 6px; }
.cs-sec p { font: 400 16.5px/1.7 var(--pop); color: var(--text-body); max-width: 68ch; }
.cs-sec p em { font-style: italic; color: var(--text-strong); }

/* Lists with red points */
.cs-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cs-points li { position: relative; padding-left: 34px; font: 400 16px/1.6 var(--pop); color: var(--text-body); }
.cs-points li b { color: var(--text-strong); }
.cs-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--scarlet)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Numbered steps */
.cs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.cs-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; font: 400 16px/1.6 var(--pop); color: var(--text-body); }
.cs-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: #FFFFFF; display: grid; place-items: center; font: 700 13px/1 var(--mono); margin-top: 1px; }
.cs-steps li b { color: var(--text-strong); }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* Table */
.cs-table { width: 100%; border-collapse: collapse; font: 400 15px/1.55 var(--pop); }
.cs-table th { text-align: left; font: 600 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sky-ink); padding: 0 14px 10px 0; border-bottom: 2px solid rgba(26,110,159,.2); }
.cs-table td { padding: 14px 14px 14px 0; border-bottom: 1px solid rgba(26,110,159,.15); vertical-align: top; color: var(--text-body); }
.cs-table td:first-child { font-weight: 600; color: var(--text-strong); width: 34%; }

/* Figures */
.cs-fig { margin: 0; display: grid; gap: 10px; }
.cs-fig a { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(26,110,159,.18); background: #FFFFFF; }
.cs-fig img { display: block; width: 100%; height: auto; }
.cs-fig figcaption { font: 400 14px/1.55 var(--pop); color: var(--text-muted); }
.cs-fig figcaption b { color: var(--text-strong); }
.cs-fig.narrow { max-width: 460px; }
.cs-figs { display: grid; gap: 28px; }
.cs-note { font: 400 13.5px/1.5 var(--pop); color: var(--text-muted); }

/* Result: white with a red line, no tint */
.cs-result { border-left: 4px solid var(--scarlet); padding: 4px 0 4px 20px; display: grid; gap: 8px; }
.cs-result .cs-label { color: var(--scarlet); }
.cs-result p { font: 600 clamp(19px, 1.8vw, 23px)/1.45 var(--pop); color: var(--text-strong); max-width: 60ch; }

/* Built with */
.cs-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tools span { font: 600 12.5px/1 var(--mono); color: var(--sky-ink); background: #E4F3FC; padding: 8px 11px; border-radius: 6px; }

/* CTA */
.cs-cta { background: var(--sky); color: var(--cloud); padding-block: clamp(56px, 7vw, 96px); text-align: center; }
.cs-cta .wrap { display: grid; justify-items: center; gap: 20px; }
.cs-cta h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 60px); line-height: 1; }
.cs-cta p { max-width: 52ch; font: 500 clamp(16.5px, 1.35vw, 19px)/1.6 var(--pop); }
.cs-cta .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px #FFFFFF; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.cs-foot { background: var(--sky); border-top: 1px solid rgba(248,250,252,.3); padding-block: 28px; color: var(--cloud); font: 500 14px/1.5 var(--pop); }

@media (max-width: 760px) {
  .cs-two { grid-template-columns: 1fr; }
  .cs-table td:first-child { width: 40%; }
}

/* Example chat messages (Slack-style prompts) */
.cs-chat { display: grid; gap: 10px; background: #F2F8FC; border-radius: 12px; padding: 18px 20px; }
.cs-chat p { font: 400 15.5px/1.55 var(--pop); color: var(--text-strong); max-width: none; }
.cs-chat b { color: #1A6E9F; font-weight: 700; }

/* More than one GitHub link in the header */
.cs-ghs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
